query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
8057e62c2353a55ca401dd83d5717b7a
Should be atomic, since they're threadlocal
[ { "docid": "e5a2165949991d808e772018ef2d80c4", "score": "0.0", "text": "public final void set(T newVal) {\r\n\t\tstopTrackingOldValue();\t\t\r\n\t\tset(newVal);\r\n\t\ttracked.add(newVal);\r\n\t}", "title": "" } ]
[ { "docid": "8bc31f304ecd7f6a3e3e81fd9e4e6267", "score": "0.615519", "text": "@Test\n public void concurrency_local_test() throws InterruptedException, PropertyVetoException {\n runTest(true, false, false, threads * N);\n }", "title": "" }, { "docid": "1d5a730b2069edfb364df3801deb91d2", "score": "0.6014416", "text": "@Ignore\n @Test\n public void concurrency_local_db() throws PropertyVetoException, InterruptedException {\n runTest(false, false, false, threads * N);\n }", "title": "" }, { "docid": "fb1f5c8b5f916c3569ffa84486d9db71", "score": "0.57691765", "text": "public void atomicIncrement(){\n for (int i = 0; i < 10000000; i++) {\n atomicInt.getAndIncrement();\n }\n }", "title": "" }, { "docid": "4355c533c197e49cde32d821ef859798", "score": "0.5747555", "text": "public static void main(String[] args) throws InterruptedException {\n class MyRunnable implements Runnable {\n// private ThreadLocal<Integer> threadLocal = new ThreadLocal<>();\n Integer val = new Integer(0);\n\n @Override\n public void run() {\n// threadLocal.set((int) (Math.random() * 100));\n\n synchronized (val){\n val = (int) (Math.random() * 100);\n\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n// System.out.println(threadLocal.get());\n System.out.println(val);\n }\n\n\n }\n }\n\n MyRunnable myRunnable = new MyRunnable();\n\n Thread thread1 = new Thread(myRunnable);\n Thread thread2 = new Thread(myRunnable);\n\n thread1.start();\n thread2.start();\n\n// thread1.join();\n// thread2.join();\n }", "title": "" }, { "docid": "566fc3cab062befdd685b8c3a1908692", "score": "0.56495905", "text": "private static synchronized void incrUpdateCount()\n {\n ++itsUpdateCount;\n }", "title": "" }, { "docid": "1ce1f844c80876baf0611900f2c43ad8", "score": "0.56231034", "text": "@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i=0;i<10;i++) {\n\t\t\ttry {\n\t\t\t\tshared.put(i);\n\t\t\t\tlog.info(\"Produced the variable :\"+ i);\n\t\t\t\t\n\t\t\t} catch(InterruptedException iex) {\n\t\t\t\tiex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "25145a78f4fb2e4786f8905656e398fa", "score": "0.55549395", "text": "@Override\n @SuppressWarnings(\"checkstyle:printLine\") // Sample code\n void action() {\n /**\n * Instantiate a Corfu Stream named \"A\" dedicated to an SMRmap object.\n */\n ICorfuTable<String, Integer> map = instantiateCorfuObject(\n new TypeToken<PersistentCorfuTable<String, Integer>>() {}, \"A\");\n\n\n // thread 1: update \"a\" and \"b\" atomically\n new Thread(() -> {\n TXBegin();\n map.insert(\"a\", 1);\n map.insert(\"b\", 1);\n TXEnd();\n }\n ).start();\n\n // thread 2: read \"a\", then \"b\"\n // this thread will print either both 1's, or both nil's\n new Thread(() -> {\n Integer valA = 0, valB = 0;\n\n TXBegin();\n valA = map.get(\"a\");\n System.out.println(\"a: \" + valA);\n valB = map.get(\"b\");\n System.out.println(\"b: \" + valB);\n TXEnd();\n }\n ).start();\n }", "title": "" }, { "docid": "001fc623133026d7d9c0e533a0cdd17c", "score": "0.55525285", "text": "static void someOp2() {\n\t\tsynchronized (Synchronization.class) { // gdy kod pochodzi z klasy\n\t\t\t\t\t\t\t\t\t\t\t\t// Synchronization\n\t\t\t// synchronizowany kod\n\t\t}\n\t}", "title": "" }, { "docid": "d1694e024107d0c5b03554755b138345", "score": "0.5549612", "text": "synchronized void someX() {\n for (int i = 0; i < 10000; i++) {\n count++;\n }\n }", "title": "" }, { "docid": "fac6df2624d678597fc99be3f32c0597", "score": "0.5518818", "text": "private void m148775a() {\n C47832a<Object> aVar;\n do {\n synchronized (this) {\n aVar = this.f122679e;\n if (aVar == null) {\n this.f122678d = false;\n return;\n }\n this.f122679e = null;\n }\n } while (!aVar.mo119912a(this.f122675a));\n }", "title": "" }, { "docid": "01994b5fe23f9d1c1d6511f2f254bd79", "score": "0.5505444", "text": "private synchronized void lock() {\n leaderCache.put(myAddress, \"\");\n }", "title": "" }, { "docid": "95fc3a11829ca45e5806c242dd1a0cdd", "score": "0.5495436", "text": "protected void preWork(){}", "title": "" }, { "docid": "a67a8b3761b8368733e4bf62d93f7d94", "score": "0.5478997", "text": "@Override\n public void run() {\n for(int j = 0; j < 1000000; j++){\n synchronized (instance) {\n i++;\n }\n// ai.incrementAndGet();\n }\n }", "title": "" }, { "docid": "28039ec3dd730b473fb0b4a2d04d0123", "score": "0.5474798", "text": "abstract Object lock();", "title": "" }, { "docid": "653d9fa5f395c531bba17dea87dfe302", "score": "0.54395497", "text": "private static void test_concurrency(){\r\n\r\n Wallet wallet = new Wallet();\r\n\r\n Thread thread = null;\r\n Financial_Operator financial_operator = null;\r\n\r\n for(int i=0; i< 100; i++){\r\n\r\n financial_operator = new Financial_Operator((wallet));\r\n thread = new Thread(financial_operator);\r\n thread.start();\r\n\r\n }//end for cycle over i\r\n\r\n try {\r\n Thread.sleep(5000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n /*\r\n * The humber of executed transaction must be 1000 operations executed by 100 financial_operator,\r\n * so 100000 operations;\r\n */\r\n System.out.println(\"Number of executed transactions \"+wallet.getNumber_of_executed_trasnactions());\r\n\r\n }", "title": "" }, { "docid": "cd5759690e4388215cf8e87903814b02", "score": "0.54163045", "text": "private void updateSet0()\n\t{\n\t\tset_del[cacheSize - 1] = requestCounter;\t\t\n\t}", "title": "" }, { "docid": "de0622f70ddf43fe465e606415d5570d", "score": "0.54014593", "text": "private ChunkTracker() {\n\t\tthis.loadedChunks =\n\t\t\t\tnew ConcurrentHashMap<FishyChunk, Boolean>(256, 0.9F, 2);\n\t}", "title": "" }, { "docid": "d1bf895fe89d8bd1dfd9f24ece4d97b6", "score": "0.5383979", "text": "@Override\r\n\tprotected void threadTask() {\n\t\t\r\n\t}", "title": "" }, { "docid": "891c167521ad8d9da979082b0dca1486", "score": "0.53756976", "text": "@Override\n\tpublic void run() {\n\t\t\n\t\tif(Thread.currentThread().getName().equals(\"THREAD1\")){\n\t\t\ttLocal.set(\"Thread Local Value for Thread 1\");\n\t\t}else{\n\t\t\ttLocal.set(\"Thread Local Value for Thread 2\");\n\t\t}\n\t\t\n\t\t\n\t\tshowLocal();\n\t}", "title": "" }, { "docid": "e343f34b308470e1f65457233fa4b254", "score": "0.5373373", "text": "synchronized void incRefCount() {\n/* 52 */ this.referenceCnt++;\n/* */ }", "title": "" }, { "docid": "7bcd35305943504483cf1fb6ce9b58ec", "score": "0.53528583", "text": "boolean getMultithreaded();", "title": "" }, { "docid": "d201ec4cb899b88b2a68ba0ded9aabbb", "score": "0.5343201", "text": "@Before\n public void setUp() {\n lock = new Object();\n }", "title": "" }, { "docid": "7337c20b7c45d2437772a794d4eb08ae", "score": "0.53172195", "text": "@FxThread\n protected void handleExternalChanges() {\n\n }", "title": "" }, { "docid": "1fd5c0fc334106830932d18150266754", "score": "0.5306102", "text": "private synchronized void increase() {\r\n\t\tpending++;\r\n\t}", "title": "" }, { "docid": "64f41c5073059bdc2ed6a46349d7111c", "score": "0.52796906", "text": "protected abstract boolean sync();", "title": "" }, { "docid": "ae61abf85d0b595048eedcef48693688", "score": "0.52712196", "text": "@Test\n public void testNoCurrent() {\n URI lra2 = invokeInTransaction(null, LRAParticipant.START_NEW_LRA);\n\n Callable<URI> callableTask = () -> {\n URI lra = invokeInTransaction(null, LRAParticipant.START_NEW_LRA);\n lrasToAfterFinish.add(lra);\n\n assertNull(SHOULD_NOT_BE_ASSOCIATED, lraClient.getCurrent());\n invokeInTransaction(lra, LRAParticipant.END_EXISTING_LRA);\n return lra;\n\n };\n\n\n List<Callable<URI>> callableTasks = new ArrayList<>();\n for(int i = 0; i< NUMBER_OF_TASKS; i++)\n callableTasks.add(callableTask);\n\n try {\n List<Future<URI>> futures = executorService.invokeAll(callableTasks);\n for( Future<URI> f : futures) {\n f.get();\n assertNull(SHOULD_NOT_BE_ASSOCIATED, lraClient.getCurrent());\n }\n\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n fail(\"Error in testNoCurrent method\");\n }\n }", "title": "" }, { "docid": "525ce30a2fc09c9048e4a88f650a5b04", "score": "0.5265418", "text": "@Test\n\tpublic void testP1ConcurrentAddTagDifferentTags() {\n\t\tArrayList<Thread> threads = new ArrayList<>(N_THREADS);\n\t\tfor (int j = 0; j < N_THREADS; j++) {\n\t\t\tfinal int g = j;\n\t\t\tthreads.add(new Thread(new Runnable() {\n\t\t\t\tfinal int threadNum = g;\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tITag t = fileManager.addTag(Integer.toString(threadNum * 1000 + i));\n\t\t\t\t\t\t\tAssert.assertNotEquals(t, null);\n\t\t\t\t\t\t} catch (TagExistsException e) {\n\t\t\t\t\t\t\tAssert.assertTrue(\"tag already exists in fileTagManager, should not be possible\", false);\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}\n\t\tfor (Thread thread : threads) {\n\t\t\tthread.start();\n\t\t}\n\t\tfor (Thread thread : threads) {\n\t\t\ttry {\n\t\t\t\tthread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tHashSet<String> set = new HashSet<>();\n\t\tset.add(\"untagged\");\n\t\tfor (int i = 0; i < N_THREADS * 1000; i++) {\n\t\t\tset.add(Integer.toString(i));\n\t\t}\n\n\t\tfor (ITag tag : fileManager.listTags()) {\n\t\t\tAssert.assertTrue(set.contains(tag.getName()));\n\t\t}\n /*\n for(int i = 0;i < N_THREADS * 1000; i++){\n boolean found = false;\n for(ITag tag: fileManager.listTags()){\n if(tag.getName().equals(Integer.toString(i))){\n found = true;\n break;\n }\n }\n Assert.assertTrue(\"fuck\", found);\n }\n */\n\n\n\t}", "title": "" }, { "docid": "b1bde8fb17296524ca2afb42b420b81d", "score": "0.52612686", "text": "void firstMethod(){\n x = 1;\n synchronized (lock) {\n y = 1;\n }\n }", "title": "" }, { "docid": "27a7bc5bdda7a5c00896a3d3b388baef", "score": "0.5254499", "text": "@Override\n public void safeRun() {\n if (prevSegmentReader == currentSegmentReader) {\n unsafeMoveToNextLogSegment();\n }\n }", "title": "" }, { "docid": "0822f6864c08fbe1fb040d1b1896bdba", "score": "0.5247906", "text": "protected boolean usesLocks() {\r\n\r\n return false;\r\n\r\n }", "title": "" }, { "docid": "641bcdbb32ffb01a2273c6cf9185896e", "score": "0.5227474", "text": "@Test\n public void testConcurrentTransfers() throws Exception {\n createAccount(ACCOUNT_NAME_CREDITOR,BALANCE_CREDITOR);\n createAccount(ACCOUNT_NAME_DEBITEUR,BALANCE_DEBITEUR);\n createAccount(ACCOUNT_NAME_OTHER_DEBITEUR,BALANCE_OTHER_DEBITEUR);\n\n //fetch accounts from database.\n List<Account> accounts=accountDao.getAll();\n\n Account creditor= getAccountByName(accounts,ACCOUNT_NAME_CREDITOR);\n Account debiteur=getAccountByName(accounts,ACCOUNT_NAME_DEBITEUR);\n Account otherDebiteur=getAccountByName(accounts,ACCOUNT_NAME_OTHER_DEBITEUR);\n BigDecimal creditorBalanceBeforeTransfer=creditor.getBalance();\n BigDecimal debiteurBalanceBeforeTransfer=debiteur.getBalance();\n BigDecimal otherDebiteurBalanceBeforeTransfer=otherDebiteur.getBalance();\n\n //check if accounts are created properly\n assertTrue(creditorBalanceBeforeTransfer.compareTo(BALANCE_CREDITOR)==0);\n assertTrue(debiteurBalanceBeforeTransfer.compareTo(BALANCE_DEBITEUR)==0);\n\n Thread t1=new Thread(()-> performTransfer(creditor,debiteur,AMOUNT_TO_TRANSFER));\n Thread t2=new Thread(()-> performTransfer(creditor,otherDebiteur,AMOUNT_TO_TRANSFER_OTHER));\n t1.start();\n t2.start();\n t1.join();\n t2.join();\n\n List<Account> accountsUpdated=accountDao.getAll();\n\n Account creditorUpdated= getAccountByName(accountsUpdated,ACCOUNT_NAME_CREDITOR);\n Account debiteurUpdated=getAccountByName(accountsUpdated,ACCOUNT_NAME_DEBITEUR);\n Account otherDebiteurUpdated=getAccountByName(accountsUpdated,ACCOUNT_NAME_OTHER_DEBITEUR);\n\n //check if balances are updated properly\n BigDecimal newBalanceCreditor=creditorBalanceBeforeTransfer.subtract(AMOUNT_TO_TRANSFER).subtract\n (AMOUNT_TO_TRANSFER_OTHER);\n assertTrue(creditorUpdated.getBalance().compareTo(newBalanceCreditor)==0);\n assertTrue(debiteurUpdated.getBalance().compareTo(debiteurBalanceBeforeTransfer.add(AMOUNT_TO_TRANSFER))==0);\n assertTrue(otherDebiteurUpdated.getBalance().compareTo(otherDebiteurBalanceBeforeTransfer.add(AMOUNT_TO_TRANSFER_OTHER))==0);\n\n }", "title": "" }, { "docid": "942bb69ee0ba59e06d412c5a74e8f607", "score": "0.52269924", "text": "public boolean singleThreaded() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "82bf34363f0b3def7f992dac8daecf50", "score": "0.5226699", "text": "public void unsyncIncrement(){\n for (int i = 0; i < 1000000; i++) {\n unsyncMeth += 1;\n }\n }", "title": "" }, { "docid": "315f89638a55b950049c3031546193ad", "score": "0.5226666", "text": "void some2() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // only next line need sync, now we shouldn't lock whole method\n // reduce lock time, improve efficiency. 细粒度的锁\n synchronized (this) {\n count++;\n }\n\n // do something doesn't need sync\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a03a72be44759c1cfe810f6ffd1718b8", "score": "0.52165866", "text": "public static void main(String[] args) {\n\n final CurrenthashMapDemo c = new CurrenthashMapDemo();\n new Thread(()->{\n while (true){\n// c.i++;\n boolean b = UNSAFE.compareAndSwapInt(c, I_OFFSET, c.i, c.i + 1);\n\n\n if(b){\n int i = UNSAFE.getIntVolatile(c, I_OFFSET);\n\n System.out.println(\"线程1修改后为:\"+c.i);\n }else {\n System.out.println(\"线程1没有修改\");\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n }).start();\n new Thread(()->{\n while (true){\n boolean b = UNSAFE.compareAndSwapInt(c, I_OFFSET, c.i, c.i + 1);\n\n if(b){\n int i = UNSAFE.getIntVolatile(c, I_OFFSET);\n System.out.println(\"线程2修改后为:\"+c.i);\n }else {\n System.out.println(\"线程2没有修改\");\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }", "title": "" }, { "docid": "1de865e14dab5e0974429d18aca2da7f", "score": "0.52022386", "text": "void lock(){\n while (!state.compareAndSet(0, 1));\n }", "title": "" }, { "docid": "45cc6b67db4b610935d976630db7b441", "score": "0.5201083", "text": "void setMultithreaded (boolean flag);", "title": "" }, { "docid": "e1ab1ffbe859ac2c636b488e003beb85", "score": "0.51952434", "text": "V readStale();", "title": "" }, { "docid": "954044af0c335192c25a0736569240bd", "score": "0.51910913", "text": "public synchronized void testAndSetThreadCounter()\r\n { /* testAndSetThreadCounter */\r\n xformThreadCtr++;\r\n if(dbugFlag)\r\n System.out.println(\"F-TASTC xformThreadCtr=\" +\r\n xformThreadCtr);\r\n }", "title": "" }, { "docid": "d730940214c4658f11b985fe664990bb", "score": "0.5189568", "text": "public void increment() {\n // code comes before volatile variable will be executed before access instruction\n x++;\n y++;\n // code comes after volatile variable will be executed before access instruction\n }", "title": "" }, { "docid": "69daa661d23efe86118df952beeb6da2", "score": "0.51894176", "text": "@Override protected void setupLocal(){\n _output = _input; //faster, good enough in this case (since the input was freshly deserialized by the Weaver)\n _input = null;\n _output.set_processed_local(0l);\n }", "title": "" }, { "docid": "a319b59784725b930cfebcb5de03cfea", "score": "0.5180797", "text": "protected abstract ThreadLocal<ContactsTransaction> getTransactionHolder();", "title": "" }, { "docid": "8e91a7c929c51d3fcf7f5104fe5d8917", "score": "0.5169667", "text": "@Override\n\tprotected void acquire() {\n\n\t}", "title": "" }, { "docid": "8b46026c6f1fffaf7b4e1e7237089db4", "score": "0.51680803", "text": "@Test\n\tpublic void testP1AddAndListTag() {\n\n\t\tArrayList<Thread> threads = new ArrayList<>(N_THREADS);\n\t\tfor (int j = 0; j < N_THREADS / 2; j++) {\n\t\t\tfinal int g = j;\n\t\t\tthreads.add(new Thread(new Runnable() {\n\n\t\t\t\tprivate int threadNum = g;\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfileManager.addTag(Integer.toString(threadNum * 1000 + i));\n\t\t\t\t\t\t} catch (TagExistsException e) {\n\t\t\t\t\t\t\tAssert.assertTrue(\"Adding tag already in fileManager, should not be possible\", false);\n\t\t\t\t\t\t} catch (ConcurrentModificationException e) {\n\t\t\t\t\t\t\tAssert.assertTrue(\"concurrent modification occurred\", false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}));\n\t\t}\n\t\tfor (int j = N_THREADS / 2; j < N_THREADS; j++) {\n\t\t\tfinal int g = j;\n\t\t\tthreads.add(new Thread(new Runnable() {\n\t\t\t\tprivate final int threadNum = g;\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n// Iterable<? extends ITag> tags = fileManager.listTags();\n\t\t\t\t\tint count = 0;\n\t\t\t\t\tfor (ITag tag : fileManager.listTags()) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}));\n\t\t}\n\n\t\tfor (Thread thread : threads) {\n\t\t\tthread.start();\n\t\t}\n\t\tfor (Thread thread : threads) {\n\t\t\ttry {\n\t\t\t\tthread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tint numTags = 0;\n\t\tfor (ITag tag : fileManager.listTags()) {\n\t\t\tnumTags++;\n\t\t}\n\t\tAssert.assertEquals((N_THREADS / 2) * 1000 + 1, numTags);\n\t}", "title": "" }, { "docid": "bd2d6a64a3fdb000d67fed4f90952db8", "score": "0.51660836", "text": "public static void main(String[] args) {\n\n for (int i=0 ;i<2;i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n int data=new Random().nextInt();\n System.out.println(Thread.currentThread().getName()+\"has put data of :\"+data);\n// MyThreadScopeData entity = new MyThreadScopeData();\n// entity.setAge(data);\n// entity.setName(\"name\"+data);\n// x.set(entity);\n\n MyThreadScopeData.getInstance().setName(\"name\"+data);\n MyThreadScopeData.getInstance().setAge(data);\n new A().get();\n new B().get();\n }\n }).start();\n }\n\n\n }", "title": "" }, { "docid": "378df576aeb93f8b5f341b5f535db505", "score": "0.5165922", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentIndex = (Long) Cache\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(cacheKey);\n\t\t\t\t\t\t\t\t\t\t\t\tif (currentIndex == null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentIndex = (long) 1;\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\tif (!temp.equals(currentIndex)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttemp = currentIndex;\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.info(pptId + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ currentIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\tout.write(pptId + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ currentIndex);\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}", "title": "" }, { "docid": "c55d6777c72001896866f08ad1675501", "score": "0.51647925", "text": "@Override\n\tprotected void processLogic() {\n\t\tref(0);\n\t}", "title": "" }, { "docid": "3e8a88317bb42f291c4c1b6522a08f6a", "score": "0.51631993", "text": "public synchronized void m4() {\n }", "title": "" }, { "docid": "521b83931473a5c60ae56d4610888af7", "score": "0.51567835", "text": "public void testModifyConcurrent() throws Exception\n {\n FilterRead _fr1 = new FilterRead(this, filter_, 100);\n FilterRead _fr2 = new FilterRead(this, filter_, 100);\n FilterRead _fr3 = new FilterRead(this, filter_, 100);\n FilterRead _fr4 = new FilterRead(this, filter_, 100);\n\n FilterModify _mod1 = new FilterModify(this, filter_, \"true\", 50);\n FilterModify _mod2 = new FilterModify(this, filter_, \"false\", 50);\n\n _fr1.start();\n _fr2.start();\n _fr3.start();\n _fr4.start();\n\n _mod1.start();\n _mod2.start();\n\n _fr1.join();\n _fr2.join();\n _fr3.join();\n _fr4.join();\n\n _mod1.join();\n _mod2.join();\n }", "title": "" }, { "docid": "9eeeca212bcd919769a2ba8ddde91867", "score": "0.51557815", "text": "private void concurrentMarkInternalPhases(GCLogTrace trace, String line) {\n }", "title": "" }, { "docid": "2d11cc1a621ab6f077a3cd1f85aef40d", "score": "0.51553476", "text": "private void processOldMapLocalWork(){\n\t// process map local operators\n if (fetchOperators != null) {\n try {\n mapredLocalWork localWork = mo.getConf().getMapLocalWork();\n int fetchOpNum = 0;\n for (Map.Entry<String, FetchOperator> entry : fetchOperators.entrySet()) {\n int fetchOpRows = 0;\n String alias = entry.getKey();\n FetchOperator fetchOp = entry.getValue();\n Operator<? extends Serializable> forwardOp = localWork.getAliasToWork().get(alias); \n\n while (true) {\n InspectableObject row = fetchOp.getNextRow();\n if (row == null) {\n break;\n }\n fetchOpRows++;\n forwardOp.process(row.o, 0);\n }\n \n if (l4j.isInfoEnabled()) {\n l4j.info(\"fetch \" + fetchOpNum++ + \" processed \" + fetchOpRows + \" used mem: \" + memoryMXBean.getHeapMemoryUsage().getUsed());\n }\n }\n } catch (Throwable e) {\n abort = true;\n if (e instanceof OutOfMemoryError) {\n // Don't create a new object if we are already out of memory \n throw (OutOfMemoryError) e; \n } else {\n throw new RuntimeException (\"Map local work failed\", e);\n }\n }\n }\n }", "title": "" }, { "docid": "4946e88fdbf74a355e2401d34f2f9a43", "score": "0.51492876", "text": "@AfterEach\n\tvoid cleanupThreadLocals() {\n\t\tREF1.remove();\n\t\tREF2.remove();\n\t}", "title": "" }, { "docid": "632014a9c17a79301a30f431bdbe4d01", "score": "0.51469433", "text": "public void sync() {\n sync = true;\n }", "title": "" }, { "docid": "45190596e5df2a0618dbad49e312dc89", "score": "0.5144699", "text": "void lock();", "title": "" }, { "docid": "45190596e5df2a0618dbad49e312dc89", "score": "0.5144699", "text": "void lock();", "title": "" }, { "docid": "45190596e5df2a0618dbad49e312dc89", "score": "0.5144699", "text": "void lock();", "title": "" }, { "docid": "7331a3ac683f9077fe352f16f14890b3", "score": "0.5143892", "text": "public synchronized int increment(){\n return count++;\n }", "title": "" }, { "docid": "9d22bdf116d4da9aae928de3cc987ac2", "score": "0.5142484", "text": "protected int increment() {\r\n\t\treturn value.incrementAndGet();\r\n\t}", "title": "" }, { "docid": "08c9e57c5452e5b74d79a549f02880aa", "score": "0.5142341", "text": "public synchronized void syncIncrement(){\n for (int i = 0; i < 1000000; i++) {\n syncMeth += 1;\n }\n }", "title": "" }, { "docid": "ed4106f9b64c38c793fb8654b60ba98a", "score": "0.51409745", "text": "@Test\n\tpublic void testP1ConcurrentAddTagSameTags() {\n\t\tArrayList<Thread> threads = new ArrayList<>();\n\t\tfor (int i = 0; i < N_THREADS; i++) {\n\t\t\tthreads.add(new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfileManager.addTag(Integer.toString(i));\n\t\t\t\t\t\t} catch (TagExistsException e) {\n// e.printStackTrace();\n// Assert.assertTrue(false);\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\n\t\tfor (Thread thread : threads) {\n\t\t\tthread.start();\n\t\t}\n\t\tfor (Thread thread : threads) {\n\t\t\ttry {\n\t\t\t\tthread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tHashSet<Tag> set = new HashSet();\n\t\tset.add(new Tag(\"untagged\"));\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tset.add(new Tag(Integer.toString(i)));\n\t\t}\n\t\tfor (ITag tag : fileManager.listTags()) {\n\t\t\tAssert.assertTrue(set.contains(tag));\n\t\t}\n\n\t}", "title": "" }, { "docid": "c53b78ab201853e68ea272162233fb68", "score": "0.5133932", "text": "@Test\r\n\tpublic void testParalleleUniqueId() {\n\t\tint idCount = 25;\r\n\t\tfinal UniqueID[] ids1 = new UniqueID[idCount];\r\n\t\tfinal UniqueID[] ids2 = new UniqueID[idCount];\r\n\t\tfinal UniqueID[] ids3 = new UniqueID[idCount];\r\n\t\tfinal UniqueID[] ids4 = new UniqueID[idCount];\r\n\r\n\t\tUniqueID[] ids = new UniqueID[idCount * 4];\r\n\r\n\t\tThread tr1 = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor (int i = 0; i < ids1.length; i++) {\r\n\t\t\t\t\tids1[i] = new UniqueID();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tThread tr2 = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor (int i = 0; i < ids2.length; i++) {\r\n\t\t\t\t\tids2[i] = new UniqueID();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tThread tr3 = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor (int i = 0; i < ids3.length; i++) {\r\n\t\t\t\t\tids3[i] = new UniqueID();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tThread tr4 = new Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor (int i = 0; i < ids4.length; i++) {\r\n\t\t\t\t\tids4[i] = new UniqueID();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttr1.start();\r\n\t\ttr2.start();\r\n\t\ttr3.start();\r\n\t\ttr4.start();\r\n\r\n\t\ttry {\r\n\t\t\ttr1.join();\r\n\t\t\ttr2.join();\r\n\t\t\ttr3.join();\r\n\t\t\ttr4.join();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tfail(\"fail to join the threads\");\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < ids1.length; i++) {\r\n\t\t\tids[i + (idCount * 0)] = ids1[i];\r\n\t\t}\r\n\t\tfor (int i = 0; i < ids2.length; i++) {\r\n\t\t\tids[i + (idCount * 1)] = ids2[i];\r\n\t\t}\r\n\t\tfor (int i = 0; i < ids3.length; i++) {\r\n\t\t\tids[i + (idCount * 2)] = ids3[i];\r\n\t\t}\r\n\t\tfor (int i = 0; i < ids4.length; i++) {\r\n\t\t\tids[i + (idCount * 3)] = ids4[i];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < ids.length; i++) {\r\n\t\t\tfor (int j = i + 1; j < ids.length; j++) {\r\n\t\t\t\tif (ids[i].equals(ids[j])) {\r\n\t\t\t\t\tfail(\"the id \" + i + \" is same as id \" + j + \" values:[\"\r\n\t\t\t\t\t\t\t+ ids[i] + \" | \" + ids[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8a72e44dd9a4ba1c35b38877c7fbd4e", "score": "0.51332456", "text": "synchronized void m4622i() {\n f4262j.post(new C19492(this));\n }", "title": "" }, { "docid": "cf7b8728929cc088bff840fb271a8b25", "score": "0.5119481", "text": "private void storePendingChunk() {\n/* 127 */ Iterator<Map.Entry<ChunkPos, PendingStore>> debug1 = this.pendingWrites.entrySet().iterator();\n/* 128 */ if (!debug1.hasNext()) {\n/* */ return;\n/* */ }\n/* */ \n/* 132 */ Map.Entry<ChunkPos, PendingStore> debug2 = debug1.next();\n/* 133 */ debug1.remove();\n/* 134 */ runStore(debug2.getKey(), debug2.getValue());\n/* 135 */ tellStorePending();\n/* */ }", "title": "" }, { "docid": "0e2af3af05a9dc6905b86b370178ef94", "score": "0.5115799", "text": "synchronized void m69532a() {\n if (!this.f60457b) {\n m69527b();\n m69530d();\n this.f60457b = true;\n }\n }", "title": "" }, { "docid": "596ad282cffdc27d1a5f19e51e8f2a06", "score": "0.511234", "text": "public void mo25765a() {\n Iterator it = this.f24774f.iterator();\n while (it.hasNext()) {\n Pair pair = (Pair) it.next();\n ((Executor) pair.second).execute(new C9563b((DataSubscriber) pair.first));\n }\n }", "title": "" }, { "docid": "3d3920ba4cdffa23249d2f8fd8634939", "score": "0.5110376", "text": "public boolean isAtomic() {\n return false;\n }", "title": "" }, { "docid": "84b60f3d313a7b0e3f6d677a48a7e8ab", "score": "0.5108512", "text": "@Override\n public void run() {\n sync();\n }", "title": "" }, { "docid": "8e9fa81bccc12ba9d29a3eb3773f2cf2", "score": "0.51012176", "text": "void secondMethod(){\n synchronized (lock) {\n r1 = y;\n }\n r2 = x;\n }", "title": "" }, { "docid": "bb9a5484118bd84ef1639905ed25ab9b", "score": "0.50840425", "text": "public void lock(){\n int i = ThreadID.get();\n int j = 1 - i;\n flag[i] = true;\n while(flag[j])\n ;\n }", "title": "" }, { "docid": "0f41b69903edd7a9ceb698a431cea25d", "score": "0.5084029", "text": "public long getResult(){\r\n return localResult;\r\n }", "title": "" }, { "docid": "baea1ab6a63f111525016cfe726128b4", "score": "0.5078798", "text": "private long getCurrentThreadID ()\n {\n\treturn this.tID;\n }", "title": "" }, { "docid": "40cbcf7d62e7da57acbfbc0b17392f68", "score": "0.5069149", "text": "public synchronized void increment(){\n count++;\n }", "title": "" }, { "docid": "5f0cf40e7f7725fe56de23ce2e328a19", "score": "0.5068571", "text": "public void run() {\n boolean z = false;\n if (this.tM.type != 2) {\n long currentTimeMillis = System.currentTimeMillis();\n if (b.tE != null) {\n if (!(currentTimeMillis - b.tF >= 10000)) {\n if (TextUtils.isEmpty(b.tE.phonenum)) {\n if (!\"null\".endsWith(this.tM.phonenum)) {\n }\n }\n z = true;\n }\n }\n d.d(\"SystemCallLogInterceptorBuilder\", \"needDel\" + z);\n if (z) {\n this.tN.remove(this.tM);\n b.tE = null;\n b.tF = 0;\n this.tO.tK.tH.clear();\n } else {\n this.tO.tK.a(this.tO.tK.tB, this.tM, this.tO.tK.tH);\n }\n this.tO.tK.tI.clear();\n return;\n }\n this.tO.tK.a(this.tO.tK.tB, this.tM, this.tO.tK.tI);\n this.tO.tK.tH.clear();\n }", "title": "" }, { "docid": "18c04592dea53d06518ecca56ca6d272", "score": "0.50663996", "text": "@Test\n public void concurrentInsertionInTheSamePlace() {\n UserDQ user1 = new UserDQ(\"User1\");\n UserDQ user2 = new UserDQ(\"User2\");\n\n user1.addDocument(0);\n user2.addDocument(0);\n\n // After startup, both users see an empty String\n assertEquals(\"\", user1.getView(0));\n assertEquals(\"\", user2.getView(0));\n\n // Both users load the initial state: ABCD\n user1.pushRequest(\"LoadUser|0|0|INSERT|0|3|ABCD|1\");\n user2.pushRequest(\"LoadUser|0|0|INSERT|0|3|ABCD|1\");\n assertEquals(\"ABCD\", user1.getView(0));\n assertEquals(\"ABCD\", user2.getView(0));\n\n // User1 inserts X after A in his GUI \n // but his syncCopy remains unchanged\n user1.createRequest(0, \"INSERT|1|0|X\");\n assertEquals(\"AXBCD\", user1.getView(0));\n assertEquals(\"ABCD\", user1.getSyncCopy(0));\n\n // User2 inserts Y after A in her GUI \n // but her syncCopy remains unchanged\n user2.createRequest(0, \"INSERT|1|0|Y\");\n assertEquals(\"AYBCD\", user2.getView(0));\n assertEquals(\"ABCD\", user2.getSyncCopy(0));\n\n // User1 sends his request to the server. \n String request1 = user1.pullRequest();\n assertEquals(\"User1|0|0|INSERT|1|0|X|1\", request1);\n\n // User1 receives his change back and should \n // still see AXBCD but now it's also his syncCopy\n user1.pushRequest(\"User1|0|0|INSERT|1|0|X|2\");\n assertEquals(\"AXBCD\", user1.getView(0));\n assertEquals(\"AXBCD\", user1.getSyncCopy(0));\n\n // User2 receives User1's change and should now \n // see AYXBCD while holding AXBCD\n user2.pushRequest(\"User1|0|0|INSERT|1|0|X|2\");\n assertEquals(\"AYXBCD\", user2.getView(0));\n assertEquals(\"AXBCD\", user2.getSyncCopy(0));\n\n // User2 sends his request to the server. \n String request2 = user2.pullRequest();\n assertEquals(\"User2|0|0|INSERT|1|0|Y|1\", request2);\n\n // User1 receives the change made by User2\n // and should see AXBCYD\n user1.pushRequest(\"User2|0|0|INSERT|1|0|Y|3\");\n assertEquals(\"AYXBCD\", user1.getView(0));\n assertEquals(\"AYXBCD\", user1.getSyncCopy(0));\n\n // User2 receives his change back and should \n // now both see and hold AXBCYD\n user2.pushRequest(\"User2|0|0|INSERT|1|0|Y|3\");\n assertEquals(\"AYXBCD\", user2.getView(0));\n assertEquals(\"AYXBCD\", user2.getSyncCopy(0));\n }", "title": "" }, { "docid": "1affc1b28a203830317356b274e9016d", "score": "0.50648665", "text": "@Test\n public void testConcurrentContentDaoUpdateContent() throws Exception {\n \n TransactionThread txThread1 = new TransactionThread(transactionManager,sessionFactory);\n TransactionThread txThread2 = new TransactionThread(transactionManager,sessionFactory);\n TransactionThread txThread3 = new TransactionThread(transactionManager,sessionFactory);\n \n cleanupDb();\n \n // create item to be updated concurrently\n txThread1.addRunnable(\"1\", new TxRunnable() {\n public Object run() {\n User user = getUser(userDao, \"testuser\");\n CollectionItem root = (CollectionItem) contentDao.getRootItem(user);\n\n ContentItem item = generateTestContent();\n item.setUid(\"test\");\n\n ContentItem newItem = contentDao.createContent(root, item);\n return newItem;\n }\n });\n \n // read item by thread 2\n txThread2.addRunnable(\"1\", new TxRunnable() {\n public Object run() {\n \n ContentItem item = (ContentItem) contentDao.findItemByUid(\"test\");\n return item;\n }\n });\n \n // read item by thread 3\n txThread3.addRunnable(\"1\", new TxRunnable() {\n public Object run() {\n \n ContentItem item = (ContentItem) contentDao.findItemByUid(\"test\");\n return item;\n }\n });\n \n // create item\n txThread1.start();\n txThread1.commit();\n txThread1.join();\n \n // read item at the same time\n txThread2.start();\n txThread3.start();\n \n // wait till reads are done\n while(txThread2.getRunnableResults(\"1\")==null)\n Thread.sleep(50);\n while(txThread3.getRunnableResults(\"1\")==null)\n Thread.sleep(50);\n \n // results of the read (should be same item)\n final ContentItem item1 = (ContentItem) txThread2.getRunnableResults(\"1\");\n final ContentItem item2 = (ContentItem) txThread3.getRunnableResults(\"1\");\n \n // write item by thread 2\n txThread2.addRunnable(\"2\", new TxRunnable() {\n public Object run() {\n \n contentDao.updateContent(item1);\n return item1;\n }\n });\n \n // wait for write to complete\n while (txThread2.getRunnableResults(\"2\")==null) {\n Thread.sleep(50);\n }\n \n // thread 2 wins with the commit\n txThread2.commit();\n txThread2.join();\n \n // now try to write item by thread 3, should fail\n txThread3.addRunnable(\"2\", new TxRunnable() {\n /**\n * Run.\n * {@inheritDoc}\n */\n public Object run() {\n \n contentDao.updateContent(item2);\n return item2;\n }\n });\n \n txThread3.commit();\n txThread3.join();\n\n // results should be OptimisticLockingFailureException\n Assert.assertTrue(txThread3.getRunnableResults(\"2\") instanceof OptimisticLockingFailureException);\n \n cleanupDb();\n }", "title": "" }, { "docid": "a75e84f4d0a970f652b90d31eb77fcae", "score": "0.5062243", "text": "@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public synchronized java.util.List<com.onesignal.influence.model.OSInfluence> getNotCachedUniqueInfluencesForOutcome(java.lang.String r22, java.util.List<com.onesignal.influence.model.OSInfluence> r23) {\n /*\n r21 = this;\n r1 = r21\n monitor-enter(r21)\n java.util.ArrayList r2 = new java.util.ArrayList // Catch:{ all -> 0x00c0 }\n r2.<init>() // Catch:{ all -> 0x00c0 }\n com.onesignal.OneSignalDb r0 = r1.dbHelper // Catch:{ all -> 0x00c0 }\n android.database.sqlite.SQLiteDatabase r0 = r0.getSQLiteDatabaseWithRetries() // Catch:{ all -> 0x00c0 }\n r3 = 0\n java.util.Iterator r12 = r23.iterator() // Catch:{ JSONException -> 0x00a5 }\n L_0x0013:\n boolean r4 = r12.hasNext() // Catch:{ JSONException -> 0x00a5 }\n if (r4 == 0) goto L_0x0095\n java.lang.Object r4 = r12.next() // Catch:{ JSONException -> 0x00a5 }\n r13 = r4\n com.onesignal.influence.model.OSInfluence r13 = (com.onesignal.influence.model.OSInfluence) r13 // Catch:{ JSONException -> 0x00a5 }\n org.json.JSONArray r14 = new org.json.JSONArray // Catch:{ JSONException -> 0x00a5 }\n r14.<init>() // Catch:{ JSONException -> 0x00a5 }\n org.json.JSONArray r15 = r13.getIds() // Catch:{ JSONException -> 0x00a5 }\n if (r15 != 0) goto L_0x002c\n goto L_0x0013\n L_0x002c:\n r11 = 0\n r16 = r3\n r10 = 0\n L_0x0030:\n int r3 = r15.length() // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n if (r10 >= r3) goto L_0x007c\n java.lang.String r9 = r15.getString(r10) // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n com.onesignal.influence.model.OSInfluenceChannel r3 = r13.getInfluenceChannel() // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n java.lang.String[] r5 = new java.lang.String[r11] // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n java.lang.String r6 = \"channel_influence_id = ? AND channel_type = ? AND name = ?\"\n r4 = 3\n java.lang.String[] r7 = new java.lang.String[r4] // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n r7[r11] = r9 // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n r4 = 1\n r7[r4] = r3 // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n r3 = 2\n r7[r3] = r22 // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n java.lang.String r4 = \"cached_unique_outcome\"\n r8 = 0\n r17 = 0\n r18 = 0\n java.lang.String r19 = \"1\"\n r3 = r0\n r20 = r9\n r9 = r17\n r17 = r10\n r10 = r18\n r18 = 0\n r11 = r19\n android.database.Cursor r3 = r3.query(r4, r5, r6, r7, r8, r9, r10, r11) // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n int r4 = r3.getCount() // Catch:{ JSONException -> 0x00a5 }\n if (r4 != 0) goto L_0x0076\n r4 = r20\n r14.put(r4) // Catch:{ JSONException -> 0x00a5 }\n L_0x0076:\n int r10 = r17 + 1\n r16 = r3\n r11 = 0\n goto L_0x0030\n L_0x007c:\n int r3 = r14.length() // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n if (r3 <= 0) goto L_0x008c\n com.onesignal.influence.model.OSInfluence r3 = r13.copy() // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n r3.setIds(r14) // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n r2.add(r3) // Catch:{ JSONException -> 0x0091, all -> 0x008f }\n L_0x008c:\n r3 = r16\n goto L_0x0013\n L_0x008f:\n r0 = move-exception\n goto L_0x00b4\n L_0x0091:\n r0 = move-exception\n r3 = r16\n goto L_0x00a6\n L_0x0095:\n if (r3 == 0) goto L_0x00b2\n boolean r0 = r3.isClosed() // Catch:{ all -> 0x00c0 }\n if (r0 != 0) goto L_0x00b2\n L_0x009d:\n r3.close() // Catch:{ all -> 0x00c0 }\n goto L_0x00b2\n L_0x00a1:\n r0 = move-exception\n r16 = r3\n goto L_0x00b4\n L_0x00a5:\n r0 = move-exception\n L_0x00a6:\n r0.printStackTrace() // Catch:{ all -> 0x00a1 }\n if (r3 == 0) goto L_0x00b2\n boolean r0 = r3.isClosed() // Catch:{ all -> 0x00c0 }\n if (r0 != 0) goto L_0x00b2\n goto L_0x009d\n L_0x00b2:\n monitor-exit(r21)\n return r2\n L_0x00b4:\n if (r16 == 0) goto L_0x00bf\n boolean r2 = r16.isClosed() // Catch:{ all -> 0x00c0 }\n if (r2 != 0) goto L_0x00bf\n r16.close() // Catch:{ all -> 0x00c0 }\n L_0x00bf:\n throw r0 // Catch:{ all -> 0x00c0 }\n L_0x00c0:\n r0 = move-exception\n monitor-exit(r21)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.outcomes.OSOutcomeEventsCache.getNotCachedUniqueInfluencesForOutcome(java.lang.String, java.util.List):java.util.List\");\n }", "title": "" }, { "docid": "746c1efc2ccb52598c165dfdef0046fc", "score": "0.50616986", "text": "public Lock getLocalLock()\n {\n return localLock;\n }", "title": "" }, { "docid": "9e8869e0f4128bf092d90858627521b0", "score": "0.50597453", "text": "@Before\n public void init(){\n atomicInt = new AtomicInteger();\n atomicInt.set(0);\n }", "title": "" }, { "docid": "04f1e7a097a0abb27368c2b7eb8466bb", "score": "0.50594383", "text": "public static synchronized void test1()\n {\n foo = 3;\n System.out.println(foo);\n }", "title": "" }, { "docid": "e547a54de08e86897ce41e23812ae56d", "score": "0.5057249", "text": "@Test\n public void whenTwoThreadsIterateThenArrayListIterate() {\n MyList<String> list = new MyArrayList<>();\n list.add(\"1\");\n\n list.delete(0);\n\n list.add(\"1\");\n list.add(\"2\");\n list.add(\"3\");\n list.add(\"4\");\n list.add(\"5\");\n\n assertThat(list.size(), is(5));\n\n boolean del = list.delete(6);\n\n assertThat(del, is(false));\n\n del = list.delete(\"6\");\n\n assertThat(del, is(false));\n\n del = list.delete(\"1\");\n\n assertThat(del, is(true));\n assertThat(list.size(), is(4));\n\n del = list.delete(3);\n\n assertThat(del, is(true));\n assertThat(list.size(), is(3));\n\n list.add(0, \"7\");\n\n String[] expectedArray = {\"7\", \"2\", \"3\", \"4\"};\n\n Object[] actualArray = list.toArray();\n\n assertThat(actualArray, is(expectedArray));\n\n Iterator<String> iterator = list.iterator();\n List<String> actualList = new CopyOnWriteArrayList<>();\n while (iterator.hasNext()) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n if (iterator.hasNext()) {\n actualList.add(iterator.next());\n }\n }\n }).start();\n }\n actualArray = actualList.toArray();\n\n assertThat(actualArray, is(expectedArray));\n }", "title": "" }, { "docid": "28dbd4ca3301dd9293298b0d91b21c98", "score": "0.5053963", "text": "public abstract boolean isAtomic();", "title": "" }, { "docid": "1306f454ecfc61ffcb8a955329b2efc6", "score": "0.5052115", "text": "@Override\n public void storeFence() {\n UNSAFE.storeFence();\n }", "title": "" }, { "docid": "efb3c1fed85c2c9fdbbe667fd3b7f6ac", "score": "0.5049422", "text": "public synchronized long incrementThenGet() {\n increment();\n return get();\n }", "title": "" }, { "docid": "a7edf6698fdeac637e35c44c030819f6", "score": "0.5039316", "text": "@Test\r\n public void testSyncLoop() throws InterruptedException {\n Ref<Integer> x = new Ref<Integer>(0);\r\n AsyncFor.forloop((Self self)->{\r\n x.value++;\r\n System.out.println(\"loop:\" + x.value);\r\n AsyncFor.continueLoop(self);\r\n }).run();\r\n \r\n Thread.sleep(100000000);\r\n }", "title": "" }, { "docid": "8cf56154ef3f825f94f108db8a6a25eb", "score": "0.5031074", "text": "private static void datasetBeingModified()\r\n\t{\r\n\t\tSystem.out.println(\"Dataset of initial size 5 being modified while a thread is reading it.\\n\");\r\n\r\n\t\tfinal List<Integer> ints = getList(5);\r\n\t\tfinal Thread t1 = new ListManipulatorThread(0, ints);\r\n\r\n\t\tt1.start();\r\n\r\n\t\tSystem.out.println(\"Modifying dataset! Time to race!\");\r\n\r\n\t\tfor (int i = 10; i < 100; i++)\r\n\t\t\tints.add(i);\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Exit method only after the thread has finished.\r\n\t\t\tt1.join();\r\n\r\n\t\t\tSystem.out.println(\"\\nConclusion: The for loop wins and the thread did not catch up unless there's a stacktrace above this print.\");\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd519592ee7e8f825d0bd7bc7d4563a9", "score": "0.5030572", "text": "public void sync()\n {\n if (useCache)\n {\n SysLib.csync();\n } else\n {\n SysLib.sync();\n }\n }", "title": "" }, { "docid": "2e97ab6f828c2bd44cf57b763926b4e8", "score": "0.5023762", "text": "synchronized void some1() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // only next line need sync, now we shouldn't lock whole method\n count++;\n\n // do something doesn't need sync\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a1fd4795303257cc7d71d403a42afc62", "score": "0.50213844", "text": "void main(){\n long startTime = System.currentTimeMillis();\n while (true) {\n execute();\n status();\n int sum = 0;\n for (TransactionWrapper status : TransactionWrapperList) {\n sum += Math.abs(status.mode);\n }\n if (sum == 0) break;\n if (System.currentTimeMillis() - startTime >= 480000){\n for (TransactionWrapper transactionWrapper : TransactionWrapperList) {\n if (transactionWrapper.hasCommit == Boolean.TRUE) {\n transactionWrapper.mode = 4;\n transactionWrapper.hasCommit = Boolean.FALSE;\n } else if (transactionWrapper.mode != 5){\n transactionWrapper.mode = 5;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "39c93a47449f2e3339719d71be9394ba", "score": "0.50061345", "text": "public void run() {\n Transaction p_trans;\n while(true) {\n // artificially slowing PermP down for experimentation\n // try { Thread.sleep(2000); } catch (InterruptedException e) { }\nif (PERMP_PQUEUE_DEBUG_OUTPUT) {\n System.out.println(\"PermP run: before waitForTopMatch, parentq=\"\n + localServerImpl.parentq + \" trans_expected = \"\n + localServerImpl.parentq.getTransactionIdExpected()\n + \" locked = \" + localServerImpl.parentq.isLocked()\n + \" coordinating = \" + localServerImpl.parentq.isCoordinating());\n}\n p_trans = localServerImpl.parentq.waitForTopMatched();\nif (PERMP_PQUEUE_DEBUG_OUTPUT) {\n System.out.println(\"PermP run: after waitForTopMatch, parentq=\"\n + localServerImpl.parentq + \" trans_expected=\"\n + localServerImpl.parentq.getTransactionIdExpected()\n + \" locked = \" + localServerImpl.parentq.isLocked()\n + \" coordinating = \" + localServerImpl.parentq.isCoordinating()\n + \", removed p_trans=\" + p_trans);\n}\n if (p_trans != null) { // it might be null if interrupted\n Transaction notice_trans = p_trans.newTransCode(SELECTED_FOR_GLOBAL);\nif (PERMP_BASIC_DEBUG_OUTPUT) {\n System.out.println(\"PermP PermanentProcessor run: p_trans is not null\");\n System.out.println(\"PermP PermanentProcessor run: notice_trans=\"\n + notice_trans);\n}\n for(int i=0; i<localServerImpl.ServerTable.size();i++) // all but me\n localServerImpl.ServerExchangeOut(\n localServerImpl.ServerTable.get(i), notice_trans\n );\n int[] change = p_trans.getTransChange();\n int[] value = current.getValue();\nif (PERMP_BASIC_DEBUG_OUTPUT) {\n System.out.println(\"PermP PermanentProcessor run: change=\"\n + arrayToString(change) + \", value=\" + arrayToString(value));\n}\n try {\n commitFile=new RandomAccessFile(coordinatorLog,\"rw\");\nif (PERMP_BASIC_DEBUG_OUTPUT) {\n System.out.println(\"PermP PermanentProcessor run:\"\n + \" writing PRECOMMIT record to coordinator log\");\n}\n commitFile.writeInt(PRECOMMIT);\n commitFile.writeInt(numResourceTypes);\n for (int i = 0; i < numResourceTypes; i++) {\n commitFile.writeInt(change[i]);\n }\n for (int i = 0; i < numResourceTypes; i++) {\n commitFile.writeInt(value[i]);\n }\n commitFile.close();\n } catch(IOException e) {\n System.out.println (\n \"PermP Exception Ocurred while accessing the Commit file: \" + e\n );\n }\n expectedReplies=localServerImpl.ServerTable.size(); // all but me\n canCommit = true;\n int tblsize=expectedReplies;\n Transaction cc_trans = p_trans.newTransCode(CANCOMMIT);\n cc_trans = cc_trans.newTransChange(change);\nif (PERMP_BASIC_DEBUG_OUTPUT) {\n System.out.println(\"PermP PermanentProcessor run:\"\n + \" sending to servers CANCOMMIT cc_trans=\" + cc_trans);\n}\n for(int i=0; i!=tblsize;i++) {\n localServerImpl.ServerExchangeOut(\n localServerImpl.getCohort(i),cc_trans\n );\n }\n }//end if ptrans != null\n }// end while\n }", "title": "" }, { "docid": "c6e1f169a2312db372ac3e1c9ab7af53", "score": "0.50024635", "text": "public void incrementLocalSequenceNumber() {\n ++this.localSequenceNumber;\n }", "title": "" }, { "docid": "3e115805fe8675ec8625bf5a4f95408f", "score": "0.50016564", "text": "@Override\n public Object run() {\n return UnsafeAccess.UNSAFE;\n }", "title": "" }, { "docid": "3a8488f20d5f815f5750284e3886b2aa", "score": "0.49976873", "text": "@Override\n public Void call() throws Exception {\n while (true) {\n Integer putData = rwDictionary.put(count.incrementAndGet(), count.incrementAndGet());\n System.out.println(\"putData,\" + putData);\n // 插入数据后 休眠一段时间 不然其它线程无法获取数据\n Thread.sleep(500);\n }\n }", "title": "" }, { "docid": "c82df269041f3d1db202cb2e0e70e8d7", "score": "0.49926972", "text": "void priorToUpdate();", "title": "" }, { "docid": "5abacdf4a13b5d1a8a6fc21d6cfa2a00", "score": "0.49838048", "text": "public void run() {\n /*\n r4 = this;\n r0 = 0;\n r1 = r0;\n L_0x0002:\n if (r1 != 0) goto L_0x0015;\n L_0x0004:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ InterruptedException -> 0x0010 }\n r0 = r0.zzbeo;\t Catch:{ InterruptedException -> 0x0010 }\n r0.acquire();\t Catch:{ InterruptedException -> 0x0010 }\n r0 = 1;\n r1 = r0;\n goto L_0x0002;\n L_0x0010:\n r0 = move-exception;\n r4.zza(r0);\n goto L_0x0002;\n L_0x0015:\n r0 = r4.zzbew;\t Catch:{ all -> 0x0023 }\n r0 = r0.poll();\t Catch:{ all -> 0x0023 }\n r0 = (java.util.concurrent.FutureTask) r0;\t Catch:{ all -> 0x0023 }\n if (r0 == 0) goto L_0x004d;\n L_0x001f:\n r0.run();\t Catch:{ all -> 0x0023 }\n goto L_0x0015;\n L_0x0023:\n r0 = move-exception;\n r1 = com.google.android.gms.measurement.internal.zzw.this;\n r1 = r1.zzben;\n monitor-enter(r1);\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzbeo;\t Catch:{ all -> 0x00e1 }\n r2.release();\t Catch:{ all -> 0x00e1 }\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzben;\t Catch:{ all -> 0x00e1 }\n r2.notifyAll();\t Catch:{ all -> 0x00e1 }\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzbeh;\t Catch:{ all -> 0x00e1 }\n if (r4 != r2) goto L_0x00d1;\n L_0x0045:\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r3 = 0;\n r2.zzbeh = r3;\t Catch:{ all -> 0x00e1 }\n L_0x004b:\n monitor-exit(r1);\t Catch:{ all -> 0x00e1 }\n throw r0;\n L_0x004d:\n r1 = r4.zzbev;\t Catch:{ all -> 0x0023 }\n monitor-enter(r1);\t Catch:{ all -> 0x0023 }\n r0 = r4.zzbew;\t Catch:{ all -> 0x00a6 }\n r0 = r0.peek();\t Catch:{ all -> 0x00a6 }\n if (r0 != 0) goto L_0x0067;\n L_0x0058:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00a6 }\n r0 = r0.zzbep;\t Catch:{ all -> 0x00a6 }\n if (r0 != 0) goto L_0x0067;\n L_0x0060:\n r0 = r4.zzbev;\t Catch:{ InterruptedException -> 0x00a1 }\n r2 = 30000; // 0x7530 float:4.2039E-41 double:1.4822E-319;\n r0.wait(r2);\t Catch:{ InterruptedException -> 0x00a1 }\n L_0x0067:\n monitor-exit(r1);\t Catch:{ all -> 0x00a6 }\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x0023 }\n r1 = r0.zzben;\t Catch:{ all -> 0x0023 }\n monitor-enter(r1);\t Catch:{ all -> 0x0023 }\n r0 = r4.zzbew;\t Catch:{ all -> 0x00ce }\n r0 = r0.peek();\t Catch:{ all -> 0x00ce }\n if (r0 != 0) goto L_0x00cb;\n L_0x0077:\n monitor-exit(r1);\t Catch:{ all -> 0x00ce }\n r0 = com.google.android.gms.measurement.internal.zzw.this;\n r1 = r0.zzben;\n monitor-enter(r1);\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzbeo;\t Catch:{ all -> 0x00b8 }\n r0.release();\t Catch:{ all -> 0x00b8 }\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzben;\t Catch:{ all -> 0x00b8 }\n r0.notifyAll();\t Catch:{ all -> 0x00b8 }\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzbeh;\t Catch:{ all -> 0x00b8 }\n if (r4 != r0) goto L_0x00a9;\n L_0x0099:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r2 = 0;\n r0.zzbeh = r2;\t Catch:{ all -> 0x00b8 }\n L_0x009f:\n monitor-exit(r1);\t Catch:{ all -> 0x00b8 }\n return;\n L_0x00a1:\n r0 = move-exception;\n r4.zza(r0);\t Catch:{ all -> 0x00a6 }\n goto L_0x0067;\n L_0x00a6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00a6 }\n throw r0;\t Catch:{ all -> 0x0023 }\n L_0x00a9:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzbei;\t Catch:{ all -> 0x00b8 }\n if (r4 != r0) goto L_0x00bb;\n L_0x00b1:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r2 = 0;\n r0.zzbei = r2;\t Catch:{ all -> 0x00b8 }\n goto L_0x009f;\n L_0x00b8:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00b8 }\n throw r0;\n L_0x00bb:\n r0 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzFm();\t Catch:{ all -> 0x00b8 }\n r0 = r0.zzFE();\t Catch:{ all -> 0x00b8 }\n r2 = \"Current scheduler thread is neither worker nor network\";\n r0.log(r2);\t Catch:{ all -> 0x00b8 }\n goto L_0x009f;\n L_0x00cb:\n monitor-exit(r1);\t Catch:{ all -> 0x00ce }\n goto L_0x0015;\n L_0x00ce:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00ce }\n throw r0;\t Catch:{ all -> 0x0023 }\n L_0x00d1:\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzbei;\t Catch:{ all -> 0x00e1 }\n if (r4 != r2) goto L_0x00e4;\n L_0x00d9:\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r3 = 0;\n r2.zzbei = r3;\t Catch:{ all -> 0x00e1 }\n goto L_0x004b;\n L_0x00e1:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00e1 }\n throw r0;\n L_0x00e4:\n r2 = com.google.android.gms.measurement.internal.zzw.this;\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzFm();\t Catch:{ all -> 0x00e1 }\n r2 = r2.zzFE();\t Catch:{ all -> 0x00e1 }\n r3 = \"Current scheduler thread is neither worker nor network\";\n r2.log(r3);\t Catch:{ all -> 0x00e1 }\n goto L_0x004b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzw$zzd.run():void\");\n }", "title": "" }, { "docid": "4d45acabcce349f38f6b332c80781d30", "score": "0.49835888", "text": "public void mo39645b_() {\n this.f24133H = Thread.currentThread();\n this.f24142p = true;\n }", "title": "" }, { "docid": "803ca6a8cd3c44e9663ca4e7ebaf6ecc", "score": "0.4978153", "text": "public synchronized void bye() {\n // your code\n }", "title": "" }, { "docid": "72e81f9c0d1248b2396ff8095e2924d7", "score": "0.49775612", "text": "@Test\n public void concurrentInsertion() {\n UserDQ user1 = new UserDQ(\"User1\");\n UserDQ user2 = new UserDQ(\"User2\");\n\n user1.addDocument(0);\n user2.addDocument(0);\n\n // After startup, both users sees an empty String\n assertEquals(\"\", user1.getView(0));\n assertEquals(\"\", user2.getView(0));\n\n // Both users load the initial state: ABCD\n user1.pushRequest(\"LoadUser|0|0|INSERT|0|3|ABCD|1\");\n user2.pushRequest(\"LoadUser|0|0|INSERT|0|3|ABCD|1\");\n assertEquals(\"ABCD\", user1.getView(0));\n assertEquals(\"ABCD\", user2.getView(0));\n\n // User1 inserts X after A in his GUI \n // but his syncCopy remains unchanged\n user1.createRequest(0, \"INSERT|1|0|X\");\n assertEquals(\"AXBCD\", user1.getView(0));\n assertEquals(\"ABCD\", user1.getSyncCopy(0));\n\n // User2 inserts Y after C in her GUI \n // but her syncCopy remains unchanged\n user2.createRequest(0, \"INSERT|3|0|Y\");\n assertEquals(\"ABCYD\", user2.getView(0));\n assertEquals(\"ABCD\", user2.getSyncCopy(0));\n\n // User1 sends his request to the server. \n String request1 = user1.pullRequest();\n assertEquals(\"User1|0|0|INSERT|1|0|X|1\", request1);\n\n // User1 receives his change back and should \n // still see AXBCD but now it's also his syncCopy\n user1.pushRequest(\"User1|0|0|INSERT|1|0|X|2\");\n assertEquals(\"AXBCD\", user1.getView(0));\n assertEquals(\"AXBCD\", user1.getSyncCopy(0));\n\n // User2 receives User1's change and should now \n // see AXBCYD while holding AXBCD\n user2.pushRequest(\"User1|0|0|INSERT|1|0|X|2\");\n assertEquals(\"AXBCYD\", user2.getView(0));\n assertEquals(\"AXBCD\", user2.getSyncCopy(0));\n\n // User2 sends his request to the server. \n String request2 = user2.pullRequest();\n assertEquals(\"User2|0|0|INSERT|3|0|Y|1\", request2);\n\n // User1 receives the change made by User2\n // and should see AXBCYD\n user1.pushRequest(\"User2|0|0|INSERT|4|0|Y|3\");\n assertEquals(\"AXBCYD\", user1.getView(0));\n assertEquals(\"AXBCYD\", user1.getSyncCopy(0));\n\n // User2 receives his change back and should \n // now both see and hold AXBCYD\n user2.pushRequest(\"User2|0|0|INSERT|4|0|Y|3\");\n assertEquals(\"AXBCYD\", user2.getView(0));\n assertEquals(\"AXBCYD\", user2.getSyncCopy(0));\n }", "title": "" }, { "docid": "0116db76b61937edbe133966b192d431", "score": "0.4970099", "text": "@Override\r\n\tpublic void doConcurrentJob() {\n\t\tobjClassUsedSynchronized.method1();\r\n\t}", "title": "" }, { "docid": "da1851994ffb8b0b3e4ded527f63cc1d", "score": "0.49688166", "text": "@Override\n public void run(){\n\ttry{\n if(!proxy.getIdentifier().equals(sender) && ((System.currentTimeMillis()-proxy.getStartTime())<1000 || cause.equals(\"Network\"))){\n for(int i=0; i<mergingMethod.length; i++){\n if(mergingMethod[i].getName().equals(\"putState\")){\n try{ \n result = mergingMethod[i].invoke(server, args);\n if(DEBUG) {\n System.out.println(\"put global state result is: \"+result);\n }\n }\n catch(IllegalAccessException e){\n e.printStackTrace();\n }\n catch(InvocationTargetException e){ \n result = e;\n }\n } \n } \n if(DEBUG) {\n System.out.println(\"putting new state\");\n }\n proxy.synchronizedView(); \n } \n }\n catch(NullPointerException e){\n return;\n } \n }", "title": "" }, { "docid": "faf0058c55116bb45ab2a6bf968ab8c7", "score": "0.49683142", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "ebe52b36e8611e219ccf651488c2b230", "score": "0.49590516", "text": "public synchronized void a() {\r\n while (this.e) {\r\n }\r\n this.e = true;\r\n }", "title": "" } ]
4195d1e5e9b2395f418e61e244e8fcb9
listing will remove fee if it is taken down
[ { "docid": "119b4728664677340c4228fe702dce5d", "score": "0.6386641", "text": "public void removeFee(String feeName) {\n // TODO implement\n additionalFees.remove(feeName);\n }", "title": "" } ]
[ { "docid": "f0cad2b06c5d85a2306a95c7c52212de", "score": "0.6121239", "text": "private void freeMoney() {\n\t\t\n\t}", "title": "" }, { "docid": "ad5e4c7b03be45a1f445f5c12c5c7fff", "score": "0.5983144", "text": "public void removeAddedFeeHeadAndInstallment() throws Exception {\r\n\r\n\t\tclickOnButton(btnRemove);\r\n\t\tlog(\"clicked on remove button and added head is removed and object is:-\" + chkFine1.toString());\r\n\t\tThread.sleep(1000);\r\n\t}", "title": "" }, { "docid": "fca4a9afddd6142371e20edc2c205a09", "score": "0.5911798", "text": "public void setOverdraftFee(double fee) {\n overdraftfee = fee;\n }", "title": "" }, { "docid": "d7dbf3d187c7f0365344b113e30f60aa", "score": "0.58668345", "text": "public void setFee(int fee){\n this.fee = fee;\n }", "title": "" }, { "docid": "fbe1fd0f41bfb4fb997457d2c308afd0", "score": "0.5775876", "text": "public void setFee(double fee) {\n this.fee = fee;\n }", "title": "" }, { "docid": "155cb9086cdd7fd49828407a1f598027", "score": "0.5744889", "text": "public void setFee(float value) {\n this.fee = value;\n }", "title": "" }, { "docid": "ad2f3f2bef603d225ecef04f44b1f299", "score": "0.57324815", "text": "public void reset(){\n guests.get(0).date.deleteFromBookedDates();\n price=defaultPrice;\n additionalFees=0;\n guests.clear();\n }", "title": "" }, { "docid": "0cc58ad932cb736b1b6b78edb1e9a194", "score": "0.57139456", "text": "private void updatePayList(boolean isEarnestInHouseAmount) throws BOSException {\n\n\t\t\t\n\t\tSHEPayTypeInfo payType = (SHEPayTypeInfo) this.f7PayType.getValue();\n\t\tif (payType != null) {\n\t\t\tPayListEntryCollection payList = payType.getPayLists();\n\t\t\tBigDecimal eareatMoney = FDCHelper.ZERO;\n\t\t\tBigDecimal remain = this.txtTotalAmount.getBigDecimalValue();\n\t\t\tBigDecimal contractTotalAmount= this.txtTotalAmount.getBigDecimalValue();\n\t\t\tif (remain == null) \tremain = FDCHelper.ZERO;\n\t\t\t\n\t\t\tCRMHelper.sortCollection(payList, \"seq\", true);\n\t\t\tList toAddRowPurEntry = new ArrayList();\n\t\t\t\t\n\t\t\tfor (int i = 0; i < payList.size(); i++) {\n\t\t\t\tPayListEntryInfo entry = payList.get(i);\n\t\t\t\tPurchasePayListEntryInfo purEntry = new PurchasePayListEntryInfo();\n\t\t\t\tDate curDate = new Date();\n\t\t\t\tif (entry.getBizTime().equals(BizTimeEnum.AppTime)) {\n\t\t\t\t\tcurDate = entry.getAppDate();\n\t\t\t\t} else {\n\t\t\t\t\tcurDate = new Date();\n\t\t\t\t\tint monthLimit = entry.getMonthLimit();\n\t\t\t\t\tint dayLimit = entry.getDayLimit();\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(curDate);\n\t\t\t\t\tcal.add(Calendar.MONTH, monthLimit);\n\t\t\t\t\tcal.add(Calendar.DATE, dayLimit);\n\t\t\t\t\tcurDate = cal.getTime();\n\t\t\t\t}\n\t\t\t\tpurEntry.setAppDate(curDate);\n\t\t\t\tBigDecimal amount = FDCHelper.ZERO;\n\t\t \tBigDecimal buildingArea = (BigDecimal)this.getUIContext().get(\"buildingArea\");\n\t\t \tBigDecimal roomArea = (BigDecimal)this.getUIContext().get(\"roomArea\");\n\t\t \t\n\t\t\t\tMoneyDefineInfo moneyDefine = entry.getMoneyDefine();\n\t\t\t\tif(moneyDefine.getMoneyType().equals(MoneyTypeEnum.ReplaceFee)&&entry.getCollection()!=null){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCollectionInfo collection=CollectionFactory.getRemoteInstance().getCollectionInfo(new ObjectUuidPK(entry.getCollection().getId()));\n\t\t\t\t\t\tamount=CRMHelper.getSubstituteAmountByCollection(null, collection,contractTotalAmount,contractTotalAmount,buildingArea, roomArea,room);\n\t\t\t\t\t} catch (BOSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (EASBizException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif (entry.getValue() != null) {\n\t\t\t\t\t\tamount = entry.getValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tBigDecimal proportion = entry.getProportion();\n\t\t\t\t\t\tamount = contractTotalAmount;\n\t\t\t\t\t\tif (amount == null) {\n\t\t\t\t\t\t\tamount = FDCHelper.ZERO;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tamount = amount.multiply(proportion).divide(new BigDecimal(\"100\"), 2, BigDecimal.ROUND_HALF_UP);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (moneyDefine.getMoneyType().equals(MoneyTypeEnum.EarnestMoney)) {\n\t\t\t\t\teareatMoney = eareatMoney.add(amount);\n\t\t\t\t} else {\n\t\t\t\t\t//定金计入楼款时\n\t\t\t\t\tif(isEarnestInHouseAmount){\n\t\t\t\t\t\tamount = amount.subtract(eareatMoney);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\teareatMoney = FDCHelper.ZERO;\n\t\t\t\t\tif (amount.compareTo(FDCHelper.ZERO) < 0) {\n\t\t\t\t\t\tamount = FDCHelper.ZERO;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(SHEManageHelper.isMergerToContractMoneyType(moneyDefine.getMoneyType(),isEarnestInHouseAmount)){\n\t\t\t\t\tif (amount.compareTo(remain) > 0) {\n\t\t\t\t\t\tamount = remain;\n\t\t\t\t\t\tremain = FDCHelper.ZERO;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tremain = remain.subtract(amount);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i == payList.size() - 1) {\n\t\t\t\t\tamount = amount.add(remain);\n\t\t\t\t}\n\t\t\t\tpurEntry.setAppAmount(amount);\n\t\t\t\tpurEntry.setMoneyDefine(moneyDefine);\n\t\t\t\tpurEntry.setCurrency(entry.getCurrency());\n\t\t\t\ttoAddRowPurEntry.add(purEntry);\n\t\t\t}\n\t\t\tthis.payListTable.removeRows();\n\t\t\tfor (int i = 0; i < toAddRowPurEntry.size(); i++) {\n\t\t\t\taddPayListEntryRow((PurchasePayListEntryInfo) toAddRowPurEntry.get(i));\n\t\t\t}\n\t\t\tupdateLoanAndAFAmount();\n\t\t}\n\t}", "title": "" }, { "docid": "d7039a979a04365c3650d5e22f4e3b58", "score": "0.57055193", "text": "public void removeFortress() {\n\t\tfortressesCount--;\n\n\t}", "title": "" }, { "docid": "7a72ab68f9e87c33ae4981c82ed129ba", "score": "0.57050425", "text": "public void cleanRefFeeItemCache()\r\n\t{\r\n\t\tif (!m_feeItemCache.isEnabled())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tsynchronized (m_feeItemCache)\r\n\t\t{\r\n\t\t\tm_feeItemCache.clear();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8a07c994d720e9a13f72defa7f1b6e59", "score": "0.5575535", "text": "void unsetPurchasePrice();", "title": "" }, { "docid": "bbee2df1ef18b98ffa28d505cd266793", "score": "0.55664104", "text": "public synchronized void resetItemFeatsList() {\r\n itemFeatsList = null;\r\n }", "title": "" }, { "docid": "e560317ec33ab47fb879a00dac2f14cc", "score": "0.5566208", "text": "public void remove(double amount);", "title": "" }, { "docid": "965ca50b8e7f408eecd995b16a9b1df5", "score": "0.5545619", "text": "void unsetUnitAdditionalShippingCharges();", "title": "" }, { "docid": "4e6c30a091921d33ac4a111ec75376d4", "score": "0.55425537", "text": "public double getFee() {\n return fee;\n }", "title": "" }, { "docid": "2413cc74368e3bd6c1cab42f812c8756", "score": "0.553853", "text": "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void applyAndRemoveFees() throws Exception {\n String pendingApprovalAccountId = \"000100000000043\";\n String partialApplicationAccountId = \"000100000000044\";\n String applicationApprovedAccountId = \"000100000000045\";\n String client = \"WeeklyClient Monday\";\n\n String oneTimeFee = feeTestHelper.createNoRateFee(\"oneTimeFee\", FeesCreatePage.SubmitFormParameters.LOAN, \"Upfront\", 10);\n String periodicFee = feeTestHelper.createPeriodicRateFee(\"periodicFee\", FeesCreatePage.SubmitFormParameters.LOAN, FeesCreatePage.SubmitFormParameters.PERIODIC_FEE_FREQUENCY, 1, 10, FeesCreatePage.SubmitFormParameters.LOAN_AMOUNT);\n\n ChargeParameters feeParameters = new ChargeParameters();\n feeParameters.setAmount(\"10\");\n feeParameters.setType(oneTimeFee);\n // ONE TIME FEE\n // add and remove the fee from a pending approval account\n loanTestHelper.applyChargeUsingFeeLabel(pendingApprovalAccountId, feeParameters);\n loanTestHelper.verifyOneTimeFee(oneTimeFee, 1);\n loanTestHelper.removeOneTimeFee(1);\n loanTestHelper.verifyNoOneTimeFeesExist();\n\n // add and remove the fee from a partial application account\n loanTestHelper.applyChargeUsingFeeLabel(partialApplicationAccountId, feeParameters);\n loanTestHelper.verifyOneTimeFee(oneTimeFee, 1);\n loanTestHelper.removeOneTimeFee(1);\n loanTestHelper.verifyNoOneTimeFeesExist();\n\n // add and verify that the fee cannot be removed from an application approved account\n loanTestHelper.applyChargeUsingFeeLabel(applicationApprovedAccountId, feeParameters);\n loanTestHelper.verifyOneTimeFee(oneTimeFee, 1);\n loanTestHelper.verifyNoOneTimeFeeRemovalLinkExists(1);\n \n \n // PERIODIC FEE\n feeParameters.setType(periodicFee);\n \n CreateLoanAccountSearchParameters searchParams = new CreateLoanAccountSearchParameters();\n searchParams.setSearchString(client);\n searchParams.setLoanProduct(\"WeeklyClientFlatLoanWithNoFee\");\n\t\tDisburseLoanParameters disburseParams = new DisburseLoanParameters();\n\t\tdisburseParams.setDisbursalDateDD(\"28\");\n\t\tdisburseParams.setDisbursalDateMM(\"02\");\n\t\tdisburseParams.setDisbursalDateYYYY(\"2011\");\n\t\tdisburseParams.setPaymentType(PaymentParameters.CASH);\n\t\tdisburseParams.setAmount(\"10,000\");\n\t\t\n // add and verify that the fee can be removed from an application approved account\n loanTestHelper.applyChargeUsingFeeLabel(\"000100000000047\", feeParameters);\n loanTestHelper.verifyNoPeriodicFee(periodicFee, 1);\n loanTestHelper.removePeriodicFee(1);\n\t\t\n // add and verify that the fee can't be removed from an application approved account\n // after repay of first instalment\n PaymentParameters paymentParams = new PaymentParameters();\n paymentParams.setTransactionDateDD(\"28\");\n paymentParams.setTransactionDateMM(\"02\");\n paymentParams.setTransactionDateYYYY(\"2011\");\n paymentParams.setPaymentType(PaymentParameters.CASH);\n paymentParams.setAmount(\"3000\");\n paymentParams.setReceiptId(\"\");\n paymentParams.setReceiptDateDD(\"\");\n paymentParams.setReceiptDateMM(\"\");\n paymentParams.setReceiptDateYYYY(\"\");\n \n DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);\n DateTime targetTime = new DateTime(2011, 2, 28, 12, 0, 0, 0);\n dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);\n\n\t\tString accountWithDisburs = loanTestHelper.createActivateAndDisburseDefaultLoanAccount(searchParams , disburseParams ).getAccountId();\n loanTestHelper.applyChargeUsingFeeLabel(accountWithDisburs, feeParameters);\n loanTestHelper.applyPayment(accountWithDisburs, paymentParams);\n loanTestHelper.removePeriodicFee(1);\n loanTestHelper.verifyValidationErrorAppear();\n \n \n }", "title": "" }, { "docid": "3cda5f085ae4b87d35bf9ec16ffba6e1", "score": "0.5537536", "text": "@Override\n\tpublic int furnitureRemove(Furniture furniture) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "dffe060fdad6e96b2e390eb417a843fc", "score": "0.55328035", "text": "void deleteHealing(int id){\n Healing healing = healings.get(id);\n logs.document(healing.getUid())\n .delete();\n //now changing amount due\n Objects.requireNonNull(logs.getParent()).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n double due = 0.00, rate = 0.00;\n if(task.isSuccessful() && task.getResult()!=null){\n if(task.getResult().contains(\"Rate\")){\n rate = Objects.requireNonNull(task.getResult().getDouble(\"Rate\"));\n }\n if(task.getResult().contains(\"Due\"))\n due = Objects.requireNonNull(task.getResult().getDouble(\"Due\"));\n }\n else\n Log.d(\"FIRESTORE\", String.valueOf(task.getException()));\n\n logs.getParent().update(\"Due\",due-rate);//updating amount due\n }\n });\n }", "title": "" }, { "docid": "42bf3bfaf249160f6ef0740e2a22f686", "score": "0.55291694", "text": "public void setFee(java.lang.String fee) {\n this.fee = fee;\n }", "title": "" }, { "docid": "6f7aaec2d38ed0c907b3f4aa0c4d74e3", "score": "0.55200833", "text": "public float getFee() {\n return fee;\n }", "title": "" }, { "docid": "11bb101582ae794fe4cc5180d1ab09a9", "score": "0.55188227", "text": "public void removeDiscount() {\n\t\tdiscount = new BigDecimal(1);\n\t\tdiscountPercent = \"0\"; \n\t\thasDiscount = false;\n\t}", "title": "" }, { "docid": "ddf1f2a939b2fba1a9566b4e7534fc24", "score": "0.5516234", "text": "private void accountRequestRemoval(Request rqst) {\n\t\tcapacityFilledInBytes-=rqst.size;\n\t\telementsInCache--;\n\t}", "title": "" }, { "docid": "d71891b59f1858bd2b881d6f9852e8ed", "score": "0.55083686", "text": "public void feeAssessment(){\n monthlyFee=monthlyFee+3;\n }", "title": "" }, { "docid": "5ea7dbc318805147f4f2d25b34cd0f73", "score": "0.5499442", "text": "private synchronized void collectSubscriptionFee() {\n for (User u : users) {\n BigDecimal toPay = u.getSubscriptionPayment();\n BigDecimal reset = new BigDecimal(0.00).setScale(2, RoundingMode.HALF_EVEN);\n serviceBankAccount = serviceBankAccount.add(toPay);\n u.randomizeSubscription();\n }\n// System.out.println(serviceBankAccount);\n }", "title": "" }, { "docid": "5d9cb795aed20ba6c538b437c991bca3", "score": "0.5489003", "text": "public void unsetFax()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FAX$22, 0);\n }\n }", "title": "" }, { "docid": "c5926adb19b8502881a4dfea5bfdccc9", "score": "0.5477984", "text": "public double caclulShippingFree() {\r\n\t\tdouble shipping = 0.0;\r\n//\t\tif (calculerNumTotalQantity() != 0.0 /*& order.getShippingMethod().getId()==1*/) {\r\n//\t\t return 1.5;\r\n//\t\t}\r\n\t\t\r\n\t\treturn (double)Math.round(shipping*100d)/100d;\r\n\t}", "title": "" }, { "docid": "35e8313b5386c22e34e38cf8220a1f2f", "score": "0.54774123", "text": "public void setFee(java.lang.String fee)\r\n {\r\n this._fee = fee;\r\n }", "title": "" }, { "docid": "c9a4441dae63758408f094bff7e3a6c5", "score": "0.54746747", "text": "void unsetUnitShippingCharges();", "title": "" }, { "docid": "1bf6b804282f0e36493fd8a5d139c92f", "score": "0.5461664", "text": "private void clearFunding() {\n if (this.grants.size() > 0) {\n for (int i = 0; i < this.grants.size(); i++) {\n int myGrant = this.grants.get(i);\n if (myGrant <= 0) {\n this.grants.removeNondestructively(i);\n i--;\n }\n }\n }\n }", "title": "" }, { "docid": "60c77830cc2f3d88779946a0d22a87ca", "score": "0.5457273", "text": "public void setFeeamount(Long feeamount) {\n this.feeamount = feeamount;\n }", "title": "" }, { "docid": "d7728e79da681dacf41ee2e32a1e04eb", "score": "0.54389125", "text": "public void removeExpiredMeetings() {\n handle(new RemoveExpiredMeetings());\n }", "title": "" }, { "docid": "1f1b587bb846c709a34d9210696ad3f7", "score": "0.5426147", "text": "public void setFee(Integer fee) {\n\t\tthis.fee = fee;\n\t}", "title": "" }, { "docid": "0cf5cdd42eb2c852817f402b4a355542", "score": "0.5417716", "text": "public void calcRegistrationFee(){\n if (scoutList.getSize() == 0){\n System.out.println(\"No Scouts have signed up yet!\");\n }\n else {\n double sum = 0;\n String group = \"BeaverScout\";\n sum = (Double.parseDouble(scoutList.registrationFee(group)));\n group = \"CubScout\";\n sum = sum + (Double.parseDouble(scoutList.registrationFee(group)));\n group = \"Scouter\";\n sum = sum + (Double.parseDouble(scoutList.registrationFee(group)));\n System.out.println(\"Fees Report\");\n System.out.println(\"Total Fees: €\" + sum);\n }\n\n }", "title": "" }, { "docid": "aca82b13d8bcbacc00b0414fddaf1fc1", "score": "0.5404355", "text": "public void useSupplies(int amount){\r\n this.changeAmount(-amount);\r\n }", "title": "" }, { "docid": "22883fea528df2c9bf09edcedec948f7", "score": "0.53940576", "text": "public void changeUnusable(int amount) {\n unusableFunds += amount;\n }", "title": "" }, { "docid": "184875b4acd42fe79baaa86ac7da5012", "score": "0.5384081", "text": "void useTaxiTicket() {\n this.taxiTickets--;\n }", "title": "" }, { "docid": "e9853e178ff02d824cf6e1b58d8b3327", "score": "0.53717226", "text": "public void setFee(BigDecimal fee) {\n this.fee = fee;\n }", "title": "" }, { "docid": "730131c90ecd14fad9f6d910c9fa78fc", "score": "0.5363342", "text": "public void removeGold(int amount) {\n \tcurrentGold -= amount;\n }", "title": "" }, { "docid": "abf1591373d216149871dd443b9f1893", "score": "0.5357197", "text": "public int getFee(){\n return fee;\n }", "title": "" }, { "docid": "1f8f2a070e3e7aa735b7543fd077d5dd", "score": "0.53479725", "text": "public void deleteItemImplementation(OrderDetailsJSP inp)\n{\n\tfor(OrderDetailsJSP x : order.get(hotelName))\n\t\tif(x.getItem().equals(inp.item))\n\t\t{\n\t\t\torder.get(hotelName).remove(x);\n\t\t\tbreak;\n\t\t}\nint totalBill=0;\nArrayList<OrderDetailsJSP> temp1 = new ArrayList<>();\n\n\tif(order.get(hotelName)!=null)\n\tfor(OrderDetailsJSP y : order.get(hotelName))\n\t\t{\n\t\ttemp1.add(new OrderDetailsJSP(y.getItem(),y.getQuantity(),y.quantity*y.getPrice()));\n\t\ttotalBill+=y.getQuantity()*y.getPrice();\n\t\t}\n\tbill=totalBill;\n\n}", "title": "" }, { "docid": "6917fc334e3b7eec2301940c2a369f75", "score": "0.5344755", "text": "void purgeExpired();", "title": "" }, { "docid": "9a2824870ef1dc3d1363355800962c62", "score": "0.5340276", "text": "public boolean bookingFeeSilverServiceCar(double fee) {\n\t\tif (fee < 3) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f5b20de28f6d5aee454ac4612f92b1eb", "score": "0.5326483", "text": "private void maintainDailyBalance() {\n ws.client.meps.MEPSWebService port = service.getMEPSWebServicePort();\n port.maintainDailyBalance();\n }", "title": "" }, { "docid": "5cc8ce887b6ea2a2c1f7f7e2f804b4b1", "score": "0.530345", "text": "public void removeFromPendingOrders() {\n foodItemsToBemade.removeAllElements();\n String query = \"SELECT foodtobemade.foodname FROM foodtobemade LEFT JOIN readyorders ON readyorders.foodname = foodtobemade.foodname WHERE readyorders.foodname IS NULL\";\n try {\n PreparedStatement ps = conn.prepareCall(query);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n foodItemsToBemade.add(rs.getString(1));\n }\n listPendingFoodItems.setListData(foodItemsToBemade);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Issue while fetching foodname: \" + e);\n }\n }", "title": "" }, { "docid": "0df643f10be8f875b404f0c8ac786bad", "score": "0.5299435", "text": "public void encerraFase() {\n\t\tremove(FaseAtual);\n\t\tFaseAtual.removeAll();\n\t\tFaseAtual.validate();\n\t\tFaseAtual.repaint();\n\t\tFaseAtual= null;\n\t\tupdateTela();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "effa0e6a2010e39bf30bed2830301fbb", "score": "0.52979445", "text": "private void trashAgenda(CostForAction costForAction, Flow next) {\r\n\r\n\t\tint agenda = costForAction.getCost().getValue(CostType.TRASH_AGENDA);\r\n\t\tif (agenda > 0) {\r\n\t\t\t// TODO Il faut demander à l'utilisateur quel agenda\r\n\r\n\t\t} else\r\n\t\t\tspendCredits(costForAction, next);\r\n\t}", "title": "" }, { "docid": "f397b556aa747f9a2e4ff9ecf7a65aa6", "score": "0.52960265", "text": "void unsetRefundShippingCharges();", "title": "" }, { "docid": "bb3cc1fdde546d93883e3e625c2eb973", "score": "0.5294447", "text": "void unsetFax();", "title": "" }, { "docid": "ef5948d7422e5e016413b428dd0752a0", "score": "0.5292578", "text": "public void removeFuse(){\n this.fuses -= 1;\n }", "title": "" }, { "docid": "e4a64b255e53fb9295c7105423313dd6", "score": "0.5279206", "text": "public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }", "title": "" }, { "docid": "fb56e28339ad817122ea86aa44c15743", "score": "0.52689064", "text": "public void decRequest(Premium e) {\r\n if (e.isPremium())\r\n e.decPremium();\r\n else if (e.isBasic())\r\n e.decBasic();\r\n }", "title": "" }, { "docid": "47552b176e94207d81243312066f7e9a", "score": "0.5267636", "text": "public void cleanCostDetails() {\n\t\tString[] totalEls = getAllPackages();\n\t\tcost_scope.reset(totalEls);\n\t\tcost_cap.setText(\"\");\n\t\tcurrency.setText(\"\");\n\t}", "title": "" }, { "docid": "7f5ad246cb9c2161e666c984d011ccb8", "score": "0.52590156", "text": "public void freeParking(Player player){\r\n player.addToWallet(FREEPARKING_FEE);\r\n }", "title": "" }, { "docid": "db25a1d7eb28734e0cc5f2db76a2ab3a", "score": "0.52588904", "text": "public void decreaseDiscountedAmount() {\n\t\tfDiscountedAmount--;\n\t}", "title": "" }, { "docid": "791fa3a15bfde3c1723e49aded360552", "score": "0.52492404", "text": "public void removeOldItems() {\n Date curr = new Date(System.currentTimeMillis());\n if (getDateDiff(lastPurchase, curr, TimeUnit.HOURS) > 0) {\n\n LoggerSingleton.getInstance().info(\"latest purchase too old, will be removed. Last \" +\n \"Purchase (\" + lastPurchase + \"), current date (\" + curr + \")\");\n\n lastPurchase = curr;\n\n for (Item item : itemRepository.findAllByStatus(true)) {\n item.setDestination(null);\n // delete entity from database\n itemRepository.delete(item);\n\n LoggerSingleton.getInstance().info(\"removed item: \" + item);\n }\n\n }\n }", "title": "" }, { "docid": "7b2dd622ca2bca458dde797c3885af3c", "score": "0.52433014", "text": "public Long getFeeamount() {\n return feeamount;\n }", "title": "" }, { "docid": "41c0d810a6efc5749cae167880b2436e", "score": "0.5237163", "text": "public void removeExpiredTransaction() {\n\n for (Transaction data: requiredTransaction) {\n if (IntervalCheck(data) == false) {\n synchronized(BankingService.class) {\n requiredTransaction.remove(data);\n updateValidTransaction(data);\n }\n }\n }\n }", "title": "" }, { "docid": "5ad79a6d2fb02d75f433479d99e77c33", "score": "0.52358824", "text": "void unsetShippingDateMax();", "title": "" }, { "docid": "26c4f29e760c196f7118d60d9a483ec4", "score": "0.5234539", "text": "public static void clearBuy() {\r\n \tpreventBuy = true;\r\n }", "title": "" }, { "docid": "51605643293c1fd9c41373f15acf7ae6", "score": "0.5226746", "text": "public void subtractExpenses() {\n\t\tmaster.profile.subtractDailyExpenses();\n\t}", "title": "" }, { "docid": "010ad983969493b953768e41d1fb1279", "score": "0.52100044", "text": "public BigDecimal getFee() {\n return fee;\n }", "title": "" }, { "docid": "d778b3b701e0e19009e893a46c70aefc", "score": "0.5202114", "text": "@Test\n\tpublic void testLateFee2() {\n\t\tLibrary l = new Library(\"Library\");\n\t\tPerson p = new Person(\"Name\", \"Address\", 69);\n\t\tArrayList<Person> people = new ArrayList<Person>();\n\t\tpeople.add(p);\n\t\tl.setPatrons(people);\n\t\tdouble fee = l.lateFee(p);\n\t\tassertTrue(fee == 0);\n\t}", "title": "" }, { "docid": "60d34e830f2e102710270656f59f9c8f", "score": "0.5200966", "text": "@Transactional\n\tpublic int removeLectureFeePay(LectureFeePayVO model) throws Exception {\n\t\treturn bizBasicDao.deleteLectureFeePay(model);\n\t}", "title": "" }, { "docid": "984951c00f1842863b75ddfa8586a603", "score": "0.5194959", "text": "@Test\n\tpublic void testOutterRingFee() {\n\t\tCalendar startTime = Calendar.getInstance();\n\t\tstartTime.set(Calendar.HOUR, 8);// Day\n\t\tDouble distance = 15.0;\n\t\tInteger waitTime = 50;\n\t\tBoolean isStartSection = true;\n\t\tBoolean isOutterRing = true;\n\n\t\tDriveSection section = new DriveSection(startTime.getTime(), distance, waitTime, isStartSection);\n\t\tdriveSections.add(section);\n\n\t\tDouble expectedFee = Double.valueOf(49.0);\n\t\tDouble fee = TexiFeeUtil.getFee(driveSections, isOutterRing);\n\t\tAssert.assertEquals(expectedFee, fee);\n\t}", "title": "" }, { "docid": "410947ab8bf5f3de5d7cdbb01a8bf27b", "score": "0.51792395", "text": "void unsetInitialPrice();", "title": "" }, { "docid": "af9c570fd3c0d56f9674c59a7caba831", "score": "0.5171204", "text": "public java.lang.String getFee()\r\n {\r\n return this._fee;\r\n }", "title": "" }, { "docid": "26dbd89a3fa9dbd0c7fb52c406041631", "score": "0.5166842", "text": "@Test\n\tpublic void testLateFee1() {\n\t\tLibrary l = new Library(\"Library\");\n\t\tArrayList<Book> books = new ArrayList<Book>();\n\t\tBook hp = new Book(\"Harry Potter\", \"JK Rowling\", 69, 10);\n\t\tBook hp1 = new Book(\"Harry Potter\", \"JK Rowling\", 70, 10);\n\t\tbooks.add(hp);\n\t\tbooks.add(hp1);\n\t\tPerson p = new Person(\"Name\", \"Address\", 69);\n\t\tArrayList<Person> people = new ArrayList<Person>();\n\t\tpeople.add(p);\n\t\tl.setPatrons(people);\n\t\tl.setLibraryBooks(books);\n\t\tl.checkOut(p, hp, \"12 12 2017\");\n\t\tl.setCurrentDate(\"12 13 2017\");\n\t\tdouble fee = l.lateFee(p);\n\t\tassertTrue(fee == .10);\n\t}", "title": "" }, { "docid": "0a70954bf77d30628c54c5d8cd007a8a", "score": "0.5165056", "text": "public void depoweredBy(double amount);", "title": "" }, { "docid": "24190922a6a34d4706168eeb94d159fd", "score": "0.51642174", "text": "private void buttoncancelopearations() {\n if (listClassData.size() > 0) {\n taxTV.setText(\"0\");\n grandtotalTV.setText(\"0\");\n listClassData.clear();\n itemshowRecylerview.setAdapter(new ItemDetailsAdapter(MainActivity.this, listClassData));\n } else {\n Toasty.info(MainActivity.this, \"No more items to delete\", Toast.LENGTH_SHORT, true).show();\n }\n }", "title": "" }, { "docid": "344b2eef7118138e6d6f7fe67806dd73", "score": "0.5150841", "text": "private void updateDueList() {\n }", "title": "" }, { "docid": "ddd68e1394158214bb42f1b02fbc79ee", "score": "0.51500756", "text": "@Transactional\n\tpublic int removeTeacherLectureFee(TeacherLectureFeeVO model) throws Exception {\n\t\treturn bizBasicDao.deleteTeacherLectureFee(model);\n\t}", "title": "" }, { "docid": "8431cc8bcbd10232f05725c89a070ee3", "score": "0.5148673", "text": "public void destroy_the_mail_if_it_has_been_too_long(){\n for(MailItem mailItem : mailItems){\r\n if(mailItem instanceof Letter){\r\n Letter mLetter = (Letter) mailItem;\r\n if(mLetter != null && dayCount == (mLetter.dayAccepted+14) && mLetter.destinationPostOffice.equals(this.name) && mLetter.personToReturnTo.equals(\"NONE\")){\r\n this.destroy_mail(mLetter);\r\n }\r\n } else if(mailItem instanceof Package){\r\n Package mPackage = (Package) mailItem;\r\n if(mPackage != null && dayCount == (mPackage.dayAccepted+14) && mPackage.destinationPostOffice.equals(this.name)){\r\n this.destroy_mail(mPackage);\r\n }\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "1c3800df1430c5693ee1cb115331b0cd", "score": "0.51461536", "text": "public void deleteSpending(Spending s) {\n if (inSameMonth(s)) {\n sum -= Double.parseDouble(s.getCost().toString());\n }\n }", "title": "" }, { "docid": "0f8189b5c219c6dc68d2a7ac95d1466c", "score": "0.5142027", "text": "public ArrayList<Fee> getFees() {\n\n return this.additionalFees;\n }", "title": "" }, { "docid": "e5d5648e83f3dc52bc7f03be8a51d975", "score": "0.51360726", "text": "void CancelTicket(Passenger p)\r\n {\r\n if(p == null ) return;\r\n\r\n if(reservations.containsKey(p)){\r\n // int seatno = reservations.get(p).seatno();\r\n reservations.remove(p);\r\n seats_booked--;\r\n }\r\n }", "title": "" }, { "docid": "d2dc8a9cebb9d7f0674b4df6d3aeb7d7", "score": "0.51345265", "text": "public void removeAllPurchased() {\n cursor = head;\n boolean isEmpty = true;\n StringBuilder stringDesc = new StringBuilder(String.format(\"\\n%-20s %-20s %-20s %-20s%-20s\\n\",\n heading1, heading2, heading3, heading4, heading5) +\n String.format(\"%-20s %-20s %-20s %-20s %-20s\",\n \"---------\", \"----\", \"-----------------\", \"----------------\", \"----\"));\n System.out.println(stringDesc.toString());\n\n if (head == null) {\n System.out.println(\"The list is empty. \\n\");\n } else while (cursor != null) {\n //If the cursor's current location is \"out\", it should be removed\n if (cursor.getInfo().getCurrLocation().equals(\"out\")) {\n System.out.println(cursor);\n isEmpty = false;\n //We connect the node we set to null's previous node and next node to restructure the link\n if (cursor.getPrev() != null && cursor.getNext() != null) {\n cursor.getPrev().setNext(cursor.getNext());\n cursor.getNext().setPrev(cursor.getPrev());\n }\n else if (cursor.getPrev() != null && cursor.getNext() == null) {\n cursor.getPrev().setNext(null);\n }\n else if (cursor.getPrev() == null) {\n cursor.getNext().setPrev(null);\n }\n //We restructure the link and set the cursor to next, thus continuing the while loop\n System.out.println(\"We've removed all your purchased items.\");\n cursor = cursor.getNext();\n } else {\n cursor = cursor.getNext();\n }\n }\n if (isEmpty) {\n System.out.println(\"There's nothing to remove.\");\n }\n }", "title": "" }, { "docid": "8ccfe26d04d068b57ef3eb4424d79a8b", "score": "0.51275325", "text": "@Override\n\tpublic double monthlyFee() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "362ee9a2b42f403585b8d9e9c389b2de", "score": "0.5125656", "text": "public void stopExpiredEntriesSchedule() {\n\t\t\n\t}", "title": "" }, { "docid": "52dfde7de5b9b2a442adeccca9891cbb", "score": "0.5122967", "text": "void decommission();", "title": "" }, { "docid": "d3e9e9ed6bec34711d7126ff53709682", "score": "0.5122067", "text": "public int getTotalFee(){\n return totalFee;\n }", "title": "" }, { "docid": "76a6cef0fa3613e6283bfbcae4c3104d", "score": "0.51216394", "text": "void subJoinedKnessetMember(){\n if (lawSupporters>1){\n lawSupporters--;\n }\n }", "title": "" }, { "docid": "9fd2fa6bda30ea51c4d181482cbc92eb", "score": "0.5121096", "text": "public void reduceTheStartingPrice() {\n\t}", "title": "" }, { "docid": "056a383b81e607b446f7d0f8bc0a4fb7", "score": "0.512013", "text": "public void setFeeid(Long feeid) {\n this.feeid = feeid;\n }", "title": "" }, { "docid": "4d17c0ced471a2b2e8945dfd3c387d86", "score": "0.51175", "text": "public double getOverdraftFee() {\n return overdraftfee;\n }", "title": "" }, { "docid": "7c020ec02fe0ce88f0029d292260c6da", "score": "0.51160896", "text": "public TravelLog() {\n this.fee = 0;\n }", "title": "" }, { "docid": "c7ddc50b42ab442a9dad2f045f35df0c", "score": "0.51136965", "text": "public void decreaseAmount() {\n\t\tif (fAmountOnStorage>0) fAmountOnStorage--; // maybe with no condition\n\t}", "title": "" }, { "docid": "3e8751c03e0d5503b46e5c058c9bafda", "score": "0.51117194", "text": "@Transactional\n\tpublic int removeLectureFeePayAddDetail(LectureFeePayAddDetailVO model) throws Exception {\n\t\treturn bizBasicDao.deleteLectureFeePayAddDetail(model);\n\t}", "title": "" }, { "docid": "bbdbb5a00e6d54c7a6247ed9155d289f", "score": "0.51103383", "text": "void decharger(int qteAAJouter){\n\t \n\t\t this.qteStock -= qteAAJouter;\n\t\t\n\t }", "title": "" }, { "docid": "6fee5d0cc04a64434fdd12061379489b", "score": "0.51053244", "text": "String updateFeesRulse(double feesRate, double fee, int transtype, double minamount, double maxamount);", "title": "" }, { "docid": "244603c71b807f690f48f7d753fcc480", "score": "0.50985783", "text": "public void removeWaiting(){\n pendingAccounts.remove(waitingTicket);\n waitingTicket = null;\n \n }", "title": "" }, { "docid": "270e039c3ad5bec84c96d9dca9417807", "score": "0.5089406", "text": "public void businessTravelF() {\n \tbusinessMaximumF += totalPassengerCount ;\r\n \t\r\n \tif(businessMaximumF > 23) {\r\n \t\tbusinessMaximumF = businessMaximumF - totalPassengerCount;\r\n \t\terrorNeedsDeduction();\r\n \t\terrorPromptExceed();\r\n \t\t\r\n \t}else {\r\n \t\tinsurancePrompt();\r\n \t}\r\n \t\r\n \t\r\n }", "title": "" }, { "docid": "e6579a6adce5f4b82b3db13ac306221c", "score": "0.5088983", "text": "public void clearEmptyHolding(){\r\n\t\tfor (Asset asset : Assets) {\r\n\t\t\tIterator<HoldingItem> it_holdingItem = asset.getHoldingItems().iterator();\r\n\t\t\twhile(it_holdingItem.hasNext()){\r\n\t\t\t\tHoldingItem hi = it_holdingItem.next();\r\n\t\t\t\thi.setDate(this.CurrentDate);\r\n\t\t\t\tif(hi.getShare()==null||hi.getPrice()==null){\r\n\t\t\t\t\tSystem.out.println(hi.getSymbol());\r\n\t\t\t\t}\r\n\t\t\t\tdouble amount = hi.getShare() * hi.getPrice();\r\n\t\t\t\tif (amount < ERROR_PERCENTAGE * this.Amount && amount > -ERROR_PERCENTAGE * this.Amount) {\r\n\t\t\t\t\tit_holdingItem.remove();\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\trefreshAmounts();\r\n\t}", "title": "" }, { "docid": "d5bfee2fcdc189071f1a70ed8fc665cb", "score": "0.5076296", "text": "public void withdrawMoney(double importe){\n\ttotal -= importe;\n }", "title": "" }, { "docid": "7ae5906e5d4a1140d5b0a5a96bd36ade", "score": "0.5076131", "text": "void unsetShippingDateMin();", "title": "" }, { "docid": "e5e3ab8fd3a65c2aeb0e323da94b0ff0", "score": "0.50711447", "text": "@Override\n public void onRemoval(RemovalNotification<Object, Latencies> notification) {\n if (notification.getCause() != RemovalCause.EXPLICIT) {\n send(latencyMonitorEventCreator.createExpiryRemovalEvents(notification, boltService));\n }\n }", "title": "" }, { "docid": "ebe294ba045d64dc3546c8fabd825f9e", "score": "0.5064764", "text": "public void removeExpired() {\n\n // Remove expired data from blacklist\n Iterator<Map.Entry<String, UserData>> current = blacklist.entrySet().iterator();\n while (current.hasNext()) {\n\n // Remove entry from map if its associated with expired data\n Map.Entry<String, UserData> entry = current.next();\n if (entry.getValue().isExpired())\n current.remove();\n \n }\n\n }", "title": "" }, { "docid": "6900ead4ee4223fb857909071cb472fc", "score": "0.5063877", "text": "private void checkDiscount() {\n if(openedDate != null) {\n\n if(status.equals(InvoiceStatus.PAID)) { //if invoice is paid check\n long diff = DAYS.between(openedDate,LocalDate.now());\n\n if(diff < DAYS_FOR_DISCOUNT) {\n total -= (total*DISCOUNT);\n System.out.println(\"Discount applied to invoice! ID: \" + invoiceID);\n }\n }\n\n }\n }", "title": "" }, { "docid": "c17e080d491e37effa2e9550a0387078", "score": "0.50635004", "text": "@Test\n public void testLevyLateFee() {\n imaniBill.levyLateFee(billPayFee, DateTime.now());\n Assert.assertTrue(imaniBill.hasFees());\n Assert.assertEquals(15.0, imaniBill.totalFees(), 0);\n\n // Levey additional fees\n imaniBill.levyLateFee(billPayFee, DateTime.now());\n Assert.assertEquals(30.0, imaniBill.totalFees(), 0);\n }", "title": "" }, { "docid": "412fd1a3141c0d0c3b60962c66b1a88e", "score": "0.5061934", "text": "private void zipCodeFinder(){\n for(int i=itemArrayList.size()-1;i>=0;i--){\n String zipcodestring= et_zipcode.getText().toString();\n int zipcode=Integer.parseInt(zipcodestring);\n if((zipcode+20)<itemArrayList.get(i).getZipcode() || (zipcode-20)>itemArrayList.get(i).getZipcode()){\n itemArrayList.remove(i);\n }\n }\n itemAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "dff081f4a5ac4141480781d097063ab9", "score": "0.5056069", "text": "public java.lang.String getFee() {\n return fee;\n }", "title": "" } ]
f952e2ba52cc6eea697b52d69baeb155
Set if the surface should be hidden
[ { "docid": "0ed363cdcf5c3af260536ef55d61144b", "score": "0.6201662", "text": "public void setHide(boolean hidden) {\n this.hidden = hidden;\n }", "title": "" } ]
[ { "docid": "88c97ce98c8bf5d926f59ae2bb58db8f", "score": "0.6777545", "text": "@Override\r\n\tpublic void setVisible() {\n\t\tsetVisible(false);\r\n\r\n\t}", "title": "" }, { "docid": "c938cba116b4116476ad9fe039a34256", "score": "0.67635727", "text": "public void makeInvisible(){\n erase();\n isVisible = false;\n }", "title": "" }, { "docid": "82ba3a21826f735ec560efa2e13b03fc", "score": "0.6719405", "text": "public void setVisibility() {\n if ( showGrid == false )\n showGrid = true;\n else\n showGrid = false;\n }", "title": "" }, { "docid": "b5b61d58f417c313f9cdc0aa7814e00c", "score": "0.6716637", "text": "public void hide() {\n visibilityRadius = 0;\n tempVisible = false;\n runnableVisibility.run();\n }", "title": "" }, { "docid": "97f3fabcf095631998c46c1bc22ea36d", "score": "0.6711984", "text": "public void setVisible(boolean flag);", "title": "" }, { "docid": "1cb01e37e40c82b5ef20cd2629eada76", "score": "0.66856205", "text": "protected void hide()\n\t{\n\t\tvisible = false;\n\t}", "title": "" }, { "docid": "5906906d26dd3253ed63444cd0224b31", "score": "0.6667712", "text": "public void hide() {\n hidden = true;\n }", "title": "" }, { "docid": "91f6e8d55f4d861880514df5bcf2ee24", "score": "0.65857434", "text": "public void makeInvisible()\n {\n erase();\n isVisible = false;\n }", "title": "" }, { "docid": "aba5260baa9bcd2f7d631f71297fcb1e", "score": "0.65602034", "text": "public void setHidden(boolean value)\n {\n hidden = value;\n }", "title": "" }, { "docid": "498a1aa518c6733aaf95557653e4cf4e", "score": "0.6559732", "text": "public void makeInvisible()\r\n {\r\n erase();\r\n isVisible = false;\r\n }", "title": "" }, { "docid": "1eba232f9200fdf01cd80b9ced4dc236", "score": "0.6530026", "text": "public void setVisible();", "title": "" }, { "docid": "65e10ec673aeead7c12b65d1331b4832", "score": "0.64902705", "text": "public void setVisible() {\n this.visible = visible;\n }", "title": "" }, { "docid": "b9a2ca0e7325661b9489fa2d0013eb46", "score": "0.6474995", "text": "public void setVisible(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "87ed97c7531b2c5b06e361f5e34ef8be", "score": "0.6473697", "text": "public void setAsShown() {\n this.show(false);\n }", "title": "" }, { "docid": "a5ded76161b9ec2df995c82779675703", "score": "0.6465292", "text": "void toggleVisibility(){\r\n\t\tgc.getGeo().setEuclidianVisible(!gc.getGeo().isSetEuclidianVisible());\r\n\t\tgc.getGeo().updateVisualStyle();\r\n\t\tgc.getGeo().getKernel().getApplication().storeUndoInfo();\r\n\t\tgc.getGeo().getKernel().notifyRepaint();\r\n\t\tsetChecked(gc.getGeo().isEuclidianVisible());\r\n\t}", "title": "" }, { "docid": "b9217cfd6c487e15985459751da01c39", "score": "0.6459129", "text": "public void setImageVisible(){\n\t\tviewer.setVisible();\n\t}", "title": "" }, { "docid": "121af4e85734bb3674c20c5df2b0f330", "score": "0.6442236", "text": "public void setVisible(boolean b) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4a7f5fdc32c782a15c3b5de16850b794", "score": "0.6441897", "text": "public void setIsHidden(boolean value) {\n this.isHidden = value;\n }", "title": "" }, { "docid": "dd4082a2c9ae25fb1738f2dba74e1227", "score": "0.64243424", "text": "public void setVisible(boolean isVisible);", "title": "" }, { "docid": "dd4082a2c9ae25fb1738f2dba74e1227", "score": "0.64243424", "text": "public void setVisible(boolean isVisible);", "title": "" }, { "docid": "dd4082a2c9ae25fb1738f2dba74e1227", "score": "0.64243424", "text": "public void setVisible(boolean isVisible);", "title": "" }, { "docid": "c0288b64a1db263dde935260388f4477", "score": "0.64243394", "text": "protected void setVisible(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "b0858093fb8954039477e21d3d920fa6", "score": "0.64159185", "text": "void hide() {\n isVisible = false;\n ViewCompat.animate(this)\n .setDuration(150)\n .alpha(0)\n .scaleX(0)\n .scaleY(0)\n .start();\n }", "title": "" }, { "docid": "a434b32596045b2008bcdca9ad41a338", "score": "0.6414622", "text": "public void setVisible() {\n\t\tisVisible = true;\n\t}", "title": "" }, { "docid": "3ba316e1822966d39daff443c20bcdd1", "score": "0.641395", "text": "protected void setVisible(boolean b) {\n\t\n}", "title": "" }, { "docid": "c52fb096c072fb0dc2552af6e4802912", "score": "0.63843143", "text": "public void makeVisible(){\n isVisible = true;\n draw();\n }", "title": "" }, { "docid": "980896df34e7c95ee1b0f4e583607f11", "score": "0.6383586", "text": "public void flip(){\n this.visible = !this.visible;\n }", "title": "" }, { "docid": "e0b0b1da9ba5cf18cecb894082c6e658", "score": "0.63791406", "text": "public void setFaceVisible(boolean b) {\n\t\tsuper.setFaceVisible(b);\n\t\tpCarte.setFaceVisible(isFaceVisible());\n\t}", "title": "" }, { "docid": "1874d6202db9b394025f6d44b5fb4cc3", "score": "0.63744396", "text": "public void setVisible(boolean visible);", "title": "" }, { "docid": "1874d6202db9b394025f6d44b5fb4cc3", "score": "0.63744396", "text": "public void setVisible(boolean visible);", "title": "" }, { "docid": "8e10529c1ac91cc691dfdcb0cd7809b6", "score": "0.63643026", "text": "void makeInvisible() {\r\n edit_button.setVisibility(false);\r\n delete_button.setVisibility(false);\r\n ad_event.setVisibility(false);\r\n }", "title": "" }, { "docid": "0d76581e80140eded88e85b3e670b116", "score": "0.6361811", "text": "void setVisibility(boolean visible);", "title": "" }, { "docid": "3c07ca4a923b418d9e5148b2ac741f0e", "score": "0.6345039", "text": "public void setVisibility(boolean visible) {\n\n }", "title": "" }, { "docid": "fb7c26db4c2379896ae2330f5f251434", "score": "0.6337716", "text": "public void setInvisibleTrue(float delta) {\n\t\tif(!(bar.getSpellBarX()<=0)){\n\t\t\tisInvisible = true;\n\t\t\tbar.decreaseMagicBar(delta);\n\t\t}\n\t\telse{\n\t\t\tisInvisible = false;\n\t\t}\n\t}", "title": "" }, { "docid": "c253aa8f5c5e6cf35652030908306c16", "score": "0.63344026", "text": "public void invisible(){\n linea.makeInvisible();\n }", "title": "" }, { "docid": "fe928127e66ff212085e4e131f0de03f", "score": "0.6329065", "text": "void setVisible(boolean b) {\n\t\tvisible = b;\n\t}", "title": "" }, { "docid": "58e8831787bf498425d2637dd96d5db9", "score": "0.6320376", "text": "public void makeVisible()\r\n {\r\n isVisible = true;\r\n draw();\r\n }", "title": "" }, { "docid": "df043e215a0e5b2a5eb3a953f5e614a0", "score": "0.6301183", "text": "public void setVisibility(StarObjectClass self,int visibility){ \r\n \t\tStarCLESurfaceView StarCLESurfaceView = (StarCLESurfaceView)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( StarCLESurfaceView == null )\r\n \t\t\treturn;\r\n \t\tStarCLESurfaceView.setVisibility(visibility);\r\n \t}", "title": "" }, { "docid": "173100d236924a799824525787011229", "score": "0.62899566", "text": "public void makeVisible()\n {\n isVisible = true;\n draw();\n }", "title": "" }, { "docid": "875c8fd9d073fd33e68f568faf883a72", "score": "0.6259017", "text": "@Override\r\n\tpublic void setVisible(final boolean b) {\n\r\n\t}", "title": "" }, { "docid": "d969db946c40375f61c4b52f6105841f", "score": "0.6253315", "text": "public void setVisible(boolean b) {\n visible = b;\n }", "title": "" }, { "docid": "d7aef0a2142a42ff9799d00aaa55c8e2", "score": "0.6246078", "text": "public abstract void setVisible ( boolean visible );", "title": "" }, { "docid": "6d83ef832d12ee3191e31cbaf0c4cb9e", "score": "0.6243187", "text": "public void hideBallArea(){\n\t\tballArea.setVisible(false);\n\t}", "title": "" }, { "docid": "27236f4be14006110a38285a203ecd2d", "score": "0.6236188", "text": "void setVisible( final boolean show );", "title": "" }, { "docid": "3cc9fc7d54b5fd9022f24711825aa4e1", "score": "0.6233654", "text": "public void show()\n {\n hide = false;\n }", "title": "" }, { "docid": "2a8aa72fc7e7fd821d78340cb8430b22", "score": "0.62264836", "text": "public static void setVisible(boolean b) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "caf61337f75890e627cda07299f17a0c", "score": "0.6200123", "text": "public void setViewHand(boolean state) {\n invisibleHand.set(state);\n }", "title": "" }, { "docid": "9c57f8b02dd1990ffb49c925de910003", "score": "0.6168391", "text": "private void setHidden(boolean hidden) {\r\n\t\tthis.hidden = hidden;\r\n\t}", "title": "" }, { "docid": "dcbb65318776c040eafeff37b5aaa22b", "score": "0.61519593", "text": "public void setVisibility(){\n for (int y = 0; y < blocksHere.length; y++){\n for (int x = 0; x < blocksHere[y].length; x++){\n blocksHere[x][y].setVisibility();\n }\n }\n //To be edited later such that only the next block will be visible, not the whole tunnel\n //Requires input from the Player\n }", "title": "" }, { "docid": "53225f76b62327f24ac16fd5576e2f0d", "score": "0.6149478", "text": "void makeVisible();", "title": "" }, { "docid": "81e96c289c12db915704cab2a8549897", "score": "0.61491627", "text": "boolean getHidden();", "title": "" }, { "docid": "df127c30ba5db0c2c09456316a0aa10a", "score": "0.61427635", "text": "public void setBoxVisible(boolean val) {\n drawBox = val;\n }", "title": "" }, { "docid": "c460e688e7e4d471bb86e58d943176eb", "score": "0.6107245", "text": "public void toggleVisibility() {\n visible = !visible;\n this.setVisible(visible);\n }", "title": "" }, { "docid": "d6cea458fd65e0517842d2873f437ea7", "score": "0.6082379", "text": "public static void set3DVisibility(Object obj, Boolean visible)\n \t{\n \t\tJAppearance app = (JAppearance)obj;\n \t\tapp.getRenderingAttributes().setVisible(visible.booleanValue());\n \t}", "title": "" }, { "docid": "3960173f8ffa467946fcefdb55e2dd9c", "score": "0.60686177", "text": "private void setVisible(String afalse) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "5b7836d102a09ec4a2fc9e4c51dba645", "score": "0.6055479", "text": "void setInVisible()\r\n\t{\r\n\t\tm_jTextField_CCNUM.setVisible(false);\r\n\t\tm_jTextField_CCEXP.setVisible(false);\r\n\t\tm_jTextField_SSN.setVisible(false);\r\n\t\tm_jLabel_CCNUM.setVisible(false);\r\n\t\tm_jLabel_CCEXP.setVisible(false);\r\n\t\tm_jLabel_SSN.setVisible(false); \r\n\t}", "title": "" }, { "docid": "fd78d2e26da31bba647b3e16a86f97b2", "score": "0.60387343", "text": "public void hidePen() {\n\t\tpenVisible = false;\n\t\trepaint();\n\t\tanimator.delay();\n\t}", "title": "" }, { "docid": "ff67f31291f45f1becabf2069085c74e", "score": "0.6030474", "text": "public void setHidden(boolean hidden) {\n this.hidden = hidden;\n }", "title": "" }, { "docid": "99aaf1059294e771d53913398b9d847d", "score": "0.60277075", "text": "public void toggleVisible() {\n setVisible(visible = !visible);\n if (visible)\n fireUpdateEvent(this, UpdateType.visible);\n else\n fireUpdateEvent(this, UpdateType.invisible);\n }", "title": "" }, { "docid": "f57f3862fed9f2c94ea629fb8d800c0a", "score": "0.60232544", "text": "protected void changeVisible() {\n\t\t\n\t\tbutton.setVisible(!button.isVisible());\n\t\tbtVisible.setTitle(button.isVisible() ? \"Set Invisible\" : \"Set Visible\");\n\t\t\n\t}", "title": "" }, { "docid": "188687be4a9c744724f7b46715e6c073", "score": "0.60174644", "text": "public void setVisible(boolean v) {\n visible = v;\n }", "title": "" }, { "docid": "1b5b5edf8e2070fa3e7efe237542c4fd", "score": "0.6005374", "text": "public void setVideoVisibility(boolean visible) {\n\n }", "title": "" }, { "docid": "00bc959e8c45bd9669fcd23436162020", "score": "0.59921956", "text": "public void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "b1b772aa5961795d33b5d4b3124e21f0", "score": "0.5989854", "text": "public Builder setHidden(boolean value) {\n bitField0_ |= 0x00000002;\n hidden_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d6a7c8deb914d2a5f122187d6746417f", "score": "0.59886676", "text": "public void hiddenmax(){\n setExtendedState(JFrame.MAXIMIZED_HORIZ);\n setVisible(true);\n setResizable(false);\n }", "title": "" }, { "docid": "e2386d2f8b965c72ec8cac7f942882aa", "score": "0.59881145", "text": "public void setVisible(boolean theFlag) {\n\t\tisVisible = theFlag;\n\t}", "title": "" }, { "docid": "8ecbf93cce41396b98db0b79c6dda115", "score": "0.5987888", "text": "void onHiddenChanged(boolean hidden);", "title": "" }, { "docid": "d61fd76f7e5dbe6715e417fd0eb22014", "score": "0.5979125", "text": "@Override\n public void setVisible(boolean visible) {\n }", "title": "" }, { "docid": "1b25f12db90c5e89ef1427af344528a3", "score": "0.5977088", "text": "public void makeInvisibleOnHide(boolean enabled) {\n this.mMakeInvisible = enabled;\n }", "title": "" }, { "docid": "599f89616ce98ad826701dde3077cdc1", "score": "0.59694386", "text": "public void SetVisible(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "94d8385870d71f09c01accce67e49add", "score": "0.59509975", "text": "public void setChestVisible(boolean b) {\n\t\tchest.setVisible(b);\n\t}", "title": "" }, { "docid": "e7c62a4f41988ef2b98c1fdd3b21cfde", "score": "0.5947784", "text": "boolean isHidden();", "title": "" }, { "docid": "2ae1219bbe1abbca7c1a2450fd8826e4", "score": "0.5932267", "text": "public boolean isHidden()\n {\n return hidden;\n }", "title": "" }, { "docid": "334dd9e7fc5a1199af46e1a02cbc11f4", "score": "0.59318715", "text": "public void\t\tsetVisible(boolean b);", "title": "" }, { "docid": "3771635f18750105c196fd25b6c128b1", "score": "0.5931558", "text": "void toggle(){\n if(hasFeature){//if the device supports the torch (flash)\n Camera camera = Camera.open();//open the camera object\n if (isOn) {//if on, turn it off\n Camera.Parameters params = camera.getParameters();//get params from camera object\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);//set the flash to off\n camera.setParameters(params);//set camera params with params object\n camera.stopPreview();//finally stop camera preview\n isOn = false;//switch flag\n } else {\n Camera.Parameters params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);//set the flash mode\n camera.setParameters(params);\n camera.startPreview();//start the preview (open camera)\n isOn = true;\n }\n }\n }", "title": "" }, { "docid": "2372dd6c5c5ea8ff60a068581e3ac70e", "score": "0.59306675", "text": "public void toggle() {\n\n if (mIsShown)\n hide();\n else\n show();\n }", "title": "" }, { "docid": "b7a53e69d70c1e69e189c2c36001b9da", "score": "0.5922428", "text": "public void setGridVisible(boolean flag) { gridVisible = flag; }", "title": "" }, { "docid": "207680882dcaedccb8aff6f767ca7d95", "score": "0.5918573", "text": "@Override\n public void hide() {\n\n Log.d(\"LWP hidden\",\"True\");\n }", "title": "" }, { "docid": "938ea63f3bc879e8fcaf172809e132e3", "score": "0.59164816", "text": "@Override\n public Boolean isVisible() {\n return false;\n }", "title": "" }, { "docid": "940372bf35ee96a0c079740e6aa82c0c", "score": "0.5904714", "text": "public void mo108244c() {\n setVisibility(0);\n }", "title": "" }, { "docid": "2c07e4e252018bd3d41a5fcb2ab05d1f", "score": "0.5902873", "text": "public void visible(){\n linea.makeVisible();\n }", "title": "" }, { "docid": "14da5ed10e5a2dcc4e3638573db4a353", "score": "0.5896641", "text": "@Override\n\tpublic void drawHiding(Renderer renderer) {\n\t\t\n\t}", "title": "" }, { "docid": "0cb7f8c055c10c601d1a16da2a3b26c0", "score": "0.5890934", "text": "public void drawSurfacesForHiding(Renderer renderer) {\n\t\tfor (Drawable3D d3d : lists[Drawable3D.DRAW_TYPE_SURFACES]) {\n\t\t\td3d.drawHiding(renderer);\n\t\t}\n\t\tfor (Drawable3D d3d : lists[Drawable3D.DRAW_TYPE_LISTS]) {\n\t\t\t((DrawList3D) d3d).getDrawable3DLists()\n\t\t\t\t\t.drawSurfacesForHiding(renderer);\n\t\t}\n\t}", "title": "" }, { "docid": "ccd5aad0102b70e82bc9ded9154bbc6c", "score": "0.5885768", "text": "public void changeVisible(boolean val) {\n\t\tinsert.setVisible(val);\n\t\tdelete.setVisible(val);\n\t\tnoteSelect.setVisible(val);\n\t\toctaveSelect.setVisible(val);\n\t\tcolorSelect.setVisible(val);\n\t\tnote.setVisible(val);\n\t\tcolor.setVisible(val);\n\t\toctave.setVisible(val);\n\t}", "title": "" }, { "docid": "68159e1c427dfc91e26fbfee0f44f83e", "score": "0.5883543", "text": "public void setVisible(boolean b){\n\t\tframe.setVisible(b);\n\t}", "title": "" }, { "docid": "ad3ba8a87422242d119cdadf33141df9", "score": "0.58821607", "text": "private void hideFilterView() {\n \t\tlnFilter.setVisibility(View.GONE);\r\n \t\timgArrowDown.setVisibility(View.GONE);\r\n \t}", "title": "" }, { "docid": "c01da639d89cb79cc11f751369a110dc", "score": "0.58809936", "text": "private void sair() {\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "3a9d682a6ab16adc8f7d6ac0172ade74", "score": "0.5879006", "text": "public void initialVisibility()\n\t{\n\t\tbtnAddFile.setVisibility(View.INVISIBLE);\n\t\tbtnResizeSettings.setVisibility(View.VISIBLE);\n\t\tbtnResizePhotos.setVisibility(View.VISIBLE);\n\t}", "title": "" }, { "docid": "4cf9f581a20b2b415d7a5364296b7dfb", "score": "0.5877585", "text": "public void setHide(boolean hide) {\n this.hide = hide;\n }", "title": "" }, { "docid": "088a6d088397497e56c0acbd7a76fd34", "score": "0.58708304", "text": "public boolean isHidden() {\n return hidden;\n }", "title": "" }, { "docid": "088a6d088397497e56c0acbd7a76fd34", "score": "0.58708304", "text": "public boolean isHidden() {\n return hidden;\n }", "title": "" }, { "docid": "f8a5995eb68b7aed1d3bf0685e6fba26", "score": "0.58617836", "text": "public void Invisibili()\n {\n pedRIn1.setVisibility(View.INVISIBLE);\n pedRIn2.setVisibility(View.INVISIBLE);\n pedRIn3.setVisibility(View.INVISIBLE);\n pedRIn4.setVisibility(View.INVISIBLE);\n pedBIn1.setVisibility(View.INVISIBLE);\n pedBIn2.setVisibility(View.INVISIBLE);\n pedBIn3.setVisibility(View.INVISIBLE);\n pedBIn4.setVisibility(View.INVISIBLE);\n pedVIn1.setVisibility(View.INVISIBLE);\n pedVIn2.setVisibility(View.INVISIBLE);\n pedVIn3.setVisibility(View.INVISIBLE);\n pedVIn4.setVisibility(View.INVISIBLE);\n pedGIn1.setVisibility(View.INVISIBLE);\n pedGIn2.setVisibility(View.INVISIBLE);\n pedGIn3.setVisibility(View.INVISIBLE);\n pedGIn4.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "c3f9ece2aff8dc1bf8de08d0151b2a60", "score": "0.58587307", "text": "public void hide() {\n }", "title": "" }, { "docid": "a8c20803cb21df8299b68f95824089a2", "score": "0.5857971", "text": "@Override\n\tpublic void hide() {\n\t\tPreferences.putFloat(\"gameZoom\", gameZoom);\n\t\tPreferences.flush();\n\t}", "title": "" }, { "docid": "adb054bb5deb19e6928a3a4b795dd879", "score": "0.58536", "text": "void setShowing(boolean shouldShow)\n {\n showing = shouldShow;\n }", "title": "" }, { "docid": "90069e2236aa61a9b26812e3ecff9119", "score": "0.58437467", "text": "@Override\n\tpublic void drawHidden(Renderer renderer) {\n\t\t\n\t}", "title": "" }, { "docid": "4ce8e64a9b6f66544cd697d8aa14a288", "score": "0.5833259", "text": "public native final GraphicConfig visible(boolean val) /*-{\n\t\tthis.visible = val;\n\t\treturn this;\n\t}-*/;", "title": "" }, { "docid": "6ca9db05542e81050fe81966012d3701", "score": "0.5825828", "text": "protected void makeVisible(){\r\n edit_button.setVisibility(true);\r\n delete_button.setVisibility(true);\r\n ad_event.seVisibility(true);\r\n }", "title": "" }, { "docid": "572418f060cca1322f9fea855c8c7fd7", "score": "0.5825379", "text": "public void testSetVisible() {\n\t\talarm.setVisible(true);\r\n\t\talarm.setVisible(false);\r\n\t\talarm.setVisible(false);\r\n\t\talarm.setVisible(true);\r\n\t}", "title": "" }, { "docid": "f8241498277195de7c0a34306f018373", "score": "0.5825039", "text": "void hide();", "title": "" } ]
564c763ee7f9f6b3c2c7c7ebc71c553e
required .boa.types.TypeKind kind = 2;
[ { "docid": "84a4b815290a7e11756f3f65abe86707", "score": "0.0", "text": "public Builder clearKind() {\n bitField0_ = (bitField0_ & ~0x00000002);\n kind_ = boa.types.Ast.TypeKind.OTHER;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "89307d79b3ada1da8a0838dc9ef5af92", "score": "0.7220598", "text": "boa.types.Ast.TypeKind getKind();", "title": "" }, { "docid": "89307d79b3ada1da8a0838dc9ef5af92", "score": "0.7218131", "text": "boa.types.Ast.TypeKind getKind();", "title": "" }, { "docid": "8b67556799cc063fd0f12e21376e2796", "score": "0.635004", "text": "boa.types.Ast.TypeOrBuilder getNewTypeOrBuilder();", "title": "" }, { "docid": "87a6b5a0b13f2bab8dbc9adf51c2c95e", "score": "0.6245941", "text": "boa.types.Ast.Type getNewType();", "title": "" }, { "docid": "ac2a739334889e7e34360911d5c4bb4a", "score": "0.6197291", "text": "boa.types.Ast.Declaration getTypeDeclaration();", "title": "" }, { "docid": "8647e73b0b6ee1b1a7efb5e8f1290a84", "score": "0.61208427", "text": "boa.types.Ast.DeclarationOrBuilder getTypeDeclarationOrBuilder();", "title": "" }, { "docid": "c662dabbd6e469e41fe96eb08e20f937", "score": "0.5956631", "text": "@TypeDefinitionId(\"nsu=http://PLCopen.org/OpcUa/IEC61131-3/;i=1003\")\npublic interface CtrlProgramOrganizationUnitType extends BlockType {\n String BODY = \"Body\";\n\n @Optional\n BaseDataVariableType getBodyNode();\n\n @Optional\n XmlElement getBody();\n\n @Optional\n void setBody(XmlElement value) throws StatusException;\n}", "title": "" }, { "docid": "3b8870b50cfdf14a93c1b3cd1ed2021b", "score": "0.5761659", "text": "toy.proto.Types.Meta getMeta();", "title": "" }, { "docid": "b6cfad1525c26c8778ee812c61353ba7", "score": "0.5724508", "text": "com.google.protobuf.ByteString getKindBytes();", "title": "" }, { "docid": "e843d9a2e7e60cb7c962655c5b7d9169", "score": "0.5722782", "text": "public byte getType() {\n/* 333 */ return this.type;\n/* */ }", "title": "" }, { "docid": "c7b90f18413ab18c96b26952f18ca1d1", "score": "0.5716162", "text": "public byte getType() {\n/* 324 */ return this.type;\n/* */ }", "title": "" }, { "docid": "b787acfa8299cde2647c6057a55eb138", "score": "0.56960404", "text": "public interface C0117b {\n}", "title": "" }, { "docid": "3f6653dd9652ebedbb86d5da63dbe5fe", "score": "0.56809306", "text": "public int getKind();", "title": "" }, { "docid": "bd1683266acd1ae30edebc6956ba53c4", "score": "0.56503624", "text": "@Override\n\t\tpublic TypeKind getKind() {\n\t\t\tthrow new AssertionError(\"Unexpected tag: \");\n\t\t}", "title": "" }, { "docid": "b8f6b4c32f1d875e445f827ae0ffd5dd", "score": "0.5604609", "text": "public int getType() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "2115a07c67d9d17639abb4582a8c984c", "score": "0.5545645", "text": "@Value.Parameter\n String kind();", "title": "" }, { "docid": "ae35c50c198396294060140d7fdc442a", "score": "0.5541108", "text": "CodeableConcept getType();", "title": "" }, { "docid": "84f4aa05ebafcf197797008602a6a2dc", "score": "0.55180556", "text": "com.example.music.AlbumsProtos.Album.Review.Type getType();", "title": "" }, { "docid": "0705ae31db8ab92155ba576cbd51f75e", "score": "0.5505991", "text": "public Builder setKind(boa.types.Ast.TypeKind value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n kind_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2cef520c86db592d37af933969d38f84", "score": "0.54897887", "text": "public int getType() {\n/* 169 */ return 600;\n/* */ }", "title": "" }, { "docid": "45fecf17025565786aaeaffbb5d6a6b5", "score": "0.5480959", "text": "Kind createKind();", "title": "" }, { "docid": "b47846afd1a1aa248bc906d2bcd0d531", "score": "0.5477055", "text": "toy.proto.Types.MetaOrBuilder getMetaOrBuilder();", "title": "" }, { "docid": "5c020557f6b8ba8660c254556beafba7", "score": "0.5466294", "text": "boa.types.Ast.Modifier.ModifierKind getKind();", "title": "" }, { "docid": "96ae855d8bb7b09e3de0438ca60017c0", "score": "0.5460726", "text": "public void setBENIFICIARY_TYPE(String BENIFICIARY_TYPE);", "title": "" }, { "docid": "2f99195a3a996196441a5c35b60b1855", "score": "0.5456008", "text": "public byte getType() {\n/* 125 */ return this.type;\n/* */ }", "title": "" }, { "docid": "549b8ba1cf1ab50a07db1520555857c6", "score": "0.5449437", "text": "forge_abi.TraceType.TypeFilter getTypeFilter();", "title": "" }, { "docid": "8491757006a4a4108358c940b2affe8e", "score": "0.5440513", "text": "public Builder setKind(boa.types.Ast.TypeKind value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n kind_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "56fd5eec196f3af43ff74c9ef3b902e3", "score": "0.54372513", "text": "@Override\n\tpublic int getType() {\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "35ccb006e6523ec9466a04141f2d1f5b", "score": "0.5436622", "text": "ITypes orwithBinary(Binary b);", "title": "" }, { "docid": "630696b6a80479a3150b42b4e66f9e2f", "score": "0.5431874", "text": "@Override\n public final Integer constTypeCode() {\n return 2;\n }", "title": "" }, { "docid": "27a0ff12293657ccba7b2bc189474bd1", "score": "0.5408509", "text": "public interface IConsideredAlternatives extends cleon.architecturemethods.arc42.metamodel.spec._09_design_decisions.javamodel.IAbstractDecision {\r\n\r\n public static final ch.actifsource.core.INode TYPE_ID = new ch.actifsource.core.Resource(\"ffd8e808-ecde-11e8-8149-8542373915bf\");\r\n \r\n}", "title": "" }, { "docid": "0e511be053597cb952335bf798d2ab11", "score": "0.54060817", "text": "public int getKind()\n // -end- 3FDC499F0013 get_head3FDC4924008E \"kind\"\n {\n // -beg- preserve=no 3FDC499F0013 get_body3FDC4924008E \"kind\"\n return kind;\n // -end- 3FDC499F0013 get_body3FDC4924008E \"kind\"\n }", "title": "" }, { "docid": "da6e26ab441ad70c2daa726d74fae7fd", "score": "0.5398571", "text": "public int GetKindOfBonuse() {\r\n return this.KindOfBonuse;\r\n }", "title": "" }, { "docid": "73e9c336042658ebf448fcb453372935", "score": "0.5395392", "text": "ElementType type();", "title": "" }, { "docid": "0e55df9b2de432bfc8b22fd2202b8974", "score": "0.5389713", "text": "private void basicType() {\n\n }", "title": "" }, { "docid": "7f1e4e453156b1b5fb800b2bb30bf94a", "score": "0.53666025", "text": "public ModelType getType(){\n return ModelType.BUBBLE;\n }", "title": "" }, { "docid": "f98aa432359c497c7460869be0d3369e", "score": "0.53637475", "text": "test.simple.SimpleEnum.Type getType();", "title": "" }, { "docid": "7302c61565d2de8bc73e8b74efb40454", "score": "0.5361106", "text": "public interface Constraint {\n\n\tpublic static int UNION = 1;\n\tpublic static int PAIR_DISALLOW = 2;\n\tpublic static final int ALLOW_ONLY = 3;\n\n\tpublic int type();\n\n}", "title": "" }, { "docid": "dba41deb2b6ce119269e8fb943140bb8", "score": "0.5356235", "text": "ITypes andwithBinary(Binary b);", "title": "" }, { "docid": "12a0187d99d700be58bb596fdf62f544", "score": "0.5340448", "text": "public void testItemKindSchemaAttribute() throws XQException {\n }", "title": "" }, { "docid": "6aec24399e93e648e43b7c8d4fc8af2c", "score": "0.5336494", "text": "public interface ShortTypeRef extends SingleTypeRef\n{\n}", "title": "" }, { "docid": "f0b4e6a68b33c5b343d8d2a4f3f47853", "score": "0.5331468", "text": "private BasicType() { }", "title": "" }, { "docid": "2ec2470cf049baafb5a6d4b5d9e935a0", "score": "0.53275156", "text": "@AutoEscape\n\tpublic String getBENIFICIARY_TYPE();", "title": "" }, { "docid": "720ebefe329fd9f6c715e31def9ad8e9", "score": "0.5326569", "text": "com.mmo.server.CommonProtocol.ItemType getType();", "title": "" }, { "docid": "a8a4154fdf759cf6727e2c9ee0dfbe34", "score": "0.53257996", "text": "Coding getType();", "title": "" }, { "docid": "00af04bfe7b665bf2c73bec8cdd5314a", "score": "0.53202736", "text": "boa.types.Ast.Modifier.Visibility getVisibility();", "title": "" }, { "docid": "1e99417f12e5d8700b2da1630d662b48", "score": "0.53112864", "text": "public boa.types.Ast.TypeKind getKind() {\n return kind_;\n }", "title": "" }, { "docid": "1e99417f12e5d8700b2da1630d662b48", "score": "0.5310453", "text": "public boa.types.Ast.TypeKind getKind() {\n return kind_;\n }", "title": "" }, { "docid": "1898ff401ff5fb893f2ae4d7a7d0bb04", "score": "0.5288734", "text": "com.google.protobuf.ByteString getType();", "title": "" }, { "docid": "f38cbb4f62db0e22fa66a9e497c3ee85", "score": "0.52879703", "text": "type_definition_part getType_definition_part();", "title": "" }, { "docid": "b1000bc035c741c58a4ebcf797be9791", "score": "0.5286005", "text": "@Test\n public void capabilityDefinitionIsTypeOfDirectTypeFound() {\n CapabilityDefinition capabilityDefinition = new CapabilityDefinition();\n capabilityDefinition.setType(CAPABILITY_TYPE_A);\n assertTrue(toscaAnalyzerService.isTypeOf(capabilityDefinition, CAPABILITY_TYPE_A, new ServiceTemplate(),\n toscaServiceModelMock));\n }", "title": "" }, { "docid": "db77666366816a1f073c5a9a8c657234", "score": "0.5285314", "text": "forge_abi.Type.WalletTypeOrBuilder getTypeOrBuilder();", "title": "" }, { "docid": "db77666366816a1f073c5a9a8c657234", "score": "0.5285314", "text": "forge_abi.Type.WalletTypeOrBuilder getTypeOrBuilder();", "title": "" }, { "docid": "af08268a0b62482a4356d8911f4f41c3", "score": "0.5283546", "text": "public interface TypedConstraintIF extends ConstraintIF {\n\n /**\n * INTERNAL: Returns the object specifying the allowed types.\n */\n TypeSpecification getTypeSpecification();\n\n /**\n * INTERNAL: Sets the object specifying the allowed types.\n */\n void setTypeSpecification(TypeSpecification spec);\n \n}", "title": "" }, { "docid": "eca494dae6bac0a1dda507b002dbae2f", "score": "0.5275854", "text": "@Test\n public void kindTest() {\n // TODO: test kind\n }", "title": "" }, { "docid": "ffa00e23b0757527c693a545a10d7d3e", "score": "0.5268801", "text": "public interface C32338a {\n }", "title": "" }, { "docid": "c315effb2cc6fdb29f1147c5abc71741", "score": "0.5266775", "text": "public IKind createKind();", "title": "" }, { "docid": "ccf9be3163eda0926dc15a1199cdc451", "score": "0.52534604", "text": "T mo16129a(Type type);", "title": "" }, { "docid": "776c56630e2ba0182defd01dd5f1b94a", "score": "0.52511334", "text": "toy.proto.Types.Meta getM();", "title": "" }, { "docid": "776c56630e2ba0182defd01dd5f1b94a", "score": "0.52511334", "text": "toy.proto.Types.Meta getM();", "title": "" }, { "docid": "776c56630e2ba0182defd01dd5f1b94a", "score": "0.52511334", "text": "toy.proto.Types.Meta getM();", "title": "" }, { "docid": "776c56630e2ba0182defd01dd5f1b94a", "score": "0.52511334", "text": "toy.proto.Types.Meta getM();", "title": "" }, { "docid": "776c56630e2ba0182defd01dd5f1b94a", "score": "0.52511334", "text": "toy.proto.Types.Meta getM();", "title": "" }, { "docid": "8d49c268970ecc0693ca504818ae05da", "score": "0.5247585", "text": "private Type() {}", "title": "" }, { "docid": "42bd75d3b88a85b1082790b1857be4b5", "score": "0.52467185", "text": "public interface Type extends SchemaComponent, SequenceType\n{\n boolean derivedFrom(String namespace, String name, Set<DerivationMethod> derivationMethods);\n\n boolean derivedFromType(Type ancestorType, Set<DerivationMethod> derivationMethods);\n\n /**\n * Returns the {base type definition} of this type. This may be a simple type or a complex type.\n */\n Type getBaseType();\n\n /**\n * Returns the {derivation method} property of this type from its base type.\n */\n DerivationMethod getDerivationMethod();\n\n /**\n * Returns the {final} property. Applies to both simple types and complex types. This is a design-time constraint on\n * types. For simple types, this is a subset of {list, union, restriction}. For complex types, this is a subset of\n * {extension, restriction}.\n */\n Set<DerivationMethod> getFinal();\n\n /**\n * Returns the {abstract} property of this type. <br/>\n * Determines whether object of this type can be instantiated. An abstract type can only be used to derive subtypes.\n */\n boolean isAbstract();\n\n /**\n * Returns whether this type is a simple type with a variety of atomic.\n */\n boolean isAtomicType();\n\n /**\n * Returns whether this type is the Atomic Ur-Type.\n */\n boolean isAtomicUrType();\n\n /**\n * Returns whether this type is the Complex Ur-Type.\n */\n boolean isComplexUrType();\n\n /**\n * Determines whether a particular derivation method is final.\n * \n * @param derivation\n * The derivation method.\n */\n boolean isFinal(DerivationMethod derivation);\n\n /**\n * Returns whether this type is a built-in type.\n */\n boolean isNative();\n\n /**\n * Returns whether this type is the Simple Ur-Type.\n */\n boolean isSimpleUrType();\n}", "title": "" }, { "docid": "e1c71f30a8feb93e88088fb6c2f6eb1c", "score": "0.5239836", "text": "com.ligadata.Serialize.MetadataObjects.MetadataType.ProtoBaseTypeOrBuilder getPbtOrBuilder();", "title": "" }, { "docid": "339ad068af1fd7cb38a019f5ed95c9b5", "score": "0.52386206", "text": "public native String kind() /*-{ return this.kind; }-*/;", "title": "" }, { "docid": "1747d515ff8b38f0b63fbc56a172d732", "score": "0.5237567", "text": "public interface FillableType {\n String getTypeFQN();\n}", "title": "" }, { "docid": "7d10f9bc52dd284ba6976e7f75725278", "score": "0.52318", "text": "pl.edu.pw.elka.llepak.tinbox.protobuf.ResponseType getType();", "title": "" }, { "docid": "8860992e8d2c72241acc5a461707d261", "score": "0.5225396", "text": "public byte getReferenceKind() {\n/* 250 */ return (byte)(this.flags >>> 24 & 0xF);\n/* */ }", "title": "" }, { "docid": "9a2185cdd40f6f49271351f3fbdc7674", "score": "0.5220789", "text": "public Kind kind()\n {\n return kind;\n }", "title": "" }, { "docid": "eed460522ad9eedbb23983dcbf3e1466", "score": "0.521786", "text": "public interface Archetype {\n}", "title": "" }, { "docid": "89e1b287dac93ad9646f0bcd4ca0da81", "score": "0.5216555", "text": "public static TypeDesc getTypeDesc()\r\n/* 151: */ {\r\n/* 152:165 */ return typeDesc;\r\n/* 153: */ }", "title": "" }, { "docid": "d8e9b07831849094dc4c3cfda8fe63ba", "score": "0.5206691", "text": "public interface ComplexType extends Type\n{\n /**\n * Returns the {attribute uses} property for a complex type.\n */\n Map<QName, AttributeUse> getAttributeUses();\n\n /**\n * Returns the {attribute wildcard} property for a complex type.\n */\n SchemaWildcard getAttributeWildcard();\n\n /**\n * Returns the {content type} property.\n */\n ContentType getContentType();\n\n /**\n * Returns the {prohibited substitutions} property. This is a run-time constraint on the types. A subset of\n * {extension, restriction}.\n */\n Set<DerivationMethod> getProhibitedSubstitutions();\n}", "title": "" }, { "docid": "0c7307c838d0c887fdb650ab93239e49", "score": "0.5195647", "text": "public String getType(){\n return \"S\";\n }", "title": "" }, { "docid": "20b90fd1bfff1ac3c0fc4cbbf6dae070", "score": "0.51914746", "text": "private ConstraintAttribute$AttributeType() {\n void var2_-1;\n void var1_-1;\n }", "title": "" }, { "docid": "0509fed14df438d9480d76887b7c6c06", "score": "0.5190335", "text": "public interface Type {\n byte NDA_UNSPEC = 0;\n byte NDA_DST = 1;\n byte NDA_LLADDR = 2;\n byte NDA_CACHEINFO = 3;\n byte NDA_PROBES = 4;\n byte NDA_VLAN = 5;\n byte NDA_PORT = 6;\n byte NDA_VNI = 7;\n byte NDA_IFINDEX = 8;\n byte NDA_MASTER = 9;\n }", "title": "" }, { "docid": "23f5e666f5d33a0c317a1a0139c2d8ac", "score": "0.5186137", "text": "com.yahoo.ads.pb.network.netty.NettyPistachioProtocol.RequestType getType();", "title": "" }, { "docid": "c97bc3e2f36797b66bf19ea315c48309", "score": "0.5185852", "text": "forge_abi.Type.ChainInfoOrBuilder getInfoOrBuilder();", "title": "" }, { "docid": "c7f1a85bf0664c86002712ea839659e6", "score": "0.51854694", "text": "private Type() {\n // empty\n }", "title": "" }, { "docid": "f316fb0a7ea5a6ea749da6b1cec7035a", "score": "0.5184285", "text": "public Kind getKind() {\n return kind;\n }", "title": "" }, { "docid": "0b8cc06f7e92ee9debca167f6c15edc5", "score": "0.51831573", "text": "forge_abi.Type.BlockInfoOrBuilder getBlockOrBuilder();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.51770175", "text": "java.lang.String getKind();", "title": "" }, { "docid": "c8895a4be0ec52e6b92d5524c8be4d70", "score": "0.51731044", "text": "public Type getType() {\n/* 349 */ return this.type;\n/* */ }", "title": "" }, { "docid": "e3769cb3466ad27ba0e9972013d93009", "score": "0.5172477", "text": "boa.types.Ast.Statement.StatementKind getKind();", "title": "" }, { "docid": "e811b217dcec98926598a80b881510c3", "score": "0.5163806", "text": "int getTypeCode();", "title": "" }, { "docid": "5dc097d9c9f9a8b02c6ff93ae4e758e0", "score": "0.5160056", "text": "boolean hasC2SType();", "title": "" }, { "docid": "c24b36996672fe5305a907f1216297cc", "score": "0.51583505", "text": "public String getType(){return this.type;}", "title": "" }, { "docid": "f56b5fe1d07222c10b208d2d2d1409c3", "score": "0.51565033", "text": "boa.types.Ast.Comment.CommentKind getKind();", "title": "" }, { "docid": "bab086eca939ce36ad176c909c5ee408", "score": "0.51559657", "text": "private Type() {\n\t\t}", "title": "" }, { "docid": "0827e74e03cad41d4aeae69258f88032", "score": "0.51551175", "text": "public int getType() {\r\n/* 118 */ return this.type;\r\n/* */ }", "title": "" }, { "docid": "b07b3fdfea68d2d9e7c64d1b11cab3f2", "score": "0.5152062", "text": "public void type() {\n\t\t\n\t}", "title": "" }, { "docid": "73dbcaf53c7b46b41767c524a9dbf804", "score": "0.51514906", "text": "public boa.types.Ast.TypeKind getKind() {\n return kind_;\n }", "title": "" }, { "docid": "8569e3055adbbde16f06dbb8b7babb53", "score": "0.514946", "text": "public interface Sanity {\n}", "title": "" }, { "docid": "73dbcaf53c7b46b41767c524a9dbf804", "score": "0.5149202", "text": "public boa.types.Ast.TypeKind getKind() {\n return kind_;\n }", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.5145886", "text": "int getType();", "title": "" } ]
e2334807033831eeadd6a91a984b83bb
minDistance tests > small and large
[ { "docid": "1d53ae721a6aff50c8f7fb424000d81c", "score": "0.6855291", "text": "@Test\n public void minDistance() {\n List<minDistance.BASE> dna1 =\n new Node<>(minDistance.BASE.A, new Node<>(minDistance.BASE.C, new Empty<>()));\n List<minDistance.BASE> dna2 =\n new Node<>(minDistance.BASE.A, new Node<>(minDistance.BASE.G, new Empty<>()));\n assertEquals(1, minDistance.buminDistance(dna1, dna2));\n\n }", "title": "" } ]
[ { "docid": "21b21f84d92af69a9c9053232e1f3aa7", "score": "0.77479935", "text": "float getMinDistance();", "title": "" }, { "docid": "75c30a0189519c3c76d1c7daa358a336", "score": "0.688824", "text": "private void setMinDistance(float value) {\n \n minDistance_ = value;\n }", "title": "" }, { "docid": "79fc58f1544b3c280eb8171d12d20a4f", "score": "0.68400425", "text": "static int computeMinDistances(){\n int distances = 0;\n for(int i = 0; i<gzahlen.size(); i++){\n distances = distances + getDistance(gzahlen.get(i));\n }\n return distances;\n }", "title": "" }, { "docid": "41612e6d1c915f0b9f41f450f5cd9f91", "score": "0.6728179", "text": "public float getMinDistance() {\n return minDistance_;\n }", "title": "" }, { "docid": "067237fa15582f8db708ea0235c54281", "score": "0.6710254", "text": "public void minDistanceRoad() {\n\t\tfor(int i = 1; i < numRoads; i++) {\n\t\t\t boolean change = true;\n\t\t\t int times = 0;\n\t\t\t while ((change) && (times < 10*numRoads)) {\n\t\t\t change = false;\n\t\t\t for(int j = 0; j < i-1; j++) {\n\t\t\t if ( Math.abs(roadCentre.get(i,0) - roadCentre.get(j,0)) < (3*roadWidth) ) {\n\t\t\t change = true;\n\t\t\t double value = SimpleMatrix.random(1, 1, roadWidth, xMargin-roadWidth, new Random()).get(0);\n\t\t\t roadCentre.set(i, 0, value);\n\t\t\t times = times + 1;\n\t\t\t }\n\t\t\t }\n\t\t\t if (times >= 10*numRoads) {\n\t\t\t numRoads = i;\n\t\t\t }\n\t\t\t }\n\t\t}\n\t}", "title": "" }, { "docid": "0025146825dd9dfe49fcbaf453da65b6", "score": "0.65762925", "text": "public static int distanceMin(Dijkstra d, ListeSommets ls, MatriceChemins matrice)\n {\n int disMin = d.distancePlusCourtChemin();\n int distance = 2;\n for(int i=0; i<ls.nbSource; i++)\n {\n if(ls.source[i] == -1 )\n {\n return disMin;\n }\n //System.out.println(\"ici\");\n for(int j=0; j<ls.nbDest; j++)\n {\n if(ls.destination[i] == -1 )\n {\n break;\n }\n //System.out.println(\"ici\");\n Dijkstra newd = new Dijkstra(matrice, ls, ls.source[i], ls.destination[j]);\n distance = newd.distancePlusCourtChemin();\n if(disMin > distance)\n {\n disMin = distance;\n copieTableau(newd.pred,d.pred);\n d.setSource(ls.source[i]);\n d.setDest(ls.destination[j]);\n }\n }\n }\n return disMin;\n }", "title": "" }, { "docid": "5b7cfc2dfb526d5cee1cb1c933515101", "score": "0.6528195", "text": "int minDistance(int dist[], boolean sptSet[])\n {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index=0;\n \n for (int v = 0; v < V; v++)\n if (sptSet[v] == false && dist[v] <= min)\n {\n min = dist[v];\n min_index = v;\n }\n \n return min_index;\n }", "title": "" }, { "docid": "c8c2e2bb0ad2c4b0e58d3c62b5e93b87", "score": "0.65207744", "text": "private static double shortestdist(TargetNode a1, SuperTarget s1) {\n\n\n\n\t\tdouble dmin = Double.MAX_VALUE;\n\t\tboolean isnei = false;\n\t\tfor(TargetNode t: s1.ap.values())\n\t\t{\n\t\t\t// are each other's neighbor\n\t\t\tfor(TargetNode nei : t.getNeighbors())\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\tif(nei.getTargetid() == a1.getTargetid())\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble tmpd = a1.getDistance(t);\n\t\t\t\t\t\tif(tmpd<dmin)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdmin = a1.getDistance(t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisnei = true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isnei)\n\t\t\treturn dmin;\n\t\telse \n\t\t\treturn -1;\n\t}", "title": "" }, { "docid": "72361c33c65c5bb5436641271d74d3f1", "score": "0.64647114", "text": "@Test\n\tpublic void testDistance() {\n\t\tdouble dist = l1.getDistance();\n\t\tassertEquals(Math.sqrt(80), dist);\n\t\tassertNotEquals(128, dist);\n\t}", "title": "" }, { "docid": "4ac6b57703e887f0c8f33cb484415a8e", "score": "0.6451795", "text": "int minDistance(int dist[], Boolean sptSet[]) \n {\n int min = Integer.MAX_VALUE, min_index=-1; \n \n for (int v = 0; v < V; v++) \n if (sptSet[v] == false && dist[v] <= min) \n { \n min = dist[v]; \n min_index = v; \n } \n \n return min_index; \n }", "title": "" }, { "docid": "e3da55e9e996a3792b2106885aa87854", "score": "0.6417324", "text": "private int minDist(List<Integer> qTermPos, int start, int end)\n\t{\n\t\tint min = 10000000;\n\t\tfor(int i=start;i<=end;i++)\n\t\t{\n\t\t\tfor(int j=0;j<qTermPos.size();j++)\n\t\t\t{\n\t\t\t\tint tmp = Math.abs(i - qTermPos.get(j));\n\t\t\t\tif(min > tmp)\n\t\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "title": "" }, { "docid": "b4b1301bbccf088c6efaed3d19408c78", "score": "0.6395916", "text": "public double getMinimumDistance() {\r\n return this.minimumDistance;\r\n }", "title": "" }, { "docid": "fee4fe023a1440fdd4fdf8ce5af081a9", "score": "0.63811034", "text": "@Test\n public void fromDistanceTest() {\n assertEquals(4096, EncoderUtil.fromDistance(Math.PI, 4096, 1, 1), Util.kEpsilon);\n assertEquals(8192, EncoderUtil.fromDistance(Math.PI, 4096, 2, 1), Util.kEpsilon);\n assertEquals(4096, EncoderUtil.fromDistance(Math.PI, 4096, 2, 2), Util.kEpsilon);\n assertEquals(4096*5/Math.PI, EncoderUtil.fromDistance(5, 4096, 1, 1), Util.kEpsilon);\n assertEquals(1024, EncoderUtil.fromDistance(Math.PI, 1024, 1, 1), Util.kEpsilon);\n assertEquals(2048, EncoderUtil.fromDistance(Math.PI, 1024, 2, 1), Util.kEpsilon);\n assertEquals(1024, EncoderUtil.fromDistance(Math.PI, 1024, 2, 2), Util.kEpsilon);\n assertEquals(1024*5/Math.PI, EncoderUtil.fromDistance(5, 1024, 1, 1), Util.kEpsilon);\n }", "title": "" }, { "docid": "084e267a655101a00a1337c75e46054d", "score": "0.62905335", "text": "public double findMinDistance(Station s1, Station s2) {\n for (DijkstraData d : dijkstras) {\n if (d.getSource().getName().equals(s1.getName())\n && d.getTarget().getName().equals(s2.getName())) {\n return d.getDistance();\n }\n }\n //This return statement is irrelevant as every pair of stations will be represented in dijkstra's, but Java requires a return statement that will always be reached.\n return -1;\n }", "title": "" }, { "docid": "6d2a12e5f1e2705be69d3bca6766d3fc", "score": "0.62876904", "text": "@Test\n public void findMin_test()\n {\n try\n {\n heap.buildHeap(input);\n Assert.assertTrue(verifier.findMin() == heap.findMin().getMinDistance());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.exit(1);\n }\n }", "title": "" }, { "docid": "49d47f67b02d59ae833736e08d344f8f", "score": "0.6258067", "text": "private boolean isMinimumDistance(Point newPoint) {\n\t\tlastCheckedPoint = newPoint;\n\t\tPoint lastPoint = lastAddedPoint;\n\t\tif (lastPoint != null) {\n\t\t\tfloat dx = newPoint.x - lastPoint.x;\n\t\t\tfloat dy = newPoint.y - lastPoint.y;\n\t\t\treturn (((dx*dx)+(dy*dy)) >= MIN_QUAD_DISTANCE);\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "99790cb052ebbfe11efc3c05e6b3a3e3", "score": "0.6245074", "text": "int getAcceptableTargetDistance();", "title": "" }, { "docid": "ad6328273b1868535ae86ee2e0f0550d", "score": "0.6241072", "text": "public double getMinDist(SampledPoint point) {\n\r\n\t\tdouble x0 = point.getSampledX();\r\n\t\tdouble y0 = point.getSampledY();\r\n\r\n\t\t/*\r\n\t\tdouble t = ((x1 - x0) * (x1 - x2) + (y1 - y0) * (y1 - y2))\r\n\t\t\t\t/ ((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\r\n\r\n\t\tdouble x = x1 + t * (x2 - x1);\r\n\t\tdouble y = y1 + t * (y2 - y1);\r\n\r\n\t\tif (t < 0) // |p0 p1|\r\n\t\t\treturn Math.sqrt((x0 - x1) * (x0 - x1) + (y0 - y1) * (y0 - y1));\r\n\t\telse if (t > 1) // |p0 p2|\r\n\t\t\treturn Math.sqrt((x0 - x2) * (x0 - x2) + (y0 - y2) * (y0 - y2));\r\n\t\telse\r\n\t\t\t// |p0 p|\r\n\t\t\treturn Math.sqrt((x0 - x) * (x0 - x) + (y0 - y) * (y0 - y));\r\n\t\t*/\r\n\t\t\r\n\t\tif(this.contain(new Point(x0, y0, this.mFloor))){\r\n\t\t\treturn 0;\r\n\t\t}else if(x0 < this.x1){\r\n\t\t\tif(y0 < this.y1){\r\n\t\t\t\treturn Math.sqrt((x0 - this.x1) * (x0 - this.x1) + (y0 - this.y1) * (y0 - this.y1));\r\n\t\t\t}else if(y0 > this.y2){\r\n\t\t\t\treturn Math.sqrt((x0 - this.x1) * (x0 - this.x1) + (y0 - this.y2) * (y0 - this.y2));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\treturn this.x1 - x0;\r\n\t\t\t}\r\n\t\t}else if(x0 > this.x2){\r\n\t\t\tif(y0 < this.y1){\r\n\t\t\t\treturn Math.sqrt((x0 - this.x2) * (x0 - this.x2) + (y0 - this.y1) * (y0 - this.y1));\r\n\t\t\t}else if(y0 > this.y2){\r\n\t\t\t\treturn Math.sqrt((x0 - this.x2) * (x0 - this.x2) + (y0 - this.y2) * (y0 - this.y2));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\treturn x0 - this.x2;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif(y0 < this.y1){\r\n\t\t\t\treturn this.y1 - y0;\r\n\t\t\t}else if(y0 > this.y2){\r\n\t\t\t\treturn y0 - this.y2;\r\n\t\t\t}else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "ad9d2a1110afbcf365b45cfc52f3221c", "score": "0.6182006", "text": "public abstract boolean findingMinimum();", "title": "" }, { "docid": "a5b2eb212f99cc66d72ad7a55765de4c", "score": "0.61717063", "text": "public float getMinDistance() {\n return instance.getMinDistance();\n }", "title": "" }, { "docid": "b176acf038e9eab975e1741d0e2b5f64", "score": "0.61654896", "text": "boolean hasDistance();", "title": "" }, { "docid": "b176acf038e9eab975e1741d0e2b5f64", "score": "0.61654896", "text": "boolean hasDistance();", "title": "" }, { "docid": "f1326f833822e3a7a2fe7ea9da9b4453", "score": "0.6160113", "text": "public Builder setMinDistance(float value) {\n copyOnWrite();\n instance.setMinDistance(value);\n return this;\n }", "title": "" }, { "docid": "ec52f77314425bd604a6350d2a12ec77", "score": "0.6145233", "text": "private void clearMinDistance() {\n \n minDistance_ = 0F;\n }", "title": "" }, { "docid": "037a9cd8f346051e8f654bfb12ef85d2", "score": "0.609967", "text": "private int findMin(int[] distance, boolean[] visited) {\n int minIndex = 0;\n int minValue = Integer.MAX_VALUE;\n\n for (int i = 0; i < distance.length; i++) {\n if (!visited[i] && distance[i] < minValue) {\n minIndex = i;\n minValue = distance[i];\n }\n }\n\n return minIndex;\n }", "title": "" }, { "docid": "b6eb96f8bb7198b45733f06b3f2b4c6e", "score": "0.60980946", "text": "public static void main(String[] args) {\n\t\tdistance d1 = new distance();\n\t\tPoint[] arrOfPoints = new Point[16];\n\t\t\n\t\td1.test(arrOfPoints);\n\t\t//d1.Sort(arrOfPoints);\n\t\t\n\t\tArrays.sort(arrOfPoints, new Comparator<Point>() {\n\n\t\t @Override\n\t\t public int compare(Point arg0, Point arg1) {\n\t\t return Double.compare(arg0.x, arg1.x);\n\t\t }\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\tdouble minPoint = d1.minPoint(arrOfPoints, 0,15);\n\t\t\n\t\tSystem.out.println(minPoint + \" is the minimum distance\");\n\t}", "title": "" }, { "docid": "70dc23063f70da657aba32724440a737", "score": "0.6075791", "text": "public void getMinDistance(String source, String destination){\n\n //find cityNode labels\n CityNode current;\n CityNode destinationCity = new CityNode();\n CityNode sourceCity = new CityNode();\n\n boolean sourceFound = false;\n boolean destinationFound = false;\n\n for(int index = 0; index < 20; index++){\n current = cityList.get(index);\n\n if(source.equals(current.getCityCode())){\n sourceCity = current;\n sourceFound = true;\n }\n if(destination.equals(current.getCityCode())){\n destinationCity = current;\n destinationFound = true;\n }\n\n }\n if((!sourceFound) || (!destinationFound)) {\n printCodeError();\n return;\n }\n\n ShortestPath p = new ShortestPath();\n p.dijkstra(edgeMatrix, sourceCity, destinationCity);\n\n }", "title": "" }, { "docid": "85532b107bd22c8a32d448242bd4b2e2", "score": "0.60668015", "text": "public static void testMin() {\n for (int numTrials = 100; numTrials > 0; numTrials--) {\n BinarySearchST<Integer,Integer> st = new BinarySearchST<Integer,Integer>();\n assertEquals (null, st.min ());\n int min = Integer.MAX_VALUE;\n for (int numAdded = 100; numAdded > 0; numAdded--) {\n int next = StdRandom.uniform (1000);\n st.put (next, next*10);\n min = Math.min (min, next);\n assertEquals (min, st.min ());\n }\n }\n }", "title": "" }, { "docid": "99155d40ba62cfd2e8f311bba0ed1663", "score": "0.60469776", "text": "private double minDistance(Edge e1, Edge e2) {\n\t\tdouble minDistance = Double.POSITIVE_INFINITY;\r\n\t\tfor (Waypoint w1 : e1.getWaypoints()) {\r\n\t\t\tif (w1 != e1.start() && w1 != e1.end()) {\r\n\t\t\t\tfor (Waypoint w2 : e2.getWaypoints()) {\r\n\t\t\t\t\tif (w2 != e2.start() && w2 != e2.end()) {\r\n\t\t\t\t\t\tminDistance = Math.min(minDistance, w1.distance(w2));\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\tNode e1Source = e1.getSourceNode();\r\n\t\tNode e1Target = e1.getTargetNode();\r\n\t\tNode e2Source = e2.getSourceNode();\r\n\t\tNode e2Target = e2.getTargetNode();\r\n\t\tEdgePainter.Point source1 = e1.intercept(e1Source, true);\r\n\t\tEdgePainter.Point target1 = e1.intercept(e1Target, false);\r\n\t\tEdgePainter.Point source2 = e2.intercept(e2Source, true);\r\n\t\tEdgePainter.Point target2 = e2.intercept(e2Target, false);\r\n\t\t// Intercepts are degenerately null...\r\n\t\tminDistance = source1 == null || source2 == null ? minDistance\r\n\t\t\t\t: Math.min(minDistance, distance(source1, source2));\r\n\t\tminDistance = target1 == null || target2 == null ? minDistance\r\n\t\t\t\t: Math.min(minDistance, distance(target1, target2));\r\n\t\treturn minDistance;\r\n\t}", "title": "" }, { "docid": "9b0063fb65d90178aabf5797513a3c9a", "score": "0.6032702", "text": "@Disabled(\"Broken. Have a smoking gun test to fix.\")\n @Test\n public void testComputeMinimumDistancePointsSimpleCases()\n {\n double[][] verticesOne = new double[][] {{0.0, 0.0}, {0.0, 1.0}, {1.0, 1.0}, {1.0, 0.0}};\n double[][] verticesTwo = new double[][] {{2.0, 0.0}, {2.0, 1.0}, {3.0, 1.0}, {3.0, 0.0}};\n\n ConvexPolygon2D polygonOne = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesOne));\n ConvexPolygon2D polygonTwo = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesTwo));\n\n ConvexPolygonTools tools = new ConvexPolygonTools();\n\n Point2D closestPointOnOne = new Point2D();\n Point2D closestPointOnTwo = new Point2D();\n tools.computeMinimumDistancePoints(polygonOne, polygonTwo, closestPointOnOne, closestPointOnTwo);\n\n assertEquals(1.0, closestPointOnOne.getX(), epsilon);\n assertEquals(2.0, closestPointOnTwo.getX(), epsilon);\n assertEquals(closestPointOnOne.getY(), closestPointOnTwo.getY(), epsilon);\n assertTrue(closestPointOnOne.getY() >= 0.0);\n assertTrue(closestPointOnOne.getY() <= 1.0);\n\n // Test one top moved over a little\n verticesOne = new double[][] {{0.0, 0.0}, {0.0, 1.0}, {1.00001, 1.0}, {1.0, 0.0}};\n polygonOne = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesOne));\n tools.computeMinimumDistancePoints(polygonOne, polygonTwo, closestPointOnOne, closestPointOnTwo);\n\n assertTrue(closestPointOnOne.epsilonEquals(new Point2D(1.00001, 1.0), epsilon));\n assertTrue(closestPointOnTwo.epsilonEquals(new Point2D(2.0, 1.0), epsilon));\n\n // Test one bottom moved over a little\n verticesOne = new double[][] {{0.0, 0.0}, {0.0, 1.0}, {1.0, 1.0}, {1.0001, 0.0}};\n polygonOne = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesOne));\n tools.computeMinimumDistancePoints(polygonOne, polygonTwo, closestPointOnOne, closestPointOnTwo);\n\n assertTrue(closestPointOnOne.epsilonEquals(new Point2D(1.0001, 0.0), epsilon));\n assertTrue(closestPointOnTwo.epsilonEquals(new Point2D(2.0, 0.0), epsilon));\n\n //Test two simple triangles.\n verticesOne = new double[][] {{0.0, 0.0}, {1.0, 1.0}, {1.0, 0.0}};\n verticesTwo = new double[][] {{1.0, 2.0}, {2.0, 2.0}, {2.0, 1.0}};\n\n polygonOne = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesOne));\n polygonTwo = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesTwo));\n tools.computeMinimumDistancePoints(polygonOne, polygonTwo, closestPointOnOne, closestPointOnTwo);\n\n assertTrue(closestPointOnOne.epsilonEquals(new Point2D(1.0, 1.0), epsilon));\n assertTrue(closestPointOnTwo.epsilonEquals(new Point2D(1.5, 1.5), epsilon));\n\n //Test two more simple triangles. This was giving trouble...\n verticesOne = new double[][] {{1.0, 1.0}, {1.001, 0.0}, {0.0, 0.0}};\n polygonOne = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(verticesOne));\n tools.computeMinimumDistancePoints(polygonOne, polygonTwo, closestPointOnOne, closestPointOnTwo);\n\n assertTrue(closestPointOnOne.epsilonEquals(new Point2D(1.0, 1.0), epsilon));\n assertTrue(closestPointOnTwo.epsilonEquals(new Point2D(1.5, 1.5), epsilon), \"closestPointOnTwo = \" + closestPointOnTwo);\n }", "title": "" }, { "docid": "bf9745fcf8fe96fbbc8e08a416e0bf50", "score": "0.60224503", "text": "private boolean changeMinCost(){\n\t\tboolean update = false;\n\t\t\n\t\tint cost = 0;\n\t\tint[] tmpCosts = new int[RouterSimulator.NUM_NODES];\n\t\tint[] tmpRouteThrough = routeThrough;\n\n\t\tfor(int i = 0; i < RouterSimulator.NUM_NODES; i++){\n\t\t\tint minCost = RouterSimulator.INFINITY;\n\t\t\tif(i == myID) continue;\t\n\t\t\tfor(int nbr : neighbours) {\n\t\t\t\tif(nbr == myID)continue;\t\n\t\t\t\tcost = distanceVectors[nbr][i];\n\t\t\t\tif(cost + distanceVectors[myID][nbr] < minCost){\n\t\t\t\t\tminCost = cost + distanceVectors[myID][nbr];\n\t\t\t\t\ttmpCosts[i] = minCost;\n\t\t\t\t\ttmpRouteThrough[i] = nbr;\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < RouterSimulator.NUM_NODES; i++){\n\t\t\tif (costs[i] != tmpCosts[i] || routeThrough[i] != tmpRouteThrough[i]){\n\t\t\t\tSystem.arraycopy(tmpCosts, 0, costs, 0, RouterSimulator.NUM_NODES);\n\t\t\t\tSystem.arraycopy(tmpRouteThrough, 0, routeThrough, 0, RouterSimulator.NUM_NODES);\n\t\t\t\tupdate = true;\n\t\t\t}\n\t\t}\n\t\treturn update;\n\t}", "title": "" }, { "docid": "8740e9382c084d310f3c96a7a4a20825", "score": "0.60207206", "text": "private double getMinDistanceFromSubset(Point[] subset, double min) {\n if (subset.length == 0) {\n return min;\n } else {\n //We'll stash all of subset in here except the first entry,\n //just like lisp's CDR operator\n Point[] newSubset = new Point[subset.length - 1];\n\n //Find the min dist from A to each B\n for (int i = 1; i < subset.length; i++) {\n double newMin = subset[0].distance(subset[1]);\n if (newMin < min) {\n min = newMin;\n }\n newSubset[i - 1] = subset[i];\n }\n //Chop off A\n return getMinDistanceFromSubset(newSubset, min);\n }\n }", "title": "" }, { "docid": "b29e127df8ff4b260902660948722997", "score": "0.6020698", "text": "private void minimumDetourDistance(double detourDist1, double detourDist2) {\n\t\t\n\t\tSystem.out.println(\"\\nDetour Distance for Driver1 is: \\n\\tDISTANCE(A->C->D->B) - DISTANCE(A->B) = \" + detourDist1 + \" miles\");\n\t\tSystem.out.println(\"Detour Distance for Driver2 is: \\n\\tDISTANCE(C->A->B->D) - DISTANCE(C->D) = \" + detourDist2 + \" miles\\n\");\n\t\tif(detourDist1 < detourDist2)\n\t\t\tSystem.out.println(\"Detour Distance for Driver 1 is shorter\");\n\t\telse\n\t\t\tSystem.out.println(\"Detour Distance for Driver 2 is shorter\");\n\t\t\t\n\t}", "title": "" }, { "docid": "d231db0f8753c12a279e150ce7bf2b2a", "score": "0.6017228", "text": "private static double distance(Vector vector, ArrayList<Vector> S) {\n double minDistance = Double.MAX_VALUE;\n for(Vector center: S){\n double distance = Math.sqrt(Vectors.sqdist(vector,center));\n if(distance < minDistance){\n minDistance = distance;\n }\n }\n return minDistance;\n }", "title": "" }, { "docid": "cb43c141c95d9e5592739392a00f1eab", "score": "0.59897584", "text": "private Position<Entry<K,V>> findMin() {\n\t\t Position<Entry<K,V>> small = list.first();\n\t\t for (Position<Entry<K,V>> walk : list.positions())\n\t\t\tif (comp.compare(walk.getElement().getKey(), small.getElement().getKey()) < 0)\n\t\t\t\t small = walk; // found an even smaller key\n\t\t \treturn small; \n\t }", "title": "" }, { "docid": "1127edf8ae2e5feb2f521543183a143a", "score": "0.5961169", "text": "@Test\n public void testMinPath(){\n CampusMap campusMap= new CampusMap(\"test_buildings.tsv\",\"test_paths.tsv\");\n Path<Point> finalPath = campusMap.findShortestPath(\"NB\",\"EP\");\n Path<Point> perfectPath = new Path<>(new Point(1.00,3.00));\n perfectPath = perfectPath.extend(new Point(4.00,7.00),20.00);\n perfectPath = perfectPath.extend(new Point(12.00,10.00),1.00);\n perfectPath = perfectPath.extend(new Point(7.00,9.00),2.00);\n perfectPath = perfectPath.extend(new Point(1.0,1.0),10.0);\n assert(perfectPath.getCost() == finalPath.getCost());\n }", "title": "" }, { "docid": "fb88e9e6ee12bf0bb4c002090d096c93", "score": "0.5945315", "text": "public static void min(Point3D[] pointArray) {\r\n // Declare and initialise min variable with Double.POSITIVE_INFINITY so\r\n // that distance will always initially be less than min\r\n double min = Double.POSITIVE_INFINITY;\r\n\r\n // Initialise one and two variables\r\n int one = 0;\r\n int two = 0;\r\n\r\n // Declare distance variable\r\n double distance;\r\n\r\n // For loop to increment the first point\r\n for (int i = 0; i < pointArray.length; i++)\r\n\r\n // For loop to increment through the second point\r\n // Note that j = i + 1, so that we are not measuring the distance\r\n // between the same two points\r\n for (int j = i + 1; j < pointArray.length; j++) {\r\n\r\n // Using .distance() method find the distance between\r\n // pointArray[i] and pointArray[j] and assign to distance\r\n // variable\r\n distance = pointArray[i].distance(pointArray[j]);\r\n\r\n // If distance is less than min\r\n if (distance < min) {\r\n // Assign value of distance to min\r\n min = distance;\r\n // Assign value of i to one\r\n one = i;\r\n // Assign value of j to two\r\n two = j;\r\n }\r\n }\r\n //Print the min distance as well as the two points\r\n System.out.println(\"Minimum separation is \" + min + \" between points \"\r\n + one + \" and \" + two);\r\n }", "title": "" }, { "docid": "64b2d4615b2bee00a432b58cddd771de", "score": "0.5937256", "text": "private static void calculateMinimumDistance(Node evaluationNode,\n \t\t Integer edgeWeigh, Node sourceNode) {\n \t\t Integer sourceDanger = sourceNode.getDanger();\n \t\t if (sourceDanger + edgeWeigh < evaluationNode.getDanger()) {\n \t\t evaluationNode.setDanger(sourceDanger + edgeWeigh);\n \t\t LinkedList<Node> shortestPath = new LinkedList<>(sourceNode.getShortestPath());\n \t\t shortestPath.add(sourceNode);\n \t\t evaluationNode.setShortestPath(shortestPath);\n \t\t }\n \t\t}", "title": "" }, { "docid": "ff7b4e131e94504a7aadc8e81c0f5633", "score": "0.59245235", "text": "public int getMinDistance(Element e1, Element e2) {\r\n\t\tdouble length = new DijkstraShortestPath<Element, DefaultEdge>(graph,e1, e2).getPathLength();\r\n\t\treturn (length == Double.POSITIVE_INFINITY || length == 0) ? -1 : new Double(length).intValue();\r\n\t}", "title": "" }, { "docid": "82fca9bf44a658207ed24c72926886f5", "score": "0.5914558", "text": "private boolean smaller(double x0, double x1, double y0, double y1) {\n return lt(x0, y0) && lt(x0, y1) && lt(x1, y0) && lt(x1, y1);\n }", "title": "" }, { "docid": "9deb12f54660bdaf53e96ca80822f12c", "score": "0.59131527", "text": "public double minDist(Point2D select) {\n\t\tint startPoint = currPts.length - 1;\n\t\tdouble min = Double.POSITIVE_INFINITY;\n\t\tfor (int endPoint = 0; endPoint < currPts.length; endPoint++) {\n\t\t\tLine2D test = new Line2D.Double(currPts[startPoint],\n\t\t\t\t\tcurrPts[endPoint]);\n\t\t\tmin = Math.min(min, test.ptSegDist(select));\n\t\t\tstartPoint = endPoint;\n\t\t}\n\t\treturn min;\n\t}", "title": "" }, { "docid": "bb33568e66180942b4f48387ea9ed160", "score": "0.5894394", "text": "private Node getLowestDistanceNode(Set<Node> unsettledNodes) {\n Node lowestDistanceNode = null;\n int lowestDistance = Integer.MAX_VALUE;\n for (Node node : unsettledNodes) {\n int nodeDistance = node.getShortestDistance(this);\n if (nodeDistance <= lowestDistance && nodeDistance != Integer.MAX_VALUE) {\n lowestDistance = nodeDistance;\n lowestDistanceNode = node;\n }\n }\n return lowestDistanceNode;\n }", "title": "" }, { "docid": "1d1646a920418c3accd96db3d1b67458", "score": "0.58856666", "text": "public void calcMIN()\n {\n }", "title": "" }, { "docid": "2b83fe2a08cdc2cdd4407060f21518e9", "score": "0.5880949", "text": "public double getMinValue() {\n\t\treturn Math.min(getAutonomieDistance(),this.getDistance());\n}", "title": "" }, { "docid": "89195fb58aecb129e2b222cb77774eba", "score": "0.5869424", "text": "private Node nearest(double distance,Node champ, Node node, Point2D query, \n\t\t\tDouble oldXMax, Double oldXMin, Double oldYMax, Double oldYMin){\n\t\t\n\t\tif(node == null) return null;\n\t\t\n\t\t//Step 1: Is this node closer than the distance to beat?\n\t\tdouble champDistance = distance;\n\t\tdouble thisNodeDistance = query.distanceSquaredTo(node.key);\n\t\tNode champNode = champ;\n\t\t\n\t\tif(thisNodeDistance < distance) {\n\t\t\tchampDistance = thisNodeDistance;\n\t\t\tchampNode = node;\n\t\t}\n\n\t\t// step 2: can anything in this node's rect be closer than the champDistance?\n\t\t\t//what is the closest point to the query that is inside the rect?\n\t\t\t\t//is that point closer to the query than the champ?\n\t\t\t\t// If so , then there may be a closer point inside the rect\n\t\t\n\t\tdouble testX; //closest possible x value.\n\t\tdouble testY; // closest possible y value\n\t\tPoint2D testPoint;\n\t\tdouble testDistance;\n\t\t\n\t\t// if oldXMax isn't infinity (null), and less than the query point's x, \n\t\t// then the max is as close as you can get on the x axis\n\t\tif(oldXMax != null && query.x() > oldXMax) testX = oldXMax;\n\t\t\n\t\t// if oldXMin isn't infinity (null), and it is greater than the query'x x,\n\t\t// then this min is as close as you can get on the x axis.\n\t\telse if (oldXMin != null && query.x() < oldXMin) testX = oldXMin;\n\t\t// if neither of the two cases above are true, then the closest you \n\t\t// can get is the actual x value of the query.\n\t\telse testX = query.x();\n\t\t\n\t\t// Same logic as above but for y values.\n\t\tif(oldYMax != null && query.y() > oldYMax) testY = oldYMax;\n\t\telse if (oldYMin != null && query.y() < oldYMin) testY = oldYMin;\n\t\telse testY = query.y();\n\t\t\n\t\t//test point with the closest possible values.\n\t\ttestPoint = new Point2D(testX,testY); \n\t\t\n\t\t// distance between closest point possible and the query\n\t\ttestDistance = query.distanceSquaredTo(testPoint);\n\t\t\n\t\t// if the testDistance is closer than the champ distance, then proceed. \n\t\t// if not, then prune the search.\n\t\tif(testDistance < champDistance){\n\t\t\t\n\t\t\t// the results of searching the left and right children of this node. \n\t\t\t// We will return the best one later.\n\t\t\tNode result1;\n\t\t\tNode result2;\n\t\t\t\n\t\t\t// step 3: find new values for the next nodes rect:\n\t\t\t\t//find new boundaries for new method calls. First, declare them and assign them to the old values.\n\t\t\tDouble newXMax = oldXMax;\n\t\t\tDouble newXMin = oldXMin;\n\t\t\tDouble newYMax = oldYMax;\n\t\t\tDouble newYMin = oldYMin;\n\t\t\n\t\t\t//Next, if this node is horizontal, change the Y value, if not, change the X values. \n\t\t\t// However, the corresponding rectangle for each node is only different \n\t\t\t// by one value from the parent node, so we will account for changing both of them \n\t\t\t// by using the old values in the method calls, depending on whether the node we are submitting \n\t\t\t//in the method call is greater or less than this node. \n\t\t\t//(if less, the max values change, if greater, the min values change).\n\t\t\tif(node.horizontal){\n\t\t\t\tnewYMax = node.key.y();\n\t\t\t\tnewYMin = node.key.y();\n\t\t\t} else {\n\t\t\t\tnewXMax = node.key.x();\n\t\t\t\tnewXMin = node.key.x();\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble bestDistance;\n\t\t\t\n\t\t\t//step 4: which way to go first, left or right?\n\t\t\tint cmp = comparePoints(query,node.key,node.horizontal);\n\t\t\t\n\t\t\t//if the query is greater than this node, we go right first, then left, but we must \n\t\t\t// update the champDistance and champNode values in between.\n\t\t\t// This is to help the second method call to be more efficient by having updated values that\n\t\t\t// will might prune the search faster.\n\t if (cmp < 0) {\n\t \t//step 5: compare the points found from both sub-trees and return the closest one.\n\t \t\t// Get the result form the first subtree, then compare the distances. If it found a closer point, \n\t \t\t// then that is our new champion.\n\t \tresult1 = nearest(champDistance,champNode,node.left,query,newXMax,oldXMin,newYMax,oldYMin); //go left\n\t \tif(result1 != null) {\n\t \t\tbestDistance = query.distanceSquaredTo(result1.key);\n\t \t\tif(bestDistance < champDistance) {\n\t\t \t\tchampDistance = bestDistance;\n\t\t \t\tchampNode = result1;\n\t\t \t}\n\t \t}\n\t \t//Now go left with updated champion values. If it finds a better one, update champion, etc.\n\t \tresult2 = nearest(champDistance,champNode,node.right,query,oldXMax,newXMin,oldYMax,newYMin); //then right\n\t \tif(result2 !=null){\n\t \t\tbestDistance = query.distanceSquaredTo(result2.key);\n\t\t \tif(bestDistance < champDistance) {\n\t\t \t\tchampDistance = bestDistance;\n\t\t \t\tchampNode = result2;\n\t\t \t}\n\t \t}\n\t }\n\t \n\t else if (cmp > 0) {\n\t \t//step 5: compare the points found from both sub-trees and return the closest one.\n\t \t\t//Same process as above except we go in the opposite order.\n\t \tresult1 = nearest(champDistance,champNode,node.right,query,oldXMax,newXMin,oldYMax,newYMin); //go right\n\t \tif(result1 != null) {\n\t \t\tbestDistance = query.distanceSquaredTo(result1.key);\n\t \t\tif(bestDistance < champDistance) {\n\t\t \t\tchampDistance = bestDistance;\n\t\t \t\tchampNode = result1;\n\t\t \t}\n\t \t}\n\t \tresult2 = nearest(champDistance,champNode,node.left,query,newXMax,oldXMin,newYMax,oldYMin); //then left\n\t \tif(result2 !=null){\n\t \t\tbestDistance = query.distanceSquaredTo(result2.key);\n\t\t \tif(bestDistance < champDistance) {\n\t\t \t\tchampDistance = bestDistance;\n\t\t \t\tchampNode = result2;\n\t\t \t}\n\t \t}\n\t }\n\t\t}\n\t\t//After all is said and done, return the closest node we have found.\n\t\treturn champNode;\n\t}", "title": "" }, { "docid": "d4cb960b95d81d837db1eed0e01a6b9e", "score": "0.58677757", "text": "@Override\n\tpublic double getDistanceTo(Location location) {\n\t\tdouble minDistance = Double.MAX_VALUE;\n\t\tfor (Marker marker : markers) {\n\t\t\tdouble dist = marker.getDistanceTo(location);\n\t\t\tminDistance = dist < minDistance ? dist : minDistance;\n\t\t}\n\t\treturn minDistance;\n\t}", "title": "" }, { "docid": "33eaaf3defb1e579ba4b5d84e6e26f17", "score": "0.5865614", "text": "boolean findMin(double d){\n\t\tif(d< A){\n\t\t\tA = d;\n\t\t\treturn true;\n\t\t} else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "e99e0b7876485e41f1ffa01612a529aa", "score": "0.5851635", "text": "public int minDistance(int height, int width, int[] tree, int[] squirrel, int[][] nuts) {\n int min_delta = Integer.MAX_VALUE;\n int sum = 0;\n for (int i = 0; i < nuts.length; ++i) {\n int dt = dis(nuts[i], tree);\n sum += (dt << 1);\n min_delta = Math.min(min_delta, dis(squirrel, nuts[i]) - dt);\n }\n\n return sum + min_delta;\n }", "title": "" }, { "docid": "074d7574d8d8f2d75b1e27c1d069f059", "score": "0.5848049", "text": "float getDistance();", "title": "" }, { "docid": "074d7574d8d8f2d75b1e27c1d069f059", "score": "0.5848049", "text": "float getDistance();", "title": "" }, { "docid": "3efca82c218fbb4860c93be0e5f08e9c", "score": "0.58437485", "text": "public int min(){\n\t\tint min =10;\n\t\tint ret =8;\n\t\tint x = start[0];\n\t\tint y = start[1];\n/*\t\tfor(int j=0;j<horizontal.length;j++){\n\t\ttry{\n\t\t\tif(chess[start[0]+vertical[j]][start[1]+horizontal[j]]<1)\n\t\t\t{\tif(access[start[0]+vertical[j]][start[1]+vertical[j]]<min)\n\t\t\t {\tmin=access[start[0]+vertical[j]][start[1]+horizontal[j]];\n\t\t\t\tret=j;}\n\t\t \tif(access[start[0]+vertical[j]][start[1]+horizontal[j]]==min)\n\t\t\t\tif(ahead(start[0]+vertical[j],start[1]+horizontal[j])>ahead(x,y))\n\t\t\t\t{\tret=j;\n\t\t\t\tx = start[0]+vertical[j]; y=start[1]+horizontal[j];}\n\t\t\t} \n\t\t}\n\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t }\n\t\t}*/\n\t\t\t\t\tif(start[0]-1>=0&&start[1]+2<8&&chess[start[0]-1][start[1]+2]<1)\n\t\t\t\t\t{ \tif(access[start[0]-1][start[1]+2]<min){\n\t\t\t\t\t\t\tmin=access[start[0]-1][start[1]+2];\n\t\t\t\t\t\tret=0;}\n\t\t\t\t\tif(access[start[0]-1][start[1]+2]==min)\n\t\t\t\t\t\tif(ahead(start[0]-1,start[1]+2)>ahead(x,y))\n\t\t\t\t\t\t{\tret =0;\n\t\t\t\t\t\tx = start[0]-1; y=start[1]+2;}\n\t\t\t\t\t }\n\t\t\t\t\tif(start[0]-2>=0&&start[1]+1<8&&chess[start[0]-2][start[1]+1]<1)\n\t\t\t\t\t{\tif(access[start[0]-2][start[1]+1]<min){\n\t\t\t\t\t\t\tmin=access[start[0]-2][start[1]+1];\n\t\t\t\t\t\tret=1;}\n\t\t\t\t\tif(access[start[0]-2][start[1]+1]==min)\n\t\t\t\t\t\tif(ahead(start[0]-2,start[1]+1)>ahead(x,y)){\n\t\t\t\t\t\t\tret =1;\n\t\t\t\t\t\tx =start[0]-2; y=start[1]+1;}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]-2>=0&&start[1]-1>=0&&chess[start[0]-2][start[1]-1]<1)\n\t\t\t\t\t{\tif(access[start[0]-2][start[1]-1]<min){\n\t\t\t\t\t\t\tmin=access[start[0]-2][start[1]-1];\n\t\t\t\t\t\tret=2;}\n\t\t\t\t\tif(access[start[0]-2][start[1]-1]==min)\n\t\t\t\t\t\tif(ahead(start[0]-2,start[1]-1)>ahead(x,y)){\n\t\t\t\t\t\t\tret =2;\n\t\t\t\t\t\tx=start[0]-2; y= start[1]-1;}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]-1>=0&&start[1]-2>=0&&chess[start[0]-1][start[1]-2]<1)\n\t\t\t\t\t{\tif(access[start[0]-1][start[1]-2]<min){\n\t\t\t\t\t\t\tmin=access[start[0]-1][start[1]-2];\n\t\t\t\t\t\tret=3;}\n\t\t\t\t\tif(access[start[0]-1][start[1]-2]==min)\n\t\t\t\t\t\tif(ahead(start[0]-1,start[1]-2)>ahead(x,y)){\n\t\t\t\t\t\t\tret =3;\n\t\t\t\t\t\tx = start[0]-1; y=start[1]-2;}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]+1<8&&start[1]-2>=0&&chess[start[0]+1][start[1]-2]<1)\n\t\t\t\t\t{\tif(access[start[0]+1][start[1]-2]<min)\n\t\t\t\t\t\t\tmin=access[start[0]+1][start[1]-2];\n\t\t\t\t\t\tret=4;\n\t\t\t\t\tif(access[start[0]+1][start[1]-2]==min)\n\t\t\t\t\t\tif(ahead(start[0]+1,start[1]-2)>ahead(x,y)){\n\t\t\t\t\t\t\tret =4;\n\t\t\t\t\t\tx=start[0]+1; y=start[1]-2;}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]+2<8&&start[1]-1>=0&&chess[start[0]+2][start[1]-1]<1)\n\t\t\t\t\t{\tif(access[start[0]+2][start[1]-1]<min){\n\t\t\t\t\t\t\tmin=access[start[0]+2][start[1]-1];\n\t\t\t\t\t\tret= 5;}\n\t\t\t\t\tif(access[start[0]+2][start[1]-1]==min)\n\t\t\t\t\t\tif(ahead(start[0]+2,start[1]-1)>ahead(x,y)){\n\t\t\t\t\t\t\tret =5;\n\t\t\t\t\t\tx = start[0]+2; y=start[1]-1;}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]+2<8&&start[1]+1<8&&chess[start[0]+2][start[1]+1]<1)\n\t\t\t\t\t{\tif(access[start[0]+2][start[1]+1]<min){\n\t\t\t\t\t\t\tmin=access[start[0]+2][start[1]+1];\n\t\t\t\t\t\tret= 6;}\n\t\t\t\t\tif (access[start[0]+2][start[1]+1]==min)\n\t\t\t\t\t\tif(ahead(start[0]+2,start[1]+1)>ahead(x,y)){\n\t\t\t\t\t\t\tret =6;\n\t\t\t\t\t\tx = start[0]+2; y=start[1]+1;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(start[0]+1<8&&start[1]+2<8&&chess[start[0]+1][start[1]+2]<1)\n\t\t\t\t\t{\tif(access[start[0]+1][start[1]+2]<min){\n\t\t\t\t\t\t\tmin=access[start[0]+1][start[1]+2];\n\t\t\t\t\t\tret= 7;}\n\t\t\t\t\t\tif(access[start[0]+1][start[1]+2]==min)\n\t\t\t\t\tif(ahead(start[0]+1,start[1]+2)>ahead(x,y)){\n\t\t\t\t\t\t\tret =7;\n\t\t\t\t\t\tx =start[0]+1; y=start[1]+2;}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"max here is this \"+min);\n\t\t\t\t\treturn ret;\n\t\t\t}", "title": "" }, { "docid": "49d89f3780216de56a449b009917967e", "score": "0.5836205", "text": "public boolean isDistance() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ee4f78ed9a9eb1023c09567cedbe1202", "score": "0.5831691", "text": "public double getShortestDistance(Primitive other) {\n double currentLowestDistance = Double.MAX_VALUE;// numeric_limits<double>::infinity();\n\n int i;\n int j;\n for (i = 0; i < this.getNumPoints(); i++) {\n for (j = 0; j < other.getNumPoints(); j++) {\n double distance = this.getPoint(i).distanceTo(other.getPoint(j));\n\n if (distance < currentLowestDistance) {\n currentLowestDistance = distance;\n }\n }\n }\n return currentLowestDistance;\n }", "title": "" }, { "docid": "72aa403a0ef556b4bf91c680af42b265", "score": "0.58303094", "text": "double getMinLat();", "title": "" }, { "docid": "d685c3e07f8c847e0100d5f493ea43a2", "score": "0.58271915", "text": "@Test\n public void extractMin_test()\n {\n try\n {\n heap.buildHeap(input);\n int lastMin = Integer.MIN_VALUE;\n for (Node n : input)\n {\n Node min = heap.extractMin();\n Assert.assertTrue(min.getMinDistance() >= lastMin);\n lastMin = min.getMinDistance();\n Assert.assertTrue(verifier.verifyHeap(HeapTools.Nodes2Int(heap.toArrayList())));\n verifier.extractMin();\n Assert.assertTrue(verifier.verifyElements(HeapTools.Nodes2Int(heap.toArrayList())));\n }\t \n }\n catch (Exception e) \n { \n e.printStackTrace();\n System.exit(1);\n } \n }", "title": "" }, { "docid": "fb03619fadc429623f135cfa106f7929", "score": "0.5808281", "text": "public void testDistance() throws InsufficientOverlapException {\n System.out.println(\"distance\");\n Rule r1S1 = new Rule(1, s1);\n r1S1.addValue(new Value(\"11.157,15\", \"1\", \"e1\")); //1 pq tem valor nulo em r1S2\n r1S1.addValue(new Value(\"10.000,00\", \"2\", \"e2\")); //0 pq são iguais (na verdade eles são diferentes mas estão dentro do p que nesse caso é 227.91)\n r1S1.addValue(new Value(\"12.563,45\", \"3\", \"e3\")); //nada pq não tem em r1S2\n r1S1.addValue(new Value(\"14.523,55\", \"4\", \"e4\")); // 0 pq são iguais\n r1S1.addValue(new Value(\"10.205,00\", \"5\", \"e5\")); //0 pq são iguais \n\n Rule r1S2 = new Rule(1, s2);\n r1S2.addValue(new Value(null, \"1\", \"e1\")); // -- \n r1S2.addValue(new Value(\"9.002,00\", \"1\", \"e6\")); //nada pq não tem em r1S1\n r1S2.addValue(new Value(\"10.227,01\", \"2\", \"e2\")); // ---\n r1S2.addValue(new Value(\"14.523,55\", \"3\", \"e4\")); // ---\n r1S2.addValue(new Value(\"10.205,00\", \"4\", \"e5\")); // ---\n r1S2.addValue(new Value(\"13.021,00\", \"5\", \"e7\")); // nada pq não tem em r1S1\n\n NumberDistance instance = new NumberDistance();\n double expResult = 1.0/4; //4 é o número de instâncias compartilhadas\n double result = instance.distance(r1S1, r1S2);\n assertEquals(expResult, result, 0.0);\n \n }", "title": "" }, { "docid": "97508a4452281afd9e70f209ce970bf5", "score": "0.5803088", "text": "public static int minDistance(WeightedGraph wg, int[] dist, boolean[] visited) {\r\n int min_index = -1; //no adjacent vetex\r\n int min = Integer.MAX_VALUE;\r\n\r\n for (int g = 0; g < dist.length; g++) {\r\n if (!visited[g] && dist[g] < min) {\r\n min = dist[g]; // new lowest distance\r\n min_index = g; // index with lowest value\r\n }\r\n }\r\n return min_index;\r\n\r\n }", "title": "" }, { "docid": "f46761f3558639286a399fafe7af1b66", "score": "0.5802379", "text": "@Test\n public void toDistanceTest() {\n assertEquals(Math.PI, EncoderUtil.toDistance(4096, 4096, 1, 1), Util.kEpsilon);\n assertEquals(2*Math.PI, EncoderUtil.toDistance(8192, 4096, 1, 1), Util.kEpsilon);\n assertEquals(Math.PI, EncoderUtil.toDistance(8192, 4096, 2, 1), Util.kEpsilon);\n assertEquals(Math.PI, EncoderUtil.toDistance(4096, 8192, 1, 2), Util.kEpsilon);\n assertEquals(Math.PI*2000/8192, EncoderUtil.toDistance(2000, 8192, 1, 1), Util.kEpsilon);\n assertEquals(Math.PI, EncoderUtil.toDistance(1024, 1024, 1, 1), Util.kEpsilon);\n assertEquals(2*Math.PI, EncoderUtil.toDistance(2048, 1024, 1, 1), Util.kEpsilon);\n assertEquals(Math.PI, EncoderUtil.toDistance(2048, 1024, 2, 1), Util.kEpsilon);\n assertEquals(Math.PI, EncoderUtil.toDistance(1024, 2048, 1, 2), Util.kEpsilon);\n assertEquals(Math.PI*2000/1024, EncoderUtil.toDistance(2000, 1024, 1, 1), Util.kEpsilon);\n }", "title": "" }, { "docid": "66c22fe69d10ce42dfe469329a6ade4b", "score": "0.5801499", "text": "private static Node getLowestDistanceNode(Set < Node > unsettledNodes) {\n Node lowestDistanceNode = null;\n int lowestDistance = Integer.MAX_VALUE;\n \n for (Node node: unsettledNodes) {\n \t//getDanger() returns node to node edge weight.\n int nodeDistance = node.getDanger();\n if (nodeDistance < lowestDistance) {\n lowestDistance = nodeDistance;\n lowestDistanceNode = node;\n }\n }\n return lowestDistanceNode;\n }", "title": "" }, { "docid": "d6ab47e862aaaf9abbe95d41c3b3eab8", "score": "0.579959", "text": "public static double minCost(HashSet<ANode> nodeSet, Point query) {\n\t\tif (nodeSet.size() == 1) {\n\t\t\tfor (ANode node : nodeSet)\n\t\t\t\treturn traverseMinDist(node, query);\n\t\t\treturn -1;\t// will never happen\n\t\t} else {\n\t\t\tdouble maxqeiDist = 0, maxejekDist = 0;\n\t\t\tfor (ANode ei : nodeSet)\n\t\t\t\tmaxqeiDist = Double.max(maxqeiDist, traverseMinDist(ei, query));\n\t\t\tfor (ANode ej : nodeSet)\n\t\t\t\tfor (ANode ek : nodeSet)\n\t\t\t\t\tmaxejekDist = Double.max(maxejekDist, traverseMinDist(ej, ek));\n\t\t\treturn maxqeiDist + maxejekDist;\n\t\t}\n\t}", "title": "" }, { "docid": "9936d42ee40d06909a7bbbe386cbc94a", "score": "0.57957435", "text": "@Test(priority = 6, description = \"Test getting the shortest route distance\", groups = {\"shakeout\", \"regression\", \"MC\"}, enabled = true)\n\tpublic void testGetShortestRouteDistance() {\n\t\tlogger.info(\"Test question 8, the length of the shortest route (in terms of distance to travel) from A to C.\");\n\t\tTown<String> startingTown = new Town<String>(\"A\");\n\t\tTown<String> endingTown = new Town<String>(\"C\");\n\t\tassertEquals(trainsRoutesDirectedGraph.getShortestRouteDistance(startingTown, endingTown), \"9\");\n\t\t\n\t\tlogger.info(\"Test question 9, the length of the shortest route (in terms of distance to travel) from B to B.\");\n\t\tstartingTown.setTownName(\"B\");\n\t\tendingTown.setTownName(\"B\");\n\t\tassertEquals(trainsRoutesDirectedGraph.getShortestRouteDistance(startingTown, endingTown), \"9\");\n\t}", "title": "" }, { "docid": "22a210a5766ceb7a3e6e5f979fd52646", "score": "0.57935977", "text": "public X find_min();", "title": "" }, { "docid": "b472e327286b0a8d3ad03196814d901d", "score": "0.5749693", "text": "float getTargetDistance();", "title": "" }, { "docid": "bec58919107a007a10e46e609c60a83b", "score": "0.5734706", "text": "private void calculateShortestDistance() {\n openList.put(startingLocation, new NodeWrapper(startingLocation, startingLocation, destinationNode));\n\n while (!atDestination) {\n Node currentNode = returnOpenNodeWithLowestFCost();\n closedMap.put(currentNode, openList.get(currentNode));\n openList.remove(currentNode);\n\n if (currentNode.equals(destinationNode)) {\n atDestination = true;\n } else {\n Set<Node> validNeighbors = currentNode.getNeighbours()\n .stream()\n .filter(node -> !closedMap.containsKey(node))\n .collect(Collectors.toSet());\n\n for (Node n : validNeighbors) {\n if (!openList.containsKey(n) || getNodeFCost(currentNode, n) < openList.get(n).getFinalCost()) {\n if (openList.containsKey(n)) {\n openList.get(n).setParentNode(currentNode); // also automatically changes nodeWrapper's FinalCost\n } else {\n openList.put(n, new NodeWrapper(n, currentNode, destinationNode));\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "4e0a96a7c43fa320aa97425456376deb", "score": "0.5733853", "text": "public boolean hasMin() { return hasMin; }", "title": "" }, { "docid": "4a759835af79706ad7e03c1ac5be39c7", "score": "0.57320136", "text": "public boolean lessThan(Indent indent, int dist) {\n\t\tif (!tabStepDeduced) {\n\t\t\tdeduceTabStep();\n\t\t}\n\t\tint d = Math.abs(size - indent.size);\n\t\treturn size < indent.size && d <= (dist*tabStep);\n\t}", "title": "" }, { "docid": "a70793d13937b1c52b0f8ebadc437598", "score": "0.57139504", "text": "int distanceTo();", "title": "" }, { "docid": "d6b0051f4917c5329a08924e47f386a7", "score": "0.57011044", "text": "void setDistanceToNearestExon(int d) {\n\tthis.rvarstart = d;\n }", "title": "" }, { "docid": "289991e2ccf487a6c70e83f616f653f9", "score": "0.5688479", "text": "double getDistance();", "title": "" }, { "docid": "71d6c24e3b0e596912e4390a2bea06d7", "score": "0.56810045", "text": "private Node getLowestDistance(List<Node> openNodes) {\n Node lowest = openNodes.get(0);\n for (int i = 1; i < openNodes.size(); i++) {\n if (openNodes.get(i).getDistance() < lowest.getDistance()) lowest = openNodes.get(i);\n }\n return lowest;\n }", "title": "" }, { "docid": "3623d173a5c48da4da2ebadf8c1bd628", "score": "0.56791806", "text": "@Test\n public void minPosMany() {\n int[] array = new int[]{1, 232, 43432, 123, 543, 4343, 123, 5644, 34, 12};\n this.list.init(array);\n int exp = 0;\n int act = this.list.minPos();\n assertEquals(exp, act);\n }", "title": "" }, { "docid": "fca0ca86619914d31a6f9ce487a0b4f5", "score": "0.5677221", "text": "private CompareLatitude() {\n\t\t}", "title": "" }, { "docid": "6b15736e2b5bcd892de7060df8347997", "score": "0.5672851", "text": "public int getSearchDistance ();", "title": "" }, { "docid": "934cb1dda27fb8c5c4c79e53dac35d81", "score": "0.5667284", "text": "double getMinLon();", "title": "" }, { "docid": "c6cd37822d3446fb1c4db19f0608504d", "score": "0.566124", "text": "private int minUtility(Pair state, Pair ghostPos) {\n if (ghostPos.equals(state))\n return 100;\n if(board.isEnd(state))\n return -10;\n return 0;\n }", "title": "" }, { "docid": "0a9e562e737b8036515c3f21bf04c03d", "score": "0.5650152", "text": "private Vertex findSmallestDistanceVertex() {\n\t\tVertex tmp = null;\n\t\tfor (Vertex v : adjacencyList.values()) {\n\t\t\tif (v.known == false) {\n\t\t\t\tif (tmp == null)\n\t\t\t\t\ttmp = v;\n\t\t\t\tif (v.dist < tmp.dist)\n\t\t\t\t\ttmp = v;\n\t\t\t}\n\t\t}\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "0b7e07c5a6899e5d967fe23aeb14e178", "score": "0.5647625", "text": "public int compareTo(Vertex other){\r\n\t\treturn Integer.compare(minDistance, other.minDistance);\r\n\t}", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.564621", "text": "double getMin();", "title": "" }, { "docid": "2d9acc8ff260a028d28ea99ab5ea462b", "score": "0.56318605", "text": "public int minVertex(Graph graph, boolean[] visited, double[] distance) {\n int min = -1;\n double minimum = Double.MAX_VALUE;\n for (int i = 0; i < graph.getVertices(); i++) {\n if (visited[i])\n continue; // Skip nodes that are already in ours MST\n if (distance[i] < minimum) {\n min = i;\n minimum = distance[i];\n }\n }\n return min; // Return the minimum distance\n }", "title": "" }, { "docid": "363c6c892a1bb829845ddc0342ac2a6d", "score": "0.56269103", "text": "private int findMinimumUnmarked() {\n\n /* You do not have to use this method. */\n int minV = -1;\n for (int w: open) {\n minV = w;\n break;\n }\n for (int v: open) {\n if (distTo[v] + h(v) < distTo[minV] + h(minV)) {\n minV = v;\n }\n }\n return minV;\n }", "title": "" }, { "docid": "766d052ee63f4fa70bdaca3744d1a28c", "score": "0.5626122", "text": "public int smallestDistancePair(int[] nums, int k) {\n Arrays.sort(nums);\n int minPossibleDiff=0;\n int maxPossibleDiff=nums[nums.length-1]-nums[0];\n while(minPossibleDiff<maxPossibleDiff){\n int midDiff=(minPossibleDiff+maxPossibleDiff)/2;\n //find number of elements in array starting from left=0 which have a diff <=midDiff, so that we can eliminate one half of the array\n int left=0,count=0;\n for(int right=0;right<nums.length;right++){\n //check if the diff is >midDiff, if so move left forward until we find a point where diff<=midDiff\n while(nums[right]-nums[left]>midDiff){\n left++;//these are numbers that we need to skip to get a diff<=middiff\n }\n count+=right-left;//number of pairs whose diff is less rthan or equal to mid\n }\n //count = number of pairs with distance <= mi\n if(count>=k){\n maxPossibleDiff=midDiff;\n }\n else{\n minPossibleDiff=midDiff+1;\n }\n }\n // `lo` ends up being an actual distance in the input, because\n //the binary search mechanism waits until the exact lo/hi combo where\n //2nd to last `mid` did not produce enough results (k or more), but\n // the last `mid` did.\n return minPossibleDiff;\n }", "title": "" }, { "docid": "b04935dc6f362f6dadd0bdba76302ec3", "score": "0.562446", "text": "public int compareTo(Vertex other)\n {\n return Double.compare(minDistance, other.getMinDistance());\n }", "title": "" }, { "docid": "9d8d7095886c92fbecfd5317ea411f56", "score": "0.561704", "text": "int getDistance();", "title": "" }, { "docid": "0ddb23b1a7b7329e6d6c60f59fdc58cc", "score": "0.5613775", "text": "public void testDistanceFromBase()\n\t{\n\t\tint longitude = 50;\n\t\tint latitude = 50;\n\t\tLocationComparator comparator;\n\t\t\n\t\tUserModel userModel = this.user;\n\t\t\n\t\tuserModel.setLocation(new LocationModel(longitude, latitude));\n\t\tThreadModel model = new ThreadModel(\"Hello\", userModel, \"World\");\n\t\t\t\t\n\t\tcomparator = new LocationComparator(latitude, latitude);\n\t\t\n\t\tint zeroDistance = (int) Math.round(comparator.distanceFromBase(model));\n\t\tassertTrue(\"Distance is zero\", approximateDistance(zeroDistance, 0, 0));\n\t\t\n\t\t/* Location should be about 138000 meters between [50,50] and [51,51] */\n\t\tcomparator = new LocationComparator(++latitude, ++longitude);\n\t\tint distance = (int) comparator.distanceFromBase(model);\n\t\tassertTrue(\"Distance is positive 138000\", approximateDistance(distance,138000, 8000));\n\t\t\n\t}", "title": "" }, { "docid": "f0767356fa753aaa2cde94287d035864", "score": "0.56107855", "text": "private boolean smaller(double x, double y0, double y1) {\n return lt(x, y0) && lt(x, y1);\n }", "title": "" }, { "docid": "ab4c654f88fb738cc3317171d6702d93", "score": "0.5603934", "text": "private int minimum( int insertCost, int deleteCost, int replaceCost ) {\n\t\tint min = insertCost;\n\t\tif( deleteCost < min ) min = deleteCost;\n\t\tif( replaceCost < min ) min = replaceCost;\n\t\t\n\t\treturn min;\n\t}", "title": "" }, { "docid": "beae6989cbcb07da3b2b8316a1fd384b", "score": "0.5601193", "text": "@Test\n\tpublic void findNearest() throws FileNotFoundException {\n\t\tInput.readVertices(\"vertices-clean.txt\");\n\t\tassertEquals(closeEnough(new Point(6.2474335, -75.5620597)), true);\n\t\tassertEquals(closeEnough(new Point(6.2828405, -75.5847190)), true);\n\t\tassertEquals(closeEnough(new Point(6.2447886, -75.6125282)), true);\n\t\tassertEquals(closeEnough(new Point(6.2842056, -75.5545066)), true);\n\t\tassertEquals(closeEnough(new Point(6.2447886, -75.6125282)), true);\n\t}", "title": "" }, { "docid": "f3073c5abe20293cb9ca5f91004ee8d9", "score": "0.55930597", "text": "public double getMin();", "title": "" }, { "docid": "9579573a083bb95ad99f31b1e44066fe", "score": "0.558067", "text": "public static void main(String[] args) {\n\t\tString str1 = \"sea\";\r\n\t\tString str2 = \"ate\";\r\n\t\tSolution s = new Solution();\r\n\t\tSystem.out.println(s.minDistance(str1, str2));\r\n\t}", "title": "" }, { "docid": "51cf3e996f03f9a93dc6d436e7be887a", "score": "0.55787444", "text": "public void findMinMaxCentre() {\n //znajdz max w wierszu\n // mapa -> klucz : index wierszu, wartosc: indeks kolumny\n HashMap<Integer, Integer> max = new HashMap<>(distanceMatrix.length);\n\n //dodaj najwieksze elementy w wierszu\n int maxTemp;\n for (int i = 0; i < distanceMatrix.length; i++) {\n max.put(i, 0);\n for (int j = 1; j < distanceMatrix[i].length; j++) {\n maxTemp = (distanceMatrix[i][j] > distanceMatrix[i][j - 1]) ? j : j - 1;\n max.replace(i, max.get(i), (distanceMatrix[i][max.get(i)] > distanceMatrix[i][maxTemp]) ? max.get(i) : maxTemp);\n }\n }\n\n//// znajdz min wsrod maksimum i sprawdz czy nie ma ich wiecej\n int min = 0;\n int minTemp;\n for (int i = 1; i < max.size(); i++) {\n minTemp = (distanceMatrix[i - 1][max.get(i - 1)] < distanceMatrix[i][max.get(i)]) ? i - 1 : i;\n min = (distanceMatrix[min][max.get(min)] < distanceMatrix[minTemp][max.get(minTemp)]) ? min : minTemp;\n }\n\n //jezeli jest wiele center minamx to dodaj\n HashMap<Integer, Integer> minMap = new HashMap<>();\n minMap.put(min, max.get(min));\n for (int i = 0; i < max.size(); i++) {\n if (i != min && distanceMatrix[i][max.get(i)] == distanceMatrix[min][max.get(min)]) {\n minMap.put(i, max.get(i));\n }\n }\n StringBuilder s = new StringBuilder();\n s.append(\"\\n\");\n //iteruj przez kazde centrum min-max i wypisz\n for (Map.Entry<Integer, Integer> entry : minMap.entrySet()) {\n Integer key = entry.getKey();\n Integer value = entry.getValue();\n s.append(\"Centrum MIN-MAX: \");\n s.append(key);\n s.append(\" - \");\n s.append(distanceMatrix[key][value]);\n s.append(\"\\n\");\n }\n\n try (FileWriter fw = new FileWriter(\"DistanceMatrix.txt\", true);\n BufferedWriter bw = new BufferedWriter(fw);\n PrintWriter out = new PrintWriter(bw)) {\n out.println(s.toString());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "713394394101a46be384488983d5ab8e", "score": "0.5556144", "text": "public Point2 nearestNeighbor(Point2 q, Point2 closest, double smallDistance) {\n\t\t\tif (this.topLeft == NULL_NODE && this.bottomRight == NULL_NODE) {\n\t\t\t\treturn closest;\n\t\t\t}\n\t\t\tdouble smallestDistance = smallDistance;\n\t\t\tPoint2 smallestPoint = closest;\n\t\t\tif (this.topLeft != NULL_NODE) {\n\t\t\t\tdouble leftDistance = this.topLeft.bounds.distanceTo(q);\n\t\t\t\tif (leftDistance < smallDistance) {\n\t\t\t\t\tdouble leftD = this.topLeft.p.distanceTo(q);\n\t\t\t\t\tif(leftD < smallDistance) {\n\t\t\t\t\t\tsmallestDistance = leftD;\n\t\t\t\t\t\tsmallestPoint = this.topLeft.p;\n\t\t\t\t\t}\n\t\t\t\t\tsmallestPoint = this.topLeft.nearestNeighbor(q, smallestPoint, smallestDistance);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(this.bottomRight != NULL_NODE) {\n\t\t\t\tdouble rightDistance = this.bottomRight.bounds.distanceTo(q);\n\t\t\t\tif(rightDistance < smallestDistance) {\n\t\t\t\t\tdouble rightD = this.bottomRight.p.distanceTo(q);\n\t\t\t\t\tif(rightD < smallestDistance) {\n\t\t\t\t\t\tsmallestDistance = rightD;\n\t\t\t\t\t\tsmallestPoint = this.bottomRight.p;\n\t\t\t\t\t}\n\t\t\t\t\tsmallestPoint = this.bottomRight.nearestNeighbor(q, smallestPoint, smallestDistance);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//else \n\t\t\treturn smallestPoint;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54106f6fd0d686ccc0777057ae142226", "score": "0.55530983", "text": "private void evaluateNeighborsWithMinimalDistances(Vertex currentVertex) {\n List<Vertex> adjacentVertices = getNeighbors(currentVertex);\n for (Vertex target : adjacentVertices) {\n float alternateDistance = getShortestDistance(currentVertex) + getDistance(currentVertex, target);\n if (alternateDistance < getShortestDistance(target)) {\n distance.put(target, alternateDistance);\n previousPaths.put(target, currentVertex);\n unvisitedVertices.add(target);\n }\n }\n }", "title": "" }, { "docid": "5e5ba2ff6a0548c259e25fc4005e30f8", "score": "0.55494004", "text": "boolean validateDistanceMinutes(final long distance);", "title": "" }, { "docid": "1b58341f0505527efcd3ad7655b120c9", "score": "0.5546259", "text": "public boolean withinDistance(Position a) {\n\t\t\n\t\tdouble distance = distanceBetween(a);\n\t\t\n\t\tif (distance <= 0.00025) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "875ad0e538dcab74dae1abf90a50697b", "score": "0.5535172", "text": "private boolean testMinParameter(String str, float minValue) {\r\n\r\n double tmp;\r\n\r\n try {\r\n new Double(0);\r\n } catch (OutOfMemoryError error) {\r\n MipavUtil.displayError(\"Out of memory: ViewJFrameGraph.testMinParameter\");\r\n return false;\r\n }\r\n\r\n try {\r\n tmp = Double.valueOf(str).floatValue();\r\n\r\n if (tmp > minValue) {\r\n MipavUtil.displayError(\"Minimum value must be less than or equal to \" + minValue);\r\n \treturn false;\r\n }\r\n return true;\r\n \r\n } catch (NumberFormatException error) {\r\n MipavUtil.displayError(\"Must enter numeric value\");\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "157eaf950d25c0c301efdd364de9e9b5", "score": "0.5526118", "text": "public static int getMinDistIndex(List<Route> data) {\n int minValue = data.get(0).getLegList().get(0).getDistance().getValue();\n int index = 0;\n for (int i = 1; i < data.size(); i++) {\n if (data.get(i).getLegList().get(0).getDistance().getValue() < minValue) {\n minValue = data.get(i).getLegList().get(0).getDistance().getValue();\n index = i;\n }\n }\n return index;\n }", "title": "" }, { "docid": "ce1a64b3c394c998c02ad5ad8ddfcd50", "score": "0.55253685", "text": "private void findNearestCluster_SingleLinkage() {\n\t\tdouble minDistance = Double.MAX_VALUE;\n\t\tCluster aNode = null, bNode = null;\n\t\tfor (int i = 0; i < listAHCTree.size() - 1; i++) {\n\t\t\tCluster aTempNode = listAHCTree.get(i);\n\t\t\tfor (int j = i + 1; j < listAHCTree.size(); j++) {\n\t\t\t\tCluster bTempNode = listAHCTree.get(j);\n\t\t\t\tdouble tempMinDistance = Double.MAX_VALUE;\n\t\t\t\tIterator itr = aTempNode.getTraceIndices().iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tint trace1 = ((Integer) itr.next()).intValue();\n\t\t\t\t\tIterator itr2 = bTempNode.getTraceIndices().iterator();\n\t\t\t\t\twhile (itr2.hasNext()) {\n\t\t\t\t\t\tint trace2 = ((Integer) itr2.next()).intValue();\n\t\t\t\t\t\tif (tempMinDistance > distances.get(trace1, trace2))\n\t\t\t\t\t\t\ttempMinDistance = distances.get(trace1, trace2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (minDistance > tempMinDistance) {\n\t\t\t\t\tminDistance = tempMinDistance;\n\t\t\t\t\taNode = aTempNode;\n\t\t\t\t\tbNode = bTempNode;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tAHCTreeNode aAHCTreeNode = new AHCTreeNode(input.getLog(), \"Cluster \"\n\t\t\t\t+ clusterCounter++, (AHCTreeNode) aNode, (AHCTreeNode) bNode,\n\t\t\t\tminDistance);\n\t\tlistAHCTree.remove(aNode);\n\t\tlistAHCTree.remove(bNode);\n\t\tlistAHCTree.add(aAHCTreeNode);\n\t}", "title": "" }, { "docid": "34920b51615ba6503a73aee2de0b3d56", "score": "0.55214846", "text": "@Test\n\tpublic void proximityTest1LowerManhattan() {\n\t\t\n\t\t//Test GPS Coordinates\n\t\tdouble userLat = 40.704304;\n\t\tdouble userLong = -74.014290;\n\t\t\n\t\t//Expected\n\t\tString expectedName = \"Broadway & Battery Pl\";\t\n\t\tint expectedStationId = analyzer.stationNametoId(expectedName);\n\t\t\n\t\t//Test Output\n\t\tint stationId = analyzer.analyzeCloseProximity(userLat, userLong);\n\t\tString outputName = analyzer.stationIdtoName(stationId);\t\t\n\t\tassertEquals(expectedStationId, expectedStationId);\n\t\tassertEquals(expectedName, outputName);\n\t\t\n\t}", "title": "" }, { "docid": "58d9fecaf748ea94e34c3545544918f2", "score": "0.55182666", "text": "public abstract int minimumGeofenceSize();", "title": "" }, { "docid": "43715e679f6d86797befbccc5ae1bf74", "score": "0.55179083", "text": "@Override\n public int solveTSP(String startCity, ArrayList<String> toVisit,\n Map<String, Integer> distances) {\n // initialize the mini distance as 99999999 \n int min_distance = 999999999;\n // two special condition to return the zero cost\n if (toVisit.size()==0)\n return 0;\n // create an arraylist<arraylist<string>> to store the perms of all the toVisit cities\n ArrayList<ArrayList<String>> toVisit_perm = cityPerms(toVisit);\n // create an loop to get the cost of the path of each perm of the toVisit and compeare them and return the minimum value\n for (int i=0; i < toVisit_perm.size(); i++)\n {\n // get each perm according to the the increment of i in the loop \n ArrayList<String> temp = (ArrayList<String>) toVisit_perm.get(i);\n // use the helper method to get the distance of one perm\n int compare_distance = solveTspHelper(temp, distances, 0);\n // if the map of distances contains the path of start city and the first city in the current perm list, then plus the distance and return it \n if (distances.containsKey(startCity + \":\" + temp.get(0)))\n compare_distance = compare_distance + distances.get(startCity+\":\"+temp.get(0));\n // if the map does not containt, then plus 999999999 to the distance\n else \n compare_distance = compare_distance + 999999999;\n // compare the distance with the former minium distance, if the new distance is smaller, than replace it.\n if (min_distance > compare_distance)\n min_distance = compare_distance;\n }\n // return the minium distance\n return min_distance;\n }", "title": "" } ]
8fcd0a94e68b2ae68a91bb3799d6d114
optional string dip = 6;
[ { "docid": "6e8ee44f10b44c6dea0cb2b86b75e450", "score": "0.0", "text": "public boolean hasDip() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" } ]
[ { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "283e42b7cc093d0d1a374babf2fef2f6", "score": "0.65678453", "text": "java.lang.String getDip();", "title": "" }, { "docid": "a5c6cfb16a96cda44ee3014f7ec0258f", "score": "0.650098", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b84dfcd4d6619025646deae3464c5e9", "score": "0.6430874", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b84dfcd4d6619025646deae3464c5e9", "score": "0.6430571", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b84dfcd4d6619025646deae3464c5e9", "score": "0.6430567", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64210445", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.642079", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.642079", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.642079", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64193135", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64193135", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64193135", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64193135", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "46aa1d23dc324ad1d069dbbaf2d19c00", "score": "0.64193135", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.6394767", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.6394263", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe81af7832fc50055669566607e8030", "score": "0.63939595", "text": "public Builder setDip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n dip_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e708fd0efca221626832fdd4ed1d38eb", "score": "0.5789729", "text": "private void setPais(String string) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.56026745", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5602585", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5602585", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5602585", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5601799", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.560128", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.560128", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5601171", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600994", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9c28107aea6fc63cc0d13558c6b8c984", "score": "0.5600918", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\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 dip_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7636903ee4abd8ffecd66ac279b55f6f", "score": "0.5466667", "text": "private String symbolFormat(String str){\n switch(str) {\n case \"Circle\":\n symbol = \"19\";\n break;\n case \"Square\":\n symbol = \"15\";\n break;\n case \"Diamond\":\n symbol = \"18\";\n break;\n case \"Triangle\":\n symbol = \"17\";\n break;\n default:\n System.out.println(\"Error\");\n symbol = \"0\";\n }\n return symbol;\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5454455", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5454245", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5454245", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5454245", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5453628", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5453628", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5453628", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5453545", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.5453545", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530567", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2b69f74b6ba1791b2d072920691b8b04", "score": "0.54530245", "text": "public java.lang.String getDip() {\n java.lang.Object ref = dip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n dip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "5583b89ef55cde1ff600ad255476c43d", "score": "0.54344857", "text": "int getUDiamond();", "title": "" }, { "docid": "604a97910575ab819b8e9e64d4ca1c1b", "score": "0.53327304", "text": "@Test\n public void stringPiDuration(){\n assertEquals(\"String should be z3.14\", \"z3.14\", PI_DURATION.toString());\n }", "title": "" }, { "docid": "0768a108059db501a16dc0ce2f6809d4", "score": "0.53104144", "text": "public void setDec(String value) {\n/* 177 */ this.dec = value;\n/* */ }", "title": "" }, { "docid": "804a3bb6beefd5935fbfafd9a2d5a7b8", "score": "0.5293506", "text": "public com.google.protobuf.ByteString\n getDipBytes() {\n java.lang.Object ref = dip_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n dip_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "804a3bb6beefd5935fbfafd9a2d5a7b8", "score": "0.5293506", "text": "public com.google.protobuf.ByteString\n getDipBytes() {\n java.lang.Object ref = dip_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n dip_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "804a3bb6beefd5935fbfafd9a2d5a7b8", "score": "0.5293506", "text": "public com.google.protobuf.ByteString\n getDipBytes() {\n java.lang.Object ref = dip_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n dip_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "804a3bb6beefd5935fbfafd9a2d5a7b8", "score": "0.5292005", "text": "public com.google.protobuf.ByteString\n getDipBytes() {\n java.lang.Object ref = dip_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n dip_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
45b89d23d7931272a5f643b82d58e4f4
TODO(ohler): We could save some work here by traveling the direct path from the previous leaf to the new leaf.
[ { "docid": "b31cf48e04501b1a3296cab7f846f9b7", "score": "0.0", "text": "private void updateInheritedAnnotationsFromPosition(int position) {\n collectAllAnnotationsAt(position, inheritedAnnotationsForInsertion);\n }", "title": "" } ]
[ { "docid": "868ea247e38eebc78513270c3c217313", "score": "0.65801823", "text": "private void findFinalPath() {\n ArrayList<Node> path = new ArrayList<Node>();\n Node current = this.target;\n\n while(current != this.start) {\n path.add(current);\n current.setOnPath(true);\n current = current.getParent();\n }\n\n Node[] reversed = new Node[path.size()];\n\n for(int i = 0, j = path.size() - 1; j >= 0; j--, i++) {\n reversed[i] = path.get(j);\n }\n\n this.path = reversed;\n }", "title": "" }, { "docid": "2cc8941b5bdfe8e987ab07a4698f1926", "score": "0.6218954", "text": "private static void prolongatePath(Vector<Integer> pth, Vector<Vector<Integer>> previous, Vector<Vector<Integer>> paths){\n\t\t int k = ((Integer)pth.get(pth.size()-1)).intValue();\n\t\t Vector<Integer> prev = previous.get(k);\n\t\t if(prev.size()>0){\n\t\t pth.add(prev.get(0));\n\t\t for(int i=1;i<prev.size();i++){\n\t\t Vector<Integer> pthb = new Vector<Integer>();\n\t\t for(int j=0;j<pth.size()-1;j++)\n\t\t pthb.add(pth.get(j));\n\t\t pthb.add(prev.get(i));\n\t\t prolongatePath(pthb,previous,paths);\n\t\t paths.add(pthb);\n\t\t }\n\t\t prolongatePath(pth,previous,paths);\n\t\t }\n\t\t }", "title": "" }, { "docid": "83aa6434f4e9cfe62ac7cb0d3c27813c", "score": "0.61639374", "text": "private static List<Node> reconstructPath(Node current) {\n // Create a local variable to hold the path, using an ArrayList\n List<Node> path = new ArrayList<>();\n // Add the current node to the path\n path.add(current);\n /*\n While the current node has a previous node (when we reach a node in the path without a\n previous node, this is the start node)\n */\n while(current.getPrevious() != null) {\n // Set the current node to be this node's previous node\n current = current.getPrevious();\n /*\n Add the current node to the start of the path (as we are working backwards,\n we add each node to the start so that the path will end up in the correct order).\n */\n path.add(0,current);\n }\n // Return the completed path\n return path;\n }", "title": "" }, { "docid": "29a2b87c5b84d4cad6fc07d385dc47b3", "score": "0.6152467", "text": "private ArrayList<PathNode> reconstructPath(PathNode pCurrentNode){\r\n \t\tif (pCurrentNode.parent != null){\r\n \t\t\tArrayList<PathNode> p = reconstructPath(pCurrentNode.parent);\r\n \t\t\tp.add(pCurrentNode);\r\n \t\t\treturn p;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tArrayList<PathNode> path = new ArrayList<PathNode>();\r\n \t\t\tpath.add(pCurrentNode);\r\n \t\t\treturn path;\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "ed69ef48c37e4a8b23fe6c56e9bbfdf9", "score": "0.59993315", "text": "public void traceBack(Node end) {\n\t\twhile (end.previous != start) {\n\t\t\tend = end.previous;\t\n\t\t\tPathFinder.arr2D[end.row][end.col] = '.';\n\t\t\tshortestPath++;\n\t\t}\n\t}", "title": "" }, { "docid": "b429ecd97e73bcee30bd6457ed0eb82d", "score": "0.5975033", "text": "public void up() {\n Log.p(\"Up one level.\" + status());\n if (path.isEmpty()) {\n return;\n }\n path.removeElementAt(path.size() - 1);\n }", "title": "" }, { "docid": "5de117559aadb21e5fb2f8d2ef8b1e1b", "score": "0.59562725", "text": "void updateAncestorsDistanceToLeaf() {\n setDistance();\n if (parent != null) {// if its the root\n parent.updateAncestorsDistanceToLeaf();\n }\n }", "title": "" }, { "docid": "f77af47f2d950862101810378b9bf05f", "score": "0.58889884", "text": "boolean hasOriginalLeaf();", "title": "" }, { "docid": "67b1b94358204f811c17ee2a08945419", "score": "0.5880952", "text": "public void adjust_sPath()\r\n {\n int column = 1; // start for 2nd node and dont touch A\r\n while(column < nodeNumber) // go across columns\r\n {\r\n// if this column’s node already in tree, skip it\r\n if( nodeList[column].connected )\r\n {\r\n column++;\r\n continue;\r\n }\r\n// calculate dis for one shPathArray entry\r\n// get edge from currentNode to column\r\nint currentTostart = adjMatrix[currentNode][column];// add dis from start\r\nint startToEnd = fromStarttoCurrent + currentTostart;//dis of current entry\r\nint sPathDist = shPathArray[column].dis;//compare dis from A to current entry\r\n\r\n if(startToEnd < sPathDist) // if shorter,\r\n { // update shPathArray\r\n shPathArray[column].nodeParent = currentNode;\r\n shPathArray[column].dis = startToEnd;\r\n }\r\n column++;\r\n }\r\n }", "title": "" }, { "docid": "dd657b42e782780d6721d0e9f65b3667", "score": "0.5859223", "text": "TrieLeafNode<E> prev();", "title": "" }, { "docid": "a5e3bb33900e2c4690cdc94095015575", "score": "0.58273864", "text": "private HuffmanNode travelDownNode(byte path, HuffmanNode currentNode) {\n //check if current node is leafnode (it is the only node of the tree)\n if (currentNode instanceof HuffmanLeafNode) {\n return currentNode;\n }\n HuffmanInternalNode currentInternalNode = (HuffmanInternalNode) currentNode;\n if (path == 0) {\n return currentInternalNode.getLeft();\n } else {\n return currentInternalNode.getRight();\n }\n }", "title": "" }, { "docid": "c1a7784cc4c8936ae7a76dd6ad189a8d", "score": "0.5819118", "text": "private void dfs(List<List<String>> res, List<String> path, String cur, String beginWord,\n Map<String, List<String>> map, Map<String, Integer> distance) {\n path.add(cur);\n if (cur.equals(beginWord)) {\n\n Collections.reverse(path); // Note that path is from end to start\n res.add(new ArrayList<>(path));\n Collections.reverse(path); // Reverse back\n } else {\n List<String> parents = map.get(cur);\n for (String p : parents) {\n // check if the p is reachable from beginWord\n if (distance.containsKey(p) && distance.get(cur) == distance.get(p) + 1) {\n dfs(res, path, p, beginWord, map, distance);\n }\n }\n }\n path.remove(path.size() - 1); // back tracking\n }", "title": "" }, { "docid": "31d1b3e67c37062a9e05e884cb2ad512", "score": "0.5802638", "text": "void updatePath()\r\n {\r\n\tif(x==path.verts.get(curVert).x && y==path.verts.get(curVert).y)\r\n\t{\r\n\t curVert+=suunta;\r\n\r\n\t if(curVert==-1 || curVert==path.verts.size()) // yli pisteiden, käännä suunta\r\n\t {\r\n\t\tcurVert+=-suunta;\r\n\t\tif(walkMode==0 || walkMode==3) suunta=0; // pysähdy\r\n\t\tif(walkMode==1) suunta=-suunta; // käännä suunta\r\n\t\tif(walkMode==2) // alkuun\r\n\t\t{\r\n\t\t curVert=0;\r\n\t\t reset(path.verts.get(curVert).x, path.verts.get(curVert).y); \r\n\t\t}\r\n\t\t\r\n\t\tif(walkMode==0) walkMode=-1; // hävitä\r\n\t\t\r\n\t\tlastPoint=true;\r\n\t }\r\n\t walkTo(path.verts.get(curVert).x, path.verts.get(curVert).y);\t \r\n \r\n\t}\r\n }", "title": "" }, { "docid": "17f3cfbaa40c59650a2a7655afe068c1", "score": "0.57895535", "text": "private void upOneLevel() {\n\t\tif (mStepsBack > 0) {\n\t\t\tmStepsBack--;\n\t\t}\n\t\tif (currentDirectory.getParent() != null){\n\t\t\t// browseTo(currentDirectory.getParentFile());\n\t\t\tDmtLogger.d(TAG, \"currentDirectory: \" + currentDirectory);\t\t\n\t\t\t\n\t\t\tnew TaskFtpGetParentFile(this, ftpService).execute(currentDirectory);\n\t\t}\n\t}", "title": "" }, { "docid": "d251f823143584f863d02b680eeb1961", "score": "0.574651", "text": "public void fixUp(Node<T> curr) {\n Node<T> rootNode = rblist.get(0);\n int size = rblist.size() - 1;\n Node<T> currParent = findPreviousIndex(curr);\n // System.out.println(currParent);\n while(curr != root && !currParent.color.equals(\"BLACK\")) {\n //is currParent the left child of its parent?\n //Right side\n Node<T> currGrandParent = findPreviousIndex(currParent);\n\n if(currParent == currGrandParent.left) {\n Node<T> currUncle = currGrandParent.right;\n //case 1: currUncle is red\n if(currUncle != null && currUncle.color.equals(\"RED\")) {\n currParent.color = \"BLACK\";\n currUncle.color = \"BLACK\";\n currGrandParent.color = \"RED\";\n\n //push curr up to it's grandparent.\n curr = currGrandParent;\n //currParent = curr.parent;\n Node<T> greatGrandP = findPreviousIndex(curr);\n if(greatGrandP != null) {\n currParent = greatGrandP;\n }\n\n } else {\n //case 2: we are our parent's right child\n if(curr == currParent.right) {\n curr = currParent;\n leftRotate(curr, 2);\n currParent = findPreviousIndex(curr);\n //currParent = curr;\n }\n //case 3: our sibling is a black node and we are red\n currParent.color = \"BLACK\";\n currGrandParent = findPreviousIndex(currParent);\n currGrandParent.color = \"RED\";\n if(currGrandParent == root) {\n rightRotate(currGrandParent, 2);\n } else {\n rightRotate(currGrandParent, 3);\n }\n\n } //end of if-else chain\n } else {\n //currParent is the right child\n //left side\n Node<T> currUncle = currGrandParent.left;\n //case 1: currUncle is red\n if(currUncle != null && currUncle.color.equals(\"RED\")) {\n currParent.color = \"BLACK\";\n currUncle.color = \"BLACK\";\n currGrandParent.color = \"RED\";\n\n //push curr up to it's grandparent.\n //curr = currParent.parent;\n curr = currGrandParent;\n //currParent = curr.parent;\n Node<T> greatGrandP = findPreviousIndex(curr);\n if(greatGrandP != null) {\n currParent = greatGrandP;\n }\n\n } else {\n //case 2: we are our parent's right child\n if(curr == currParent.left) {\n curr = currParent;\n rightRotate(curr, 2);\n currParent = findPreviousIndex(curr);\n }\n //case 3: our sibling is a black node and we are red\n currParent.color = \"BLACK\";\n currGrandParent = findPreviousIndex(currParent);\n currGrandParent.color = \"RED\";\n if(currGrandParent == root) {\n leftRotate(currGrandParent, 2);\n } else {\n leftRotate(currGrandParent, 3);\n }\n\n } //end of else\n } //end of if-else\n } //end of while\n root.color = \"BLACK\";\n\n }", "title": "" }, { "docid": "93ecf0fdf4f9bcfd64c805ec2938e24e", "score": "0.57405037", "text": "void setPrev(TrieLeafNode<E> prevNode);", "title": "" }, { "docid": "ae28d7a2968c5175d2c1982137e8acbe", "score": "0.57009995", "text": "public void updateStartEnd() {\n ArrayList<NaryTree> leaves = getLeaves();\n for (int i=0; i<leaves.size(); i++) {\n NaryTree leaf = leaves.get(i);\n leaf.start = i;\n leaf.end = i+1;\n }\n postOrderTraversal(new UpdateStartEnd());\n }", "title": "" }, { "docid": "6c2c6714bed3076c1f62da3efdf06569", "score": "0.56817186", "text": "private Path spitPath( Stack<NodeValue> nodes ) {\n Path newPath = new Path( nodes.size() );// (nodes, leaves) //if more than one leaf\n //newRule.setObjectClass(this.getRuleClass());\n Iterator<NodeValue> it = nodes.iterator();\n while ( it.hasNext() ) {\n\n NodeValue current = it.next();\n if ( it.hasNext() ) {\n newPath.addStep( current );\n } else {\n newPath.setStats( current );\n }\n }\n\n //\t\tif (slog.debug() != null) {\n //\t\t\tslog.debug().log(\"\\n\"+newPath.hashCode()+ \" : \"+ newPath + \"\\n\");\t\n //\t\t}\n return newPath;\n }", "title": "" }, { "docid": "dbabd49606380c848374ad10fe9d4ed2", "score": "0.5677903", "text": "public void testTurnDownTree() {\n\n TreeNode root = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n\n TreeNode leftLeft = new TreeNode(4);\n TreeNode leftRight = new TreeNode(5);\n\n TreeNode leftLeftLeft = new TreeNode(6);\n TreeNode leftLeftRight = new TreeNode(7);\n\n root.setLeft(left);\n root.setRight(right);\n\n left.setLeft(leftLeft);\n left.setRight(leftRight);\n\n leftLeft.setLeft(leftLeftLeft);\n leftLeft.setRight(leftLeftRight);\n\n TreeNode tr = BinaryTree.turndownTree(root);\n\n return;\n }", "title": "" }, { "docid": "bd9a77b104485ec5f76e10364abafb87", "score": "0.564013", "text": "private static void maintainTrees() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "bf432255116085ea6b3cf391f2b5cfa4", "score": "0.56274515", "text": "private Node traverseLeftBoundary(Node root, int how) {\n/* 1642 */ Node next = getSelectedNode(getStartContainer(), getStartOffset());\n/* 1643 */ boolean isFullySelected = (next != getStartContainer());\n/* */ \n/* 1645 */ if (next == root) {\n/* 1646 */ return traverseNode(next, isFullySelected, true, how);\n/* */ }\n/* 1648 */ Node parent = next.getParentNode();\n/* 1649 */ Node clonedParent = traverseNode(parent, false, true, how);\n/* */ \n/* 1651 */ while (parent != null) {\n/* */ \n/* 1653 */ while (next != null) {\n/* */ \n/* 1655 */ Node nextSibling = next.getNextSibling();\n/* */ \n/* 1657 */ Node clonedChild = traverseNode(next, isFullySelected, true, how);\n/* 1658 */ if (how != 3)\n/* 1659 */ clonedParent.appendChild(clonedChild); \n/* 1660 */ isFullySelected = true;\n/* 1661 */ next = nextSibling;\n/* */ } \n/* 1663 */ if (parent == root) {\n/* 1664 */ return clonedParent;\n/* */ }\n/* 1666 */ next = parent.getNextSibling();\n/* 1667 */ parent = parent.getParentNode();\n/* 1668 */ Node clonedGrandParent = traverseNode(parent, false, true, how);\n/* 1669 */ if (how != 3)\n/* 1670 */ clonedGrandParent.appendChild(clonedParent); \n/* 1671 */ clonedParent = clonedGrandParent;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1676 */ return null;\n/* */ }", "title": "" }, { "docid": "cf019c2185bba07a53c06efd7d9c4d57", "score": "0.56155133", "text": "private void travelToNextTileIfNeeded(double xOld, double yOld) {\r\n \t\t if (onEdge(xOld,yOld)) {\t\t\t \r\n \t\t\t setCurrentTileCoordinates(mapGraph, xOld, yOld);} \r\n \t\t else\r\n \t\t\t return;\r\n \t }", "title": "" }, { "docid": "b3d0a530ff5577c7c5e0c531e24e7b0a", "score": "0.5607768", "text": "private void definePath(TreeNode root, String[] path, int index)\n {\n if(index >= path.length)\n {\n // We've reached the end of the path, so we're done.\n return;\n }\n else\n {\n // Check if the children of the current root node contain\n // the current node on the path.\n TreeNode node = null;\n boolean found = false;\n Enumeration children = root.children();\n while(children.hasMoreElements())\n {\n node = (TreeNode) children.nextElement();\n if(((jParmDBnode) node.getUserObject()).getName().equals(path[index]))\n {\n found = true;\n break;\n }\n }\n \n if(found)\n {\n // Found. So let's continue with the next node on the path.\n definePath(node, path, index + 1);\n }\n else\n {\n // Not found. Create all the nodes on the path below and\n // including the current node.\n TreeNode pathRoot = root;\n jParmDBnode pathUserRoot = ((jParmDBnode) pathRoot.getUserObject());\n \n for(int i = index; i < path.length; i++)\n {\n // Parent node is no longer a leaf node.\n pathUserRoot.setLeaf(false);\n \n // Create a new jParmDBnode.\n String parentID = pathUserRoot.getNodeID();\n jParmDBnode item = new jParmDBnode(parentID + ParmDBTreeManager.PARMDB_TREENODE_SEPARATOR_CHAR + path[i], parentID);\n item.setName(path[i]);\n item.setLeaf(true);\n item.setParmDBLocation(pathUserRoot.getParmDBLocation());\n item.setParmDBIdentifier(pathUserRoot.getParmDBIdentifier());\n \n // Create a new TreeNode and add it to the current root.\n TreeNode newNode = new TreeNode(ParmDBTreeManager.instance, item, item.getNodeID());\n newNode.areChildrenDefined = true;\n pathRoot.add(newNode);\n \n // Is this necessary??\n TreeModelEvent evt = new TreeModelEvent(newNode, newNode.getPath());\n fireTreeInsertionPerformed(evt);\n \n // Newly created node becomes the root node for the next\n // iteration.\n pathRoot = newNode;\n pathUserRoot = ((jParmDBnode) pathRoot.getUserObject());\n }\n }\n }\n }", "title": "" }, { "docid": "8d64f80c472113d429ad37177dcf2770", "score": "0.55940825", "text": "protected void percolateUp(Node curr, Stack<Node> path, Stack<Integer> pastInsertPositions) {\n // curr is overflowed.\n // -> Percolate up the middle index entry of curr\n int mid = curr.size() / 2;\n Entry midEntry = curr.getEntry(mid);\n Node leftChild = new Node(ORDER, Arrays.copyOfRange(curr.getEntries(), 0, mid),\n Arrays.copyOfRange(curr.getChildren(), 0, mid + 1));\n Node rightChild = new Node(ORDER, Arrays.copyOfRange(curr.getEntries(), mid + 1, curr.size()),\n Arrays.copyOfRange(curr.getChildren(), mid + 1, curr.size() + 1));\n\n if (curr == root) {\n root = new Node(ORDER, new Entry[]{midEntry}, new Node[]{leftChild, rightChild});\n return;\n }\n\n // Insert into this parent node first, and if the parent node is overflowed, keep percolating up\n Node parent = path.pop();\n Integer pastInsertPos = pastInsertPositions.pop();\n parent.insertEntry(pastInsertPos, midEntry, leftChild, rightChild);\n if (parent.isOverflowed()) {\n BTreeBase.this.percolateUp(parent, path, pastInsertPositions);\n }\n }", "title": "" }, { "docid": "03dbf73809f6a4ae7d19bdd3a35bfe43", "score": "0.55930233", "text": "private void moveBackwards() {\n\n if (mGone.size() == 0) {\n mPath = new ArrayDeque<Integer>();\n return;\n }\n int previousNode = mGone.pop();\n\n // This will get you to the first node which you claimed\n boolean onYourNode = false;\n while (!onYourNode) {\n\n Reference<HexagonTile> hexagonTile = mGraph.getNode(previousNode).getHexTile();\n\n if (!Reference.isValid(hexagonTile)) {\n mPath.push(previousNode);\n return;\n }\n\n if (!hexagonTile.get().isClaimed()) {\n mPath.push(previousNode);\n if (mGone.size() == 0) {\n mPath = new ArrayDeque<Integer>();\n return;\n }\n previousNode = mGone.pop();\n } else if (!getPlayer().hasClaimedTile(hexagonTile.get())) {\n mPath.push(previousNode);\n if (mGone.size() == 0) {\n mPath = new ArrayDeque<Integer>();\n return;\n }\n if (mGone.size() == 0) {\n mPath = new ArrayDeque<Integer>();\n return;\n }\n previousNode = mGone.pop();\n } else {\n onYourNode = true;\n }\n }\n\n mGone.push(previousNode);\n }", "title": "" }, { "docid": "fd975cdf8e0d159865c1f4e83c7ab8cc", "score": "0.55719805", "text": "void reconstruct(HashMap<Cell, Cell> hm, Cell cur) {\n Cell next = hm.get(cur);\n this.finalPath.add(cur);\n if (!(this.cells.get(0).equals(next))) {\n this.reconstruct(hm, next);\n }\n }", "title": "" }, { "docid": "d98053f66cebc5b3ed4915176e48e3c8", "score": "0.5571959", "text": "void chopTree(){\n\t\t\n\t}", "title": "" }, { "docid": "605d27e6e0113fa6bb347205289c2cf2", "score": "0.5554582", "text": "@Override\n\t\t\tpublic void popNestedPath() throws IllegalStateException {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "41e961a0326998ea3e1bcf25ae594944", "score": "0.5537203", "text": "public TreeNodeWithParent goUp(TreeNodeWithParent node){\n\t\tTreeNodeWithParent pointer = node.getParent();\n\t\t\n\t\twhile(pointer.getrChild() == null || (pointer.getrChild()== node) ){\n\t\t\tpointer = pointer.getParent();\n\t\t}\n\t\t\n\t\treturn pointer;\n\t}", "title": "" }, { "docid": "78a6f561e789309b724c2666ce8c0db2", "score": "0.5526097", "text": "private void tracePath(AStarNode node) {\n while (node.prev != null) {\n path.add(node.position);\n node = node.prev;\n }\n }", "title": "" }, { "docid": "7d16898f0b94d885e943cf1b31b112f7", "score": "0.5523219", "text": "TravelInformation getPredecessor();", "title": "" }, { "docid": "db2b328fbdd98fa7d41fbb8206f230e6", "score": "0.55231076", "text": "@Test\n public void moveForthAndBack() throws CommitFailedException {\n NodeBuilder rootBuilder = root.builder();\n move(rootBuilder, \"/test/x\", \"/test/y/xx\");\n NodeState moved = move(rootBuilder, \"/test/y/xx\", \"/test/x\").getNodeState();\n MoveExpectation moveExpectation = new MoveExpectation(\n ImmutableMap.<String, String>of());\n MoveDetector moveDetector = new MoveDetector(moveExpectation);\n CommitFailedException exception = EditorDiff.process(moveDetector, root, moved);\n if (exception != null) {\n throw exception;\n }\n moveExpectation.assertAllFound();\n }", "title": "" }, { "docid": "73d79fe844224f5f2b8fb9ddddcb018a", "score": "0.5518625", "text": "public static ArrayList<State> move(State currState) {\n\t\t\n\t\tArrayList<State> possiblePaths = new ArrayList<State>();\n\t\tint currXCoord = currState.getXCoord();\n\t\tint currYCoord = currState.getYCoord();\n\n\t\t//CHECK IF UP IS A POSSIBLE PATH\n\t\tif ((map.get(currYCoord-1).charAt(currXCoord)) != 'X' && \n\t\t\t(map.get(currYCoord-1).charAt(currXCoord)) != '|' && \n\t\t\t(map.get(currYCoord-1).charAt(currXCoord)) != '-') {\n\n\t\t\t//IF CURRSTATE IS THE STARTSTATE == NO PRREVIOUS PATH\n\t\t\tif (frontier.compareState(currState, startState)) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord, currYCoord-1));\n\n\t\t\t}\n\t\t\t//IF NOT START STATE AND NOT PREVIOUS PATH\n\t\t\telse if (!((currState.getPP().getXCoord() == (currXCoord)) && \n\t\t\t\t(currState.getPP().getYCoord() == (currYCoord - 1)))) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord, currYCoord-1));\n\n\t\t\t}\t\n\t\t}\n\n\t\t//CHECK IF SIDE IS A POSSIBLE PATHS\n\t\t//IF CURR STATE'S LEFT IS A POSSIBLE PATH\n\t\tif ((map.get(currYCoord).charAt(currXCoord-1)) != 'X' && \n\t\t\t(map.get(currYCoord).charAt(currXCoord-1)) != '|' && \n\t\t\t(map.get(currYCoord).charAt(currXCoord-1)) != '-') {\n\n\t\t\t//IF CURRSTATE IS THE STARTSTATE == NO PRREVIOUS PATH\n\t\t\tif (frontier.compareState(currState, startState)) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord-1, currYCoord));\n\n\t\t\t}\n\t\t\t//IF NOT START STATE AND NOT PREVIOUS PATH\n\t\t\telse if (!((currState.getPP().getXCoord() == (currXCoord - 1)) && \n\t\t\t\t(currState.getPP().getYCoord() == (currYCoord)))) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord-1, currYCoord));\n\n\t\t\t}\n\t\t}\n\n\t\t//IF CURR STATE'S RIGHT IS A POSSIBLE PATH\n\t\tif ((map.get(currYCoord).charAt(currXCoord+1)) != 'X' && \n\t\t\t(map.get(currYCoord).charAt(currXCoord+1)) != '|' && \n\t\t\t(map.get(currYCoord).charAt(currXCoord+1)) != '-') {\n\n\t\t\t//IF CURRSTATE IS THE STARTSTATE == NO PRREVIOUS PATH\n\t\t\tif (frontier.compareState(currState, startState)) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord+1, currYCoord));\n\n\t\t\t}\n\t\t\t//IF NOT START STATE AND NOT PREVIOUS PATH\n\t\t\telse if (!((currState.getPP().getXCoord() == (currXCoord + 1)) && \n\t\t\t\t(currState.getPP().getYCoord() == (currYCoord)))) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord+1, currYCoord));\n\n\t\t\t}\n\t\t}\n\n\t\t//CHECK IF DOWN IS A POSSIBLE PATH\n\t\tif ((map.get(currYCoord+1).charAt(currXCoord)) != 'X' && \n\t\t\t(map.get(currYCoord+1).charAt(currXCoord)) != '|' && \n\t\t\t(map.get(currYCoord+1).charAt(currXCoord)) != '-') {\n\n\t\t\t//IF CURRSTATE IS THE STARTSTATE == NO PRREVIOUS PATH\n\t\t\tif (frontier.compareState(currState, startState)) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord, currYCoord+1));\n\n\t\t\t}\n\t\t\t//IF NOT START STATE AND NOT PREVIOUS PATH\n\t\t\telse if (!((currState.getPP().getXCoord() == (currXCoord)) && \n\t\t\t\t(currState.getPP().getYCoord() == (currYCoord + 1)))) {\n\n\t\t\t\t//CREATE A STATE AND ADD INTO POSSIBLEPATHS\n\t\t\t\tpossiblePaths.add(createState(currState, currXCoord, currYCoord+1));\n\n\t\t\t}\n\t\t}\n\n\t\treturn possiblePaths;\n\t}", "title": "" }, { "docid": "f983b031aa77bc2851cb6bfb4ee246c4", "score": "0.5514332", "text": "private int traverse(TreeNode tn, int leafcnt, double parentDistance, \n int[] nodeidx, TreeNode[] nodemap, int[] leafmap, \n double[] segs, double childpos[]) {\n int lc = leafcnt;\n double distance = 0.;\n double height = 0.;\n double minChildx = Double.NaN;\n double maxChildx = Double.NaN;\n double minChildy = Double.NaN;\n double maxChildy = Double.NaN;\n if (tn instanceof Cluster) {\n distance = ((Cluster)tn).getSimilarity();\n } else {\n distance = ((DefaultMutableTreeNode)tn).getDepth();\n }\n if (!tn.isLeaf()) {\n for ( int i = 0; i < tn.getChildCount(); i++) {\n TreeNode cn = tn.getChildAt(i);\n lc = traverse(cn,lc, distance, nodeidx,nodemap,leafmap, segs, childpos);\n if (Double.isNaN(minChildx) || childpos[0] < minChildx) {\n minChildx = childpos[0];\n }\n if (Double.isNaN(maxChildx) || childpos[0] > maxChildx) {\n maxChildx = childpos[0];\n }\n if (Double.isNaN(minChildy) || childpos[1] < minChildy) {\n minChildy = childpos[1];\n }\n if (Double.isNaN(maxChildy) || childpos[1] > maxChildy) {\n maxChildy = childpos[1];\n }\n }\n } else {\n if (tn instanceof RowCluster) {\n leafmap[lc] = ((RowCluster)tn).getIndex();\n }\n minChildx = distance;\n maxChildx = distance;\n minChildy = lc;\n maxChildy = lc;\n lc++;\n }\n // offset into segs\n int offset = nodeidx[0] * segOffset * 4;\n nodemap[nodeidx[0]] = tn;\n nodeidx[0]++;\n\n if (segs.length < offset+8) {\n double tmp[] = segs;\n segs = new double[offset+8];\n System.arraycopy(tmp,0,segs,0,tmp.length);\n }\n \n // segment from minchild to maxchild\n segs[offset++] = distance; // X\n segs[offset++] = minChildy; // Y\n segs[offset++] = distance; // X\n segs[offset++] = maxChildy; // Y\n // segment from node to parent of length distance\n // postision half way between first and last child\n double y = minChildy + (maxChildy - minChildy) / 2.;\n segs[offset++] = distance; // X\n segs[offset++] = y; // Y\n segs[offset++] = parentDistance; // X\n segs[offset++] = y; // Y\n/*\n System.err.println(tn.toString() + \" \\tmlc \" + leafcnt + \" lc \" + lc + \" pd \" + parentDistance + \" d \" + distance);\n for (int i = 8, j = leafcnt * 8; i < 8; i++,j++) {\n System.err.print(\"\\t\" + segs[j]);\n }\n System.err.println(\"\");\n*/\n // Update return values\n childpos[0] = distance;\n childpos[1] = y;\n return lc;\n }", "title": "" }, { "docid": "7c335d8f727dce0244d8e153e88d238b", "score": "0.55089206", "text": "private void split(Node current) {\n Node a = new Node();\n Node b = new Node();\n if (recentSplit == true) {\n for (int i = 0; i < 3; i++) {\n if (current.father.child[i] == current) {\n current.father.child[i] = null;\n }\n }\n a.father = current.father;\n b.father = current.father;\n a.keys[0] = current.keys[0];\n b.keys[0] = current.keys[1];\n a.startedOne = true;\n b.startedOne = true;\n if (current.child[0] == null) {\n a.child[0] = tempFirst;\n a.child[0].father = a;\n a.child[1] = tempSecond;\n a.child[1].father = a;\n b.child[0] = current.child[1];\n b.child[0].father = b;\n b.child[1] = current.child[2];\n b.child[1].father = b;\n } else if (current.child[1] == null) {\n a.child[0] = current.child[0];\n a.child[0].father = a;\n a.child[1] = tempFirst;\n a.child[1].father = a;\n b.child[0] = tempSecond;\n b.child[0].father = b;\n b.child[1] = current.child[2];\n b.child[1].father = b;\n } else if (current.child[2] == null) {\n a.child[0] = current.child[0];\n a.child[0].father = a;\n a.child[1] = current.child[1];\n a.child[1].father = a;\n b.child[0] = tempFirst;\n b.child[0].father = b;\n b.child[1] = tempSecond;\n b.child[1].father = b;\n }\n tempFirst = a;\n tempSecond = b;\n } else {\n for (int i = 0; i < 3; i++) {\n if (current.father.child[i] == current) {\n current.father.child[i] = null;\n }\n }\n a.father = current.father;\n b.father = current.father;\n a.keys[0] = current.keys[0];\n b.keys[0] = current.keys[1];\n a.startedOne = true;\n b.startedOne = true;\n recentSplit = true;\n tempFirst = a;\n tempSecond = b;\n }\n\n }", "title": "" }, { "docid": "4630c7a394e773529e1c9bad56e467e2", "score": "0.5507629", "text": "static List<AST>\ncomputepath(AST node)\n{\n List<AST> path = new ArrayList<AST>();\n while(node != null) {\n path.add(0,node);\n node = node.getParent();\n }\n return path;\n}", "title": "" }, { "docid": "a3ed70bd3147a4c4c40f4afaae975d31", "score": "0.5499086", "text": "void walkUp(BLMMCSNode nd, List<BLMMCSNode> newNodes) {\n if (walkedUp.contains(nd.hashCode())) return;\n walkedUp.add(nd.hashCode());\n\n if (nd.isGlobalMinimal()) {\n newNodes.add(nd);\n return;\n }\n\n if (nd.hasNonCoverParent()) newNodes.add(nd);\n\n nd.getRemoveCandidates().forEach(e -> {\n BLMMCSNode parentNode = nd.getParentNode(e, coverMap);\n walkUp(parentNode, newNodes);\n });\n }", "title": "" }, { "docid": "7ec4082576e48e23c965d07fc899e11d", "score": "0.54951", "text": "private void recursivFlatTree(Node current, List<Item> ItemList) {\n\n // The last added item\n\n Item lastAdded = null;\n\n if (ItemList.isEmpty() == false) {\n lastAdded = ItemList.get(ItemList.size() - 1);\n }\n\n // Check the sub nodes\n //\n // We have to find the frist Node in the tree:\n // So the before path is checked first.\n\n if (current.hasBeforeNode()) {\n\n // Only check the before node if the last add is lower than the\n // item of the before node. Otherwise this node was already added.\n\n if (lastAdded == null || lastAdded.isLowerThan(current.getBefore().getItem())) {\n this.recursivFlatTree(current.getBefore(), ItemList);\n\n // The item below was successful and: Stack moves to the node above.\n\n } else if (lastAdded.isEqual(current.getBefore().getItem())) {\n ItemList.add(current.getItem());\n\n // Check the after path\n\n if (current.hasAfterNode()) {\n this.recursivFlatTree(current.getAfter(), ItemList);\n\n } else if (current.hasTopNode()) {\n return;\n }\n }\n }\n\n // Before path done, check the after path\n\n if (current.hasAfterNode()) {\n\n // Only add the current node item,\n // if it is greater than the last added one.\n\n if (lastAdded == null || lastAdded.isLowerThan(current.getItem())) {\n\n // Add the current node and go down into the after path.\n\n ItemList.add(current.getItem());\n this.recursivFlatTree(current.getAfter(), ItemList);\n\n // The item below was successful and: Stack moves to the node above.\n // In the after path, every node of this path was added, so we only move up.\n\n } else if (current.hasTopNode()) {\n return;\n }\n\n }\n\n // Last item in the current tree path.\n // This have to be added anyway and\n // the node above have to be checked again.\n\n if (current.isLastNode()) {\n ItemList.add(current.getItem());\n }\n }", "title": "" }, { "docid": "df8a77bf6b6044225fa2106d4930dcc6", "score": "0.54887974", "text": "public void Previous(int i)\r\n{\r\n\tPrevious(this.root, i);\r\n}", "title": "" }, { "docid": "9a44442feb5decb0414ff0d19338d98f", "score": "0.5482899", "text": "private Path buildPathFromNode(DijkstraNode node) {\n Path path = new Path(node.getPose());\n while (node.hasPrevious()) {\n node = node.getPrevious();\n path.addElementToTail(node.getPose());\n }\n // Reverse path to go from origin to target.\n path.reverse();\n return path;\n }", "title": "" }, { "docid": "29ab4cc0ce86790c6464de6022845c53", "score": "0.54793274", "text": "@Test\n public void whenGoingDeeperThenChangePathToIt() {\n Shell shell = new Shell(this.entry);\n shell.cd(\"usr\").cd(\"local\");\n shell.cd(\"../local\").cd(\"./\");\n String expect = \"/usr/local\";\n assertThat(shell.path(), is(expect));\n }", "title": "" }, { "docid": "cb7154f675cc4ca7e2980afd56d324a2", "score": "0.54690593", "text": "public void solve(){\n count++;\n if(!path.empty()) current=path.pop();\n next=checkNeighbour(current);\n current.setFirstVisit(true);\n path.push(current);\n if(next!=null){\n path.push(next);\n current=next;\n }\n else {\n Cell tem=path.pop();\n tem.setSecondVisit(true);\n }\n }", "title": "" }, { "docid": "d374ccffa204731412a248702c47f0ad", "score": "0.54678595", "text": "private Node traverseRightBoundary(Node root, int how) {\n/* 1539 */ Node next = getSelectedNode(this.fEndContainer, this.fEndOffset - 1);\n/* 1540 */ boolean isFullySelected = (next != this.fEndContainer);\n/* */ \n/* 1542 */ if (next == root) {\n/* 1543 */ return traverseNode(next, isFullySelected, false, how);\n/* */ }\n/* 1545 */ Node parent = next.getParentNode();\n/* 1546 */ Node clonedParent = traverseNode(parent, false, false, how);\n/* */ \n/* 1548 */ while (parent != null) {\n/* */ \n/* 1550 */ while (next != null) {\n/* */ \n/* 1552 */ Node prevSibling = next.getPreviousSibling();\n/* */ \n/* 1554 */ Node clonedChild = traverseNode(next, isFullySelected, false, how);\n/* 1555 */ if (how != 3)\n/* */ {\n/* 1557 */ clonedParent.insertBefore(clonedChild, clonedParent\n/* */ \n/* 1559 */ .getFirstChild());\n/* */ }\n/* */ \n/* 1562 */ isFullySelected = true;\n/* 1563 */ next = prevSibling;\n/* */ } \n/* 1565 */ if (parent == root) {\n/* 1566 */ return clonedParent;\n/* */ }\n/* 1568 */ next = parent.getPreviousSibling();\n/* 1569 */ parent = parent.getParentNode();\n/* 1570 */ Node clonedGrandParent = traverseNode(parent, false, false, how);\n/* 1571 */ if (how != 3)\n/* 1572 */ clonedGrandParent.appendChild(clonedParent); \n/* 1573 */ clonedParent = clonedGrandParent;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1578 */ return null;\n/* */ }", "title": "" }, { "docid": "88147c9c1eaab51cb9ab1a2958543c8c", "score": "0.54662037", "text": "protected TreePath(Object[] path, int length) {\n lastPathComponent = path[length - 1];\n if (length > 1) {\n parentPath = new TreePath(path, length - 1);\n }\n }", "title": "" }, { "docid": "381546ee6ea6b4725adcb3b1ed6557ed", "score": "0.54593205", "text": "@Programmatic\n public void expand() {\n final Set<TreePath> expandedPaths = getTreeState().getExpandedNodePaths();\n streamHierarchyUp()\n .map(TreeNode::getPositionAsPath)\n .forEach(expandedPaths::add);\n }", "title": "" }, { "docid": "cb758a2ad19042c9551737facefd5185", "score": "0.54424304", "text": "private ArrayList reconstructPath(Node node) {\n\t\t \n ArrayList path = new ArrayList();\n\n while(!(node.getParentNode() == null)) {\n \t \n path.add(0,node.getPoint());\n if(node.getParentNode().getManhattenDistanceToGoal() == node.getManhattenDistanceToGoal()){\n \t\t node = node.getParentNode().getParentNode();\n \t }else{\n \t\t node = node.getParentNode();\n \t\t}\n }\n \n //add start\n path.add(0, terrainMap.getStartNode().getPoint());\n this.shortestPath = path;\n\n return path;\n }", "title": "" }, { "docid": "dcc233a43c9101896f43a39269e2f39e", "score": "0.543932", "text": "public void traverAgain(Node<T> newNode) {\n rblist.clear();\n Node<T> curr = root;\n Node<T> prev = null;\n T item = newNode.item; //the node value\n //find the correct position of the node\n while(curr != null) {\n rblist.add(curr);\n prev = curr;\n if(item.compareTo(curr.item) < 1)\n curr = curr.left;\n else\n curr = curr.right;\n } //end of while\n }", "title": "" }, { "docid": "9440eae4647f131ee219b765b73fcdf6", "score": "0.5439022", "text": "public void reviseRootNodeUp() {\n //System.out.println(\"BasePG before revision: \" + this.basePG.getPeerGroupNameX());\n PeerGroup existingPG = this.basePG;\n PeerGroup parentPG = topFrame.getAppUser().getCsPG().getParentPG(existingPG);\n if(parentPG == null) {\n topFrame.showErrorDialog(\"Could not go to parent peergroup\", this);\n return;\n }\n if(existingPG.equals(parentPG)) {\n topFrame.showErrorDialog(\"ParentPG is same as existing\", this);\n return;\n }\n this.basePG = parentPG;\n //System.out.println(\"BasePG after revision: \" + basePG.getPeerGroupNameX());\n setRootAndTree();\n }", "title": "" }, { "docid": "2a74744ce49b778613ffeef0cc215bb8", "score": "0.54317683", "text": "public void recoverTree(TreeNode root) {\n if(root==null) return;\n TreeNode current=root, prev=null, p1=null, p2=null;\n while(current!=null){\n //analysis: \n //http://yucoding.blogspot.com/2013/03/leetcode-question-75-recover-binary.html\n //be careful on assigning values to pointers\n if(prev!=null&&prev.val>current.val){\n if(p1==null){\n p1=current;\n p2=prev;\n }else p1=current;\n }\n \n if(current.left==null){\n prev=current;\n current=current.right;\n }else{\n TreeNode left=current.left;\n TreeNode temp=left;\n while(temp.right!=null&&temp.right!=current) temp=temp.right;\n if(temp.right==null){\n temp.right=current;\n current=left;\n }else{\n temp.right=null;\n prev=current;\n current=current.right;\n }\n }\n }\n \n if(p1!=null&&p2!=null){\n int temp=p1.val;\n p1.val=p2.val;\n p2.val=temp;\n }\n }", "title": "" }, { "docid": "0946992a056d8e4a7d7326df5af8fa8b", "score": "0.54093117", "text": "private void levelUp () {\n lastElemSeen = currentElemNode;\n if (currentElemNode != null && \n getNodeElement(currentElemNode).isScript()) {\n scriptDepth--;\n }\n currentElemNode = (DefaultMutableTreeNode) currentElemNode.getParent();\n }", "title": "" }, { "docid": "82077029c1b0a2c9b14e111fb0e68516", "score": "0.5404438", "text": "void backTraceString() {\n\t\t\t\n\t\t\t// case 1 : leaf\n\t\t\t\n\t\t\tif(this.isLeaf())\n\t\t\t\treturn;\n\t\t\t\n\t\t\t\n\t\t\t// case 2 : root\n\t\t\t\n\t\t\tif(parent == null) {\n\t\t\t\t\n\t\t\t\tfor(int index=0; index<STRING_LEN; index++) {\n\t\t\t\t\t\n\t\t\t\t\tint alphabetIndex = util.Utilities.argmin(ss[index]);\n\t\t\t\t\theight += ss[index][alphabetIndex];\n\t\t\t\t\tthis.sequenceLetters[index] = ALPHABET[alphabetIndex];\n\t\t\t\t\tthis.sequenceLettersInd[index] = alphabetIndex;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// case 3 : other internal node\n\t\t\t\n\t\t\tint backtrackIndex = -1;\n\t\t\t\n\t\t\tif(this.isLeftChild()) {\n\t\t\t\tbacktrackIndex = 0;\n\t\t\t} else {\n\t\t\t\tbacktrackIndex = 1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int index=0; index<STRING_LEN; index++) {\n\t\t\t\tint parentsChosenLetter = parent.sequenceLettersInd[index];\n\t\t\t\tint chosenLetter = parent.backtracks[index][parentsChosenLetter][backtrackIndex];\n\t\t\t\t\n\t\t\t\tthis.sequenceLettersInd[index] = chosenLetter;\n\t\t\t\tthis.sequenceLetters[index] = ALPHABET[chosenLetter];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b7164d6fc5f2bff153b1354c494be5ce", "score": "0.5403077", "text": "public static void dfs(State curr_state) \n\t{\n\t\tStack<State> todo = new Stack<>();\n\t\tStack<State> done = new Stack<>();\n\n\t\ttodo.push(curr_state);\n\n\t\tSystem.out.println(curr_state.getOrderedPair());\n\t\tState s = null;\n\n\t\twhile (!todo.isEmpty()) \n\t\t{\n\n\t\t\ts = todo.pop();\n\n\t\t\tif (s.isGoalState()) \n\t\t\t{\n\t\t\t\tSystem.out.println(s.getOrderedPair() + \" Goal\");\n\n\t\t\t\tString path = \"\";\n\t\t\t\twhile (s.parentPt != null) \n\t\t\t\t{\n\t\t\t\t\tpath = s.getOrderedPair() + \" \" + path;\n\t\t\t\t\ts = s.parentPt;\n\t\t\t\t}\n\t\t\t\tpath = \"Path \" + curr_state.getOrderedPair() + \" \" + path;\n\t\t\t\tSystem.out.println(path);\n\t\t\t\treturn;\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tArrayList<State> t = s.getSuccessors();\n\n\t\t\t\tfor (int i = 0; i < t.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tif (done.isEmpty()) \n\t\t\t\t\t{\n\t\t\t\t\t\ttodo.push(t.get(i));\n\t\t\t\t\t} \n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tboolean contains = false;\n\t\t\t\t\t\tfor (State b : done) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (t.get(i).getOrderedPair().equals(b.getOrderedPair())) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontains = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (State b : todo) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (t.get(i).getOrderedPair().equals(b.getOrderedPair())) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontains = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!contains) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttodo.push(t.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdone.push(s);\n\t\t\t\tSystem.out.println(s.getOrderedPair() + \" \" + string(todo) + \" \" + string(done));\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "dabf6356c6cb4573d72f6763ce054fdc", "score": "0.54011554", "text": "public void preorder()\n{\n this.preorder(this.root, new ArrayList<Integer>());\n int count = 0;\n for (ArrayList<Integer> element: this.leafPaths) {\n System.out.print(this.leafCharacters.get(count) + \": \");\n for (int loop = 0;\n loop < element.size();\n loop++\n ) {\n String outputSuffix = \"->\";\n if (loop == element.size() - 1) {\n outputSuffix = \"\";\n }\n System.out.print(element.get(loop) + outputSuffix);\n }\n System.out.println(\"\\nlength: \" + element.size());\n System.out.println(\"\");\n count++;\n }\n}", "title": "" }, { "docid": "2bfa2fb6f99e7f0032af0bfd288cc80f", "score": "0.5399104", "text": "static ArrayList<Cell> findPath(Cell start, Cell goal) {\n ArrayList<Cell> closedSet = new ArrayList<>();\n ArrayList<Cell> openSet = new ArrayList<>();\n openSet.add(start);\n\n // And maps for the parents\n HashMap<Cell, Cell> parentMap = new HashMap<>();\n\n // While there exist known but unexplored cells...\n while (openSet.size() > 0) {\n // Find the cheapest unexplored cell to travel to\n Cell current = findCheapestCell(openSet, goal);\n\n // If that cell is the goal, reconstruct and return the path with our known information.\n if (current.equals(goal)) {\n return reconstructPath(parentMap, current);\n }\n\n // Mark the current cell as explored.\n openSet.remove(current);\n closedSet.add(current);\n\n // For each neighbor of the current cell...\n for (Cell neighbor : current.getNeighbors()) {\n // Ignore already explored neighbors\n if (closedSet.contains(neighbor)) {\n continue;\n }\n\n // Mark the neighbor as known, if it's not already\n // Otherwise, if it's known and has a score\n if (!openSet.contains(neighbor)) {\n openSet.add(neighbor);\n }\n\n // Map the neighbor's parent as the \"current\" cell.\n parentMap.put(neighbor, current);\n }\n }\n\n // No path found :(\n return null;\n }", "title": "" }, { "docid": "dfcd7af5e513766f3a01a7d01e54825e", "score": "0.53977317", "text": "public void testPreOrderTraversal() {\n\n TreeNode root = new TreeNode(30);\n TreeNode left = new TreeNode(20);\n TreeNode right = new TreeNode(40);\n\n TreeNode leftLeft = new TreeNode(10);\n\n TreeNode rightLeft = new TreeNode(35);\n TreeNode rightRight = new TreeNode(50);\n\n TreeNode leftLeftLeft = new TreeNode(9);\n TreeNode leftLeftRight = new TreeNode(12);\n\n root.setLeft(left);\n root.setRight(right);\n\n left.setLeft(leftLeft);\n\n right.setLeft(rightLeft);\n right.setRight(rightRight);\n\n leftLeft.setLeft(leftLeftLeft);\n leftLeft.setRight(leftLeftRight);\n\n// ArrayList<TreeNode> result = new ArrayList<>();\n// BinaryTree.findKDistanceNodes(root, left, 2, result);\n\n// TreeNode dll = BinaryTree.toDoublyLinkedList(root);\n\n\n// TreeNode n1 = BinaryTree.findLCA(root, root, root);\n// TreeNode n2 = BinaryTree.findLCA(root, rightLeft, rightRight);\n// TreeNode n3 = BinaryTree.findLCA(root, left, leftLeftRight);\n// TreeNode n4 = BinaryTree.findLCA(root, leftLeftLeft, rightRight);\n\n// TreeNode n21 = BST.findLCA(root, root, root);\n// TreeNode n22 = BST.findLCA(root, rightLeft, rightRight);\n// TreeNode n23 = BST.findLCA(root, left, leftLeftRight);\n// TreeNode n24 = BST.findLCA(root, leftLeftLeft, rightRight);\n//\n// TreeNode l = BinaryTree.flattenAsLinkedListWithRecursive(root);\n//\n// BinaryTree.postOrderTraversal(root);\n\n// BinaryTree.invert(root);\n\n// ArrayList<ArrayList<TreeNode>> r = BinaryTree.allRootToLeafPaths(root);\n\n// ArrayList<Integer> r = BinaryTree.allSumsOfRoot2LeafPaths(root);\n\n ArrayList<ArrayList<TreeNode>> rr = BinaryTree.columnwiseOrderTraversal(root);\n\n return;\n }", "title": "" }, { "docid": "972c1633cfee283247ca569089e0d1bf", "score": "0.538904", "text": "public void returnToParent(){\n\t\t\tif(!(currentTreeNode.getParent() == null)){\n\t\t\t\tthis.currentTreeNode = currentTreeNode.getParent();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7c48d406e37008431e890cb2ba29b685", "score": "0.5388175", "text": "private void GrowingTree(Position currPos) {\n\t\tPosition newPos;\n\n\t\tif (currPos == null){\n\t\t\treturn; // End Growing tree\n\t\t}\n\t\t\n\t\tmove_order.add(0, currPos); // Add current to stack\n\t\t\n\t\t// Get possible moves to go\n\t\tArrayList<Direction> dirs = getPossibleDirections(currPos);\n\t\t\n\t\t// assure dirs is set\n\t\tif (dirs.size() == 0)\n\t\t\tdirs.add(Direction.NO_WAY);\n\n\t\t// Random direction\n\t\tint dir = rand.nextInt(dirs.size());\n\t\t\n\t\t// What is the direction randomed?\n\t\tswitch (dirs.get(dir)) {\n\t\tcase Right:\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow(), currPos.getColm() + 1);\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow(), currPos.getColm() + 2);\n\t\t\tnewPos = new Position(currPos.getLevel(), currPos.getRow(), currPos.getColm() + 2);\n\t\tbreak;\n\t\tcase Left:\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow(), currPos.getColm() - 1);\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow(), currPos.getColm() - 2);\n\t\t\tnewPos = new Position(currPos.getLevel(), currPos.getRow(), currPos.getColm() - 2);\n\t\tbreak;\n\t\tcase Forward:\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow() + 1, currPos.getColm());\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow() + 2, currPos.getColm());\n\t\t\tnewPos = new Position(currPos.getLevel(), currPos.getRow() + 2, currPos.getColm());\n\t\tbreak;\n\t\tcase Backward:\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow() - 1, currPos.getColm());\n\t\t\tmaze3d.setFree(currPos.getLevel(), currPos.getRow() - 2, currPos.getColm());\n\t\t\tnewPos = new Position(currPos.getLevel(), currPos.getRow() - 2, currPos.getColm());\n\t\tbreak;\n\t\tcase Up:\n\t\t\tmaze3d.setFree(currPos.getLevel() + 1, currPos.getRow(), currPos.getColm());\n\t\t\tmaze3d.setFree(currPos.getLevel() + 2, currPos.getRow(), currPos.getColm());\n\t\t\tnewPos = new Position(currPos.getLevel() + 2, currPos.getRow(), currPos.getColm());\n\t\tbreak;\n\t\tcase Down:\n\t\t\tmaze3d.setFree(currPos.getLevel() - 1, currPos.getRow(), currPos.getColm());\n\t\t\tmaze3d.setFree(currPos.getLevel() - 2, currPos.getRow(), currPos.getColm());\n\t\t\tnewPos = new Position(currPos.getLevel() - 2, currPos.getRow(), currPos.getColm());\n\t\tbreak;\n\t\tdefault:\n\t\t\t\n\t\t\t// If the stack has at least 1 way back to go\n\t\t\tif(move_order.size() >= 2)\n\t\t\t\tnewPos = cell_choice.getCell(move_order);\n\t\t\telse\n\t\t\t\tnewPos = null; // END OF GrowingTree\n\t\t\t\n\t\t\t// Avoid exception if stck is empty\n\t\t\tif(move_order.size() >= 1)\n\t\t\t\tmove_order.remove(0);\n\t\t\t\n\t\t\tif(move_order.size() >= 1)\n\t\t\t\tmove_order.remove(0);\n\t\tbreak;\n\t\t}\n\t\t\n\t\t// Go next step\n\t\tGrowingTree(newPos);\n\t}", "title": "" }, { "docid": "ec6829844b1ca61e44fa6b8698c9e7e4", "score": "0.5387604", "text": "public void setPrevious(Node newNode){\n this.prev = newNode;\n }", "title": "" }, { "docid": "403d2ad2616bb3df009ae13f940a8967", "score": "0.5387577", "text": "private TreePath getMatchingTreePath(DefaultTreeModel model, int offset) {\n TreePath path = null;\n DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();\n int childCount = root.getChildCount();\n\n //Did this since there are only two levels\n for (int i = 0; i < childCount; i++) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) root.getChildAt(i);\n if (node != null) {\n if (!node.isLeaf()) {\n int count = node.getChildCount();\n for (int x = 0; x < count; x++) {\n DefaultMutableTreeNode child = (DefaultMutableTreeNode) node.getChildAt(x);\n if (child != null) {\n Object userObj = child.getUserObject();\n if ((userObj != null) && (userObj instanceof NodeInfo) && (((NodeInfo) userObj).startOffset <= offset) &&\n (((NodeInfo) userObj).endOffset >= offset)) {\n path = new TreePath(model.getPathToRoot(child));\n break;\n }\n }\n }\n } else {\n Object userObj = node.getUserObject();\n if ((userObj != null) && (userObj instanceof NodeInfo) && (((NodeInfo) userObj).startOffset <= offset) &&\n (((NodeInfo) userObj).endOffset >= offset)) {\n path = new TreePath(model.getPathToRoot(node));\n break;\n }\n }\n }\n }\n\n return path;\n }", "title": "" }, { "docid": "3ac46894103d8b04a3d274d9c3a9f40f", "score": "0.53852826", "text": "ArrayList<Point> findPath(int startX, int startY, int targetX, int targetY, boolean[][] walkable) {\n Node startNode = new Node(true, startX, startY); //starting point\n Node targetNode = new Node(true, targetX, targetY); //end point\n ArrayList<Node> openList = new ArrayList<>();\n ArrayList<Node> closedList = new ArrayList<>();\n openList.add(startNode);// put starting point on to open list\n while (openList.size() > 0) { // while there are nodes left on list\n Node currentNode = openList.get(0);\n\n for (int i = 1; i < openList.size(); i++) {//sorts open list by f cost\n if (openList.get(i).fCost() < currentNode.fCost() || openList.get(i).fCost() == currentNode.fCost() && openList.get(i).hCost < currentNode.hCost) {\n currentNode = openList.get(i);\n }\n }\n\n openList.remove(currentNode);\n //takes lowest f cost node off the open list\n closedList.add(currentNode);\n // and places it on closed list\n if (currentNode.nodeCompare() == targetNode.nodeCompare()) {\n // if at target\n ArrayList<Point> path = new ArrayList<>();\n // retrace our steps\n while (currentNode.nodeCompare() != startNode.nodeCompare()) {\n path.add(new Point(currentNode.x, currentNode.y));\n currentNode = currentNode.parent;\n\n }\n Collections.reverse(path);\n //and flip the path back the right way around, done.\n return path;\n\n }\n\n //add adjacent nodes to the neighbour list\n ArrayList<Node> neighbours = new ArrayList<>();\n if (walkable[currentNode.x + 1][currentNode.y] == true) {\n neighbours.add(new Node(true, currentNode.x + 1, currentNode.y));\n } else {\n neighbours.add(new Node(false, currentNode.x + 1, currentNode.y));\n }\n if (walkable[currentNode.x - 1][currentNode.y] == true) {\n neighbours.add(new Node(true, currentNode.x - 1, currentNode.y));\n } else {\n neighbours.add(new Node(false, currentNode.x - 1, currentNode.y));\n }\n if (walkable[currentNode.x][currentNode.y + 1] == true) {\n neighbours.add(new Node(true, currentNode.x, currentNode.y + 1));\n } else {\n neighbours.add(new Node(false, currentNode.x, currentNode.y + 1));\n }\n if (walkable[currentNode.x][currentNode.y - 1] == true) {\n neighbours.add(new Node(true, currentNode.x, currentNode.y - 1));\n } else {\n neighbours.add(new Node(false, currentNode.x, currentNode.y - 1));\n }\n\n boolean neighbourOnClosed;\n boolean neighbourOnOpen;\n for (int i = 0; i < neighbours.size(); i++) {\n neighbourOnOpen = false;\n neighbourOnClosed = false;\n Node neighbour = neighbours.get(i);\n for (int z = 0; z < closedList.size(); z++) {\n Node tempNode = closedList.get(z);\n if (tempNode.nodeCompare() == neighbour.nodeCompare()) {\n neighbourOnClosed = true;\n }\n }\n for (int z = 0; z < openList.size(); z++) {\n Node tempNode = openList.get(z);\n if (tempNode.nodeCompare() == neighbour.nodeCompare()) {\n neighbourOnOpen = true;\n }\n }\n if (!neighbour.walkable || neighbourOnClosed) {\n } else {\n int gCostNew = currentNode.gCost + heuristic(currentNode, neighbour);\n if (gCostNew < neighbour.gCost || !neighbourOnOpen) {\n\n openList.remove(neighbour);\n neighbour.gCost = gCostNew;\n neighbour.hCost = heuristic(neighbour, targetNode);\n neighbour.parent = currentNode;\n\n openList.add(neighbour);\n // if this node is more optimal than the node aleardy on the list, replace it\n }\n }\n }\n }\n //returns empty list if no valid path e.g. player out of bounds or player is on the same cell\n return new ArrayList<>();\n\n }", "title": "" }, { "docid": "e0b58cc91416da67d40559db581d6752", "score": "0.53846234", "text": "tensorflow.boosted_trees.trees.TreeConfig.Leaf getOriginalLeaf();", "title": "" }, { "docid": "c9eddf7171d0577acf2de8aaf018c714", "score": "0.53739786", "text": "public static void bfs(State curr_state) {\n\t\tQueue<State> todo = new LinkedList<>();\n\t\tQueue<State> done = new LinkedList<>();\n\n\t\ttodo.offer(curr_state);\n\n\t\tSystem.out.println(curr_state.getOrderedPair());\n\t\tState s = null;\n\n\t\twhile (!todo.isEmpty()) \n\t\t{\n\n\t\t\ts = todo.poll();\n\n\t\t\tif (s.isGoalState())\n\t\t\t{\n\t\t\t\tSystem.out.println(s.getOrderedPair() + \" Goal\");\n\n\t\t\t\tString path = \"\";\n\t\t\t\twhile (s.parentPt != null)\n\t\t\t\t{\n\t\t\t\t\tpath = s.getOrderedPair() + \" \" + path;\n\t\t\t\t\ts = s.parentPt;\n\t\t\t\t}\n\t\t\t\tpath = \"Path \" + curr_state.getOrderedPair() + \" \" + path;\n\t\t\t\tSystem.out.println(path);\n\t\t\t\treturn;\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tArrayList<State> t = s.getSuccessors();\n\n\t\t\t\tfor (int i = 0; i < t.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tif (done.isEmpty()) \n\t\t\t\t\t{\n\t\t\t\t\t\ttodo.offer(t.get(i));\n\t\t\t\t\t} \n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tboolean contains = false;\n\t\t\t\t\t\tfor (State b : done) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (t.get(i).getOrderedPair().equals(b.getOrderedPair()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontains = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (State b : todo) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (t.get(i).getOrderedPair().equals(b.getOrderedPair())) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontains = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!contains) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttodo.offer(t.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdone.offer(s);\n\t\t\t\tSystem.out.println(s.getOrderedPair() + \" \" + string(todo) + \" \" + string(done));\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "89e27d226cabf963d658f8cbfa5e9721", "score": "0.53716695", "text": "public void splice(Entry<T> t){\n\n Entry<T> parent = findPath.peek();\n Entry<T> child = isNull(t.left) ? t.right : t.left;\n splicedEntry = t;\n splicedChild = child;\n if(isNull(parent))\n root = child;\n else if(parent.left == t)\n {\n if(child != null) child.isLeftChild = true;\n parent.left = child;\n addParent(child, parent);\n }\n else\n {\n if(child != null) child.isLeftChild = false;\n parent.right = child;\n addParent(child, parent);\n }\n\n }", "title": "" }, { "docid": "2a281df5a4fc1c18436e7831835489a6", "score": "0.5362248", "text": "ExplorerTreeNode getParent();", "title": "" }, { "docid": "4c2f8ebd069c7aa42dd925c6d94718df", "score": "0.5360263", "text": "@Test\n public void moveAddedFromMovedSubtree() throws CommitFailedException {\n NodeBuilder rootBuilder = root.builder();\n rootBuilder.getChildNode(\"test\").getChildNode(\"z\").setChildNode(\"added\");\n move(rootBuilder, \"/test/z\", \"/test/y/z\");\n NodeState moved = move(rootBuilder, \"/test/y/z/added\", \"/test/x/added\").getNodeState();\n MoveExpectation moveExpectation = new MoveExpectation(\n ImmutableMap.of(\"/test/z\", \"/test/y/z\"));\n MoveDetector moveDetector = new MoveDetector(moveExpectation);\n CommitFailedException exception = EditorDiff.process(moveDetector, root, moved);\n if (exception != null) {\n throw exception;\n }\n moveExpectation.assertAllFound();\n }", "title": "" }, { "docid": "aa8becce3ae69433fc1896c7c77c68e1", "score": "0.53503233", "text": "public void visitforLeaf(Leaf leaf) {\n\t}", "title": "" }, { "docid": "51e32141eed080f3a47368e26c609fe4", "score": "0.53494424", "text": "private ArrayList<SystemNode> generateForwardPath(SystemNode destNode) {\n\t\tArrayList<SystemNode> reversePath = new ArrayList<>();\n\t\tArrayList<SystemNode> forwardPath = new ArrayList<>();\n\t\tSystemNode currentNode = destNode;\n\t\t\n\t\twhile (currentNode.getPrev() != null) {\n\t\t\treversePath.add(currentNode);\n\t\t\tcurrentNode = currentNode.getPrev();\n\t\t}\n\t\treversePath.add(currentNode);\n\t\tfor (int i = reversePath.size() - 1; i >= 0; i--) {\n\t\t\tforwardPath.add(reversePath.get(i));\n\t\t}\n\t\treturn forwardPath;\n\t}", "title": "" }, { "docid": "9ef6fa27c4327e5b7041eb5233678c07", "score": "0.53494215", "text": "static void fillTree(TreeNode parent) {\n\n Point pointToAdd;\n\n if (endPoint.equals(parent.point)) {\n //System.out.println(\"!!! \" + parent.point);\n\n // In this question, we don't need to store all the possible approaches, on the cheapest approach price is required,\n// Approach toAddApp = new Approach();\n// allPassedApproaches[lastApproachAt++] = toAddApp;\n// toAddApp.points = Arrays.copyOf(currentApproach.points, currentApproach.points.length);\n// toAddApp.totalPrice = currentApproach.totalPrice;\n\n if (currentPrice < cheapestApproach.totalPrice) {\n currentApproach.totalPrice = currentPrice;\n currentApproach.numberOfSteps = numberOfSteps;\n cheapestApproach = currentApproach;\n currentApproach = new Approach();\n currentApproach.points = Arrays.copyOf(cheapestApproach.points, cheapestApproach.points.length);\n }\n return;\n\n }\n\n if (parent.point.y + 1 != ySize && !pointsPassed[parent.point.x][parent.point.y + 1] && parent.parent.point.y != parent.point.y + 1) { // Right\n\n pointsPassed[parent.point.x][parent.point.y + 1] = true;\n currentPrice += map[parent.point.x][parent.point.y + 1];\n pointToAdd = new Point(parent.point.x, parent.point.y + 1);\n //currentApproach.add(pointToAdd);\n //System.out.println(\"-> \" + pointToAdd.toString());\n numberOfSteps++;\n fillTree(new TreeNode(parent, pointToAdd));\n numberOfSteps--;\n //System.out.println(pointToAdd.toString() + \" ->\");\n //currentApproach.remove();\n currentPrice -= map[parent.point.x][parent.point.y + 1];\n pointsPassed[parent.point.x][parent.point.y + 1] = false;\n\n }\n\n if (parent.point.x - 1 != -1 && !pointsPassed[parent.point.x - 1][parent.point.y] && parent.parent.point.x != parent.point.x - 1) { // Up\n\n pointsPassed[parent.point.x - 1][parent.point.y] = true;\n currentPrice += map[parent.point.x - 1][parent.point.y];\n pointToAdd = new Point(parent.point.x - 1, parent.point.y);\n numberOfSteps++;\n //currentApproach.add(pointToAdd);\n fillTree(new TreeNode(parent, pointToAdd));\n //currentApproach.remove();\n numberOfSteps--;\n currentPrice -= map[parent.point.x - 1][parent.point.y];\n pointsPassed[parent.point.x - 1][parent.point.y] = false;\n\n }\n\n if (parent.point.y - 1 != -1 && !pointsPassed[parent.point.x][parent.point.y - 1] && parent.parent.point.y != parent.point.y - 1) { // Left\n\n pointsPassed[parent.point.x][parent.point.y - 1] = true;\n currentPrice += map[parent.point.x][parent.point.y - 1];\n pointToAdd = new Point(parent.point.x, parent.point.y - 1);\n numberOfSteps++;\n //currentApproach.add(pointToAdd);\n fillTree(new TreeNode(parent, pointToAdd));\n //currentApproach.remove();\n numberOfSteps--;\n currentPrice -= map[parent.point.x][parent.point.y - 1];\n pointsPassed[parent.point.x][parent.point.y - 1] = false;\n\n }\n\n if (parent.point.x + 1 != xSize && !pointsPassed[parent.point.x + 1][parent.point.y] && parent.parent.point.x != parent.point.x + 1) { // Down\n\n pointsPassed[parent.point.x + 1][parent.point.y] = true;\n currentPrice += map[parent.point.x + 1][parent.point.y];\n pointToAdd = new Point(parent.point.x + 1, parent.point.y);\n numberOfSteps++;\n //currentApproach.add(pointToAdd);\n fillTree(new TreeNode(parent, pointToAdd));\n //currentApproach.remove();\n numberOfSteps--;\n currentPrice -= map[parent.point.x + 1][parent.point.y];\n pointsPassed[parent.point.x + 1][parent.point.y] = false;\n\n }\n\n }", "title": "" }, { "docid": "7a3e97cf588bdf066c107062a4e2d399", "score": "0.53449386", "text": "private long findPathToSrc(BVertex t, int curIndex, long allPaths) {\n\t\tcurrentPath[curIndex--] = t;\n\t\tif (t.parentSize() == 0) {\n\t\t\tprintPath(currentPath, curIndex);\n\t\t\treturn ++allPaths;\n\t\t}\n\n\t\tfor (int i = 0; i < t.parentSize; i++) {\n\n\t\t\tallPaths = findPathToSrc(t.parentVertices[i], curIndex, allPaths);\n\n\t\t}\n\t\treturn allPaths;\n\n\t}", "title": "" }, { "docid": "20989a70e6da15d4d05e90cc0e57a82f", "score": "0.5335438", "text": "private TreePath buildTreePath(Stack s)\n\t{\n\t\tObject obj = null;\n\t\tTreePath tp = null;\n\t\t\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tobj = s.pop();\n\t\t\t\tif (tp == null) {\n\t\t\t\t\ttp = new TreePath(obj);\n\t\t\t\t} else {\n\t\t\t\t\ttp = tp.pathByAddingChild(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (EmptyStackException epe) {\n\t\t\t// This is OK. Eventually, I'll run out of nodes.\n\t\t}\n\t\treturn tp;\n\t}", "title": "" }, { "docid": "0c394a906e26292cc4906ac871e961b6", "score": "0.53285915", "text": "@Override\n public void visit(Way w) {\n if (e.parent != null) return;\n\n if (!left.matches(e.withPrimitive(w)))\n return;\n for (int i=0; i<w.getNodesCount(); i++) {\n Node n = w.getNode(i);\n if (n.equals(e.osm)) {\n if (link.matches(e.withParentAndIndexAndLinkContext(w, i))) {\n e.parent = w;\n e.index = i;\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "1ee3b6ee08eabb8e672b630fbcfa7880", "score": "0.53230226", "text": "private void dribbleDown(int index) {\n T currentValue = heap.get(index);\n T swapValue = heap.get(index);\n int swapIndex = -1;\n\n int leftChildIndex = getLeftIndex(index);\n if (leftChildIndex < heap.size() && heapFunc.apply(heap.get(leftChildIndex), swapValue)) {\n swapValue = heap.get(leftChildIndex);\n swapIndex = leftChildIndex;\n }\n\n int rightChildIndex = getRightIndex(index);\n if (rightChildIndex < heap.size() && heapFunc.apply(heap.get(rightChildIndex), swapValue)) {\n swapValue = heap.get(rightChildIndex);\n swapIndex = rightChildIndex;\n }\n // if swap index is -1 it means that the currentValue has found its proper place and the heap property is established\n if (swapIndex != -1) {\n heap.set(index, swapValue);\n heap.set(swapIndex, currentValue);\n dribbleDown(swapIndex);\n }\n }", "title": "" }, { "docid": "af398e46371abab3dc165d6214dbc65b", "score": "0.5319226", "text": "static void addNextPathsToEndRec(List<CloudPath> allPossiblePaths, CloudPath currentPath) {\n Cloud visitCloud = currentPath.getCloudPath().getLast();\n if (!visitCloud.isStop()) {\n CloudPath visitPathCopy = null;\n if (visitCloud.getSafeNextClouds().size() > 1)\n visitPathCopy = currentPath.copy();\n if (visitCloud.getSafeNextClouds().size() > 0) {\n Iterator<Cloud> iterNextOnes = visitCloud.getSafeNextClouds().iterator();\n currentPath.getCloudPath().add(iterNextOnes.next());\n addNextPathsToEndRec(allPossiblePaths, currentPath);\n while (iterNextOnes.hasNext()) {\n CloudPath dupPath = visitPathCopy.copy();\n allPossiblePaths.add(dupPath);\n dupPath.getCloudPath().add(iterNextOnes.next());\n addNextPathsToEndRec(allPossiblePaths, dupPath);\n }\n }\n else\n currentPath.setInvalid();\n }\n }", "title": "" }, { "docid": "54a96a1e8410b3544697831b4ac4849f", "score": "0.531663", "text": "protected void minPath(mxGraphHierarchyModel model) {\n // Work down and up each edge with at least 2 control points\n // trying to straighten each one out. If the same number of\n // straight segments are formed in both directions, the\n // preferred direction used is the one where the final\n // control points have the least offset from the connectable\n // region of the terminating vertices\n Map<Object, mxGraphHierarchyEdge> edges = model.getEdgeMapper();\n\n for (mxGraphAbstractHierarchyCell cell : edges.values()) {\n if (cell.maxRank > cell.minRank + 2) {\n int numEdgeLayers = cell.maxRank - cell.minRank - 1;\n // At least two virtual nodes in the edge\n // Check first whether the edge is already straight\n int referenceX = cell.getGeneralPurposeVariable(cell.minRank + 1);\n boolean edgeStraight = true;\n int refSegCount = 0;\n\n for (int i = cell.minRank + 2; i < cell.maxRank; i++) {\n int x = cell.getGeneralPurposeVariable(i);\n\n if (referenceX != x) {\n edgeStraight = false;\n referenceX = x;\n }\n else {\n refSegCount++;\n }\n }\n\n if (edgeStraight) {\n continue;\n }\n\n int upSegCount = 0;\n int downSegCount = 0;\n double upXPositions[] = new double[numEdgeLayers - 1];\n double downXPositions[] = new double[numEdgeLayers - 1];\n\n double currentX = cell.getX(cell.minRank + 1);\n\n for (int i = cell.minRank + 1; i < cell.maxRank - 1; i++) {\n // Attempt to straight out the control point on the\n // next segment up with the current control point.\n double nextX = cell.getX(i + 1);\n\n if (currentX == nextX) {\n upXPositions[i - cell.minRank - 1] = currentX;\n upSegCount++;\n }\n else if (repositionValid(model, cell, i + 1, currentX)) {\n upXPositions[i - cell.minRank - 1] = currentX;\n upSegCount++;\n // Leave currentX at same value\n }\n else {\n upXPositions[i - cell.minRank - 1] = nextX;\n currentX = nextX;\n }\n }\n\n currentX = cell.getX(cell.maxRank - 1);\n\n for (int i = cell.maxRank - 1; i > cell.minRank + 1; i--) {\n // Attempt to straight out the control point on the\n // next segment down with the current control point.\n double nextX = cell.getX(i - 1);\n\n if (currentX == nextX) {\n downXPositions[i - cell.minRank - 2] = currentX;\n downSegCount++;\n }\n else if (repositionValid(model, cell, i - 1, currentX)) {\n downXPositions[i - cell.minRank - 2] = currentX;\n downSegCount++;\n // Leave currentX at same value\n }\n else {\n downXPositions[i - cell.minRank - 2] = cell.getX(i - 1);\n currentX = nextX;\n }\n }\n\n if (downSegCount <= refSegCount && upSegCount <= refSegCount) {\n // Neither of the new calculation provide a straighter edge\n continue;\n }\n\n if (downSegCount >= upSegCount) {\n // Apply down calculation values\n for (int i = cell.maxRank - 2; i > cell.minRank; i--) {\n cell.setX(i, (int)downXPositions[i - cell.minRank - 1]);\n }\n }\n else if (upSegCount > downSegCount) {\n // Apply up calculation values\n for (int i = cell.minRank + 2; i < cell.maxRank; i++) {\n cell.setX(i, (int)upXPositions[i - cell.minRank - 2]);\n }\n }\n else {\n // Neither direction provided a favourable result\n // But both calculations are better than the\n // existing solution, so apply the one with minimal\n // offset to attached vertices at either end.\n\n }\n }\n }\n }", "title": "" }, { "docid": "08b4581e5df7e2287e44be752863e4cb", "score": "0.5316379", "text": "private void backTrace(String cur, String start) {\n if (cur.equals(start)) {\n list.add(0, start);\n res.add(new ArrayList<String>(list));\n list.remove(0); // backtrace by one step\n return;\n }\n list.add(0, cur);\n if (map.get(cur) != null) {\n for (String s : map.get(cur)) { // for each neighbors\n backTrace(s, start);\n }\n }\n list.remove(0);\n }", "title": "" }, { "docid": "76e783625a06b537d6c384ced5c7806d", "score": "0.53147537", "text": "public void moveRoot() \n\t{\n\t\tcurrent = root;\n\t}", "title": "" }, { "docid": "f94d46a952c5a851935ba5698fb23f0f", "score": "0.5313526", "text": "public boolean hasOriginalLeaf() {\n return originalLeaf_ != null;\n }", "title": "" }, { "docid": "7a9848d7793cf25b5411cba434824b9a", "score": "0.53118944", "text": "abstract BPLeafNode<K,O> findLeafLeft();", "title": "" }, { "docid": "31385af26a05a52ba58c65950fa570e7", "score": "0.5310415", "text": "void onNodeMoved(PathUtil oldPath, FileTreeNode node, PathUtil newPath, FileTreeNode newNode);", "title": "" }, { "docid": "371f2a8c43f7c3ceb3f76c805225324d", "score": "0.53076017", "text": "private BinaryNode<E> lca(E a, E b) {\n BinaryNode<E> aNode = findClosest(a);\n BinaryNode<E> bNode = findClosest(b);\n BinaryNode<E> aTemp = aNode;\n aTemp.isAncestor = true;\n // Marks nodes on the way up\n while(aTemp != null) {\n aTemp.isAncestor = true;\n aTemp = aTemp.parent;\n }\n while(bNode != null && !bNode.isAncestor) {\n bNode = bNode.parent;\n }\n // Clears the marks\n while(aNode != null) {\n aNode.isAncestor = false;\n aNode = aNode.parent;\n }\n return bNode;\n }", "title": "" }, { "docid": "d5d9dd0c13fbf2a8a8eb07e677ec3819", "score": "0.53000706", "text": "private ArrayList<Square> reconstructPath( Hashtable<String,Square> cameFrom2, Square currentNode ) {\r\n\t\tif ( cameFrom2.containsKey( currentNode.toString() ) ) {\r\n\t\t\tArrayList<Square> p = reconstructPath( cameFrom2, cameFrom2.get( currentNode.toString() ) );\r\n\t\t\tp.add( currentNode );\r\n\t\t\treturn p;\r\n\t\t}\r\n\t\treturn new ArrayList<Square>();\r\n\t}", "title": "" }, { "docid": "3d39f420103938f9f8fa852eda08d9cb", "score": "0.52992374", "text": "@Override\n\t\t\tpublic void pushNestedPath(String arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "af6fb23033b2601b9aa2b7ed29533b88", "score": "0.52985716", "text": "public static int dis_bt_2node(Node root,int lo,int hi){\n Stack<Integer> lo_path = new Stack<>();\n boolean fl1 = nodeToPath(root,lo,lo_path);\n Stack<Integer> hi_path = new Stack<>();\n boolean fl2 = nodeToPath(root,hi,hi_path);\n\n // int i=0;\n // int size = lo_path.size();\n while(lo_path.size()>0){\n int vl1 = lo_path.peek();\n int vl2;\n if(hi_path.size()>0){\n vl2 = hi_path.peek();\n }else{\n break;\n }\n if(vl1 != vl2){\n break; \n }\n lo_path.pop();\n hi_path.pop();\n }\n\n return lo_path.size()+hi_path.size();\n }", "title": "" }, { "docid": "3ce038ad223e862273020a06aec884d6", "score": "0.5295507", "text": "public void pathChanged()\n{\n _pathSegments = null; _segmentLengths = null;\n positionChildren();\n}", "title": "" }, { "docid": "8e25c57b0945ed9bd5d1c099318c3171", "score": "0.5288811", "text": "private void fixInsert(Node k) {\r\n Node u;\r\n while (k.parent.color == 1) {\r\n iter++;\r\n if (k.parent == k.parent.parent.right) {\r\n u = k.parent.parent.left; // uncle\r\n if (u.color == 1) {\r\n // case 3.1\r\n u.color = 0;\r\n k.parent.color = 0;\r\n k.parent.parent.color = 1;\r\n k = k.parent.parent;\r\n } else {\r\n if (k == k.parent.left) {\r\n // case 3.2.2\r\n /*\r\n\r\n *\r\n \\\r\n \\\r\n *\r\n /\r\n /\r\n *\r\n\r\n */\r\n k = k.parent;\r\n rightRotate(k);\r\n }\r\n // case 3.2.1\r\n /*\r\n *\r\n \\\r\n \\\r\n *\r\n \\\r\n \\\r\n *\r\n */\r\n k.parent.color = 0;\r\n k.parent.parent.color = 1;\r\n leftRotate(k.parent.parent);\r\n }\r\n } else {\r\n u = k.parent.parent.right; // uncle\r\n\r\n if (u.color == 1) {\r\n // mirror case 3.1\r\n u.color = 0;\r\n k.parent.color = 0;\r\n k.parent.parent.color = 1;\r\n k = k.parent.parent;\r\n } else {\r\n if (k == k.parent.right) {\r\n /*\r\n *\r\n /\r\n /\r\n *\r\n \\\r\n \\\r\n *\r\n */\r\n // mirror case 3.2.2\r\n k = k.parent;\r\n leftRotate(k);\r\n }\r\n // mirror case 3.2.1\r\n /*\r\n *\r\n /\r\n /\r\n *\r\n /\r\n /\r\n *\r\n */\r\n k.parent.color = 0;\r\n k.parent.parent.color = 1;\r\n rightRotate(k.parent.parent);\r\n }\r\n }\r\n if (k == root) {\r\n break;\r\n }\r\n }\r\n\r\n root.color = 0;\r\n }", "title": "" }, { "docid": "f693d7689bbb3199f37532de2a7a9f6a", "score": "0.52875155", "text": "private void visit (int x, int y, int stepCount) {\n changedPosition = false;\n if (neighbour(x + 1, y, stepCount)) newPath(x + 1, y, stepCount);\n if (neighbour(x + 1, y + 1, stepCount)) newPath(x + 1, y + 1, stepCount);\n if (neighbour(x, y + 1, stepCount)) newPath(x, y + 1, stepCount);\n if (neighbour(x - 1, y + 1, stepCount)) newPath(x - 1, y + 1, stepCount);\n if (neighbour(x - 1, y, stepCount)) newPath(x - 1, y, stepCount);\n if (neighbour(x - 1, y - 1, stepCount)) newPath(x - 1, y - 1, stepCount);\n if (neighbour(x, y - 1, stepCount)) newPath(x, y - 1, stepCount);\n if (neighbour(x + 1, y - 1, stepCount)) newPath(x + 1, y - 1, stepCount);\n }", "title": "" }, { "docid": "18b7accdcc276f900a86aae83c5b315a", "score": "0.5283208", "text": "@Override\n public void hierarchicalUpdate() {\n update();\n }", "title": "" }, { "docid": "6b8d860812db7c885f0943f6133918e6", "score": "0.52812797", "text": "public static Path getPath(Track from, Track to){\n List<Track> path = new LinkedList<>();\n //Map saving the path to the Track from the Start\n Map<Track,LinkedList<Track>> paths = new HashMap<>();\n List<Track> currentLayer = new ArrayList<>();\n currentLayer.add(from);\n //Add the path to\n LinkedList<Track> toFirst = new LinkedList<>();\n toFirst.add(from);\n paths.put(from,toFirst);\n //Nodes of the next Layer\n List<Track> nextLayer;\n boolean found = false;\n //If the track was found terminate\n while (!found){\n nextLayer = new LinkedList<>();\n for (int i = 0; i < currentLayer.size() && !found; i++){\n Track former = currentLayer.get(i);\n List<Track> outgoing = new ArrayList<Track>(former.getOutTrackList());\n List<Track> shuffledOutgoing = new ArrayList<>();\n //Shuffle the outgoing tracks to get diverse Paths\n while(!outgoing.isEmpty()){\n int index = (int)(Math.random()*outgoing.size());\n shuffledOutgoing.add(outgoing.get(index));\n outgoing.remove(index);\n }\n //Check each outgoing Track of the node\n for(int j = 0; j < shuffledOutgoing.size() && !found; j++){\n Track next = shuffledOutgoing.get(j);\n //If it is already contained in the paths Hashmap, then a shorter Path was already found to this point\n if (! paths.containsKey(next)){\n LinkedList<Track> pathToFormer = paths.get(former);\n LinkedList<Track> pathToNext = (LinkedList<Track>) pathToFormer.clone();\n //Check whether the Track is the Ending Track if so then return\n if (next == to){\n found = true;\n path = pathToNext;\n }\n //Add the Path to the Hashmap and the Track to the next Layer\n pathToNext.add(next);\n paths.put(next, pathToNext);\n nextLayer.add(next);\n }\n }\n }\n //If there is no more node in the new layer. There is no path to the ending node\n if (nextLayer.isEmpty()){\n return null;\n }\n //Step one layer deeper\n currentLayer = nextLayer;\n }\n return new Path(path.toArray(new Track[0]));\n }", "title": "" }, { "docid": "3710f8f127c4ee647ca09e8f66d8aba5", "score": "0.5280424", "text": "public void recoverTree(TreeNode root) {\n \n }", "title": "" }, { "docid": "2828504c04dd33a14472673aefa85389", "score": "0.5255572", "text": "private void swapDown(int root){\n int leftChild = 2 * root + 1;\n int rightChild = 2 * root + 2;\n if (comparator!=null){\n E leftObject = elementAt(leftChild);\n E rightObject = elementAt(rightChild);\n E parentObject = elementAt(root);\n if (rightChild == lastElement && comparator.compare(leftObject, rightObject)<0\n && comparator.compare(parentObject,leftObject)>0){\n replace(root, leftChild);\n return;\n }\n if (leftChild == lastElement && comparator.compare(parentObject, leftObject)>0){\n replace(root, leftChild);\n return;\n }\n if (rightChild == lastElement && comparator.compare(parentObject, rightObject)>0){\n replace(root, rightChild);\n return;\n }\n if (rightChild == lastElement && comparator.compare(parentObject, rightObject)>0\n && comparator.compare(parentObject, leftObject)<0){\n replace(root, leftChild);\n return;\n }\n\n\n if (leftChild >= lastElement || rightChild >= lastElement){\n return;\n }\n\n if (comparator.compare(leftObject, rightObject)<0 && comparator.compare(parentObject, leftObject)>0){\n replace(root, leftChild);\n swapDown(leftChild);\n\n }else if (comparator.compare(rightObject, leftObject)<0 && comparator.compare(parentObject, rightObject)>0){\n replace(root, rightChild);\n swapDown(rightChild);\n }\n }else {\n Comparable<? super E> left = (Comparable<? super E>)elementAt(leftChild);\n Comparable<? super E> righ = (Comparable<? super E>)elementAt(rightChild);\n Comparable<? super E> parent = (Comparable<? super E>)elementAt(root);\n if (rightChild == lastElement && left.compareTo((E)righ)>0){\n replace(root, leftChild);\n return;\n }\n if (leftChild == lastElement && parent.compareTo((E)left)<0){\n replace(root, leftChild);\n return;\n }\n if (rightChild == lastElement && parent.compareTo((E)righ)<0){\n replace(root, rightChild);\n return;\n }\n if (rightChild == lastElement && parent.compareTo((E)righ)>0 && parent.compareTo((E)left)<0){\n replace(root, leftChild);\n return;\n }\n\n if (leftChild >= lastElement || rightChild >= lastElement){\n return;\n }\n if (left.compareTo((E)righ)>=0 && parent.compareTo((E)left)<=0){\n replace(root, leftChild);\n swapDown(leftChild);\n }else if (righ.compareTo((E)left)>0 && parent.compareTo((E)righ)<=0){\n replace(root, rightChild);\n swapDown(rightChild);\n }\n }\n }", "title": "" }, { "docid": "88b80c3f8baee22d1648a62e459b7dc0", "score": "0.5250185", "text": "private void insertNewLevel() {\n height++;\n\n Node node1 = new Node(null);\n node1.isStartPoint = true;\n\n Node node2 = new Node(null);\n node2.isEndPoint = true;\n\n node1.right = node2;\n node2.left = node1;\n\n node1.down = head;\n node2.down = tail;\n head.up = node1;\n tail.up = node2;\n\n head = node1;\n tail = node2;\n }", "title": "" }, { "docid": "e761d5d77c3a30fa0761b37a217fc109", "score": "0.5248793", "text": "private void changeDir(final LinkedList<DirectoryNode> path, final String name) throws InvalidDirException {\n if (name.equals(\".\")) {\n return;\n } else if (name.equals(\"..\")) {\n if (!path.peek().getName().equals(\"/\")) {\n path.pop();\n } else {\n throw new InvalidDirException(name);\n }\n } else if (path.peek() != null && path.peek().getDirectories().getByName(name) != null) {\n path.push(path.peek().getDirectories().getByName(name));\n } else {\n throw new InvalidDirException(name);\n }\n }", "title": "" }, { "docid": "dda9198f23d9ba6ac36864efca8f2420", "score": "0.52483785", "text": "public void slantBackward(){\n\t\tslant.retract();\n\t}", "title": "" }, { "docid": "fe10d183642fbfe75415600f8f350379", "score": "0.5248156", "text": "void moveToLeft() {\n if (left == null) {\n left = new DirectoryEntry();\n left.setBack(this);\n }\n\n left.setRegion(new GridRegion(region.getRegion(), region.getLevel() + 1));\n left.getRegion().setPopulation(region.getPopulation());\n left.getRegion().setTupleList(region.getTupleList());\n\n region = null;\n }", "title": "" }, { "docid": "36adc1e651c4aca5c52b1b0969179fe4", "score": "0.52477425", "text": "private void setDistance() {\n int biggestDistanceLeft = DEFAULT_DISTANCE_FROM_LEAF;\n int biggestDistanceRight = DEFAULT_DISTANCE_FROM_LEAF;\n\n if (rightChild != null) // if right child exists\n {\n biggestDistanceRight = rightChild.biggestDistanceToLeaf;\n }\n if (leftChild != null) // if left child exists\n {\n biggestDistanceLeft = leftChild.biggestDistanceToLeaf;\n }\n\n if (biggestDistanceLeft > biggestDistanceRight) {\n biggestDistanceToLeaf = biggestDistanceLeft + 1; //adding also father node to the count\n } else {\n biggestDistanceToLeaf = biggestDistanceRight + 1; //adding also father node to the count\n }\n }", "title": "" }, { "docid": "6cdafe280482a9659f6c3c22343dcec3", "score": "0.5245014", "text": "public static void travelLeft(int distance,BinaryTreeNode root){\n\t\tif(root==null)\n\t\t\treturn ;\n\t\t\n\t\telse if(root.left==null && root.right==null){\n\t\t\tleftLeaf.put(distance,root.key);\n\t\t}\n\t\t\n\t\telse{\n\t\t\tif(root.left!=null)\n\t\t\t\ttravelLeft(distance+1,root.left);\n\t\t\tif(root.right!=null)\n\t\t\t\ttravelLeft(distance+1,root.right);\n\t\t}\n\t}", "title": "" }, { "docid": "843c57af5b1eb116c162ada6e1152243", "score": "0.5242607", "text": "private static void buildPath(PathBuilder builder, NodeEntryImpl nEntry, boolean wspPath) throws RepositoryException {\n NodeEntryImpl parentEntry = (wspPath && nEntry.revertInfo != null) ? nEntry.revertInfo.oldParent : nEntry.parent;\n // shortcut for root state\n if (parentEntry == null) {\n builder.addRoot();\n return;\n }\n\n // recursively build path of parent\n buildPath(builder, parentEntry, wspPath);\n\n int index = nEntry.getIndex(wspPath);\n Name name = nEntry.getName(wspPath);\n builder.addLast(name, index);\n }", "title": "" }, { "docid": "6d9bda817083f08318f54d6f27669a68", "score": "0.5238933", "text": "public void traverseBfs() {\n\n Queue<Node> queue = new LinkedList<Node>();\n queue.add(Root);\n while (!queue.isEmpty()) {\n Node node = queue.remove();\n System.out.println(node.getName());\n\n List<Node> child = node.getChildren();\n for (Node no : child) {\n queue.add(no);\n\n }\n\n }\n }", "title": "" }, { "docid": "824e87d55eafd54cec344b6fc6134309", "score": "0.5236068", "text": "private void traversePathway(Element e, Element rootLevelPathway) {\n boolean keepTraversingTree = true;\n if (e != rootLevelPathway) {\n // Get an RDF ID Attribute, if there is one\n Attribute idAttribute = BioPaxUtil.extractRdfIdAttribute(e);\n\n // Get a pointer to an RDF resource, if there is one.\n Attribute pointerAttribute = e.getAttribute\n (RdfConstants.RESOURCE_ATTRIBUTE,\n RdfConstants.RDF_NAMESPACE);\n\n if (idAttribute != null) {\n // Case 1: The element has an RDF ID attribute.\n this.setPathwayMembership(e, rootLevelPathway);\n } else if (pointerAttribute != null) {\n // Case 2: The element has an RDF Resource/Pointer Attribute\n String uri = RdfUtil.removeHashMark\n (pointerAttribute.getValue());\n Element referencedResource = (Element) rdfResources.get(uri);\n if (referencedResource != null) {\n if (visitedNodeSet.contains(uri)) {\n // If we have already been here, stop traversing.\n // Prevents Circular References.\n keepTraversingTree = false;\n } else {\n setPathwayMembership(referencedResource,\n rootLevelPathway);\n visitedNodeSet.add(uri);\n\n // Now, keep walking from the referenced resource\n e = referencedResource;\n }\n }\n }\n }\n\n // Traverse through all children.\n if (keepTraversingTree) {\n List children = e.getChildren();\n for (int i = 0; i < children.size(); i++) {\n Element child = (Element) children.get(i);\n traversePathway(child, rootLevelPathway);\n }\n }\n }", "title": "" }, { "docid": "d45d8b7fac1d90ade4f0edf1d201cb74", "score": "0.523172", "text": "public void findPath() {\n // Define starting and target nodes\n Node start = this.start;\n Node end = this.target;\n\n // Create opened and closed node arrays\n // The neighbours of the open array will be added to the open array, and the node\n // that the neighbours were checked from will be added to the closed array\n ArrayList<Node> open = new ArrayList<Node>(),\n closed = new ArrayList<Node>();\n\n // Add the starting node to the open array\n open.add(start);\n\n // While there are still unchecked neighbours\n while(open.size() > 0) {\n // Get the first node in the open array\n Node current = open.get(0);\n\n // Get the node with lowest cost\n for(int i = 0; i < open.size(); i++) {\n if(open.get(i).fCost() < current.fCost() || open.get(i).fCost() == current.fCost() && open.get(i).hCost() < current.hCost()) {\n current = open.get(i);\n }\n }\n\n\n // The lowest cost node will now be checked\n open.remove(current);\n closed.add(current);\n\n // Check if the current node is the target\n if(current == end) {\n findFinalPath();\n return;\n }\n\n // Get the current node's neighbours and set their g costs and h costs, as well as set\n // the node's parent to the current node. This parent variable will be used to trace back\n // the path to the starting node\n Node[] neighbours = current.getNeighbours();\n for(int i = 0; i < neighbours.length; i++) {\n\n // If neighbour has already been checked, don't check it again\n if(closed.contains(neighbours[i])) continue;\n\n Node neighbour = neighbours[i];\n\n // Get the f cost of the current node\n float cost = current.gCost() + current.distance(end);\n\n // Check if the neighbour's node is closer to the target or that it hasn't been checked yet\n if(cost < neighbour.gCost() || !open.contains(neighbour)) {\n neighbour.setGCost(cost);\n neighbour.setHCost(neighbour.distance(target));\n neighbour.setParent(current);\n\n if(!open.contains(neighbour)) {\n open.add(neighbour);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a91f5974eb83acd478a6977304171919", "score": "0.5227824", "text": "private void relinkForeignChildren() {\n final String newParentID = sector.getTarget().getId();\n processForeignChildren((num, sn) -> {\n // remember original parent\n NameUsage parent = num.get(DSID.of(sectorKey.getDatasetKey(), sn.getParent()));\n foreignChildrenParents.put(sn.getId(), parent.getName());\n // update to new parent\n num.updateParentId(DSID.of(sectorKey.getDatasetKey(), sn.getId()), newParentID, user.getKey());\n });\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "17c8b54d41968bc1c282d6770ae04b6a", "score": "0.0", "text": "@Override\n public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {\n super.onReceivedError(view, errorCode, description, failingUrl);\n new AlertDialog.Builder(activity).setTitle(\"网络连接失败\")//设置对话框标题\n .setMessage(\"请重试\")//设置显示的内容\n .setPositiveButton(\"刷新\", new DialogInterface.OnClickListener() {//添加确定按钮\n @Override\n\n public void onClick(DialogInterface dialog, int which) {//确定按钮的响应事件\n // TODO Auto-generated method stub\n payWebView.reload();\n }\n\n }).show();//在按键响应事件中显示此对话框\n }", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6646134", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\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": "5314003d8592219f71035b81985fabc0", "score": "0.64631", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.6461734", "text": "@Override\n\tpublic void comer() {\n\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": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f9de8c9acb961a9d05ed00de5fe361e7", "score": "0.60638905", "text": "@Override\n\tpublic void seRetrage() {\n\t\t\n\t}", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.606149", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.6048755", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "1fd4f5b0b471084e004373c89c1cf248", "score": "0.6040993", "text": "@Override\r\n\tpublic void sen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.60228735", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.6014977", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.6005143", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.59771466", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "f3ea867fdaa4b61546bfc393614a093c", "score": "0.59687567", "text": "@Override\n\tpublic void setingInicial() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.59549016", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.5943817", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.5926535", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5925673", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.591947", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.59192646", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5910928", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5899844", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1134c4caabd33b9bbd414763740fddde", "score": "0.5896682", "text": "@Override\n\tpublic void respirar() {\n\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.5893354", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.58891016", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.5887025", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5879506", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.5858384", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.5849137", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5848443", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "6ed3e363c02164bd00163fa46e2c48c2", "score": "0.58366287", "text": "@Override\n public void init_moduule() {\n \n }", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\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": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.57759553", "text": "@Override\n public void alistar() {\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": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.57712233", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "683eea6c39ec4e6df90f6be05200559d", "score": "0.5769485", "text": "@Override\r\n public void confer(){\n \r\n }", "title": "" }, { "docid": "728d084a23664ecf9b5c04acb6367b9c", "score": "0.5769356", "text": "@Override\r\n\tpublic void descarnsar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5769273", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5768801", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.57645357", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.5759138", "text": "@Override\n public void init()\n {\n \n }", "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": "e634836bc1d61a011e04bfb67a971792", "score": "0.5745885", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.57428306", "text": "public void emettreSon() {\n\t\t\r\n\t}", "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": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.5731894", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "d1c2c284b75d7d46145b6f407496cd96", "score": "0.5725441", "text": "@Override\n\t\tprotected void initParameters() {\n\t\t\t\n\t\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": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.57112384", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.57087225", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f3e16954465fbae384d88f411211419", "score": "0.56972444", "text": "@Override\r\n public int E_generar() {\r\n return 0;\r\n }", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.56864643", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.5681723", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5f628d368579dd40ef68362831006940", "score": "0.56769013", "text": "@Override\n\tpublic void fahreFahrzeug() {\n\n\t}", "title": "" }, { "docid": "5ae17f2516c21590c850e6758048effe", "score": "0.56625473", "text": "@Override\n public int getID()\n {\n return 0;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5660459", "text": "public void mo3639d() {\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": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "24eac2ca18e65449040bb1359d6317b6", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group, container, false);\n }", "title": "" } ]
[ { "docid": "e4a07f9e56beb5c09bafea61fb480337", "score": "0.67900044", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_student_graph, container, false);\n }", "title": "" }, { "docid": "e5d5d3e40d77cb48b7a8216a6ee4807b", "score": "0.6763386", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_attendance_pin, container, false);\n }", "title": "" }, { "docid": "0375788f083f85d6832a06ab6f5c37af", "score": "0.6719636", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n context = parent.getContext();\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_my_posts, parent, false);\n }", "title": "" }, { "docid": "4e92a8055feaebb3d76c7a343f059c69", "score": "0.6694042", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.cadastro_individual3, container, false);\n }", "title": "" }, { "docid": "dcba9050035b06fd722a8e040435078d", "score": "0.6693726", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_code_book, container, false);\n\n initWidget(view);\n initData();\n initListener();\n return view;\n }", "title": "" }, { "docid": "f835dc02d19c5875765f9127299118c0", "score": "0.66828257", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.question_list_fragment, parent, false);\n }", "title": "" }, { "docid": "a2e918d059ed00dde335f6d68f1979cf", "score": "0.6681369", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_converter, container, false);\n }", "title": "" }, { "docid": "dc4d254d2f318241c785fe3f9c84617e", "score": "0.6674412", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater,\r\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.home_main_songlist, container, false);\r\n\t\t\r\n\t\tfragment = this;\r\n\t\tSetViewById();\r\n\t\tSetListener();\r\n\t\tSetAttributes();\r\n\t\t\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "f5959e7a0ee4abe7e410ae8e5b46f3dc", "score": "0.6672478", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "ebea608a1a50fe167a626319a04813b1", "score": "0.6666748", "text": "@Override\r\n \tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\r\n \t{\r\n \t\tmFragmentView = inflater.inflate(R.layout.query, container, false);\r\n \r\n \t\tsetup_ui();\r\n \r\n \t\treturn mFragmentView;\r\n \t}", "title": "" }, { "docid": "5bc286c988b5cfd5fe4359460f4f4086", "score": "0.6649563", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_plan, container, false);\n addControls(v);\n addEvents();\n return v;\n }", "title": "" }, { "docid": "3fb982e722cca9080c523050b180d26e", "score": "0.6647359", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_account_info, container, false);\n\n accountInfoLayout = new AccountInfoLayout(getActivity());\n chargeHistoryLayout = new ChargeHistoryLayout(getActivity());\n costHistoryLayout = new CostHistoryLayout(getActivity());\n\n initTextView();\n initViewPager();\n\n return rootView;\n }", "title": "" }, { "docid": "edd01337510036888c3d7f508e712949", "score": "0.66420186", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_kwiz_list_fragmant, container, false);\n\n\n return view;\n }", "title": "" }, { "docid": "83235b59e4b93b754ec9a500dbad7d01", "score": "0.66382974", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_attendance_student, container, false);\n }", "title": "" }, { "docid": "ab626ae45f1449a97c07f502290dfbc5", "score": "0.66369855", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.myfrag2radio, container,false);\n }", "title": "" }, { "docid": "fd1b8c91df33fb219d4f2f1ea81d0990", "score": "0.6636374", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "title": "" }, { "docid": "abcbc2af1f30a65dcb6614ebe430424d", "score": "0.6632176", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pengyouquan_record, container, false);\n }", "title": "" }, { "docid": "ee7fb092856f6fb655bac5cbe1a16bdb", "score": "0.66283417", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.register_fragment_1_fragment, container, false);\n\n x = new RegisterXml(view);\n\n onClickButtons();\n\n\n return view;\n }", "title": "" }, { "docid": "700e148b3b05005ec5c2d77cd37084fc", "score": "0.6621496", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_daily_quiz_s1, container, false);\n }", "title": "" }, { "docid": "7137129c53e9c1bd9f9817dc03308e74", "score": "0.66204315", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_net_all_list, container, false);\n }", "title": "" }, { "docid": "6dad68fac0172619c5e9a1e207d72ef4", "score": "0.6617541", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\r\n mRoot = inflater.inflate(R.layout.frag_feedbak_page,\r\n container, false);\r\n// mainActivity = (MyMainActivity) getActivity();\r\n// mainActivity.initHeadPanel(Constant.FRAGMENT_FLAG_COMMING_SOON);\r\n ButterKnife.bind(this,mRoot);\r\n\r\n initView();\r\n return mRoot;\r\n }", "title": "" }, { "docid": "8b836a56db86a45003a0df852c8fa904", "score": "0.66115326", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tlayout = inflater.inflate(layoutid, null);\n\t\tinit();\n\t\treturn layout;\n\t}", "title": "" }, { "docid": "8fcad6f575b305e83c43b37d7ecd0fcd", "score": "0.66034687", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attentation, container, false);\n initView(view);\n initTitles();\n initFragments();\n initTabs();\n return view;\n }", "title": "" }, { "docid": "9698fca5182b00bcc5a87176d91aba20", "score": "0.65961355", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_land, container, false);\n //return inflater.inflate(android.R.layout.)\n\n\n }", "title": "" }, { "docid": "a531089f812501f0637b48d5768f2a7f", "score": "0.6593635", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_home, container, false);\n setView();\n setRefresh();\n setVolley();\n getServer();\n getSlider();\n setOnClickButton();\n setLayout();\n\n return rootView;\n }", "title": "" }, { "docid": "2857c6e718e8858ad6d01b43becf099a", "score": "0.6587616", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_image_details, container, false);\n initializeViewReferences(view); //initialize the views\n setData(imageDetail); // set data for displaying in the XML file\n return view;\n }", "title": "" }, { "docid": "f6c8c8d553f7dfeb32dce382e151b148", "score": "0.6578955", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking, container, false);\n }", "title": "" }, { "docid": "f6c8c8d553f7dfeb32dce382e151b148", "score": "0.6578955", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking, container, false);\n }", "title": "" }, { "docid": "3ac277f0cd2943f9c7a3b94173a63ae3", "score": "0.65778285", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_yjzx, container, false);\n unbinder = ButterKnife.bind(this, view);\n initUI();\n initWebView();\n getNewsList();\n\n return view;\n }", "title": "" }, { "docid": "8cb1e1dc12a3ce72b497d5a41cf55e95", "score": "0.65720004", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_w1, container, false);\n\n }", "title": "" }, { "docid": "f72f1d1fcefcf71270014d56c3c6c415", "score": "0.6569063", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pickers_data, container, false);\n }", "title": "" }, { "docid": "cdaa3018b7d6f339a37ed0105fcdf2e0", "score": "0.6568058", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_acc_frag, container, false);\n\n }", "title": "" }, { "docid": "54f03ce36dfbea671d2afcb177f5b5f2", "score": "0.6565733", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.news_content_frag, container,false);\t\t\n\t\treturn view;\n\t}", "title": "" }, { "docid": "60d7e1e45ed7297164fbe41f722c679e", "score": "0.6562836", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_detail_eskul, container, false);\n }", "title": "" }, { "docid": "82c300d00271b03b5b71b680f49a35df", "score": "0.65607816", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\tViewGroup container, Bundle savedInstanceState) {\n\t\tView v = inflater.inflate(R.layout.location_image_fragment, container, false);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "1468305ddfb30a1c07319da1048f7f3c", "score": "0.6558583", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fr_jadwal_sholat, container, false);\n }", "title": "" }, { "docid": "06ecaebf58222ce8e9662b1125443065", "score": "0.6558455", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_fragment, container, false);\n }", "title": "" }, { "docid": "20f0811a06fd712339d82c8c8f22c6d5", "score": "0.65556157", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_attendance_summery, container, false);\n return view;\n }", "title": "" }, { "docid": "3f7480408ea7cbebba73c275b60e16e0", "score": "0.65551805", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment15_1, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "title": "" }, { "docid": "4c180dc170b3f2c0bf7b39460c630612", "score": "0.65480393", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_store, container, false);\n\n\n\n }", "title": "" }, { "docid": "c321551c06b2d9c9b8c29a14e230a15f", "score": "0.65443426", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_grid, container, false);\r\n }", "title": "" }, { "docid": "06fe3dbd45f2cf487162fec37a79fbee", "score": "0.65430725", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fg_plan, container, false);\n }", "title": "" }, { "docid": "33fd1fd3217f87cff64878f659463863", "score": "0.65419054", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_voadip_detail_plan, container, false);\n }", "title": "" }, { "docid": "38b0ac23071afadc608a899fbc644caa", "score": "0.6541476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_resources, container, false);\n\n\n }", "title": "" }, { "docid": "da9e5f2f557f9adfa04f2485ea925483", "score": "0.65392727", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_imatges, container, false);\n return root;\n }", "title": "" }, { "docid": "21be96e57f03b14bb4e503f1cac37b18", "score": "0.65363383", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment__more, container, false);\n imgback = view.findViewById(R.id.idbackmoreproduct);\n tvSEt = view.findViewById(R.id.txtTime);\n tvSubscribe = view.findViewById(R.id.txtSubscribe);\n return view;\n }", "title": "" }, { "docid": "bc9fcb174d767c8fba1a101fd1d0850a", "score": "0.6536281", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_instruction_info, container, false);\n init(view);\n return view;\n }", "title": "" }, { "docid": "235c03337242ba458e0178f544c1a517", "score": "0.6533743", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.frag_list, container, false);\n initUI(view);\n addActions();\n initData();\n return view;\n }", "title": "" }, { "docid": "8f6347eddb6efd1f5e94c4e9140177f7", "score": "0.6532225", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.bookstore_flow_view, container);\n\t\t\n\t}", "title": "" }, { "docid": "f845feecb52a8de94b2ba12df748ae7a", "score": "0.6529413", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_hourly_weather, container, false);\n\n // Init UI Elements\n swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.refresh_layout);\n progressBar = (ProgressBar) view.findViewById(R.id.progress_bar);\n\n // Init RefreshLayout\n initSwipeRefreshLayout();\n\n // Init Recycler View\n initRecyclerView(view);\n\n return view;\n }", "title": "" }, { "docid": "ee6106bba4e1ab5707fbe9fca93def4c", "score": "0.65291756", "text": "@Nullable\n\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_roam, container, false);\n }", "title": "" }, { "docid": "46700225b1478125c7478428dfa5459e", "score": "0.6524234", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_grid_view, container, false);\n }", "title": "" }, { "docid": "a04f65ef87c7843ff9b7a4e40c2522d4", "score": "0.6522684", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate (R.layout.fragment_doi_mat_khau, container, false);\n }", "title": "" }, { "docid": "3b7b5f676b207a26ee73491415a8a0db", "score": "0.6522245", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ratings, container, false);\n }", "title": "" }, { "docid": "d116adf95a3c00ad1eaa96d55820da61", "score": "0.65169835", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_attendance, container, false);\n }", "title": "" }, { "docid": "c2eb269f3cb88960ed6c7507b3aed91d", "score": "0.6516043", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //inflate our layout container\n return inflater.inflate(R.layout.fragment_main_layout, container, false);\n }", "title": "" }, { "docid": "e22976957bd93b9a07d7628cfa51f224", "score": "0.6515869", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root= inflater.inflate(R.layout.fragment_delivery_details, container, false);\n init(root);\n return root;\n\n }", "title": "" }, { "docid": "17fcf06cf9ba7a0fea732e294f85f2e2", "score": "0.6514914", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_student_detail, container, false);\n }", "title": "" }, { "docid": "ac5ce3f4acf0acf44bd7ba2265c816cc", "score": "0.6514403", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_otp, container, false);\n ids();\n setup();\n// animation();\n return view;\n }", "title": "" }, { "docid": "c686490ab40d4f97f872ab513b29399c", "score": "0.6513108", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.frag_wallet, container, false);\n\n binding = DataBindingUtil.bind(root);\n getWorkResultsAndShow();\n\n return root;\n }", "title": "" }, { "docid": "cec4bae9b027e3a6c430b030b44ead08", "score": "0.65125644", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.createpoll, container, false);\n\n }", "title": "" }, { "docid": "fe8588ddc84cf5e68fa616a5daa3dfe5", "score": "0.6512384", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_health_msg_item_detail, container, false);\n }", "title": "" }, { "docid": "93b6e255ef4922a8a71e5956f247ee85", "score": "0.6510425", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflate = inflater.inflate(R.layout.fragment_schedule, container, false);\n initView(inflate);\n return inflate;\n }", "title": "" }, { "docid": "f62eec85c339ebad57fd26416bc576de", "score": "0.6507418", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_transfer_input, container, false);\n }", "title": "" }, { "docid": "c36a566c3a7897aec305ecb3a92c81a7", "score": "0.65065414", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view=inflater.inflate(setLayout(),container,false);\n findViews(view);\n init();\n initEvent();\n loadData();\n return view;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.6504683", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "99bb4b751d8b2e861006b28974d7b898", "score": "0.65039814", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n }", "title": "" }, { "docid": "36f0e71d51b57a8e230afea1ba688b25", "score": "0.6503421", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rs, container, false);\n }", "title": "" }, { "docid": "8c2d0847b86cf4ca6a614666fbebd581", "score": "0.64979476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "title": "" }, { "docid": "c8d0612926e94ce0f57eac20dcf93a48", "score": "0.64943635", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_exam_results, container, false);\n\n mContext = getContext();\n\n init(v);\n initRetrofitClient();\n initData();\n setListners();\n return v;\n }", "title": "" }, { "docid": "4ec4a3b07ef9eaf0a2f898882f85d293", "score": "0.64930844", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootLayout = inflater.inflate(R.layout.fragment_swipe_view, container, false);\n\n return rootLayout;\n }", "title": "" }, { "docid": "f5d175d83ef3466f20ce5b56597142ee", "score": "0.6492969", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n TILE_SIZE = ((BMapActivity)getActivity()).getTILE_SIZE();\n TILES = ((BMapActivity)getActivity()).getTILES();\n relativeLayout = (RelativeLayout)inflater.inflate(R.layout.fragment_archipelago,container,false);\n eventler = new Eventler();\n\n //do all the islands and stuff\n relativeLayout = addIslands(relativeLayout);\n RelativeLayout trajectoryLayout = (RelativeLayout)relativeLayout.findViewById(R.id.trajectoryLayout);\n //@TODO add island layout. Right?\n trajectoryLayout = addTrajectories(trajectoryLayout);\n\n relativeLayout = addBoat(relativeLayout);\n\n return relativeLayout;\n }", "title": "" }, { "docid": "1180a99072ece77c4bfc0913a157e1d5", "score": "0.64923525", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n V = inflater.inflate(R.layout.fragment_new_post, container, false);\n init(V);\n PickImage();\n PublishButton();\n\n\n return V;\n }", "title": "" }, { "docid": "18fc6752601755a8a1773da6cd101bf9", "score": "0.6491407", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_assignment, container, false);\n }", "title": "" }, { "docid": "6d364de70e0f6f16daabf7f068ddb1be", "score": "0.6490365", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_station_schedule2, container, false);\n }", "title": "" }, { "docid": "813399f66663e63614675be0272f2d18", "score": "0.6490347", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tscreenwidth = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getWidth();\n\t\tscreenheight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\t\tcurrent_item=0;\n\t\tScrollView sv = (ScrollView) inflater.inflate(R.layout.fragment, null);\n\t\tLinearLayout ll = (LinearLayout) sv.findViewById(R.id.ex);\n\t\tRelativeLayout rl = (RelativeLayout) getActivity().getLayoutInflater()\n\t\t\t\t.inflate(R.layout.facilities_list, null);\n\t\tiv=(ImageView) rl.findViewById(R.id.fac_img);\n\t\tandroid.widget.RelativeLayout.LayoutParams para=(android.widget.RelativeLayout.LayoutParams) iv.getLayoutParams();\n\t\tpara.height=3*screenwidth/5;\n\t\t((ImageView)rl.findViewById(R.id.back)).setOnClickListener(this);\n\t\t((ImageView)rl.findViewById(R.id.next)).setOnClickListener(this);\n LayoutParams params=new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);\n params.setMargins(screenwidth/60,screenwidth/60,screenwidth/60, screenwidth/60);\n\t\tll.addView(rl);\n TextView tv=new TextView(getActivity());\n tv.setTextAppearance(getActivity(), android.R.style.TextAppearance_Large);\n tv.setTextColor(Color.parseColor(\"#9a1000\"));\n tv.setText(\"Introduction\");\n ll.addView(tv, params);\n TextView tv1=new TextView(getActivity());\n tv1.setTextAppearance(getActivity(), android.R.style.TextAppearance_Small);\n tv1.setTextColor(Color.BLACK);\n tv1.setText(text);\n ll.addView(tv1, params);\n\t\treturn sv;\n\t}", "title": "" }, { "docid": "1eeb8d71723e37a76adf1454d42497bf", "score": "0.64887404", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mMainLayout = inflater.inflate(R.layout.fragment_fragment_main, container, false);\n initView();\n getAllDataFromDatabase();\n setSearchView();\n loadAds(mSearchView);\n return mMainLayout;\n }", "title": "" }, { "docid": "edf6c973693548a379782443882fcaa0", "score": "0.64856744", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hiker_info, container, false);\n }", "title": "" }, { "docid": "45c9b1e53bd52c0a0a88e12832fc2b13", "score": "0.648533", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.video_frg, container, false);\n }", "title": "" }, { "docid": "5ce498b9f61ba83c03d025cae6626331", "score": "0.6484711", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\r\n // Defines the xml file for the fragment\r\n return inflater.inflate(R.layout.fragment_list, parent, false);\r\n }", "title": "" }, { "docid": "4f4d03496569b75baa184e4f5e8e37a2", "score": "0.6484638", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if(mImport) {\n\n return inflater.inflate(R.layout.fragment_simple_import, container, false);\n\n } else {\n\n return inflater.inflate(R.layout.fragment_simple_export, container, false);\n }\n }", "title": "" }, { "docid": "894d82736c0c0aacc01fc43b4bd0ad4d", "score": "0.64821887", "text": "@Override\n public View onCreateView( LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState ) {\n return inflater.inflate( R.layout.fragment_weekly_interactions, container, false );\n }", "title": "" }, { "docid": "ece1579281520e9c7bf4b02e4034776c", "score": "0.6480211", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_frag_puzzels, container, false);\n }", "title": "" }, { "docid": "fe4d711ad3dabce485c96af722b054a2", "score": "0.64796853", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_findadoctor, container, false);\n setupView(view);\n setupAdapter();\n return view;\n }", "title": "" }, { "docid": "8b29d7740f8bc7e6bea64e135ff6be9e", "score": "0.6478992", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t Bundle savedInstanceState) {\n\t\t// Inflate the layout for this fragment\n\t\treturn inflater.inflate(R.layout.fragment_simple_data, container, false);\n\t}", "title": "" }, { "docid": "07f1cf3f71e47644135d23e62eb8bd9d", "score": "0.6477824", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragmwnt_personal_page, container, false);\n\n initView();\n initToolbar();\n\n return view;\n }", "title": "" }, { "docid": "de9fa9d8ce204d9b1d4673cad5e030ef", "score": "0.64764786", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_member, container, false);\n\n }", "title": "" }, { "docid": "36648f97468305ae9de5f733de6bfb5d", "score": "0.6475953", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_auction_product, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "4c1d91a8c0c9f67b0a816b70718d496c", "score": "0.6475502", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n dbHandlerMbta = new DBHandlerMbta(getContext());\n view = inflater.inflate(R.layout.station_layout, container, false);\n return inflater.inflate(R.layout.station_layout, container, false);\n }", "title": "" }, { "docid": "02bd0c3992a577ba87b8187521b6f43a", "score": "0.6469671", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_detail, container, false);\n }", "title": "" }, { "docid": "663fdaf35de17d4de5437e77810e8633", "score": "0.6467589", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.edition_fragment_edit_details_poi, container, false);\n\n initFields();\n\n return rootView;\n }", "title": "" }, { "docid": "56e5cfa52123ccfaf115bcab4cbc859f", "score": "0.64659077", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_list_ques, container, false);\n initView();\n return view;\n }", "title": "" }, { "docid": "cf09978a28ea40e75ea19aeeb2b7af8d", "score": "0.64657116", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate( R.layout.fragment_bottom_section, container, false );\n t1=view.findViewById( R.id.txt );\n t2=view.findViewById( R.id.txt2 );\n return view;\n }", "title": "" }, { "docid": "7fabbe33f1b6fb828cf35a1afc5c7577", "score": "0.6465148", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_work, container, false);\n initView();\n initEvent();\n EventBus.getDefault().register(this);\n registerMessageReceiver();\n return view;\n }", "title": "" }, { "docid": "b1beee5144ffb39cf5e068aa647430c0", "score": "0.64637524", "text": "@Override\n\tpublic View initView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_search, null);\n\t\ttv_control_signal = (TextView)view.findViewById(R.id.tv_control_signal);\n\t\tpb_attention = (ProgressBar)view.findViewById(R.id.pb_attention);\n\t\tpb_meditation = (ProgressBar)view.findViewById(R.id.pb_meditation);\n\t\tgif_bulb = (GifMovieView)view.findViewById(R.id.gif_bulb);\n \n\t\treturn view;\n\t}", "title": "" }, { "docid": "19fb5241351ecfb0231fb9260afc11d1", "score": "0.64635414", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_north_america, container, false);\n setUI(view);\n implemenation(view);\n listItem(view);\n return view;\n }", "title": "" }, { "docid": "d23209ccd526678b72a51fea0a49649c", "score": "0.6460773", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView root = inflater.inflate(getLayoutRes(), container, false);\n\t\tinitViews(root);\n\t\treturn root;\n\t}", "title": "" }, { "docid": "f6dbe02bd2502b20c13d5ef576e9f5b2", "score": "0.64588577", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_strategy_list, container, false);\n initControls(rootView);\n return rootView;\n }", "title": "" }, { "docid": "1d86005eb6d17ec229e7bf4ffc42d677", "score": "0.64566785", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_road, container, false);\n\n initView(inflate);\n return inflate;\n }", "title": "" }, { "docid": "d34c449f3b1dbfb1cf45a422c2a82917", "score": "0.6456663", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_messagecenter, container, false);\r\n\r\n //initBaseData\r\n initBaseData();\r\n\r\n //init widget\r\n diagnosisMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_diagnosis_linearlayout);\r\n appointmentMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_appointment_linearlayout);\r\n checkInspectionMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_checkinspection_linearlayout);\r\n paymentMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_payment_linearlayout);\r\n serviceMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_service_linearlayout);\r\n announcementMessageLinearLayout = view.findViewById(R.id.fragment_personalcenter_announcement_linearlayout);\r\n diagnosisDotImageView = view.findViewById(R.id.fragment_personalcenter_diagnosisdot_imageview);\r\n appointmentDotImageView = view.findViewById(R.id.fragment_personalcenter_appointmentdot_imageview);\r\n checkInspectionDotImageView = view.findViewById(R.id.fragment_personalcenter_checkinspectiondot_imageview);\r\n paymentDotImageView = view.findViewById(R.id.fragment_personalcenter_paymentdot_imageview);\r\n serviceDotImageView = view.findViewById(R.id.fragment_personalcenter_servicedot_imageview);\r\n announcementDotImageView = view.findViewById(R.id.fragment_personalcenter_announcementdot_imageview);\r\n\r\n //init listener\r\n diagnosisMessageLinearLayout.setOnClickListener(this);\r\n appointmentMessageLinearLayout.setOnClickListener(this);\r\n checkInspectionMessageLinearLayout.setOnClickListener(this);\r\n paymentMessageLinearLayout.setOnClickListener(this);\r\n serviceMessageLinearLayout.setOnClickListener(this);\r\n announcementMessageLinearLayout.setOnClickListener(this);\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "3a832c3d484041eca3e183ba8208218d", "score": "0.645253", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View fragView = inflater.inflate(R.layout.fragment_fire_base_auth, container, false);\n return fragView;\n }", "title": "" } ]
629ce6d5cc1ea8dd0742950f60dd8ab8
Get the first child of this node
[ { "docid": "642704a5c417fe27c422e40829e0d0f0", "score": "0.0", "text": "public TreeNode getChild() throws MdsException\n\t{\n\t\tresolveNid();\n\t\treturn new TreeNode(getNci(nid, ctxTree.getCtx(), NciCHILD), ctxTree);\n\t}", "title": "" } ]
[ { "docid": "96b19c64a20f1a913040039cee6a8220", "score": "0.8205507", "text": "public Node firstChild();", "title": "" }, { "docid": "a383d807877ec52f9228420a1e57b345", "score": "0.7732895", "text": "public Node getFirstChild();", "title": "" }, { "docid": "ced89b0f8e5d094f5cd50a4c50df9711", "score": "0.7474517", "text": "@Override\n\tDOMNode firstChild();", "title": "" }, { "docid": "624a74db447cd2fbf45bcf6f054aee61", "score": "0.73660326", "text": "@Override\n\tpublic T getFirstElement() {\n\t\treturn (T) rootElement.getChildNodes().get(0);\n\t}", "title": "" }, { "docid": "2893347fad24d4be1227bc1cb7cf7170", "score": "0.7168789", "text": "public int getFirstChildPosition() {\n return getChildCount() == 0 ? 0 : getPosition(getChildAt(0));\n }", "title": "" }, { "docid": "10232fad9af2024a1c305c4123819f9a", "score": "0.7071133", "text": "public Node getLeftChild() {\n\t\treturn children.get(0);\n\t}", "title": "" }, { "docid": "b3f7854a6448ac067574debdb402bd99", "score": "0.70600545", "text": "public T getFirst() {\n\t\tif (getFirstNode() == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn getFirstNode().getData();\n\t}", "title": "" }, { "docid": "c996fe8da8690a9c6da824317457029d", "score": "0.69875616", "text": "public Node getFirst() {\n\t\treturn first;\n\t}", "title": "" }, { "docid": "5b8e938747e9a36733ee982e35989432", "score": "0.69707906", "text": "public Node<T> getFirst(){\n\t\treturn this.first;\n\t}", "title": "" }, { "docid": "947714d9c7a80f5ce8c31666d81b9120", "score": "0.6945338", "text": "public SimpleNode<T> getFirst() {\n\t\treturn first;\n\t}", "title": "" }, { "docid": "ed3620c9771d0c11e64a79d8b899ae57", "score": "0.6944806", "text": "public NodeList<T> getFirstNode() {\n return first;\n }", "title": "" }, { "docid": "c077f704330b4ccf31ea413659682a69", "score": "0.6876488", "text": "public Point getFirstNode() {\n return getNodeAsPoint(0);\n }", "title": "" }, { "docid": "3e16987c506ecd6c41b6698d9f8032d9", "score": "0.67725956", "text": "public Node getMiddleChild() {\n\t\treturn children.get(1);\n\t}", "title": "" }, { "docid": "470d6f7d787ffbac1e785b905719adf5", "score": "0.6756232", "text": "public E first() {\n if (isEmpty()) return null;\n return head.getElement();\n }", "title": "" }, { "docid": "49186679f4fee3487f7bd4c8c985c60f", "score": "0.6746328", "text": "public Node<E> getFirst()\n\t{\n\t\treturn first;\n\t}", "title": "" }, { "docid": "2240718a3fdebf533f96c1d19b234b6c", "score": "0.67343074", "text": "public static String byFirstChild() {\n\t\treturn byFirstChild(\"\");\n\t}", "title": "" }, { "docid": "85c7bcaa7bdb7b7bec68479cb70fe395", "score": "0.67269295", "text": "public static String byFirstChild(String tagName) {\n\t\treturn String.format(\"%s:first-child\", tagName);\n\t}", "title": "" }, { "docid": "b99add1991325cfae02c5e49075769c3", "score": "0.6702952", "text": "public E first(){\n if (isEmpty()) return null;\n return header.getNext().getElement();\n }", "title": "" }, { "docid": "489336a38994387c407885b7b4a732ba", "score": "0.66885924", "text": "private Node getFirstChildElement(Node element) {\n\t\tfor (int i : range(element.getChildNodes().getLength())) {\n\t\t\tNode child = element.getChildNodes().item(i);\n\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\treturn child;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d4d3076009cc6d349819107c96ae039c", "score": "0.6570665", "text": "public T first( ) {\n if (isEmpty( )) \n return null;\n return head.getElement( );\n }", "title": "" }, { "docid": "078eab1ae72c66def2edfc700e025660", "score": "0.656944", "text": "public E first(){\n\t\tif(root == null)\n\t\t\tthrow new NoSuchElementException();\n\t\tBSTNode<E> current = root;\n\t\twhile(current.getLeft() != null){\n\t\t\tcurrent = current.getLeft();\n\t\t}\n\t\treturn current.getData();\n\t}", "title": "" }, { "docid": "0dfa7750b2a7a1a97fa8887ecdbf1be9", "score": "0.65622103", "text": "public E getFirst() {\n\t\tfinal Node<E> f = first;\n\t\tif (f == null)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn f.item;\n\t}", "title": "" }, { "docid": "774f1ac3c5478c7f5db7c6c3410c3cfc", "score": "0.6550386", "text": "public E first(){\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn _header.getNext().getElement();\n\t}", "title": "" }, { "docid": "0765a4253a5729306af17c0a10f7e655", "score": "0.6522335", "text": "public BSTree getFirst()\n {\n BSTree ptr;\n ptr = this.getRoot(); // reached at sentinel node \n ptr = ptr.right; \n if(ptr == null) // empty tree\n return null;\n while(ptr.left != null){\n ptr = ptr.left;\n }\n return ptr;\n }", "title": "" }, { "docid": "d118808d5f007027b25c9a48004d0e9c", "score": "0.64957774", "text": "public Node<T> getFirstNode() {\n\t\tNode<T> result = root;\n\n\t\tif (result != null) {\n\t\t\twhile (result.getLeft() != null) {\n\t\t\t\tresult = result.getLeft();\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "7cab9e228f5de845aaebaade9f261f16", "score": "0.646067", "text": "public DNode<T> getFirst() throws Exception {\r\n if (isEmpty())\r\n throw new Exception(\"Empty\");\r\n return header.getNext();\r\n }", "title": "" }, { "docid": "9ac2c2b15929db122a56e9b0ed98e509", "score": "0.63981575", "text": "@Override\n\tpublic E getFirst() {\n\t\tNode<E> temp = head;\n\t\treturn temp.data;\n\t}", "title": "" }, { "docid": "1dbc33176e711c39580b54dc1166d357", "score": "0.6392528", "text": "public E first() {\n if(size == 0)\n return null;\n return header.getElement();\n }", "title": "" }, { "docid": "4de807a39a74b9481154e86e30da4a08", "score": "0.6383469", "text": "public Object first() {\n return redBlackTree.first();\n }", "title": "" }, { "docid": "9fdbd3872a1afac3f10cc8cabf4bad75", "score": "0.6371466", "text": "public Node getChild() {\n for (Conditional conditional : conditionals) {\n if (conditional.isSatisfied()) {\n return conditional.child;\n }\n }\n return child;\n }", "title": "" }, { "docid": "af66935e3f8ba55db650617ec16d6e18", "score": "0.6370467", "text": "public AccessibilityNodeInfoCompat findFirst() {\n if (mTree == null) {\n return null;\n }\n\n return AccessibilityNodeInfoCompat.obtain(mTree.getRoot().getNode());\n }", "title": "" }, { "docid": "236ae0fa212b58e32f774031d4b538f4", "score": "0.6361507", "text": "public E getFirst() {\n return first == null ? null : first.element;\n }", "title": "" }, { "docid": "83435d8076f9b9b320f57843f359ebef", "score": "0.63449186", "text": "Node GetFirstChildByName(Node p, String Name) {\r\n\t\tNodeList nl = p.getChildNodes();\r\n\t\t// over all child nodes\r\n\t\tNode child;\r\n\t\tfor (int i = 0; i < nl.getLength(); i++) {\r\n\t\t\tchild = nl.item(i);\r\n\t\t\tif (child.getNodeName() == Name) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7fbec16e63c85335024fb643a3f29fb8", "score": "0.63194305", "text": "IXMLElement getFirstChildNamed(String name);", "title": "" }, { "docid": "1e6f04de11d1b0bb9483c9429be86262", "score": "0.62942034", "text": "private static Node getFirstValidChildNode(Node node) {\n NodeList nl = node.getChildNodes();\n\n for (Node n : asList(nl)) {\n if (n.getNodeType() == Node.ELEMENT_NODE)\n return n;\n }\n\n return null;\n }", "title": "" }, { "docid": "b96f47d21240f47f8f70e0079ae44054", "score": "0.6272443", "text": "public E first() {\n return (E) get(0);\n }", "title": "" }, { "docid": "ca401f8664efd644d0258ee70040df39", "score": "0.62517965", "text": "Node getChild(int index);", "title": "" }, { "docid": "91aac322478b05231d9ef5e1fa68d9e1", "score": "0.62493354", "text": "public Node getChild(){\n\t\treturn childObj;\n\t}", "title": "" }, { "docid": "cb8cd0e95056bdf88f20c54f2b599adb", "score": "0.6242829", "text": "@Override\n\tpublic T first() {\n\t\tif(isEmpty()){\n\t\t\treturn null;\n\t\t}else{\n\t\t\tSkipNode<T> p = head;\n\t\t\tif(p.getNext()!=null){\n\t\t\t\treturn p.getNext()[0].getData();\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "45af70a1afff7b12acf00f1c28c6960b", "score": "0.6240003", "text": "public E getFirst(){\n\t\tif(firstNode != null){\r\n\t\t\treturn firstNode.getData();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new NoSuchElementException (\"No hay ningun elemento en la lista.\");\t\t//Si está vacía devuelve esta excepción\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "72382cb03bed51c67f13e410c4a5605b", "score": "0.6223834", "text": "public Object element() {\n return getFirst();\n }", "title": "" }, { "docid": "31a366acb41957e3dad471a892e2d71a", "score": "0.62061876", "text": "public LinkedListNode<T> getFirstNode() {\n\t\treturn head;\n\t}", "title": "" }, { "docid": "04c6ac9110ea0ebf5b0423fc52519b3d", "score": "0.61961937", "text": "@Override\r\n\t\tpublic E first() {\n\t\t\t\r\n\t\t\treturn header.getNext().getElement();\r\n\t\t}", "title": "" }, { "docid": "00df28a288385cdf3173b33483dff661", "score": "0.61912614", "text": "public Node getHead() {\n return (Node) get();\n }", "title": "" }, { "docid": "6b75ee910e29dfd766bfe936b59b8c58", "score": "0.6168384", "text": "public Object first() {\r\n\t\treturn this.head.value;\r\n\t}", "title": "" }, { "docid": "9f68e9fea8384b61dcbe5aa3922ab267", "score": "0.61671937", "text": "public E element() {\n return getFirst();\n }", "title": "" }, { "docid": "eb1f79a8a2d24a95a36d5cdf5943b0b5", "score": "0.61653495", "text": "public String first_node() {\n return this.nodes[0].get_key();\n }", "title": "" }, { "docid": "946aa28a58f2abfdfd0e3f79293e509a", "score": "0.6151285", "text": "public Integer first() { // returns (but does not remove) the first element\n\t\t if (isEmpty()) return null;\n\t\t return head.getElement();\n\t\t }", "title": "" }, { "docid": "c2e83754046dfadd2ad795c03d27e24e", "score": "0.6142964", "text": "public EAST getFirstChild()\n {\n return (EAST) this.down;\n }", "title": "" }, { "docid": "c88bc210d406bcff953f595ba85d9a0a", "score": "0.61292", "text": "@Nullable\n public C getChild() {\n return child;\n }", "title": "" }, { "docid": "e061245ec9f795e32f75c9a1ad20db4a", "score": "0.6084388", "text": "public E element() {\n\t\treturn getFirst();\n\t}", "title": "" }, { "docid": "8aa1be9e874a5143de893d48cf3c601b", "score": "0.6081168", "text": "private Comparable<Node> getLeftChild(int index) {\r\n\t\treturn elements.get(2 * index);\r\n\t}", "title": "" }, { "docid": "b4672d61f1977df2a0e9cf22feb61712", "score": "0.6081116", "text": "public int getStartOffset() {\n return children[0].getStartOffset();\n }", "title": "" }, { "docid": "dfde4d7a2f848b16f65842d1c3b23456", "score": "0.60742337", "text": "public Node getChild(int index) {\r\n\t\treturn (Node)children.get(index);\r\n\t}", "title": "" }, { "docid": "1552bafbf735bc9d78bf8f058ae08b1f", "score": "0.6072256", "text": "public synchronized Object getFirst() {\n if (m_size == 0) {\n return null;\n }\n return m_header.m_next.m_element;\n }", "title": "" }, { "docid": "218e9300c2e4d12191fbb6cffa453674", "score": "0.60620075", "text": "public Node getStartNode() {\n if (nodes == null || nodes.isEmpty()) {\n return null;\n }\n return nodes.get(0);\n }", "title": "" }, { "docid": "c6063da0a847336d0d7cfc5f913d31da", "score": "0.60518324", "text": "public Node getLastChild();", "title": "" }, { "docid": "9dbae8722dfc2e51ff7587ce9538caa7", "score": "0.603916", "text": "public Node getLeftChild() {\n\t\treturn left;\n\t}", "title": "" }, { "docid": "9d88c55c220fd78f1129f146b59d0aaf", "score": "0.6037495", "text": "public Node getChild(String name) {\n return _children.get(name);\n }", "title": "" }, { "docid": "a0e0aa02edaefae32d2c65ac52281065", "score": "0.6027353", "text": "public T first() {\n\t if (isEmpty())\n\t return null;\n\t else return first.data;\n\t}", "title": "" }, { "docid": "32150faa411e77fe873aa6769bb6e1a9", "score": "0.60147077", "text": "public Node<E> getFirstNode() throws NoSuchElementException {\n\t\tif (first == null)\n\t\t\tthrow new NoSuchElementException(\"getFirstNode() : linked list is empty...\"); \n\t\t\n\t\t// the linked list is not empty....\n\t\treturn first;\n\t\t\n\t}", "title": "" }, { "docid": "6fbdc448143b53138504b03cbefa7a4b", "score": "0.6001054", "text": "public Node getChild(int id) {\n return children.get(id);\n }", "title": "" }, { "docid": "3df2f8dfe3d1c9b986ed4563aad89595", "score": "0.5994843", "text": "@Override\n public T element() {\n return peekFirst();\n }", "title": "" }, { "docid": "f7e3f4250db4f8d72eb0ac5e1b9bbbf2", "score": "0.5988991", "text": "public E getFirst() {\n if (size == 0) {\n throw new NoSuchElementException();\n }\n return h.next.element;\n }", "title": "" }, { "docid": "680454db6c0e2caaa5da295241c2a1ce", "score": "0.5981653", "text": "public E peekFirst() {\n return (isEmpty() ? null : front.next.item);\n }", "title": "" }, { "docid": "3edd63692f23ec40d2421463337f3f98", "score": "0.5965682", "text": "public Node getChild(int index) {\n\t\treturn (Node) collection.get(index);\n\t}", "title": "" }, { "docid": "dc6d85d74ac2496ae459d116c6576520", "score": "0.5964902", "text": "public int getFirstElement(){\r\n if(!isEmpty())\r\n return head.getItem();\r\n return 0;\r\n }", "title": "" }, { "docid": "828d08156134af1f67c0af0a82f44386", "score": "0.5963857", "text": "public Node getFather() {\n\t\treturn father;\n\t}", "title": "" }, { "docid": "98b1e276bbcc25b10b2d408621f33c33", "score": "0.5935511", "text": "public Object getChild() {\r\n return child;\r\n }", "title": "" }, { "docid": "e84e7d027c61015b736199a4f701b112", "score": "0.59333616", "text": "@Override\n\tpublic Object getChild(int arg0, int arg1) {\n\t\treturn childs.get(arg0).get(arg1);\n\t}", "title": "" }, { "docid": "42a043810224d1bb92771f71a1799a5d", "score": "0.5927892", "text": "@Override\r\n public T peekFirst() {\r\n if ( isEmpty() ) \r\n return null;\r\n \r\n return front.getData();\r\n }", "title": "" }, { "docid": "41337cef89a756d7bbe7fa6ca909aa75", "score": "0.592632", "text": "public GeneralizableElement getChild()\n // -end- 335C14A50352 get_head3C1DD59D0109 \"Generalization::getChild\"\n {\n // -beg- preserve=no 335C14A50352 get_body3C1DD59D0109 \"Generalization::getChild\"\n return super.getChild();\n // -end- 335C14A50352 get_body3C1DD59D0109 \"Generalization::getChild\"\n }", "title": "" }, { "docid": "c8cd264c86a883486f5b45cc06651273", "score": "0.59215635", "text": "public Comparable first() {\r\n\t\t\treturn el1;\r\n\t\t}", "title": "" }, { "docid": "e5c1544d8cc18a25802b86d168dcf307", "score": "0.59137404", "text": "@Override\n public T getFirst() {\n return first != null ? first.getItem() : null;\n }", "title": "" }, { "docid": "4ee15b4ffe80ae9819af89b253fb5db6", "score": "0.5911127", "text": "public A first() {\n\t\treturn this.first;\n\t}", "title": "" }, { "docid": "fc9f8cc92ccaa18d5317b79995196c5c", "score": "0.5907361", "text": "Entry<T> oneChild(Entry<T> node) {\n\treturn node.left == null? node.right : node.left;\n }", "title": "" }, { "docid": "0fdc113f631fd95138a727f41b858a78", "score": "0.59035724", "text": "public Element getElement(int index) {\n if (index < nchildren) {\n return children[index];\n }\n return null;\n }", "title": "" }, { "docid": "b4f0707b6f6447399810819dc5eaf5f1", "score": "0.5886785", "text": "public Node getLeftmost() {\n return nodes.get(0);\n }", "title": "" }, { "docid": "92a80f6b868f59f725918ba2c5d475bf", "score": "0.5874015", "text": "public Node front(){\n\t\tif (isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\telse{\n\t\t\treturn f;\n\t\t}\n\t}", "title": "" }, { "docid": "af085791d3b2cc2e4159b1ac0e173ccf", "score": "0.587325", "text": "Object getFirst() {\n\t\tif (first == null) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\treturn first.data;\n\t\t//will give a null pointer exception if the NOde is empty. So, WE CHECK ABOVE\n\t}", "title": "" }, { "docid": "2c78f82e79cb8638c8b259e7ce2c8032", "score": "0.58592516", "text": "public ElementGrouping getChild() {\r\n return child;\r\n }", "title": "" }, { "docid": "af091f5d0446e3ffa835ee1554299778", "score": "0.5852464", "text": "public Node leftChild() {\n return leftChild;\n }", "title": "" }, { "docid": "84de4a999695546241056dc87bb065ae", "score": "0.58481175", "text": "public T findMin() throws NoSuchElementException {\n\t\treturn findMin(root).element;\n\t}", "title": "" }, { "docid": "6ddb1ef738e5df161f90d4981a93651a", "score": "0.58340096", "text": "public Comparable<Node> peek() {\r\n\t\treturn elements.get(1);\r\n\t}", "title": "" }, { "docid": "50f6e4b32f5cbaf1ec94fb25a8ca64d7", "score": "0.5833768", "text": "@Override\n public T getFirst() {\n return mainLinkedList.getFirst();\n }", "title": "" }, { "docid": "7eecaa01534126310f97f43ab10c88e1", "score": "0.58273417", "text": "public BTNode<T> getLeftChild() {\n return this.left;\n }", "title": "" }, { "docid": "886d230884fd8642916b80e544d45de3", "score": "0.58257216", "text": "public BSTNode getLeftChild( ) {\n return this.leftNode;\n }", "title": "" }, { "docid": "8186d4f3b92b22c5e5fdc4b64216ac1b", "score": "0.58157563", "text": "public Node getFront()\n {\n // TODO: Implementierung vervollständigen\n return null;\n }", "title": "" }, { "docid": "e721c90a168c2caa0726bb4c2d1d8540", "score": "0.5813566", "text": "public Element findChildElement( String arg1 ) {\r\n return child==null?null:child.findChildElement(arg1);\r\n }", "title": "" }, { "docid": "496476f023be12379e3366c3aa612801", "score": "0.58107674", "text": "public int first(){\n if(isEmpty())\r\n throw new NoSuchElementException();\r\n \r\n return head.element;\r\n }", "title": "" }, { "docid": "26f1ae5dfd82b25a73506b042cfce997", "score": "0.58073425", "text": "public E peekFirst() {\n return (size == 0) ? null : getFirst();\n }", "title": "" }, { "docid": "2520b483e11239d2f0300c11832fd73c", "score": "0.58002144", "text": "public Object getFirst()\n {\n if (first == null)\n {\n NoSuchElementException ex\n = new NoSuchElementException();\n throw ex;\n }\n else\n return first.data;\n }", "title": "" }, { "docid": "3f22b91f9ab75916498ee22b750fc4ac", "score": "0.5794618", "text": "@Override\n public Object getChild(int index) {\n return null;\n }", "title": "" }, { "docid": "c6c386f9d48e48e5471f144c6b808de7", "score": "0.5790001", "text": "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n return first.data;\n }", "title": "" }, { "docid": "3b60bf6aa0b8fef1313568a81e6e58c5", "score": "0.5784629", "text": "@Override\r\n\tpublic T getFirst() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5985cefd61e2e60336c98d38b8560e66", "score": "0.57842374", "text": "private Optional<String> getPublicIDOfFirstChildOneLevel(\n final QName children) {\n final XmlObject[] candidates = event.selectChildren(children);\n if (candidates.length > 0) {\n return Optional.ofNullable(\n candidates[0].selectAttribute(PUBLIC_ID)\n .newCursor().getTextValue());\n }\n return Optional.empty();\n }", "title": "" }, { "docid": "49445b93c2e4148de22b0e07ee5841e6", "score": "0.57828957", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic <T extends ASTNode> T getFirstChildOfType(ASTNode parent,Class<T> type){\n\t\tCollection<ASTNode> childs=getChilds(parent);\n\t\tfor(ASTNode child:childs){\n\t\t\tif(isOfType(child,type)){\n\t\t\t\treturn (T)child;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "805f1a90d7f34addc024c32b6243cfdb", "score": "0.57757235", "text": "public T1 first() {\n\t\treturn this.first;\r\n\t}", "title": "" }, { "docid": "77728c1a3ad15ad416b0e1e0fb528dcd", "score": "0.57711995", "text": "private static Element getSingleChild(Element element, String childName) {\n\t\tNodeList nList = element.getElementsByTagName(childName);\n\t\tElement child = (Element) nList.item(0);\n\t\treturn child;\n\t}", "title": "" }, { "docid": "e1d8d533aaf3b3387ccd00c3ab26a363", "score": "0.57692605", "text": "public void removeFirstChild()\n {\n EAST fc;\n if (down != null)\n {\n fc = getFirstChild();\n down = fc.getNextSibling();\n if (down != null)\n {\n getFirstChild().setPreviousSibling(null);\n fc.detach();\n } \n else\n lastChild = null;\n }\n }", "title": "" }, { "docid": "2ede5bd2d30ce6368112c203c36fe334", "score": "0.57684565", "text": "public Node getNode1() {\n\t\treturn node1;\n\t}", "title": "" } ]
a4b32329129085e8c1783ffca5d5a10a
Sets the expected status.
[ { "docid": "a439ed206315a60d513027407698fd65", "score": "0.7910005", "text": "public T setExpectedStatus(final int expectedStatus) {\n this.expectedStatus = expectedStatus;\n return getSelf();\n }", "title": "" } ]
[ { "docid": "124dff708adebd8a730afd6c56d08d38", "score": "0.7036741", "text": "public int getExpectedStatus() {\n return expectedStatus;\n }", "title": "" }, { "docid": "9da79e026fa3ddef25390a70d07c6d1e", "score": "0.66863763", "text": "@Test\n public void testSetStatus() {\n this.c.setStatus(ClusterStatus.TERMINATED);\n Assert.assertEquals(ClusterStatus.TERMINATED, this.c.getStatus());\n }", "title": "" }, { "docid": "18db256863e4f25fbcb35c7c92e4ead5", "score": "0.6607301", "text": "public void setStatus(TeamStatus status) {\n assert status != null;\n this.status = status;\n }", "title": "" }, { "docid": "8ddde897a5f0e1c42a2b8c9013993cf6", "score": "0.64540577", "text": "private void setStatus(int value) {\n \n status_ = value;\n }", "title": "" }, { "docid": "8455fa920fdb3d0b28322624cfb5bf39", "score": "0.6401092", "text": "public void setStatus(int value) {\n this.status = value;\n }", "title": "" }, { "docid": "057f077138b3e97da04658f1f6d5c80f", "score": "0.63471454", "text": "public void setStatus(Boolean newVal) {\n if ((newVal != null && this.status != null && newVal.equals(this.status)) || \n (newVal == null && this.status == null && status_is_initialized)) {\n return; \n } \n this.status = newVal; \n status_is_modified = true; \n status_is_initialized = true; \n }", "title": "" }, { "docid": "c8e242ac8b9578b9aca3c799a3cc1d4b", "score": "0.6313279", "text": "void setExpected(double expected);", "title": "" }, { "docid": "789fd01cc8deb6d1dbd45167e614200b", "score": "0.6290521", "text": "public void setStatus(int status);", "title": "" }, { "docid": "50fa821c8d1ac2f129992182ad1e2b91", "score": "0.6288073", "text": "public void setStatus(int status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "9b032148c581f65c4ed10cde94abdf6f", "score": "0.62657255", "text": "private void status(int status) {\n this.status = status;\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.6244668", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.6244668", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.6244668", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "443d4b8abacfea85ff4cc8a260f3f8ad", "score": "0.6242413", "text": "void setStatus(EnumStatus status);", "title": "" }, { "docid": "aed313e1c29ff4b127909ba089d59a7e", "score": "0.6235701", "text": "public void setStatus(Integer status) {\r\n\t\tthis.status = status;\r\n\t}", "title": "" }, { "docid": "672de84ef620c7dbf351cc88b7fb1e9d", "score": "0.62331414", "text": "@Override\r\n\tpublic void setCheckStatus(int status) {\n\t\tcheckStatus = status;\r\n\t}", "title": "" }, { "docid": "d7eb6ef07409039ec3ed2edea9b8663e", "score": "0.6204314", "text": "void setStatus(int status);", "title": "" }, { "docid": "99236eceb72ebda0610bb8cc3e42e25a", "score": "0.6198203", "text": "public void setStatus(String newStatus) {\n status = newStatus;\n }", "title": "" }, { "docid": "897aa4afb22aee17f1c8587c82a3eb19", "score": "0.6196684", "text": "public void setStatus(int status) {\n this.status = status;\n }", "title": "" }, { "docid": "897aa4afb22aee17f1c8587c82a3eb19", "score": "0.6196684", "text": "public void setStatus(int status) {\n this.status = status;\n }", "title": "" }, { "docid": "897aa4afb22aee17f1c8587c82a3eb19", "score": "0.6196684", "text": "public void setStatus(int status) {\n this.status = status;\n }", "title": "" }, { "docid": "b5758e05388fcce142f53aee90a84162", "score": "0.61637634", "text": "public void setStatus( Integer status ) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.6163722", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "c65360ba9e3c2cb5b60982fc645c66ec", "score": "0.6141468", "text": "public void setStatus(Integer status)\n/* */ {\n/* 582 */ this.status = status;\n/* */ }", "title": "" }, { "docid": "577b14e6e6df20cdaf631945a1cd08d5", "score": "0.6139981", "text": "public void setStatus(String Status);", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.61371964", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.61371964", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "cb1435adbe5a7f8cb989f3d299485032", "score": "0.6135682", "text": "public void setStatus(int status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "cb1435adbe5a7f8cb989f3d299485032", "score": "0.6135682", "text": "public void setStatus(int status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "cb1435adbe5a7f8cb989f3d299485032", "score": "0.6135682", "text": "public void setStatus(int status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "aab5fd02797f2bfcd0d15ee367dbd106", "score": "0.612679", "text": "public void setStatus(SeatStatuses newStatus)\n {\n status = newStatus;\n }", "title": "" }, { "docid": "d57c720c5b0cd1d82e1ae6a4adcfd7a9", "score": "0.6115845", "text": "@Override\n\tpublic void setStatus(int status);", "title": "" }, { "docid": "f3fbf57add1dc2a79675c46fa00331cf", "score": "0.6108162", "text": "void setStatus(Status status);", "title": "" }, { "docid": "f3fbf57add1dc2a79675c46fa00331cf", "score": "0.6108162", "text": "void setStatus(Status status);", "title": "" }, { "docid": "055b4bfb4176d27d97ebb0d771221e8a", "score": "0.61058414", "text": "public void setSTATUS(int value) {\r\n this.status = value;\r\n }", "title": "" }, { "docid": "0eccd69bc3139112e8fa02b6ab0ad0c2", "score": "0.6078545", "text": "public void setStatus(String s) {\n\t\tthis.status = s;\n\t}", "title": "" }, { "docid": "1c11d6792178062f183f172259754e7f", "score": "0.60783696", "text": "public TestDTOBuilder setStatus(Test.Status status) {\n this.status = status;\n return this;\n }", "title": "" }, { "docid": "2e93e53e36390ba5e1aab82788c78642", "score": "0.60782665", "text": "public void setStatusVal(String statusVal) {\r\n\t\tthis.statusVal = statusVal;\r\n\t}", "title": "" }, { "docid": "32db3663089e867a276697282d59cf13", "score": "0.6040627", "text": "public void setStatus(int Status) {\n\tthis.Status = Status;\n }", "title": "" }, { "docid": "5e626dafa23dafa8e5d605a62f757d28", "score": "0.60308635", "text": "public void setStatus(java.lang.String param) {\n localStatusTracker = param != null;\n\n this.localStatus = param;\n }", "title": "" }, { "docid": "7e3524446af4eeeab208d4ef20a0e643", "score": "0.6010087", "text": "void setStatus(String status);", "title": "" }, { "docid": "b488fdb5cd8669e57ed65ee21bd60517", "score": "0.6006346", "text": "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "b488fdb5cd8669e57ed65ee21bd60517", "score": "0.6006346", "text": "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "b488fdb5cd8669e57ed65ee21bd60517", "score": "0.6006346", "text": "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "b488fdb5cd8669e57ed65ee21bd60517", "score": "0.6006346", "text": "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "e54a53ec9363989b99c5426f29bcd799", "score": "0.5984931", "text": "public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}", "title": "" }, { "docid": "a6f4249796233d5da0afeb946653dc3b", "score": "0.59848714", "text": "public void setStatus(Status status) {\n this.status = status;\n }", "title": "" }, { "docid": "da11444f0df5f42001691d4c06ce514b", "score": "0.59680283", "text": "@Test (expected = IllegalArgumentException.class)\n\tpublic void testSetAcceptStatusToNotZeroOrOne() {\n\t\tmanuscript2.setAcceptStatus(4);\n\t}", "title": "" }, { "docid": "05a38d42327cf71428c371558e0a8da7", "score": "0.5959708", "text": "public void setStatus(java.lang.String status){\n this.status = status;\n }", "title": "" }, { "docid": "8936bff80f0cd17f3ec089b44e89ffad", "score": "0.5951536", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "e9675ccf3c3c920dfeecb2b94d3fa8d2", "score": "0.5949762", "text": "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "title": "" }, { "docid": "c4f1edede93b1bf23f7162a64425b214", "score": "0.5945052", "text": "@Override\n\tpublic void setStatus(int status) {\n\t\t_issue.setStatus(status);\n\t}", "title": "" }, { "docid": "e2f1dcfe831936b32985b908b4dfcb95", "score": "0.59424967", "text": "public void setStatus(Status status) {\n this.status = status;\n }", "title": "" }, { "docid": "e2f1dcfe831936b32985b908b4dfcb95", "score": "0.59424967", "text": "public void setStatus(Status status) {\n this.status = status;\n }", "title": "" }, { "docid": "f46c52eae4c018e6813c9fb0bcd16273", "score": "0.59340405", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "f46c52eae4c018e6813c9fb0bcd16273", "score": "0.59340405", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "a8fcb4fc31526a0e47f6dc475c5bd6c6", "score": "0.5927494", "text": "public void setStatus(Byte status) {\n this.status = status;\n }", "title": "" }, { "docid": "7f105d5394fef3118caee5dcf68353b4", "score": "0.59199065", "text": "public void setStatus(int status) {\n this.status = (byte) (status & 0xFF); // Least significant \"byte\";\n }", "title": "" }, { "docid": "acf05e6afb6aac9b5c86ff80f2c7ae0e", "score": "0.59159505", "text": "public void setStatus(Status status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "69c1abe1666e60207da1e9346865697a", "score": "0.5915619", "text": "public void setStatus(@NotNull String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2b7b3cb2254ec4d18bab6711e7c27f89", "score": "0.5913842", "text": "public void setStatus(Status status) {\n _status = status;\n }", "title": "" }, { "docid": "9d7a30de233d8415270b75f090ea1938", "score": "0.59082246", "text": "public void setStatus(Status status) {\n attempts.get(currentAttemptIndex()).setStatus(status);\n }", "title": "" }, { "docid": "5cec52b2e909927b0560cc614482e7ad", "score": "0.5902703", "text": "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "title": "" }, { "docid": "5cec52b2e909927b0560cc614482e7ad", "score": "0.5902703", "text": "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "title": "" }, { "docid": "5cec52b2e909927b0560cc614482e7ad", "score": "0.5902703", "text": "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "2e9da6e19a6739f0a5b5d833e817631e", "score": "0.58975756", "text": "public void setStatus(String status) {\n this.status = status;\n }", "title": "" } ]
68de41a16cb91ce01c3b8c1ac5d25d58
Get the number of the paragraph.
[ { "docid": "70f5427319515bd5d6b83aecb4a6afa6", "score": "0.783656", "text": "public int getParagraphNumber() { \n return(this.paragraphNumber); \n }", "title": "" } ]
[ { "docid": "c878f46b6adb1295ec28123fdbc95b53", "score": "0.64389414", "text": "public int getNo() {\n \treturn textNo;\n }", "title": "" }, { "docid": "8dfe7fa95ac81c89bb0b58b72f1e53da", "score": "0.63781446", "text": "public int getNumTexts (){\n return numTexts;\n }", "title": "" }, { "docid": "d610e0b9932ff7796408d4aeb505956d", "score": "0.6332972", "text": "public int ReflowGetCharCount( int iparagraph )\n\t{\n\t\tif( iparagraph < 0 || iparagraph >= reflowGetParaCount( hand ) ) return 0;\n\t\treturn reflowGetCharCount( hand, iparagraph );\n\t}", "title": "" }, { "docid": "d0a2b70c949567efa0b0e50d6139f473", "score": "0.62811834", "text": "public Integer getPageNumber()\n {\n return getPageNumber(index);\n }", "title": "" }, { "docid": "9afa4dc9383eb9dc4c0f179dd6305261", "score": "0.62206256", "text": "public int getNumSeqPagEnt() {\n return numSeqPagEnt;\n }", "title": "" }, { "docid": "e8ca655f73f5f2eae1db64426035d57a", "score": "0.61825013", "text": "public int getNoteCount();", "title": "" }, { "docid": "0d3c92f2b404f5e66dc8a1f95be7a725", "score": "0.6177529", "text": "Paragraph getText();", "title": "" }, { "docid": "dded7d1769448ca986ff8786c9c16b85", "score": "0.6105335", "text": "public int getNumber() {\n\t\tif (number < 1) {\n\t\t\tthrow new IllegalStateException(\"Page number has not been set for this page yet\");\n\t\t}\n\t\treturn number;\n\t}", "title": "" }, { "docid": "e508cf4c5345b6698e1efa0e0c02e0ec", "score": "0.6049851", "text": "int getArticleNumber();", "title": "" }, { "docid": "2e137c7a1736d2569e641af3819a77b1", "score": "0.6025548", "text": "public int domGetNumberElement() throws RTException;", "title": "" }, { "docid": "51d4289196159ecb32db11b5bb6a840c", "score": "0.5976519", "text": "public int getTotalText() {\n return totalText;\n }", "title": "" }, { "docid": "ca132be02ca570c9cfbbd00528b50a3e", "score": "0.5970518", "text": "public int getNumber(){\n if(type == 1 && text.length() > 0){\n return Integer.parseInt(text);\n }else{\n return 0;\n }\n }", "title": "" }, { "docid": "1ed58d827ab82c57fd75f08087ad56d6", "score": "0.5935249", "text": "public int getPageNumber() {\n return pageNumber;\n }", "title": "" }, { "docid": "1ed58d827ab82c57fd75f08087ad56d6", "score": "0.5935249", "text": "public int getPageNumber() {\n return pageNumber;\n }", "title": "" }, { "docid": "1ed58d827ab82c57fd75f08087ad56d6", "score": "0.5935249", "text": "public int getPageNumber() {\n return pageNumber;\n }", "title": "" }, { "docid": "f89132037fbf30ecd1abe60c81b1a79b", "score": "0.5921612", "text": "public int getPageNumber() {\r\n\t\treturn pageNumber;\r\n\t}", "title": "" }, { "docid": "d60a79c956703401472235bf04a58aa1", "score": "0.5905438", "text": "public int getNumDocumento() {\n return numDocumento;\n }", "title": "" }, { "docid": "092a0902e7789b19a9f61b0dfb3756b9", "score": "0.5894119", "text": "public Integer getPageNumber() {\n\t\treturn pageNumber;\n\t}", "title": "" }, { "docid": "9959e870d61cfcffcc90b17cb61aed41", "score": "0.58895004", "text": "public int getNum() {\r\n\t\treturn num;\r\n\t}", "title": "" }, { "docid": "1c5493fda9638c6074e357bc626165f3", "score": "0.5880416", "text": "int getCommentNum();", "title": "" }, { "docid": "9d455c2382d29efb721586ac42fab3db", "score": "0.5875421", "text": "public int getNum() {\n\t\treturn num;\n\t}", "title": "" }, { "docid": "cc2273cf465ba9a81104d07eab82b1d6", "score": "0.5863631", "text": "public final int GetPageNo()\n\t{\n\t\treturn m_pageno;\n\t}", "title": "" }, { "docid": "eaf67dcd9906898baa9013b4562c6b9c", "score": "0.58330876", "text": "public int getPageNumber() {\n\t\treturn mPageNumber;\n\t}", "title": "" }, { "docid": "eaf67dcd9906898baa9013b4562c6b9c", "score": "0.58330876", "text": "public int getPageNumber() {\n\t\treturn mPageNumber;\n\t}", "title": "" }, { "docid": "7a98df60b50fd487f7d7b3c693768044", "score": "0.58272845", "text": "public String getPosNum(){\n int i = name.indexOf(\" \");\n posNum = name.substring(0, i);\n\n return posNum;\n }", "title": "" }, { "docid": "a01e7830a8e999330f03d5bc0793ba97", "score": "0.58258003", "text": "public int getNum() {\n return num_;\n }", "title": "" }, { "docid": "a01e7830a8e999330f03d5bc0793ba97", "score": "0.58258003", "text": "public int getNum() {\n return num_;\n }", "title": "" }, { "docid": "f4107e053a5c29ae0286cd44c908f7b4", "score": "0.58199793", "text": "public int getNum() {\n return num_;\n }", "title": "" }, { "docid": "f4107e053a5c29ae0286cd44c908f7b4", "score": "0.58199793", "text": "public int getNum() {\n return num_;\n }", "title": "" }, { "docid": "0906dfe0244e05ca3f73c8a23f2ef99a", "score": "0.5812541", "text": "public int getNumPagesTextSegment() {\n return numPagesTextSegment;\n }", "title": "" }, { "docid": "cd3ba2aca97c852df3286561d4e9e5ee", "score": "0.57872987", "text": "public int getPageNumber() {\n return mPageNumber;\n }", "title": "" }, { "docid": "cd3ba2aca97c852df3286561d4e9e5ee", "score": "0.57872987", "text": "public int getPageNumber() {\n return mPageNumber;\n }", "title": "" }, { "docid": "cd3ba2aca97c852df3286561d4e9e5ee", "score": "0.57872987", "text": "public int getPageNumber() {\n return mPageNumber;\n }", "title": "" }, { "docid": "f9f14dcbe9947fdb10e8763b4e5f73b7", "score": "0.5785038", "text": "public Integer getPageNumber() {\n\t return this.pageNumber;\n\t}", "title": "" }, { "docid": "7a721c596e379627c44a842f026f8b85", "score": "0.57747716", "text": "public int getLineNumber () {\n try {\n return pos.getLine ();\n } catch (IOException ex) {\n // what else?\n return 0;\n }\n }", "title": "" }, { "docid": "f4c79ea5c22d96500fb67350dc5e51f3", "score": "0.5773936", "text": "public int ReflowGetParaCount()\n\t{\n\t\treturn reflowGetParaCount( hand );\n\t}", "title": "" }, { "docid": "b697b56b6f547c31c19f213ab2ed2bc3", "score": "0.5771191", "text": "public int getNum() {\n return this.num;\n }", "title": "" }, { "docid": "40e121ef21b702977ebc8e6f898344a6", "score": "0.57479703", "text": "java.lang.String getDocumentNumber();", "title": "" }, { "docid": "d4fd71526abfc64b35e9a6b45a62c662", "score": "0.5747886", "text": "public int getNumSeqPagSai() {\n return numSeqPagSai;\n }", "title": "" }, { "docid": "6139f5ce43c20705629f4557cc041195", "score": "0.5745897", "text": "public int GetAnnotCount()\n\t{\n\t\treturn getAnnotCount( hand );\n\t}", "title": "" }, { "docid": "4cdbbd7b02158c5b62fcdac46001717f", "score": "0.5742715", "text": "int getLineCount();", "title": "" }, { "docid": "4cdbbd7b02158c5b62fcdac46001717f", "score": "0.5742715", "text": "int getLineCount();", "title": "" }, { "docid": "a68a16d021116fa5e16adf7d6ad48253", "score": "0.57325685", "text": "public String getPageNumber() {\n return (String)getAttributeInternal(PAGENUMBER);\n }", "title": "" }, { "docid": "9926b75f1dbbc030bb49f960c248cc02", "score": "0.5730369", "text": "public int getPelletsNum() {\n return this.pellets.size();\n }", "title": "" }, { "docid": "f60e44b059d22a95dc2b65ab045e5ca9", "score": "0.5728048", "text": "public int getNumber() {\n return numOfPizzas;\n }", "title": "" }, { "docid": "5b7e45609b4da7df42f4fc3bc71e87cf", "score": "0.57278377", "text": "public int getNum() {\n return num;\n }", "title": "" }, { "docid": "e7b60357bd971958bf0259e056227d45", "score": "0.571856", "text": "public double pidGet() \n\t\t{\t\n\t\t\treturn getPosition();\n\t\t}", "title": "" }, { "docid": "c5faddc4ba723505f16b7e313f961acf", "score": "0.57113165", "text": "public int getNum()\n {\n return num;\n }", "title": "" }, { "docid": "3b89970efee74ec14193344fdcaa546f", "score": "0.5707932", "text": "public int getNumero() {\n\t\treturn numero;\n\t}", "title": "" }, { "docid": "3b89970efee74ec14193344fdcaa546f", "score": "0.5707932", "text": "public int getNumero() {\n\t\treturn numero;\n\t}", "title": "" }, { "docid": "91a1b56ca6733a846c6bfe860bc8e7eb", "score": "0.5707884", "text": "public int getWordsNum(){\n\t\treturn this.wordsNum;\n\t}", "title": "" }, { "docid": "be4e0dc8ae1c0838c915c315cb1bf4a8", "score": "0.5705936", "text": "public int getNumberOfDocuments() {\n return mLines.size();\n }", "title": "" }, { "docid": "30fc439314b33e321a2cd44d5aefc14b", "score": "0.57048166", "text": "public int getCount_p() {\n return count_p;\n }", "title": "" }, { "docid": "5c0f9bc7d684c701675715aff7fd8a9f", "score": "0.5701764", "text": "public int getNumber() {\n\t\t\treturn number;\n\t\t}", "title": "" }, { "docid": "61754181f93139d859e7aac4ed817ca5", "score": "0.5698358", "text": "public int getNoteNumber() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "df8e4044f43e0068eb38d788d0e037b0", "score": "0.56914055", "text": "@java.lang.Override\n public long getNum() {\n return num_;\n }", "title": "" }, { "docid": "df8e4044f43e0068eb38d788d0e037b0", "score": "0.56914055", "text": "@java.lang.Override\n public long getNum() {\n return num_;\n }", "title": "" }, { "docid": "ff8685556ef459438f13c1e9b555af8c", "score": "0.5683349", "text": "public int numberOfLines()\n {\n return this.lines.size();\n }", "title": "" }, { "docid": "d815828c893143d1aada927712283fa3", "score": "0.5675533", "text": "public Long get_numpol() throws Exception {\n\t\treturn this.numpol;\n\t}", "title": "" }, { "docid": "cbc31c08c465812bf43dd5811f9fc6f4", "score": "0.5671772", "text": "public int getNumConta() {\n\t\treturn numConta;\n\t}", "title": "" }, { "docid": "8ae8c6a2276037abf07772a79b849025", "score": "0.5669758", "text": "private int numLines() {\n\t\t\n\t\tint lines = 1;\n\t\t\n\t\tfor (int i = 0; i < content.length()-1; i++) {\n\t\t\tif (content.charAt(i) == '\\n') {\n\t\t\t\tlines ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lines;\n\t\t\n\t\t// your code here\n\t}", "title": "" }, { "docid": "3e133b659662c4267dd4ef6ea8b85410", "score": "0.56634814", "text": "public int getNumber()\n\t{\n\t\treturn number;\n\t}", "title": "" }, { "docid": "2be40a7d9a29c6685f33a678d7802f34", "score": "0.5650408", "text": "public Short getnNumtipodoc() {\n return nNumtipodoc;\n }", "title": "" }, { "docid": "2ca8551b24dc884c90fec09b27169310", "score": "0.564966", "text": "public Long getPageNumber() {\r\n\t\treturn pageNumber;\r\n\t}", "title": "" }, { "docid": "22a2272d5ec0c743eb65e30170a5cbb5", "score": "0.56474715", "text": "public int getLineCount() {\n return lineCount;\n }", "title": "" }, { "docid": "1deef4c33676dae64a381279173b7eb4", "score": "0.56442356", "text": "public int getNumber() {\r\n\t\treturn number;\r\n\t}", "title": "" }, { "docid": "97cc1f16416542b064eeaa7a0e0702ca", "score": "0.56418544", "text": "public int getNumber() {\n\t\treturn number;\n\t}", "title": "" }, { "docid": "b9ee874f70a18689de3336c2ed12bcc7", "score": "0.56373066", "text": "@java.lang.Override\n public long getNum() {\n return num_;\n }", "title": "" }, { "docid": "b9ee874f70a18689de3336c2ed12bcc7", "score": "0.563676", "text": "@java.lang.Override\n public long getNum() {\n return num_;\n }", "title": "" }, { "docid": "d9f1a204634ccd96fedd3d4769d4e22c", "score": "0.56271315", "text": "public java.lang.Long getPosNum() {\r\n\t\treturn posNum;\r\n\t}", "title": "" }, { "docid": "e6abfe8d5f959306cb13b1826cd5c2c1", "score": "0.56243336", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "e6abfe8d5f959306cb13b1826cd5c2c1", "score": "0.5623978", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "de395e924dff5d0a383d4649e9f9401d", "score": "0.56137174", "text": "public int numOfLines() {\n return lines;\n\n }", "title": "" }, { "docid": "37262d0817a9984dbb45c8e3b7d48c97", "score": "0.56131095", "text": "public int getNumber() {\n\t\treturn this.number;\n\t}", "title": "" }, { "docid": "b049725158c05279d31e3ede9b81f039", "score": "0.5606625", "text": "public int getChapterNumber(XMLObject xml)\n\t{\n\t\tString title = xml.getAttribute(CHAPTER_NUMBER_ATTRIBUTE, \"*Error no \" + CHAPTER_NUMBER_ATTRIBUTE + \" attribute*\");\n\t\t\n\t\t// Find the last space\n\t\tint spaceIndex = title.lastIndexOf(' ');\n\t\t\n\t\treturn Integer.parseInt(title.substring(spaceIndex + 1));\n\t}", "title": "" }, { "docid": "78e0e25fe71f8656adcc1de81932ba94", "score": "0.5605069", "text": "public String getParagraphText(int index) {\n return getText(getParagraph(index));\n }", "title": "" }, { "docid": "090b4e52ab44d5da6d77fe8720f42fda", "score": "0.56018186", "text": "@Override\n public String getNumber() {\n return elements.get(1).getText().trim();\n }", "title": "" }, { "docid": "fbb91df53c7bcf1d4a31002e344d6cbf", "score": "0.5594687", "text": "public int getN() {\n\t\treturn _n;\n\t}", "title": "" }, { "docid": "1cc96142d0fc1db840ddc1947615cc82", "score": "0.5593419", "text": "public int getLineCount() {\r\n\t\treturn lineCount;\r\n\t}", "title": "" }, { "docid": "a2c320a072bd05b2fbe1a76b156df59b", "score": "0.55919534", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "2135e8f54fef6115474a373c0371c202", "score": "0.5589029", "text": "public int getLineCount()\n\t{\n\t\treturn lineCount;\n\t}", "title": "" }, { "docid": "5947e89b6e95b9423de3d10623622d65", "score": "0.55843663", "text": "int getCommentCnt();", "title": "" }, { "docid": "faf0585d36d52f061642fdf3c381f502", "score": "0.5570822", "text": "public int getLineNumber( )\n {\n return _nLineNumber;\n }", "title": "" }, { "docid": "1195f3f42a3f045963fb663fc064bcc5", "score": "0.5564099", "text": "public java.lang.Integer getNumRepeticion() {\n\t\treturn numRepeticion;\n\t}", "title": "" }, { "docid": "9284b28060e35229b82d08763033f9e0", "score": "0.5563992", "text": "public int getnumberOfPage(){\r\n\t\treturn numberOfPage;\r\n\t}", "title": "" }, { "docid": "0bd0608b05a626d921f1a2332b1f3512", "score": "0.55632824", "text": "public int getNumero() {\r\n return numero;\r\n }", "title": "" }, { "docid": "a6f7b04aa0ee214f21f811d1b62ce3f4", "score": "0.5554158", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "a6f7b04aa0ee214f21f811d1b62ce3f4", "score": "0.5554158", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "1e090763c913979cf831e05136bc8fb1", "score": "0.5550639", "text": "public int getNumber() {\n return number_;\n }", "title": "" }, { "docid": "6579f9bccdbe59b42c5000c9428af38f", "score": "0.5549981", "text": "int getNumberOfWords();", "title": "" }, { "docid": "93d37519314b34159c70ef1d33e963b7", "score": "0.55491924", "text": "public long getNumber(){\n if (this.blockNumber >= 0) {\n return this.blockNumber;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "ec62dfd0d76870eae29fb260f6ab123f", "score": "0.554657", "text": "public int length() {\n return n;\n }", "title": "" }, { "docid": "b2a5e5f4df252f1d547d6839c2dffdbc", "score": "0.55431074", "text": "public int getN() {\n return this.n;\n }", "title": "" }, { "docid": "92cd0575edc29c529641dfae88df26cf", "score": "0.5538648", "text": "public int getLineCount() {\n \t\tIRegion region= getSourceViewer().getVisibleRegion();\n \n \t\tint length= region.getLength();\n \t\tif (length == 0)\n \t\t\treturn 0;\n \t\t\n \t\tIDocument doc= getSourceViewer().getDocument();\n \t\tint startLine= 0;\n \t\tint endLine= 0;\n \n \t\tint start= region.getOffset();\n \t\ttry {\n \t\t\tstartLine= doc.getLineOfOffset(start);\n \t\t} catch(BadLocationException ex) {\n \t\t\t// silently ignored\n \t\t}\n \t\ttry {\n \t\t\tendLine= doc.getLineOfOffset(start+length);\n \t\t} catch(BadLocationException ex) {\n \t\t\t// silently ignored\n \t\t}\n \t\t\n \t\treturn endLine-startLine+1;\n \t}", "title": "" }, { "docid": "8c5f222421c1f039a76a1f79fe05ce54", "score": "0.5521172", "text": "protected /*C#virtual*/ int pageSize()\n {\n int height = this.height - getTop() - getBottom();\n LwTextRender render = getTextRender();\n int indent = render.getLineIndent();\n int textHeight = render.getLineHeight();\n return (height + indent)/(textHeight + indent) +\n (((height + indent)%(textHeight + indent)>indent)?1:0);\n }", "title": "" }, { "docid": "dd8e62e8dac0658164aacedb9c57722a", "score": "0.5519472", "text": "private int getNumber() {\n\t\tchar nextChar;\n\t\tdo\n\t\t{\n\t\t\tnextChar = exprStr.charAt(currPos);\n\t\t\tcurrPos++;\n\t\t}\n\t\twhile (nextChar == ' ' || nextChar == '\\t');\n\t\tcurrPos--;\n\t\treturn evaluateDigits();\n\t}", "title": "" }, { "docid": "21b678fefa16bce814d84760419ee1e3", "score": "0.55135727", "text": "public Integer getNum() {\n return num;\n }", "title": "" }, { "docid": "21b678fefa16bce814d84760419ee1e3", "score": "0.55135727", "text": "public Integer getNum() {\n return num;\n }", "title": "" }, { "docid": "21b678fefa16bce814d84760419ee1e3", "score": "0.55135727", "text": "public Integer getNum() {\n return num;\n }", "title": "" }, { "docid": "eb54829e9da8063d5ccc886264bcdf56", "score": "0.55127054", "text": "public int getSeqNo() {\n\t\tInteger ii = (Integer) get_Value(\"SeqNo\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" } ]
43cb9907568b9bb3825e188463da1196
Test case number: 15 /Coverage entropy=2.7588432032234995
[ { "docid": "7250b1d795065e13ae8a9fae5e3ae50b", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertNotNull(textDirectoryLoader0);\n \n Instances instances0 = textDirectoryLoader0.getStructure();\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertNotNull(instances0);\n \n String string0 = textDirectoryLoader0.getRevision();\n assertEquals(\"8034\", string0);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertNotNull(string0);\n \n instances0.stratify(1003);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertNotNull(evaluation0);\n \n MockRandom mockRandom0 = new MockRandom(1003);\n assertNotNull(mockRandom0);\n \n LongStream longStream0 = mockRandom0.longs();\n assertNotNull(longStream0);\n \n Instances instances1 = instances0.resampleWithWeights((Random) mockRandom0);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\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.numInstances());\n assertNotNull(instances1);\n assertTrue(instances1.equals((Object)instances0));\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances0);\n \n String string1 = 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\", string1);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertNotNull(string1);\n assertTrue(instances0.equals((Object)instances1));\n assertFalse(string1.equals((Object)string0));\n assertNotSame(instances0, instances1);\n \n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertNotSame(instances0, instances1);\n \n double double1 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double1, 0.01);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertNotEquals(double1, double0, 0.01);\n assertNotSame(instances0, instances1);\n \n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n assertEquals(\"If set to true, classifier may output additional info to the console.\", naiveBayesMultinomial0.debugTipText());\n assertFalse(naiveBayesMultinomial0.getDebug());\n assertNotNull(naiveBayesMultinomial0);\n \n MockRandom mockRandom1 = new MockRandom();\n assertNotNull(mockRandom1);\n assertFalse(mockRandom1.equals((Object)mockRandom0));\n \n MockRandom mockRandom2 = new MockRandom((-3653L));\n assertNotNull(mockRandom2);\n assertFalse(mockRandom2.equals((Object)mockRandom1));\n assertFalse(mockRandom2.equals((Object)mockRandom0));\n \n Object[] objectArray0 = new Object[7];\n objectArray0[0] = (Object) \"8034\";\n objectArray0[1] = (Object) mockRandom0;\n Instances instances2 = textDirectoryLoader0.getStructure();\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0, instances2.numInstances());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(1, instances2.classIndex());\n assertEquals(0, instances2.numClasses());\n assertNotNull(instances2);\n assertTrue(instances2.equals((Object)instances1));\n assertSame(instances2, instances0);\n assertNotSame(instances2, instances1);\n \n Evaluation evaluation1 = new Evaluation(instances2);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0, instances2.numInstances());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(1, instances2.classIndex());\n assertEquals(0, instances2.numClasses());\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 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 assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertNotNull(evaluation1);\n assertTrue(instances2.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n \n char[] charArray0 = new char[4];\n charArray0[0] = 'p';\n charArray0[1] = '#';\n charArray0[2] = '@';\n charArray0[3] = 'H';\n String string2 = evaluation0.num2ShortID(2419, charArray0, 853);\n assertEquals(\" #pp#HH\", string2);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertNotNull(string2);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n assertEquals(4, charArray0.length);\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(evaluation0, evaluation1);\n assertArrayEquals(new char[] {'p', '#', '@', 'H'}, charArray0);\n \n double double2 = evaluation0.numTruePositives(1257);\n assertEquals(0.0, double2, 0.01);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 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.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 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.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 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.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertNotEquals(double2, double0, 0.01);\n assertEquals(double2, double1, 0.01);\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(evaluation0, evaluation1);\n \n double double3 = evaluation1.SFMeanEntropyGain();\n assertEquals(Double.NaN, double3, 0.01);\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(\"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 assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0, instances2.numInstances());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(1, instances2.classIndex());\n assertEquals(0, instances2.numClasses());\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 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 assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertTrue(instances2.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertNotEquals(double3, double1, 0.01);\n assertEquals(double3, double0, 0.01);\n assertNotEquals(double3, double2, 0.01);\n assertSame(instances2, instances0);\n assertNotSame(instances2, instances1);\n assertNotSame(evaluation1, evaluation0);\n }", "title": "" } ]
[ { "docid": "7d99c3d84d6525e7048774bb0c237e52", "score": "0.70353997", "text": "@Test(timeout = 4000)\n public void test090() 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(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "10a1e7c152bc8e17d3295af08f711ede", "score": "0.69800055", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "976eedd7fb7dc305e6bf8bfae02f1546", "score": "0.6936804", "text": "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC(491);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "8f358d83cc71605967eefe5b44f916ab", "score": "0.67677194", "text": "@Test(timeout = 4000)\n public void test117() 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 evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "4a88c3d65fa70711e93b640fb0220ba3", "score": "0.6756113", "text": "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "40be1b2619938f96af793d89b4318f1b", "score": "0.67453194", "text": "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "aca300ffed7492f4d932f3d22f88d5c1", "score": "0.66984767", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.getRevision();\n assertEquals(\"9101\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "7a9e7cadc80b919b5c6165f188244abd", "score": "0.66788465", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_SumPriorEntropy = 1.7976931348623157E308;\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(1.7976931348623157E308, double0, 0.01);\n }", "title": "" }, { "docid": "f7852d38b02a9abaccfc9650d9d5fefc", "score": "0.6675497", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "325a69a6c519b481d9552093def852d0", "score": "0.6666411", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "ac05015957ddebbac7130d8d0dad1ce9", "score": "0.66622555", "text": "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "8653f3cef4d39e8033bf677a6738eb47", "score": "0.6637664", "text": "@Test(timeout = 4000)\n public void test102() 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 assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "708a3fc1b1e04e4473759df89a6a3118", "score": "0.6572812", "text": "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "49d7ab364663611caf450a1fc395e4e0", "score": "0.6559549", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "622203f32551156ca41f1a0a9cb3758d", "score": "0.65020967", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "768500677b5e80bca4a848cce1dfb3d8", "score": "0.64861107", "text": "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".bsi\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\".bsi\\nTotal Number of Instances 0 \\n\", string0);\n }", "title": "" }, { "docid": "36eb7a33a0df05e1bf40ec3d6ade47ef", "score": "0.64518017", "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 evaluation0.m_SumPriorEntropy = 1.7976931348623157E308;\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(1.7976931348623157E308, double0, 0.01);\n }", "title": "" }, { "docid": "553ed1fe6c6d43333d62174043bc0fcd", "score": "0.6442894", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall(507);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "68f045dbdf8714bb086b03181e2aadcd", "score": "0.643793", "text": "@Test(timeout = 4000)\n public void test023() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"@data\");\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c8dc1a88411beb9b3b2c679e63726832", "score": "0.6423154", "text": "@Test(timeout = 4000)\n public void test076() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "9d80b631d626920050a8f2a20eeec8b2", "score": "0.64166886", "text": "@Test(timeout = 4000)\n public void test101() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "30d207cab3e6d193e6cfc59e85b05a10", "score": "0.64137673", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n JRip jRip0 = new JRip();\n Utils.SMALL = 522.29199;\n int int0 = jRip0.getFolds();\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n assertFalse(jRip0.getDebug());\n assertEquals(3, int0);\n }", "title": "" }, { "docid": "f7bc37dd967c0e73ed4ced4d8d3746dd", "score": "0.64041674", "text": "@Test(timeout = 4000)\n public void test123() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "b6e4fd041876b7507a3da5d9ad2e9360", "score": "0.6400666", "text": "public void testEntropy() {\n\t\tint[][] tempMatrixForEntropy = {{0, 0, 0, 0, 0, 0}, {0, 0, 0, 0,0, 0}, {1,0, 0, 0,0, 1},{0, 0, 0, 0, 0, 0}, {0, 0, 0, 0,0, 0}, {1,0, 0, 0,0, 1}};\n\t\tdouble tempEntropy = conditionalEntropyForDataset(tempMatrixForEntropy);\n\t\tSystem.out.println(\"The entropy is: \" + tempEntropy);\n\t}", "title": "" }, { "docid": "014112736532feb995aa79723e34b0f0", "score": "0.6377865", "text": "@Test(timeout = 4000)\n public void test079() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "734e2a0290b4fa91640e5a826da78b65", "score": "0.63764733", "text": "@Test(timeout = 4000)\n public void test078() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "f824943f2cda36e85686303261ea3de3", "score": "0.6370798", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "67bc6ef3e6fe592cef944259e93f4db7", "score": "0.6369247", "text": "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "db4231cc142fee17d7c4389cc02317f8", "score": "0.6355154", "text": "@Test(timeout = 4000)\n public void test105() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "c2b87c38929cf8b5ccf14f03d75a22e9", "score": "0.63420045", "text": "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".bsi\", false);\n assertEquals(\".bsi\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "3cd414b47b63174cc3730d120d2aa47c", "score": "0.6327446", "text": "@Test(timeout = 4000)\n public void test097() 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, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "944e0981156d6771b18f04ed299c23c1", "score": "0.63239753", "text": "@Test(timeout = 4000)\n public void test080() 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 assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "0663464b70cdca6ec91c0e879f7ec201", "score": "0.63133985", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "2e562acaa911e4361eb594deb381cb39", "score": "0.6311563", "text": "@Test(timeout = 4000)\n public void test075() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "title": "" }, { "docid": "9b26e10bfc843df86629b21ad2360460", "score": "0.6308579", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision((-680));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "84ab9667bdc1dbd636aa58c91f3425e3", "score": "0.6287721", "text": "@Test(timeout = 4000)\n public void test066() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.unweightedMacroFmeasure();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "a5de6b4e6bde668576216b41b8277dcb", "score": "0.62811095", "text": "@Test(timeout = 4000)\n public void test027() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives(0);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "e1d8b14f059e86a1ebc9a60500402e57", "score": "0.6275149", "text": "@Test(timeout = 4000)\n public void test062() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "bbe5cec1cdbcb4653cc9c4f5693082ad", "score": "0.6268543", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"(-inf-\");\n discretize0.getBinRangesString((-3879));\n String string0 = discretize0.useEqualFrequencyTipText();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", string0);\n }", "title": "" }, { "docid": "d9fbfd65798fed61f6567b0f8457812b", "score": "0.62526995", "text": "@Test(timeout = 4000)\n public void test63() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\" rules are deleted\", (List<String>) null);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"string\", arrayList0, 0);\n JRip.NominalAntd jRip_NominalAntd1 = jRip0.new NominalAntd(attribute0);\n instances0.toSummaryString();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n jRip_NominalAntd1.maxInfoGain = (-485.86);\n jRip_NominalAntd1.splitData(instances0, 2, (-5862.3705864289));\n CoverTree coverTree0 = new CoverTree();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"qD)IZ[0}@U\");\n StringReader stringReader0 = new StringReader(\"@attribute\");\n BufferedReader bufferedReader0 = null;\n try {\n bufferedReader0 = new BufferedReader(stringReader0, (-46));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Buffer size <= 0\n //\n verifyException(\"java.io.BufferedReader\", e);\n }\n }", "title": "" }, { "docid": "89fb69e403cd71a0a89eb5c7558856a5", "score": "0.62500477", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "8bab41fb424d6fccb53c05cfd2dbcc7f", "score": "0.6248936", "text": "@Test(timeout = 4000)\n public void test077() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "a2b9050bbc1b7912150083905905b53f", "score": "0.62373185", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize();\n FileSystemHandling.shouldAllThrowIOExceptions();\n discretize0.setFindNumBins(true);\n discretize0.m_NumBins = (-2058005160);\n discretize0.getRevision();\n discretize0.setBins((-117));\n String[] stringArray0 = discretize0.getOptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n discretize0.setOutputFormat();\n discretize0.setOptions(stringArray0);\n assertTrue(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "8ac06656c154b8035304add2ed72d26e", "score": "0.6212594", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.truePositiveRate(507);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "8d7046a3ef9d4e43bf989fb6c994da8c", "score": "0.619235", "text": "@Test(timeout = 4000)\n public void test099() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(3);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "e511b9b17fa9c016fbf3c9dae94d78fb", "score": "0.6192039", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.getOptions();\n discretize0.m_IgnoreClass = true;\n discretize0.m_NumBins = 0;\n discretize0.setOutputFormat();\n String[] stringArray0 = new String[9];\n discretize0.getInvertSelection();\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n discretize0.setBins(0);\n stringArray0[3] = \"`\";\n stringArray0[4] = \"\";\n stringArray0[5] = \"\";\n stringArray0[6] = \"aGzCE0uQ3*:}V_:O\";\n stringArray0[7] = \"\";\n stringArray0[8] = \"\";\n discretize0.setOptions(stringArray0);\n String[] stringArray1 = new String[1];\n stringArray1[0] = \"\";\n Discretize.main(stringArray1);\n int int0 = 0;\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(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": "d56f313242e64ec180cedc9e89a3f77c", "score": "0.61909705", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "9a769c96f3e0535e65831fdeabef63a1", "score": "0.6176801", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"(c_^7M0;NY,BJ\");\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOutputFormat();\n discretize0.getInvertSelection();\n int int0 = (-3382);\n discretize0.setBins((-3382));\n discretize0.setOptions(stringArray0);\n Discretize.main(stringArray0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(104);\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": "0d7bd1581309ca2dc92bc5c76f2b1c05", "score": "0.61703384", "text": "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "916b0b8ae20c89cf3e139aa70c2604a6", "score": "0.616573", "text": "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalsePositives(510);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "ef65659921218c91ff117790dc570f01", "score": "0.6160301", "text": "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.truePositiveRate((-2027));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "079b62690f6837f152e99041258ae827", "score": "0.6112969", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision(10);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "56f4dc763a09a0f3096977c3dc687b08", "score": "0.6100489", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n textDirectoryLoader0.getRevision();\n instances0.stratify(1003);\n Evaluation evaluation0 = new Evaluation(instances0);\n MockRandom mockRandom0 = new MockRandom(1003);\n mockRandom0.longs();\n instances0.resampleWithWeights((Random) mockRandom0);\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 \n evaluation0.KBMeanInformation();\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n \n textDirectoryLoader0.getStructure();\n evaluation0.setPriors(instances0);\n String[] stringArray0 = new String[0];\n TextDirectoryLoader.main(stringArray0);\n IBk iBk0 = new IBk((-3286));\n JRip jRip0 = new JRip();\n AbstractClassifier.runClassifier(jRip0, stringArray0);\n textDirectoryLoader0.setOutputFilename(true);\n Evaluation.getGlobalInfo(iBk0);\n AbstractClassifier.makeCopies(iBk0, 4384);\n evaluation0.weightedFMeasure();\n iBk0.setKNN(4384);\n Evaluation.makeOptionString(iBk0, true);\n evaluation0.SFSchemeEntropy();\n evaluation0.setPriors(instances0);\n evaluation0.numTruePositives(0);\n String string1 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string1);\n \n evaluation0.recall((-1106));\n evaluation0.toSummaryString(true);\n evaluation0.numFalseNegatives(11);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n }", "title": "" }, { "docid": "e9c19ae71ece6ea2ccc9a0cbef5b65ac", "score": "0.6054017", "text": "@Test\n public void testExponentialSampling() {\n\n double lambda = .5;\n ExponentialGenerator exp = new ExponentialGenerator(new MTRandom(),\n lambda);\n int nWarmupSamples = 10;\n double meanAccuracy = .05;\n double quantile = .95;\n double quantileAccuracy = .05;\n\n StatisticsCollection statCollection = new StatisticsCollection();\n\n Statistic stat = new Statistic(statCollection, StatName.SOJOURN_TIME,\n nWarmupSamples, meanAccuracy, quantile, quantileAccuracy);\n stat.setOtherStatsWarmed(true);\n while (!stat.isConverged()) {\n stat.addSample(exp.next());\n }\n\n double tolerance = .05;\n double expectedValue = 2;\n double actualValue = stat.getAverage();\n assertEquals(expectedValue, actualValue, tolerance * expectedValue);\n\n tolerance = .05;\n expectedValue = -Math.log(1 - .95) / lambda;\n actualValue = stat.getQuantile(.95);\n assertEquals(expectedValue, actualValue, tolerance * expectedValue);\n\n tolerance = .05;\n expectedValue = 1.0 - Math.exp(-lambda * 2);\n actualValue = stat.getCdfValue(2);\n assertEquals(expectedValue, actualValue, tolerance * expectedValue);\n }", "title": "" }, { "docid": "7449c5e88fe0062515cbcb7dd5998187", "score": "0.6037422", "text": "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.relativeAbsoluteError();\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "8acab64fe36f787d8bb825827ee0e743", "score": "0.6032132", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedFalseNegativeRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "37c70febeceb0bd1e62c52f9c98b2146", "score": "0.6002075", "text": "@Test\n public void testCalculateEntropy() {\n System.out.println(\"Test of calculateEntropy method, of class YearMatch\");\n \n HashMap<String, Double> fixture = new HashMap<>();\n fixture.put(\"1900\", 6.894817763307944);\n fixture.put(\"1982\", 6.894817763307944);\n fixture.put(\"1990\", 6.894817763307944);\n fixture.put(\"1993\", 6.894817763307944);\n fixture.put(\"2000\", 6.894817763307944);\n fixture.put(\"2007\", 6.894817763307944);\n fixture.put(\"2012\", 6.894817763307944);\n fixture.put(\"2016\", 6.894817763307944);\n fixture.put(\"2019\", 6.894817763307944);\n \n // Test the fixture\n for (Map.Entry<String, Double> entry : fixture.entrySet()) {\n String password = entry.getKey();\n double expected = entry.getValue();\n double computed = new YearMatch(password).calculateEntropy();\n Assert.assertEquals(password, expected, computed);\n }\n }", "title": "" }, { "docid": "5199e6475b4a94262acbfcbed06b5648", "score": "0.60008967", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "77b784d5f068871b86a11d5492b9fad8", "score": "0.59977055", "text": "public static void scenario1()\n {\n System.out.println (\"Scenario: Expected result 16.7%\");\n int numTrue = 0;\n int numFalse = 0;\n int count = 100000;\n for (int i = 0; i < count; i++)\n {\n\tint result = (int) Math.floor (Math.random () * 6) + 1;\n\n\tif (result == 6)\n\t {\n\t numTrue++;\n\t }\n\telse\n\t {\n\t numFalse++;\n\t }\n }\n System.out.println (\"Count of True : \" + numTrue);\n System.out.println (\"Count of False : \" + numFalse);\n System.out.println (\"Condition reached \" + ((float) numTrue / (float) count) * 100 + \"%\\n\");\n }", "title": "" }, { "docid": "71558d75770ef96839897d2bbba6512e", "score": "0.5970082", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize();\n int int0 = 2908;\n boolean boolean0 = true;\n discretize0.setUseEqualFrequency(true);\n discretize0.setBins(2908);\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.findNumBins(11);\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": "db107a5714ffe9e42c9409a2b890fc67", "score": "0.5960077", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n JRip.NominalAntd jRip_NominalAntd1 = (JRip.NominalAntd)jRip_NominalAntd0.copy();\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd1.getMaxInfoGain(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "a95d34b903be817e97ddd95fa70d8c56", "score": "0.59545547", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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.getDefaultShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n assertNotNull(resultMatrixPlainText0);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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.getDefaultShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\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.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance2);\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[] intArray0 = new int[0];\n resultMatrixPlainText0.setColOrder(intArray0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance2);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertEquals(0, intArray0.length);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance2));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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.getDefaultShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\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.getColCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertArrayEquals(new int[] {}, intArray0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n }", "title": "" }, { "docid": "6523484591ecdceb509f383dbba57964", "score": "0.5954441", "text": "@Test\n\tpublic void testNumIris() throws IOException {\n\t Assert.assertEquals(\"3.25\", FileUtils.readFileToString(new File(metricsDir, \"degreeAvg\")));//check\n\t Assert.assertEquals(\"7.0\", FileUtils.readFileToString(new File(metricsDir, \"degreeMax\")));//check\n\t Assert.assertEquals(\"2\", FileUtils.readFileToString(new File(metricsDir, \"distinctBnodesObj\")));//check\n\t Assert.assertEquals(\"2\", FileUtils.readFileToString(new File(metricsDir, \"distinctBnodesSub\")));//check\n\t Assert.assertEquals(\"1\", FileUtils.readFileToString(new File(metricsDir, \"distinctDataTypes\")));//check\n\t Assert.assertEquals(\"3\", FileUtils.readFileToString(new File(metricsDir, \"distinctLiteralCount\")));//check\n\t Assert.assertEquals(\"15\", FileUtils.readFileToString(new File(metricsDir, \"distinctObjs\")));//check\n\t Assert.assertEquals(\"8\", FileUtils.readFileToString(new File(metricsDir, \"distinctSubjectCount\")));//check\n\t Assert.assertEquals(\"18\", FileUtils.readFileToString(new File(metricsDir, \"distinctUris\")));//check\n\t Assert.assertEquals(\"10\", FileUtils.readFileToString(new File(metricsDir, \"distinctUrisObj\")));//check\n\t Assert.assertEquals(\"1.5\", FileUtils.readFileToString(new File(metricsDir, \"indegreeAvg\")));//check\n\t Assert.assertEquals(\"1.0\", FileUtils.readFileToString(new File(metricsDir, \"indegreeMedian\")));//check\n\t Assert.assertEquals(\"1.0\", FileUtils.readFileToString(new File(metricsDir, \"indegreeMin\")));//check\n\t \n\t Assert.assertEquals(\"3\", FileUtils.readFileToString(new File(metricsDir, \"numLiterals\")));//check\n\t Assert.assertEquals(\"52\", FileUtils.readFileToString(new File(metricsDir, \"numUris\")));//check\n\t Assert.assertEquals(\"2.625\", FileUtils.readFileToString(new File(metricsDir, \"outdegreeAvg\")));//check\n\t Assert.assertEquals(\"2.5\", FileUtils.readFileToString(new File(metricsDir, \"outdegreeMedian\")));//check\n\t Assert.assertEquals(\"21\", FileUtils.readFileToString(new File(metricsDir, \"tripleCount\")));//check\n\t Assert.assertEquals(\"33.75\", FileUtils.readFileToString(new File(metricsDir, \"uriLengthAvg\")));//check\n\t Assert.assertEquals(\"32.0\", FileUtils.readFileToString(new File(metricsDir, \"uriLengthMedian\")));//check\n\t Assert.assertEquals(\"30.5\", FileUtils.readFileToString(new File(metricsDir, \"uriObjLengthMedian\")));//check\n\t Assert.assertEquals(\"26.0\", FileUtils.readFileToString(new File(metricsDir, \"uriObjLengthMin\")));//check\n\t Assert.assertEquals(\"40.0\", FileUtils.readFileToString(new File(metricsDir, \"uriPredLengthMedian\")));//check\n\t Assert.assertEquals(\"30.6\", FileUtils.readFileToString(new File(metricsDir, \"uriSubLengthAvg\")));//check\n\t \n\t Assert.assertEquals(\"2.0\", FileUtils.readFileToString(new File(metricsDir, \"literalLengthMax\")));//checked (fixed!)\n\t Assert.assertEquals(\"1.0\", FileUtils.readFileToString(new File(metricsDir, \"literalLengthMedian\")));//checked (fixed!)\n\t \n\t \n\t //line counts\n\t Assert.assertEquals(18, FileUtils.readFileToString(new File(metricsDir, \"namespaceCounts\")).split(\"\\\\n\").length);//check\n\t Assert.assertEquals(8, FileUtils.readFileToString(new File(metricsDir, \"predicateCounts\")).split(\"\\\\n\").length);//check\n\t Assert.assertEquals(4, FileUtils.readFileToString(new File(metricsDir, \"typeCounts\")).split(\"\\\\n\").length);//check\n\t \n\n\t}", "title": "" }, { "docid": "9a84031071a0da6c7042c5b8baa9831a", "score": "0.59530926", "text": "@Test\n public void calculateDensityTest() {\n\n }", "title": "" }, { "docid": "4869765ee543f72c014aeca6973b0630", "score": "0.5952445", "text": "@Test(timeout = 4000)\n public void test028() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives(3);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "2a0830f2c7ed37e206b3dafde7485ec5", "score": "0.5951444", "text": "public static void main(String[] args) {\n\t\tint[][] tempMatrix = { \n\t\t\t\t { 0, 1, 1}, \n\t\t\t\t { 0, 0, 1}, \n\t\t\t\t { 1, 1, 0}, \n\t\t\t\t { 1, 0, 1},\n\t\t\t\t { 1, 1, 0}, \n\t\t\t\t { 1, 1, 0}, \n\t\t\t\t { 1, 0, 1}};\n\t\t \n\t\t\t\n\t\t int[][] tempMatrix1 = { \n\t\t\t\t {0, 1, 1}, \n\t\t\t\t {0, 0, 1}, \n\t\t\t\t {0, 1, 0}, \n\t\t\t\t {0, 0, 1},\n\t\t\t\t {0, 1, 0}, \n\t\t\t\t {1, 1, 0}, \n\t\t\t\t {0, 0, 1}};\n\t\t int[][] tempMatrix2 = { \n\t\t\t\t {0, 1, 1}, \n\t\t\t\t {0, 0, 1}, \n\t\t\t\t {1, 1, 0}, \n\t\t\t\t {0, 0, 1},\n\t\t\t\t {0, 1, 0}, \n\t\t\t\t {1, 1, 0}, \n\t\t\t\t {0, 0, 1}};\n\t\t\n\t\tString arffFilename = \"data/java/test.arff\";\n\t\t\n\t\t// String arffFilename = \"data/mushroom.arff\";\n\t\tSimpleNominalDecisionSystem tempSystem = SimpleNominalDecisionSystem\n\t\t\t\t.constructFromFile(arffFilename);\n\n\t\t// System.out.println(tempSystem.toString());\n\t\t\n\t\t// tempSystem.testParition();\n\t\t\n\t\tint[][] tempReductedDecisionSystem = new int[tempSystem.numInstances()][tempSystem.numAttributes()];\n\t\tfor (int i = 0; i < tempSystem.numInstances(); i++) {\n\t\t\tfor (int j = 0; j < tempSystem.numAttributes(); j++) {\n\t\t\t\ttempReductedDecisionSystem[i][j] = (int)tempSystem.instance(i).value(j);\n\t\t\t}// Of for j\n\t\t}// Of for i\n\n\t\t// SimpleTool.printIntMatrix(tempReductedDecisionSystem);\n\t\t\n\t\t// double tempEntropy = tempSystem.conditionalEntropy(testMatrix);\n\t// \tSystem.out.println(\"The entropy is: \" + tempEntropy);\n\t\t\n\t//\ttempEntropy = ConditionalEntropy\n\t//\t.conditionalEntropy(tempReductedDecisionSystem);\n\t//\tSystem.out.println(\"The entropy is: \" + tempEntropy);\n\t\t\n\t\t//double tempEntropy = conditionalEntropyForDataset(tempReductedDecisionSystem);\n\t\tdouble tempEntropy = conditionalEntropyForDataset(tempMatrix);\n\t\tSystem.out.println(\"The entropy is: \" + tempEntropy);\n\t\t\n\t}", "title": "" }, { "docid": "085a511def1e96e7f8438b96bb0ff257", "score": "0.59427595", "text": "@Test\n public void testRollDistribution()\n {\n System.out.println(\"\");\n System.out.println(\"RollDistributionTest : testRollDistribution\");\n\n int min = 1;\n int max = 6;\n\n DiceController controller = new DiceController(min, max);\n \n int samples = 1000;\n _analyzeDistribution(controller, samples, min, max);\n \n samples = 2500;\n _analyzeDistribution(controller, samples, min, max);\n \n samples = 5000;\n _analyzeDistribution(controller, samples, min, max);\n \n samples = 10000;\n _analyzeDistribution(controller, samples, min, max);\n \n samples = 25000;\n _analyzeDistribution(controller, samples, min, max);\n \n samples = 50000;\n _analyzeDistribution(controller, samples, min, max);\n\n samples = 100000;\n _analyzeDistribution(controller, samples, min, max);\n \n System.out.println(\"...Passed\");\n }", "title": "" }, { "docid": "0866aa139b4f5ef9cb4252f600cc6fff", "score": "0.59265655", "text": "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\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 }", "title": "" }, { "docid": "299c41c2b66c28adc2075b2dff1657f0", "score": "0.59197515", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n JRip jRip0 = new JRip();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n ArrayList<Locale.LanguageRange> arrayList0 = new ArrayList<Locale.LanguageRange>();\n Locale locale0 = Locale.CHINESE;\n Locale locale1 = Locale.ITALY;\n locale1.getUnicodeLocaleAttributes();\n Locale.FilteringMode locale_FilteringMode0 = Locale.FilteringMode.MAP_EXTENDED_RANGES;\n Set<String> set0 = locale1.getUnicodeLocaleKeys();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) arrayList0, (Collection<String>) set0, locale_FilteringMode0);\n Attribute attribute0 = new Attribute(\"\", list0, (-69));\n Attribute attribute1 = new Attribute(\"@attribute\", \"\", 1);\n attribute0.equalsMsg(\"\");\n Attribute attribute2 = new Attribute(\"\", 1);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute2);\n DecisionTable decisionTable0 = new DecisionTable();\n DecisionTable decisionTable1 = new DecisionTable();\n Instances instances0 = decisionTable1.m_theInstances;\n double[] doubleArray0 = new double[2];\n doubleArray0[0] = (double) 1;\n doubleArray0[1] = (double) 2;\n DenseInstance denseInstance0 = new DenseInstance(0, doubleArray0);\n boolean boolean0 = jRip_NumericAntd0.covers(denseInstance0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute2);\n boolean boolean1 = jRip_NominalAntd0.covers(denseInstance0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertFalse(boolean1 == boolean0);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertFalse(boolean1);\n }", "title": "" }, { "docid": "615b27dfd8f47fcae3ea31875bf9290c", "score": "0.59144485", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"\\\"76!rge:|vk{d\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.toString();\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(\"\\\"76!rge:|vk{d = \", string0);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "656247073b5d1374d68303b23aa2a2ce", "score": "0.5905217", "text": "@Override\n public double entropy() {\n throw new UnsupportedOperationException(\"Not supported.\");\n }", "title": "" }, { "docid": "201852154cd5a171af41fb3dcc76a1ba", "score": "0.58874214", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1843884579));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "b9b214053cfa931b36674b0634e2bfe5", "score": "0.58793575", "text": "@Test\n public void computeLostWood() {\n }", "title": "" }, { "docid": "6972e0c141442b8983c135b417b1310a", "score": "0.58615947", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n \n int[] intArray0 = new int[1];\n boolean[] booleanArray0 = new boolean[2];\n int[][] intArray1 = new int[7][9];\n intArray1[0] = intArray0;\n intArray1[2] = intArray0;\n intArray1[3] = intArray0;\n int[] intArray2 = new int[8];\n assertFalse(intArray2.equals((Object)intArray0));\n \n intArray2[0] = 0;\n resultMatrixLatex0.m_RowHidden = booleanArray0;\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n \n intArray2[1] = 1;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\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.getDefaultShowStdDev());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\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(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n \n resultMatrixCSV0.assign(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\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.getDefaultShowStdDev());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\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(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\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.getPrintColNames());\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 assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n \n resultMatrixHTML0.setSignificanceWidth(1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\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.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\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.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n resultMatrixSignificance0.setSize(957, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(957, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\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.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(957, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n resultMatrixSignificance0.setMean(1, 255, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(957, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\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.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(957, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n }", "title": "" }, { "docid": "5ccbfba31bf3c1298dad572298e69c0f", "score": "0.585844", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n JRip jRip0 = new JRip();\n assertTrue(jRip0.getUsePruning());\n assertFalse(jRip0.getDebug());\n \n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \" ***\");\n jRip0.setOptions((String[]) null);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = Double.NaN;\n doubleArray0[1] = Double.NaN;\n doubleArray0[2] = Double.NaN;\n doubleArray0[3] = Double.NaN;\n doubleArray0[4] = 4542.678;\n doubleArray0[5] = Double.NaN;\n doubleArray0[6] = Double.NaN;\n DenseInstance denseInstance0 = new DenseInstance(Double.NaN, doubleArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(denseInstance0);\n DenseInstance denseInstance1 = new DenseInstance(binarySparseInstance0);\n boolean boolean0 = jRip_RipperRule0.covers(denseInstance1);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(boolean0);\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "42da9d1e1b5fdd50b7cb9effc3f3e83e", "score": "0.58563113", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n assertEquals(\"If set to true, classifier may output additional info to the console.\", naiveBayesMultinomial0.debugTipText());\n assertFalse(naiveBayesMultinomial0.getDebug());\n assertNotNull(naiveBayesMultinomial0);\n \n CostMatrix costMatrix0 = Evaluation.handleCostOption((String) null, 636);\n assertNull(costMatrix0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\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 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.getDebug());\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 assertNotNull(textDirectoryLoader0);\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n }", "title": "" }, { "docid": "0c80027cb5eda4edd604e29adb3475a1", "score": "0.5853533", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.binsTipText();\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(\"Number of bins.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "9a988255cc87fbb4e760301e57b3fcc3", "score": "0.5848966", "text": "@Test(timeout = 4000)\n public void test126() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 \n resultMatrixSignificance0.m_MeanPrec = 3;\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertNotNull(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 assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n \n Vector<String> vector0 = new Vector<String>();\n assertNotNull(vector0);\n assertEquals(0, vector0.size());\n assertEquals(10, vector0.capacity());\n assertEquals(\"[]\", vector0.toString());\n assertTrue(vector0.isEmpty());\n \n resultMatrixCSV0.m_HeaderKeys = vector0;\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, vector0.size());\n assertEquals(10, vector0.capacity());\n assertEquals(\"[]\", vector0.toString());\n assertTrue(vector0.isEmpty());\n assertEquals(10, resultMatrixCSV0.m_HeaderKeys.capacity());\n assertEquals(\"[]\", resultMatrixCSV0.m_HeaderKeys.toString());\n assertEquals(0, resultMatrixCSV0.m_HeaderKeys.size());\n assertTrue(resultMatrixCSV0.m_HeaderKeys.isEmpty());\n \n int[][] intArray0 = new int[8][3];\n int[] intArray1 = new int[5];\n intArray1[0] = 3;\n intArray1[1] = 2;\n intArray1[2] = 1;\n intArray1[3] = 2;\n intArray1[4] = (-3179);\n intArray0[0] = intArray1;\n int[] intArray2 = new int[3];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 39;\n intArray2[2] = (-224);\n intArray0[1] = intArray2;\n int[] intArray3 = new int[5];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[0] = 2;\n intArray3[1] = 3;\n intArray3[2] = (-3179);\n intArray3[3] = (-224);\n intArray3[4] = 0;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[9];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray4[0] = 1067;\n intArray4[1] = 3;\n intArray4[2] = 1;\n intArray4[3] = 0;\n intArray4[4] = 1;\n intArray4[5] = 0;\n intArray4[6] = 20;\n intArray4[7] = 2;\n intArray4[8] = 39;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[5];\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray4));\n \n intArray5[0] = 3;\n intArray5[1] = 0;\n intArray5[2] = (-3179);\n intArray5[3] = 2;\n intArray5[4] = 39;\n intArray0[4] = intArray5;\n int[] intArray6 = new int[6];\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray4));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray3));\n \n intArray6[0] = (-3179);\n intArray6[1] = (-224);\n intArray6[2] = 2;\n intArray6[3] = 1067;\n intArray6[4] = 2002;\n intArray6[5] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[1];\n assertFalse(intArray7.equals((Object)intArray3));\n assertFalse(intArray7.equals((Object)intArray6));\n assertFalse(intArray7.equals((Object)intArray5));\n assertFalse(intArray7.equals((Object)intArray2));\n assertFalse(intArray7.equals((Object)intArray1));\n assertFalse(intArray7.equals((Object)intArray4));\n \n intArray7[0] = 2002;\n intArray0[6] = intArray7;\n int[] intArray8 = new int[4];\n assertFalse(intArray8.equals((Object)intArray7));\n assertFalse(intArray8.equals((Object)intArray1));\n assertFalse(intArray8.equals((Object)intArray6));\n assertFalse(intArray8.equals((Object)intArray3));\n assertFalse(intArray8.equals((Object)intArray2));\n assertFalse(intArray8.equals((Object)intArray4));\n assertFalse(intArray8.equals((Object)intArray5));\n \n intArray8[0] = 12;\n intArray8[1] = (-3179);\n intArray8[2] = 3;\n intArray8[3] = (-681);\n intArray0[7] = intArray8;\n resultMatrixSignificance0.m_Wins = intArray0;\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 \n String string0 = resultMatrixCSV0.padString(\"\", 2);\n assertEquals(\" \", string0);\n assertNotNull(string0);\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 assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n \n String string1 = resultMatrixCSV0.getRevision();\n assertEquals(\"8034\", string1);\n assertNotNull(string1);\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(string1.equals((Object)string0));\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n \n int int0 = resultMatrixCSV0.getSignificanceWidth();\n assertEquals(0, int0);\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 assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n \n int int1 = resultMatrixSignificance0.getDefaultMeanWidth();\n assertEquals(0, int1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(int1 == int0);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 \n int int2 = resultMatrixCSV0.getMeanPrec();\n assertEquals(3, int2);\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(int2 == int0);\n assertFalse(int2 == int1);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\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 assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(3, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n }", "title": "" }, { "docid": "605b8341b36deebf15e210cea953242e", "score": "0.5847858", "text": "@Test\n public void testAutomated_readability_index() {\n logger.info(\"automated_readability_index\");\n String strText = TEST_STRING;\n double expResult = 143.2;\n double result = ReadabilityStatistics.automatedReadabilityIndex(strText);\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "1b09351491d2508a9c70622bbc0219ad", "score": "0.5847211", "text": "@Test(timeout = 4000)\n public void test210() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n resultMatrixPlainText0.setCountWidth(1874);\n resultMatrixPlainText0.isMean(1843);\n resultMatrixPlainText0.setCountWidth(349);\n ResultMatrixCSV.main((String[]) null);\n }", "title": "" }, { "docid": "e2e97f79bf16ce7ef0e69f0d1c4acfd8", "score": "0.5841429", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n stringArray0[4] = \"\";\n stringArray0[5] = \"\";\n stringArray0[6] = \"\";\n discretize0.setOptions(stringArray0);\n discretize0.setBins(3215);\n discretize0.invertSelectionTipText();\n discretize0.globalInfo();\n assertEquals(3215, discretize0.getBins());\n }", "title": "" }, { "docid": "04635d0296d56b71f3f9ee0be30d3d4d", "score": "0.58411753", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\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 \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[] intArray0 = new int[1];\n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertNotNull(resultMatrixSignificance2);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setColOrder(intArray0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance2);\n assertEquals(1, intArray0.length);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance2));\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertArrayEquals(new int[] {0}, intArray0);\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 \n boolean boolean0 = resultMatrixSignificance2.getEnumerateColNames();\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance0);\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertTrue(boolean0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n }", "title": "" }, { "docid": "9c788d4d38ad7fd02644495ad402d0c3", "score": "0.58396494", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "386b45dd4de4b0eaf97cc7e85db4dbb8", "score": "0.5836285", "text": "public MultiEntropy(double threshold)\r\n/* 14: */ {\r\n/* 15:23 */ this.threshold = threshold;\r\n/* 16: */ }", "title": "" }, { "docid": "2d81a32f8686f5e264356c9dc7610325", "score": "0.5829868", "text": "@Test(timeout = 4000)\n public void test089() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.sizeOfPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "bc62e2136a5283bfef3d9b7eab9d95bd", "score": "0.58213836", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.trueNegativeRate(3870);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "652f20207342033da75c2bd61b4d8e41", "score": "0.58212674", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n \n Vector<Integer> vector0 = new Vector<Integer>();\n assertEquals(0, vector0.size());\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertTrue(vector0.isEmpty());\n assertNotNull(vector0);\n assertFalse(vector0.contains(0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\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(resultMatrixCSV0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\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(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixLatex0);\n \n resultMatrixLatex0.assign(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\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(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.setStdDevWidth((-1));\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\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(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1, 0);\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixHTML0);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixLatex0);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\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(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\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(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getVisibleColCount());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertNotNull(resultMatrixLatex1);\n \n String string0 = resultMatrixLatex1.toStringSummary();\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\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(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\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(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getVisibleColCount());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertEquals(\"-summary data not set-\", string0);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotNull(string0);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n \n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance(resultMatrixSignificance1);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\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(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance2);\n \n resultMatrixSignificance0.setShowStdDev(false);\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance2));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance2);\n }", "title": "" }, { "docid": "b1c24b7e53bbbc9872aadcb8d9d0aefc", "score": "0.5820331", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.toStringRanking();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(2, 2);\n resultMatrixSignificance0.toStringKey();\n resultMatrixSignificance0.getAverage(0);\n resultMatrixSignificance0.isStdDev(2356);\n }", "title": "" }, { "docid": "b698ed655c7957358554ede59ee9a302", "score": "0.5817934", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n \n boolean boolean0 = resultMatrixSignificance0.isAverage(2218);\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n \n String string0 = resultMatrixSignificance0.enumerateRowNamesTipText();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", string0);\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n }", "title": "" }, { "docid": "8c2c1e096eaa29172e72bbf9a6991095", "score": "0.5797342", "text": "@org.junit.Test(timeout = 1000)\n public void testTip_cf62871_failAssert44() throws java.io.IOException, java.lang.ClassNotFoundException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.cardinality.CountThenEstimate cte = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(10000, new com.clearspring.analytics.stream.cardinality.LinearCounting.Builder(1024));\n com.clearspring.analytics.stream.cardinality.CountThenEstimate clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n assertCountThenEstimateEquals(cte, clone);\n for (int i = 0; i < 128; i++) {\n cte.offer(java.lang.Integer.toString(i));\n }\n clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n // MethodAssertGenerator build local variable\n Object o_17_0 = cte.cardinality();\n assertCountThenEstimateEquals(cte, clone);\n for (int i = 128; i < 256; i++) {\n cte.offer(java.lang.Integer.toString(i));\n }\n clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n // MethodAssertGenerator build local variable\n Object o_29_0 = cte.tipped();\n // MethodAssertGenerator build local variable\n Object o_31_0 = cte.cardinality();\n // MethodAssertGenerator build local variable\n Object o_33_0 = clone.tipped();\n double error = (java.lang.Math.abs(((cte.cardinality()) - 256))) / 256.0;\n // StatementAdderOnAssert create random local variable\n int vc_13606 = 1802744749;\n // StatementAdderMethod cloned existing statement\n clone.offerHashed(vc_13606);\n org.junit.Assert.fail(\"testTip_cf62871 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "title": "" }, { "docid": "6453bff744d42a3eab7dffc3964438fd", "score": "0.57909167", "text": "@Test(timeout = 4000)\n public void test178() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n \n String string0 = resultMatrixSignificance0.getColName((-1));\n assertNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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.\", 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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\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(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\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(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\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(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\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.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n resultMatrixCSV0.m_ShowAverage = true;\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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.\", 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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\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(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\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(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\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 assertTrue(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\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.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n int int0 = resultMatrixCSV0.getSignificance((-1), 31);\n assertEquals(0, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\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(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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.\", 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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\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(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\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(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\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 assertTrue(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\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.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n }", "title": "" }, { "docid": "4ab77e020f370ce4b3124d60b1387859", "score": "0.57852405", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"5\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n attribute0.value(23);\n double double0 = jRip_NumericAntd0.getCover();\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertTrue(jRip0.getUsePruning());\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "f0138d6210bb7ee78d4254cacff9b990", "score": "0.57851285", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderROC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "15bd2ac0da4b7c901c648e62684b7077", "score": "0.5782578", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 3);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\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.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(3, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(3, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.m_StdDevPrec = 3;\n assertEquals(3, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\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.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(3, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(3, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n \n String[] stringArray0 = new String[2];\n stringArray0[0] = \"*\";\n stringArray0[1] = \".g$9P[]/s,\";\n resultMatrixSignificance0.setStdDevWidth(0);\n assertEquals(3, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\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.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(3, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(3, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n double double0 = resultMatrixSignificance0.getStdDev((-189), (-674));\n assertEquals(3, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\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.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(3, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(3, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "d6b35c8a8ce0a35ef2c82b7e9bd3359f", "score": "0.5781913", "text": "@Test\n public void testDale_chall_grade() {\n logger.info(\"dale_chall_grade\");\n String strText = TEST_STRING;\n double expResult = 16.0;\n double result = ReadabilityStatistics.daleChallGrade(strText);\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "2fee25527f09253d8088747f3986676a", "score": "0.57806224", "text": "@org.junit.Test(timeout = 1000)\n public void testTip_cf62877_failAssert48() throws java.io.IOException, java.lang.ClassNotFoundException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.cardinality.CountThenEstimate cte = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(10000, new com.clearspring.analytics.stream.cardinality.LinearCounting.Builder(1024));\n com.clearspring.analytics.stream.cardinality.CountThenEstimate clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n assertCountThenEstimateEquals(cte, clone);\n for (int i = 0; i < 128; i++) {\n cte.offer(java.lang.Integer.toString(i));\n }\n clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n // MethodAssertGenerator build local variable\n Object o_17_0 = cte.cardinality();\n assertCountThenEstimateEquals(cte, clone);\n for (int i = 128; i < 256; i++) {\n cte.offer(java.lang.Integer.toString(i));\n }\n clone = new com.clearspring.analytics.stream.cardinality.CountThenEstimate(cte.getBytes());\n // MethodAssertGenerator build local variable\n Object o_29_0 = cte.tipped();\n // MethodAssertGenerator build local variable\n Object o_31_0 = cte.cardinality();\n // MethodAssertGenerator build local variable\n Object o_33_0 = clone.tipped();\n double error = (java.lang.Math.abs(((cte.cardinality()) - 256))) / 256.0;\n // StatementAdderOnAssert create random local variable\n long vc_13609 = -6815768464057720306L;\n // StatementAdderMethod cloned existing statement\n cte.offerHashed(vc_13609);\n org.junit.Assert.fail(\"testTip_cf62877 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "title": "" }, { "docid": "ffca5097f732f0582ae2ff834b7111d7", "score": "0.5780275", "text": "@Test(timeout = 4000)\n public void test192() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 2315);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2315, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n int int0 = resultMatrixSignificance0.getMeanPrec();\n assertEquals(2, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2315, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n int int1 = resultMatrixSignificance0.getDefaultRowNameWidth();\n assertEquals(40, int1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(int1 == int0);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n String string0 = resultMatrixSignificance0.getRevision();\n assertEquals(\"8034\", string0);\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2315, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n String string1 = resultMatrixSignificance0.countWidthTipText();\n assertEquals(\"The width of the counts (0 = optimal).\", string1);\n assertNotNull(string1);\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2315, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n int[] intArray0 = new int[1];\n intArray0[0] = 40;\n resultMatrixSignificance0.setRowOrder(intArray0);\n assertEquals(1, intArray0.length);\n assertArrayEquals(new int[] {40}, intArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\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 assertFalse(resultMatrixSignificance0.getPrintColNames());\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 assertEquals(2315, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2315, 325);\n }", "title": "" }, { "docid": "07e4ec6a4b151e782f1bbfc02af391f9", "score": "0.57796925", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n JRip jRip0 = new JRip();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \" ***\");\n jRip0.setOptions((String[]) null);\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\" ***\", linkedList0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.copy();\n Random.setNextRandom(0);\n }", "title": "" }, { "docid": "737ba12b3a183ec5a23216e7f1899aa3", "score": "0.5777823", "text": "@Test\n public void testColeman_liau_index() {\n logger.info(\"coleman_liau_index\");\n String strText = TEST_STRING;\n double expResult = 6.8;\n double result = ReadabilityStatistics.colemanLiauIndex(strText);\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "2b8cad07b60ed808ba64f1714a4af4f7", "score": "0.5773583", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Discretize discretize0 = new Discretize(\" else if (format.attribute(i).isNumeric())\\n\");\n double[][] doubleArray0 = new double[2][5];\n double[] doubleArray1 = new double[4];\n doubleArray1[0] = (-1009.31);\n doubleArray1[1] = (-1.0);\n doubleArray1[2] = 224.51444802211;\n doubleArray1[3] = 5164.7781685921;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[0] = (-1009.31);\n doubleArray2[1] = (-1009.31);\n doubleArray2[2] = (-1009.31);\n doubleArray2[3] = (-1.0);\n doubleArray2[4] = (-1009.31);\n doubleArray2[5] = 224.51444802211;\n doubleArray2[6] = 224.51444802211;\n doubleArray2[7] = (-1009.31);\n doubleArray2[8] = (-1009.31);\n doubleArray0[1] = doubleArray2;\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": "a097a0891b663ff3d25bbc76cd97ceda", "score": "0.57732046", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize(\"-R <col1,col2-col4,...>\");\n discretize0.setUseBinNumbers(false);\n discretize0.getCapabilities();\n discretize0.getInvertSelection();\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"-R <col1,col2-col4,...>\";\n Filter.runFilter(discretize0, stringArray0);\n String[] stringArray1 = new String[7];\n stringArray1[0] = \"-R <col1,col2-col4,...>\";\n stringArray1[1] = \"-R <col1,col2-col4,...>\";\n stringArray1[2] = \"weka/core/Capabilities.props\";\n stringArray1[3] = \"c04y=^Z;DTFy\";\n stringArray1[4] = \"-R <col1,col2-col4,...>\";\n stringArray1[5] = \"weka/core/Capabilities.props\";\n stringArray1[6] = \"-R <col1,col2-col4,...>\";\n discretize0.setOptions(stringArray1);\n discretize0.getCutPoints(14);\n discretize0.getAttributeIndices();\n discretize0.attributeIndicesTipText();\n discretize0.findNumBinsTipText();\n discretize0.getBins();\n discretize0.getUseEqualFrequency();\n String string0 = discretize0.getAttributeIndices();\n assertEquals(\"-R <col1,col2-col4,...>\", string0);\n \n Discretize.main(stringArray1);\n discretize0.getBins();\n discretize0.setOutputFormat();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" } ]
84d4310201bc9fd62183c518a3ad6fd4
Ensure we're in a main function, as defined by the C++ standard:
[ { "docid": "908cd70ac4f36262680c3849dfa14a4d", "score": "0.0", "text": "private static RunConfigurationContext getBazelTargetContext(PsiElement element, PsiFile file,\n ConfigurationContext context) {\n if (!(element.getContext() instanceof OCDeclarator)) {\n return null;\n }\n OCDeclarator psiDeclaration = (OCDeclarator) element.getContext();\n if (!(psiDeclaration.getResolvedType() instanceof OCFunctionType)) {\n return null;\n }\n\n String funcName = psiDeclaration.getName();\n String retTypeName = ((OCFunctionType) psiDeclaration.getResolvedType()).getReturnType()\n .getName();\n if (!(funcName.equals(\"main\") && retTypeName.equals(\"int\"))) {\n return null;\n }\n\n // We pass null as the test size because the TestTargetHeuristicts that we expect to accept this\n // don't care about the test size.\n ListenableFuture<TargetInfo> targetFuture = TestTargetHeuristic.targetFutureForPsiElement(\n element, null);\n if (targetFuture == null\n || targetFuture.isCancelled()\n || (targetFuture.isDone() && FuturesUtil.getIgnoringErrors(targetFuture) == null)) {\n return null;\n }\n Executor executor =\n ApplicationManager.getApplication().isUnitTestMode()\n ? MoreExecutors.directExecutor()\n : PooledThreadExecutor.INSTANCE;\n ListenableFuture<TargetInfo> ccTestFuture = Futures.transform(targetFuture,\n targetInfo -> {\n if (targetInfo.getKind().equals(RuleTypes.CC_TEST.getKind())) {\n return targetInfo;\n } else {\n return null;\n }\n }, executor);\n return TestContext.builder(element, ExecutorType.DEBUG_SUPPORTED_TYPES)\n .setTarget(ccTestFuture)\n .build();\n }", "title": "" } ]
[ { "docid": "6b46f8d259706b12a6a76bf7a09832a2", "score": "0.71918595", "text": "public static void main(String[] args) {new Main();}", "title": "" }, { "docid": "695d7efcf0b50de3c279af6a786cae45", "score": "0.71234614", "text": "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n App.main(args);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"This is an excpected error.\");\r\n }", "title": "" }, { "docid": "2bdd924d2d58a3cb34325440142953c9", "score": "0.71050596", "text": "public static void main() {\n\t\tSystem.out.println(\"main method\");\n\t}", "title": "" }, { "docid": "bd037617743dd831b6bcde21456313b9", "score": "0.703314", "text": "void makeMain();", "title": "" }, { "docid": "4fa8ff7add72330df8488417857cfb3d", "score": "0.69786286", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Prueba.main(args);\n }", "title": "" }, { "docid": "343dd0f5a303871e71dd02194ee0be3b", "score": "0.695843", "text": "public abstract void main();", "title": "" }, { "docid": "bcb210a347e93b72a99f685060c4e7ba", "score": "0.6954186", "text": "@Test\n\tpublic void runMain() {\n\t\tRiskMain main = new RiskMain();\n\t\ttry {\n\t\t\tmain.main(null);\n\t\t} catch (IOException e) {\n\t\t\tassertTrue(false);\n\t\t}\n\t}", "title": "" }, { "docid": "c36666ebbfe733a47da8ec9e3fc4a3df", "score": "0.6907784", "text": "public main(){}", "title": "" }, { "docid": "44a53cef29658a0c1d3b8f3768086990", "score": "0.68921727", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Calculators.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "83f62978cddceb8cb6bcbb13fa618709", "score": "0.6863433", "text": "private Main() {\n\t}", "title": "" }, { "docid": "9452b2662aabf84af77384ff751e2a18", "score": "0.6860932", "text": "public void main(){\n\t\t\n\t}", "title": "" }, { "docid": "311b1ae767ec1acb4cf3a85ba9790637", "score": "0.68581676", "text": "@Test\n void runMain() {\n App.main(new String[]{});\n }", "title": "" }, { "docid": "d3e125a4e7c3d1202b3be123e7aac28e", "score": "0.67944545", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n StringCode.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e088920ed12feb2ede9581b973e126c7", "score": "0.67724824", "text": "boolean isMain();", "title": "" }, { "docid": "bd770c48c37a7d5a20da9970f5e72b4a", "score": "0.67661446", "text": "public static void main(String[] args) {}", "title": "" }, { "docid": "bd770c48c37a7d5a20da9970f5e72b4a", "score": "0.67661446", "text": "public static void main(String[] args) {}", "title": "" }, { "docid": "bd770c48c37a7d5a20da9970f5e72b4a", "score": "0.67661446", "text": "public static void main(String[] args) {}", "title": "" }, { "docid": "676ddbd2945cd755cf19d13eccfa7de6", "score": "0.6737381", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n EmpleadoRealUI.main(args);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "d70dde7d92fa325a52eaadfdabd349bc", "score": "0.67234755", "text": "private void checkForMainClassWithMainMethod() {\n ClassTreeNode mainNode = classMap.get(\"Main\");\n if (mainNode == null) {\n errorHandler.register(Error.Kind.SEMANT_ERROR, \"There is no Main class \" +\n \"(with a main() method).\");\n }\n else {\n Method mainMethod = (Method) mainNode.getMethodSymbolTable().lookup(\"main\");\n if (mainMethod == null || ! mainMethod.getReturnType().equals(\"void\")\n || mainMethod.getFormalList().getSize() > 0) {\n errorHandler.register(Error.Kind.SEMANT_ERROR,\n \"There is no main() method in the Main class with \" +\n \"no parameters and void return type.\");\n }\n }\n }", "title": "" }, { "docid": "28ddc0658def359e648eec6db5074eed", "score": "0.671497", "text": "private Main ()\r\n {\r\n }", "title": "" }, { "docid": "bcf61c69a56432489b970dba5191a600", "score": "0.67113525", "text": "private Main() {\n }", "title": "" }, { "docid": "2f2a85228d275cb197ff05f9ad1a7155", "score": "0.66942096", "text": "public static void main(String[] args) { }", "title": "" }, { "docid": "1d3a78b8872061418f6a9afe97d0275f", "score": "0.6660718", "text": "private Main() {\r\n }", "title": "" }, { "docid": "522f8104df79b72be60f6dff30e1049f", "score": "0.66557586", "text": "public static void main (String []args){\n}", "title": "" }, { "docid": "ff5a8d6e6a19f87e7fadce44e03147dc", "score": "0.66542155", "text": "public String requiresMainImplementation();", "title": "" }, { "docid": "2492bc14a0b413f572775294ea249890", "score": "0.6611444", "text": "public Main(){}", "title": "" }, { "docid": "7c6bfa94634deff33ca09b63d7663023", "score": "0.65981025", "text": "public void main(String args[]){\n //nothing here :)\n }", "title": "" }, { "docid": "9f007a611abd5aea1cd6078a0f6a4f64", "score": "0.6576864", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Account.main(args);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "title": "" }, { "docid": "106ceb0f5e22400fbc643c1e237031e3", "score": "0.65707624", "text": "public static void main(String[] args)\r\n\t{\r\n\t\tthrow new RuntimeException(\"INSERT MISSING CODE HERE\");\r\n\t}", "title": "" }, { "docid": "d4c9c4aaa9d427e3471565d3cf242b05", "score": "0.6554664", "text": "public static void main(String[] args) {\n}", "title": "" }, { "docid": "d4c9c4aaa9d427e3471565d3cf242b05", "score": "0.6554664", "text": "public static void main(String[] args) {\n}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.65358394", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "6f8992818cd46b091c6e87c34163731b", "score": "0.6520614", "text": "public static void main(String[] args) {\n // optional\n }", "title": "" }, { "docid": "7884d5c557c03f0690d04a443a5d7084", "score": "0.65073806", "text": "public void testMain() {\n System.out.println(\"main\");\n \n String[] args = null;\n \n ConfigJFrame.main(args);\n \n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "35f53298d6fde616fd83828af29271cf", "score": "0.65040934", "text": "public Main() {}", "title": "" }, { "docid": "edeacfe4ed10b7617c6495c028849870", "score": "0.64850706", "text": "@Test\n\tpublic void mainTest() {\n\t\tString[] st = new String[1];\n\t\tst[0] = \"\";\n\t\tProductApplication.main(st);\n\t}", "title": "" }, { "docid": "da90b45a66757ffa424ab2a314502505", "score": "0.6480733", "text": "public static void main( String[] args )\n\t{\n\t\t\n\t\tthrow new RuntimeException( \"Not implemented yet!!\" );\n\t}", "title": "" }, { "docid": "7790f2116e8e41006bcf2b500727cc73", "score": "0.64660484", "text": "public static void main(String...args) {\n\t}", "title": "" }, { "docid": "1e4dc3be2630c24908a3bf243c30b4b5", "score": "0.64614314", "text": "@Test\n void invokingMainWithNoCommandLineArguments() {\n MainMethodResult result = invokeMain(Project3.class);\n assertThat(result.getTextWrittenToStandardError(), containsString(Project3.USAGE_MSG));\n assertThat(result.getTextWrittenToStandardError(), containsString(Project3.MISSING_ARGS));\n assertThat(result.getExitCode(), IsEqual.equalTo(1));\n }", "title": "" }, { "docid": "8289e68c1a0b2f6ebc844016ceec0fd8", "score": "0.6449664", "text": "public static void main(String[] args)\r\n\t\t{\r\n\t\tmain();\r\n\t\t}", "title": "" }, { "docid": "8289e68c1a0b2f6ebc844016ceec0fd8", "score": "0.6449664", "text": "public static void main(String[] args)\r\n\t\t{\r\n\t\tmain();\r\n\t\t}", "title": "" }, { "docid": "47e4676efe3f8eed3b887fb678ad2441", "score": "0.6449568", "text": "Main createMain();", "title": "" }, { "docid": "e51a7416e9fad17ca9965b573957480c", "score": "0.6423038", "text": "public static void main(String[] args) {\n\n\t\tSystem.out.println();\n\t\tmain(2);\n\t}", "title": "" }, { "docid": "334a0797a8e482fb2acf4cad17301ac8", "score": "0.64187753", "text": "public static void main(String[] args)\n\t\t{\n\t\tmain();\n\t\t}", "title": "" }, { "docid": "c56719f783af4c21cb6dc18f509e1b73", "score": "0.64012", "text": "public void testMain()\n {\n }", "title": "" }, { "docid": "fa6a8d3c2463f098abecfc46854c4ff2", "score": "0.63946277", "text": "public static void main(String[] args) \n {}", "title": "" }, { "docid": "0b33b0108ad5a2d4b29063149b299aaa", "score": "0.6386616", "text": "private Main() {\r\n // Do nothing (comment for Sonar)\r\n }", "title": "" }, { "docid": "f8c42afb53359ea680abfed35b6b03ea", "score": "0.63758767", "text": "public static void main(final String[] args) {\n }", "title": "" }, { "docid": "e44197d27f626d27379ffea61984aa27", "score": "0.636881", "text": "public static void main(String[] args) {\n \n\n\n\n\n\n }", "title": "" }, { "docid": "5d25748f676eac36bc593b9c97a2b56e", "score": "0.63580066", "text": "public static void main(String [] args) {\n \tnew Main();\n\t}", "title": "" }, { "docid": "126610cba98b3246c821683561d71a38", "score": "0.6356872", "text": "@Override\n\tpublic void runtest() {\n\t\ttry {\n\t\t\tmain(new String[] {});\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": "b7d7cff997da2230a4adf2f7ca544182", "score": "0.6356304", "text": "public static void main (String[] args) \n {\n }", "title": "" }, { "docid": "acb64b1d23e47ccdd2c83406a6b67953", "score": "0.6354747", "text": "public static void main(String[] args) {\n \tSystem.out.println(\"Inside main method\");\r\n \t\r\n\t}", "title": "" }, { "docid": "8eb988438ec4014c750b8b604f5dc361", "score": "0.63521534", "text": "public void main(String[] args) {\n }", "title": "" }, { "docid": "ecfb22d1980875a3891260cec5cff6a1", "score": "0.63515264", "text": "@Test\n\tpublic void testMain_1()\n\t\tthrows Exception {\n\t\tString[] args = new String[] {};\n\n\t\thw1_1000LOC19.main(args);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "7c5ced6237d51c983e06661073838fe5", "score": "0.6350366", "text": "public static void main(String [] args){\n \n \n }", "title": "" }, { "docid": "6494e4a55d05313069209cfa1f27043a", "score": "0.63490516", "text": "public static void main(String[] args) {\n \n }", "title": "" }, { "docid": "54adf2c377313e0976d85f35fb761ff4", "score": "0.6343884", "text": "public static void main(String[] args) {\n\n\n\n\n\n\n }", "title": "" }, { "docid": "54adf2c377313e0976d85f35fb761ff4", "score": "0.6343884", "text": "public static void main(String[] args) {\n\n\n\n\n\n\n }", "title": "" }, { "docid": "aa7770a06376cfaae63daaa6a9b8edaa", "score": "0.6338259", "text": "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Begin main\");\n\t\tSystem.exit(0);\n\t\tSystem.out.println(\"End of main\");\n\n\t}", "title": "" }, { "docid": "888b340fd0d47911990708ab3b337cc0", "score": "0.63254666", "text": "public static void main(String argv[]) {\n }", "title": "" }, { "docid": "98b57f9b037f5f4600227469a155ad4d", "score": "0.6320765", "text": "public static void main(String[] args) {\n test4();\n }", "title": "" }, { "docid": "97cc95067efaf1f62de1f094b937d998", "score": "0.631639", "text": "public static void main(String[] args) {\n \n }", "title": "" }, { "docid": "a4b8ee5d7eec21d5889324e86ab75c08", "score": "0.6307173", "text": "public static void main(String[] args) {\n\n\n\n\n }", "title": "" }, { "docid": "48d5148cc3ca3c285fa61161070353f9", "score": "0.63070744", "text": "public static void main(String []args){\n\n }", "title": "" }, { "docid": "6a8497ae0fd3fa58071621f0b979c0f4", "score": "0.63061714", "text": "private void startMain(){\n\n }", "title": "" }, { "docid": "0e8bbf13301eaf674ac87fc993e5aec1", "score": "0.62953055", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n AscendinOrderTraversal.main(args);\n }", "title": "" }, { "docid": "6d62be82cdc116b382c400aa964df949", "score": "0.62950355", "text": "public static void main(String[] args) {\n\n\n\n }", "title": "" }, { "docid": "4c77b5b07db193f1c344f827a1d403d5", "score": "0.62935793", "text": "public static void main (String[] args){\n }", "title": "" }, { "docid": "4c77b5b07db193f1c344f827a1d403d5", "score": "0.62935793", "text": "public static void main (String[] args){\n }", "title": "" }, { "docid": "4fefd58a86469366d40d8043faa92646", "score": "0.6287948", "text": "public static void main( String[] args )\n {\n }", "title": "" }, { "docid": "f2fd5951727c597d5738843c07c8973e", "score": "0.6277767", "text": "public static void main(String[] args) {\n }", "title": "" }, { "docid": "04c5f5a05f1ef9d72a0ea76fd301abb8", "score": "0.6275268", "text": "static public void main(String[] args) {\n\t\tnew Main().run();\n\t}", "title": "" }, { "docid": "afc483ac4a7e8085abf32640d687104b", "score": "0.6270398", "text": "public static void main (String[] args) {\n\n }", "title": "" }, { "docid": "270c276851882c5cb0a8899a00d87ec7", "score": "0.6268078", "text": "public static void main(String [] args)\r\n {\n }", "title": "" }, { "docid": "9c7f8b6561bec7c9484571ad0f826521", "score": "0.626599", "text": "public static void main(String[] arg) {\n\t\t\n\t}", "title": "" }, { "docid": "ba63ef39fcf401ad34858bc3718ac40e", "score": "0.62633383", "text": "public static void main(String [] args) { launch(); }", "title": "" }, { "docid": "4a787b655d1415c93cdc410a6241d7a3", "score": "0.62606347", "text": "public static void main(String [] args) {\n }", "title": "" }, { "docid": "bf95cb8db1b29d5f205988533c8d0308", "score": "0.6260605", "text": "public static void main(String[] args) {\n \n \n \n }", "title": "" }, { "docid": "20dd9364115bf7cf401097a1afa586d7", "score": "0.6257711", "text": "public static void main(String[] args) {\n\t\thello();\n\t}", "title": "" }, { "docid": "02459fb441c8f8fc86726a034cc67e20", "score": "0.62571806", "text": "public static void main(String[] args) {\n \n \n\n }", "title": "" }, { "docid": "ceaecd3eb78d7761ea7febcbfc1f1971", "score": "0.62568307", "text": "public static void main(String[] args) {\n\t\tnew main();\n\t}", "title": "" }, { "docid": "2e58f0480e451018d7f84085ec57ca30", "score": "0.6254095", "text": "public static void main(String[] args) {\r\n }", "title": "" }, { "docid": "60d51ba96e47600bf670b7719f4bae30", "score": "0.62527776", "text": "public static void main(String[] args) \n {\n \n }", "title": "" }, { "docid": "d18c65d62a5bd9b8fee6550a014366f2", "score": "0.6250173", "text": "public static void main( String[] args ) {\n }", "title": "" }, { "docid": "30e05884c07403f4a2ccbb94fdbcd994", "score": "0.62486035", "text": "public static void main(String[] args) {\n\t\tcallme();\r\n\t}", "title": "" }, { "docid": "25c6167ad86d3bdb69f8f2f79c7c02b4", "score": "0.6243585", "text": "public static void main (String... args)\r\n {\r\n standAlone = true;\r\n getInstance();\r\n }", "title": "" }, { "docid": "973ce68c79d9bca4a41efa4ad75c1b32", "score": "0.62414706", "text": "public static void main(String[] args){\n \n }", "title": "" }, { "docid": "92334a9387b1c8cb4c1dadb07bb3ff68", "score": "0.6241402", "text": "public static void main (String[] args){\n\n }", "title": "" }, { "docid": "d2648097c54baeac6fdebf1b920ac59b", "score": "0.6240959", "text": "public static void main(String [] args){\n }", "title": "" }, { "docid": "0fe1302fdf3937daa20ffd71b0cb06d2", "score": "0.6240097", "text": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Diagram.main(args);\n }", "title": "" }, { "docid": "e3551dc9e162bd2f1404ba129ea430a8", "score": "0.62397355", "text": "public static void main(String[] args)\r\n {\n\r\n }", "title": "" }, { "docid": "a43605d54d73d09991be204bcbc00804", "score": "0.6235004", "text": "public Main() {\n \n }", "title": "" }, { "docid": "bc16d13b4e6d0e71dcb46ea6ee85c961", "score": "0.62349856", "text": "public static void main(String[] args) {\n System.exit(init(args));\n }", "title": "" }, { "docid": "fab9248e6d018f81d3782970c9516434", "score": "0.6232513", "text": "private CMain() {}", "title": "" }, { "docid": "b07cb3c4d72ea53bc51ae61dc31d3087", "score": "0.6231981", "text": "public static void main(String[] args) {\n }", "title": "" } ]
d8824075ef7da83f5af6beab317232a6
Add node to known nodes list
[ { "docid": "347bed7075b4f2a032231f4c1fad1c5c", "score": "0.71471125", "text": "void addNode (NodeInfo newNode){\n\t\t\n\t\tif ( !knownNodes.contains(newNode) ||\n\t\t\t\t!(this.nodeID == newNode.nodeID && _listener.getIPAddress().equals(newNode.ipAddress)\n\t\t\t\t&& _listener.getPortNumber() == newNode.portNumber)){\n\t\t\t\n\t\t\tknownNodes.add(newNode);\n\t\t}\t\t\n\t}", "title": "" } ]
[ { "docid": "53b4c02690607983f8b55f363d07212e", "score": "0.7814227", "text": "public void addNode(Node New)\r\n{\r\n\tNodes.add(New);\r\n}", "title": "" }, { "docid": "9c9458f668c67dec54461d4268825614", "score": "0.76110035", "text": "public void addNode(Node n) {\n\t\t\n\t}", "title": "" }, { "docid": "b3711d2e2ed28bfc59ddb5cdb28bf36d", "score": "0.7559316", "text": "public void addNode(Node node) {\n nodeList.add(node);\n }", "title": "" }, { "docid": "5ea8d0cf782afe33d63d2f54a1d8c9d4", "score": "0.74663967", "text": "public void addNode(Node n){\n\t\tif(getNodes().contains(n)){\n\t\t\tSystem.out.println(\"Node Already Exists\");\n\t\t\treturn;\n\t\t}\n\t\tboolean add = getNodes().add(n);\n\t\t\n\t}", "title": "" }, { "docid": "1255248addebf15f59cbe3e80b4069d3", "score": "0.7416284", "text": "public abstract void addNode(AbstractNode node);", "title": "" }, { "docid": "a23ea283c0249904839ee409240be8d8", "score": "0.73428756", "text": "public boolean addNode(Node node);", "title": "" }, { "docid": "abe3bb3e612f56ba329cd8f5cb117898", "score": "0.7311375", "text": "public GraphvisNode addNode(GraphvisNode node);", "title": "" }, { "docid": "c467fb9ee9335469a7e9133e8143a70e", "score": "0.7280294", "text": "public void addNode(RawNode node) {\r\n\t\tif (nodes == null) {\r\n\t\t\tnodes = new ArrayList();\r\n\t\t}\r\n\t\tnodes.add(node);\r\n\t}", "title": "" }, { "docid": "0cc9a878964f7904d65260426f7f05cf", "score": "0.7183193", "text": "public void addNode(T nodeToAdd) {\n nodeMap.putIfAbsent(nodeToAdd, new ArrayList<>());\n }", "title": "" }, { "docid": "7e1b6f3d4432072b86e5720fcd37a0e4", "score": "0.71330506", "text": "public void addNodeToGroup (Node node){\r\n\t\r\n\t\tnodesSet.add(node);\r\n\t}", "title": "" }, { "docid": "3307157a28ad95c290862e715d1c2447", "score": "0.7127225", "text": "public void add_node(Node node) {\n\t\tif (!contains_node(node.get_id()))\n\t\t\tm_nodes.add(node);\n\t}", "title": "" }, { "docid": "0cb635b4f374b1a519fd31cae2f6036a", "score": "0.71222275", "text": "public void addNode(Node node) {\n map.put(node.name, node);\n }", "title": "" }, { "docid": "b960a67de40d7ad367f46e991f8f9b64", "score": "0.7108219", "text": "@Override\n public void addNode(node_data n)\n {\n if(!this._nodes.containsKey(n.getKey()))\n {\n this._nodes.put(n.getKey(),n);\n mc++;\n }\n }", "title": "" }, { "docid": "6e716f353932a30c57e0ef1f37633a5f", "score": "0.7034239", "text": "@Override\n\tpublic void add( Node node )\n\t{\n\t\tthis.rootNode.add( node );\n\t}", "title": "" }, { "docid": "5f3fc3720ccfe0a03ffa26e63a4b3ba9", "score": "0.7029044", "text": "@Override\r\n public void addNode(String nodeId, int nodeVersion, Auths auths, Properties properties)\r\n {\n \r\n }", "title": "" }, { "docid": "3d474c7780c186fa7e1f744e8e0276c4", "score": "0.702432", "text": "void addNode(Node<T> node);", "title": "" }, { "docid": "4ced92388e05da6f3617042c2a6a6299", "score": "0.7010883", "text": "public DiGraphNode<V, E> addNode(V nodeInfo) {\n\t\tDiGraphNode<V, E> v = new DiGraphNode<V, E>(nodeInfo, nodeList.size());\n\t\tnodeList.add(v);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "a59ed626246b6c67254d3399e4514e9e", "score": "0.7010627", "text": "public static void addNode(String k, Node n) { allNodes.put(k, n); }", "title": "" }, { "docid": "a697f5dba8ad5b0747d7026bf28cd6c0", "score": "0.69701165", "text": "private void insertInList(Counts n){\r\n nodes.add(n);\r\n }", "title": "" }, { "docid": "c487a8ad20efb5e927d8fc22542b97f1", "score": "0.6916228", "text": "@Override\r\n\tpublic void addNode(node_data n) \r\n\t{\t\t\r\n\t\tif(!nodesInGraph.containsKey(n.getKey()))\r\n\t\t{\r\n\t\t\tnodesInGraph.put(n.getKey(), n);\r\n\t\t\tpointers.put(n.getKey(), new LinkedList<node_data>());\r\n\t\t\tneighbors.put(n.getKey(), new LinkedList<node_data>());\r\n\t\t\tmcCounter++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eac4d287009250a7a3f582f6a11456c5", "score": "0.6903972", "text": "public void addNode(N node) throws IllegalArgumentException;", "title": "" }, { "docid": "452491b1834d18e687621d65fab38ae7", "score": "0.680279", "text": "public void addNode(NodeComp node) {\n\t\tthis.nodes.add(node);\n\t}", "title": "" }, { "docid": "0d04fd96c8603b0937e14c462b107e40", "score": "0.67974955", "text": "public void addNode(Parent node) {\n nodes.add(node);\n applyThemeOrDefault(getTheme(), node);\n }", "title": "" }, { "docid": "af14451efcdf39a731d44c0297e4ac68", "score": "0.67600536", "text": "void addKnowledgeNode(KnowledgeNode kn);", "title": "" }, { "docid": "4a89d082fceae64613b309008a39d449", "score": "0.67440206", "text": "private void processNode(GNode n){\n if (!depList.contains(n)){\n depList.add(n);\n LOGGER.info(\"--- Added \" + n.getLocation().toString() + \" to the list.\");\n }\n }", "title": "" }, { "docid": "8b8f4efdda57c8548d86fbc38fb80be0", "score": "0.67432094", "text": "private void addNode (Node current, Node toAdd) {\r\n toAdd.prev = current.prev;\r\n toAdd.next = current;\r\n \r\n current.prev.next = toAdd;\r\n current.prev = toAdd;\r\n \r\n this.modCount++;\r\n this.size++;\r\n }", "title": "" }, { "docid": "c87abab67feb7ee34aef70895fdcf93e", "score": "0.67412645", "text": "void add(T item){\n\t\tNode<T> temp = new Node<T>(item);\n\t\tif(start==null){\n\t\t\tstart = temp;\n\t\t} else{\n\t\t\tNode travel = start;\n\t\t\twhile(travel.link!=null){\n\t\t\t\ttravel=travel.link;\n\t\t\t}\n\t\t\ttravel.link= temp;\n\t\t}\n\t\tsize++;\n\t}", "title": "" }, { "docid": "7dfbe508e9682f703d0926254cbde1bc", "score": "0.6708698", "text": "public void add(Node<T> node) {\r\n\t\t\tnode.setNextNode(currentNode.getNextNode());\r\n\t\t\tcurrentNode.setNextNode(node);\r\n\t\t}", "title": "" }, { "docid": "bdcd651464f850eacff67823122e93b7", "score": "0.6687919", "text": "private void append(Node node) throws XNIException {\n/* 360 */ if (this.fCurrentNode != null) {\n/* 361 */ this.fCurrentNode.appendChild(node);\n/* */ }\n/* */ else {\n/* */ \n/* 365 */ if ((kidOK[this.fTarget.getNodeType()] & 1 << node.getNodeType()) == 0) {\n/* 366 */ String msg = DOMMessageFormatter.formatMessage(\"http://www.w3.org/dom/DOMTR\", \"HIERARCHY_REQUEST_ERR\", null);\n/* 367 */ throw new XNIException(msg);\n/* */ } \n/* 369 */ this.fTargetChildren.add(node);\n/* */ } \n/* */ }", "title": "" }, { "docid": "a9a60a8533e5dec800f739ccdbb56547", "score": "0.6680118", "text": "public void addNode(int i, TypedNode n) { \n \tnodes[i] = n; \n }", "title": "" }, { "docid": "eb48716c1d8ea49ec8c0a97dc17773ce", "score": "0.6668061", "text": "void pushNode(Node n) {\r\n nodes.push(n);\r\n }", "title": "" }, { "docid": "9b3ecd3f5d2ac6a867a19d735ff13f06", "score": "0.66675645", "text": "public final void addNode( ClusterNode node) {\n\t\tm_nodes.put( node.getName(), node);\n\t}", "title": "" }, { "docid": "6c75bfc63ea0db444a3dc0021b1bb6bf", "score": "0.6659171", "text": "public void add(Node node) {\r\n\t\tnodes.add(node);\r\n\t\tnode.setGraph(this);\r\n\t}", "title": "" }, { "docid": "f3d0fd0e885db70b00918606c5cb57f9", "score": "0.66573554", "text": "void addNode(N value);", "title": "" }, { "docid": "2cb186f4c918e136a9d68020739d9181", "score": "0.6645076", "text": "default void nodeAdded(HostAndPort node, ServerState.Status newState) {}", "title": "" }, { "docid": "aafddb4a0c48f8c38f1eeefced783453", "score": "0.6644362", "text": "public void addNode(Node node) {\n\t\tgraph.put(node, new ArrayList<Edge>());\n\t}", "title": "" }, { "docid": "8e6b50230d3aac8c6fc8524e263f213c", "score": "0.66442335", "text": "public void addNode(){\n\t\tSnakeNode node = new SnakeNode(new Point(), first);\n\t\tfirst = node;\n\t\tsize++;\n\t}", "title": "" }, { "docid": "238409ddb6adee9f22be069183339aa4", "score": "0.664357", "text": "public void addNode(Node... nodes) throws IllegalArgumentException {\n for (Node n : nodes) {\n if (allNodes.containsValue(n)) {\n throw new IllegalArgumentException(\"Attempted to add an already existing node!\");\n }\n allNodes.put(n.getLabel(), n);\n }\n }", "title": "" }, { "docid": "597695a724bf6c720a3ddfd845e5e1eb", "score": "0.6639636", "text": "public void addNode(Node node) {\n node.setId(this.id);\n node.setNetwork(this);\n this.nodes.add(this.id, node);\n this.id++;\n }", "title": "" }, { "docid": "a3c939177966d45fdb34f34e3a350d9c", "score": "0.6616472", "text": "private Node addNode(ParserRuleContext node, String text) {\n\t\treturn this.graph.addNode(node.getStart().getLine() + \": \" + text);\n\t}", "title": "" }, { "docid": "fc2c3c1de5afd086ac11b05ca97b5ce1", "score": "0.65677714", "text": "public void addNode(Node node) {\n this.gameRoot.getChildren().add(node);\n }", "title": "" }, { "docid": "561d686db2cfc530601926379a90707e", "score": "0.6551695", "text": "protected Node addNode(String path) {\n return addNode(path, null);\n }", "title": "" }, { "docid": "5e93ae229930bb3166ec4ed34df8b261", "score": "0.65439916", "text": "public void addNode(@NonNull TOp node) {\n nodes.add(node);\n if (node.getId() != 0)\n numericMap.put(node.getId(), node);\n\n if (node.getName() != null && !node.getName().isEmpty())\n symbolicMap.put(node.getName(), node);\n }", "title": "" }, { "docid": "49447ae446b76f48a08d1ce3f18c0fb6", "score": "0.6537722", "text": "public void addNode(N node) {\n HashSet<N> tails = edges.get(node);\n if (tails == null) {\n edges.put(node, new HashSet<N>());\n }\n }", "title": "" }, { "docid": "e5ac15ade85160f208bb90855f0ab984", "score": "0.6535347", "text": "public void addNode(Person node) {\n\t\t// Prevents adding null Person\n\t\tif (node == null || node.getName() == null) {\n\t\t\tthrow new IllegalArgumentException(\"Person is null. Please provide valid input.\");\n\t\t} else if (!this.adjacencyList.containsKey(node)) {\n\t\t\tthis.adjacencyList.put(node, new ArrayList<Person>()); // add to graph\n\t\t\tvertices.add(node);\n\t\t\t++this.order; // Increment order of graph\n\t\t}\n\t}", "title": "" }, { "docid": "81774ac8b0c3a25e832a362dbe55d435", "score": "0.6516682", "text": "public GraphvisNode addNode(String id, String label);", "title": "" }, { "docid": "ac31238a2cd38b6a6d99e331bfb08706", "score": "0.6499503", "text": "public void addNode(HierarchicalLDANode node) {\n if (currentDepth < maxDepth) {\n nodes[currentDepth] = node;\n currentDepth++;\n }\n }", "title": "" }, { "docid": "2b813db780996d82b598b88c63ec3869", "score": "0.6484144", "text": "public void addNode(T a){\r\n ListNode newNode = new ListNode(a , null);\r\n ListNode currentNode = head;\r\n if(head == null){\r\n head = newNode;\r\n }\r\n else{\r\n while(currentNode.getLink()!= null)\r\n currentNode = currentNode.getLink();\r\n currentNode.setLink(newNode);\r\n }\r\n }", "title": "" }, { "docid": "e47548e3dbd73ae3b3eb02f5cead912a", "score": "0.6479156", "text": "public void addNode(rcNode n) {\n\t\tmonPredicate pred1 = new monPredicate(\"*\", \"osgVO_JOBS\", \"*\", realtimeStart, -1, new String[] { \"RunningJobs\", \"IdleJobs\"}, null);\n\t\tmonPredicate pred2 = new monPredicate(\"*\", \"osgVO_JOBS_Rates\", \"*\", realtimeStart, -1, new String[] {\"CPUTime_R\", \"FinishedJobs_R\", \"FinishedJobs_Success_R\", \"FinishedJobs_Error_R\"}, null);\n\t\tn.client.addLocalClient(this, pred1);\n\t\tn.client.addLocalClient(this, pred2);\n\t\tcurrentNodes.add(n);\n\t\t//System.out.println(n.toString());\n\t}", "title": "" }, { "docid": "4c0e0ef6a1950716228835cd26fcd935", "score": "0.6468649", "text": "void addNodesFromList ( List<NodeInfo> list ) {\n\n\t\tIterator<NodeInfo> iterator = list.iterator();\n\t\t\n\t\twhile ( iterator.hasNext() ){\n\t\t\t\n\t\t\tNodeInfo info = iterator.next();\n\t\t\t\n\t\t\tif ( !knownNodes.contains(info) ){\n\t\t\t\t\n\t\t\t\tknownNodes.add(info);\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "68729eb74ebf6a0a0bd7e454f6ac8b1a", "score": "0.6443412", "text": "public void add(Node n) {\n if (vector.contains(n)) { return; }\n vector.add(n);\n }", "title": "" }, { "docid": "446f0b08d986927f722b20db23bc3a1f", "score": "0.64075595", "text": "protected abstract Node generateNewNode(ArrayList<Node> nodelist);", "title": "" }, { "docid": "e5cfe565c3991fc413228099765527c8", "score": "0.640601", "text": "public void connectTo(Node<T> node){\r\n\t\tif(!subNodes.contains(node))\r\n\t\t\tsubNodes.add(node);\r\n\t}", "title": "" }, { "docid": "de6d19dea467f6d7b4f0bbd5a18f7ba9", "score": "0.64040613", "text": "public void addNode(DrawGraphNode node) {\n node.setNodeColor(DefaultNodeColor);\n node.setNodeFont(DefaultNodeFont);\n node.setNodeType(DefaultNodeType);\n Nodes.addElement(node);\n }", "title": "" }, { "docid": "6af92d31d5df1a86002161985c5a4007", "score": "0.6395844", "text": "public void addNeighbor(Node n) {\n\t\tneighbors.add(n);\n\t}", "title": "" }, { "docid": "906ff4c60a2bfacd5e626c4afce821e1", "score": "0.6384875", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static void addNode(BigInteger ip) {\n\t\t//System.out.println(\"addNode: \" + ip);\n\t\t\n\t\tif(isSharedNode(ip)) {\n\t\t\tSystem.out.println(\" it has already been a shared node!\");\n\t\t\tSystem.out.println(\" returns failed\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tNode shareNode = new Node(ip);\n\t\tBigInteger base = new BigInteger(\"2\");\n\t\tBigInteger moder = base.pow(bitNumber);\n\t\t\n\t\t// build finger table\n\t\tfor(int j=0; j<bitNumber; j++) {\n\t\t\tint index = j;\n\t\t\tBigInteger jThSuccessor = ip.add(base.pow(j)).mod(moder);\n\t\t\t\n\t\t\tFingerTableItem ftItem = new FingerTableItem(index, jThSuccessor, buildSuccessor(jThSuccessor, ip));\n\t\t\tshareNode.getFingerTable().add(ftItem);\n\t\t}\n\t\t\n\t\t\n\t\t// add new shared node into list\n\t\tsharedNodes.add(shareNode);\n\t\tCollections.sort(sharedNodes);\n\t\t\n\t\t// update successor of all shared nodes\n\t\tupdateSuccessor();\n\t\t\n\t\t//printShardNodesInfo();\n\t\t\n\t\tSystem.out.println(\" returns success\");\n\t}", "title": "" }, { "docid": "4e4b152703cb6760e46275a8ae162dc3", "score": "0.6362824", "text": "private void addNode(DoublyLinkedList node) {\n node.prev = head;\n }", "title": "" }, { "docid": "cf8a6b2b992ff1d1e4e3cb87c119f35f", "score": "0.63611895", "text": "@Override\r\n\tpublic void addChild(Node n) {\r\n\t\tchildren.add(n);\r\n\t}", "title": "" }, { "docid": "e9e613830b27a19b944f1d725aa86fbe", "score": "0.6351777", "text": "private void addIfNotPresent(SimpleGraphicNode node, List<SimpleGraphicNode> list)\n {\n for(int i=0; i<list.size(); i++)\n {\n if(list.get(i).equals(node))\n {\n return;\n }\n }\n list.add(node);\n }", "title": "" }, { "docid": "2b111670e503390e829c9b0e2974617c", "score": "0.6332505", "text": "public void AddInputNode() {\n }", "title": "" }, { "docid": "ff93fd632d589838704928942da042d4", "score": "0.63109976", "text": "public void addNode(String label)\n {\n addNode(label,0);\n }", "title": "" }, { "docid": "ca86870cec334aafeee4e73ceaba4d6c", "score": "0.63089466", "text": "public void add_node(String label) {\n\t\tif (!contains_node(label))\n\t\t\tm_nodes.add(new Node(label));\n\t}", "title": "" }, { "docid": "2b5a4325018d685ca983c25dd13c7c3a", "score": "0.63071895", "text": "public void addGraphNode(String name){\n // TODO implement this method\n \t//initialize a boolean to check whether there are duplicated items\n \tboolean isDup = false;\n \tfor(int i = 0; i < vlist.size(); i++){\n \t\tString check = vlist.get(i).getNodeName();\n \t\tif(check.equals(name)){\n \t\t\tisDup = true;\n \t\t}\n \t}\n \tif(!isDup){\n \t\tGraphNode newItem = new GraphNode(name);\n \t\tvlist.add(newItem);\n \t}\n }", "title": "" }, { "docid": "f016cfb42b40f92fabff27e520605efe", "score": "0.6306587", "text": "public abstract void insert(Node<E> current,Node<E> node);", "title": "" }, { "docid": "405b07190d84f5f060e0df86a416feec", "score": "0.62966645", "text": "public void add(Object item) {\n Node newNode = new Node(item);\n\n newNode.next = head;\n\n head = newNode;\n }", "title": "" }, { "docid": "f47e5eeea5eee10401fbdc1fadf226ee", "score": "0.62895334", "text": "public Node addNode(E data){\n\t/**The new node's array list.*/\n\tArrayList<Graph<V,E>.Edge> list = new ArrayList<Graph<V,E>.Edge>();\n /**The new node.*/\n Node node = new Node(data,list);\n nodeList.add(node);\n\treturn node;\n }", "title": "" }, { "docid": "0b41c6837f03f64ab8bc85a4eac4116e", "score": "0.62747467", "text": "private static void traverseAndAddToLinkedList(ListNode res) {\n\t\n }", "title": "" }, { "docid": "446e9938ee092536d7d2c1fa92cc4027", "score": "0.62723666", "text": "public void addGraphNode(String name){\n\t\tfor (int i =0; i < vlist.size(); i++) {\n\t\t\tif (vlist.get(i).getNodeName().equals(name)){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tvlist.add(new GraphNode(name));\n\t}", "title": "" }, { "docid": "718a011da564d408d52e0d23224b868a", "score": "0.6272297", "text": "public void addNode(Node newNode) {\n\t\tif (newNode == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (nodedict == null) {\n\t\t\tnodedict = new Hashtable();\n\t\t}\n\t\t/*\n\t\t * if (newNode.getSubgraph() != this) {Message.add(\n\t\t * \"A node was added to a graph that was not the same graph as given by the getSubGraph().\"\n\t\t * + \" This should be corrected using setSubgraph()\", Message.ERROR); }\n\t\t */\n\t\tnodedict.put(newNode.getName(), newNode);\n\t}", "title": "" }, { "docid": "660cae015c0ee6a851ebc28fad01100e", "score": "0.62599105", "text": "public void addNode(String fqn) { \n\t\t//check if it exists already and string is not null\n\t\tNode toAdd = new Node(fqn);\n\t\tif (fqn.isEmpty())\n\t\t\treturn;\n\t\telse if (nodes.contains(toAdd)){\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\tedges.put(toAdd, new HashSet<Node>());\n\t\t\tnodes.add(toAdd);\n\t\t}\n\t}", "title": "" }, { "docid": "011c95358992dbfb84c1c6456a6016b1", "score": "0.6259151", "text": "public void addNode(\n SemanticLabel label);", "title": "" }, { "docid": "ddc78ec1c1d10e9309fa4e4e3e91456b", "score": "0.624481", "text": "public Boolean AddNode(Node node) {\n if (node != null) {\n return mNodes.add(node);\n }\n return false;\n }", "title": "" }, { "docid": "1eac2c2a6adf3b32e528d33a9d1e2186", "score": "0.62387836", "text": "@POST\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.TEXT_PLAIN)\n\t@Path(\"/add\")\n\tpublic Response add(Node n){\n\t\n\t\tif(head==null){\n\t\t\thead = n;\n\t\t\treturn Response.status(200).entity(\"Added first node to the list successfully\").build();\n\t\t}\n\t\telse{\n\t\t\tNode cur = head;\n\t\t\twhile(cur.next!=null){\n\t\t\t\tcur = cur.next;\n\t\t\t}\n\t\t\tcur.next = n;\n\t\t\treturn Response.status(200).entity(\"Data added to list successfully\").build();\n\t\t}\n\t}", "title": "" }, { "docid": "16b6624e518266a570c2f294bc75a6a3", "score": "0.62377155", "text": "void openGTNode(Node n) {\r\n current_nodes.push(n);\r\n nodes.mark();\r\n }", "title": "" }, { "docid": "04ffc196fbcf484d9750dfb870d79f6d", "score": "0.62360954", "text": "public void addNode(Node node) {\n if (node != null) {\n Document document = node.getDocument();\n if (document == null || document == this) {\n contentList().add(node);\n childAdded(node);\n return;\n }\n StringBuffer stringBuffer = new StringBuffer(\"The Node already has an existing document: \");\n stringBuffer.append(document);\n throw new IllegalAddException((Branch) this, node, stringBuffer.toString());\n }\n }", "title": "" }, { "docid": "87453462ed40850c8930517becb05f94", "score": "0.62251097", "text": "public void addNeighbor(SensorNode neighbor){\r\n neighborNodes.add(neighbor);\r\n }", "title": "" }, { "docid": "e7b63ebf1669905fcdc20dd45c4ee441", "score": "0.62209207", "text": "public void add(Item item) {\n Node oldfirst = first;\n first = new Node();\n first.item = item;\n first.next = oldfirst;\n N++;\n }", "title": "" }, { "docid": "e7b63ebf1669905fcdc20dd45c4ee441", "score": "0.62209207", "text": "public void add(Item item) {\n Node oldfirst = first;\n first = new Node();\n first.item = item;\n first.next = oldfirst;\n N++;\n }", "title": "" }, { "docid": "9a52ddaefca7506bc7e08af6d303c7b3", "score": "0.6204297", "text": "public void putNode(String networkID, NodeInfo node) {\n\t\tList<NodeInfo> nodes = null;\n\t\tif ((nodes = peerSet.get(networkID)) != null) {\n\t\t\tnodes.add(node);\n\t\t} else {\n\t\t\tnodes = new ArrayList<NodeInfo>();\n\t\t\tnodes.add(node);\n\t\t\tpeerSet.put(networkID, nodes);\n\t\t}\n\t}", "title": "" }, { "docid": "fd9c078b118b77cef1a475126bf019fb", "score": "0.6199514", "text": "protected void _add(Object node) {\n\t\tif (!_gray.contains(node)) {\n\t\t\tif (node instanceof SootClass) {\n\t\t\t\tif (!_reachableClasses.contains(node)) {\n\t\t\t\t\t_gray.addLast(node);\n\t\t\t\t}\n\t\t\t} else if (node instanceof SootMethod) {\n\t\t\t\tif (!_reachableMethods.contains(node)) {\n\t\t\t\t\t_gray.addLast(node);\n\t\t\t\t}\n\t\t\t} else if (node instanceof SootField) {\n\t\t\t\tif (!_reachableFields.contains(node)) {\n\t\t\t\t\t_gray.addLast(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5ecaab56e9d3956dad92d474e2970cb2", "score": "0.618897", "text": "public void add(Item x) {\n Node newOne = new Node();\n newOne.val = x;\n newOne.next = head;\n head = newOne;\n N++;\n }", "title": "" }, { "docid": "8904f8cf6fff48324951a6a6abc4ba14", "score": "0.61752886", "text": "void installNodes(List<Address> nodes);", "title": "" }, { "docid": "92a09291c802346b307a2d108914dd25", "score": "0.61701965", "text": "private void addNode(DLinkedNode node) {\n node.prev = head;\n node.next = head.next;\n\n head.next.prev = node;\n head.next = node;\n }", "title": "" }, { "docid": "1cf888e5a495408cd35b0fa8d9270a02", "score": "0.615817", "text": "protected void _add(Collection nodes) {\n\t\tIterator i = nodes.iterator();\n\n\t\twhile (i.hasNext()) {\n\t\t\t_add(i.next());\n\t\t}\n\t}", "title": "" }, { "docid": "6f9f72acc986b65954f691c42b8562fd", "score": "0.6155731", "text": "public void add(DefaultTreeNode<TopicItem> parent, DefaultTreeNode<TopicItem>[] newNodes) {\r\n DefaultTreeNode<TopicItem> stn = (DefaultTreeNode<TopicItem>) parent;\r\n \r\n for (int i = 0; i < newNodes.length; i++)\r\n stn.getChildren().add(newNodes[i]);\r\n }", "title": "" }, { "docid": "e8925f42f0e414620871ba4f1b64c12b", "score": "0.6142537", "text": "public void insertNode(Node node) {\n\t\tif (node.getTask() == null)\n\t\t\treturn;\n\n\t\tnodes.add(node);\n\n\t\tif (node.getTask().getReadSet() != null)\n\t\t\t// create a read edge to the latest txn that writes that resource\n\t\t\tfor (RecordKey res : node.getTask().getReadSet()) {\n\t\t\t\tNode targetNode;\n\t\t\t\tif (parMeta.isFullyReplicated(res))\n\t\t\t\t\ttargetNode = sinkNodes[node.getPartId()];\n\t\t\t\telse\n\t\t\t\t\ttargetNode = getResourcePosition(res);\n\t\t\t\tnode.addReadEdges(new Edge(targetNode, res));\n\t\t\t\ttargetNode.addWriteEdges(new Edge(node, res));\n\t\t\t}\n\n\t\tif (node.getTask().getWriteSet() != null)\n\t\t\t// update the resource position\n\t\t\tfor (RecordKey res : node.getTask().getWriteSet())\n\t\t\t\tresPos.put(res, node);\n\t}", "title": "" }, { "docid": "be4252330adfdc20f9d75e5aed43d4c5", "score": "0.61325175", "text": "public abstract ArrayList<Node> mark(Node node);", "title": "" }, { "docid": "33bd315547f28fe49e9196f0a172292f", "score": "0.6112273", "text": "public void addToNode(TopicItemTreeNode node) {\r\n \t// save to database\r\n \tNoteNode note_added = noteService.addTopicAtLast(node.getData().getId(), QUtils.TOPIC_NEW_ITEM, QUtils.TOPIC_NEW_CONTENT, QUtils.getRandomIconURL());\r\n node.getChildren().add(new TopicItemTreeNode(new TopicItem(note_added), null, true));\r\n }", "title": "" }, { "docid": "dec2380639be623c620bfe3fde48de2f", "score": "0.6100633", "text": "private void add(Node node) {\n Node next = head.next;\n head.next = node;\n node.next = next;\n node.prev = head;\n next.prev = node;\n }", "title": "" }, { "docid": "c5ecf30d55b40c66a1120831ff713518", "score": "0.6099179", "text": "int addNode(String nodeLabel,int x, int y,Color color) {\n Node n = new Node(); // create contents of array \n n.x = x; \n n.y = y; \n n.color = color;\n n.nodeLabel = nodeLabel;\n nodes[numNodes] = n;\n n.id = numNodes;\n return numNodes++;\n }", "title": "" }, { "docid": "9eca50a4f3edae3d28f64c54ded21658", "score": "0.60930455", "text": "public void addNode(int i, Node node) {\n if (node != null) {\n Document document = node.getDocument();\n if (document == null || document == this) {\n contentList().add(i, node);\n childAdded(node);\n return;\n }\n StringBuffer stringBuffer = new StringBuffer(\"The Node already has an existing document: \");\n stringBuffer.append(document);\n throw new IllegalAddException((Branch) this, node, stringBuffer.toString());\n }\n }", "title": "" }, { "docid": "9246282e45b8f2824569a1d297baa82b", "score": "0.6088118", "text": "public boolean addNode(String name){\n\t\tif (this.nodeStorage.containsKey(name)==true){\n\t\t\tSystem.out.println(\"A node with that name is already in the graph.\");\n\t\t\treturn false; \n\t\t}\n\t\tNode inputNode = new Node(this.nodeIdAssign,name);\n\t\t//Add node to the nodeStorage hash map. Add an empty array list to the edgeStorage hash map for the new node.\n\t\tthis.nodeStorage.put(name, inputNode);\n\t\tthis.edgeStorage.put(name, new ArrayList<Edge>());\n\t\tthis.nodeIdAssign++;\n\t\tthis.nodeSize++;\n\t\tthis.nodeStoreOrdList.add(name);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "eacc8d9cd49a6c9f02382dede18ac890", "score": "0.60860544", "text": "public abstract void addNodes(final Map<Integer, PositionData> oldNodeMap);", "title": "" }, { "docid": "c1f21a1d59dd17bf861a3d691ada4555", "score": "0.6077893", "text": "@Test\n public void should_return_sole_added_node() {\n\n Node<Object> node = createNode();\n graph.addNode(node);\n\n Set<Node<Object>> allNodes = graph.getAllNodes();\n\n assertEquals(1, allNodes.size());\n assertEquals(node, allNodes.iterator().next());\n }", "title": "" }, { "docid": "6c4cfb87c964b78cfe9009d4b2f3748b", "score": "0.60760015", "text": "public Organization addNode(HfgwUserContext userContext, String organizationId, String name, String url, String channelId, String networkId, String tlsCacert, String typeId, String address, String contactPerson, String contactTelephone , String [] tokensExpr) throws Exception;", "title": "" }, { "docid": "87be54ad5f81dfcb38065e56ca5b4f30", "score": "0.6070192", "text": "public boolean addAllNodes(Collection<? extends Node> nodes);", "title": "" }, { "docid": "f07a15bb8da8c22d4d7521e13663192e", "score": "0.60697377", "text": "public void add(Node newNode) {\n\t root = addRecursive(root, newNode);\n\t}", "title": "" }, { "docid": "7dbe29d1133287e4cc3758b36a4d93a2", "score": "0.6068207", "text": "public IValueTreeNode addNode(String nameOfNodeToAdd, IValueTreeNode parent, float faction);", "title": "" }, { "docid": "42a35131f20aa4a679f7fed07c133508", "score": "0.6067673", "text": "public void add(Item item) {\r\n Node<Item> oldFirst = first;\r\n first = new Node<Item>();\r\n first.item = item;\r\n first.next = oldFirst;\r\n size++;\r\n }", "title": "" }, { "docid": "68073e3f213238a98681b7340ebc2ec7", "score": "0.6065507", "text": "public void addKey(Node node) {\n\t\tnodeKeys.put(node, true);\n\t}", "title": "" } ]
06f368c1a5de6d2c50aec2b002809e2c
This method initializes spinnerNumberModel
[ { "docid": "8799696b58140751f84b76d897f3e235", "score": "0.77528256", "text": "private SpinnerNumberModel getSpinnerNumberModel() {\n\t\tif (spinnerNumberModel == null) {\n\t\t\tspinnerNumberModel = new SpinnerNumberModel(1,1,6,1);\n\t\t}\n\t\treturn spinnerNumberModel;\n\t}", "title": "" } ]
[ { "docid": "a20c9567c57dd29101c8b6ea3878f471", "score": "0.7131041", "text": "private SpinnerNumberModel getSpinnerNumberModel1() {\n\t\tif (spinnerNumberModel1 == null) {\n\t\t\tspinnerNumberModel1 = new SpinnerNumberModel(1,1,3,1);\n\t\t}\n\t\treturn spinnerNumberModel1;\n\t}", "title": "" }, { "docid": "cf30db954f2566e9739b82dce2715582", "score": "0.6958747", "text": "private void setSpinner() {\n if (timer != null) timer.stop(); // Timer should be off\n size = (Integer)model.getNumber(); // Set size from spinner\n }", "title": "" }, { "docid": "974c2c51c67c178390df36bfaae4a61e", "score": "0.67486686", "text": "private SpinnerNumberModel getSpinnerNumberModel2() {\n\t\tif (spinnerNumberModel2 == null) {\n\t\t\tspinnerNumberModel2 = new SpinnerNumberModel(1,1,1000,1);\n\t\t}\n\t\treturn spinnerNumberModel2;\n\t}", "title": "" }, { "docid": "79f065e881bd633006b4ad6357346fac", "score": "0.66751534", "text": "private void initialize()\n {\n JComboBox combo = getComboBox();\n combo.setEditor(\n new NumberComboBoxEditor(\n Integer.parseInt((String) combo.getSelectedItem()), 3));\n combo.setEditable(true);\n }", "title": "" }, { "docid": "376db0b67a3bc2c5b438285d158f8922", "score": "0.6673674", "text": "private void initSpinner() {\n ArrayAdapter<CharSequence> resetScreenAdapter = ArrayAdapter.createFromResource(this,\n R.array.reset_screen_time, android.R.layout.simple_spinner_item);\n resetScreenAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n binding.scResetScreen.setAdapter(resetScreenAdapter);\n\n int resetScreenSelection = 0;\n switch (resetScreenTime) {\n case 0:\n resetScreenSelection = 0;\n break;\n case 1:\n resetScreenSelection = 1;\n break;\n case 3:\n resetScreenSelection = 2;\n break;\n case 5:\n resetScreenSelection = 3;\n break;\n }\n binding.scResetScreen.setSelection(resetScreenSelection);\n binding.scResetScreen.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (position) {\n case 0:\n resetScreenTime = 0;\n break;\n case 1:\n resetScreenTime = 1;\n break;\n case 2:\n resetScreenTime = 3;\n break;\n case 3:\n resetScreenTime = 5;\n break;\n }\n mSetting.setResetScreen(resetScreenTime);\n SysManager.saveSetting(mSetting);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n\n\n ArrayAdapter<CharSequence> matchSuiAdapter = ArrayAdapter.createFromResource(this,\n R.array.match_chapter_suitability, android.R.layout.simple_spinner_item);\n matchSuiAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n binding.scMatchChapterSuitability.setAdapter(matchSuiAdapter);\n\n if (matchChapterSuitability == 0.0) {\n matchChapterSuitability = 0.7f;\n mSetting.setMatchChapterSuitability(matchChapterSuitability);\n SysManager.saveSetting(mSetting);\n }\n int matchSuiSelection = (int) (matchChapterSuitability * 10 - 5);\n\n binding.scMatchChapterSuitability.setSelection(matchSuiSelection);\n\n binding.scMatchChapterSuitability.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n matchChapterSuitability = (position + 5) * 1f / 10f;\n mSetting.setMatchChapterSuitability(matchChapterSuitability);\n SysManager.saveSetting(mSetting);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n\n\n ArrayAdapter<CharSequence> catheGapAdapter = ArrayAdapter.createFromResource(this,\n R.array.cathe_chapter_gap, android.R.layout.simple_spinner_item);\n catheGapAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n binding.scCatheGap.setAdapter(catheGapAdapter);\n\n if (catheCap == 0) {\n catheCap = 150;\n mSetting.setCatheGap(catheCap);\n SysManager.saveSetting(mSetting);\n }\n int catheGapSelection = catheCap / 50 - 1;\n\n binding.scCatheGap.setSelection(catheGapSelection);\n\n binding.scCatheGap.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n catheCap = (position + 1) * 50;\n mSetting.setCatheGap(catheCap);\n SysManager.saveSetting(mSetting);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n }", "title": "" }, { "docid": "3bef4485f96dca802718280d534fd2c4", "score": "0.64633596", "text": "@Override\n public void initialize() {\n targetColor = spinner.getColor();\n lastColor = spinner.getColor();\n spinCount = 0;\n\n }", "title": "" }, { "docid": "72d99399944112757251f4f086b161de", "score": "0.6443337", "text": "private void initModel() {\n\t\tthis.timeValidator = new TimeValidator();\n\t}", "title": "" }, { "docid": "ec65d725a829e58805042c6a2b9905f6", "score": "0.6393939", "text": "private void initBallUnitSpinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(context,\n R.array.long_length_units_array, R.layout.spinner);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.spinner);\n // Apply the adapter to the spinner\n ballUnits.setAdapter(adapter);\n\n ballUnits.setOnItemSelectedListener(this);\n }", "title": "" }, { "docid": "9d847ab655669e92a19de6ccd1d81fa6", "score": "0.6325608", "text": "private void init() {\n spinnerDriver = (Spinner) mView.findViewById(R.id.sp_driver_name);\n txtCarno = (TextView) mView.findViewById(R.id.tv_car_number);\n txtCarType = (TextView) mView.findViewById(R.id.tv_car_type);\n btnAssign = (Button) mView.findViewById(R.id.btn_assign);\n btnAssign.setOnClickListener(this);\n }", "title": "" }, { "docid": "87c921a4906608986abfcc9306bbd409", "score": "0.6318445", "text": "private void setupPicker() {\n NumberPicker numberPicker = (NumberPicker) findViewById(R.id.numberPicker);\n numberPicker.setMinValue(2);\n numberPicker.setMaxValue(1000);\n }", "title": "" }, { "docid": "b607544e7716e8128ebfdf0758b7677f", "score": "0.6273446", "text": "private void init() {\n TextView tvOrderId = findViewById(R.id.tv_orderId);\n TextView tvCustomerId = findViewById(R.id.tv_customerId);\n TextView tvProductIds = findViewById(R.id.tv_productIds);\n TextView tvEmployeeId = findViewById(R.id.tv_employeeId);\n TextView tvOrderDate = findViewById(R.id.tv_orderDate);\n TextView tvOrderPrice = findViewById(R.id.tv_orderPrice);\n spinnerOrderStatus = findViewById(R.id.spinner_orderStatus);\n\n tvOrderId.setText(String.valueOf(order.getOrderId()));\n tvCustomerId.setText(order.getCustomerId());\n tvProductIds.setText(order.getProductNames());\n tvEmployeeId.setText(TextUtils.equals(order.getEmployeeId(), null) ? \"Not Assigned\" : order.getEmployeeId());\n tvOrderDate.setText(order.getOrderDate());\n tvOrderPrice.setText(String.valueOf(order.getPrice()));\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item,\n new String[]{Order.OrderStatus.PENDING.toString(), Order.OrderStatus.PROCESSED.toString()});\n adapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item);\n\n spinnerOrderStatus.setAdapter(adapter);\n if (TextUtils.equals(Order.OrderStatus.PENDING.toString(), order.getStatus())) {\n spinnerOrderStatus.setSelection(0);\n } else {\n spinnerOrderStatus.setSelection(1);\n }\n }", "title": "" }, { "docid": "0bcb924663f6a819dbec931979570818", "score": "0.62584203", "text": "private void initialize() {\n\t\tavailableTimeFractionModel.setValue(person.getAvailableTimeFraction());\n\t}", "title": "" }, { "docid": "2136a7030103bb8ed5c87be79cd7d66a", "score": "0.6257616", "text": "private void initialize() {\n DefaultComboBoxModel unitSelectionModel = new DefaultComboBoxModel(DataHolder.getSingleton().getUnits().toArray(new UnitHolder[]{}));\n jUnitSelectionBox.setModel(unitSelectionModel);\n jAmountField.setText(\"0\");\n jTroopsPerSplitList.setModel(new DefaultListModel());\n jUnitSelectionBox.setRenderer(new UnitListCellRenderer());\n jTroopsPerSplitList.setCellRenderer(new TroopAmountListCellRenderer());\n jSplitsList.setCellRenderer(new TroopSplitListCellRenderer());\n mSplitAmounts.fill(-1);\n isInitialized = true;\n \n //TODO re-check where everything is stored and sort correctly\n try {\n UserProfile profile = GlobalOptions.getSelectedProfile();\n jToleranceSlider.setValue(Integer.parseInt(\n profile.getProperty(\"tap.source.split.tolerance\")));\n } catch(Exception e) {\n jToleranceSlider.setValue(0);\n }\n }", "title": "" }, { "docid": "5fb6ef76c541c9f3728f162d51f49acd", "score": "0.6240745", "text": "private void initGaugeUnitSpinner() {\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(view.getContext(),\n R.array.gauge_units_array, R.layout.spinner);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.spinner);\n // Apply the adapter to the spinner\n gaugeUnits.setAdapter(adapter);\n\n gaugeUnits.setOnItemSelectedListener(this);\n }", "title": "" }, { "docid": "0e3b863acae5105b6c3ea1fdb1accd03", "score": "0.6237339", "text": "private void buildQuantitySpinner() {\n //init and bind quality spinner\n spinnerQuantity = (Spinner)view.findViewById(R.id.quantity);\n ArrayAdapter<CharSequence> dataAdapter = ArrayAdapter.createFromResource(getActivity(),\n R.array.quantity_items, android.R.layout.simple_spinner_item);\n spinnerQuantity.setAdapter(dataAdapter);\n }", "title": "" }, { "docid": "c19f588c2eb752a36bc1c7e5be9e7d9f", "score": "0.6232992", "text": "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter genderSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_prices, android.R.layout.simple_spinner_item);\n // Specify dropdown layout style - simple list view with 1 item per line\n genderSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // Apply the adapter to the spinner\n mPriceSpinner.setAdapter(genderSpinnerAdapter);\n // Set the integer mSelected to the constant values\n mPriceSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.price_one))) {\n mPrice = ProductEntry.PRICE_ONE;\n } else if (selection.equals(getString(R.string.price_two))) {\n mPrice = ProductEntry.PRICE_TWO;\n } else {\n mPrice = ProductEntry.PRICE_THREE;\n }\n }\n }\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mPrice = ProductEntry.PRICE_THREE;\n }\n });\n }", "title": "" }, { "docid": "cef2bac5bd64a12bcd7ff195a465a11a", "score": "0.62089294", "text": "private void initDataNumberShake() {\n List<Integer> numbers = new ArrayList<Integer>();\n for (int i = 0; i < 10; i++) {\n numbers.add(i + 1);\n }\n\n // Creating adapter for spinner\n ArrayAdapter<Integer> dataAdapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_spinner_item, numbers);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n spinnerNumberShake.setAdapter(dataAdapter);\n spinnerNumberShake.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n int number = i;\n if (mUserSetting == null) {\n mUserSetting = new UserSetting();\n }\n mUserSetting.setNumberShake(number);\n sharedPreferences.putObject(SharePreferenceHelper.Key.KEY_USER_SETTING, mUserSetting);\n if (!isFirstLoad) {\n Snackbar snackbar = Snackbar.make(layoutMain, getResources().getString(R.string.text_updated), Snackbar.LENGTH_LONG);\n snackbar.show();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n // int selected = sharedPreferences.getInt(SharePreferenceHelper.Key.NUMBERSHAKE, 0);\n int selected = mUserSetting != null ? mUserSetting.getNumberShake() : 0;\n spinnerNumberShake.setSelection(selected);\n }", "title": "" }, { "docid": "6a6c3d75f03c53e64e93bae5cc842994", "score": "0.6196923", "text": "private void initSpinner(){\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mContext,\r\n R.array.spinner_array, R.layout.spinner_item);\r\n // Specify the layout to use when the list of choices appears\r\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n // Apply the adapter to the spinner\r\n mSpinner.setAdapter(adapter);\r\n mSpinner.setSelection(4,true);\r\n }", "title": "" }, { "docid": "76f0063082953a63e951f95c74000b5d", "score": "0.614886", "text": "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter lengthSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_board_type_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n lengthSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mLengthSpinner.setAdapter(lengthSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mLengthSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.board_length_short))) {\n mLength = BoardsEntry.BOARD_TYPE_SHORT;\n } else if (selection.equals(getString(R.string.board_length_long))) {\n mLength = BoardsEntry.BOARD_TYPE_LONG;\n } else {\n mLength = BoardsEntry.BOARD_TYPE_NOT_SPECIFIED;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mLength = BoardsEntry.BOARD_TYPE_NOT_SPECIFIED;\n }\n });\n }", "title": "" }, { "docid": "0694bbc09cf8a2c2fa8e821738c6d62e", "score": "0.61287755", "text": "@FXML\r\n\tprivate void initialize() {\r\n\t\t\r\n\t\tSpinnerValueFactory<Double> ValueFactory = new SpinnerValueFactory.DoubleSpinnerValueFactory(0.0, 10000.0, 0.0);\r\n\t\tpreco_Produto.setValueFactory(ValueFactory);\r\n\t\tpreco_Produto.setEditable(true);\r\n\t\r\n\t\t//Adicionar as Categorias na comboBox da Categoria\r\n\t\tcategoriaProduto.setItems(ProdutoDAO.getCategoriasProdutos());\r\n\t\t\r\n\t\t//Adiciona todos os produtos que a loja tem na listview\r\n\t\tprodutosLoja(LoginUtilizadorController.lojaID);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e8f005ab7ab5ab97e00451aa311009f6", "score": "0.6109872", "text": "private void initSpinners() {\n\t\tArrayAdapter<String> artistAdapter \n\t\t= new ArrayAdapter<String>(controller,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item,\n\t\t\t\tartists);\n\t\tartistSpinner.setAdapter(artistAdapter);\n\t\tartistSpinner.setLayoutParams(spinnerParams);\n\t\tartistSpinner.setOnItemSelectedListener(new ArtistSpinnerListener());\n\t\t// Create the album spinner\n\t\tArrayAdapter<String> albumAdapter \n\t\t= new ArrayAdapter<String>(controller,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item,\n\t\t\t\talbums);\n\t\talbumSpinner.setAdapter(albumAdapter);\n\t\talbumSpinner.setLayoutParams(spinnerParams);\n\t\talbumSpinner.setOnItemSelectedListener(new AlbumSpinnerListener());\n\t\t// Create the song spinner\n\t\tArrayAdapter<String> songAdapter \n\t\t= new ArrayAdapter<String>(controller,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item,\n\t\t\t\tsongs);\n\t\tsongSpinner.setAdapter(songAdapter);\n\t\tsongSpinner.setLayoutParams(spinnerParams);\n\t\tsongSpinner.setOnItemSelectedListener(new SongSpinnerListener());\n\t}", "title": "" }, { "docid": "52400bbf8895186d113cb6b16b02b463", "score": "0.6095998", "text": "private void setSpinners() {\n ArrayAdapter<CharSequence> adapterMonth = ArrayAdapter.createFromResource(this,\n R.array.months, android.R.layout.simple_spinner_item);\n ArrayAdapter<CharSequence> adapterDay = ArrayAdapter.createFromResource(this,\n R.array.days, android.R.layout.simple_spinner_item);\n ArrayAdapter<CharSequence> adapterYear = ArrayAdapter.createFromResource(this,\n R.array.years, android.R.layout.simple_spinner_item);\n adapterMonth.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n adapterDay.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n adapterYear.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n daySpinner.setAdapter(adapterDay);\n monthSpinner.setAdapter(adapterMonth);\n yearSpinner.setAdapter(adapterYear);\n }", "title": "" }, { "docid": "50887709c8474ec99ad2c7a7fffdef8c", "score": "0.60603493", "text": "public void initCurrencySpinner() {\n List<String> list = new ArrayList<String>();\n\n list.add(getResources().getString(R.string.tenge));\n list.add(getResources().getString(R.string.dollar));\n list.add(getResources().getString(R.string.euro));\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(getApplicationContext(),\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n currency.setAdapter(dataAdapter);\n }", "title": "" }, { "docid": "1ae9d61aff7a721288c4167bd712a063", "score": "0.60336775", "text": "private void populateSpinners() {\n\t\tArrayAdapter<CharSequence> fAdapter;\n\t\tfAdapter = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.update_freq_options,\n\t\t\t\tandroid.R.layout.simple_spinner_item);\n\t\tfAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tupdateFreqSpinner.setAdapter(fAdapter);\n\n\t\t// Populate the minimum magnitude spinner\n\t\tArrayAdapter<CharSequence> mAdapter;\n\t\tmAdapter = ArrayAdapter\n\t\t\t\t.createFromResource(this, R.array.magnitude_options,\n\t\t\t\t\t\tandroid.R.layout.simple_spinner_item);\n\t\tmAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tmagnitudeSpinner.setAdapter(mAdapter);\n\t}", "title": "" }, { "docid": "eb314cda0bf1f82b393e9deeb0bb4952", "score": "0.59808296", "text": "private void initYarnUnitSpinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(context,\n R.array.long_length_units_array, R.layout.spinner);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.spinner);\n // Apply the adapter to the spinner\n yarnUnits.setAdapter(adapter);\n\n yarnUnits.setOnItemSelectedListener(this);\n }", "title": "" }, { "docid": "66cced6bdefed05351d8e837ba0e0fad", "score": "0.5963946", "text": "private void setUpSpinner() {\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line, exercises.getEXERCISES_LIST(this));\n spinner.setAdapter(adapter);\n\n spinner.setSelection(0);\n\n spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener() {\n @Override\n public void onItemSelected(MaterialSpinner materialSpinner, View view, int i, long l) {\n Log.d(TAG, \"Selected \" + materialSpinner.getSelectedItem().toString());\n\n statsService.setUpChart(chart, materialSpinner.getSelectedItem().toString(), progressBar);\n\n }\n\n @Override\n public void onNothingSelected(MaterialSpinner materialSpinner) {\n\n }\n });\n }", "title": "" }, { "docid": "f05e0c65c6c33c2c27c4f0c4ec72108f", "score": "0.5954973", "text": "public void initializeSpinners(){\n Spinner spinner = (Spinner) findViewById(R.id.what_to_do_spinner);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.what_to_do_array, android.R.layout.simple_spinner_item);\n spinner.setAdapter(adapter);\n }", "title": "" }, { "docid": "3cc11fcd089863ad59f800e3de6febb8", "score": "0.59506243", "text": "private void handleModelSpinner(){\n Spinner modelSpinner = (Spinner) findViewById(R.id.modelSpinner);\n if (modelSpinner != null) {\n modelSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n modelChosen = (String) parent.getItemAtPosition(position);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n modelChosen = null;\n }\n });\n }\n }", "title": "" }, { "docid": "9ead372d5726437da68f8a29de2b389f", "score": "0.59289545", "text": "@Override\n public void populateModelsSpinner(ArrayList<String> modelsData) {\n ArrayAdapter<String> yearDataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, modelsData);\n // Drop down layout style - list view with radio button\n yearDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // attaching data adapter to spinner\n spnr_mode_select.setAdapter(yearDataAdapter);\n\n //Set the listener for when each option is clicked.\n spnr_mode_select.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()\n {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id)\n {\n ((TextView) view).setTextColor(vehicle_unselect_color);\n ((TextView) view).setTextSize(14);\n ((TextView) view).setTypeface(appTypeface.getPro_News());\n modelIndex = position;\n presenter.validateSavingVehicle(yearIndex,makeIndex,modelIndex,et_color_select.getText().toString());\n }\n @Override\n public void onNothingSelected(AdapterView<?> parent)\n {\n }\n });\n }", "title": "" }, { "docid": "2b4eb2fd96cdeeb457f8a3b47d28cf2d", "score": "0.5927114", "text": "private void prepareSpinner() {\n\n ArrayAdapter<CharSequence> mBitrateAdapter = ArrayAdapter.createFromResource(getContext(), R.array.prefs_entries_video_bitrate, R.layout.simple_list_item);\n ArrayAdapter<CharSequence> mEncoderAdapter = ArrayAdapter.createFromResource(getContext(), R.array.prefs_entries_video_encoder, R.layout.simple_list_item);\n ArrayAdapter<CharSequence> mOutputFormatAdapter = ArrayAdapter.createFromResource(getContext(), R.array.prefs_entries_output_format, R.layout.simple_list_item);\n\n mBitrateSpinner.setAdapter(mBitrateAdapter);\n mEncoderSpinner.setAdapter(mEncoderAdapter);\n mOutputFormatSpinner.setAdapter(mOutputFormatAdapter);\n }", "title": "" }, { "docid": "9102b8981276aa1a2a56982dd029e473", "score": "0.58839685", "text": "@FXML\n private void initialize() {\n slider.majorTickUnitProperty().bind(\n slider.maxProperty()\n .subtract(slider.minProperty())\n .divide(4));\n slider.valueProperty().bindBidirectional(dataProperty());\n }", "title": "" }, { "docid": "c660b03a79afecfb0f2da19475b9b5f1", "score": "0.5869417", "text": "private void init() {\n roundProgressBar_01 = (RoundProgressBar01) findViewById(R.id.roundProgressBar_01);\n roundProgressBar_01.setStyle(TIME_TICKER);\n roundProgressBar_01.setProgress(1);\n progress = 1;\n\n }", "title": "" }, { "docid": "60f318bf1e755437c4f671edb748f01c", "score": "0.5842388", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJSpinner spinner = new JSpinner();\n\t\tspinner.setBounds(52, 67, 30, 20);\n\t\tframe.getContentPane().add(spinner);\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(32, 165, 258, 85);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\tJButton btnNewButton = new JButton(\"Continuar\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint numero= (int) spinner.getValue();\n\t\t\t\tint i,j;\n\t\t\t\t boolean esPrimo;\n\t\t\t\t\n\t\t\t\t int rFinal = numero;\n\t\t\t\t int numeros;\n\t\t\t\t String strMatriz = \"\";\n\t\t\t\t for(i =2;i <= rFinal;i++){//empiezo desde el 2 ya que el 1 y el 0 no son primos\n\t\n\t\t\t\t esPrimo=true;\n\t\t\t\t for(j = 2;j < i;j++){\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t if(i % j == 0){\n\t\t\t\t esPrimo = false;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t \t\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if(esPrimo){\n\t\t\t\t \t String numCadena= j+\"\";\n\t\t\t\t\t\t strMatriz+= \"\\n\";\n\t\t\t\t\t \t strMatriz+= numCadena;\n\t\t\t\t\t \t textField.setText( strMatriz );\n\t\t\t\t \t String numCadena1= j+\"\";\n\t\t\t\t\t\t\tSystem.out.println(numCadena1);\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\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tbtnNewButton.setBounds(29, 123, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "5d7b0bacf838c98c6cc2b5fe49f8a06d", "score": "0.58380824", "text": "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter genderSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_gender_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n genderSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mGenderSpinner.setAdapter(genderSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mGenderSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.gender_male))) {\n mGender = PetEntry.GENDER_MALE; // Male\n } else if (selection.equals(getString(R.string.gender_female))) {\n mGender = PetEntry.GENDER_FEMALE; // Female\n } else {\n mGender = PetEntry.GENDER_UNKNOWN; // Unknown\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mGender = 0; // Unknown\n }\n });\n }", "title": "" }, { "docid": "3dac13cec666857b1c74e1193e831b2b", "score": "0.5830836", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // force the field to be numeric only\n textFieldCodigoInvitacion.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n if (!newValue.matches(\"\\\\d*\")) {\n textFieldCodigoInvitacion.setText(newValue.replaceAll(\"[^\\\\d]\", \"\"));\n }\n }\n });\n }", "title": "" }, { "docid": "ba45c67bb1a302e2521c209fde52e2c6", "score": "0.5819245", "text": "private void init() {\n sidesLabel = new JLabel(\"Number of sides:\");\n sidesField = new JSpinner(new SpinnerNumberModel(0, 0, 100, 1));\n sidesField.setValue(6);\n\n String[] colors = {\"Black\", \"Random\"};\n colorCombo = new JComboBox(colors);\n\n String[] shape = {\"Regular Polygon\", \"Ellipse\", \"Graph\"};\n shapeCombo = new JComboBox(shape);\n\n graphLabel = new JLabel(\"Graph:\");\n String[] graph = {\"Nodes\", \"Edges\"};\n graphCombo = new JComboBox(graph);\n\n add(sidesLabel);\n add(sidesField);\n add(colorCombo);\n add(shapeCombo);\n add(graphLabel);\n add(graphCombo);\n }", "title": "" }, { "docid": "fd903faebcc8645b5e92121e48032804", "score": "0.5816897", "text": "private void setUpSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter prioritySpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_priority_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n prioritySpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mPrioritySpinner.setAdapter(prioritySpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mPrioritySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.priority_medium))) {\n mPriority = TaskEntry.PRIORITY_MEDIUM;\n } else if (selection.equals(getString(R.string.priority_high))) {\n mPriority = TaskEntry.PRIORITY_HIGH;\n } else if (selection.equals(getString(R.string.priority_critical))) {\n mPriority = TaskEntry.PRIORITY_CRITICAL;\n } else {\n mPriority = TaskEntry.PRIORITY_LOW;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mPriority = TaskEntry.PRIORITY_LOW;\n }\n });\n }", "title": "" }, { "docid": "b996189c88c939937b76638c08c625d0", "score": "0.57953", "text": "@FXML\n private void initialize() {\n // define the limitation of each text field\n ageText.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n if (!newValue.matches(\"\\\\d{0,3}([\\\\.]\\\\d{0,4})?\")) {\n ageText.setText(oldValue);\n }\n }\n });\n sexSelect.setItems(FXCollections.observableArrayList(\"All\", \"F\", \"M\"));\n sexSelect.setValue(\"All\");\n sexSelect.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n }\n });\n\n setEntry(this.entry);\n }", "title": "" }, { "docid": "75b7fbac343b80faf06530c1059b4085", "score": "0.577119", "text": "private void initPartialBallSpinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(context,\n R.array.partial_ball_array, R.layout.spinner);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.spinner);\n // Apply the adapter to the spinner\n partialBalls.setAdapter(adapter);\n\n partialBalls.setOnItemSelectedListener(this);\n }", "title": "" }, { "docid": "607bf72cf3bf9a8ec6a2923c119e9c68", "score": "0.57704616", "text": "public NumberTranslatorGui() {\n initComponents();\n }", "title": "" }, { "docid": "f4b0803e0e661ae7fc8906bbfc86d4ae", "score": "0.57611465", "text": "public SpinEditor()\r\n {\r\n // set default spin editor characteristics\r\n setPrefixSuffix( null, null );\r\n setFormat( \"0\" );\r\n setRange( 0.0, 999.0, 0 );\r\n setStepPage( 1.0, 10.0 );\r\n setButtonType( ButtonType.UP_DOWN );\r\n\r\n // react to key presses and button mouse clicks\r\n setOnKeyPressed( event -> keyPressed( event ) );\r\n getButton().setOnMousePressed( event -> buttonPressed( event ) );\r\n\r\n // add listener to set control error state and remove any excess leading zeros\r\n textProperty().addListener( ( observable, oldText, newText ) ->\r\n {\r\n // if spinner value not in range, set control into error state\r\n double num = getDouble();\r\n if ( num < m_minValue || num > m_maxValue || getText().length() < 1 )\r\n JPlanner.setError( this, m_rangeError );\r\n else\r\n JPlanner.setNoError( this, \"\" );\r\n } );\r\n\r\n }", "title": "" }, { "docid": "0ea0866fb2c17af80d4a0e5c906f8b4c", "score": "0.5759347", "text": "private void initializeSpinner(){\n /**\n External Citation\n Date: 23 Sept. 2018\n Problem: Needed to set the contents of spinnerHairStyle\n Resource:\n https://developer.android.com/guide/topics/ui/controls/spinner\n Solution: Using ArrayAdapter to create spinner\n */\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(\n this, R.array.hair_styles, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner = findViewById(R.id.spinnerHairStyle);\n spinner.setAdapter(adapter);\n spinner.setOnItemSelectedListener(new StyleSpinnerListener());\n spinner.setSelection(face.getHairStyle());\n }", "title": "" }, { "docid": "d18893d09cd304857689acf2dc327e49", "score": "0.57553196", "text": "private void setSpinnerOptions(){\n //Create list of our tests\n final String[] items = {\"Select Item\",\"Add\",\"Subtract\",\"Multiply\",\"Divide\",\"Compare To\",\n \"Equals\",\"Reciprocal\",\"To Double\", \"Set Fraction\"};\n\n //Create Array Adapter for spinner\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item,\n items);\n\n //Set adapter to spinner\n spinner.setAdapter(adapter);\n }", "title": "" }, { "docid": "433ce5d1c3ee327877fec4ba2600993d", "score": "0.57538843", "text": "private void fillSpinnerData() {\n\t String[] from = new String[] { ListTable.COLUMN_NAME_LIST };\n\t // Fields on the UI to which we map\n\t int[] to = new int[] { android.R.id.text1 };\n\n\t getLoaderManager().initLoader(0, null, this);\n\t adapter = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, null, from, to, 0);\n\t adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t \n\t mCategorySpinner.setAdapter(adapter);\n\t}", "title": "" }, { "docid": "c135c566332f05c0e997d570f1519e41", "score": "0.5749909", "text": "private void init() {\n\t\tsp = (Spinner) findViewById(R.id.sp_fenrun);\n\t\t// rg = (RadioGroup) findViewById(R.id.rg_fenrun);\n\t\ttvHuizongAccount = (TextView) findViewById(R.id.tv_fenrun_huizongAccount);\n\t\ttvFenRunAccount = (TextView) findViewById(R.id.tv_fenrun_allAccount);\n\t\t// btnFenRun = (Button) findViewById(R.id.btn_fenrun_mx);\n\t\t// btnSearch = (Button) findViewById(R.id.btn_fenrun_query);\n\t\ttitle = (CommonTitleBar) findViewById(R.id.titlebar_fenrun);\n\t\ttitle.setActName(\"分润查询\");\n\t\ttitle.setCanClickDestory(this, true);\n\t\tqueryFenrun();\n\t\taddSpinner();\n\n\t}", "title": "" }, { "docid": "e1a9af66c9b1b5dd34d6e7c0e44690ec", "score": "0.57466817", "text": "private void setupSpinner() {\n\n ArrayAdapter typeSpinnerAdapter = ArrayAdapter.createFromResource(this, R.array.array_type_options, android.R.layout.simple_spinner_item);\n typeSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n mSpinnerType.setAdapter(typeSpinnerAdapter);\n\n mSpinnerType.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n\n if (selection.equals(getString(R.string.type_other))) {\n mType = StoreEntry.TYPE_OTHER;\n } else if (selection.equals(getString(R.string.type_hardcover))) {\n mType = StoreEntry.TYPE_HARDCOVER;\n } else if (selection.equals(getString(R.string.type_paperback))) {\n mType = StoreEntry.TYPE_PAPERBACK;\n } else if (selection.equals(getString(R.string.type_ebook))) {\n mType = StoreEntry.TYPE_EBOOK;\n } else if (selection.equals(getString(R.string.type_audio))) {\n mType = StoreEntry.TYPE_AUDIO;\n }\n\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mType = 0;\n }\n });\n }", "title": "" }, { "docid": "acf01ef1b51f57582f5cfedbed1a82a8", "score": "0.57441664", "text": "private void initTransactionTypeSpinner() {\n Spinner spinner = (Spinner) this.findViewById(R.id.addTransaction_input_transactionType);\n AddTransactionActivity.this.mTransactionTypeIcon =\n (ImageView) this.findViewById(R.id.addTransaction_icon_transactionType);\n\n spinner.setAdapter(ArrayAdapter.createFromResource(this,\n R.array.addTransaction_input_transactionType,\n android.R.layout.simple_spinner_dropdown_item\n ));\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n AddTransactionActivity.this.mTransactionType = (position == 0 ? -1 : 1);\n int icon = (position == 0 ? R.drawable.ic_remove_circle_red_900_24dp\n : R.drawable.ic_add_circle_green_900_24dp);\n AddTransactionActivity.this.mTransactionTypeIcon.setImageResource(icon);\n Log.i(TAG, \"selected transaction type \" + position);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {}\n });\n }", "title": "" }, { "docid": "1ced386a594447908db27caa74f717eb", "score": "0.57421994", "text": "public void setUpSpinner() {\n\n ArrayAdapter spinnerArrayAdapter = ArrayAdapter.createFromResource(this, R.array.event_array, R.layout.spinner_edit);\n spinner.setAdapter(spinnerArrayAdapter);\n }", "title": "" }, { "docid": "5abdf4dc78fda82e9454545900cf96c1", "score": "0.5740429", "text": "@Override\r\n // Initializes the View\r\n public void initialize(URL url, ResourceBundle rb) {\n inputCurrency.setItems(FXCollections.observableArrayList(a, b, c));\r\n inputCurrency.setValue(a);\r\n currency = inputCurrency.getValue();\r\n try {\r\n start();\r\n } catch (IOException ex) {\r\n Logger.getLogger(FXMLDocumentController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(FXMLDocumentController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (Exception ex) {\r\n Logger.getLogger(FXMLDocumentController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "6ed74699633c848fac81e9de805946e8", "score": "0.57382035", "text": "private void setUpSpinner() {\r\n appProgramTypes = new ArrayList<>();\r\n appProgramTypeSpinnerAdapter = new AppProgramTypeSpinnerAdapter(getActivity(), R.layout.spinner_category_item, appProgramTypes);\r\n spinner.setAdapter(appProgramTypeSpinnerAdapter);\r\n }", "title": "" }, { "docid": "757436153b3eb6774c3913f5d3e1f680", "score": "0.57290804", "text": "public void initialize() {\n // listener for changes to degreesSlider's value\n degreesSlider.snapToTicksProperty();\n degreesSlider.valueProperty().addListener(new ChangeListener<Number>() {\n \n @Override\n public void changed(final ObservableValue<? extends Number> ov, final Number oldValue,\n final Number newValue) \n { \n //change text fields and convert to Celcius\n Integer newValueAsInt = newValue.intValue();\n degreesF.setText(newValueAsInt.toString()); \n degreesC.setText(changeToCelcius(newValueAsInt).setScale(0, RoundingMode.CEILING).toString()); \n }\n }\n );\n }", "title": "" }, { "docid": "cbc281b48c2e731471de9ed6e104b993", "score": "0.57254183", "text": "protected void initValues() {\n name = (TextView) view.findViewById(R.id.name);\n image = (ImageView) view.findViewById(R.id.image);\n gridLayout = (GridLayout) view.findViewById(R.id.gridLayout);\n gaugeText = (EditText) view.findViewById(R.id.editGauge);\n gaugeUnits = (Spinner) view.findViewById(R.id.gaugeUnitsSpinner);\n yarnNeeded = (TextView) view.findViewById(R.id.yarnNeededText);\n yarnUnits = (Spinner) view.findViewById(R.id.yarnUnitsSpinner);\n ballSize = (EditText) view.findViewById(R.id.editBallSize);\n ballUnits = (Spinner) view.findViewById(R.id.ballSizeSpinner);\n ballsNeeded = (TextView) view.findViewById(R.id.ballsNeededText);\n partialBalls = (Spinner) view.findViewById(R.id.ballFractSpinner);\n }", "title": "" }, { "docid": "a552d1f2563a966446b639653c026c6b", "score": "0.5722899", "text": "private void setupSpinner(){\n ArrayAdapter genderSpinneradapter = ArrayAdapter.createFromResource(this, R.array.array_gender_options, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n genderSpinneradapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n mGenderSpiner.setAdapter(genderSpinneradapter);\n //Set the int mGender to the constant value\n mGenderSpiner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if(!TextUtils.isEmpty(selection)) {\n if(selection.equals(\"Male\"))\n mGender = PetEntry.GENDER_MALE; //Male\n else if(selection.equals(\"Female\"))\n mGender = PetEntry.GENDER_FEMALE; //Female\n else\n mGender = PetEntry.GENDER_UNKNOWN; //Unknown\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> parent) {mGender = 0;}\n });\n }", "title": "" }, { "docid": "95cdad9899a49992c77788e112ae9c6f", "score": "0.5717662", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblSpn = new javax.swing.JSpinner();\n lblBtn = new javax.swing.JButton();\n lblFrase = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lblSpn.setModel(new javax.swing.SpinnerNumberModel(0, 0, 5, 1));\n getContentPane().add(lblSpn, new org.netbeans.lib.awtextra.AbsoluteConstraints(51, 242, -1, -1));\n\n lblBtn.setText(\"CHUTAR\");\n lblBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lblBtnActionPerformed(evt);\n }\n });\n getContentPane().add(lblBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(31, 292, -1, -1));\n\n lblFrase.setText(\"Qual numero estou pensando?\");\n getContentPane().add(lblFrase, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 50, -1, 10));\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(15, 30, 220, 100));\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 130, 200, 190));\n\n pack();\n }", "title": "" }, { "docid": "1df843ac2f92ab02922997b7d697c465", "score": "0.5706987", "text": "public void initialize() {\n // Bind Cancel button action\n btnCancel.setOnAction((event -> {\n try {\n handleCancelButtonAction(event);\n } catch (Exception e){\n e.printStackTrace();\n }\n }));\n\n // Bind Save button action\n btnSave.setOnAction((event -> {\n try {\n handleSaveButtonAction(event);\n } catch (Exception e){\n e.printStackTrace();\n }\n }));\n\n // rbInHouse Selected Binding\n rbInHouse.setOnAction((event -> {\n try {\n handleRadioButtonSelected(event);\n } catch (Exception e){\n e.printStackTrace();\n }\n }));\n\n // rbOutsourced Selected Binding\n rbOutsourced.setOnAction((event -> {\n try {\n handleRadioButtonSelected(event);\n } catch (Exception e){\n e.printStackTrace();\n }\n }));\n\n // Min < Max Binding\n tfMin.setOnKeyReleased(keyEvent -> {\n try {\n handleMinMaxEndKey(keyEvent);\n } catch (Exception e){\n e.printStackTrace();\n }\n });\n\n // Max > Min Binding\n tfMax.setOnKeyReleased(keyEvent -> {\n try {\n handleMinMaxEndKey(keyEvent);\n } catch (Exception e){\n e.printStackTrace();\n }\n });\n\n // Inv Binding\n tfInv.setOnKeyReleased(keyEvent -> {\n try {\n handleInvEndKey(keyEvent);\n } catch (Exception e){\n e.printStackTrace();\n }\n });\n\n // Text Formatter Binding\n tfName.setTextFormatter(new TextFormatter<String>(Helper.TextHelper.nonNumericFilter));\n tfID.setTextFormatter(new TextFormatter<String>(Helper.TextHelper.numericFilter));\n tfInv.setTextFormatter(new TextFormatter<String>(Helper.TextHelper.numericFilter));\n tfMin.setTextFormatter(new TextFormatter<String>(Helper.TextHelper.numericFilter));\n tfMax.setTextFormatter(new TextFormatter<String>(Helper.TextHelper.numericFilter));\n tfPriceCost.setTextFormatter(new TextFormatter<>(Helper.TextHelper.decimalFilter));\n }", "title": "" }, { "docid": "a8db6c6b629b252ec84b9cd392b344c4", "score": "0.5700009", "text": "private void initRates() {\n Collection<RateParameter> rateParameters = netController.getRateParameters();\n String[] ids = new String[rateParameters.size() + 1];\n\n ids[0] = NO_RATE_PARAMETER;\n int index = 1;\n for (RateParameter rateParameter : rateParameters) {\n ids[index] = rateParameter.toString();\n indexToRates.put(index, rateParameter);\n index++;\n }\n\n rateComboBox.setModel(new DefaultComboBoxModel<>(ids));\n if (transitionController.isTimed()) {\n rateComboBox.setEnabled(true);\n }\n }", "title": "" }, { "docid": "4e76df0e3a3c759e468ce666c27c081e", "score": "0.5688272", "text": "private void buildBinderSpinner() {\n //get all binders from bdd.\n BinderSQLiteAdapter binderSqlAdapter = \n new BinderSQLiteAdapter(getActivity());\n binderSqlAdapter.open();\n ArrayList<Binder> binderList = binderSqlAdapter.getAll();\n binderSqlAdapter.close();\n //init and bind binder spinner\n spinnerBinder = (Spinner)view.findViewById(R.id.binder);\n ArrayAdapter<Binder> dataAdapter = new ArrayAdapter<Binder>(getActivity(),\n android.R.layout.simple_spinner_item, binderList);\n spinnerBinder.setAdapter(dataAdapter);\n }", "title": "" }, { "docid": "d7eb24d04dce2c072d73c0880c18de2c", "score": "0.5684753", "text": "private void initPaymentTypeSpinner() {\n Spinner spinner = (Spinner) this.findViewById(R.id.addTransaction_input_paymentType);\n String[] options = this.getResources().getStringArray(R.array.payment_types);\n\n PaymentTypeSpinnerAdapter adapter = new PaymentTypeSpinnerAdapter(this, options);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n spinner.setAdapter(adapter);\n spinner.setOnItemSelectedListener(adapter);\n }", "title": "" }, { "docid": "3ccb0c9758c2a0a51990ddc36bcf151f", "score": "0.56702864", "text": "private void setupSpinner(){\n Spinner diceSpinner = (Spinner) findViewById(R.id.spinner);\n Integer[] dice = new Integer[] {4,6,8,10,12,20};\n ArrayAdapter<Integer> adapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_spinner_item, dice);\n diceSpinner.setAdapter(adapter);\n }", "title": "" }, { "docid": "a2b8ca970b1f4a0cfd8ddf4122f55669", "score": "0.56690544", "text": "public SpinnerCellEditor()\r\n\t{\r\n\t\tsuper(new JTextField());\r\n\t\tspinner = new JSpinner(new SpinnerNumberModel());\r\n\t\t// This line is necessary so the spinner goes away after the first press of the enter key\r\n\t\t((JSpinner.NumberEditor)spinner.getEditor()).getTextField().addActionListener((e) -> stopCellEditing());\r\n\t}", "title": "" }, { "docid": "91826b6687566b88468a41eaa9ac0bfd", "score": "0.5668796", "text": "private void initView() {\n View v = inflate(getContext(), R.layout.custom_interval_picker, this);\n firstPicker = v.findViewById(R.id.first_value);\n secondPicker = v.findViewById(R.id.second_value);\n }", "title": "" }, { "docid": "d86fef95573ecb4bc0709d2b7e0195b9", "score": "0.56614894", "text": "private void initView() {\n txtName = findViewById(R.id.txtName);\n txtDescription = findViewById(R.id.txtDescription);\n btnImage = findViewById(R.id.addImage);\n addedImage = findViewById(R.id.addedImage);\n\n // Set default parameters\n currentCategory = \"Other\";\n\n initSwitch();\n initSpinner();\n initBtnImage();\n }", "title": "" }, { "docid": "5982db927074a31e5df6a3c40d170d62", "score": "0.5646666", "text": "private void initModel() {\n RoleList rl = new RoleList();\n for (Role o : rl.getList()) {\n txtRole.addItem(o.roleName);\n }\n }", "title": "" }, { "docid": "2a15b6eb83c816c780dee81faef7f3cd", "score": "0.56439567", "text": "private void showUI(){\r\n \tmodel = new SpinnerNumberModel(\r\n \t\t\tselectedYear,\r\n \t\t\tminYear,\r\n \t\t\tmaxYear,\r\n \t\t\tSPINNER_STEP_SIZE);\r\n spinner = new JSpinner(model);\r\n spinner.setEditor(new JSpinner.NumberEditor(spinner, \"####\"));\r\n spinner.addChangeListener(this);\r\n \r\n \tadd(spinner);\r\n }", "title": "" }, { "docid": "d86793aba1cb1e4706f44e87d4be677f", "score": "0.56386966", "text": "@Override\n public void initialize(URL location, ResourceBundle resources) {\n TempEnseignant enseignantAModifier = VoirListeEnseignantController.enseignaneAModifier;\n id.setText(enseignantAModifier.getTempEnseignant().getId_enseignant());\n nom.setText(enseignantAModifier.getTempEnseignant().getNom_enseignant());\n prenom.setText(enseignantAModifier.getTempEnseignant().getPrenom_enseignant());\n adresse.setText(enseignantAModifier.getTempEnseignant().getAdresse_enseignant());\n email.setText(enseignantAModifier.getTempEnseignant().getEmail_enseignant());\n telephone.setText(String.valueOf(enseignantAModifier.getTempEnseignant().getTelephone()));\n\n ArrayList<String> status = new ArrayList<>();\n status.add(\"Vacataire\");\n status.add(\"Permanent\");\n\n ObservableList<Object> list = FXCollections.observableArrayList(status);\n\n statut.setItems((ObservableList) list);\n statut.getSelectionModel().selectFirst();\n\n }", "title": "" }, { "docid": "c55b9f9cf46cf5ae8d9515ad0e427096", "score": "0.5636119", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n getData();\n setCol();\n setComboBox();\n totalAmountField.setText(totalAmount + \"\");\n }", "title": "" }, { "docid": "8c332a5943a143c0806ff93531181ac5", "score": "0.56357586", "text": "public CustomNumberPicker(Context c) {\n super(c);\n }", "title": "" }, { "docid": "1de2b07209074ce363ed4158796c9ffc", "score": "0.5621338", "text": "public void createSpinner() {\n aisle_spinner = (Spinner) findViewById(R.id.spinner0);\n aisle_spinnerValues = new ArrayList<>(); //ensures spinner values wont duplicate\n int aisle = Integer.parseInt(aisleChecker);\n if (aisle < 0) {\n\n } else { //Generate Spinner\n for (int i = 1; i <= Integer.parseInt(aisleChecker); i++) {\n aisle_spinnerValues.add(String.valueOf(i));\n }\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>\n (this, android.R.layout.simple_spinner_item, aisle_spinnerValues);\n dataAdapter.setDropDownViewResource\n (android.R.layout.simple_spinner_dropdown_item);\n aisle_spinner.setAdapter(dataAdapter);\n }\n }", "title": "" }, { "docid": "0ec351990ba580ff6f3c2740bab84875", "score": "0.5614379", "text": "@FXML\n\tprivate void initialize()\n\t{\n\t\tstatusList.setItems(StatusDatabase.selectAllStatus());\n\t\tstatusList.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n\t}", "title": "" }, { "docid": "cadf90baf666feedbea1520a69fe8118", "score": "0.55921894", "text": "public void initListingCitySpinner() {\n List<String> list = new ArrayList<String>();\n\n list.add(\"Astana\");\n list.add(\"Almaty\");\n list.add(\"Taraz\");\n list.add(\"Shymkent\");\n list.add(\"Atyrau\");\n list.add(\"Aktau\");\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(getApplicationContext(),\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n listingCity.setAdapter(dataAdapter);\n }", "title": "" }, { "docid": "6af668d02af821af9501d3c887c10013", "score": "0.5586711", "text": "public void setSpinner() {\n\t\tString[] allAlumnos = controladorPresentacion.getAllAlumnos();\n\t\tif (allAlumnos.length == 0)\n\t\t\tallAlumnos = new String[] { \"...\" };\n\t\t// Metemos los nombres en el Spinner\n\t\tspinnerAlumnos.setModel(new SpinnerListModel(allAlumnos));\n\t\t((DefaultEditor) spinnerAlumnos.getEditor()).getTextField()\n\t\t\t\t.setEditable(false);\n\t}", "title": "" }, { "docid": "382698998cbe6f54f091dcb354ff1306", "score": "0.55820745", "text": "public ViewLotteryUI() {\n initComponents();\n \n }", "title": "" }, { "docid": "fd1ed5dad72be6f47af5d7e8c236e930", "score": "0.5576254", "text": "@FXML\n private void initialize(){\n progressBar.setProgress(totalProgress);\n progressIndicator.setProgress(totalProgress);\n }", "title": "" }, { "docid": "ac4ce0d979e352f47a0531b7f91d0819", "score": "0.55739546", "text": "public NumericTextField() {\n\t\tsuper();\n\t\tinit();\n\t}", "title": "" }, { "docid": "e2149c603a7f3c0d929c547888c8e494", "score": "0.5573838", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_lista_contratos_ui, container, false);\n\n spinnerContratos = view.findViewById(R.id.contratoSpinner);\n //numberPicker = view.findViewById(R.id.string_picker);\n //getListaContratos(Constant.HTTP_DOMAIN+Constant.APP_PATH+Constant.ENDPOINT_USUARIO+Constant.LISTAR_CONTRATO+Constant.SLASH+Constant.ID,spinnerContratos);\n getStaticListaContratos(spinnerContratos);\n\n /*numberPicker.setMinValue(0);\n numberPicker.setMaxValue((num_contrato.length)-1);\n numberPicker.setDisplayedValues(num_contrato);*/\n\n\n buttonContinue = view.findViewById(R.id.continuar);\n buttonContinue.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n int selectedContrato = spinnerContratos.getSelectedItemPosition();\n // int selectedContrato = numberPicker.getValue();\n\n if(selectedContrato>0){\n if(contrato[selectedContrato].equals(\"3\")){\n Fragment fg = MoraUI.newInstance();\n getActivity().getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, fg).addToBackStack(null).commit();\n }else{\n Constant.NRO_CONTRATO_SELECCIONADO = num_contrato[selectedContrato];\n Fragment fg = WelcomeUI.newInstance();\n getActivity().getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, fg).addToBackStack(null).commit();\n\n }\n }\n\n\n }\n });\n\n\n return view;\n }", "title": "" }, { "docid": "64c16c53a3cbd969d833d642b81a17a5", "score": "0.55644155", "text": "private void updateBombSpinner() {\n\t\tint boardSize = (int) boardSizeSpinner.getValue();\n\t\tint currentBombCount = (int) bombCountSpinner.getValue();\n\n\t\tif (currentBombCount > ((boardSize * boardSize) - 1)) {\n\t\t\tcurrentBombCount = (boardSize * boardSize) - 1;\n\t\t}\n\n\t\tbombCountSpinner.setModel(new SpinnerNumberModel(\n\t\t\t\tcurrentBombCount, MIN_BOMB_COUNT,\n\t\t\t\tMath.min((boardSize * boardSize) - 1,\n MAX_BOMB_COUNT), 1));\n\t}", "title": "" }, { "docid": "01daea49d562f079d8d1b69f8cb944bf", "score": "0.55509037", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n spnValor = new javax.swing.JSpinner();\n jLabel1 = new javax.swing.JLabel();\n btnCalcular = new javax.swing.JButton();\n pnControl = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n lblR1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n lblR2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n lblR3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n lblR4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n lblR5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n spnValor.setModel(new javax.swing.SpinnerNumberModel(1, -50, 50, 1));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Calculadora\");\n\n btnCalcular.setText(\"Calcular\");\n btnCalcular.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCalcularActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Resto da Divisão por 2\");\n\n lblR1.setText(\"-\");\n\n jLabel3.setText(\"Elevado ao Cubo\");\n\n lblR2.setText(\"-\");\n\n jLabel4.setText(\"Raiz Quadrada\");\n\n lblR3.setText(\"-\");\n\n jLabel5.setText(\"Raiz Cúbica\");\n\n lblR4.setText(\"-\");\n\n jLabel6.setText(\"Valor Absoluto\");\n\n lblR5.setText(\"-\");\n\n javax.swing.GroupLayout pnControlLayout = new javax.swing.GroupLayout(pnControl);\n pnControl.setLayout(pnControlLayout);\n pnControlLayout.setHorizontalGroup(\n pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnControlLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnControlLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblR1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(pnControlLayout.createSequentialGroup()\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(44, 44, 44)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblR4, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblR3, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblR5, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblR2, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n pnControlLayout.setVerticalGroup(\n pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnControlLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(lblR1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(lblR2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(lblR3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblR4)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblR5)\n .addComponent(jLabel6))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addComponent(spnValor, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCalcular, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26))\n .addGroup(layout.createSequentialGroup()\n .addComponent(pnControl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(183, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spnValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnCalcular, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addComponent(pnControl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "35c1909af5589165974c617be45dea8e", "score": "0.55263156", "text": "@FXML\n private void initialize() {\n\n stateComboBox.getItems().addAll(States.toList());\n stateComboBox.getSelectionModel().selectFirst();\n stateComboBox.setVisibleRowCount(6);\n userTypeBox.getItems().addAll(UserLevel.toList());\n userTypeBox.getSelectionModel().selectFirst();\n userTypeBox.setVisibleRowCount(4);\n }", "title": "" }, { "docid": "f1ab53b297773bb34277fce945be52a8", "score": "0.5515539", "text": "private void initCustom() {\n // make it so the following fields accept numeric input only\n Utils.setNumericFilter(txtReferenceKey);\n\n configureSearchResultsTable();\n\n configureOrganCombo();\n configureTCCombo();\n\n\n List<LabelValueBean<String, String>> priority = EIGlobals.getInstance().getReferencePriority();\n\n jComboBoxPriority.setModel(new LVBeanListModel<String, String>(priority, false));\n jComboBoxPriority.setRenderer(new LVBeanListCellRenderer<String, String>());\n jComboBoxPriority.addKeyListener(new LVBeanComboListener<String, String>());\n jComboBoxPriority.setSelectedIndex(0);\n\n btnEdit.setEnabled(false);\n btnDelete.setEnabled(false);\n\n // jTextFieldTriageURL.setText(EIConstants.TRIAGE_URL);\n }", "title": "" }, { "docid": "36330150464a2e0c4df55f0b7a74857e", "score": "0.5498415", "text": "private void initCatSpinner(){\n getActivity().runOnUiThread(new Runnable(){\n @Override\n public void run(){\n ArrayAdapter<String> catSpinnerAdapter = new ArrayAdapter<>(getContext(),\n R.layout.support_simple_spinner_dropdown_item,\n PetimoDbWrapper.getInstance().getAllCatNames());\n catSpinner.setAdapter(catSpinnerAdapter);\n int catPos = PetimoController.getInstance().getLastMonitoredTask()[0];\n catSpinner.setSelection(catPos, true);\n catSpinnerAdapter.notifyDataSetChanged();\n\n // init task spinner accordingly\n updateTaskSpinner();\n taskSpinner.setSelection(\n PetimoController.getInstance().getLastMonitoredTask()[1], true);\n }\n });\n }", "title": "" }, { "docid": "9fe7a4fdb00413ec631f8427d7812d2f", "score": "0.54941684", "text": "@Override\n public void initialize(URL location, ResourceBundle resources) {\n progressBar.setStyle(\"-fx-accent: #88eaaa;\");\n\n label_balanceFraction.setText(num + \"/1500\"); // test value, can delete\n\n //FOLLOWING CODE will be used for future implementations\n // bind the fraction label to the progress bar percentage\n // my attempt here failed bc the label gets affected by the progress bar\n // .setProgress(num) (num ranges from 0.0-1.0) where 1.0 is 100%\n /*\n StringProperty stringProperty = label_balanceFraction.textProperty();\n DoubleProperty doubleProperty = progressBar.progressProperty();\n NumberStringConverter converter = new NumberStringConverter();\n Bindings.bindBidirectional(stringProperty, doubleProperty, converter);\n */\n }", "title": "" }, { "docid": "7c06836112907498243e1ebe11877fe4", "score": "0.5493794", "text": "protected NumberFormat() {\n }", "title": "" }, { "docid": "6e0ade1a8ff51f68314d755b3354d139", "score": "0.5493674", "text": "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter medSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_med_type_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n medSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mMedSpinner.setAdapter(medSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mMedSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.label_type_med_liquido))) {\n mMedType = InventoryMedEntry.TYPE_LIQUIDO; // Liquido\n } else if (selection.equals(getString(R.string.label_type_med_supposte))) {\n mMedType = InventoryMedEntry.TYPE_SUPPOSTE; // Supposte\n } else if (selection.equals(getString(R.string.label_type_med_pasticche))) {\n mMedType = InventoryMedEntry.TYPE_PASTICCHE; // Pasticche\n } else if (selection.equals(getString(R.string.label_type_med_sciroppo))) {\n mMedType = InventoryMedEntry.TYPE_SCIROPPO; // Sciroppo\n } else if (selection.equals(getString(R.string.label_type_med_crema))) {\n mMedType = InventoryMedEntry.TYPE_CREMA; // Crema\n } else if (selection.equals(getString(R.string.label_type_med_gel))) {\n mMedType = InventoryMedEntry.TYPE_GEL; // Gel\n } else {\n mMedType = InventoryMedEntry.TYPE_UNKNOWN; // Unknown\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mMedType = InventoryMedEntry.TYPE_UNKNOWN; // Unknown\n }\n });\n }", "title": "" }, { "docid": "38705bff521b3180fcda1c5d5d896891", "score": "0.54907566", "text": "public void init() {\r\n\t\tagent.setController(this);\r\n\t\tlist_agents.setItems(data);\r\n\t\tmin_match.setText(\"0\");\r\n\t\tsetMinMatch(min_match.getText());\r\n\t\tMessageModel.setMessage(\"none\");\r\n\t}", "title": "" }, { "docid": "227e02295c72ed453841779d323390b8", "score": "0.5474265", "text": "public SumaNumeros() {\n initComponents();\n }", "title": "" }, { "docid": "6a51e68f93f054480faa7dc64030d0be", "score": "0.54659474", "text": "private void setUpModelField() {\n\t\tmodelField.focusedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n\n\t\t\t\tString text = modelField.getText();\n\t\t\t\tif (!newValue && !text.isEmpty()) {\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tDataValidator.validateAlphaNum(text);\n\t\t\t\t\t} catch (InputException e) {\n\t\t\t\t\t\tmodelField.setText(\"\");\n\t\t\t\t\t\tAlertDialog.showAlert(Alert.AlertType.ERROR, \"Invalid Input!\", e.getMessage());\n\t\t\t\t\t\tmodelField.requestFocus();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "03abf2f3cbab4ef68d59b663615c90bc", "score": "0.5463538", "text": "private void initialize() {\n\t\tadd = (Button) findViewById(R.id.bAdd);\n\t\tsubtract = (Button) findViewById(R.id.bSubtract);\n\t\tdisplay = (TextView) findViewById(R.id.display);\n\t}", "title": "" }, { "docid": "de71f2f329045363967dbd127807aec7", "score": "0.5450412", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public void initialize(URL location, ResourceBundle resources) {\n unitCbox.setItems(FXCollections.observableArrayList(\"次\", \"分钟\", \"个\"));\n statusCbox.setItems(FXCollections.observableArrayList(\"正常\", \"禁用\"));\n \n editWork = SessionUtil.WORKS.get(\"editWork\");\n workNoField.setText(editWork.getWorkNo());\n workNameField.setText(editWork.getWorkName());\n unitCbox.setValue(editWork.getUnit());\n unitPriceField.setText(Double.toString(editWork.getUnitPrice()));\n statusCbox.setValue(editWork.getStatus());\n \n if(!\"是\".equals(SessionUtil.USERS.get(\"loginUser\").getIsManager())) {\n workNameField.setDisable(true);\n workNoField.setDisable(true);\n unitCbox.setDisable(true);\n unitPriceField.setDisable(true);\n statusCbox.setDisable(true);\n }\n }", "title": "" }, { "docid": "820c83a00257bbccca2484e30e4cb40b", "score": "0.5448659", "text": "@FXML\n\tprivate void initialize() {\n\t\tcb.setItems(levels);\n\t}", "title": "" }, { "docid": "ed25c931e3a80298a1d22657f7c0dbf5", "score": "0.5445525", "text": "public void initialize()\r\n\t{\n\t\tBuilding.setValue(\"Select Building\");\r\n\t\tBuilding.setItems(buildingBox);\r\n\t\tBuilding.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\r\n\t\t\t@Override public void changed(ObservableValue<? extends String> ov,\r\n\t\t\t\t\tfinal String old, final String newS) {\r\n\t\t\t\t\t\tBuilding.setValue(newS);\r\n\t\t\t}\r\n\t\t});\r\n\t\tBufferedImage img = null;\r\n\t\ttry {\r\n\t\t File file = new File(\"C:\\\\Users\\\\jdivi_000\\\\Downloads\\\\13467808_4410173449549_1016923583_o.png\");\r\n\t\t img = ImageIO.read(file);\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t\t\r\n\t\tImage image = SwingFXUtils.toFXImage(img, null);\r\n \r\n MapView.setImage(image);\r\n\t}", "title": "" }, { "docid": "49032dfd8af8aee961b8112e8c7bdbb1", "score": "0.54441077", "text": "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n ObservableList<Integer> hoursList = FXCollections.observableArrayList();\r\n ObservableList<Integer> minutesAndSecondsList = FXCollections.observableArrayList();\r\n\r\n // Populate the hoursList and the minutesAndSecondsList with applicable values\r\n // (i.e , 0-24 for hours, 0-60 for minutes and seconds)\r\n for (int i = 0; i <= 60; i++) {\r\n if (0 <= i && i <= 24) {\r\n hoursList.add(i);\r\n }\r\n minutesAndSecondsList.add(i);\r\n }\r\n\r\n // add the hoursList and the minutesAndSecondsList as item to the input menu - default all values to zero\r\n hoursInput.setItems(hoursList);\r\n hoursInput.setValue(0);\r\n\r\n minutesInput.setItems(minutesAndSecondsList);\r\n minutesInput.setValue(0);\r\n\r\n secondsInput.setItems(minutesAndSecondsList);\r\n secondsInput.setValue(0);\r\n\r\n // generate a TreepMap whose Keys are Integers (0 - 60) and the Values are a string\r\n // representation of the Keys\r\n numberMap = new TreeMap<Integer, String>();\r\n for (Integer i = 0; i <= 60; i++) {\r\n if (0 <= i && i <= 9) {\r\n numberMap.put(i, \"0\" + i.toString());\r\n } else {\r\n numberMap.put(i, i.toString());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ec3354f58aa1e83177cac27623e745af", "score": "0.5435704", "text": "private void initSpinner() {\n categorySpinner = findViewById(R.id.categorySpinner);\n\n //Create a list for all categories and add \"choose category\"\n // as the first item that should be shown in the dropdown\n List<String> categoryList = new ArrayList<>();\n categoryList.add(\"Choose category\");\n\n //loop through all existing categories and add it to the list.\n for (Category cat : Category.values()) {\n categoryList.add(cat.toString());\n }\n\n //Set the layout for the category spinner.\n categoryArrayAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_item, categoryList);\n categoryArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(categoryArrayAdapter);\n categorySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedCategory = (String) parent.getItemAtPosition(position);\n if (position > 0) {\n currentCategory = selectedCategory;\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n categorySpinner.setSelection(0);\n }\n });\n\n }", "title": "" }, { "docid": "ebc81a41925770197c25fcf4543fa3b7", "score": "0.54348075", "text": "private void setupspinner(){\n\n ArrayAdapter spinneradapter = ArrayAdapter.createFromResource(this, R.array.array_gender_options, android.R\n .layout.simple_spinner_item );\n\n spinneradapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n mGenderSpinner.setAdapter(spinneradapter);\n mGenderSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(string.gender_male))) {\n mGender = PetContract.PetEntry.MALE;\n } else if (selection.equals(getString(string.gender_female))) {\n mGender = PetContract.PetEntry.FEMALE;\n } else {\n mGender = PetContract.PetEntry.UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mGender = 0;\n }\n });\n }", "title": "" }, { "docid": "adb1752e89952cc12a70cbc00a0d40fe", "score": "0.54273295", "text": "public void initialize(){\n setLabels();\n setClientBookList();\n }", "title": "" }, { "docid": "31780a8a8a94760bdf3b4247039a7909", "score": "0.5425351", "text": "@FXML\r\n private void initialize() {\r\n \t//set radio group\r\n \tradioGroup = new ToggleGroup();\r\n \tadminRadio.setToggleGroup(radioGroup);\r\n \tmanagerRadio.setToggleGroup(radioGroup);\r\n \tuserRadio.setToggleGroup(radioGroup);\r\n \t//set user data\r\n \tadminRadio.setUserData(0);\r\n \tmanagerRadio.setUserData(1);\r\n \tuserRadio.setUserData(2);\r\n }", "title": "" }, { "docid": "e6721ced941d077659f54074ecbcad6b", "score": "0.54133016", "text": "@FXML\n public void initialize() {\n if (buttonBar != null) {\n buttonBar.buttonOrderProperty().bind(Options.buttonOrderProperty());\n }\n\n // Needed to support tri-state capability\n reconciledButton.setAllowIndeterminate(true);\n\n // Number combo needs to know the account in order to determine the next transaction number\n numberComboBox.accountProperty().bind(accountProperty());\n\n AutoCompleteFactory.setMemoModel(memoTextField);\n\n accountProperty.addListener((observable, oldValue, newValue) -> {\n // Set the number of fixed decimal places for entry\n amountField.scaleProperty().set(newValue.getCurrencyNode().getScale());\n\n // Enabled auto completion for the payee field\n if (payeeTextField != null) { // transfer slips do not use the payee field\n AutoCompleteFactory.setPayeeModel(payeeTextField, newValue);\n }\n });\n\n // If focus is lost, check and load the form with an existing transaction\n if (payeeTextField != null) { // transfer slips do not use the payee field\n\n focusChangeListener = (observable, oldValue, newValue) -> {\n if (!newValue) {\n handlePayeeFocusChange();\n }\n };\n\n payeeTextField.focusedProperty().addListener(new WeakChangeListener<>(focusChangeListener));\n }\n\n // Install an event handler when the parent has been set via injection\n parentProperty.addListener((observable, oldValue, newValue) -> {\n installKeyPressedHandler(newValue);\n });\n }", "title": "" }, { "docid": "af0aa74c0927ed6e1a312cf292406ea7", "score": "0.5413269", "text": "private void buildQualitySpinner() {\n //get all quality from bdd.\n QualitySQLiteAdapter quelitySqlAdapter = \n new QualitySQLiteAdapter(getActivity());\n quelitySqlAdapter.open();\n ArrayList<Quality> qualityList = quelitySqlAdapter.getAll();\n quelitySqlAdapter.close();\n //init and bind binder spinner\n spinnerQuality = (Spinner)view.findViewById(R.id.quality);\n ArrayAdapter<Quality> dataAdapter = new ArrayAdapter<Quality>(getActivity(),\n android.R.layout.simple_spinner_item, qualityList);\n spinnerQuality.setAdapter(dataAdapter);\n }", "title": "" }, { "docid": "e668e6c651c3a2018fd1392fa51d1246", "score": "0.54129684", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tsuper.initWidgets();\n\n\t\tif (arr_year.size() <= 0) {\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\tString strYear = String.valueOf(year).substring(2, 4);\n\t\t\tarr_year.add(\"YYYY\");\n\t\t\tfor (int i = Integer.parseInt(strYear); i <= Integer\n\t\t\t\t\t.parseInt(strYear) + 20; i++) {\n\n\t\t\t\tarr_year.add(\"20\" + i);\n\t\t\t}\n\t\t\tif (arr_year != null && arr_year.size() > 0) {\n\n\t\t\t\tspinnerYear.setAdapter(new MonthYearSpinnerAdapter(mContext,\n\t\t\t\t\t\tyear, arr_year));\n\t\t\t}\n\t\t}\n\t\tif (arr_month.size() <= 0) {\n\t\t\tarr_month.add(\"MM\");\n\t\t\tfor (int i = 1; i <= 12; i++) {\n\t\t\t\tif (i < 10)\n\t\t\t\t\tarr_month.add(\"0\" + i);\n\t\t\t\telse\n\t\t\t\t\tarr_month.add(\"\" + i);\n\t\t\t}\n\t\t\tif (arr_month != null && arr_month.size() > 0) {\n\n\t\t\t\tspinnerMonth.setAdapter(new MonthYearSpinnerAdapter(mContext,\n\t\t\t\t\t\t0, arr_month));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "24cdb1152d84fc32246f964f9dcd3578", "score": "0.5408529", "text": "private void initializeViewModel() {\n mBrandsViewModel = ViewModelProviders.of(this, mViewModelFactory).get(AllBrandsViewModel.class);\n mActivityAllBrandsBinding.setViewmodel(mBrandsViewModel);\n EcomUtil.hideSoftKeyboard(mActivityAllBrandsBinding.etAllBrandsSearch);\n mActivityAllBrandsBinding.incHeader.tvCenterCategoryName.setText(\n getResources().getString(R.string.allBrands));\n mAllBrandsAdapter = new AllBrandsAdapter(mCategoryData, this::onSelectItem);\n GridLayoutManager gridLayoutManager = new GridLayoutManager(this, THREE);\n mActivityAllBrandsBinding.rvAllBrands.setLayoutManager(gridLayoutManager);\n mActivityAllBrandsBinding.rvAllBrands.setAdapter(mAllBrandsAdapter);\n mBrandsViewModel.callGetAllBrandsApi(String.valueOf(ZERO), String.valueOf(TWENTY));\n mActivityAllBrandsBinding.rvAllBrands.addOnScrollListener(\n new MyScrollListener(gridLayoutManager) {\n @Override\n protected void loadMoreItems() {\n if (mCategoryData.size() < mPenCount) {\n mBrandsViewModel.callGetAllBrandsApi(\n String.valueOf(mCategoryData.size()),\n String.valueOf(mCategoryData.size() + LIMIT));\n }\n }\n\n @Override\n public boolean isLastPage() {\n return mBrandsViewModel.progressVisible.get();\n }\n\n @Override\n public boolean isLoading() {\n return mBrandsViewModel.progressVisible.get();\n }\n });\n }", "title": "" }, { "docid": "d0b9608c881b35cd7c4374d1de56cda8", "score": "0.54042524", "text": "private void initialize() {\n pattyRG = findViewById(R.id.radioGroupPatty);\n cheeseRG = findViewById(R.id.radioGroupChees);\n proCBX = findViewById(R.id.checkBox);\n sauseSB = findViewById(R.id.seekBar);\n totalCalView = findViewById(R.id.textViewCalories);\n\n\n }", "title": "" } ]
846df1556d4de4ad1c18f9c523c82998
Set name of email field
[ { "docid": "7e36df7df45eefefa88d07ecc202f1a2", "score": "0.812884", "text": "public void setEmailFieldName(final String value) {\n setProperty(RegistrationForm.EMAIL_FIELD_NAME_KEY, value);\n }", "title": "" } ]
[ { "docid": "59650f32b062e71acdf7928bb65a3e7e", "score": "0.80023134", "text": "private void setEmail() {\n String[] s = this.name.toLowerCase().split(\"\\\\S\", 2);\n this.email = s[0] + \".\" + s[1] + \"@oracleacademy.Test\";\n }", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.73671937", "text": "void setEmail(String email);", "title": "" }, { "docid": "4d383cdbc0eac033ed5c515dcb32c523", "score": "0.7301264", "text": "public void setEmail(String newEmail);", "title": "" }, { "docid": "978a6b04290086b90280183f11013c71", "score": "0.73008657", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49001a6881a2abf048a385a330954b20", "score": "0.7294204", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0e9883a559ea2e1068c89b95dea88fc1", "score": "0.72832537", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "28b4986330ebde533967866584b9e3e8", "score": "0.72827405", "text": "public void SetEmail(String e) { this.email = e; }", "title": "" }, { "docid": "3938e23767350ca11e008ddcab3751e0", "score": "0.72616917", "text": "public void setEmail( String n ){\n \tif( !n.matches(\"^[A-Za-z_@0-9.]+$\") ) {\n System.out.println( \"Invalid characters in email\" );\n } else {\n email = n;\n } \n }", "title": "" }, { "docid": "f342f15eed4c4cd2f3569572c5e6b178", "score": "0.72047055", "text": "public String getEmailFieldName() {\n return getStringProperty(RegistrationForm.EMAIL_FIELD_NAME_KEY);\n }", "title": "" }, { "docid": "b6fac7804442cdb83a7423f0bfdd1223", "score": "0.7184708", "text": "private void setEmail() {\n\t\t\temail = name.toLowerCase()+\".\"+ID+\"@university.edu\";\n\t\t\tSystem.out.println(\"Your email is: \"+email);\n\t\t}", "title": "" }, { "docid": "db12947002058cfbcbeb2ae602f07aaf", "score": "0.71792364", "text": "public Person setEmail(\n java.lang.String value) {\n \n if (!java.util.Objects.equals(value, email_)) {\n email_ = value;\n onChanged(EMAIL_FIELD_NUMBER);\n }\n return this;\n }", "title": "" }, { "docid": "c94f1cee8dbba3183e02aeaec062d248", "score": "0.70720243", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "65ddec6af8787f20667f4fdcf3fe3d64", "score": "0.70388955", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "65ddec6af8787f20667f4fdcf3fe3d64", "score": "0.70388955", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8b9877dc6110b4bf8286395b0942ec93", "score": "0.69899005", "text": "public void setEmail(String e) {\r\n this.email = e;\r\n }", "title": "" }, { "docid": "9b085a18bfc8232db32929bd3b5f65a9", "score": "0.6950192", "text": "void setEmail(String email)\r\n {\r\n _email = email;\r\n }", "title": "" }, { "docid": "67d5c3dcfc60f0751bd95d27c74b4181", "score": "0.6932581", "text": "@Override\r\n public void setEmail(String email) {\n super.setEmail(email);\r\n }", "title": "" }, { "docid": "26c4c415c75982e4f3af9931003fd5b4", "score": "0.6885191", "text": "public void setEmail(String email)\r\n {\r\n String pattern = \"^([a-zA-Z0-9(&*_~)]+([.])?)+[a-zA-Z0-9(&*_~)]+@([a-zA-Z0-9]+[-]?[a-zA-Z0-9]+)+([.]([a-zA-Z0-9]+))+$\";\r\n Pattern p = Pattern.compile(pattern);\r\n Matcher m = p.matcher(email);\r\n if (m.find()) {\r\n this.email = email;\r\n } else {\r\n System.out.println(\"Email : null\");\r\n }\r\n }", "title": "" }, { "docid": "03e2b90ec8838292d9bff3a91e3fe049", "score": "0.6875671", "text": "public void setEmail( String address )\r\n {\r\n email = address;\r\n }", "title": "" }, { "docid": "24745f963d3ee00993dc753a54ce89eb", "score": "0.68098384", "text": "private void setUserMail() {\n\n if (username.length() > 10) {\n\n String tempUsername = firstName.toLowerCase();\n this.userMail = tempUsername + '.' + department + \"@company.com\";\n } else {\n\n this.userMail = this.username + '.' + department + \"@company.com\";\n }\n }", "title": "" }, { "docid": "55441efc0ace5d0828f826eaa5ba35f5", "score": "0.68069136", "text": "public void setEmail(String newVal) {\r\n if ((newVal != null && this.email != null && (newVal.compareTo(this.email) == 0)) || \r\n (newVal == null && this.email == null && email_is_initialized)) {\r\n return; \r\n } \r\n this.email = newVal; \r\n email_is_modified = true; \r\n email_is_initialized = true; \r\n }", "title": "" }, { "docid": "5bd6c8dbc60280df55c9dfc352e882c0", "score": "0.6803392", "text": "public void setEmail(String email)\n {\n Pattern pattern = Pattern.compile(EMAIL_PATTERN);\n Matcher matcher = pattern.matcher(email);\n \n if(matcher.matches() == true)\n {\n this.email = email;\n }\n \n else\n {\n this.email = \"\";\n }\n }", "title": "" }, { "docid": "621642b4a13cfc6892264a20e75237b1", "score": "0.678336", "text": "@Override\n public void setEMail(String value) {\n email = value;\n setFields.add(AttendeeField.EMAIL);\n }", "title": "" }, { "docid": "f24997ffeaaa5ff73ecc702f81537bdf", "score": "0.67179346", "text": "@Override\n\tpublic void setEmail(java.lang.String email) {\n\t\t_registration.setEmail(email);\n\t}", "title": "" }, { "docid": "9e826fbb554d1512b23e8e3dcf50fe05", "score": "0.6715299", "text": "public void setEmployeeEmail(String value)\n {\n setAttributeInternal(EMPLOYEEEMAIL, value);\n }", "title": "" }, { "docid": "5848f5f3ff55069153533c846ed8db67", "score": "0.67113996", "text": "void setEmailAddress(java.lang.String emailAddress);", "title": "" }, { "docid": "5a521c5d05fdb68774aa6cd82ba442fc", "score": "0.6680071", "text": "public static void setEmail(String email) {\n Account.email = email;\n }", "title": "" }, { "docid": "914c35baa1cc6dc9b2c94bcb0f9a69d5", "score": "0.66743207", "text": "public void setEmail(java.lang.String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "b3e2395a2453e68525e8d812fede672a", "score": "0.6672978", "text": "public final void setEmail(java.lang.String email)\n\t{\n\t\tsetEmail(getContext(), email);\n\t}", "title": "" }, { "docid": "97e106ec60d771e8d0ef3e687e031c5d", "score": "0.6667237", "text": "public void setEmail(String in) {\n this.email = in;\n }", "title": "" }, { "docid": "16c8c9f2bc5b020d002cb0f47ab0556c", "score": "0.66617167", "text": "@Override\n\tpublic void email(String email) {\n\t\tcliente.setEmail(email);\n\t\t\n\t}", "title": "" }, { "docid": "c1199c6e0ffc119e1be1d3ef7b83c2c6", "score": "0.6626771", "text": "public static void setEmail(String string) {\n\t\temail=string;\r\n\t}", "title": "" }, { "docid": "f6fadc1999a91087898c1059aac42b68", "score": "0.6616445", "text": "public void setUserEmail(String email){\n\t \tuserEmail = email;\n\t }", "title": "" }, { "docid": "22b375b711f51229ab8dbef22a88957a", "score": "0.66145", "text": "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "title": "" }, { "docid": "a36242db00169e8eee1b60ffbdd9ea7d", "score": "0.6558511", "text": "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "title": "" }, { "docid": "a36242db00169e8eee1b60ffbdd9ea7d", "score": "0.6558511", "text": "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "title": "" }, { "docid": "e9cc936b905be67dea953071ab2f73c2", "score": "0.6555553", "text": "public void setEmail(String email){\nthis.email=email;\n}", "title": "" }, { "docid": "54f8c3174bcfdb8cbbc7d1ff8fac1fb2", "score": "0.65329844", "text": "Publishers setEmail(String email);", "title": "" }, { "docid": "0a7fb7786de1c80b6641a22f68f3d612", "score": "0.65152055", "text": "public void setUserEmail(java.lang.String newUserEmail) {\n\tuserEmail = newUserEmail;\n}", "title": "" }, { "docid": "03282c4216de2a65aa59632e43a13f6d", "score": "0.6512048", "text": "public void setConfirmEmailFieldName(final String value) {\n setProperty(RegistrationForm.CONFIRM_EMAIL_FIELD_NAME_KEY, value);\n }", "title": "" }, { "docid": "4f54d366f0244f3227afdcd75b9b75fa", "score": "0.64744294", "text": "public void setNewsletterFieldName(final String value) {\n setProperty(NEWSLETTER_FIELD_NAME_KEY, value);\n }", "title": "" }, { "docid": "6a0f53b44ea1e8e2e755568f3166a265", "score": "0.64717543", "text": "public void setEmail(final String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "ddb07792ad9134d133717885539e2c30", "score": "0.64507157", "text": "public final void setEmail(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String email)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Email.toString(), email);\n\t}", "title": "" }, { "docid": "703ce96126e531a202039de1e9aa546e", "score": "0.6440299", "text": "public void setEmail(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localEmailTracker = true;\r\n } else {\r\n localEmailTracker = false;\r\n \r\n }\r\n \r\n this.localEmail=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.64395803", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "085a24a76b04121537cfcae6c2a1110c", "score": "0.64347774", "text": "public void setEmail(String sEmail) {\n this.sEmail = sEmail;\n }", "title": "" }, { "docid": "c029e7fdd46c466928aa56f22165912d", "score": "0.6431606", "text": "public void setEmail(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localEmailTracker = true;\n } else {\n localEmailTracker = false;\n \n }\n \n this.localEmail=param;\n \n\n }", "title": "" }, { "docid": "7181100a1a84083f20a4b54d8960a7f5", "score": "0.64183223", "text": "@Override\n\tpublic void setEmail(java.lang.String email) {\n\t\t_connection.setEmail(email);\n\t}", "title": "" }, { "docid": "2e03af4ad8ad3959791bd881a1ee28b5", "score": "0.64123696", "text": "public Address getNameEmail() {\n return Address.create(fullName(), email());\n }", "title": "" }, { "docid": "0ae88bad447200300e6b776143fabd75", "score": "0.64070797", "text": "public void setCompanyEmail(String value)\r\n {\r\n setProperty(PROP_COMPANY_EMAIL, value);\r\n }", "title": "" }, { "docid": "c03af6a47a664ac92562d4ce1731b4f0", "score": "0.6405744", "text": "@Override\n\tpublic void setEmail(java.lang.String email) {\n\t\t_author.setEmail(email);\n\t}", "title": "" }, { "docid": "f0ff1f53f24b2a28d43aec0cb707b9dd", "score": "0.6379422", "text": "public Builder setEmail(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEmailIsMutable();\n email_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "123cf56ae47c04e1ee935b7694d21b48", "score": "0.63756007", "text": "public void setEmail (java.lang.String email) {\n\t\tthis.email = email;\n\t}", "title": "" }, { "docid": "7509052f3c805a24a1629aab3e0d7f65", "score": "0.63696814", "text": "public void setEmail(final String email) {\n this.email = email;\n }", "title": "" }, { "docid": "c02b4167c1cecdfbf770f6ac6b3763a8", "score": "0.6363817", "text": "public void setEmail( String email ) {\n this.email = email;\n }", "title": "" }, { "docid": "8283736cafe3e92f43bd905f65bedf44", "score": "0.633967", "text": "public void setEmailAddress(String addr) {\n email = addr;\n }", "title": "" }, { "docid": "6ca4151dddcf6f752fea7674a42c6fba", "score": "0.6339593", "text": "public void setEmail(String emailIn)\n {\n this.Email = emailIn;\n }", "title": "" }, { "docid": "339166659e4d22733670ece8a880218a", "score": "0.6336693", "text": "@Override\n\tpublic void setEmail(java.lang.String email) {\n\t\t_agency.setEmail(email);\n\t}", "title": "" }, { "docid": "36dfb4f6b3e474feb9540d5eba5785c5", "score": "0.633527", "text": "public void setEmail(String newEmail) {\r\n\t\tthis.email = newEmail;\r\n\t}", "title": "" }, { "docid": "30ab9533d6aa81d127b5fa12ecea303c", "score": "0.6325237", "text": "public void setUserEmail(String userEmail)\n {\n this.userEmail = userEmail;\n }", "title": "" }, { "docid": "7ce4592b5310c82a19fe43d888c38f5d", "score": "0.6312323", "text": "public void setEmail(String email)\n {\n mLoginDataViewModel.setLoginEmail(email);\n }", "title": "" }, { "docid": "15487f217181d1f42b1c86d511925aa5", "score": "0.63100415", "text": "void xsetEmailAddress(au.gov.asic.types.EmailType emailAddress);", "title": "" }, { "docid": "d7757fbae1d786136181247c0776529c", "score": "0.62967575", "text": "public void setFName(String string) {\n\t\t\t editor.putString(\"setFName\",string);\n\t\t\t editor.commit();\n\t\t\t// System.out.println(\"val save email \");\n\t\t\t \n\t\t\t Log.d(TAG, \"setFName received\");\n\t\t}", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.62963384", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2e89c7967935144e8f1b762d16ab9268", "score": "0.62780195", "text": "public void setEmail(String email) {\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "b66679f0333785957aa056542f67450e", "score": "0.6275028", "text": "public void setEmail(String emailIn)\n {\n this.email = emailIn;\n }", "title": "" }, { "docid": "b015c2be7feeb4db0d6df6752772570c", "score": "0.62500393", "text": "public String getEmail() {\n\t\t\t String name = preferences.getString(\"setEmail\",\"\");\n\t\t\t \n\t\t\t Log.d(TAG, \"setEmail received \"+name);\n\t\t\t \n\t\t\t return name;\n\t\t}", "title": "" }, { "docid": "6785e897b7cde22def2de05165f06d90", "score": "0.6247796", "text": "public void setName(String string) {\n\t\t\t editor.putString(\"setName\",string);\n\t\t\t editor.commit();\n\t\t\t// System.out.println(\"val save email \");\n\t\t\t \n\t\t\t Log.d(TAG, \"setName received\");\n\t\t}", "title": "" }, { "docid": "00fd969cd4c809f778a9d31e8173f889", "score": "0.6245194", "text": "@java.lang.Override\n public java.lang.String getEmail() {\n return email_;\n }", "title": "" }, { "docid": "953ed5776515fa2c0ac165a7fd88fa94", "score": "0.6242948", "text": "public void setUserEmail1(java.lang.String userEmail1) {\r\n this.userEmail1 = userEmail1;\r\n }", "title": "" } ]
39b5e59cf23026e54a8ea3ce1092720b
repeated .proto.TopicSubscription subscriptions = 1;
[ { "docid": "685a9cce25a2f55ea80ad3b5db5e7525", "score": "0.0", "text": "public com.flipkart.vbroker.proto.TopicSubscription.Builder getSubscriptionsBuilder(\n int index) {\n return getSubscriptionsFieldBuilder().getBuilder(index);\n }", "title": "" } ]
[ { "docid": "accfc2705a51452db212a3346527ffed", "score": "0.66393167", "text": "int subscribeTopic();", "title": "" }, { "docid": "9680a34a2113978e8ae3764ed53245bf", "score": "0.65226805", "text": "spec.proto.runtime.v1.AppCallbackProto.TopicSubscription getSubscriptions(int index);", "title": "" }, { "docid": "46c8eb472c5524af2e4fce20c2e4410d", "score": "0.6514785", "text": "public java.util.List<? extends com.flipkart.vbroker.proto.TopicSubscriptionOrBuilder>\n getSubscriptionsOrBuilderList() {\n return subscriptions_;\n }", "title": "" }, { "docid": "dd5e6c9140484cfd5c0e4501e356ba6a", "score": "0.6504291", "text": "com.flipkart.vbroker.proto.ProtoSubscriptionOrBuilder getSubscriptionOrBuilder();", "title": "" }, { "docid": "cc0919726591f0887b263ce3251a6859", "score": "0.6441425", "text": "private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a827bee620e3f6ec840e22654991ae48", "score": "0.6399009", "text": "java.util.List<? extends spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder> \n getSubscriptionsOrBuilderList();", "title": "" }, { "docid": "bdc78a6387e94efe683f994364cd9e2a", "score": "0.62885106", "text": "public spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder getSubscriptionsOrBuilder(\n int index) {\n if (subscriptionsBuilder_ == null) {\n return subscriptions_.get(index); } else {\n return subscriptionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "c5cc551af3c5d4b9e5f477c5b29c22d1", "score": "0.62819874", "text": "com.flipkart.vbroker.proto.ProtoSubscription getSubscription();", "title": "" }, { "docid": "0e1d92a2d7716ca4159965b52fd9dd7a", "score": "0.6275631", "text": "@java.lang.Override\n public spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder getSubscriptionsOrBuilder(\n int index) {\n return subscriptions_.get(index);\n }", "title": "" }, { "docid": "f00b6907cc6e4dbbd85967af405bd5b9", "score": "0.6274544", "text": "java.util.List<spec.proto.runtime.v1.AppCallbackProto.TopicSubscription> \n getSubscriptionsList();", "title": "" }, { "docid": "f440720e59569f6a2f90f95870568246", "score": "0.6165106", "text": "public com.flipkart.vbroker.proto.TopicSubscriptionOrBuilder getSubscriptionsOrBuilder(\n int index) {\n return subscriptions_.get(index);\n }", "title": "" }, { "docid": "9e70fa075f5dc5d5e1b2ecf1c1a27b8e", "score": "0.61512744", "text": "private TopicSubscription(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "d89fb46289b6d445e479b3820e723fd6", "score": "0.6149477", "text": "public java.util.List<? extends spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder> \n getSubscriptionsOrBuilderList() {\n if (subscriptionsBuilder_ != null) {\n return subscriptionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(subscriptions_);\n }\n }", "title": "" }, { "docid": "77aabf666e953c8018703c826c6989ea", "score": "0.6108734", "text": "com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder();", "title": "" }, { "docid": "ea487a17e89c94e5906098c2279b8ca1", "score": "0.60871255", "text": "public interface Message {\n /**\n *\n * @return collection of topics\n */\n Collection<? extends Topic> getTopics();\n}", "title": "" }, { "docid": "e8b72870c6cc881e6464876784256de9", "score": "0.6049324", "text": "spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder getSubscriptionsOrBuilder(\n int index);", "title": "" }, { "docid": "0cd2d78528e0e5a2ddeea2e9f27b4de7", "score": "0.6034578", "text": "@java.lang.Override\n public spec.proto.runtime.v1.AppCallbackProto.TopicSubscription getSubscriptions(int index) {\n return subscriptions_.get(index);\n }", "title": "" }, { "docid": "0b4bf4aa9bcc447149a18b14573f52c3", "score": "0.60043824", "text": "public java.util.List<? extends com.flipkart.vbroker.proto.TopicSubscriptionOrBuilder>\n getSubscriptionsOrBuilderList() {\n if (subscriptionsBuilder_ != null) {\n return subscriptionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(subscriptions_);\n }\n }", "title": "" }, { "docid": "77bf15e3ddc1e3938cad7f0d2051351d", "score": "0.6001601", "text": "public java.util.List<com.flipkart.vbroker.proto.TopicSubscription> getSubscriptionsList() {\n return subscriptions_;\n }", "title": "" }, { "docid": "d0cf866fd0b3761b80639855c6ea5203", "score": "0.5999652", "text": "public void subscribe() {\n this.subscriptions++;\n }", "title": "" }, { "docid": "848796abaf10156890c3b6861a3f3db7", "score": "0.5991117", "text": "@java.lang.Override\n public java.util.List<? extends spec.proto.runtime.v1.AppCallbackProto.TopicSubscriptionOrBuilder> \n getSubscriptionsOrBuilderList() {\n return subscriptions_;\n }", "title": "" }, { "docid": "050825d6db83693e22581ea5e113aecb", "score": "0.5939295", "text": "public com.flipkart.vbroker.proto.TopicSubscriptionOrBuilder getSubscriptionsOrBuilder(\n int index) {\n if (subscriptionsBuilder_ == null) {\n return subscriptions_.get(index);\n } else {\n return subscriptionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "aa5b1fac61d7a7cf0e842cffdbf686e1", "score": "0.5901405", "text": "List<Object> getPublishedTopics(String callerId, String subgraph);", "title": "" }, { "docid": "f017506cbb220d9e5f2414a04138358f", "score": "0.5896878", "text": "com.google.protobuf.ByteString getPubsubSubscriptionBytes();", "title": "" }, { "docid": "0bf98c7fab755f730c81e292d7f7161e", "score": "0.58892584", "text": "@Override\n public void onSubscribe(Subscription s) {\n }", "title": "" }, { "docid": "0bf98c7fab755f730c81e292d7f7161e", "score": "0.58892584", "text": "@Override\n public void onSubscribe(Subscription s) {\n }", "title": "" }, { "docid": "0bf98c7fab755f730c81e292d7f7161e", "score": "0.58892584", "text": "@Override\n public void onSubscribe(Subscription s) {\n }", "title": "" }, { "docid": "33aba35232ab9be414e13d116ed025f4", "score": "0.5862732", "text": "public void subscribeToAllTypes ();", "title": "" }, { "docid": "6ebd97a971d12604ca30857cdd47161e", "score": "0.58436817", "text": "List<Object> registerSubscriber(String callerId, String topicName, String topicType,\n String callerApi, String port);", "title": "" }, { "docid": "93f2026734be9176c8cc2ecbaeba83c6", "score": "0.582275", "text": "public spec.proto.runtime.v1.AppCallbackProto.TopicSubscription getSubscriptions(int index) {\n if (subscriptionsBuilder_ == null) {\n return subscriptions_.get(index);\n } else {\n return subscriptionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "cfe0df0910bbef82d70ba4a0fdfb0219", "score": "0.5790296", "text": "public void subscriptionChanged(Subscription subscription) {}", "title": "" }, { "docid": "98823cda886c55fda2c163739fdb1833", "score": "0.577819", "text": "Subscribe createSubscribe();", "title": "" }, { "docid": "2247316f3fdf16207aabf998269a760c", "score": "0.5772972", "text": "public void example4(MqttEndpoint endpoint) {\n // handling requests for subscriptions\n endpoint.subscribeHandler(subscribe -> {\n List<MqttQoS> grantedQosLevels = new ArrayList<>();\n for (MqttTopicSubscription s : subscribe.topicSubscriptions()) {\n System.out.println(\"Subscription for \" + s.topicName() + \" with QoS \" + s.qualityOfService());\n grantedQosLevels.add(s.qualityOfService());\n }\n // replying to the client with the related SUBACK message containing the granted QoS levels\n // ack the subscriptions request\n endpoint.subscribeAcknowledge(subscribe.messageId(), grantedQosLevels);\n });\n }", "title": "" }, { "docid": "1949e15fe807e933e24e44a31d8002a8", "score": "0.5765865", "text": "public void setSubscriptions(int newSubscriptions){\n subscriptions = newSubscriptions;\n }", "title": "" }, { "docid": "77abddeb5956eaa88ab49cf0277e4bc2", "score": "0.57654226", "text": "public List<TopicSubscriber> getTopicSubscribers() {\r\n return Collections.unmodifiableList(topicSubscribers);\r\n }", "title": "" }, { "docid": "e2b9b972844f2c55300815fc38dc1b48", "score": "0.5763206", "text": "private void subscribe(SubscriptionMessage message) {\n\n // Extract the channels\n ArrayList<String> channels = message.getChannels();\n\n // Make sure we keep a record\n // of channels that were requested\n addChannels(channels, message);\n\n // Subscribe all channels\n channelsBeingAdded.forEach((ch, msg) ->\n {\n makeRequest(msg);\n this.channels.put(ch, msg);\n });\n\n // Clear out the incoming channels list\n this.channels.forEach((ch, msg) -> {\n channelsBeingAdded.remove(ch);\n });\n }", "title": "" }, { "docid": "1868bf9793c95664bdee210f1693dee2", "score": "0.57512987", "text": "public com.flipkart.vbroker.proto.TopicSubscription.Builder addSubscriptionsBuilder() {\n return getSubscriptionsFieldBuilder().addBuilder(\n com.flipkart.vbroker.proto.TopicSubscription.getDefaultInstance());\n }", "title": "" }, { "docid": "56cc7c72e723f2c0083b755f937557f8", "score": "0.5750586", "text": "java.lang.String[] getSubscription() throws java.io.IOException;", "title": "" }, { "docid": "922061317f72c84a6aaeae42c7242562", "score": "0.5743828", "text": "void setupUnsubscribeListener(Subscription subscription);", "title": "" }, { "docid": "88c23d10571277d9c1169450a00253fd", "score": "0.5739801", "text": "public int subs() {\n\t\treturn subscriptions.get();\n\t}", "title": "" }, { "docid": "55e5e735ae8d46dc66f6dadfb5bdcefb", "score": "0.572204", "text": "@java.lang.Override\n public java.util.List<spec.proto.runtime.v1.AppCallbackProto.TopicSubscription> getSubscriptionsList() {\n return subscriptions_;\n }", "title": "" }, { "docid": "793b1a235c9d98028df8acb1cf98be4d", "score": "0.5717918", "text": "java.lang.String getPubsubSubscription();", "title": "" }, { "docid": "9a1c608b7fd9e4d5f66178adb55641d1", "score": "0.56953", "text": "@Override\n public boolean subscribe( String topic,int subscriptionid, int connectionid) {\n subscribersIdToConnectionId.putIfAbsent(topic,new ConcurrentSkipListMap<>((a,b)->{return b-a;}));//syncrized problem\n if(subscribersIdToConnectionId.get(topic).containsKey(subscriptionid))\n return false;\n subscribersIdToConnectionId.get(topic).put(subscriptionid,new PairForMe(subscriptionid,connectionid));\n return true;\n }", "title": "" }, { "docid": "05bd8303e3a626782e03b6494f50f7b3", "score": "0.56901455", "text": "public com.flipkart.vbroker.proto.TopicSubscription getSubscriptions(int index) {\n return subscriptions_.get(index);\n }", "title": "" }, { "docid": "7763814fc3ffdea24205e734dbb26cde", "score": "0.56867594", "text": "com.google.cloud.pubsublite.proto.Topic getTopic();", "title": "" }, { "docid": "059b3835c1ad6124336cfcca5a092787", "score": "0.56744844", "text": "public java.util.List<spec.proto.runtime.v1.AppCallbackProto.TopicSubscription> getSubscriptionsList() {\n if (subscriptionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(subscriptions_);\n } else {\n return subscriptionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "e0cc1dcb5d67d77dd3cd55b43ff24cfa", "score": "0.5658674", "text": "public spec.proto.runtime.v1.AppCallbackProto.TopicSubscription.Builder addSubscriptionsBuilder() {\n return getSubscriptionsFieldBuilder().addBuilder(\n spec.proto.runtime.v1.AppCallbackProto.TopicSubscription.getDefaultInstance());\n }", "title": "" }, { "docid": "f771247952dce46f937229f69b9e297a", "score": "0.56554574", "text": "public Topics(){\r\n\t}", "title": "" }, { "docid": "ac207145c622ec7f30f5fafe6458064d", "score": "0.5634622", "text": "int getSubscriptionsCount();", "title": "" }, { "docid": "1cf692de524cc0801f46459aa77d1616", "score": "0.5631666", "text": "public Subscription(){ }", "title": "" }, { "docid": "507b1d1dcbb75f779ea449c2ce370abe", "score": "0.5619308", "text": "public int getSubscriptions() {\n return subscriptions;\n }", "title": "" }, { "docid": "5077612df6ebdcb76385ee218e466788", "score": "0.5617266", "text": "public void subscribe(String channel, Collection<String> connectionIds);", "title": "" }, { "docid": "4f471e23bb79c8f1b40926878e7f7010", "score": "0.5592894", "text": "@java.lang.Override\n public int getSubscriptionsCount() {\n return subscriptions_.size();\n }", "title": "" }, { "docid": "e71f35f9c17782c196924587bbda9573", "score": "0.5588833", "text": "public void subscribe(String channel, String ... connectionIds);", "title": "" }, { "docid": "4b1bf1ca58cf52f31b0b5cc92df50d58", "score": "0.5573505", "text": "public com.flipkart.vbroker.proto.TopicSubscription getSubscriptions(int index) {\n if (subscriptionsBuilder_ == null) {\n return subscriptions_.get(index);\n } else {\n return subscriptionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "68bef223092e0619bae70a7a0aea5a3e", "score": "0.55634856", "text": "public java.util.List<com.flipkart.vbroker.proto.TopicSubscription> getSubscriptionsList() {\n if (subscriptionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(subscriptions_);\n } else {\n return subscriptionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "1cbfc5728493ec36c95e5043d22aeead", "score": "0.5553478", "text": "public interface Observer {\n public void update(Topic t);\n}", "title": "" }, { "docid": "0ea50258fbf0603c5e4b232db6b362c4", "score": "0.5549582", "text": "void setTopicName(SubscriptionProperties subscriptionProperties, String topicName);", "title": "" }, { "docid": "054b1045ca5a062c93874fe48a6be7d9", "score": "0.5542637", "text": "public void subscribeTopics(String topic,String token) throws IOException {\n GcmPubSub pubSub = GcmPubSub.getInstance(context);\n \n pubSub.subscribe(token, \"/topics/\" + topic, null);\n \n }", "title": "" }, { "docid": "ac84ad91f811b656bbfa5e5de16ac93b", "score": "0.5542216", "text": "void onSubscribe(EventSubscription subscription);", "title": "" }, { "docid": "fa14a319794fd049362bee855691d178", "score": "0.5506653", "text": "private void restartSubscriptions() {\r\n// String log = new FileRead(filename).read();\r\n// int index = log.indexOf(ENTRY_STRING);\r\n// \r\n// while (index != -1) {\r\n// String entry1 = null; // contains the command\r\n// int index2 = log.indexOf(ENTRY_STRING,index+1);\r\n// if (index2 == -1) {\r\n// entry1 = log.substring(index+ENTRY_STRING.length());\r\n// }\r\n// else {\r\n// entry1 = log.substring(index+ENTRY_STRING.length(),index2);\r\n// }\r\n// try { // Test the message code : ADD, REMOVE, UPDATE and creates a Subscriber\r\n// // object based on the log file\r\n// if (entry1.indexOf(ADD_SUB_REG) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new Subscriber(mh.decodeData(new StringReader(entry)));\r\n// addSubscriber(sub,false);\r\n// }\r\n// else if (entry1.indexOf(REMOVE_SUB_REG) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new Subscriber(mh.decodeData(new StringReader(entry)));\r\n// removeSubscriber(sub,false);\r\n// }\r\n// else if (entry1.indexOf(UPDATE_SUB_REG) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new Subscriber(mh.decodeData(new StringReader(entry)));\r\n// updateSubscriber(sub,false);\r\n// }\r\n// // Discoverer subscribers\r\n// else if (entry1.indexOf(ADD_SUB_DISCO) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new DiscovererSubscriber(mh.decodeData(new StringReader(entry)));\r\n// addSubscriber(sub,false);\r\n// }\r\n// else if (entry1.indexOf(REMOVE_SUB_DISCO) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new DiscovererSubscriber(mh.decodeData(new StringReader(entry)));\r\n// removeSubscriber(sub,false);\r\n// }\r\n// else if (entry1.indexOf(UPDATE_SUB_DISCO) != -1) {\r\n// index = entry1.indexOf(\">\");\r\n// String entry = entry1.substring(index+1);\r\n// AbstractSubscriber sub = new DiscovererSubscriber(mh.decodeData(new StringReader(entry)));\r\n// updateSubscriber(sub,false);\r\n// }\r\n// } catch (DecodeException de) {\r\n// System.out.println(\"Subscribers Decode: \"+de);\r\n// } catch (InvalidDecoderException ide) {\r\n// System.out.println(\"Subscribers InvalidDecoder: \"+ide);\r\n// }\r\n// index = index2;\r\n// }\r\n// \r\n// try {\r\n// BufferedWriter writer = new BufferedWriter(new FileWriter(filename));\r\n for (int i=0; i<numSubscribers(); i++) {\r\n AbstractSubscriber sub = getSubscriberAt(i);\r\n String header = \"\";\r\n if (sub instanceof DiscovererSubscriber)\r\n header = new String(ENTRY_STRING+ADD_SUB_DISCO);\r\n else // REGULAR\r\n header = new String(ENTRY_STRING+ADD_SUB_REG);\r\n writeLog(header,sub);}\r\n// }\r\n// writer.close();\r\n// } catch (IOException ioe) {\r\n// ioe.printStackTrace();\r\n// }\r\n }", "title": "" }, { "docid": "12470eb76f04c83c44cbe5dc51bc801f", "score": "0.5505222", "text": "public void setTopic(String value);", "title": "" }, { "docid": "47166e4f605da6711ff3b2748a5b0163", "score": "0.55027777", "text": "public static java.util.Iterator<org.semanticwb.resources.sem.forumcat.QuestionSubscription> listQuestionSubscriptions(org.semanticwb.model.SWBModel model)\r\n {\r\n java.util.Iterator it=model.getSemanticObject().getModel().listInstancesOfClass(sclass);\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.resources.sem.forumcat.QuestionSubscription>(it, true);\r\n }", "title": "" }, { "docid": "cfbc6314d7581f03d4b1a4615e95d4ca", "score": "0.549331", "text": "java.util.List<? extends org.wso2.choreo.connect.discovery.subscription.APIsOrBuilder> \n getListOrBuilderList();", "title": "" }, { "docid": "edf558fa9ab69b7316a5a9514820a85d", "score": "0.54726356", "text": "public Builder addSubscriptions(com.flipkart.vbroker.proto.TopicSubscription value) {\n if (subscriptionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSubscriptionsIsMutable();\n subscriptions_.add(value);\n onChanged();\n } else {\n subscriptionsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "7403c372a1537174a85c6c39e17ffe07", "score": "0.5462014", "text": "public void setupSubscriptions() {\n\tparseParameter();\n\tallProgrammers = \n\t (IncrementalSubscription)subscribe(allProgrammersPredicate);\n\tallCodeTasks = \n\t (IncrementalSubscription)subscribe(codeTaskPredicate);\n }", "title": "" }, { "docid": "dcd386217077433e13a66393c890fb1c", "score": "0.5459865", "text": "public static java.util.Iterator<org.semanticwb.resources.sem.forumcat.QuestionSubscription> listQuestionSubscriptions()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.resources.sem.forumcat.QuestionSubscription>(it, true);\r\n }", "title": "" }, { "docid": "94689314d9d9ae66fe248582bb996338", "score": "0.5457631", "text": "public SubscribeNotifications() {}", "title": "" }, { "docid": "2ebc6a672e1d766e7a3ea439ef052836", "score": "0.5446137", "text": "public void init(Collection<String> subscribeTopics) {\n Set<TopicPartition> pausedPartitions = new HashSet<>();\n consumer.subscribe(subscribeTopics, new ConsumerRebalanceListener() {\n @Override\n public void onPartitionsRevoked(Collection<TopicPartition> partitions) {\n // KafkaConsumer#close has been changed to invoke onPartitionRevoked since Kafka 2.4.0.\n // Since we're doing cleanup procedure on shutdown manually\n // so just immediately return if consumer is already closing\n if (consumerClosing.get()) {\n return;\n }\n\n handler.prepareForRebalance(partitions);\n pausedPartitions.addAll(consumer.paused());\n }\n\n @Override\n public void onPartitionsAssigned(Collection<TopicPartition> ignored) {\n handler.updateAssignment(consumer.assignment());\n\n // Consumer rebalance resets all pause states of assigned partitions even though they\n // haven't moved over from/to different consumer instance.\n // Need to re-call pause with originally paused partitions to bring state back consistent.\n pausedPartitions.retainAll(consumer.assignment());\n try {\n consumer.pause(pausedPartitions);\n } finally {\n pausedPartitions.clear();\n }\n }\n });\n }", "title": "" }, { "docid": "a4b246c18c0fed1348bac63f1cbf8b50", "score": "0.543802", "text": "public Vector getSubscriptions(AID subscriber) {\n // Synchronization is needed to avoid concurrent modification exception in case this method is \n // invoked from within a separate Thread\n synchronized (subscriptions) {\n Vector ss = new Vector();\n Enumeration en = subscriptions.elements();\n while (en.hasMoreElements()) {\n Subscription s = (Subscription) en.nextElement();\n if (s.getMessage().getSender().equals(subscriber)) {\n ss.addElement(s);\n }\n }\n return ss;\n }\n }", "title": "" }, { "docid": "dbbf03a881549abb6aa1338594a9fcc0", "score": "0.5428016", "text": "public int incrSubs() {\n\t\treturn subscriptions.incrementAndGet();\n\t}", "title": "" }, { "docid": "58be328b61f7096a7c7f2c7ad986bc8a", "score": "0.54198056", "text": "public double getSubscriptions(){\n return subscriptions;\n }", "title": "" }, { "docid": "6e14a0adfd6a88e4b8df1cc63927a866", "score": "0.54195476", "text": "List<Object> unregisterSubscriber(String callerId, String topicName, String callerApi, String port);", "title": "" }, { "docid": "8abf5753cb48d03ae19c13a26d3d00ab", "score": "0.5415464", "text": "public Subscription(){}", "title": "" }, { "docid": "b143fe07331a0185cbd50d738b6c8a30", "score": "0.5413749", "text": "Topic createTopic();", "title": "" }, { "docid": "1c33f5c289a13ad23133c31f18fba58a", "score": "0.54108036", "text": "public List<Subscrption> getClusterSubscribersForTopic(String topic) throws AndesException {\n \tList<Subscrption> list = clusterTopicSubscriptionMap.get(topic);\n\t\tif( list != null){\n\t\t\treturn list; \n\t\t}else{\n\t\t\treturn Collections.emptyList();\n\t\t}\n }", "title": "" }, { "docid": "96c4b06b78422309d69fba5053ddbd32", "score": "0.53775704", "text": "public static void subscribeToTopic (String topic, String uid) {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n //add user to the topic doc\n DocumentReference topicDoc = db.collection(\"topics\").document(topic);\n\n //check if doc exists\n topicDoc.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful()) {\n if (!task.getResult().exists()) {\n //create and store firestore document\n Map<String, Object> newTopic = new HashMap<>();\n newTopic.put(\"subscribers\", Arrays.asList(uid));\n topicDoc.set(newTopic).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, uid + \" added to newly created topic\");\n } else {\n Log.d(TAG, topic + \" topic couldn't be created. Subscription failed\");\n }\n }\n });\n } else {\n //doc exists so add value in\n topicDoc.update(\"subscribers\", FieldValue.arrayUnion(uid))\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, uid + \" successfully subscribed to topic\");\n }\n });\n }\n }\n }\n });\n\n\n //add topic to user doc\n DocumentReference userDoc = db.collection(\"users\").document(uid);\n userDoc.update(\"subscription\", FieldValue.arrayUnion(topic))\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, topic + \" successfully added to user subscriptions\");\n }\n });\n }", "title": "" }, { "docid": "d32c07fb992ed4da55bbfa779b037046", "score": "0.5372117", "text": "@Test\n public void multipleSubscribersMultipleMessagesTest() {\n final FluxMessageChannel theFluxMessageChannel;\n final Message<String> theFirstInputMessage;\n final Message<String> theSecondInputMessage;\n\n theFirstInputMessage = MessageBuilder\n .withPayload(\"1\")\n .build();\n theSecondInputMessage = MessageBuilder\n .withPayload(\"2\")\n .build();\n\n // <editor-fold desc=\"Answer Section\" defaultstate=\"collapsed\">\n /* Create the two subscribers. */\n final MyReactiveSubscriber theFirstSubscriber =\n new MyReactiveSubscriber(\"First subscriber\");\n final MyReactiveSubscriber theSecondSubscriber =\n new MyReactiveSubscriber(\"Second subscriber\");\n\n /* Create the message channel. */\n theFluxMessageChannel = new FluxMessageChannel();\n theFluxMessageChannel.setComponentName(FLUX_CHANNEL_NAME);\n\n /* Subscribe two subscribers to the message channel. */\n theFluxMessageChannel.subscribe(theFirstSubscriber);\n theFluxMessageChannel.subscribe(theSecondSubscriber);\n\n theFluxMessageChannel.send(theFirstInputMessage);\n theFluxMessageChannel.send(theSecondInputMessage);\n // </editor-fold>\n\n /* Verify that both subscribers received one copy each of the messages. */\n Assertions.assertEquals(\n 2,\n theFirstSubscriber\n .getSubscriberReceivedMessages()\n .size(),\n \"Two messages should have been received by first subscriber\");\n Assertions.assertEquals(\n \"1\",\n theFirstSubscriber\n .getSubscriberReceivedMessages()\n .get(0)\n .getPayload(),\n \"First message should have expected payload\");\n Assertions.assertEquals(\n \"2\",\n theFirstSubscriber\n .getSubscriberReceivedMessages()\n .get(1)\n .getPayload(),\n \"Second message should have expected payload\");\n\n Assertions.assertEquals(\n 2,\n theSecondSubscriber\n .getSubscriberReceivedMessages()\n .size(),\n \"Two messages should have been received by second subscriber\");\n Assertions.assertEquals(\n \"1\",\n theSecondSubscriber\n .getSubscriberReceivedMessages()\n .get(0)\n .getPayload(),\n \"First message should have expected payload\");\n Assertions.assertEquals(\n \"2\",\n theSecondSubscriber\n .getSubscriberReceivedMessages()\n .get(1)\n .getPayload(),\n \"Second message should have expected payload\");\n }", "title": "" }, { "docid": "613cab1c13a701844abaf00ead965835", "score": "0.5367251", "text": "public interface TypeSubscriptionController {\n /**\n * Subscribe to all available types (no filtering).\n */\n public void subscribeToAllTypes ();\n\n /**\n * Subscribe to specified types.\n */\n public void setTypes(String ... names);\n\n /**\n * Add the specified type names to subscription.\n */\n public void addTypes (String ... names);\n\n /**\n * Remove the specified types from subscription.\n */\n public void removeTypes (String ... names);\n}", "title": "" }, { "docid": "a4d7dd6014615120642ae8da679cf9df", "score": "0.5365002", "text": "public Topic getTopic();", "title": "" }, { "docid": "7229cea63b72625ed4b068ab949c8d70", "score": "0.5351061", "text": "private static void subscriptionList() {\n BaseInfoVo baseInfoVo = new BaseInfoVo.Builder()\n .setToken(TOKEN)\n .setToken_issuer(1)\n .setServerType(Enum_Server_type.SANDBOX)\n// .setScApiKey(\"\")\n// .setScVoucherHash(scVoucherHashs)\n .build();\n\n PodSubscription podSubscription = new PodSubscription();\n\n\n try {\n SubscriptionListVo subscriptionListVo = new SubscriptionListVo.Builder(baseInfoVo)\n .setOffset(0L)\n .setSize(100L)\n .setSubscriptionPlanId(41L)\n// .setScVoucherHash(scVoucherHashs)\n .build();\n podSubscription.subscriptionList(subscriptionListVo, new OnGetResponseListener<List<SubscriptionFullSrv>>() {\n @Override\n public void onResponse(ResultVo<List<SubscriptionFullSrv>> result) {\n System.out.println(result.getResult().get(0).getId());\n }\n\n @Override\n public void onFailed(PodException e) {\n System.out.println(\"code : \" + e.getCode() + \"\\nmessage : \" + e.getMessage());\n }\n });\n } catch (PodException e) {\n System.out.println(\"code : \" + e.getCode() + \"\\nmessage : \" + e.getMessage());\n }\n\n }", "title": "" }, { "docid": "435ab0ba4bed03550e1b37aa89bdcd6f", "score": "0.534366", "text": "default void onSubscribe(ScanSubscription subscription) {\n subscription.request(Long.MAX_VALUE);\n }", "title": "" }, { "docid": "678e94e75b9dc16ffe075e340a1585e1", "score": "0.5342567", "text": "@Test\n public void testCleanSession_correctlyClientSubscriptions() {\n Client client = new Client(\"localhost\", Server.PORT, \"CLID_123\");\n client.connect(false); //without session cleanup\n \n client.subscribe(\"/topic\", new IPublishCallback() {\n \n public void published(String topic, byte[] message) {\n received = true;\n }\n });\n client.close();\n client.shutdown();\n \n //Exercise that the client maintain the subscriptions\n client = new Client(\"localhost\", Server.PORT, \"CLID_123\");\n client.register(\"/topic\", new IPublishCallback() {\n \n public void published(String topic, byte[] message) {\n received = true;\n }\n });\n client.connect(true); \n client.publish(\"/topic\", \"Test my payload\".getBytes());\n client.close();\n \n //Verify\n assertFalse(received);\n \n //TearDown \n client.shutdown();\n }", "title": "" }, { "docid": "563f1f0973875dd0e4410a93472405cd", "score": "0.5331779", "text": "TopicSubscriber\n createDurableSubscriber(Topic topic, \n\t\t\t String name) throws JMSException;", "title": "" }, { "docid": "0a071c659bec9c3a0d38f6705e184b21", "score": "0.532542", "text": "public A_AH_MTopic getTopic(){\r\n return topic;\r\n }", "title": "" }, { "docid": "5f782d0ce996f6aa715b641d497a84f1", "score": "0.53130805", "text": "public interface Session {\n\n Topic createTopic(String topic);\n\n MessageConsumer createConsumer(Topic topic);\n\n void close();\n\n void clearAllConsumers();\n\n ArrayList<MessageConsumer> allConsumers();\n\n\n}", "title": "" }, { "docid": "21fcd1b08cdc9655f8893cedda2a2733", "score": "0.5309578", "text": "public Builder setSubscriptions(\n int index, com.flipkart.vbroker.proto.TopicSubscription value) {\n if (subscriptionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSubscriptionsIsMutable();\n subscriptions_.set(index, value);\n onChanged();\n } else {\n subscriptionsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "b5a7350da3b2403cf93fdc7c03122c0b", "score": "0.5301918", "text": "int getSubscriberCount();", "title": "" }, { "docid": "4c6c06241052818e72b69c452a2c3a0b", "score": "0.5301656", "text": "private void subscribeToServerTopics() throws MqttException {\n for (ServerSubscribedTopics topic : ServerSubscribedTopics.values()) {\n mqttClient.subscribe(topic.getTopicRegisteredName(), new MQTTServerListener());\n System.out.println(\"Subscribed to: \" + topic.getTopicRegisteredName());\n }\n }", "title": "" }, { "docid": "d1eec1b8524c25f0eebf57ca3fa437d1", "score": "0.52994746", "text": "T subscribe(S s);", "title": "" }, { "docid": "815e9bbd67bca5910a4bf8fcd448939f", "score": "0.5295057", "text": "public int getRequestedSubscriptions() {\n return _requestedSubscriptions;\n }", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.52894163", "text": "String getTopic();", "title": "" }, { "docid": "32e9ac10e3a21ba10c5d9273cba1e82d", "score": "0.52885693", "text": "@Override\n public void onSubscribe(int code, String text) {\n mTopicName = mTopic.getName();\n }", "title": "" }, { "docid": "c6f5e7d7d7243b49b7c1ce1bbccfd824", "score": "0.5282851", "text": "public Builder addSubscriptions(spec.proto.runtime.v1.AppCallbackProto.TopicSubscription value) {\n if (subscriptionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSubscriptionsIsMutable();\n subscriptions_.add(value);\n onChanged();\n } else {\n subscriptionsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "db43662a06ecab4eba13700fd46d1b65", "score": "0.52806044", "text": "private void subscribeToMessages(String fromTopic) {\n THREAD_POOL.submit(() -> {\n try {\n middleware.subscribe(fromTopic);\n } catch (MqttSecurityException e) {\n e.printStackTrace();\n } catch (MqttException e) {\n e.printStackTrace();\n }\n });\n }", "title": "" }, { "docid": "a0e8f97e1d14896fd400e2497c493be7", "score": "0.5275433", "text": "@PUT\r\n @Path(\"client\")\r\n @Consumes(\"text/plain\")\r\n public boolean subscribe(@QueryParam(\"subscription\") String subscription) {\r\n try {\r\n List<Predicate> predicates = new ArrayList<>();\r\n Predicate predicate = new Predicate();\r\n String[] components = subscription.split(\",\");\r\n predicate.setDistance(Integer.parseInt(components[0]));\r\n predicate.setLatitude(Double.parseDouble(components[1]));\r\n predicate.setLongitude(Double.parseDouble(components[2]));\r\n int i = 3;\r\n while (true) {\r\n if (i >= components.length) {\r\n break;\r\n }\r\n predicate.setProductId(Integer.parseInt(components[i]));\r\n predicate.setPriceLow(Double.parseDouble(components[++i]));\r\n predicate.setPriceHigh(Double.parseDouble(components[++i]));\r\n predicates.add(predicate);\r\n }\r\n pwLogic.addTrigger(predicates);\r\n }\r\n catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "effd9943ec37c20ffacb3572037126f1", "score": "0.52750444", "text": "public void subscribe(final Hashtable args) {\n args.put(\"timetoken\", \"0\");\n _subscribe(args);\n \n\n }", "title": "" }, { "docid": "11e9b98dc829946ffd08a0f467fa8ed5", "score": "0.5272848", "text": "public void removeSubscriptions(ArrayList<Subscription> subscriptions);", "title": "" }, { "docid": "db13d53fcb10af0f0f0098a1a2c1ea11", "score": "0.5271852", "text": "public int getSubscriptionsCount() {\n return subscriptions_.size();\n }", "title": "" }, { "docid": "610e21d7156262819d3795fae58c831a", "score": "0.526975", "text": "Topic getTopic();", "title": "" }, { "docid": "84df005c8418c63469fcb9d4df63974d", "score": "0.52682275", "text": "String subscription();", "title": "" } ]
8d8cbabe1c66678f16b72b4d623dc652
method called when scene is clicked after map is initialised
[ { "docid": "6bbb5f43c08d07a089711d56c7985b3b", "score": "0.0", "text": "public void anchorOnClick(MouseEvent mouseEvent)\n {\n //determines the x and y in relation to the context of the\n //grid\n int y = (int) mouseEvent.getY()/5;\n int x = (int) mouseEvent.getX()/5;\n System.out.println(y+\"\\t\"+x);\n if(!(y>119)) {\n determineClick(y, x);\n }\n }", "title": "" } ]
[ { "docid": "b4b9437faf6b8835b16a97b6cbff0936", "score": "0.66653454", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowMap();\n\t\t\t}", "title": "" }, { "docid": "bad08c3cb9a068c27eb4c22b2de09d7a", "score": "0.6634885", "text": "public void onMapClicked(View view) {\n updateFields();\n\n switchToMapView();\n }", "title": "" }, { "docid": "d9baa49aa605a4c0d8a60a54798ee305", "score": "0.6594997", "text": "public void act()\n {\n //Greenfoot.setWorld(new TitleScreen());\n if(backButton.isClicked())\n {\n backButton.setClicked(false);\n Greenfoot.setWorld(new TitleScreen());\n }\n }", "title": "" }, { "docid": "d1df0425cc06f931b5fa5c00859ca8b1", "score": "0.6569598", "text": "public void act() {\n if (Greenfoot.mouseClicked(RETURN)) {\n Greenfoot.setWorld(new Menu());\n }\n }", "title": "" }, { "docid": "6aaa84593b6b6d4258730b3880214334", "score": "0.65670747", "text": "public void handleMapSelectScreen() {\n\t\t\t\tmapSelectScreen = new MapSelectScreen();\n\t\t\t\tGameGUI.this.remove(mainMenu);\n\t\t\t\tGameGUI.this.add(mapSelectScreen);\n\t\t\t\tpack();\n\t\t\t}", "title": "" }, { "docid": "50b6f4234a87468fde8ba1cae131a3db", "score": "0.650958", "text": "@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\n\t\t\t\t}", "title": "" }, { "docid": "50b6f4234a87468fde8ba1cae131a3db", "score": "0.650958", "text": "@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\n\t\t\t\t}", "title": "" }, { "docid": "f2a876fdaa6c4f1aa3a8368a30450172", "score": "0.64443994", "text": "public void handle(MouseEvent arg0) {\n\t\t\t\tMainMenu.mainStage.setTitle(\"Pacman\");\n\t\t\t\tMainMenu.setScene(MainMenu.getScene());\n\t\t\t}", "title": "" }, { "docid": "3543062d7b01a6b8a4980a66fd0a8c05", "score": "0.64412105", "text": "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t\tint mapX = (int) Math.floor(e.getX() / tileWidth);\n\t\tint mapY = (int) Math.floor((e.getY() - 25) / tileHeight);\n\t\t\n\t\tdataManagement.setCurrentUnit(mapX, mapY);\n\t\tdataManagement.setCurrentCity(mapX, mapY);\n\t\t\n\t\tif(e.getX() > 1250 && e.getX() < 1350 && e.getY() > 750 && e.getY() < 800)\n\t\t\tdataManagement.endTurn();\n\t}", "title": "" }, { "docid": "243add698de59ddeea248028df2398d0", "score": "0.643216", "text": "public void act()\r\n {\r\n if(Greenfoot.mouseClicked(this)){\r\n clicked = true;\r\n }\r\n }", "title": "" }, { "docid": "2129d90f3ce16191e631c5912d84db3b", "score": "0.63750374", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmouseKeyboard.handleMouseClicked(e,display.getFrameX(),display.getFrameY(),\n\t\t\t\t\t\tdisplay.getFrameSizeX(),display.getFrameSizeY(),map.getViewedMap());\n\t\t\t}", "title": "" }, { "docid": "00d774da58631f90543b168e5611f46c", "score": "0.63471854", "text": "public void onInitScene() {\r\n\t}", "title": "" }, { "docid": "20b1313e8d471d4efae3df9aa90bb262", "score": "0.6323292", "text": "@Override\n public void update() {\n switch (Menu.getClickedButton())\n {\n case NEW_GAME:\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/xmlFiles/map.fxml\"));\n Menu.getActualStage().setScene(new Scene(root, 1000,800));\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case EXIT:\n Menu.getActualStage().close();\n break;\n }\n }", "title": "" }, { "docid": "cee1cbac5372492bf09eeabc80e9f4c8", "score": "0.63073796", "text": "public void clickMap(Coordinate coordinate){\n\t}", "title": "" }, { "docid": "7f62c21a72a41671f96ca34309de2f65", "score": "0.6281626", "text": "public void act() \n {\n World pw = getWorld();\n \n if(Greenfoot.mousePressed(this) && SelectModeButton.modeFlag==true)\n {\n List leftImage = pw.getObjects(LeftImage.class);\n List rightImage = pw.getObjects(RightImage.class);\n List middleImage = pw.getObjects(MiddleImage.class);\n pw.removeObjects(rightImage);\n pw.removeObjects(middleImage);\n pw.removeObjects(leftImage);\n pw.addObject(new LeftImage(),320,535);\n pw.addObject(new MiddleImage(),500,535);\n \n } \n }", "title": "" }, { "docid": "d2a9dc924b87f51069a3b9d6aa588927", "score": "0.6264712", "text": "public void actionPerformed(ActionEvent event) {\n IslandDrawing.g.hideActivePanel();\n IslandDrawing.g.sceneDisplay(0);\n IslandDrawing.g.refresh();\n\n }", "title": "" }, { "docid": "0a96bbceeca470f703c403b6010fe3d0", "score": "0.62608856", "text": "@Override\n\tpublic void clickMap(Coordinate coordinate){\n\t\tif (currentMenuState == null) return;\n\t\tcurrentMenuState.clickMap(coordinate);\n\t}", "title": "" }, { "docid": "1f5ccd80abfb3d48166d50f0d856a3d3", "score": "0.62563246", "text": "public void playMouseClicked() {\n this.sceneController.setCurrentPane(\"main\");\n }", "title": "" }, { "docid": "780397e38ad4b3d173ebff863b64da1c", "score": "0.6243121", "text": "public static void onHome(){\n stage.setTitle(WINDOW_TITLE);\n stage.setScene(menuScene);\n }", "title": "" }, { "docid": "d7b43daad73df1c918c1a2cfdf4de2b6", "score": "0.62049156", "text": "@Override\r\n\tpublic void initScene() {\n\r\n\t}", "title": "" }, { "docid": "92560c2f27977e869dfc1e7a16c3728c", "score": "0.61983", "text": "@Override\n public void onMapClick(LatLng arg0) {\n startActivity(new Intent(HomeScreen.this, HawkGoogleMap.class));\n }", "title": "" }, { "docid": "a446a62e29f773707c86235c732d59d8", "score": "0.6193767", "text": "public void selectLocation(){\n rootNode.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n\n int x = getKeyX((int)event.getSceneX());\n int y = getKeyY((int)event.getSceneY());\n\n if(!isWithinObstacle(x,y)){\n if(!setUpHive) {\n homeX = x;\n homeY = y;\n generateHive();\n setUpHive = true;\n }\n else if(!setUpFood){\n Coordinate foodLoc = new Coordinate(x,y);\n foodCoordinate.add(foodLoc);\n generateFood(x,y);\n foodCount++;\n if(foodCount == numFood){\n setUpFood = true;\n createEvents();\n begin();\n }\n }\n }\n else{\n Alert a = new Alert(Alert.AlertType.WARNING);\n a.setContentText(\"Invalid location!\");\n }\n }\n });\n }", "title": "" }, { "docid": "df3b7930ccb4f96801c79ed801d09df7", "score": "0.6193524", "text": "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "title": "" }, { "docid": "414522269d20ab8a98fe944c2157b9b6", "score": "0.6190653", "text": "public void mouseClicked(MouseEvent mouseEvent){\n mazeDisplayer.requestFocus();\n }", "title": "" }, { "docid": "3cb1bda4839a7fa69497ecbc542c02c6", "score": "0.6173838", "text": "@Override\n public void onMapClick(LatLng latLng) {\n }", "title": "" }, { "docid": "019b8e55200e2c6f1c01a5962c251f5d", "score": "0.6171386", "text": "public void changeMap() {\n\t\tif (Gdx.input.isKeyPressed(Keys.K)) { \n\t\t\tthis.dispose(); \n\t\t\tgame.setScreen(new PortalArea1(game, player)); \n\t\t}\n\t}", "title": "" }, { "docid": "f5cf0d35a8ed2f35f34b2bc8ceed2183", "score": "0.615081", "text": "public void onMapPressed(View view) {\n Button btn = findViewById(R.id.view_map_button);\n\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(ShipHome.this, MapPage.class));\n }\n });\n }", "title": "" }, { "docid": "6453a9c58ce92e534e0e5fd97b1f97e0", "score": "0.61493963", "text": "@Override\n public void onMapClick(LatLng latLng) {\n }", "title": "" }, { "docid": "ad928b17b712f45f740307312de00b9f", "score": "0.6131062", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonClickMapAll();\n\t\t\t}", "title": "" }, { "docid": "dcd458d081c6651dd7e61b571858df88", "score": "0.6130201", "text": "private void buttonMenuMapNowOnClickHandler() {\n\n arg = 0;\n\n retrieveJSONonlineLoc( arg );\n\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra( \"VAL\", arg );\n startActivity(intent);\n\n }", "title": "" }, { "docid": "e33aa9bf570dca8e9d9158450a9d83fd", "score": "0.61299896", "text": "public abstract void onMapTouched();", "title": "" }, { "docid": "57f8a505e7f15d2765bd4362b1b47bac", "score": "0.6113881", "text": "private void loadMapScene() {\n mapView.getMapScene().loadScene(MapStyle.NORMAL_DAY, new MapScene.LoadSceneCallback() {\n @Override\n public void onLoadScene(@Nullable MapScene.ErrorCode errorCode) {\n if (errorCode == null) {\n mapView.getCamera().setTarget(new GeoCoordinates(48.872156, 2.347464));\n mapView.getCamera().setZoomLevel(12);\n\n } else {\n Log.d(TAG, \"onLoadScene failed: \" + errorCode.toString());\n }\n }\n });\n }", "title": "" }, { "docid": "57f2ec2bc68e2d7134004460e9b5706f", "score": "0.610592", "text": "public void onUpdateScene() {\r\n\t}", "title": "" }, { "docid": "f732da168f7c3f94d0d78c69d88c62d8", "score": "0.609753", "text": "@Override\n public void onMapReady() {\n setupPeopleMovers();\n setupParkingZones();\n map.youAreHere.setActive(false);\n map.pin.setActive(false);\n mapStartPin = new MapStartPin();\n mapEndPin = new MapEndPin();\n mapMarkerPin = new MapMarkerPin();\n mapStartPin.setVisible(false);\n mapEndPin.setVisible(false);\n mapMarkerPin.setVisible(false);\n map.addToMap(mapStartPin);\n map.addToMap(mapEndPin);\n map.addToMap(mapMarkerPin);\n map.setOnElementClickListener(onElementClickListener);\n mapReady = true;\n EventBus.getDefault().post(new MapReadyEvent(true));\n\n if(map != null)\n setAllLabels(map);\n }", "title": "" }, { "docid": "4fd249050502e5ce5192f51d77daf59f", "score": "0.6091778", "text": "@Override\n public void onClick(View v) {\n Bundle args = new Bundle();\n args.putParcelable(\"myLocation\", myLocation);\n args.putParcelable(\"sourceLocation\", sourceLocation);\n args.putParcelable(\"destinationLocation\", destinationLocation);\n args.putBoolean(\"isRoute\", true);\n mCallback.onMapButtonClicked(args);\n //mapFragment.setArguments(args);\n\n //FragmentManager fm = getChildFragmentManager();\n //fm.beginTransaction().add(R.id.mapContainer, mapFragment).addToBackStack(null).commit();\n }", "title": "" }, { "docid": "e91dd9c9030b559e249539475ed0a1ea", "score": "0.6059529", "text": "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\tfor (int i = 0; i < buttonList.size(); i++) {\n\t\t\t\tif (Mouse.isInRegion(e.getX(), e.getY(), buttonList.get(i)\n\t\t\t\t\t\t.getPosX(), buttonList.get(i).getPosY(), buttonList\n\t\t\t\t\t\t.get(i).getPosX() + buttonList.get(i).getWidth(),\n\t\t\t\t\t\tbuttonList.get(i).getPosY()\n\t\t\t\t\t\t\t\t+ buttonList.get(i).getHeight())) {\n\t\t\t\t\tif (!buttonList.get(i).getAction().equals(\"ls\")) {\n\t\t\t\t\t\tmapCanvas.setMode(buttonList.get(i).getAction());\n\t\t\t\t\t\tif (buttonList.get(i).getAction().equals(\"start\")\n\t\t\t\t\t\t\t\t|| buttonList.get(i).getAction().equals(\"exit\")) {\n\t\t\t\t\t\t\tmapCanvas.editorMap.setLevel2();\n\t\t\t\t\t\t\tmapCanvas.repaint();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapCanvas.editorMap.switchLevel();\n\t\t\t\t\t\tmapCanvas.repaint();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "882ce688d1a38f18bf623d2356960f69", "score": "0.60418344", "text": "public void mouseClicked(MouseEvent e) {\n\t\t\tgame Frame = new game();\n\t\t\n\t\t}", "title": "" }, { "docid": "b188628d1d600b9b8946814c9897dca8", "score": "0.6037112", "text": "@Override\r\n\tpublic void onClick(ClickDetector pClickDetector, int pPointerID,\r\n\t\t\tfloat pSceneX, float pSceneY) {\n\t\tloadLevel(iLevelClicked);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bd7796ea1061aa46d8cca6d25fc40821", "score": "0.6033889", "text": "public void mouseClicked(java.awt.event.MouseEvent e) {\r\n \r\n boolean foundSat = false;\r\n boolean zoomPositive;\r\n \r\n if (!langSelected) { //selects language\r\n if (e.getY() < mapWindowY && e.getX() < mapWindowX) {\r\n if (e.getX() < (mapWindowX / 2))\r\n langEng = false;\r\n else\r\n langEng = true;\r\n if (animationThread == null) {\r\n animationThread = new Thread(this);\r\n animationThread.start();\r\n }\r\n }\r\n }\r\n else {\r\n //handles unzooming either shift is down or right click\r\n if (e.isShiftDown() || e.getModifiers() == InputEvent.BUTTON2_MASK || e.getModifiers() == InputEvent.BUTTON3_MASK) \r\n zoomPositive = false; //unzooms if shift is held down\r\n else\r\n zoomPositive = true;\r\n \r\n \r\n \r\n switch (e.getClickCount()) {\r\n //single click, selects satellite\r\n case 1 : {\r\n if (e.getX() > mapWindowX - 80 && e.getY() > mapWindowY - 35 ) {\r\n optionsDialog.show();\r\n optionsDialog.pack();\r\n optionsDialog.setVisible(true);\r\n }\r\n else {\r\n \r\n for (int satCount = 0; !foundSat && satCount < satsVect.size(); satCount++) {\r\n SatSprite sat = (SatSprite) satsVect.elementAt(satCount);\r\n if (Math.abs(getXCoord(sat.getLong()) - e.getX()) < 30 && Math.abs(getYCoord(sat.getLat()) - e.getY()) < 30) {\r\n followSat = false;\r\n if (satSelected != sat) { \r\n satSelected = sat;\r\n if (mySlider == null) mySlider = new MapSlider(satSelected,this);\r\n }\r\n //if the same satellite is selected as before, the screen slide will animate towards it\r\n //follow sat is enabled after satellite is centered\r\n else if (!followSat) {\r\n if (mySlider == null) mySlider = new MapSlider(satSelected,this);\r\n }\r\n\r\n //resets these variables so sat info can be drawn again\r\n satInfoFractionX = 0.0D;\r\n satInfoFractionY = 0.0D;\r\n foundSat = true; //satellite is found\r\n } \r\n }\r\n //deselects satellite and followsat feature\r\n if (!foundSat && !pathSelected) {\r\n satSelected = null;\r\n followSat = false;\r\n }\r\n \r\n if (!foundSat && pathSelected)\r\n myData.timeJump = dateSelected - myData.timeNow;\r\n }\r\n //if zooming out, one click performs zooming action in case 2\r\n if (zoomPositive) break;\r\n }\r\n //double click zoom\r\n case 2 : {\r\n double zoomTo = zoom;\r\n if (myZoomer == null) {\r\n followSat = false;\r\n //begins zooming algorithm\r\n if ( (zoomPositive && zoomTo < 6) || (zoomTo > 1 && !zoomPositive) && !foundSat && myZoomer == null) {\r\n if (zoomPositive) { //increases zoom factor\r\n if (zoomTo == 1) zoomTo += 1;\r\n else zoomTo += 2;\r\n }\r\n else if (zoomTo > 2) zoomTo -= 2; //zooms out double speed if zoom is high\r\n else zoomTo -= 1;\r\n \r\n //starts zoom map animation\r\n myZoomer = new Zoomer(mouseLong, mouseLat, zoomTo, this);\r\n \r\n //coordinates for zoom to focus on\r\n }\r\n }\r\n break;\r\n }\r\n //triple clicks... easter egg\r\n case 3: {\r\n int x = Math.abs( e.getX() - getXCoord(-73.75) );\r\n int y = Math.abs( e.getY() - getYCoord( 45.67) );\r\n \r\n if (shuttleCreated) {\r\n shuttleCreated = false;\r\n satsVect.remove(shuttleSprite);\r\n shuttleThread.stop();\r\n shuttleThread = null;\r\n }\r\n \r\n else if ( !pathSelected && !shuttleCreated && !zoomPositive && x < 20 && y < 20) {\r\n shuttleSprite = new SatSprite(getLatCoord(mapWindowY / 2), getLongCoord(mapWindowX / 2), 0, 0, 0, 0, \"sat83\");\r\n satSelected = shuttleSprite;\r\n if (shuttleThread == null) {\r\n shuttleThread = new Thread(this);\r\n shuttleThread.start();\r\n }\r\n satsVect.addElement(shuttleSprite);\r\n followSat = true;\r\n satInfoFractionX = 0; satInfoFractionY = 0; //resets animation for info circle\r\n shuttleCreated = true;\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n repaint();\r\n }", "title": "" }, { "docid": "f0536dffe3e885c6d93aff181005996d", "score": "0.6018202", "text": "public void onNewGame() {\n listView1.getItems().clear();\n listView2.getItems().clear();\n\n initialize();\n\n mapStage.close();\n }", "title": "" }, { "docid": "86c8a72351f52e0fa5aff4e77be7a4ce", "score": "0.6016495", "text": "private void onRouteClicked(TrainingData route) {\n }", "title": "" }, { "docid": "182e307aa4596b594273a0dbc01c9b0c", "score": "0.60114473", "text": "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n markerMap = new HashMap<>();\r\n mMap = googleMap;\r\n getApartments(mMap);\r\n\r\n // set on click listeners to go to the apartment\r\n // view page of the selected markers\r\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\r\n @Override\r\n public void onInfoWindowClick(Marker marker) {\r\n Apartment selectedApartment = markerMap.get(marker);\r\n Intent intent = new Intent(getActivity(), ApartmentViewPage.class);\r\n intent.putExtra(\"apartment\", selectedApartment);\r\n startActivity(intent);\r\n }\r\n });\r\n // sets the view map to the proximity of the current location\r\n setCameraLocation();\r\n\r\n }", "title": "" }, { "docid": "4ec3eecbeb8ea8ca69a86875e2b1341a", "score": "0.60112864", "text": "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tapplication.resetGame();\r\n\t\t\t}", "title": "" }, { "docid": "dda7cbd89d3611110e4537756f674fa0", "score": "0.60062414", "text": "@FXML\r\n void MainMenuButtonClick(ActionEvent event) throws Exception {\r\n \tGeneralMethods.ChangeScene(\"MainMenu\", \"MainMenu\");\r\n }", "title": "" }, { "docid": "9e195c54074eaf5dd672f363d9a84df0", "score": "0.60045254", "text": "protected void mouseClicked(int par1, int par2, int par3)\r\n/* 131: */ {\r\n/* 132:139 */ super.mouseClicked(par1, par2, par3);\r\n/* 133:140 */ this.waypointX.mouseClicked(par1, par2, par3);\r\n/* 134:141 */ this.waypointY.mouseClicked(par1, par2, par3);\r\n/* 135:142 */ this.waypointZ.mouseClicked(par1, par2, par3);\r\n/* 136:143 */ this.waypointName.mouseClicked(par1, par2, par3);\r\n/* 137: */ }", "title": "" }, { "docid": "19491d32d0817a8a1236bbe5481f5fef", "score": "0.5997353", "text": "public void goToStats3(ActionEvent event) {\n LatLongMainApp.goToStats3();\n }", "title": "" }, { "docid": "8ea5f995ec4d6aff8d37aba0da4a66b5", "score": "0.59968966", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t\tev=new ElectView(game);\n\n\t\t\t\tev.setVisible(true);\n\t\t\t}", "title": "" }, { "docid": "23c8eb1aaa418519d542ebfdfe476a48", "score": "0.598372", "text": "private void init(){\n nearbyLocationsRelativeLayout.setOnClickListener(showMapCardClickListener);\n }", "title": "" }, { "docid": "6d79a140f64955a635f22dbc5825e478", "score": "0.59733224", "text": "public void sceneChanged(Scene scene) {\n }", "title": "" }, { "docid": "8fa9bbcf1d1358339b22f30bc5cf30ea", "score": "0.5972819", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8fa9bbcf1d1358339b22f30bc5cf30ea", "score": "0.5972819", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "21f99be6f9c5f5988f95fee5c05dd694", "score": "0.5971786", "text": "@Override\n\tpublic void mapObjectClicked(String identifier) {\n\t\t\n\t\tif(controlP5.getTab(\"map\").isActive()) {\n\t\t\tthis.map_forms.editObject(OWLThing.removeSingleQuotes(OWLThing.getShortNameOfIRI(identifier)));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3fe613d623e821768c1075e9e384e90d", "score": "0.59675974", "text": "public void retourMenu(){\n Main.changerScene();\n }", "title": "" }, { "docid": "151db7fbb2eca64fe63fa1d8eff82c54", "score": "0.5965305", "text": "public GameScreen(final ScreenManager screenManager, SpriteBatch batch, Viewport viewport){\n super(screenManager,batch,viewport);\n map = new Map(new TextureRegion(new Texture(Gdx.files.internal(MAP_PATH))),\n batch, 0,0);\n stage.addActor(map);\n \n autoButton = Buttons.getTextButton();\n autoButton.setX(map.getMapX() + map.getWidth() + 25);\n autoButton.setY(map.getHeight() / 2f - autoButton.getHeight() / 2f);\n autoButton.setText(\"Auto\");\n autoButton.addListener(new ClickListener(){\n @Override\n public void clicked(InputEvent event, float x, float y) {\n map.replaceShips();\n }\n });\n\n backButton = Buttons.getTextButton();\n backButton.setX(map.getMapX() + map.getWidth() + 25);\n backButton.setY(map.getHeight() / 2f - backButton.getHeight() * 2f);\n backButton.setText(\"Back\");\n backButton.addListener(new ClickListener(){\n @Override\n public void clicked(InputEvent event, float x, float y) {\n screenManager.setMainMenuScreen();\n }\n });\n\n stage.addActor(autoButton);\n stage.addActor(backButton);\n\n /* xRayWindow = new Texture(Gdx.files.internal(XRAY_WINDOW_IMAGE_PATH));\n // shader init\n ShaderProgram.pedantic = false;\n shader = new ShaderProgram(Gdx.files.internal(MAP_XRAY_SHADER_PATH + \".vsh\"), Gdx.files.internal(MAP_XRAY_SHADER_PATH + \".fsh\"));\n shader.begin();\n shader.setUniformf(\"u_TextureWidth\", xRayWindow.getWidth());\n shader.setUniformf(\"u_TextureHeight\", xRayWindow.getHeight());\n shader.end();\n */\n }", "title": "" }, { "docid": "42d0b348ce202bb600e38292b633b33a", "score": "0.59637845", "text": "public void mapPressed(Player player, float x, float y){\n\n }", "title": "" }, { "docid": "1c17b14f2840c765aaf901197e994e7f", "score": "0.59618706", "text": "public void onShowMap() {\n mapStage = new Stage();\n Pane pane = new Pane();\n mapImageView = new ImageView();\n Image image = mapGenerator.toImage();\n mapImageView.setImage(image);\n pane.getChildren().add(mapImageView);\n Scene scene = new Scene(pane, 720, 540);\n mapStage.setScene(scene);\n mapStage.show();\n }", "title": "" }, { "docid": "8d64e397d0b22bcd38c75ab39e5da47d", "score": "0.5956073", "text": "@Override\n\tpublic void onMapClick(LatLng point) {\n\t\tgoogleMap.animateCamera(CameraUpdateFactory.newLatLng(point));\n\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c06ea8e70bb72a773dd8858fc9334a39", "score": "0.5952024", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c87015734f8eec979a1b9b2aef1ae4a5", "score": "0.59458774", "text": "public MapViewScreen(final IslandGame game) {\n currentShowingOutlines = new HashSet<>();\n\n //Load necessary assets to manager\n assets = new HashMap<>();\n assets.put(Terrain.MAP_VIEW_ATLAS_PATH, TextureAtlas.class);\n assets.put(\"Fonts/MapViewRegionName.fnt\", BitmapFont.class);\n IslandGame.loadAllAssets(game.getManager(), assets);\n game.getManager().finishLoading();\n atlas = game.getManager().get(Terrain.MAP_VIEW_ATLAS_PATH, TextureAtlas.class);\n\n this.game = game;\n stage = new Stage(new FitViewport(IslandGame.getGameWidth(), IslandGame.getGameHeight()));\n setInputProcessor(game, stage);\n //Add map background\n Image mapBackground = new Image(atlas.findRegion(\"backomap\"));\n mapBackground.setPosition((0.02f * (float)IslandGame.GAME_WIDTH), (float)(.2/6.0 * (float)IslandGame.GAME_HEIGHT));\n mapBackground.setSize((float)(.56* (float)IslandGame.GAME_WIDTH), (float)(.56* (float)IslandGame.GAME_WIDTH));\n stage.addActor(mapBackground);\n\n //Create root table\n rootTable = new Table();\n rootTable.setRound(false);\n stage.addActor(rootTable);\n rootTable.setFillParent(true);\n\n //Create table map\n mapTable = initializedMapTable();\n\n //Create label that states the currently selected reigon\n Label.LabelStyle regionLabelStyle = new Label.LabelStyle();\n regionLabelStyle.font = game.getManager().get(\"Fonts/MapViewRegionName.fnt\");\n regionLabelStyle.fontColor = Color.BLACK;\n selectedRegionLabel = new Label(\"\", regionLabelStyle);\n float labelWidth = (float)(.38 * (float)IslandGame.GAME_WIDTH);\n float labelHeight = (float) (1.0 / 3.0 * (float)IslandGame.GAME_HEIGHT);\n selectedRegionLabel.setSize(labelWidth, labelHeight);\n selectedRegionLabel.setAlignment(Align.topLeft);\n\n //Create back arrow image\n Image backArrow = new Image(atlas.findRegion(\"backarrow\"));\n backArrow.setSize(.15f * (float)IslandGame.getGameWidth(), .15f * (float)IslandGame.getGameWidth());\n backArrow.setPosition(.7f * (float)IslandGame.getGameWidth(), 1f / 6f * (float)IslandGame.getGameHeight());\n backArrow.addListener(new InputListener(){\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n return true;\n }\n\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n game.loadGameScreen();\n }\n });\n stage.addActor(backArrow);\n\n /* format root table */\n //Add mapTable\n float leftPadding = (.05f * (float)IslandGame.GAME_WIDTH);\n float topBottomPadding = (float)(5.0 / 60.0 * (float)IslandGame.GAME_HEIGHT);\n rootTable.row().height((float)(5.0 / 6.0 * (float)IslandGame.GAME_HEIGHT));\n rootTable.add(mapTable).expand().width((float)(.5 * (double)IslandGame.GAME_WIDTH)).\n padLeft(leftPadding).padTop(topBottomPadding).padBottom(topBottomPadding).left();\n //Add region label\n rootTable.add(selectedRegionLabel).padRight(topBottomPadding / 3.0f).width(labelWidth).left();\n\n rootTable.validate();\n mapTable.validate();\n\n //Add current location marker\n Image redDot = new Image(atlas.findRegion(\"reddot\"));\n redDot.setSize(mapTable.getColumnWidth(0), mapTable.getRowHeight(0));\n float xStartPos = mapTable.localToStageCoordinates(new Vector2(0, 0)).x;\n float yStartPos = mapTable.localToStageCoordinates(new Vector2(0, 0)).y;\n float xMod = mapTable.getWidth() / (float)mapTable.getColumns() * (float)getGame().getCurrentTile()\n .getCoordinates().x;\n float yMod = mapTable.getHeight() / (float)mapTable.getRows() *\n ((float)mapTable.getRows() - 1 - (float)getGame().getCurrentTile().getCoordinates().y);\n redDot.setPosition(xStartPos + xMod, yStartPos + yMod);\n addInputListenerToMapTile(redDot, getGame().getCurrentTile().getRegion());\n stage.addActor(redDot);\n redDot.toFront();\n }", "title": "" }, { "docid": "8886f0ddf3790c4ae9ba524ac1d4b43b", "score": "0.5942502", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8886f0ddf3790c4ae9ba524ac1d4b43b", "score": "0.5942502", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8886f0ddf3790c4ae9ba524ac1d4b43b", "score": "0.5942502", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "44d66003128a4ca339bfe089ae7fb334", "score": "0.5932723", "text": "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1e69da5de27317fa7f4b836851d40af0", "score": "0.59325933", "text": "public void mouseClicked(MouseEvent e) {/*Nothing needed here, keep blank\n (for now)*/}", "title": "" }, { "docid": "9876521eb45a14a00ff6cdabeaf11fe7", "score": "0.5921535", "text": "@Override\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tclickCounter += 1;\n\t\tGLCanvas canvas = (GLCanvas) arg0.getSource();\n\t\tcanvas.repaint();\n\t\n\t\tSystem.out.print(arg0.getButton());\n\t\tevents.notifyMousePressEvent(azimuthDirection,elevationDirection, 0);\n\t\t//setting inHeadLocalization to 0 could cause troubles here\n\t}", "title": "" }, { "docid": "d1e32ef9d7dde50a41a5dcc0f9c78adb", "score": "0.5920959", "text": "@Override\n public void back() {\n SceneHelper.setUpScene(this, \"Events\");\n }", "title": "" }, { "docid": "caf301a4fd6a842ff4dfeb4928617e51", "score": "0.59150475", "text": "public StageDetailsScreen(JumpingMarblesGame game){\r\n this.game = game;\r\n ctrlCam = new OrthographicCamera();\r\n cViewPort = new FitViewport(GameConstants.VIEW_PORT_WIDTH,\r\n GameConstants.VIEW_PORT_HIGHT,ctrlCam);\r\n stage = new Stage(cViewPort,game.batch);\r\n\r\n mapLoader = new TmxMapLoader();\r\n map = mapLoader.load(GameConstants.STAGES_DETAILS_MAP);\r\n\r\n Skin skin = new Skin(Gdx.files.internal(\"skins/uiskin.json\"));\r\n\r\n //skin.add(\"logo\", new Texture(\"imgs/welcome.png\"));\r\n tb = new TextButton(\"Demo\",skin,\"toggle\");\r\n tb.setSize(200,100);\r\n\r\n Drawable drawable = new TextureRegionDrawable(new TextureRegion(new Texture(\"imgs/speed.png\")));\r\n previous = new ImageButton(drawable);\r\n previous.addListener(new EventListener() {\r\n @Override\r\n public boolean handle(Event event) {\r\n if ((event + \"\").equals(\"touchDown\")){\r\n Gdx.app.log(\"33333333\", event + \"\");\r\n }\r\n return true;\r\n }\r\n });\r\n previous.setSize(100,100);\r\n\r\n\r\n //renderer = new OrthogonalTiledMapRenderer(map,1);\r\n initFonts();\r\n }", "title": "" }, { "docid": "97ab4b9e6ea917e5240ad3a4d54eb7f1", "score": "0.5908362", "text": "@Override\n\tpublic void onMapClick(LatLng arg0) {\n\t\twhetherToShowDetailInfo(false);\n\t\tif (mlastMarker != null) {\n\t\t\tresetlastmarker();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "595a34485ee92d4b83760b422b1c8d03", "score": "0.5901045", "text": "public void act() \n {\n // this.getWorld().showText(this.text, this.getX(), this.getY());\n GreenfootImage img = this.getImage();\n img.setFont(font);\n img.setColor(Color.BLACK);\n img.drawString(this.text, 8, this.h / 2 + 4);\n \n this.handleClicked();\n }", "title": "" }, { "docid": "47bd9c5d760ecc855ee5d50fea8d825a", "score": "0.58955514", "text": "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tnowCanvas.mouseClicked(e);\r\n\t}", "title": "" }, { "docid": "fdcee3ac666fe7d545953873f7021c17", "score": "0.5895505", "text": "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "fdcee3ac666fe7d545953873f7021c17", "score": "0.5895505", "text": "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "fdcee3ac666fe7d545953873f7021c17", "score": "0.5895505", "text": "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "cca063a7263f8601d79f4d83a256ef6a", "score": "0.5888452", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif(satellite){\n\t\t\t\tsatellite = false;\n\t\t\t\tmMapView.setSatellite(true);\n\t\t\t\tmMapView.refresh();\n\t\t\t}else{\n\t\t\t\tsatellite = true;\n\t\t\t\tmMapView.setSatellite(false);\n\t\t\t\tmMapView.refresh();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a92402ec2c4317a0de7156cd0199270c", "score": "0.5884855", "text": "@FXML\n private void handleInfoButton(final ActionEvent event) {\n _sceneManager.switchScene(Scenes.INFO);\n }", "title": "" }, { "docid": "50139bf64c80b5856946a9c696f13676", "score": "0.5875925", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t_hook.ReadyZoomToGiaoLo(_hook.GetCbxPhuongSelectedItem(), _hook.GetCbxDuongSelectedItem(),_hook.GetCbxGiaoLoSelectedItem());\r\n\t}", "title": "" }, { "docid": "34aa6877f01a6685dde6e15333b87f35", "score": "0.58740056", "text": "private void mapMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mapMouseClicked\n if(evt.getClickCount() == 1 && evt.getButton() == MouseEvent.BUTTON1){\n\n Point p = evt.getPoint();\n //transform the clicked point from screen coordinates to GPS coordinates\n Coordinate c = map.getPosition(p);\n \n //adapt the last clicked coordinate\n lastClicked = c;\n\n //if the drawPoints checkbox is selected\n if (drawPointsMenu.getState()){\n //store and draw the point\n getTrack().drawPoint(c.getLat(),c.getLon(),TYPE_GREY,TYPE_GREY,BeMapEditor.settings.NORMAL);\n getTrack().storePoint(c.getLat(),c.getLon(),TYPE_GREY);\n }\n if (showInfoMenu.getState()){\n String nearestPoint;\n try {\n nearestPoint = getTrack().getNearestPoint(p);\n if(\"\".equals(nearestPoint)) append(\"No point found in surrounding area\\n\");\n else{\n //Show point informations\n JSONObject pointInfo = new JSONObject(nearestPoint);\n append(\"**************************\\n\");\n append(\"Latitude: \" + pointInfo.getDouble(\"lat\")+ \"\\n\");\n append(\"Longitude: \" + pointInfo.getDouble(\"lon\")+ \"\\n\");\n long date = pointInfo.getLong(\"date\");\n int day = (int) date / 10000;\n int month = (int) date /100 - day * 100;\n int year = 2000 + (int) date - day * 10000 - month * 100;\n append(\"Date: \"+day+\".\"+month+\".\"+year);\n long time = pointInfo.getLong(\"time\");\n //17252300\n int hour = (int) time / 1000000;\n int min = (int) time / 10000 - hour * 100;\n int sec = (int) time / 100 - hour * 10000 - min * 100;\n int hdr = (int) time - hour * 1000000 - min * 10000 - sec * 100;\n //format correctly\n String minS = String.format(\"%02d\",min);\n String secS = String.format(\"%02d\",sec);\n String hdrS = String.format(\"%02d\",hdr);\n append(\" Time: \"+hour+\":\"+minS+\":\"+secS+\".\"+hdrS+\"\\n\");\n append(\"CO: \"+ pointInfo.getInt(\"s1\"));\n append(\" NO2: \"+ pointInfo.getInt(\"s2\"));\n append(\" Humidity: \"+ pointInfo.getInt(\"s3\")/100.0);\n append(\" Temperature: \"+ pointInfo.getInt(\"s4\")/100.0);\n append(\" Road vibrations: \"+ pointInfo.getInt(\"s5\")+\"\\n\");\n }\n } catch (JSONException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n\n //else zoom\n else if (evt.getClickCount() == 2 && evt.getButton() == MouseEvent.BUTTON1) {\n map.zoomIn(evt.getPoint());\n }\n }", "title": "" }, { "docid": "305f67d95ca87b477b14191dc542ed06", "score": "0.5873036", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tGameRunnable.difLevel = 3;\r\n\t\t\t\tSwingUtilities.invokeLater(new SimonShape());\r\n\t\t\t\tcontentPane.setVisible(false);//panel stuff\r\n\t\t\t}", "title": "" }, { "docid": "a00e4310407134ed0121663d01ec8479", "score": "0.58678246", "text": "public void click(Actor arg0, float arg1, float arg2) {\n\t\t\t\tif(is_main){\n\t\t\t\t\tif(current_select > 0){\n\t\t\t\t\t\tstage.addActor(main_requirment.get(current_select));//middle\n\t\t\t\t\t\tstage.addActor(main_requirment.get(current_select-1));//left\n\t\t\t\t\t\tif(current_select < 1){\n\t\t\t\t\t\t\tstage.addActor(main_requirment.get(current_select+1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(current_select < 0){\n\t\t\t\t\t\tstage.addActor(assist_requirment.get(current_select));//middle\n\t\t\t\t\t\tstage.addActor(assist_requirment.get(current_select-1));//left\n\t\t\t\t\t\tif(current_select < 1){\n\t\t\t\t\t\t\tstage.addActor(assist_requirment.get(current_select+1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "a230971cb1cd5ce55bb42a4ddc057d57", "score": "0.58657694", "text": "private void master_InternshipMouseClicked(java.awt.event.MouseEvent evt) {\n }", "title": "" }, { "docid": "cb4303724372151b546369cd1cb5d03f", "score": "0.58647233", "text": "public void act()\r\n {\n if(Greenfoot.isKeyDown(\"enter\"))\r\n Greenfoot.setWorld(new MainMenu());\r\n }", "title": "" }, { "docid": "c6965d6b0f7a4ad1136efb2348a990d4", "score": "0.586415", "text": "@Override\n \tpublic void newActivation(String[] arg0) {\n \t\tLOGGER\n \t\t\t\t.info(\"A second instance of AtlasViewer has been started.. The single instance if requesting focus now...\");\n \t\trequestFocus();\n \t\ttoFront();\n \t}", "title": "" }, { "docid": "1bbf525345f96fdf022dbced8353d1eb", "score": "0.5862031", "text": "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" } ]
a80b362ab339e219abb690d7bb52f08a
Returns user's last name.
[ { "docid": "1e3de849257651e7ad1b1dc3a9c392ef", "score": "0.79076606", "text": "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "title": "" } ]
[ { "docid": "6ea8a6f373b2c9d4c754ca53ae32a045", "score": "0.8835557", "text": "public String getUserLastNameOfLoggedInUser(){\r\n\r\n \tString lastName = getUserNameOfLoggedInUser();\r\n \tString formatedName = lastName.split(\" \")[0];\r\n \treturn formatedName;\r\n }", "title": "" }, { "docid": "f3e8a0e42128e34a4032a706c9a5cea6", "score": "0.8431028", "text": "java.lang.String getLastName();", "title": "" }, { "docid": "7f446ea770ba6cdbe055d82a36b6f693", "score": "0.8293556", "text": "String getLastname();", "title": "" }, { "docid": "7f446ea770ba6cdbe055d82a36b6f693", "score": "0.8293556", "text": "String getLastname();", "title": "" }, { "docid": "f89933260a1911d79fa458757162c2d1", "score": "0.82856923", "text": "public java.lang.String getLast_name() {\n return last_name;\n }", "title": "" }, { "docid": "a93f57f2faeeaba6bbb821b7ea0e7602", "score": "0.827042", "text": "public String getLastName() {\r\n\t\treturn last_name;\r\n\t}", "title": "" }, { "docid": "c60833811a00f91231c7ce6624819023", "score": "0.8245858", "text": "String getLastName();", "title": "" }, { "docid": "e057cd29f22d157cb6a10500c132c391", "score": "0.8179845", "text": "public java.lang.String getLastname() {\n return lastname;\n }", "title": "" }, { "docid": "47f3e57da86e6083c6e2c160f1eb6b70", "score": "0.8050459", "text": "public String getLastname() {\n return lastname;\n }", "title": "" }, { "docid": "47f3e57da86e6083c6e2c160f1eb6b70", "score": "0.8050459", "text": "public String getLastname() {\n return lastname;\n }", "title": "" }, { "docid": "c9234d97cfcd41ad76a3da53e62f9960", "score": "0.80398214", "text": "public String getLastName()\r\n {\r\n return LastName;\r\n }", "title": "" }, { "docid": "22fa705552f275c8884433204e0f7fc2", "score": "0.8030764", "text": "public String getLastname() {\n Object ref = lastname_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n lastname_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "0c6367d65cc4ddd640e5877c1defe9f8", "score": "0.8027713", "text": "public String getLastName(){\n\t\t\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "9bcddf41928eb1c394c9e90e6dbd83cc", "score": "0.80164456", "text": "public String getLastName() {\n return LastName;\n }", "title": "" }, { "docid": "9bcddf41928eb1c394c9e90e6dbd83cc", "score": "0.80164456", "text": "public String getLastName() {\n return LastName;\n }", "title": "" }, { "docid": "973a85145db3dec2bfdfa8834bfbd542", "score": "0.8010462", "text": "public String getLastname() {\n\t\treturn lastname;\n\t}", "title": "" }, { "docid": "a94d77cbd6d111aa92e5c9bac98b24a7", "score": "0.8007696", "text": "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "title": "" }, { "docid": "a94d77cbd6d111aa92e5c9bac98b24a7", "score": "0.8007696", "text": "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "title": "" }, { "docid": "4352166620bbe688a07e5a931fd677ac", "score": "0.79934925", "text": "public java.lang.String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "206a62fc7cf314392ae718dc8a4b1be7", "score": "0.7987508", "text": "public String getLastName() {\r\n return lastName;\r\n }", "title": "" }, { "docid": "febc3a6fc42cb92492fa6d9799185c24", "score": "0.7967425", "text": "public String getLastname() {\n Object ref = lastname_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n lastname_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "71b6920574be0aea582d440f297994fa", "score": "0.79500175", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "71b6920574be0aea582d440f297994fa", "score": "0.79500175", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "71b6920574be0aea582d440f297994fa", "score": "0.79500175", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "71b6920574be0aea582d440f297994fa", "score": "0.79500175", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "9b226e49b267f929dc42da2662e665be", "score": "0.79372954", "text": "public String getLastName() {\r\n return lastName;\r\n }", "title": "" }, { "docid": "9b226e49b267f929dc42da2662e665be", "score": "0.79372954", "text": "public String getLastName() {\r\n return lastName;\r\n }", "title": "" }, { "docid": "971713f9bb206c4a116db3d3edc64c62", "score": "0.79232526", "text": "public String getLastName()\r\n \t{\r\n \t\treturn this.lastName;\r\n \t}", "title": "" }, { "docid": "fc301d5ed51c0ecbb8a6168c6b67a16a", "score": "0.79101026", "text": "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "title": "" }, { "docid": "a54d9442a0348502f1b0158f78d06325", "score": "0.7903145", "text": "public String getLastName()\r\n\t{\r\n\t\treturn m_lastName;\r\n\t}", "title": "" }, { "docid": "d88b3e6e780d5543cf17f925972c0463", "score": "0.7899415", "text": "public String getLastname() {\n\treturn lastname;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "66ff9edb81eeec7bc3f2896dd28934be", "score": "0.7893078", "text": "public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "bdb941ad0d1bf89bd13cd60af4bcf86b", "score": "0.7883298", "text": "public String getLastName() {\r\n return lastName;\r\n }", "title": "" }, { "docid": "ede7a3e1a4cae0c3e62cb792053a8912", "score": "0.78800964", "text": "public String getLastname() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "db6e9665167377a017437211e9b346c3", "score": "0.78584594", "text": "@Override\n\tpublic String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "814830f1f0bfd1a775bc56d5d73cb753", "score": "0.7835277", "text": "public String getLastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "f141ece2c0d6bef18fe247276974209f", "score": "0.78148144", "text": "public String getLastName() {\n return this.lname;\n }", "title": "" }, { "docid": "7fa3a7737f46b758a22c4e3645811468", "score": "0.7801797", "text": "public String getLastName(){\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "7fa3a7737f46b758a22c4e3645811468", "score": "0.7801797", "text": "public String getLastName(){\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "671ee08799a1874f7c33ab3fd0f489e5", "score": "0.77952677", "text": "public String getLastName() {\r\n\t\treturn this.lastName;\r\n\t}", "title": "" }, { "docid": "63080ea5c71d6e52bd7994ae3ca9146a", "score": "0.7789227", "text": "public String getLastName() \n {\n return lastName;\n }", "title": "" }, { "docid": "f3b8b30180dec45c018949b50ace9e03", "score": "0.7781307", "text": "public String getLastName() {\n return localLastName;\n }", "title": "" }, { "docid": "f3b8b30180dec45c018949b50ace9e03", "score": "0.7781307", "text": "public String getLastName() {\n return localLastName;\n }", "title": "" }, { "docid": "c819e6bca1953e2d3999f902f1c5ad44", "score": "0.77688605", "text": "@Override\n\tpublic String getLastname() {\n\t\treturn model.getLastname();\n\t}", "title": "" }, { "docid": "696489669b3314f8a51c6b84c12fdc0e", "score": "0.77358764", "text": "public String getLastName() {\n return this.lastName;\n }", "title": "" }, { "docid": "ee7cd66dd86940df0fc644075f66eb92", "score": "0.7733233", "text": "public String GetLastName()\n\t{\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "48550a2282105b1ab209daf9e452a628", "score": "0.7731501", "text": "public String getLastName() {return this.lastName ;}", "title": "" }, { "docid": "194911748db6cbc1d331ed8de8e99949", "score": "0.7700107", "text": "public String getLast()\r\n {\r\n return lastName;\r\n }", "title": "" }, { "docid": "26eef4701c0868be018ba76dd6af1b68", "score": "0.7678661", "text": "@Override\n public String getLastName() { return lastName.getText().toString(); }", "title": "" }, { "docid": "861b407a21c40f584cd0aaaa6e4826ee", "score": "0.76725125", "text": "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "title": "" }, { "docid": "62c8d6076884170b13b1e42c82a105b4", "score": "0.7567607", "text": "public String getLast() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "66b99aa87123aa886bccd436c940e0f2", "score": "0.7552671", "text": "java.lang.String getPrimarylastname();", "title": "" }, { "docid": "2b3c93674833cb16c11261d93d0f47aa", "score": "0.75162375", "text": "public String getLastName() {\n return (String) getAttributeInternal(LASTNAME);\n }", "title": "" }, { "docid": "96560dcfe4f7982207c71948e6c54f23", "score": "0.74421567", "text": "public String getLastName()\n {\n return lastNameList[(int) (Math.random() * lastNameList.length)];\n }", "title": "" }, { "docid": "6ebe9ca8bf8cee53857b3392f0b65242", "score": "0.74372363", "text": "public com.google.protobuf.ByteString\n getLastnameBytes() {\n Object ref = lastname_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n lastname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5210eee47b72628eb90e65bd3daf7016", "score": "0.74364334", "text": "java.lang.String getSecondlastname();", "title": "" }, { "docid": "caf0ae504ef5945d68b578edfb9de423", "score": "0.7412587", "text": "public String lastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "bfb052a680ddcc707c7f91d10a55ae57", "score": "0.7410071", "text": "public abstract String getLastName();", "title": "" }, { "docid": "4129b052bd5c413cfc933103f149822e", "score": "0.73984665", "text": "public String getLastName() {return lastName;}", "title": "" }, { "docid": "82c527d0c9962db49a82ba7796befa3c", "score": "0.7397157", "text": "public String getLastName(){\n return lastName;\n }", "title": "" }, { "docid": "6d009f292cd65322fd74fd79023d9272", "score": "0.7368708", "text": "@AutoEscape\n public String getLastName();", "title": "" }, { "docid": "06cc4fb1fa90a293f8d5ec6cc33cd7d1", "score": "0.73406523", "text": "public String getLast(){\n return lastName;\n }", "title": "" }, { "docid": "de23663ee00046ffa5978f2f37180f61", "score": "0.7338349", "text": "public com.google.protobuf.ByteString\n getLastnameBytes() {\n Object ref = lastname_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n lastname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "8f37820444c4be070baa6852b7eb555c", "score": "0.73289126", "text": "@Basic\n @Column(name = \"LAST_NAME\")\n public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "b1a01848be30cef9374ddb8fd0aaa6de", "score": "0.73243654", "text": "public String getlastName() {\n\t\treturn lastName;\n\t}", "title": "" }, { "docid": "443548b7c24e2e6f08a9a61fb89284a8", "score": "0.72842383", "text": "@Transient\n\tpublic String getLastNameFirstName() {\n\t\tif (getFirstName().isEmpty()) {\n\t\t\treturn getLastName();\n\t\t}\n\t\treturn getLastName() + \", \" + getFirstName();\n\t}", "title": "" }, { "docid": "f525c26ab875e278378f689cfe7a2495", "score": "0.7264673", "text": "@Column(nullable=false)\r\n\tpublic String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "title": "" }, { "docid": "8926e1eac8ed1b2867600f09bf0d9388", "score": "0.7241782", "text": "@ApiModelProperty(value = \"The user's last name\")\n @JsonProperty(\"lastName\")\n public String getLastName() {\n return lastName;\n }", "title": "" }, { "docid": "13dfeb501cb65e387ef64aee7722ae0a", "score": "0.7235757", "text": "@Override\r\n\tpublic String getLastName(String email) {\r\n\t\tSystem.out.println(\"inside UserRegitration getLastName\");\r\n\t\tUserEntityBean user = emgr.find(UserEntityBean.class, email);\r\n\t\tString lName=user.getLastName();\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"inside UserRegitration getLastName, last name = \" +lName);\r\n\t\treturn lName;\r\n\t}", "title": "" }, { "docid": "78defce26f335b3746db7b660fefc986", "score": "0.72202164", "text": "private String requireLastName() {\n return requireString(\"last name\");\n }", "title": "" }, { "docid": "0fa3954d29ee27fa321368570bc9065e", "score": "0.71994185", "text": "public String getLastName(){\r\n String surname = \"\";\r\n try(Connection con = DriverManager.getConnection(\"jdbc:derby:\" + DB_Manipulator.DB_NAME, DB_Manipulator.USER_NAME, DB_Manipulator.PASSWORD);\r\n Statement st = con.createStatement();){\r\n ResultSet rs = st.executeQuery(\"SELECT Last_Name FROM \" +\r\n DB_Manipulator.DB_NAME + \".\" +\r\n DB_Manipulator.USER_DATA_TABLE);\r\n rs.next();\r\n surname = rs.getString(\"Last_Name\");\r\n }catch(SQLException sqle){\r\n //System.out.println(\"Exception thrown in getLastName()\\n\" + sqle.getMessage());\r\n //do nothing\r\n }\r\n return surname ;\r\n }", "title": "" } ]
aebcd0949ce64e81cb390781c5945c4a
Gets the value of the IssueDate field. The date on which this policy was issued by the issuing job.
[ { "docid": "f3e0676741753999943f44cb017676c7", "score": "0.7620773", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getIssueDate() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ISSUEDATE_PROP.get());\n }", "title": "" } ]
[ { "docid": "b244e5bd49949a9cf849bbfeadb85946", "score": "0.7700792", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getIssueDate() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ISSUEDATE_PROP.get());\n }", "title": "" }, { "docid": "88fcda9f223a707aa16b04e07f194113", "score": "0.7133927", "text": "public io.opencannabis.schema.temporal.TemporalDate.Date getIssued() {\n if (issuedBuilder_ == null) {\n return issued_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : issued_;\n } else {\n return issuedBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "7836f9f55ca37a85a9eee3716a3e6b26", "score": "0.70850736", "text": "java.lang.String getIssueDate();", "title": "" }, { "docid": "678c4a5823dea87a116f748ed7ec9c0e", "score": "0.69842464", "text": "public io.opencannabis.schema.temporal.TemporalDate.Date getIssued() {\n return issued_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : issued_;\n }", "title": "" }, { "docid": "af42a9b65a5524b1d43cf20770b40f80", "score": "0.6791913", "text": "java.lang.String getIssuingDate();", "title": "" }, { "docid": "0ac59703272e44eeaceacf6ff3bb36b2", "score": "0.67860717", "text": "@Column(name = \"LAST_UPDATE_DD\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getLicenseIssueDate()\n\t{\n\t\treturn licenseIssueDate;\n\t}", "title": "" }, { "docid": "ad7b2c918d642e44ebe1bfaaac7b3653", "score": "0.67548895", "text": "public String getIssuedDate() {\n\t\treturn issuedDate;\n\t}", "title": "" }, { "docid": "4e9e244a63a79a8c1ac335bbb14f33e5", "score": "0.6736647", "text": "public GregorianCalendar getTicketIssueDate() {\n\t\treturn ticketissuedate;\n\t}", "title": "" }, { "docid": "872f7b68a45d0c0c0807857457471759", "score": "0.66706574", "text": "public io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getIssuedOrBuilder() {\n if (issuedBuilder_ != null) {\n return issuedBuilder_.getMessageOrBuilder();\n } else {\n return issued_ == null ?\n io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : issued_;\n }\n }", "title": "" }, { "docid": "41a1b2d4ff03d5f7362d667d63f81168", "score": "0.66484743", "text": "public void setIssueDate(LocalDate issueDate) {\n this.issueDate = issueDate;\n }", "title": "" }, { "docid": "1942e7a3841bd39c5776d899bdf0e13a", "score": "0.64783365", "text": "public void setIssueDate(java.util.Date value) {\n __getInternalInterface().setFieldValue(ISSUEDATE_PROP.get(), value);\n }", "title": "" }, { "docid": "ed0e59264f1d276a9061a21c28014688", "score": "0.6456392", "text": "public Date getIssueInstant() {\n return issueInstant;\n }", "title": "" }, { "docid": "66f07befc2699ac101226ca387d55d8a", "score": "0.6405817", "text": "public Date getDueDate() {\r\n return this.issue.getDuedate() == null ? null : this.issue.getDuedate().getTime();\r\n }", "title": "" }, { "docid": "a04e51444c6d9c5c2f03fb356d9ec31c", "score": "0.6331748", "text": "public Date getCutissueDt() {\n return (Date) getAttributeInternal(CUTISSUEDT);\n }", "title": "" }, { "docid": "e1c319843ecf3b096eb5b34a6083aea6", "score": "0.6208437", "text": "public Date getIssued() {\n return _issued;\n }", "title": "" }, { "docid": "6fc4ecc0a672a072b02c1bec005f94ef", "score": "0.61226493", "text": "com.google.protobuf.ByteString\n getIssueDateBytes();", "title": "" }, { "docid": "a57a1d453834e1505d32397249a15d3d", "score": "0.6104349", "text": "private void setIssueDate(java.util.Date value) {\n __getInternalInterface().setFieldValue(ISSUEDATE_PROP.get(), value);\n }", "title": "" }, { "docid": "3ce327c5f1ca04d3908c401828ad6d67", "score": "0.6085388", "text": "@Column(name = \"LIC_ORIG_ISS_DD\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getLicenseOrigIssDate()\n\t{\n\t\treturn licenseOrigIssDate;\n\t}", "title": "" }, { "docid": "c714b1932cbbeb5572132561b454c2a2", "score": "0.6073437", "text": "public Date getUpdatedDate() {\r\n return this.issue.getUpdated() == null ? null : this.issue.getUpdated().getTime();\r\n }", "title": "" }, { "docid": "90efc08cc855b0a7255703af68324cf2", "score": "0.6055625", "text": "public Date getEnrollmentDate() {\n return new Date(enrollmentDate.getTime());\n }", "title": "" }, { "docid": "9f993009c50ea71737cefc463037d4ac", "score": "0.6015069", "text": "public void setLicenseIssueDate(java.util.Date licenseIssueDate)\n\t{\n\t\tthis.licenseIssueDate = licenseIssueDate;\n\t}", "title": "" }, { "docid": "37b99bb9a6d81df00300097077422b79", "score": "0.59281915", "text": "public String getIssuedAt() {\n\t\treturn issuedAt;\n\t}", "title": "" }, { "docid": "f84444ba669e6211679d8ef609dbc31f", "score": "0.5920376", "text": "io.opencannabis.schema.temporal.TemporalDate.Date getIssued();", "title": "" }, { "docid": "531b1523c4248cee9849d5b509ff0c72", "score": "0.5897314", "text": "public Date getIssued();", "title": "" }, { "docid": "164c49f9aecbf602f6466733702444d8", "score": "0.5881976", "text": "public long getDateIssued(){\n return dateIssued;\n }", "title": "" }, { "docid": "c4decea6672b43de7a1a9445a03dd6eb", "score": "0.58373654", "text": "org.apache.xmlbeans.XmlString xgetIssuingDate();", "title": "" }, { "docid": "f6688487c72eb9ac13d66814c0788e12", "score": "0.58275986", "text": "@Column(name = \"INS_EXP_DT\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getInsuranceExpDate()\n\t{\n\t\treturn insuranceExpDate;\n\t}", "title": "" }, { "docid": "0a2f813d73cb957259075a1fd3c830ff", "score": "0.5818741", "text": "public Integer getIssuedAt() {\n String claim = getClaim(CLAIM_ISSUED_AT);\n\n if (claim != null) {\n return Integer.valueOf(claim.toString());\n }\n\n return null;\n }", "title": "" }, { "docid": "77cffd10334b4105cd36ad8d56ea4d5b", "score": "0.5789058", "text": "public io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getIssuedOrBuilder() {\n return getIssued();\n }", "title": "" }, { "docid": "640e48a5ee34548a1180d5b2e66f60fa", "score": "0.5788081", "text": "@Override\n\t\t\tpublic Date getIssuedAt() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "00ca1af8a311aca02ced137e341a8821", "score": "0.57804304", "text": "public java.util.Date getAuditDate()\r\n\t{\r\n\t\treturn auditDate;\r\n\t}", "title": "" }, { "docid": "e0d50323a8dc76641fac430b56569415", "score": "0.57786614", "text": "public void setIssuedDate(String issuedDate) {\n\t\tthis.issuedDate = issuedDate;\n\t}", "title": "" }, { "docid": "caddb968f739c32e1464da84ec59ea01", "score": "0.57367396", "text": "public io.opencannabis.schema.temporal.TemporalDate.Date getSubmitted() {\n if (submittedBuilder_ == null) {\n return submitted_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : submitted_;\n } else {\n return submittedBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "e5aadc318495244b7fd2b181a4342eb0", "score": "0.5718328", "text": "public Date getDate_of_announcement() {\n\t\treturn date_of_announcement;\n\t}", "title": "" }, { "docid": "d3c8c7a7838c755ede272be4e05430d2", "score": "0.57082486", "text": "public Date getIdealDate() {\n\t\treturn idealDate;\n\t}", "title": "" }, { "docid": "a81e0f1b5cd56d58718d2faae6cbdf56", "score": "0.56994313", "text": "public Date getDate() {\n\t\treturn this.date;\n\t}", "title": "" }, { "docid": "8aadf7c468a47603bb51568e91e54c57", "score": "0.5693936", "text": "public java.sql.Date getEntDate(){\n\n\t\treturn entDate;\n\t}", "title": "" }, { "docid": "0d0635bc4b941698c4c16520c93a3d28", "score": "0.56849563", "text": "@Override\n\tpublic Date getReturnedDate() {\n\t\treturn _eprocurementRequest.getReturnedDate();\n\t}", "title": "" }, { "docid": "8ede4d228b4ef02c127c0002c16b549d", "score": "0.56837004", "text": "public Date getRefDate() {\n return (Date) get(1);\n }", "title": "" }, { "docid": "0273c02bb310ff7b6cb819a653f81624", "score": "0.5672257", "text": "public Date getAccountExpDate() {\n /* modified code 02/05/2003 */\n return accountExpDate;\n /* end of modified code */\n\n\n\n /* original code 02/05/2003\n return new Date(accountExpDate.toString());\n */\n }", "title": "" }, { "docid": "32a3b0d79599c5d05ff814bb8228e49b", "score": "0.5671069", "text": "public Date getDateInDateFormat() {\n return this.date;\n }", "title": "" }, { "docid": "c9eef59f5695e0d0200a298d090abc91", "score": "0.5659607", "text": "@Column(name = \"WC_EXP_DT\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getWcExpDate()\n\t{\n\t\treturn wcExpDate;\n\t}", "title": "" }, { "docid": "54b525bc2eed3dc613a5d40a33a6fabb", "score": "0.5655197", "text": "public Date getDueDate()\n {\n if (!this.rented)\n return null;\n if (due == null)\n this.calculateDueDate();\n\n return due;\n }", "title": "" }, { "docid": "65f1f183957f15d8317bfb0432dfcd02", "score": "0.5636199", "text": "public Date getDate() {\r\n\t\treturn date;\r\n\t}", "title": "" }, { "docid": "6535e80e40bf9dbe14fc92b93e0173f6", "score": "0.56328654", "text": "public Date getImpactDatum() {\n\t\treturn this.impactDatum;\n\t}", "title": "" }, { "docid": "72574ff90bc81da6d31a3fbdc1d3724a", "score": "0.5632813", "text": "@ApiModelProperty(example = \"null\", value = \"The date until when charges have been processed. When billing in arrears, such as usage, this field value is the the same as the `ChargedThroughDate` value. This date is the earliest date when a charge can be amended. \")\n public LocalDate getProcessedThroughDate() {\n return processedThroughDate;\n }", "title": "" }, { "docid": "938cbabf25a8bd6d1c39f02bf576b29f", "score": "0.56198627", "text": "public org.hl7.fhir.Date getExpirationDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Date target = null;\n target = (org.hl7.fhir.Date)get_store().find_element_user(EXPIRATIONDATE$22, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "11117d2ae986ca4ab9a51105a4c1ad14", "score": "0.56197304", "text": "public LocalDate getDate() {\n return this.date;\n }", "title": "" }, { "docid": "226a2c2ddd0097ec16e4f7169f7fa603", "score": "0.5616132", "text": "public Metadata.Date getDate() {\n if (dateBuilder_ == null) {\n return date_ == null ? Metadata.Date.getDefaultInstance() : date_;\n } else {\n return dateBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "05a43fc49aaef3d7b36124e9430c94c7", "score": "0.5615876", "text": "public Date getDueDate() {\n Date result = new Date();\n try {\n System.out.println(\"internal is \" + dueDate.get());\n result = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dueDate.get());\n } catch (ParseException e) {\n System.out.println(\"the due date from DueResource cannot be returnned.\");\n }\n return result;\n }", "title": "" }, { "docid": "11dbaaefcf75ca09cbe621afdd7bd32f", "score": "0.5613797", "text": "public Date getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "11dbaaefcf75ca09cbe621afdd7bd32f", "score": "0.5613797", "text": "public Date getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "11dbaaefcf75ca09cbe621afdd7bd32f", "score": "0.5613797", "text": "public Date getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "11dbaaefcf75ca09cbe621afdd7bd32f", "score": "0.5613797", "text": "public Date getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "11dbaaefcf75ca09cbe621afdd7bd32f", "score": "0.5613797", "text": "public Date getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "743d8256ec06d1aee825ce09c37a090e", "score": "0.5604306", "text": "public Date getSubmissionDate() {\n\t\treturn submissionDate;\n\t}", "title": "" }, { "docid": "d3733142780c7bc5ec39d569d000d08b", "score": "0.55875254", "text": "public Date getEff_date() {\r\n\t\treturn eff_date;\r\n\t}", "title": "" }, { "docid": "6bbd4cf1cf29ab2d2f1159426839baed", "score": "0.5568904", "text": "public LocalDate getDate() {\r\n return date;\r\n }", "title": "" }, { "docid": "4bd629ab4679364e4be8a4a6e9cd16bc", "score": "0.5568411", "text": "@ApiModelProperty(example = \"null\", value = \"The date that the rate plan charge will be triggered. \")\n public LocalDate getTriggerDate() {\n return triggerDate;\n }", "title": "" }, { "docid": "58298292b9e98d6f64f42953a1fd9d3f", "score": "0.5567509", "text": "public String getDueDateString() {\r\n Date date = getDueDate();\r\n return date == null ? NA : ISSUE_DUE_DATE_FORMAT.format(date);\r\n }", "title": "" }, { "docid": "12557f8a4d8426e904ad5dfdd5e5b990", "score": "0.5559356", "text": "public Timestamp getDateMaterialPolicy () \n\t{\n\t\treturn (Timestamp)get_Value(COLUMNNAME_DateMaterialPolicy);\n\t}", "title": "" }, { "docid": "edf2bb29b071426a7bcab7c1e8cd9025", "score": "0.55574965", "text": "public io.opencannabis.schema.temporal.TemporalDate.Date getSubmitted() {\n return submitted_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : submitted_;\n }", "title": "" }, { "docid": "a7ce8eeed27d2de051495d43d74aa590", "score": "0.55481964", "text": "public java.util.Date getRequestedDate() {\n\t\treturn _dmPortHarbour.getRequestedDate();\n\t}", "title": "" }, { "docid": "589bc594e2ce32e5f60e0d469634e124", "score": "0.5538819", "text": "public de.tif.jacob.core.definition.impl.jad.castor.DateField getDate()\n {\n return this._date;\n }", "title": "" }, { "docid": "6d4940fa4eb5230c46d1913cdfbf2904", "score": "0.5536659", "text": "public Metadata.Date getDate() {\n return date_ == null ? Metadata.Date.getDefaultInstance() : date_;\n }", "title": "" }, { "docid": "51d1a943bbef8c67cd242ec327c607bd", "score": "0.5536611", "text": "public Instant getIssuedAt() {\n return this.issuedAt;\n }", "title": "" }, { "docid": "374d5a7eacee406085b32a7b76f39388", "score": "0.553533", "text": "@Override\n\tpublic Date getDate() {\n\t\treturn this.date;\n\t}", "title": "" }, { "docid": "48373f570bd076eed3503cd52495c771", "score": "0.5528294", "text": "public java.lang.Long getSrcDate() {\n return src_date;\n }", "title": "" }, { "docid": "48373f570bd076eed3503cd52495c771", "score": "0.5528294", "text": "public java.lang.Long getSrcDate() {\n return src_date;\n }", "title": "" }, { "docid": "72f56c2cf118b4791e7011f447b92ec6", "score": "0.55201024", "text": "void setIssuingDate(java.lang.String issuingDate);", "title": "" }, { "docid": "91290c907b175eaa455c4d34e7890415", "score": "0.55178297", "text": "@Column(name = \"WC_EFF_DT\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getWcEffDate()\n\t{\n\t\treturn wcEffDate;\n\t}", "title": "" }, { "docid": "293bc8a025aca5c1038f8345f85213ac", "score": "0.5513196", "text": "public java.lang.Long getDate() {\n return date;\n }", "title": "" }, { "docid": "ba6aaa842c8c9d058dfc9845a553d43c", "score": "0.5510174", "text": "public Date getxpireDateByDate() {\n return expireDate;\n }", "title": "" }, { "docid": "371b69bea553b6b8bff9d77029f9c644", "score": "0.55051404", "text": "public Date getExpirationDate() {\n\t\t\n\t\treturn expirationDate;\n\t}", "title": "" }, { "docid": "9ba1f5ca35ed2e84708e8d86e18ba071", "score": "0.5502643", "text": "@ApiModelProperty(example = \"null\", value = \"The date through which a customer has been billed for the charge. \")\n public LocalDate getChargedThroughDate() {\n return chargedThroughDate;\n }", "title": "" }, { "docid": "0cb5f55586a566096d42baad534585be", "score": "0.54989773", "text": "public String getPaymentDueDate() {\n return paymentDueDate;\n }", "title": "" }, { "docid": "35850c150afadb1f5c6b8d906335629e", "score": "0.5496023", "text": "public LocalDate getValueDate() {\n return _valueDate;\n }", "title": "" }, { "docid": "c144f698b0bf0b27038fd6d58f77dd3b", "score": "0.5491778", "text": "public java.lang.Long getSrcDate() {\n return src_date;\n }", "title": "" }, { "docid": "c144f698b0bf0b27038fd6d58f77dd3b", "score": "0.5491778", "text": "public java.lang.Long getSrcDate() {\n return src_date;\n }", "title": "" }, { "docid": "df691f00d7996d3e2bc7d5f498db0c68", "score": "0.5487713", "text": "public LocalDate getDate() {\n return date;\n }", "title": "" }, { "docid": "df691f00d7996d3e2bc7d5f498db0c68", "score": "0.5487713", "text": "public LocalDate getDate() {\n return date;\n }", "title": "" }, { "docid": "df691f00d7996d3e2bc7d5f498db0c68", "score": "0.5487713", "text": "public LocalDate getDate() {\n return date;\n }", "title": "" }, { "docid": "2ea3f3925c391ab372e3b37f75ace635", "score": "0.54821783", "text": "public String getUpdateDateString() {\r\n Date date = getUpdatedDate();\r\n return date == null ? NA : ISSUE_DATE_FORMAT.format(date);\r\n }", "title": "" }, { "docid": "9c9147d4bfb4a34b48561a1a47a8ec28", "score": "0.54749376", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getSubmitDate() {\n return (java.util.Date)__getInternalInterface().getFieldValue(SUBMITDATE_PROP.get());\n }", "title": "" }, { "docid": "f25d3b3357b941ef4636cb38af3bd1b4", "score": "0.5472193", "text": "public LocalDate getMaturityDate() {\n return _maturityDate;\n }", "title": "" }, { "docid": "1b82da6f3f1b65d2e85716d217efc806", "score": "0.54716414", "text": "public java.sql.Date getSeniority_date() {\r\n return (java.sql.Date) get(\"seniority_date\");\r\n }", "title": "" }, { "docid": "b68266f0d97730840d4dcdb806e11c8e", "score": "0.54657644", "text": "public String getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "b68266f0d97730840d4dcdb806e11c8e", "score": "0.54657644", "text": "public String getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "b68266f0d97730840d4dcdb806e11c8e", "score": "0.54657644", "text": "public String getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "b68266f0d97730840d4dcdb806e11c8e", "score": "0.54657644", "text": "public String getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "b68266f0d97730840d4dcdb806e11c8e", "score": "0.54657644", "text": "public String getDate() {\n\t\treturn date;\n\t}", "title": "" }, { "docid": "40e082e8b2c2fb69fb0d422cbdf1111a", "score": "0.54595137", "text": "public java.lang.Long getDate() {\n return date;\n }", "title": "" }, { "docid": "867ba471fd535982fe576703d118900d", "score": "0.54589677", "text": "io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getIssuedOrBuilder();", "title": "" }, { "docid": "147e6d24d9e49b0a60eeefbb2cb2d138", "score": "0.5456767", "text": "public LocalDate getObservationDate() {\n return _observationDate;\n }", "title": "" }, { "docid": "48014c23c9a3b248c103bb5ebb3e545b", "score": "0.5438433", "text": "public java.time.Instant issued() {\n return getInstant(FhirPropertyNames.PROPERTY_ISSUED);\n }", "title": "" }, { "docid": "16b4299418f5158ac68d75684a60b6a4", "score": "0.54325444", "text": "public Date getDate() {\r\n return date;\r\n }", "title": "" }, { "docid": "0a088aed50754a03372aaa23a1dc1e0c", "score": "0.5428896", "text": "public java.lang.String getDate() {\n return date;\n }", "title": "" }, { "docid": "aad15382a880cc3a7b7839766a983774", "score": "0.54253495", "text": "@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmHistoryMaritime.getRequestedDate();\n\t}", "title": "" }, { "docid": "6dd81a2a2ffdc11679d44ea7d58fc01d", "score": "0.54179984", "text": "public Date getRuleDate() {\r\n return ruleDate;\r\n }", "title": "" }, { "docid": "e777d8516fc1bdb5484694da01254ce7", "score": "0.5417079", "text": "public Builder setIssued(io.opencannabis.schema.temporal.TemporalDate.Date value) {\n if (issuedBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n issued_ = value;\n onChanged();\n } else {\n issuedBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" } ]
d73c7b27e0a1731f10324f2b2034da31
Constructor with size of the matrix as two parameter.
[ { "docid": "220c7d403196e5ca584ca6b5d885bbb6", "score": "0.0", "text": "public ButtonsGrid(int x, int y) {\n this(new Dimension(x, y));\n }", "title": "" } ]
[ { "docid": "dd0d2c1cad7398bf4e3ed14c892fc846", "score": "0.79635453", "text": "public Matrix(int size1, int size2){\n mat = new int[size1][size2];\n }", "title": "" }, { "docid": "35192efaf23a22a86cf511a6d16b2f21", "score": "0.75869673", "text": "public Matrix(int size) {\n\t\tthis(size, size);\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tm[i][i] = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "0f3e988066a8c095ca1f4ef710793ce7", "score": "0.7151535", "text": "public Matrix(int row, int column){ //constructor \n\tmatrix = new int[row][column]; \n\tthis.row = row; \n\tthis.column = column; \n }", "title": "" }, { "docid": "cb68d6dc03c32cb510de0fd2c5508011", "score": "0.7089562", "text": "public Matrix (int M, int N)\n {\n this.thisM = M;\n this.thisN = N;\n data = new double[M][N];\n }", "title": "" }, { "docid": "2e07c10073fd96ac2c6d696361d3dd2e", "score": "0.707633", "text": "public Matrix() {\r\n \r\n }", "title": "" }, { "docid": "b40486a6ffb2149d07237eab242bef12", "score": "0.70521295", "text": "public Matrix(){\n mt = new MTRandom();\n matrix= new double[0][0];\n column=0;\n row=0;\n }", "title": "" }, { "docid": "ff6468bee09ac74afae3ce646ecafd7b", "score": "0.7010946", "text": "public MyMatrix(){\n \t\n }", "title": "" }, { "docid": "5a8b7aafc9bc16f74beb2ae7575a837d", "score": "0.69756615", "text": "Matrix(int n){ // Makes a new n x n zero Matrix. pre: n>=1\n this.size = n;\n if(n < 1)\n throw new RuntimeException(\"Matrix Error: Matrix() called with no columns or rows\");\n row = new List[n+1];\n for(int i = 1; i <= n; i++){\n row[i] = new List();\n }\n }", "title": "" }, { "docid": "071b15e57280650d4429451e5027a784", "score": "0.69403625", "text": "public Matrix()\n\t{\n\t}", "title": "" }, { "docid": "a89aca925ee499eed5834f44e61f21ff", "score": "0.6884858", "text": "public Matrix() {\n doubleMatrix = new double[ROW][COL];\n }", "title": "" }, { "docid": "c7b75e04d49011c529022eb5d5c03050", "score": "0.6861598", "text": "public Matrix(int[][] array){\n //variables for transfering the number of rows and columns from the parameter array to the\n //Matrix we build in this constructor.\n int rows = array.length;\n int cols = array[0].length;\n mat = new int[rows][cols];\n for (int i = 0; i < rows; i++){\n for (int j = 0; j < cols; j++){\n mat[i][j] = array[i][j];\n }\n }\n }", "title": "" }, { "docid": "6b307527b603104be4e2cca07fc72479", "score": "0.68330777", "text": "public Matrix(int rows, int cols) {\n this.rows = rows;\n this.cols = cols;\n this.matrix = (T[]) new Number[rows * cols];\n }", "title": "" }, { "docid": "456be6e2742ac63d389a278bfd614e6b", "score": "0.679675", "text": "public Matrix(double[][] data){\r\n this(data, true);\r\n }", "title": "" }, { "docid": "748317ae84ecdfeaf655c143ef99c392", "score": "0.6771419", "text": "public Matrix(int m, int n) throws IllegalArgumentException {\n\t\ttry{\n\t\t\tif(m <= 0 || n <= 0){\n\t\t\t\tthrow new IllegalArgumentException(\"Input of Matrix Size cannot be 0\");\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalArgumentException x){\n\t\t\tSystem.out.println(\"Input of Matrix Size cannot be 0\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\trow = m;\n\t\tcolumn = n;\n\t\tmain = new double[row][column];\n\t}", "title": "" }, { "docid": "31b4951ade77268cb3340fbf103f4ec6", "score": "0.6739631", "text": "public Matrix(int m, int n) {\n this.m = m;\n this.n = n;\n A = new double[m][n];\n }", "title": "" }, { "docid": "4590bde8c17224520d39b2012d00682e", "score": "0.67152554", "text": "public Matrix(int rows, int cols, T[][] matrix) {\n this.rows = rows;\n this.cols = cols;\n this.matrix = (T[]) new Number[rows * cols];\n for (int r=0; r<rows; r++)\n for (int c=0; c<cols; c++)\n this.matrix[getIndex(r,c)] = matrix[r][c];\n }", "title": "" }, { "docid": "b4174e3dbdc1e9ec29cf93c0e2d4d0a9", "score": "0.6709212", "text": "public Matrix(int width, int height) {\n this.width = width;\n this.height = height;\n matrix = (T[][])new Object[width][height];\n }", "title": "" }, { "docid": "d97d63ba2daa9439e7d82d57f0271f49", "score": "0.6671944", "text": "public IntegerMatrix(int rowNum, int colNum, int[] linearData){\n \n }", "title": "" }, { "docid": "2f25af8b1176c1078dc2e002fbd5f867", "score": "0.6640161", "text": "public Matrix(int[] data) {\n this.rowNum = data.length;\n this.colNum = 1;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < rowNum; i++) {\n matrix[i][1] = data[i];\n }\n }", "title": "" }, { "docid": "bedb98c5e4c716c92b01850fe48cd46a", "score": "0.66395146", "text": "public Mat() {\n this.matrix = new double[10][10];\n this.cols = 10;\n this.rows = 10;\n this.size = cols * rows;\n }", "title": "" }, { "docid": "691c4f9d3de66f2059d71f18c0ac50d8", "score": "0.6634261", "text": "public BoardArray1D(int rowSize , int columnSize){\n\t\tsuper();\n\t\tboard=null;\n\t\tif(rowSize < 3 || columnSize < 3){\n\t\t\trowSize = 3 ; \n\t\t\tcolumnSize = 3;\n\t\t}\n\t\tthis.setSize(rowSize,columnSize);\n\t\treset();\n\t}", "title": "" }, { "docid": "e4d463f83dc8df6bec44cd0803265596", "score": "0.6628501", "text": "public Matrix(int[][] data) {\n this.rowNum = data.length;\n this.colNum = data[0].length;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < rowNum; i++) {\n for (int j = 0; j < colNum; j++) {\n matrix[i][j] = data[i][j];\n }\n }\n }", "title": "" }, { "docid": "d275cdeb3c7f7ec9846f674283e83c97", "score": "0.662192", "text": "public Matrix(int columns, int rows) {\n mt=new MTRandom();\n matrix = new double[columns][rows];\n column = columns;\n row = rows;\n }", "title": "" }, { "docid": "8544cea5b9ee09f95c74b46d093347a7", "score": "0.6608338", "text": "public Matrix(int[][] data) {\n\t\tnumRows = data.length; // d.length is the number of 1D arrays in the 2D array\n\t\tif(numRows == 0) {\n\t\t\tnumColumns = 0;\n\t\t} else {\n\t\t\tnumColumns = data[0].length; // d[0] is the first 1D array\n\t\t}\n\t\tthis.data = new int[numRows][numColumns]; // create a new matrix to hold the data\n\n\t\t//TODO: Copy the values from the parameter to the this.data field\n\t\tfor(int rows=0; rows<numRows; rows++){\n\t\t\tfor(int col=0; col<numColumns;col++){\n\t\t\t\tthis.data = data;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "18d0b1a4bf580796d1cf52828d4b5c37", "score": "0.6591046", "text": "public Matrix(int row,int column){\r\n matrixClone= new String [row][column];\r\n matrixGame= new String [row][column];\r\n }", "title": "" }, { "docid": "93d5a872b49d88019894da28140a6847", "score": "0.658144", "text": "public Matrix (int x, int y){\r\n \tvalues = new double[y][x];\r\n \tdimX = x;\r\n \tdimY = y;\r\n }", "title": "" }, { "docid": "ed443f0f3256bb7e02e4dccf1facde00", "score": "0.6563443", "text": "public Board(int size){ \n\t\t_boardSize = size;\n\t\t_board = new Cell[size][size];\n\t\tfor(int i = 0; i < _boardSize; i++)\n\t\t\tfor(int j = 0; j < _boardSize; j++)\n\t\t\t\t_board[i][j] = new Cell();\n\t}", "title": "" }, { "docid": "122db4fd53f7fb1cfc2fdb0f140fdbac", "score": "0.6526807", "text": "public Matrix(double[][] A, int m, int n) {\n this.A = A;\n this.m = m;\n this.n = n;\n }", "title": "" }, { "docid": "9c9e9a155dac2a26e0cd9c24ca6d9f1d", "score": "0.6520536", "text": "public Matrix() {\n data = new float[][] {\n { 1, 0, 0, 0 },\n { 0, 1, 0, 0 },\n { 0, 0, 1, 0 },\n { 0, 0, 0, 1 },\n };\n }", "title": "" }, { "docid": "c52c0a6c6485041cf632e8da2a80e521", "score": "0.64873767", "text": "public Mat(int x, int y) {\n matrix = new double[x][y];\n size = x * y;\n cols = x;\n rows = y;\n }", "title": "" }, { "docid": "163663c0bb737630076dff3d9486de42", "score": "0.6474034", "text": "public Matrix() {\n c_nodeCount = 0;\n c_matrix = new String[100][100];\n for (int i = 0; i < MAX_NODE; i++) {\n for (int j = 0; j < MAX_NODE; j++) {\n c_matrix[i][j] = \"null\";\n }\n }\n\n c_nodeList = new ArrayList<String>();\n c_outNodeList = new ArrayList<String>();\n }", "title": "" }, { "docid": "ac68d5f93c76811497616f94d7ebffb6", "score": "0.64723104", "text": "public Matrix(double[] data) {\n this.rowNum = data.length;\n this.colNum = 1;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < rowNum; i++) {\n matrix[i][0] = data[i];\n }\n }", "title": "" }, { "docid": "dc1b0c95feb56386b628cdf1e3c820ff", "score": "0.6421068", "text": "public Matrix (double[][] data)\n {\n thisM = data.length;\n thisN = data[0].length;\n this.data = new double[thisM][thisN];\n for (int i = 0; i < thisM; i++)\n {\n for (int j = 0; j < thisN; j++)\n {\n this.data[i][j] = data[i][j];\n }\n }\n }", "title": "" }, { "docid": "8e220becad098699720e98a43dc6ca86", "score": "0.63998896", "text": "public Matrix(final int[][] data)\n\t{\n\t\tassert(data!=null);\n\n\t\tint anzZeilen = data.length;\n\t\tint anzSpalten = data[0].length;\n\n\t\tthis.data = new int[data.length][data[0].length];\n\n\t\tfor (int a = 0; a < anzZeilen; a++)\n\t\t\tfor (int b = 0; b < anzSpalten; b++)\n\t\t\t\tthis.data[a][b] = data[a][b];\n\t}", "title": "" }, { "docid": "f386b198f4d77e85e4630e55c2eae60a", "score": "0.63982236", "text": "public NumMatrix(int[][] m) {\n\t matrix = m;\n\t }", "title": "" }, { "docid": "1a8f379ae41e81403016186bb0f940bf", "score": "0.63907593", "text": "public Matrix( int aNRows, int aNCols ) throws IllegalArgumentException\n\t{\n\t\tif( aNRows < 1 || aNCols < 1 ) throw new IllegalArgumentException(\"aNRows and aNCols are not positive\");\n\t\tthis.data = new double[aNRows*aNCols];\n\t\tthis.nRows = aNRows; this.nCols = aNCols;\n\t}", "title": "" }, { "docid": "480aaae1b8024e0e6654931306d759f2", "score": "0.6366172", "text": "public Matrix(int n) {\r\n\tthis(n, n);\r\n\tfor (int i = 0; i < n; i++) {\r\n\t data[i][i] = new Complex(1);\r\n\t}\r\n }", "title": "" }, { "docid": "1eb5b49f70b217689cf97fde1172a346", "score": "0.6364481", "text": "public Matrix(int rows, int cols) {\n\t\tm = new double[rows][cols];\n\t\tthis.rows = rows;\n\t\tthis.cols = cols;\n\t}", "title": "" }, { "docid": "ad81c1ebca9a46b98c42f8301957434e", "score": "0.6362848", "text": "public Matrix(int m, int n, double s) {\n this.m = m;\n this.n = n;\n A = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n A[i][j] = s;\n }\n }\n }", "title": "" }, { "docid": "fc5d0ba107e1f58336afb0d46709bfcd", "score": "0.63540363", "text": "public RMatrix(int rows, int cols) {\n super(rows, cols);\n coefficients = new double[rows][cols];\n }", "title": "" }, { "docid": "23dca2f95f727b057fc34cfe8bb7ead6", "score": "0.6351876", "text": "public Matrix(double[][] data) {\n this.rowNum = data.length;\n this.colNum = data[0].length;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < rowNum; i++) {\n for (int j = 0; j < colNum; j++) {\n matrix[i][j] = data[i][j];\n }\n }\n }", "title": "" }, { "docid": "71e9142ddad03f65854d957bdef963a8", "score": "0.6350054", "text": "public Matrix(int height, int length) {\n this.height = height;\n this.length = length;\n data = new int[height][length];\n }", "title": "" }, { "docid": "e0e7a520d7397df9e01ad57a7a9b8b8b", "score": "0.6327859", "text": "public Mat(double[][] data, int rows, int cols) {\n matrix = data;\n this.rows = rows;\n this.cols = cols;\n this.size = rows * cols;\n }", "title": "" }, { "docid": "af0575a5cf0c072bffd4e6d12dd2a9fc", "score": "0.6327514", "text": "public Matrix(double[][] m) {\n\t\tif(m == null || m.length < 1 || m[0] == null || m[0].length < 1){\n\t\t\tzlyVstup();\n\t\t}\n\t\trows = m.length;\n\t\tcols = m[0].length;\n\t\tthis.m = new double[rows][cols];\n\t\tfor(int r = 0; r < rows; r++){\n\t\t\tif(m[r] == null || m[r].length != cols){\n\t\t\t\tzlyVstup();\n\t\t\t}\n\t\t\tfor(int c = 0; c < cols; c++){\n\t\t\t\tthis.m[r][c] = m[r][c];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dcb8a87a125ba6f60d40178cf26b5747", "score": "0.6325646", "text": "public MyMatrix(double[][] data)\n {\n \tthis.rows=data.length;\n \tthis.cols=data[0].length;\n \t//java¸´ÖƶþάÊý×é\n \tthis.data = new double[rows][cols];\n \tfor(int i=0;i<this.rows;i++){\n \t\tthis.data[i]=data[i].clone();\n \t}\n }", "title": "" }, { "docid": "807781bb82b0a46d89ec6cc7928261a9", "score": "0.63179576", "text": "public Matrix(int[][] data) {\n this.height = data.length;\n this.length = data[0].length;\n\n this.data = new int[height][length];\n for(int i = 0; i < height; i++) {\n System.arraycopy(data[i], 0, this.data[i], 0, length);\n }\n }", "title": "" }, { "docid": "4b3a3237332b5aab9e95ae53298fc705", "score": "0.6306687", "text": "public Matrix() {\n values = new float[16];\n makeIdentity(values);\n }", "title": "" }, { "docid": "ddf62415d336a5b56a30c8be66643af1", "score": "0.62588894", "text": "public Matrix(double[][] data) {\r\n\t\tnumberOfRows = data.length;\r\n\t\tnumberOfColumns = data[0].length;\r\n\t\tthis.data = new double[numberOfRows][numberOfColumns];\r\n\t\tfor (int i = 0; i < numberOfRows; i++)\r\n\t\t\tfor (int j = 0; j < numberOfColumns; j++)\r\n\t\t\t\tthis.data[i][j] = data[i][j];\r\n\r\n\t}", "title": "" }, { "docid": "75725a8185622dd9ca4c47bedde9f39e", "score": "0.6255158", "text": "public BoardArray1D(){\n\t\tthis(3,3);\n\t}", "title": "" }, { "docid": "356a538163dc648fd48c11437fc0ca0d", "score": "0.62413794", "text": "public Matrix(int dimensions) {\n this.rowNum = dimensions;\n this.colNum = dimensions;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < rowNum; i++) {\n for (int j = 0; j < colNum; j++) {\n if (i == j) {\n matrix[i][j] = 1;\n } else {\n matrix[i][j] = 0;\n }\n }\n }\n }", "title": "" }, { "docid": "515d2a123f9e0b0e2991fcb32ee3f52a", "score": "0.62329483", "text": "AdjMatrix(int sizeOfMatrix){\n this.sizeOfMatrix = sizeOfMatrix;\n\n adjMatrix = new boolean[sizeOfMatrix][sizeOfMatrix];\n\n }", "title": "" }, { "docid": "df22d424b6024c115bb5b0088324b03a", "score": "0.623189", "text": "public GIMatrix(GIMatrix matrix) {\n\tdouble[][] temp = new double[matrix.height()][];\n\tfor (int i = 0; i < matrix.height(); i++) {\n\t temp[i] = new double[matrix.width()]; // line by line ...\n\t for (int j = 0; j < matrix.width(); j++) {\n\t\ttry { temp[i][j] = matrix.getValueAt(i,j); }\n\t\tcatch (IndexOutOfBoundsException e) {} // never happens\n\t }\n\t}\n\tthis.array = temp;\n\tm = array.length;\n\tn = array[0].length;\n }", "title": "" }, { "docid": "ddb3078764bd653f57e97c68a3fc902b", "score": "0.6213267", "text": "public MatrixLinkedImpl(int numberOfColumns, int numberOfRows)\n {\n this.numberOfColumns = numberOfColumns;\n this.numberOfRows = numberOfRows;\n _data = new DoublyHeaderList<>(); \n }", "title": "" }, { "docid": "e7ecf44cbebd58ba5675fd832dc4c4c7", "score": "0.62093014", "text": "public Matrix() {\n\t\tval[0][0] = 1;\n\t\tval[1][1] = 1;\n\t\tval[2][2] = 1;\n\t\tval[3][3] = 1;\n\t\t// for (int a=0;a<4;a++)\n\t\t// for (int b=0;b<4;b++)\n\t\t// if (a==b) val[a][b]=1;\n\t\t// else val[a][b]=0;\n\t}", "title": "" }, { "docid": "11fd4127a2658980c752392e2210d094", "score": "0.6193315", "text": "public ConcurrentHashMatrix() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR);\r\n\t}", "title": "" }, { "docid": "cd30785d667571c54354ab3e37aedf16", "score": "0.6164103", "text": "public DataMatrix(final int rows, final int columns) {\r\n try {\r\n this.columns = columns;\r\n this.rows = rows;\r\n int cells = Math.multiplyExact(rows, columns);\r\n this.array = new int[cells];\r\n } catch (ArithmeticException e) {\r\n throw new IllegalArgumentException(\"Not more then 2^31-1 cells supported\");\r\n }\r\n }", "title": "" }, { "docid": "56e73f6e0cd69852f6cc0bd31b3d3db1", "score": "0.6161414", "text": "protected DiagonalMatrix()\n {\n // NOTE: This doesn't initialize anything\n }", "title": "" }, { "docid": "f2c1dd3a129124d485ca69371aa0f2b1", "score": "0.61425316", "text": "Matrix(int row, int column) {\n\t\tmat = new int[row][column];\n\n\t\t// Initialize mat\n\t\tfor (int i = 0, rowInitializer = 0; i < row; i++, rowInitializer += 10) {\n\t\t\tfor (int j = 0, columnInitializer = rowInitializer; j < column; j++, columnInitializer++) {\n\t\t\t\tmat[i][j] = columnInitializer;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "97081ac135fa34c13d9f4d0de47831e7", "score": "0.61301583", "text": "public Matrix(double[][] A) throws Exception {\n m = A.length;\n n = A[0].length;\n for (int i = 0; i < m; i++) {\n if (A[i].length != n) {\n throw new Exception(\"All rows must have the same length.\");\n }\n }\n this.A = A;\n }", "title": "" }, { "docid": "a79622edfdde52ff4365a2b3aca754fc", "score": "0.61258316", "text": "public Matrix(int n, int m) {\r\n\tthis.n = n;\r\n\tthis.m = m;\r\n\tdata = new Complex[n][m];\r\n\tfor (int i = 0; i < n; i++) {\r\n\t for (int j = 0; j < m; j++) {\r\n\t\tdata[i][j] = new Complex(0);\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "8a8654d171666fbff2679cb73f923af6", "score": "0.61101466", "text": "Matrix4x4() {\r\n for (int i = 0; i < member.length; i++) {\r\n for (int j = 0; j < member.length; j++) {\r\n member[i][j] = new Matrix2x2();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "755e7cf97ac25b5ace892cd41bf35d5a", "score": "0.61091596", "text": "public DenseMatrix(int numRows, int numColumns) {\n this(zeroValues(numRows,numColumns),IGNORE);\n }", "title": "" }, { "docid": "3a76a8021412a09346cb972a93c8f58c", "score": "0.6103591", "text": "public SimpleMatrix(int w) throws IllegalArgumentException{\n this(w, new ArrayList<T>());\n }", "title": "" }, { "docid": "3fc5ed41f8e1cf36c762026ca02809db", "score": "0.6061706", "text": "public Cave() {\n //invokes the dimensional constructor with the argument 4\n this(4);\n }", "title": "" }, { "docid": "3b3063ca56797a6c88975df41c913c0a", "score": "0.60562456", "text": "private Matrices()\n {\n \t// Private constructor to prevent instantiation\n }", "title": "" }, { "docid": "9762d1542556194001d2ce280d5e2e0e", "score": "0.6047854", "text": "public Matrix(int anzZeilen, int anzSpalten)\n\t{\n\t\tassert(anzZeilen > 0);\n\t\tassert(anzSpalten > 0);\n\n\t\tdata = new int[anzZeilen][anzSpalten];\n\t}", "title": "" }, { "docid": "d1a39b62ebc72202ea2483c24f02920a", "score": "0.60192484", "text": "public SparseMatrix(int n) {\n this.n = n;\n rows = new SparseVector[n];\n cols = new SparseVector[n];\n for (int i = 0; i < n; i++){\n rows[i] = new SparseVector(n);\n cols[i] = new SparseVector(n);\n }\n }", "title": "" }, { "docid": "a05317f63e6cade53b55dfceb1b7c623", "score": "0.6009896", "text": "public Board(int size){\n\t\tnew Board(size, size);\n\t}", "title": "" }, { "docid": "809ad7d30f17979aac3bf7bf71405abe", "score": "0.6004648", "text": "public Matrix(Matrix m) {\n data = new float[][] {\n { m.data[0][0], m.data[0][1], m.data[0][2], m.data[0][3] },\n { m.data[1][0], m.data[1][1], m.data[1][2], m.data[1][3] },\n { m.data[2][0], m.data[2][1], m.data[2][2], m.data[2][3] },\n { m.data[3][0], m.data[3][1], m.data[3][2], m.data[3][3] },\n };\n }", "title": "" }, { "docid": "f8842fccec2a94a77168b0ae9980ac8e", "score": "0.6001856", "text": "public Matrix(double vals[], int m) throws IllegalArgumentException {\n this.m = m;\n n = (m != 0 ? vals.length / m : 0);\n if (m * n != vals.length) {\n throw new IllegalArgumentException();\n }\n A = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n A[i][j] = vals[i + j * m];\n }\n }\n }", "title": "" }, { "docid": "d196dcdcd46b28b24573a3803afe6790", "score": "0.5999875", "text": "public Board(int size)\n\t{\t\n\t\tif (size <= 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"The board cannot have that size!\");\n\t\t}\n\t\tthis.size = size;\n\t\tthis.boardState = new ArrayList<ArrayList<Square>>();\n\t\tfor(int r = 0; r < this.size; r++)\n\t\t{\n\t\t\tthis.boardState.add(createRow());\n\t\t}\n\t\tsetAllCounts();\n\t\tcheckRep();\n\t}", "title": "" }, { "docid": "365b366a56b76b7c7e2d0b1da9152b4b", "score": "0.59878826", "text": "public Matrix(int nRows, int nCols)\r\n {\r\n mNRows = nRows;\r\n mNCols = nCols;\r\n mData = new double[nRows][nCols];\r\n for(int row = 0; row < nRows; ++row){\r\n for(int col = 0; col < nCols; ++col){\r\n mData[row][col] = 0;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5b1a3b113a3fe280179215568b7df26d", "score": "0.598291", "text": "public Model(int N, int M){\n this.M = M;\n this.N = N;\n pi = new double[N];\n A = new double[N][N];\n b = new double[N][M];\n }", "title": "" }, { "docid": "aed444502be376ba03abb8af58061165", "score": "0.59799373", "text": "public Matrix() {\n native_instance = nCreate(0);\n NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, native_instance);\n }", "title": "" }, { "docid": "fded3faa31d7265d6eac645adbdf09b3", "score": "0.5967232", "text": "public ComplexMatrix(int rows, int cols) {\n this.array = new Complex[rows][cols];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n this.array[i][j] = new Complex(0);\n }\n }\n this.rows = rows;\n this.cols = cols;\n }", "title": "" }, { "docid": "4dd3c2e602196e3204e77ddf3e934e0d", "score": "0.5949087", "text": "MnistMatrix(int nRows, int nCols) {\n this.nRows = nRows;\n this.nCols = nCols;\n\n this.data = new float[nRows][nCols];\n }", "title": "" }, { "docid": "1b022c00e723b9c7111c21f8f6767d89", "score": "0.5929915", "text": "int getSize(){ // Returns n, the number of rows and columns of this Matrix\n return this.size;\n }", "title": "" }, { "docid": "c0827c8088720e0016d228ab3d0bd4b4", "score": "0.5915985", "text": "public Matrix(double[] data, boolean isRowVector) {\n this.rowNum = 1;\n this.colNum = data.length;\n\n this.matrix = new double[rowNum][colNum];\n\n for (int i = 0; i < colNum; i++) {\n matrix[0][i] = data[i];\n }\n }", "title": "" }, { "docid": "6337e86c965282794694115a5de61a4c", "score": "0.5899657", "text": "private void fillEmptyMatrix(int size_x, int size_y) {\n ArrayList<Integer> arrayList = new ArrayList<Integer>(Collections.nCopies(size_x, 0));\n // System.out.println(\"Number of coloumn: \" + arrayList.size());\n // Add the empty array list to the matrix\n for (int i = 0; i < size_y; i++) {\n matrix.add(arrayList);\n }\n // System.out.println(\"Number of line: \" + matrix.size());\n }", "title": "" }, { "docid": "e2ceab41392cf8ae93b0d81e77217383", "score": "0.58955956", "text": "public Board(int size) {\n this.size = size;\n }", "title": "" }, { "docid": "4b403c3e0b3d0c50e45f165b58605631", "score": "0.5881323", "text": "public IntMatrix(int rows, int columns) {\n\t\tm_n = rows;\n\t\tm_m = columns;\n\t\tm_matrix = new int[m_n][m_m];\n\t}", "title": "" }, { "docid": "0ce1d0acaec88028146b7ab3788cde98", "score": "0.58801454", "text": "public MatrixF(int numRows, int numCols)\n {\n this.numRows = numRows;\n this.numCols = numCols;\n if (numRows <= 0 || numCols <= 0) throw dimensionsError();\n }", "title": "" }, { "docid": "ecec125a13a4cd42445095b29661a15f", "score": "0.58783925", "text": "public ConcurrentHashMatrix(int initialCapacity) {\r\n\t\tthis(initialCapacity, DEFAULT_LOAD_FACTOR);\r\n\t}", "title": "" }, { "docid": "da27dfb2348d10b72f2aa5ff22c5e4ba", "score": "0.586815", "text": "public Matrix(double v[][]) {\n\t\tval = v;\n\t}", "title": "" }, { "docid": "1f5aa9c609d53d6f6274fdb8e00c981c", "score": "0.5842634", "text": "public ComplexMatrix(Complex[][] array) {\n this.array = array;\n this.rows = array.length;\n this.cols = array[0].length;\n }", "title": "" }, { "docid": "f00b5d64ebfa755981db08a332a9df84", "score": "0.58362556", "text": "public PMatrix(PMatrix M) {\n this.dim = M.dim;\n this.array = new double[this.dim][this.dim];\n\n for (int i = 0; i < this.dim; i++) {\n for (int j = 0; j < this.dim; j++) {\n this.array[i][j] = M.array[i][j];\n }\n }\n }", "title": "" }, { "docid": "a1cc97a9090b217a247e574c005eded2", "score": "0.5830417", "text": "public Vector(int dim) {\n\tthis(dim, 0.0);\n }", "title": "" }, { "docid": "382b7d00cf0432b0782d882f96215918", "score": "0.5803491", "text": "public DistanceMatrix(ArrayList<Node> nodes){\n this.nodes.addAll(nodes);\n\n this.matrix = new double[nodes.size()][nodes.size()];\n\n // Calculates the distances\n distanceHandler();\n }", "title": "" }, { "docid": "6c6538e045259f751c8b3f548ab46135", "score": "0.57931715", "text": "public GIMatrix(int[][] array) {\n\tdouble[][] temp = new double[array.length][];\n\tfor (int i = 0; i < array.length; i++) {\n\t temp[i] = new double[array[i].length]; // line by line ...\n\t for (int j = 0; j < array[i].length; j++)\n\t\ttemp[i][j] = array[i][j]; // converts ints to doubles\n\t}\n//\tverifyMatrixFormat(temp);\n\tthis.array = temp;\n\tm = temp.length;\n\tn = temp[0].length;\n }", "title": "" }, { "docid": "f244ee360014702294000239215e41df", "score": "0.57927305", "text": "public static Matrix identity(int size) {\r\n return new Matrix(size, size, identityData(size));\r\n }", "title": "" }, { "docid": "7e8b52b7e2c07e97ff554d08453808ef", "score": "0.57897496", "text": "public MazeBuilder(int _rows, int _cols)\r\n\t{\r\n\t\tthis(_rows, _cols, 1);\t\r\n\t}", "title": "" }, { "docid": "7bfeb9e55de4c99ba373625faf58c0b1", "score": "0.5786335", "text": "private void initializeMatrix() {\n\t\tsetMatrix(new Array2DRowRealMatrix(this.calculateNrOfRows(),\n\t\t\t\tthis.calculateNrOfColumns()));\n\t\t// jlog.log(java.util.logging.Level.INFO, \"Matrix is initialized.\");\n\t}", "title": "" }, { "docid": "95830acf61640c99b5082b31117a5202", "score": "0.5777325", "text": "public MatrixDeterminant(double[][] matrix) {\n super(matrix);\n }", "title": "" }, { "docid": "7d1fcd5695a8cf4c7de125fd370da5e7", "score": "0.5773122", "text": "public ZeroToOneMatrix() {\n\t\tsuper(Matrixes.<R, C>newValidating(PredicateUtils.inBetween(0d, 1d)));\n\t}", "title": "" }, { "docid": "77a15367781fba465fbc538ec53b2a8d", "score": "0.5770718", "text": "public void testConstructors() {\n\tArrayList<ArrayList<String>> matrix = new ArrayList<ArrayList<String>>(3);\r\n\tmatrix.add(new ArrayList<String>(Arrays.asList(tr1)));\r\n\tmatrix.add(new ArrayList<String>(Arrays.asList(tr2)));\r\n\tmatrix.add(new ArrayList<String>(Arrays.asList(tr3)));\r\n\ttestDefaultMatrix(new StringMatrix(matrix));\r\n\r\n\t// test string array constructor\r\n\tString[][] array = new String[][] { tr1, tr2, tr3 };\r\n\ttestDefaultMatrix(new StringMatrix(array));\r\n\r\n\t// test string array list constructor\r\n\tArrayList<String[]> list = new ArrayList<String[]>(3);\r\n\tlist.add(tr1);\r\n\tlist.add(tr2);\r\n\tlist.add(tr3);\r\n\ttestDefaultMatrix(new StringMatrix(list));\r\n }", "title": "" }, { "docid": "d7dd89f620cdfb10e6738c9bc8f7ff5d", "score": "0.5758847", "text": "public MultinomialDistribution(int size) {\n\t\tsuper(size);\n\t\tvector = LinearVectorFactory.getVector(this.size);\n\t\tsum = 0;\n\t}", "title": "" }, { "docid": "5702b29b94fa348388cf6cd8d65d2b7f", "score": "0.57447845", "text": "public DoubleMatrix() {\n\t\tthis.matrix = new ArrayDeque<Double[]>();\n\t\tthis.cols = 0;\n\t}", "title": "" }, { "docid": "1b026e110423af16576e1693bdb583de", "score": "0.5731385", "text": "public RMatrix(RMatrix m) {\n this(m.getRowCount(), m.getColumnCount());\n for (int r = 0; r < rows; r++) {\n for (int c = 0; c < columns; c++) {\n coefficients[r][c] = m.coefficients[r][c];\n }\n }\n }", "title": "" }, { "docid": "f73ad8c0e4d3801dedcafda5d0780775", "score": "0.57211703", "text": "public Golboard(int matrix_size) {\n\t\tthis.matrix_size = matrix_size;\n\t\tcurr_grid = new int[matrix_size + 2][matrix_size + 2];\n\t\tnext_grid = new int[matrix_size + 2][matrix_size + 2];\n\t\t\n\t\tfor (int i = 0; i < matrix_size + 2; i++) {\n\t\t\tcurr_grid[i] = new int[matrix_size + 2];\n\t\t\tnext_grid[i] = new int[matrix_size + 2];\n\t\t}\n\t}", "title": "" }, { "docid": "f69bbfd14d0c491d52ec316c8d1e2222", "score": "0.5702429", "text": "public DenseMatrix(double[][] values) {\n\tthis(copyValues(values),IGNORE);\n }", "title": "" }, { "docid": "3e5cf78678a304bf0f0c72edb5176e8c", "score": "0.5694863", "text": "public Matrix3D() {\n matrix = new double[4][];\n for (int i = 0; i < 4; i++) {\n matrix[i] = new double[4];\n }\n }", "title": "" } ]
967981ae1f426a33368b11f54756b9bb
Retrieve the set of values that occur in matches for end.
[ { "docid": "8eef1fa0f9eb1dd7d1ecac1a68290c54", "score": "0.0", "text": "protected Stream<ConnectorEnd> rawStreamAllValuesOfend(final Object[] parameters) {\r\n return rawStreamAllValues(POSITION_END, parameters).map(ConnectorEnd.class::cast);\r\n }", "title": "" } ]
[ { "docid": "4c6d1d92f9dd29d63276ce5de8c13061", "score": "0.7058679", "text": "public Set<ConnectorEnd> getAllValuesOfend(final EndToGen.Match partialMatch) {\r\n return rawStreamAllValuesOfend(partialMatch.toArray()).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "8690eb0d6897f61fa3558205a7fa8aca", "score": "0.63137", "text": "Set<String> getMatches();", "title": "" }, { "docid": "7b115f360a56e826a0be2d8b40917ced", "score": "0.625864", "text": "public Set<ConnectorEnd> getAllValuesOfend() {\r\n return rawStreamAllValuesOfend(emptyArray()).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "2c66423af8ae5d9566eea5263646c467", "score": "0.62151456", "text": "public Collection<EndToGen.Match> getAllMatches(final Connector pConnector, final ConnectorEnd pEnd, final Port pPort) {\r\n return rawStreamAllMatches(new Object[]{pConnector, pEnd, pPort}).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "060e69b9c84bb7c2e9d076eaeb3bf2f8", "score": "0.5850622", "text": "@Override\n public synchronized boolean endOfMatch(){\n return this.matchEnds;\n }", "title": "" }, { "docid": "a5ef15bc0bd70de07f7a65731a2e0636", "score": "0.5597835", "text": "public List<Integer> match()\n\t\t{\n\t\t\tassert isMatch();\n\t\t\t\n\t\t\tList<Integer> keys = new ArrayList<>(candidates.keySet());\n\t\t\t\n\t\t\tCollections.sort(keys, reverseOrder());\n\t\t\tList<Integer> result = new ArrayList<>(keys.size());\t\n\t\t\t\n\t\t\tfor(int key : keys)\n\t\t\t{\n\t\t\t\tSet<Integer> cands = candidates.get(key);\n\t\t\t\t\n\t\t\t\tif(cands.size() != 1)\n\t\t\t\t\tthrow new RuntimeException(\"Number of candidates for variable \" + key + \" is not 1, but \" + cands.size()+\".\");\n\t\t\t\t\n\t\t\t\tresult.add(cands.iterator().next());\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "46328616ed7fb79088d8ca767fb299fc", "score": "0.5556711", "text": "boolean furtherMatchesPossible();", "title": "" }, { "docid": "e640096d99519c2f5845af72224a4d76", "score": "0.55538934", "text": "public final Map<String, MatchedValue> getMatchedValues() {\n\t\treturn matched_values;\n\t}", "title": "" }, { "docid": "ed5a8c776a5ce041f2cfd79642daaa59", "score": "0.54574496", "text": "MatchContainer findMatches();", "title": "" }, { "docid": "9647f65992b0c3b178324ff8d2ca8043", "score": "0.5340804", "text": "public int[] getEndValues(){\n\t\tif(values[0]<0)\r\n\t\t\treturn null;\r\n\t\telse{\r\n\t\t\treturn values;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e66f3f32bb950d7141d1e785f63f0fe2", "score": "0.5338747", "text": "private boolean isEndOfMatch() {\n return setCounter.value(0) >= 3 || setCounter.value(1) >= 3;\n }", "title": "" }, { "docid": "0064133e29fe9dbe823c9939c4ebff59", "score": "0.5178229", "text": "public ArrayList<Match> getMatches() {\n ArrayList<Match> matches = new ArrayList<>();\n\n Iterator it = _hospitalList.entrySet().iterator();\n\n for(int i=1; i<_hospitalList.size(); i++){\n ArrayList<Integer> pref = _hospitalList.get(i);\n\n int slots = pref.get(0);\n\n for(j=1; j<pref.size(); j++){\n Match match = new Match(i, j);\n matches.add(match);\n\n } \n }\n\n return matches;\n\t}", "title": "" }, { "docid": "e5aff793f8c6205a6b5bac8983083df2", "score": "0.5163533", "text": "public ArrayList<Match> getMatchsDone() {\n ArrayList<Match> matchs = singleEliminationTournament.getMatchs();\n ArrayList<Match> matchsDone = new ArrayList<>();\n Match match;\n for (int i = 0; i < matchs.size(); i++) {\n match = matchs.get(i);\n if (match.getResult() != ResultEnum.NOT_PLAYED) {\n matchsDone.add(match);\n }\n }\n \n return matchsDone;\n }", "title": "" }, { "docid": "32983a50ec4820c2f0d474ac50a5d7a5", "score": "0.5107613", "text": "public LinkedHashSet<Term> getValueSet()\n {\n return values;\n }", "title": "" }, { "docid": "7d4bcbd36e35cbb9c66f17dd40baa104", "score": "0.5088677", "text": "public AnyType last() {\n return set[binSearch(set, set[0])];\r\n }", "title": "" }, { "docid": "0ef694f2d081f1543544d7ef401583ee", "score": "0.50568825", "text": "public String[] getMatchList() {\n String[] ret = null;\n \n if (part == null || part.length() <= 0) {\n if (Logging.REPORT_LEVEL <= Logging.INFORMATION) {\n Logging.report(Logging.INFORMATION, LogChannels.LC_HIGHUI,\n \"getMatchList returning empty array\");\n }\n ret = new String[0];\n } else {\n int num = 0;\n String[] matches = new String[MAX_MATCHES];\n String match = part;\n\n do {\n if (Logging.REPORT_LEVEL <= Logging.INFORMATION) {\n Logging.report(Logging.INFORMATION, LogChannels.LC_HIGHUI,\n \" [getMatchList()] got nother match: \" + match);\n }\n matches[num] = match;\n num++;\n } while (num < MAX_MATCHES &&\n (match = getNextMatch()) != null &&\n match.compareTo(part) != 0);\n\n if (Logging.REPORT_LEVEL <= Logging.INFORMATION) {\n Logging.report(Logging.INFORMATION, LogChannels.LC_HIGHUI,\n \"getMatchList returning array of size \" + num);\n }\n ret = new String[num];\n System.arraycopy(matches, 0, ret, 0, num);\n }\n return ret;\n }", "title": "" }, { "docid": "33afe697e25224c5c5791f4cf18205da", "score": "0.50485885", "text": "public String[] termSet()\n\t{\n\t\treturn occurrences.keys(new String[0]);\n\t}", "title": "" }, { "docid": "9a5771803232442b8b5621a86d120ef0", "score": "0.50402695", "text": "@Override\r\n public Set<? extends State> getFinalStates() {\n Set<NFAState> retval = new LinkedHashSet<NFAState>();\r\n for(NFAState curr : states) {\r\n if(curr.isFinal()){\r\n retval.add(curr);\r\n }\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "640e2337fa797291b5c86f85460589bb", "score": "0.5018354", "text": "Set<String> getMismatches();", "title": "" }, { "docid": "0b69ed4c556e51041abfb8ce8dbba42e", "score": "0.5015268", "text": "public Set<Value> getValuesForDayRange(int r1, int r2) {\n if ((r1 == 0) && (r2 == 0))\n return Sets.newLinkedHashSet(values.values());\n\n int rangeStart = Math.max(r1, r2), rangeEnd = Math.min(r1, r2);\n\n DateTime firstDate = values.lastKey().minusDays(rangeStart);\n DateTime lastDate = values.lastKey().minusDays(rangeEnd);\n\n Set<Value> retValues = Sets.newLinkedHashSet();\n\n boolean withinRange = false;\n for (Map.Entry<DateTime, Value> entry : values.entrySet()) {\n if (withinRange) {\n if (entry.getKey().isBefore(lastDate))\n retValues.add(entry.getValue());\n else if (entry.getKey().isEqual(lastDate) || entry.getKey().isAfter(lastDate)) break;\n }\n\n if (!withinRange)\n if (entry.getKey().isEqual(firstDate) || entry.getKey().isAfter(firstDate)) {\n withinRange = true;\n retValues.add(entry.getValue());\n }\n }\n\n return retValues;\n }", "title": "" }, { "docid": "f0dfe9b2c534e7f73f344a5669fbb3ec", "score": "0.50014937", "text": "public Set<Connector> getAllValuesOfconnector(final EndToGen.Match partialMatch) {\r\n return rawStreamAllValuesOfconnector(partialMatch.toArray()).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "fde38a0967a3224265cbe70d505e099f", "score": "0.49710116", "text": "public List<Match> getFinalizedMatches() throws MatchNotFoundException {\n try {\n return matchRepo.getListOfFinalizedMatches();\n }catch (Exception e) {\n throw new MatchNotFoundException(\"MATCH NOT FOUNT\");\n }\n }", "title": "" }, { "docid": "581821fb9e8df6bd1ba74511e120f4fd", "score": "0.49623948", "text": "int takeMatches(int matchesRemained);", "title": "" }, { "docid": "b5dc630356e30ccc1a15472c5af966a1", "score": "0.49451014", "text": "public Set<ConnectorEnd> getAllValuesOfend(final Connector pConnector, final Port pPort) {\r\n return rawStreamAllValuesOfend(new Object[]{pConnector, null, pPort}).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "74e8699bb4d50ef8c11dc9c684c072cf", "score": "0.49398497", "text": "protected int findEndChainCarbonFromMatch(List<Integer> matchIndexes, IAtomContainer con) {\n\t\tfor(int i = 0; i < matchIndexes.size(); i++) \n\t\t\tif(con.getAtom(matchIndexes.get(i)).getSymbol().equals(\"C\") && this.isFinalCarbonInChain(matchIndexes.get(i), con)) \n\t\t\t\treturn matchIndexes.get(i);\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "515fac307ac998dd770a401ebdd89b2b", "score": "0.49161282", "text": "private void getMatchs() {\n final DatabaseReference matchedMe = fireBaseQueries.getMatchedme(userName);//users email\n fireBaseQueries.executeIfExists(matchedMe, new QueryMaster() {\n @Override\n public void run(DataSnapshot s) {\n GenericTypeIndicator<ArrayList<Match>> t = new GenericTypeIndicator<ArrayList<Match>>() {\n };\n ArrayList<Match> update = s.getValue(t);\n for (int i = 1; i < update.size(); ) {\n addToQueue(update.get(i));\n update.remove(i);\n }\n\n getNewMatchs();\n\n }\n });\n }", "title": "" }, { "docid": "72635004bf4dfb8593f0bb0cf8b11b9c", "score": "0.48869225", "text": "Iterable<Set> findByMatch(Match match);", "title": "" }, { "docid": "81715a6d39a2e04c21a6b51cfc1e71ab", "score": "0.48762432", "text": "@Override\n public Set<NFAState> getFinalStates()\n {\n Set<NFAState> ret = new LinkedHashSet<NFAState>();\n for(NFAState s : states){\n if(s.isFinal()){\n ret.add(s);\n }\n }\n return ret;\n }", "title": "" }, { "docid": "f63f2e5f9c9be858e1a2364d7e23cab3", "score": "0.48364413", "text": "protected List<Integer> findBondsNextToMatch(List<Integer> matchedAtomIndexes, int endChainCarbonIndex, \n\t\t\tIAtomContainer con) throws Exception {\n\t\tIAtom endChainCarbon = con.getAtom(endChainCarbonIndex);\n\t\tList<IAtom> connectedAtoms = con.getConnectedAtomsList(endChainCarbon);\n\t\tList<Integer> bondsNextToAlphaCarbon = null;\n\t\ttry {\n\t\t\tbondsNextToAlphaCarbon = connectedAtoms.stream().filter(connectedAtom -> \n\t\t\t\tmatchedAtomIndexes.contains(con.indexOf(connectedAtom))\n\t\t\t).map(atom -> con.indexOf(con.getBond(endChainCarbon, atom))).collect(Collectors.toList());\n\t\t} catch(Exception e) {\n\t\t\treturn new LinkedList<Integer>();\n\t\t}\n\t\t\n\t\treturn bondsNextToAlphaCarbon;\n\t}", "title": "" }, { "docid": "4f976903c7266b6dfed3b966f6f9cd5b", "score": "0.48145714", "text": "public List<Matches> getMatches() {\n return matches;\n }", "title": "" }, { "docid": "d14c0e83a6f0756b51269217986fb3d7", "score": "0.48049286", "text": "public Set<Connector> getAllValuesOfconnector(final ConnectorEnd pEnd, final Port pPort) {\r\n return rawStreamAllValuesOfconnector(new Object[]{null, pEnd, pPort}).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "e8a251ae5a58d6e59f6707e6e39d0119", "score": "0.4795629", "text": "public final int tokensMatched() {\n int erg = 0;\n for (int i = 0; i < size(); i++)\n erg += matches[i].length;\n return erg;\n }", "title": "" }, { "docid": "d18e78693a7e3ecd52064df934a5f3e8", "score": "0.4781204", "text": "int[] matchCount();", "title": "" }, { "docid": "16d65781ce4fb0d2f540b80cc4b5f968", "score": "0.47596845", "text": "@Override\n public void declareMatchWinner() {\n this.matchEnds = true;\n }", "title": "" }, { "docid": "c7aed55d55dc234a5b10aad605218b35", "score": "0.4730856", "text": "MatchPair(Pair<Integer, Integer> start, Pair<Integer, Integer> end) {\n this.start = start;\n this.end = end;\n this.length = end.getFirstElement() - start.getFirstElement();\n }", "title": "" }, { "docid": "5bc70d63cb1708b773c854a169973e87", "score": "0.47284642", "text": "@Nonnull\n Set<? extends GameEndorsement> getEndorsements();", "title": "" }, { "docid": "2fca652844aea59e3b2f885458459cc2", "score": "0.47268388", "text": "static ArrayList<MatchPair> findAllKMatchPairsNaiveSearch(String x, String y, int k) {\n ArrayList<MatchPair> matchPairs = new ArrayList<>();\n\n // keys are k-grams from string sequence, values are utils.Pair objects which represent the beginning and the end\n // (indexes)of the k-gram\n HashMap<String, ArrayList<Pair<Integer, Integer>>> xMap = initializeKGramMap(x, k);\n\n // intersection (keep only items which appear in both maps as keys (k-grams))\n for (int yStart = 0; yStart < y.length() - (k - 1); yStart++) {\n // check if xMap contains this kGram\n if (xMap.containsKey(y.substring(yStart, yStart + k))) {\n String key = y.substring(yStart, yStart + k);\n // add all matches to result\n for (Pair<Integer, Integer> xStartEnd : xMap.get(key)) {\n matchPairs.add(new MatchPair(new Pair<>(xStartEnd.getFirstElement(), yStart), new Pair<>(xStartEnd.getSecondElement(), yStart + k)));\n }\n }\n }\n\n return matchPairs;\n }", "title": "" }, { "docid": "ce96d6f4032b52e381fcf1042827fc69", "score": "0.47245586", "text": "public static String[] getPossibles(int match)\n\t\t{\n\t\t\tString[] result;\n\t\t\tint start;\n\t\t\tif(!possibleResults[match][0].equals(\"\"))\n\t\t\t\treturn possibleResults[match];\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tif(match < 96)\n\t\t\t{\n\t\t\t\tstart = (match-64)*2;\n\t\t\t}else if(match < 112)\n\t\t\t{\n\t\t\t\tstart = (match-96)*2+64;\n\t\t\t}else if(match < 120)\n\t\t\t{\n\t\t\t\tstart = (match-112)*2+96;\n\t\t\t}else\n\t\t\t{\n\t\t\t\t//start of finals division\n\t\t\t\tif(match < 128)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[match-8]);\n\t\t\t\t\ttemp.add(legends[match-120]);\n\t\t\t\t}else if(match < 132)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(getLoser((match-128)*2+120));\n\t\t\t\t\ttemp.add(getLoser((match-128)*2+121));\n\t\t\t\t}else if(match < 136)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[(match-132)*2+120]);\n\t\t\t\t\ttemp.add(results[(match-132)*2+121]);\n\t\t\t\t}else if(match < 140)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[(match-8)]);\n\t\t\t\t\ttemp.add(getLoser(match-4));\n\t\t\t\t}else if(match < 144)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[(match-140)*2+132]);\n\t\t\t\t\ttemp.add(results[(match-140)*2+133]);\n\t\t\t\t}else if(match < 146)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[(match-2)]);\n\t\t\t\t\ttemp.add(getLoser(match-4));\n\t\t\t\t}else if(match == 146)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[match-6]);\n\t\t\t\t\ttemp.add(results[match-5]);\n\t\t\t\t}else if(match == 147)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[match-3]);\n\t\t\t\t\ttemp.add(results[match-2]);\n\t\t\t\t}else if(match == 148)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[match-1]);\n\t\t\t\t\ttemp.add(getLoser(match-2));\n\t\t\t\t}else{\n\t\t\t\t\ttemp.add(results[match-3]);\n\t\t\t\t\ttemp.add(results[match-1]);\n\t\t\t\t}\n\t\t\t\tresult = temp.toArray(new String[temp.size()]);\n\t\t\t\t\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tfor(int i = start; i < start+2; i++)\n\t\t\t{\n\t\t\t\tif(i < nextMatch)\n\t\t\t\t{\n\t\t\t\t\ttemp.add(results[i]);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 0; j < possibleResults[i].length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp.add(possibleResults[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = temp.toArray(new String[temp.size()]);\n\t\t\t\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "6e7fb454819bd5f5df32885d0520b5d6", "score": "0.47148138", "text": "public Set<Long> getValues() {\n return ImmutableSet.copyOf(theSet);\n}", "title": "" }, { "docid": "9ede9056916a8179a7ee071111751473", "score": "0.47116578", "text": "public abstract Set<String> getRange();", "title": "" }, { "docid": "9ede9056916a8179a7ee071111751473", "score": "0.47116578", "text": "public abstract Set<String> getRange();", "title": "" }, { "docid": "0fb27ce123c0f23a92891859fd71635b", "score": "0.46998322", "text": "public Collection<Occurrence> getOccurrences(){\n return unmodOccurrences;\n }", "title": "" }, { "docid": "9c69fab936ed02199ac5f168ab3e463b", "score": "0.4698328", "text": "public List<CorrelationKeySet> findSubSets() {\n List<CorrelationKeySet> subSets = new ArrayList<CorrelationKeySet>();\n\n // if the key set contains a opaque key and at least one non-opaque key, take out the opaque key\n CorrelationKey opaqueKey = null;\n boolean containsNonOpaque = false;\n CorrelationKeySet explicitKeySet = new CorrelationKeySet();\n for( CorrelationKey ckey : correlationKeys ) {\n // assumes only ONE opaque key if there is\n if( ckey.getCorrelationSetName().equals(\"-1\") ) {\n opaqueKey = ckey;\n } else {\n containsNonOpaque = true;\n }\n explicitKeySet.add(ckey);\n }\n /**\n * CorrelationKeySet consist of the sessionId ( implicit correlation, tenant id => wso2 modification ) by default\n * Hence when we filter out the opaquekey in case there is a genuine correlationSet defined in the processs, we need to\n * check the number of elements. If there is a correlation set with at least one property, then the correlationKeys\n * size should be 3\n */\n if( opaqueKey != null && containsNonOpaque && correlationKeys.size() != 2) {\n explicitKeySet.correlationKeys.remove(opaqueKey);\n }\n\n // we are generating (2 powered by the number of correlation keys) number of sub-sets\n for( int setIndex = 0; setIndex < Math.pow(2, explicitKeySet.correlationKeys.size()); setIndex++ ) {\n CorrelationKeySet subKeySet = new CorrelationKeySet();\n int bitPattern = setIndex; // the bitPattern will be 0b0000, 0b0001, 0b0010 and so on\n Iterator<CorrelationKey> ckeys = explicitKeySet.iterator();\n while( ckeys.hasNext() && bitPattern > 0 ) { // bitPattern > 0 condition saves half of the iterations\n CorrelationKey ckey = ckeys.next();\n if( (bitPattern & 0x01) > 0 ) {\n subKeySet.add(ckey);\n }\n bitPattern = bitPattern >> 1;\n }\n\n if(!subKeySet.isEmpty()) { // we don't want an empty set\n subSets.add(subKeySet);\n }\n }\n\n if( subSets.isEmpty() ) {\n subSets.add(new CorrelationKeySet());\n }\n\n return subSets;\n }", "title": "" }, { "docid": "a81082d849c227cd2f41fe696342b69e", "score": "0.46854126", "text": "@Override\n\tpublic List<Match> getMatches() {\n\t\tList<Match> array = new ArrayList<>();\n\t\t\n\t\tMatch.Builder mb = OFFactories.getFactory(OFVersion.OF_13).buildMatch();\n\t\t\n\t\tmb.setExact(MatchField.ETH_TYPE, EthType.IPv6);\n\t\tmb.setExact(MatchField.IP_PROTO, IpProtocol.UDP);\n\t\tmb.setExact(MatchField.UDP_DST, TransportPort.of(547));\n\t\tmb.setExact(MatchField.UDP_SRC, TransportPort.of(546));\n\t\tarray.add(mb.build());\n\t\t\n\t\tmb = OFFactories.getFactory(OFVersion.OF_13).buildMatch();\n\t\tmb.setExact(MatchField.ETH_TYPE, EthType.IPv6);\n\t\tmb.setExact(MatchField.IP_PROTO, IpProtocol.UDP);\n\t\tmb.setExact(MatchField.UDP_DST, TransportPort.of(546));\n\t\tmb.setExact(MatchField.UDP_SRC, TransportPort.of(547));\n\t\tarray.add(mb.build());\n\t\t\n\t\treturn array;\n\t}", "title": "" }, { "docid": "792034f508e52cdb288f40cf7a8744be", "score": "0.46794316", "text": "public List getList() {\r\n return matchesList;\r\n }", "title": "" }, { "docid": "fe1998b76623240b15da2141305c7f3c", "score": "0.46697402", "text": "private List<Field<?>> getDatasetScanEndKey(DatasetId datasetInstance, long start) {\n return getDatasetScanKey(datasetInstance, start == 0 ? start : start - 1);\n }", "title": "" }, { "docid": "876960cfe81e910f66cca01cfa856e0e", "score": "0.46515104", "text": "public Set<String> getFinalParameters() {\n Set<String> setFinalParams = Collections.newSetFromMap(\n new ConcurrentHashMap<String, Boolean>());\n setFinalParams.addAll(finalParameters);\n return setFinalParams;\n }", "title": "" }, { "docid": "684f5cc31a0a2197fe04a183df590bfc", "score": "0.4643914", "text": "public ArrayList<Long> filter() {\n\t\tArrayList<Long> result = new ArrayList<Long>();\r\n\t\tCollection<OtherFinance> finList = new ArrayList<OtherFinance>();\r\n\t\t\r\n\t\tfinList = incomeMap.subMap(dateFrom, dateTo).values();\r\n\t\t\r\n\t\tfor(OtherFinance of : finList) {\r\n\t\t\tresult.add(of.getAmount());\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t\t//NB: result > 0;\r\n\t}", "title": "" }, { "docid": "1ddca639c08ac551b8eb711e26ac4198", "score": "0.46278596", "text": "private static Set<State> findFinal(final Automaton a) {\n\t\tfinal Set<State> finalized = new HashSet<>();\n\t\tfinalized.addAll(a.getFinalStates());\n\t\tboolean added = finalized.size() != 0;\n\t\tfinal List<Transition> t = a.getTransitions();\n\t\twhile (added) {\n\t\t\tadded = false;\n\t\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\t\tif (finalized.contains(t.get(i).getToState())) {\n\t\t\t\t\tadded = added || finalized.add(t.get(i).getFromState());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn finalized;\n\t}", "title": "" }, { "docid": "5554b57f3898c2e795678980a99f8aa5", "score": "0.46248743", "text": "@Override\n public Set<V> values() {\n Set<V> result = valueSet;\n return (result == null) ? valueSet = new ValueSet() : result;\n }", "title": "" }, { "docid": "5df3df813e456e971892cd649ef7f561", "score": "0.46072015", "text": "public int countSetBitsEnd() {\n\n int count = 0;\n int windex = (limitPos / 32) - 1;\n\n for (; windex >= 0; windex--) {\n if (map[windex] == 0xffffffff) {\n count += 32;\n\n continue;\n }\n\n int val = countSetBitsEnd(map[windex]);\n\n count += val;\n\n break;\n }\n\n return count;\n }", "title": "" }, { "docid": "c6239122b4eb8dee5dd0093abeba9f2b", "score": "0.458005", "text": "public Iterator values();", "title": "" }, { "docid": "28236b937a9fc7879746cdef184b1b72", "score": "0.45782855", "text": "@Override\n\tpublic List<Recognition> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "title": "" }, { "docid": "fa370c2e7a5e69b8280cb911924327db", "score": "0.45678177", "text": "public Stream<ConnectorEnd> streamAllValuesOfend() {\r\n return rawStreamAllValuesOfend(emptyArray());\r\n }", "title": "" }, { "docid": "ccadfb512b095e9c70b2051b5b5abe76", "score": "0.45670664", "text": "public final java.util.Collection<Editable> getItemsBetween(final HiResDate start,\r\n\t\t\tfinal HiResDate end)\r\n\t{\r\n\t\tjava.util.Vector<Editable> res = null;\r\n\r\n\t\tif (this.getStartDTG() != null)\r\n\t\t{\r\n\t\t\t// are we inside this period\r\n\t\t\tfinal HiResDate startTime = getStartDTG();\r\n\t\t\tfinal HiResDate endTime = getEndDTG();\r\n\r\n\t\t\t// have any dates been set?\r\n\t\t\tif (startTime != null)\r\n\t\t\t{\r\n\t\t\t\t// do we have a finish time?\r\n\t\t\t\tif (endTime != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// we have start and finish times, see if we overlap the period at all\r\n\t\t\t\t\tif ((startTime.lessThanOrEqualTo(end))\r\n\t\t\t\t\t\t\t&& (endTime.greaterThanOrEqualTo(start)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\t// we don't have a finish time, see if we are inside the period\r\n\t\t\t\t\tif ((startTime.greaterThanOrEqualTo(start))\r\n\t\t\t\t\t\t\t&& (startTime.lessThanOrEqualTo(end)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// do we have any valid data?\r\n\t\t\t\tif (res != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// yes, do we have an end time?\r\n\t\t\t\t\tif (endTime != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// HI-RES NOT DONE - WHAT ON EARTH IS HAPPENING IN THIS NEXT\r\n\t\t\t\t\t\t// SECTION?\r\n\r\n\t\t\t\t\t\t// produce data from the last of our start time and the period\r\n\t\t\t\t\t\t// start, to the first\r\n\t\t\t\t\t\t// of our finish time and the period end\r\n\t\t\t\t\t\tfinal long st = Math.max(startTime.getMicros(), start.getMicros());\r\n\t\t\t\t\t\tfinal long en = Math.min(endTime.getMicros(), end.getMicros());\r\n\r\n\t\t\t\t\t\t// work through this dataset, in minutes\r\n\t\t\t\t\t\tfor (long i = st; i <= en; i += 60 * 1000 * 1000)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tres.addElement(new LabelWrapper(this.getLabel(), this\r\n\t\t\t\t\t\t\t\t\t.getLocation(), this.getColor(), new HiResDate(0, i),\r\n\t\t\t\t\t\t\t\t\tnew HiResDate(0, i)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// HI-RES NOT DONE - WHAT ON EARTH IS HAPPENING IN THIS NEXT\r\n\t\t\t\t\t\t// SECTION?\r\n\r\n\t\t\t\t\t\t// produce data from the last of our start time and the data start\r\n\t\t\t\t\t\t// time, to the end time of the\r\n\t\t\t\t\t\t// data\r\n\t\t\t\t\t\tfinal long st = Math.max(startTime.getMicros(), start.getMicros());\r\n\r\n\t\t\t\t\t\t// work through this dataset, in minutes\r\n\t\t\t\t\t\tfor (long i = st; i <= end.getMicros(); i += 60 * 1000 * 1000)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tres.addElement(new LabelWrapper(this.getLabel(), this\r\n\t\t\t\t\t\t\t\t\t.getLocation(), this.getColor(), new HiResDate(0, i),\r\n\t\t\t\t\t\t\t\t\tnew HiResDate(0, i)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// no dates have been set - just say yes we are visible\r\n\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\tres.add(this);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// no times are set - just return ourselves\r\n\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\tres.add(this);\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "3d4cb956e646ce1b25250c96296d3372", "score": "0.45620123", "text": "@Override\n\tpublic List<V> getNextResult() {\n/*\t\t\n\t\tnum++;\n\t\tif (num < matchKeys.size()) {\n\t\t\tList<String> res = new ArrayList<String>();\n\t\t\tres.add(matchKeys.get(num));\t\n\t\t\treturn (List<V>) res;\n\t\t}\n*/\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7a7a53bf196d7d98dae92c4a64664e4f", "score": "0.4546517", "text": "public ArrayList<Match> getMatchsToPlay() {\n ArrayList<Match> matchs = singleEliminationTournament.getMatchs();\n ArrayList<Match> matchsToPlay = new ArrayList<>();\n Match match;\n for (int i = 0; i < matchs.size(); i++) {\n match = matchs.get(i);\n if (match.getResult() == ResultEnum.NOT_PLAYED) {\n matchsToPlay.add(match);\n }\n }\n \n return matchsToPlay;\n }", "title": "" }, { "docid": "84d015cc15ef5b0db186a4bb6a76810a", "score": "0.45451024", "text": "public Set<Port> getAllValuesOfport(final EndToGen.Match partialMatch) {\r\n return rawStreamAllValuesOfport(partialMatch.toArray()).collect(Collectors.toSet());\r\n }", "title": "" }, { "docid": "4d691c8fe035488b5b3ed8b1094403d4", "score": "0.45423496", "text": "private static List grep() {\n List matches = new ArrayList();\n\tMatcher lm = linePattern.matcher(indexFile);\t// Line matcher\n\tMatcher pm = null;\t\t\t// Pattern matcher\n\tint lines = 0;\n\twhile (lm.find()) {\n\t lines++;\n\t CharSequence cs = lm.group(); \t// The current line\n\t if (pm == null)\n\t\tpm = pattern.matcher(cs);\n\t else\n\t\tpm.reset(cs);\n\t if (pm.find()) {\n\t \tmatches.add(cs.toString());\n\t }\n\t if (lm.end() == indexFile.limit())\n\t\tbreak;\n\t}\n\treturn matches;\n }", "title": "" }, { "docid": "354dae2fb655c067540afb2e3914ff48", "score": "0.45410597", "text": "public boolean hasMoreMatches() {\n // log(\"[hasMoreMatches]\");\n return iterator.hasNext();\n }", "title": "" }, { "docid": "3e2dc122b40269b8da0c7187f746b325", "score": "0.45278996", "text": "private E findNextMatch(){\n\t\thasNextMatch = false;\n\t\tE prevCache = cache;\n\t\twhile(iter.hasNext()){\n\t\t\tE obj = iter.next();\n\t\t\tif (filterFunc.test(obj)) {\n\t\t\t\t// update the cache and the flag, break the loop\n\t\t\t\tcache = obj; \n\t\t\t\thasNextMatch = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn prevCache;\n\t}", "title": "" }, { "docid": "3c14f5b109f1b30b4c871ab41e9bfe19", "score": "0.45277956", "text": "public Set<AutoRefRegion> getRegions()\n \t{ return match.getRegions(this); }", "title": "" }, { "docid": "6f8df617e725d65ab7211cd09c036c54", "score": "0.452532", "text": "@java.lang.Override\n public int getMatchesCount() {\n return matches_.size();\n }", "title": "" }, { "docid": "19f72d3ac8e21af8e99398952ffd30fe", "score": "0.45252457", "text": "int getEnd();", "title": "" }, { "docid": "19f72d3ac8e21af8e99398952ffd30fe", "score": "0.45252457", "text": "int getEnd();", "title": "" }, { "docid": "846f430828d54eb0b0852cbc40c4ded1", "score": "0.4521417", "text": "void fillEnd() {\n Set<String> end = new HashSet<String>();\n end.add(\"$\");\n follow.put(grammer.get(0), end);\n }", "title": "" }, { "docid": "d7d132f4a70a34032b6a87f10b4a5941", "score": "0.45192483", "text": "public final Set<String> valueSet () {\n return branches.keySet();\n }", "title": "" }, { "docid": "f08635dcb00d710de09382934100466c", "score": "0.45188868", "text": "public Set<Coordinate> globalSearch() {\n \n Set<Coordinate> winningElements = new HashSet<Coordinate>();\n \n // Filling a set with all the possible elements on the board that aren't blank\n Set<Coordinate> allElements = new HashSet<Coordinate>();\n for(int i = 0; i < gameRows; ++i) {\n for(int j = 0; j < gameCols; ++j) {\n if(board[i][j] != '.') {\n allElements.add(new Coordinate(i, j)); \n }\n }\n }\n \n for(Coordinate c : allElements) {\n search(c, -1, -1, winningElements);\n search(c, -1, 0, winningElements);\n search(c, -1, 1, winningElements);\n search(c, 0, -1, winningElements);\n }\n \n return winningElements; \n }", "title": "" }, { "docid": "4df32f740f070b145600bbef2fb792c9", "score": "0.4518559", "text": "public Set<Entry<String, String>> getEntries() {\n\n\t\t\treturn parameters.entrySet();\n\t\t}", "title": "" }, { "docid": "5109daf121d65dbb4d86a1cced263330", "score": "0.45132273", "text": "public Set getFullSet();", "title": "" }, { "docid": "770e45b48f8417313c227bbf5b2f11f9", "score": "0.45123047", "text": "static ArrayList<MatchPair> findAllKMatchPairsSimpleHashSearch(String x, String y, int k) {\n ArrayList<MatchPair> matchPairs = new ArrayList<>();\n HashMap<Long, ArrayList<Pair<Integer, Integer>>> kGramMapX = new HashMap<>();\n\n for (int startX = 0; startX < x.length() - (k - 1); startX++) {\n long hash = (long) x.substring(startX, startX + k).hashCode();\n kGramMapX.computeIfAbsent(hash, k1 -> new ArrayList<>());\n // start of the substring in Y is unknown for now\n kGramMapX.get(hash).add(new Pair<>(startX, null));\n }\n\n for (int startY = 0; startY < y.length() - (k - 1); startY++) {\n long hash = (long) y.substring(startY, startY + k).hashCode();\n if (kGramMapX.get(hash) != null) {\n // if hashes are same -> substrings COULD be equal\n for (Pair<Integer, Integer> p : kGramMapX.get(hash)) {\n if (x.substring(p.getFirstElement(), p.getFirstElement() + k).equals(y.substring(startY, startY + k))) {\n Pair<Integer, Integer> pCopy = new Pair<>(p.getFirstElement(), startY);\n Pair<Integer, Integer> end = new Pair<>(pCopy.getFirstElement() + k, pCopy.getSecondElement() + k);\n matchPairs.add(new MatchPair(pCopy, end));\n }\n }\n }\n }\n return matchPairs;\n }", "title": "" }, { "docid": "47bd86a3d1e4849fc209534be8e33d99", "score": "0.45091373", "text": "public SortedSet tailSet(Object fromElement) {\n return this.data.tailSet(fromElement);\n }", "title": "" }, { "docid": "7ef364dfd1682ad0a11238a7e1e1ce8e", "score": "0.4505518", "text": "public HashSet<Character> getContainedKeys()\n {\n HashSet<Character> all = new HashSet<>();\n for(FiniteAutomataNode fan: this.dfaContains)\n {\n all.addAll(fan.getKeys());\n }\n return all;\n }", "title": "" }, { "docid": "f6491bdcc0880453c2c84681c83bcf62", "score": "0.45028538", "text": "public static List findPath (String startWord, String endWord, HashSet<String> dictionary) {\n\t HashMap <String,String> origin = new HashMap<>();\n\t HashSet <String> explored = new HashSet<>(); // HashSet not HashMap\n\t LinkedList <String> queue = new LinkedList<>();\n\t \n\t queue.add(0, startWord); // push to low end\n\t origin.put(startWord, null);\n\n\t \n\t while (!queue.isEmpty()) {\n\t String searchWord = queue.remove(queue.size()-1); // Needed an index\n\t // REMOVE not GET\n\t explored.add(searchWord);\n\t \n\t for (String foundWord: oneOffWords(searchWord)) {\n\t if (foundWord.equals(endWord)) {\n\t LinkedList<String> answer = new LinkedList<>();\n\t origin.put(endWord, searchWord);\n\t String word = endWord;\n\t answer.add(0, word); // add not put\n\t while (origin.get(word) != null) {\n\t word = origin.get(word);\n\t answer.add(0, word); // add not put\n\t }\n\t return answer;\n\t }\n\t if (dictionary.contains(foundWord) && !explored.contains(foundWord)) {\n\t queue.add(0, foundWord);\n\t origin.put(foundWord, searchWord);\n\t }\n\t }\n\t }\n\t \n\t return null;\n\t }", "title": "" }, { "docid": "63d21e6b457c478d3df2aac4d51eb366", "score": "0.45018864", "text": "public static HashMap<String, ArrayList<String>> getOccurrences() \n\t{\n\t\treturn occurrences;\n\t}", "title": "" }, { "docid": "d54ea547ec26b75152dfb21b35366744", "score": "0.4494433", "text": "@Override\n List<E> retrieve(RangeAdapter r) {\n SortedMap<Interval, List<E>> subMap = map;\n List<E> result = new ArrayList<E>();\n for (List<E> value : subMap.values()) {\n if (value.get(0).getInterval().intersectsRange(r)) {\n result.addAll(value);\n }\n }\n return result;\n }", "title": "" }, { "docid": "cdf2fc4d851b95a5b5ab7cce301f5f98", "score": "0.4493885", "text": "public Builder addAllMatches(\n java.lang.Iterable<? extends google.maps.fleetengine.v1.VehicleMatch> values) {\n if (matchesBuilder_ == null) {\n ensureMatchesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, matches_);\n onChanged();\n } else {\n matchesBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "98d0a3328e7ab5cbebedd0d9351b44e5", "score": "0.44899127", "text": "public static void main(String[] args) {\n HashSet<Integer> hashSet = new HashSet<Integer>();\n // long start = System.currentTimeMillis();\n hashSet.add(21);\n hashSet.add(10);\n hashSet.add(25);\n hashSet.add(null);\n hashSet.add(25);\n hashSet.add(null);\n \n\n Iterator<Integer> iterator = hashSet.iterator();\n while(iterator.hasNext())\n {\n\t System.out.println(iterator.next());\n }\n \n // System.out.println(end-start);\n\t}", "title": "" }, { "docid": "8d19b7303330f8b2daeb99ca6938227e", "score": "0.4484124", "text": "public Iterator values() {\n return this.keySet().iterator();\n }", "title": "" }, { "docid": "74b90abd9bff97b4ae923bfececbf94d", "score": "0.44840914", "text": "public void visitMatchExpression(GNode n) {\n dispatch(n.getGeneric(0));\n \n // Process pattern matching\n Node pmatching = n.getGeneric(1);\n for (int i = 0; i < pmatching.size(); i++) {\n Node pmatch = pmatching.getGeneric(i);\n \n // Get ids in the right hand side expression\n Set<String> ids1 = \n new FreeVariableCollector(pmatch.getGeneric(1)).getIdentifiers();\n \n // Remove bound ids\n Set<String> ids2 = \n new FreeVariableCollector(pmatch.getGeneric(0), ids1).getIdentifiers();\n \n idlist.addAll(ids2);\n } \n }", "title": "" }, { "docid": "d7678d54a2f757ec878fcf9fb45ee382", "score": "0.44732574", "text": "private String[] getPreviousSearchPatterns() {\n \t\tint patternCount = fgPreviousSearchPatterns.size();\n \t\tString [] patterns= new String[patternCount];\n \t\tfor (int i= 0; i < patternCount; i++)\n \t\t\tpatterns[i]= ((SearchPatternData) fgPreviousSearchPatterns.get(patternCount - 1 - i)).getPattern();\n \n \t\treturn patterns;\n \t}", "title": "" }, { "docid": "58080c0732f5ed0dfddd3de9044aa005", "score": "0.4466273", "text": "public ArrayList<Match> getMatchs() {\n ArrayList<Match> matchs = new ArrayList<>();\n \n if (poolPlaying) {\n matchs = this.poolTournament.getMatchs();\n } else if (turnPlaying) {\n matchs = this.singleEliminationTournament.getMatchs();\n }\n\n return matchs;\n }", "title": "" }, { "docid": "844169dc741e2a30d69e1c62fb34aae0", "score": "0.44637462", "text": "public boolean hasMatches();", "title": "" }, { "docid": "d6fad9371f95133d6351ce84edc1d4a6", "score": "0.44635838", "text": "public static Map<Integer, HashSet<Integer>> checkRuleSet(RuleSet rs) {\n\n HashMap<Integer, HashSet<Integer>> subsumMap = new HashMap<Integer, HashSet<Integer>>();\n int len = rs.rules.size();\n for (int i = 0; i < len; ++i) {\n Rule r = rs.rules.get(i);\n\n ArrayList<Integer> getSubsumedRules = new ArrayList<Integer>();\n ArrayList<Integer> subsumerRules = new ArrayList<Integer>();\n\n isRuleSubsumedByRuleSet(r, rs, getSubsumedRules, subsumerRules);\n\n if (subsumerRules.size() != 0) {\n HashSet<Integer> l = subsumMap.get(i);\n if (l == null)\n l = new HashSet<Integer>();\n for (int k : subsumerRules) {\n if (k != i)\n l.add(k);\n }\n if (l.size() != 0)\n subsumMap.put(i, l);\n }\n\n if (getSubsumedRules.size() != 0) {\n HashSet<Integer> l;\n for (int h : getSubsumedRules) {\n if (h == i)\n continue;\n l = subsumMap.get(h);\n if (l == null)\n l = new HashSet<Integer>();\n l.add(i);\n subsumMap.put(h, l);\n }\n }\n }\n int count = 0;\n for (Integer r : subsumMap.keySet()) {\n for (Integer k : subsumMap.get(r)) {\n if (k > r) {\n if (isIgnoreCNFOnRight)\n if (rs.rules.get(r).rhs.cnf != null)\n continue;\n count++;\n System.out.println(\"\\nLine \" + rs.rules.get(r).startLine + \" and \" + rs.rules.get(k).startLine);\n System.out.println(\"rules = \\n\" + rs.rules.get(r) + \"\\n.\\n\" + rs.rules.get(k));\n }\n }\n }\n System.out.println(\"There are total \" + count + \" need to be check.\");\n return subsumMap;\n }", "title": "" }, { "docid": "bcb49482e10dc818f9db43800ff63ee7", "score": "0.44610637", "text": "private static ArrayList<String> getSolution(SearchTreeNode end, SearchTreeNode beginning) {\r\n ArrayList<String> solution = new ArrayList<>();\r\n while (!end.state.equals(beginning.state)) {\r\n solution.add(0, end.action);\r\n end = end.parent;\r\n }\r\n return solution;\r\n }", "title": "" }, { "docid": "81866f591a4ef25dc64c4e1f4d6cb2f7", "score": "0.4459835", "text": "public MySortedSet<Pokemon> listRange(int start, int end) {\n for (Pokemon p1 : thePokemon) {\n if (p1.getNumber() >= start) {\n Pokemon p3 = p1;\n for (Pokemon p2 : thePokemon) {\n if (p2.getNumber() >= end) {\n return thePokemon.subSet(p1, p3);\n }\n p3 = p2;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "6a62e0518e63e3856a5c3ec5e8a0476d", "score": "0.44509876", "text": "private String[] getPreviousSearchPatterns() {\n int patternCount = fPreviousSearchPatterns.size();\n String[] patterns = new String[patternCount];\n for (int i = 0; i < patternCount; i++) patterns[i] = fPreviousSearchPatterns.get(i).getPattern();\n return patterns;\n }", "title": "" }, { "docid": "e0a8a3dba81bfed50ea86bcede9aa310", "score": "0.44399163", "text": "public Set<xMsgRegistration> all() {\n return db.values()\n .stream()\n .flatMap(m -> m.values().stream())\n .flatMap(s -> s.stream())\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "3f572b332d533855676818e4bc59fbbb", "score": "0.44389847", "text": "private String getValuesXmlMatch(final RtMatch rtMatch) {\r\n\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\r\n\t\tbuffer.append(rtMatch.getHashKey());\r\n\r\n\t\tfor (RtMarket market : rtMatch.getRtMarkets()) {\r\n\t\t\tbuffer.append(market.getHashKey());\r\n\t\t}\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "title": "" }, { "docid": "090c1190e67ac9c96b29900dcd80aed3", "score": "0.44324997", "text": "public Expression getEndIndex() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "0d851e6ce47a750f453ab62b06dd4abb", "score": "0.44292456", "text": "public Iterator iterator() { \r\n return set.iterator();\r\n }", "title": "" }, { "docid": "532102e8aacf074ca7183b1572861480", "score": "0.44278878", "text": "public int[] match(DoublyLinkedList<T> subsequence) {\n\n //A list to hold all the starting indices found\n DoublyLinkedList<Integer> indices = new DoublyLinkedList<>();\n\n //TODO: Add implementation to find the starting indices\n Node current = this.head.next;\n for (int i =0; i<= nelems-subsequence.size(); i++){\n boolean match = true;\n for (int j = 0; j< subsequence.size(); j++){\n if (!this.get(i+j).equals(subsequence.get(j))){\n match = false;\n break;\n }\n }\n if (match){\n indices.add(i);\n }\n current = current.getNext();\n }\n\n // Array Conversion\n int[] startingIndices = new int[indices.size()];\n for (int i = 0; i < indices.size(); i++) {\n startingIndices[i] = indices.get(i);\n }\n return startingIndices;\n }", "title": "" }, { "docid": "960040ee28b87c07a4bac0faaf98f5fe", "score": "0.4426408", "text": "public Set<Integer> returnSet() {\r\n\t\treturn lotterySet;\r\n\t}", "title": "" }, { "docid": "2fe36684d805be86b8d3a27d8c049129", "score": "0.442638", "text": "public Set<Map.Entry<Param, String>> getEntries() {\n return parameters.entrySet();\n }", "title": "" }, { "docid": "273b7ea0424d0fbda518ae6bbb6e2071", "score": "0.44212157", "text": "public Stream<VAL> getValues() {\n\t\treturn chain.stream().filter(g -> g.on.getValue())\n\t\t\t\t.map(g -> g.chained.getVal())\n\t\t\t\t.filter(ISNT0);\n\t}", "title": "" }, { "docid": "7f7ffa04906eb6a62e3de943f86a14f2", "score": "0.44167456", "text": "boolean hasNext() {\n return matcherBlock.hasNext();\n }", "title": "" }, { "docid": "47bafb6e37816a5aa12fa431026f819b", "score": "0.4411085", "text": "public Iterable<String> keysThatMatch(String pat) {\n Queue<String> queue = new Queue<String>();\n collect(root, \"\", pat, 0, queue);\n return queue;\n }", "title": "" }, { "docid": "117be111141ef162059dc9ed772ec6e5", "score": "0.44046745", "text": "Set<V> values();", "title": "" }, { "docid": "a2a0c4054ee9fcf9bb400155048f61d4", "score": "0.44022098", "text": "HashSet<Character> closure(HashSet<Character> X){\n HashSet<Character> Xplus = new HashSet<Character>(X); // 2. initialize\n int len = 0;\n do { // 3. push out\n len = Xplus.size();\n for (FD fd: F)\n if (Xplus.containsAll(fd.lhs) && !Xplus.contains(fd.rhs)) Xplus.add(fd.rhs);\n } while (Xplus.size() > len); \n return Xplus; // 4. found closure of X\n}", "title": "" }, { "docid": "639d800613945e3d5383fc18857f8ed1", "score": "0.4398916", "text": "private Map<Integer, Set<Integer>> findSequencesContainingItems(SequenceDatabase database) {\n\t\t// We use a map to store the sequence IDs where an item appear\n\t\t// Key : item Value : a set of sequence IDs\n\t\tMap<Integer, Set<Integer>> mapSequenceID = new HashMap<Integer, Set<Integer>>(); \n\t\t// for each sequence in the current database\n\t\tfor(Sequence sequence : database.getSequences()){\n\t\t\t// for each itemset in this sequence\n\t\t\tfor(List<Integer> itemset : sequence.getItemsets()){\n\t\t\t\t// for each item\n\t\t\t\tfor(Integer item : itemset){\n\t\t\t\t\t// get the set of sequence IDs for this item until now\n\t\t\t\t\tSet<Integer> sequenceIDs = mapSequenceID.get(item);\n\t\t\t\t\tif(sequenceIDs == null){\n\t\t\t\t\t\t// if the set does not exist, create one\n\t\t\t\t\t\tsequenceIDs = new HashSet<Integer>();\n\t\t\t\t\t\tmapSequenceID.put(item, sequenceIDs);\n\t\t\t\t\t}\n\t\t\t\t\t// add the sequence ID of the current sequence to the \n\t\t\t\t\t// set of sequences IDs of this item\n\t\t\t\t\tsequenceIDs.add(sequence.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mapSequenceID;\n\t}", "title": "" }, { "docid": "7c7d583a92bbeedd68e7b120db5d6fdb", "score": "0.43985265", "text": "public java.util.List<? extends google.maps.fleetengine.v1.VehicleMatchOrBuilder> \n getMatchesOrBuilderList() {\n if (matchesBuilder_ != null) {\n return matchesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(matches_);\n }\n }", "title": "" } ]
8cf1403fd3d2029bf16d8954ff124ead
Draw all of the cars.
[ { "docid": "e59e331f15e26edd5e6e1a841f5f4359", "score": "0.7942869", "text": "@Override\n\tpublic void draw(Graphics g)\n\t{\n\t\tfor(Car c : cars)\n\t\t{\n\t\t\tc.draw(g);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "8e6ec126a52175650cb195de59977a2c", "score": "0.8324163", "text": "private void drawAllCarParts() {\n for (PartObject part : carparts) {\n drawPart(part);\n }\n }", "title": "" }, { "docid": "582e865e5150157479b914b025b76ae9", "score": "0.7148881", "text": "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n for(GeneralVehicle car : carGraphicsMap.keySet()) {\n carGraphicsMap.get(car).drawYourself(g, car.getPosition());\n }\n }", "title": "" }, { "docid": "01aebf093ea9393bd81593d29c3ee7ca", "score": "0.67379", "text": "public void draw() \n {\n background(200, 200, 200);\n for (int i = 0; i < colony.length; i++)\n {\n colony[i].move();\n colony[i].show();\n }\n carrot();\n }", "title": "" }, { "docid": "e1a437bcec5ab61d9a540f5b59435fe1", "score": "0.673218", "text": "public void renderObjects() {\n for (Drawable canvasObject : canvasObjects) {\n canvasObject.drawMe(graphicsContext);\n }\n drawCanvasBorder();\n }", "title": "" }, { "docid": "5d1ac88626143a3b145d2474c2d7d75b", "score": "0.65636", "text": "private void drawRobots() {\n for(int i = 0; i < RC.getSize(); i++) {\n Robot r = RC.getRobot(i);\n StdDraw.picture(r.getX(), r.getY(), r.getFileName());\n }\n }", "title": "" }, { "docid": "12d79fa9af28d4cc5bb66a51c98d030c", "score": "0.65552557", "text": "public void draw() {\n\t\tfor (Point2D p: list) {\r\n\t\t\tp.draw();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dcc63e5c75ab2c9dc210beed7e964ddd", "score": "0.64604926", "text": "public void draw() {\n for (Point2D p : rbt) {\n p.draw();\n }\n }", "title": "" }, { "docid": "11686a5131943e3b2c60e1124808558c", "score": "0.644957", "text": "public void draw() {\n for (Point2D p : points) {\n p.draw();\n }\n }", "title": "" }, { "docid": "7bcb65ddd5dd552b62c22a2989e83cc0", "score": "0.6444698", "text": "public void draw() {\n\t\tIterator<Point2D> iter = pointSet.iterator();\n\t\tPoint2D p;\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.setPenRadius(.01);\n\t\twhile (iter.hasNext()) {\n\t\t\tp = iter.next();\n\t\t\tStdDraw.point(p.x(), p.y());\n\t\t}\n\t}", "title": "" }, { "docid": "62ffbb7a5a61edbc227461e1cf471227", "score": "0.6437729", "text": "public void draw() {\n\t\tfor (Point2D p : root)\n\t\t{\n\t\t\tp.draw();\n\t\t}\n\t}", "title": "" }, { "docid": "7cc921c35df2b51cee06390486ffdd68", "score": "0.64112014", "text": "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(PEN_RADIUS);\n for (Point2D point : pointSet) {\n StdDraw.point(point.x(), point.y());\n }\n }", "title": "" }, { "docid": "1abc4937fd062ea5ab22324db281745b", "score": "0.6405441", "text": "public void renderAll(GraphicsContext gc) {\n int size = gameEntities.size();\n for (int i = 0; i < size ; i++) {\n AbstractEntity entity = gameEntities.get(i);\n if (entity.isActive()) {\n entity.render(gc);\n }\n }\n for(Store i : storeItems){\n i.render(gc);\n }\n // render way points\n// gc.setFill(Color.BLUE);\n// for (int i = 0; i < wayPoints.length; i++) {\n// gc.fillOval(wayPoints[i].x, wayPoints[i].y, 7, 7);\n// }\n }", "title": "" }, { "docid": "804c06b92095d3b0a08def27d9fa5de9", "score": "0.6373668", "text": "@Override\r\n public void draw(final RGraphics grid) {\r\n for (RobotData r : getRobots())\r\n r.draw(grid);\r\n }", "title": "" }, { "docid": "184796f6dde9e005070630631d421bc1", "score": "0.6366907", "text": "@Override\r\n\tpublic void paintComponent(Graphics g) { // paints all components in the Arraylist of shapes\r\n\t\tg.clearRect(0, 0, getWidth() / 2, getHeight());\r\n\t\tsuper.paintComponents(g);\r\n\t\tArrayList<Shape> shapes = model.getShapes();\r\n\t\tIterator<Shape> iter = shapes.iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tShape s = iter.next();\r\n\t\t\ts.draw(g);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "269cff75a956f7ff24bc27b469b6f3ce", "score": "0.6365034", "text": "public void draw() {\n for (Point2D p: pointSet) {\n p.draw();\n }\n }", "title": "" }, { "docid": "a741365f5cfaa184f0c4b538e5eec1f7", "score": "0.6351426", "text": "public void draw() {\r\n // clear all\r\n getContext().clearRect(0, 0, getCanvasWidth(), getCanvasHeight());\r\n // go through the display list and draw them to the drawCanvas\r\n for (GameObject i : drawList) {\r\n if ((i.colour != currentColour) && (colourManage)) {\r\n currentColour = i.colour;\r\n drawCanvas.getContext2d().setFillStyle(currentColour);\r\n }\r\n i.draw(getContext());\r\n }\r\n\r\n // swap buffers\r\n if (doubleBuffer) {\r\n swapBuffers();\r\n }\r\n }", "title": "" }, { "docid": "e7ff234938d53e08f7149bd71856983c", "score": "0.6338336", "text": "public void draw() {\n for (Point2D p : data) {\n p.draw();\n }\n }", "title": "" }, { "docid": "f10171b1580e9bb2630893c982c3def0", "score": "0.63184375", "text": "public void drawAll(Graphics g) {\n\t\tfor (int i = 0; i < listSize; i++) {\n\t\t\tlist.get(i).draw(g);\n\t\t}\n\t}", "title": "" }, { "docid": "c10230592c471b023a4c8efce6cea624", "score": "0.63175935", "text": "public void draw() {\n for (Point2D q : pointTree) {\n q.draw();\n }\n }", "title": "" }, { "docid": "3e49e224f336d776e9087c94f06609ba", "score": "0.6304803", "text": "private void drawAll() {\n\t\t// make sure one call only request lock once, otherwise it will flash\n\t\t// drawMenuBackground();\n\t\tdrawMenuBlocks();\n\t}", "title": "" }, { "docid": "201090e83dc8f0eb27e3a00d4480008a", "score": "0.6290317", "text": "public void draw()\n {\n this.pic.draw();\n this.byLine.draw();\n }", "title": "" }, { "docid": "975441f162ea63bb3ace048c1accaa9a", "score": "0.6266166", "text": "private void paint() {\n backgroundImg();\n drawEdges();\n drawVertices();\n drawFruits();\n drawRobots();\n showTime(maxX, minY,minX,maxY);\n StdDraw.show();\n }", "title": "" }, { "docid": "5cc901c492d123f39de489df984ef3a6", "score": "0.625659", "text": "public void draw() \n {\n \tbackground(0,0,0);\n \tellipse(mouseX, mouseY, 50, 50);\n \tfor(int i = 0; i < colony.length; i++)\n \t{\n \t\tcolony[i].move();\n \t\tcolony[i].show();\n \t\tcolony[i].change();\n \t}\n }", "title": "" }, { "docid": "17d8e0cc3eb7cd156d45ab0b7456480c", "score": "0.6216973", "text": "public void draw() {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tfor (Point2D p : ps) {\r\n\t\t\t\tp.draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a0bef9be727225f8cdfed15baa53be8b", "score": "0.618461", "text": "private void drawAllWhenRoomChanges() {\r\n\t\tthis.drawParticleFilterCanvas();\r\n\t\tthis.controller.setRoomChanging(false);\r\n\t\tthis.canvasIsReady = true;\r\n\t}", "title": "" }, { "docid": "230ea30858b915377a19520f2b3d79af", "score": "0.61557144", "text": "public void draw(Graphics g) {\n\tfor (int i = 0; i < size(); i++) {\n\t GameObject obj = elementAt(i);\n\t obj.draw(g);\n\t}\n }", "title": "" }, { "docid": "ae600a48edcdc6116288e36b3e1aa778", "score": "0.61556536", "text": "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point2d : tree) {\n point2d.draw();\n //StdDraw.point(point2d.x(), point2d.y());\n }\n }", "title": "" }, { "docid": "36e96b685c6664265a04b290af819620", "score": "0.6138443", "text": "public DrawPanel(List<GeneralVehicle> carsList, int x, int y) {\n\n this.setDoubleBuffered(true);\n this.setPreferredSize(new Dimension(x, y));\n this.setBackground(Color.green);\n\n carGraphicsMap = initializeCarGraphicsMap(carsList);\n }", "title": "" }, { "docid": "337f27028de60a2a6c6ade05bd69f1f8", "score": "0.6124244", "text": "@Override\n\tprotected void drawAllGameObjects(Graphics2D g2d, Matrix3x3f view){\n\t\t//handler.draw(g2d, view);\n\t\tfor (GreenBullet bullet: projectiles){\n\t\t\tbullet.draw(g2d, view);\n\t\t\tg2d.setColor(Color.GREEN);\n\t\t}\n\t\tfor (Asteroid ast: asteroids){\n\t\t\tast.draw(g2d, view);\n\t\t}\n\t\tfor (ParticleExplosion ex: explosions){\n\t\t\tex.render(g2d, view);\n\t\t}\n\t\tfor (int i = 0; i < planets.length; i++){\n\t\t\tplanets[i].draw(g2d, view);\n\t\t}\n\t\tsun.draw(g2d, view);\n\t\t//will become more complicated later\n\t\tship.draw(g2d, view);\n\t\t\n\t}", "title": "" }, { "docid": "115f11e0519dfc78f3d75c9eee0f223d", "score": "0.61238295", "text": "public static void draw() {\r\n draw(iter);\r\n }", "title": "" }, { "docid": "a84e64d80130e0510a68b7eae59e91da", "score": "0.6089006", "text": "@Override\n\tpublic void draw(Graphics g) {\n\t\tsuper.draw(g);\n\t\tdrawVehicleShape(g, getSmartCarColor());\n\n\t}", "title": "" }, { "docid": "08e04b2503680bb3535cfa6dd3387d25", "score": "0.6041088", "text": "private void render()\n\t{\n\t\tbackground.draw();\t\t// draw the sky\n\n\t\t// draw everything in order\n\t\tfor (int i = 1; i <= 4; i++)\n\t\t\tfor (Shape shape : shapes)\n\t\t\t\tif (shape.visible && shape.displayOrder == i)\n\t\t\t\t{\n\t\t\t\t\tshape.draw();\n\t\t\t\t\tif (displayHitbox)\n\t\t\t\t\t\tshape.drawHitbox();\n\t\t\t\t}\n\n\t\t// draw the text\n\t\tuniFont.drawString(5 - translateX, 5 - translateY, \"GoldCount: \"\n\t\t\t\t+ player.goldCount);\n\t\tuniFont.drawString(5 - translateX + WIDTH / 3, 5 - translateY, \"Time: \"\n\t\t\t\t+ (getTime() - startTime) / 1000.);\n\t}", "title": "" }, { "docid": "0637626ef46425ce908b6659386c5ae9", "score": "0.6036593", "text": "public void drawEmAll( Graphics window )\n\t{\n for(Alien item : aliens) {\n item.draw(window);\n }\n\t}", "title": "" }, { "docid": "8b4db5d4e71e3fd8caf63eab2a00a643", "score": "0.6024729", "text": "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n for (VehicleImage i : images){\n g.drawImage(i.getImage(), (int) i.getX(), (int) i.getY(), null); // see javadoc for more info on the parameters\n }\n }", "title": "" }, { "docid": "85e07ed44f2a0a35f5a9b8d68c531955", "score": "0.6019693", "text": "public void drawAllSelectedCircles(Graphics g) {\r\n goodGuy.drawSelectedCircles(g);\r\n }", "title": "" }, { "docid": "84273dd398f3b6de13d747d942a55a30", "score": "0.6005138", "text": "protected void withdrawAll()\n {\n\n for (Enumeration en = coprescrs.elements(); en.hasMoreElements();) {\n IComponentResource copres = (IComponentResource) en.nextElement();\n String copcname = copres.getCodeBase();\n\n withdraw(copres);\n\n if (LOG.isInfoEnabled())\n LOG.info(\"stopped component: \" + copcname);\n }\n\n }", "title": "" }, { "docid": "5f464c917ed988a7dcc7d570b2311297", "score": "0.5991595", "text": "private void drawFruits() {\n List<String> fruits = game.getFruits();\n for(int i = 0; i < fruits.size(); i++) {\n Fruit f = new Fruit(fruits.get(i));\n FC.addFruit(f);\n StdDraw.picture(f.getX(), f.getY(), f.getFileName());\n }\n }", "title": "" }, { "docid": "9766d64ddb533544f4b37cb90d86760d", "score": "0.5990244", "text": "public void printCarpark() {\n for(ParkingSpace space : carpark) {\n System.out.println(space.toString());\n }\n }", "title": "" }, { "docid": "13b03574e8931183140c21e81092c112", "score": "0.5986052", "text": "public void draw() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2bcf81c68dba36847290c427afdf3e90", "score": "0.5963695", "text": "public void draw() {\n if (isEmpty())\n return;\n boolean dir = true; // true: vertical, false: horizontal\n drawBoundary();\n drawAlls(root, dir, 0, 0, 1, 1);\n }", "title": "" }, { "docid": "bfa8dd88642fb840e18d83bec313a348", "score": "0.596278", "text": "public void draw() {\n for (Point2D p : bst) {\n StdDraw.point(p.x(), p.y());\n }\n }", "title": "" }, { "docid": "88ab1afb517480a81e114fa7796ee710", "score": "0.5949266", "text": "private void paintCar(Graphics2D g) {\n\t\tif(game.getWorld().getCar2()!=null){\n\t\t\tGraphics2D graphics2d2 = (Graphics2D) g.create();\n\n\t\t\tgraphics2d2.rotate(game.getWorld().getCar2().getAngle(),\n\t\t\t\t\t(((game.getWorld().getCar2().getX3() - game.getWorld().getCar2().getX1()) / 3)\n\t\t\t\t\t\t\t+ game.getWorld().getCar2().getX1() + I),\n\t\t\t\t\t(((game.getWorld().getCar2().getY2() - game.getWorld().getCar2().getY1()) / 2)\n\t\t\t\t\t\t\t+ game.getWorld().getCar2().getY1() + J));\n\n\t\t\tgraphics2d2.drawImage(ImageProvider.getCar2(), (int) game.getWorld().getCar2().getX1() + I,\n\t\t\t\t\t(int) game.getWorld().getCar2().getY1() + J, null);\n\t\t}\n\n\t\tif(game.getWorld().getCar3()!=null){\n\t\t\tGraphics2D graphics2d3 = (Graphics2D) g.create();\n\n\t\t\tgraphics2d3.rotate(game.getWorld().getCar3().getAngle(),\n\t\t\t\t\t(((game.getWorld().getCar3().getX3() - game.getWorld().getCar3().getX1()) / 3)\n\t\t\t\t\t\t\t+ game.getWorld().getCar3().getX1() + I),\n\t\t\t\t\t(((game.getWorld().getCar3().getY2() - game.getWorld().getCar3().getY1()) / 2)\n\t\t\t\t\t\t\t+ game.getWorld().getCar3().getY1() + J));\n\n\t\t\tgraphics2d3.drawImage(ImageProvider.getCar3(), (int) game.getWorld().getCar3().getX1() + I,\n\t\t\t\t\t(int) game.getWorld().getCar3().getY1() + J, null);\n\t\t}\n\n\t\tif(game.getWorld().getCar4()!=null){\n\t\t\tGraphics2D graphics2d4 = (Graphics2D) g.create();\n\n\t\t\tgraphics2d4.rotate(game.getWorld().getCar4().getAngle(),\n\t\t\t\t\t(((game.getWorld().getCar4().getX3() - game.getWorld().getCar4().getX1()) / 3)\n\t\t\t\t\t\t\t+ game.getWorld().getCar4().getX1() + I),\n\t\t\t\t\t(((game.getWorld().getCar4().getY2() - game.getWorld().getCar4().getY1()) / 2)\n\t\t\t\t\t\t\t+ game.getWorld().getCar4().getY1() + J));\n\n\t\t\tgraphics2d4.drawImage(ImageProvider.getCar4(), (int) game.getWorld().getCar4().getX1() + I,\n\t\t\t\t\t(int) game.getWorld().getCar4().getY1() + J, null);\n\n\t\t}\n\t\t\n\t\t//stampo la macchina del giocatore\n\t\tGraphics2D graphics2d = (Graphics2D) g.create();\n\n\t\tgraphics2d.rotate(game.getWorld().getCar().getAngle(),\n\t\t\t\t(((game.getWorld().getCar().getX3() - game.getWorld().getCar().getX1()) / 3)\n\t\t\t\t\t\t+ game.getWorld().getCar().getX1() + I),\n\t\t\t\t(((game.getWorld().getCar().getY2() - game.getWorld().getCar().getY1()) / 2)\n\t\t\t\t\t\t+ game.getWorld().getCar().getY1() + J));\n\n\t\tgraphics2d.drawImage(ImageProvider.getCar(), (int) game.getWorld().getCar().getX1() + I,\n\t\t\t\t(int) game.getWorld().getCar().getY1() + J, null);\n\t}", "title": "" }, { "docid": "9ecdc3922de45eb8e6da41ddfa514df6", "score": "0.5942936", "text": "private void render() {\n renderer.clear(Renderer.COLOR_BG);\n\n for (var coin: coins) {\n renderer.renderBxObject(coin, frame);\n }\n renderer.renderBxObject(neko, frame);\n\n mainWindow.render(frame, fps);\n }", "title": "" }, { "docid": "018455563d1ee9ea99ac6fbb0cc284a5", "score": "0.59370947", "text": "public void drawAllOn(DrawSurface d) {\n List<Sprite> sprites = new ArrayList<Sprite>(this.listOfSprite);\n for (Sprite sprite: sprites) {\n sprite.drawOn(d);\n }\n }", "title": "" }, { "docid": "72bdd9f911ba9c226aafecabd1cfdca6", "score": "0.59321845", "text": "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle((int)xPosition, (int)yPosition, diameter);\n }", "title": "" }, { "docid": "46c044ab9d5795768d2e5f0364aa6361", "score": "0.5928013", "text": "private void render() \n\t{\n\t\t// Draw everything in order\n\t\tfor ( int i = 1; i <= 4; i++ ) \n\t\t{\n\t\t\tfor ( Shape shape : shapes ) \n\t\t\t{\n\t\t\t\tif ( shape.visible && shape.displayOrder == i && shape != null ) \n\t\t\t\t{\n\t\t\t\t\tshape.draw();\n\t\t\t\t\tif ( displayHitbox ) \n\t\t\t\t\t\tshape.drawHitbox();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t// Draw puff of landing on the ground on top\n\t\tif ( ground != null )\n\t\t{\n\t\t\tground.draw( player );\n\t\t}\n\t\t\n\t\t// Draw the wall jump ani on top\n\t\tif ( wall != null )\n\t\t{\n\t\t\twall.draw( player );\n\t\t}\n\t\t*/\n\t\t// Draw the player on top TODO: look into changing this display order to 3-d it up\n\t\tif( !thePlayer.winning )\n\t\t\tthePlayer.draw();\n\t}", "title": "" }, { "docid": "2c2d9aa89e05cd271b552ea38663806c", "score": "0.59232193", "text": "@Override\n public void draw() {\n // Set the color used for the background of the Processing window\n this.background(245, 255, 250); // Set the mint cream color background\n this.image(backgroundImage, this.width / 2, this.height / 2); // draw the \n // background image at the center of the display window\n // traverse the tigers array and draw each stored tiger\n tigerButton.draw();\n deerButton.draw();\n clearButton.draw();\n for (int i = 0; i < listGUI.size(); i++)\n listGUI.get(i).draw();\n }", "title": "" }, { "docid": "99540caa9d851f564ed64242240952fd", "score": "0.5918581", "text": "private void drawCarFrame(double x, double y, Color color) {\n double x0 = x + CONNECTOR;\n double y0 = y - CAR_BASELINE;\n double top = y0 - CAR_HEIGHT;\n this.trainCar.add(new Line(x, y0, x + CAR_WIDTH + 2 * CONNECTOR, y0));\n drawWheel(x0 + WHEEL_INSET, y - WHEEL_RADIUS);\n drawWheel(x0 + CAR_WIDTH - WHEEL_INSET, y - WHEEL_RADIUS);\n Rectangle r = new Rectangle(x0, top, CAR_WIDTH, CAR_HEIGHT);\n r.setFilled(true);\n r.setFillColor(color);\n this.trainCar.add(r);\n }", "title": "" }, { "docid": "3b156012fb40ecb83d0af0f9b240975b", "score": "0.59124005", "text": "public void updateView() {\n if (!size.equals(getSize())) {\n size = getSize();\n carParkImage = createImage(size.width, size.height);\n }\n Graphics graphics = carParkImage.getGraphics();\n for(int floor = 0; floor < getNumberOfFloors(); floor++) {\n for(int row = 0; row < getNumberOfRows(); row++) {\n \t//Maak een temporary int aan voor de plaatsen\n \tint tempNumberOfPlaces;\n \t//Kijk of 'floor' hoger is als 0. Zoja, maak een plaats minder.\n \t//Dit is om te verkomen dat er meer dan 500 plaatsen worden gemaakt.\n \tif(floor > 0) {\n \t\ttempNumberOfPlaces = getNumberOfPlaces() - 1;\n \t}\n \telse {\n \t\ttempNumberOfPlaces = getNumberOfPlaces();\n \t}\n \tfor(int place = 0; place < tempNumberOfPlaces; place++) {\n \t\tColor color = null;\n \t\tLocation location = new Location(floor, row, place);\n Car car = getCarAt(location);\n if(car == null) {\n \t\tswitch (location.getType()) {\n case 0: color = new Color(196, 213, 239);\n break;\n case 1: color = new Color(255, 216, 214);\n break;\n \t\t}\n }\n else {\n \tcolor = car.getColor();\n }\n \n drawPlace(graphics, location, color);\n \t}\n }\n }\n repaint();\n }", "title": "" }, { "docid": "ce6ddb1e0f0317ceaaf447c3b6c58903", "score": "0.5911461", "text": "public void run() {\n\t\tDrawHead();\n\t\tDrawEyes();\n\t\tDrawMouth();\n\t}", "title": "" }, { "docid": "6dc66f5152628cb053d494b670e16404", "score": "0.59025645", "text": "private void renderShapes() {\n\t\tcam.update();\r\n\r\n\t\tsr.setProjectionMatrix(cam.combined);\r\n\t\tsr.setColor(Color.BLUE);\r\n\t\t\r\n\t\tsr.begin();\r\n\t\tem.renderShapes(sr);\r\n\r\n\t\tsr.end();\r\n\t\t//cam.setToOrtho(true, cam.viewportWidth, cam.viewportHeight * 2);\r\n\t}", "title": "" }, { "docid": "88abfe5db2482f558b7cec2f03e13ff3", "score": "0.59020275", "text": "public void paintChildren(GraphicsContext g)\n {\n for (int i = 0; i < size(); i++)\n {\n get(i).paint(g);\n } \n }", "title": "" }, { "docid": "7904474fa0cfaffd1d9c2071b2f884f8", "score": "0.5899419", "text": "public void draw()\n\t{\n\t\tfill();\n\t}", "title": "" }, { "docid": "bdff9689e9510f65b70af117e67d1f0d", "score": "0.5895907", "text": "public void\tDrawCards()\n\t{\n\t\tint i;\n\n\t\tfor (i = 0; i < 5; i++)\n\t\t{\n\t\t\tif (!aryHold[i])\n\t\t\t\taryHand[i] = deck.TopDeck();\n\n\t\t\taryHold[i] = false;\n\t\t}\n\t}", "title": "" }, { "docid": "ae0945e1078a3f32275c9bf8cb9faaf9", "score": "0.5886315", "text": "public void driveCar() {\r\n\t\tint noOfDrivers = 2;\r\n\t\tSystem.out.println(\"drive car\"); // syso cntrl+space\r\n\t\tSystem.out.println(noOfDrivers);\r\n\t\tSystem.out.println(bodyColor);\r\n\t}", "title": "" }, { "docid": "db05206329553d04c9e557c0800bfc95", "score": "0.5885572", "text": "public void draw(Graphics2D g){\n // Don't draw a truck that is currently waiting in a warehouse\n if(paused){\n return;\n }\n // Lets calculate the various points from which we will draw our rectangles.\n // We are centered on the currentLocation: so we draw from a bit above it\n double verticalCoordinate = currentLocation.yPos - Configuration.objectSize/2;\n \n // The horisontal center is, once again, equal to the position less the length of the object\n // But we need to account for the length varying, with different sized trucks\n double length = Configuration.objectSize * currentCargo.length;\n double horisontalCoordinate = currentLocation.xPos - length / 2;\n \n // Now, we produce the rectangles that make up the truck, \n // adding them to the graphics object\n for(int i = 0; i < currentCargo.length; i++){\n // build the rectangle. We use a high-precision Rectangle2D.Double, mostly because I don't\n // want to write casts from our double-based points into their integer-based coradinates\n Rectangle2D rect = new Rectangle2D.Double(horisontalCoordinate,verticalCoordinate,\n Configuration.objectSize,Configuration.objectSize);\n // now set the color the next object will be, based on whether or not this unit is full\n if(currentCargo[i] == null){\n g.setColor(Configuration.emptyColor);\n }\n else{\n g.setColor(Configuration.filledColor);\n }\n \n // now draw!\n g.fill(rect);\n \n // increment coordinate for next loop\n horisontalCoordinate += Configuration.objectSize;\n }\n }", "title": "" }, { "docid": "c45512b6660cc08b1b9280d293913d86", "score": "0.58817863", "text": "public void draw(GameComponent canvas) { \r\n\t\t\r\n\t\twinhole.draw(this, canvas);\r\n\r\n\t\tIterator<Hole> itH = traps.iterator();\r\n\t\twhile (itH.hasNext()) {Hole hole = itH.next(); hole.draw(this, canvas);}\r\n\r\n\t\tIterator<Wall> itW = walls.iterator();\r\n\t\twhile (itW.hasNext()) {Wall wall = itW.next(); wall.draw(this, canvas);}\r\n\r\n\t\tgem.draw(this, canvas);\r\n\t}", "title": "" }, { "docid": "06bce55b583af47cc517c09c444a7ed5", "score": "0.5861899", "text": "public void draw() { \n PennDraw.picture(0.0, 0.0, \"starfield.jpg\");\n for (int i = 0; i < bodies.length; i++) {\n bodies[i].draw();\n }\n }", "title": "" }, { "docid": "89966d10a1067a59d5a3ced0f38a23a3", "score": "0.5858768", "text": "public void draw ()\r\n {\r\n\t//local colour variable for the tree trunk\r\n\tColor darkBrown = new Color (115, 52, 18);\r\n\t//local colour variable for the forest floor\r\n\tColor lightBrown = new Color (166, 117, 53);\r\n\t//local colour variable for the leaves on the trees\r\n\tColor green = new Color (43, 138, 19);\r\n\t//local colour variable for the sky\r\n\tColor skyBlue = new Color (177, 240, 233);\r\n\t//local colour variable for the small rock\r\n\tColor darkGrey = new Color (142, 148, 147);\r\n\t//local colour variable for the large rock\r\n\tColor darkerGrey = new Color (73, 82, 76);\r\n\t//local colour variable for the clouds\r\n\tColor lightGrey = new Color (223, 237, 228);\r\n\t//local colour variable for the leaves on the trees\r\n\tColor lightGreen = new Color (129, 232, 60);\r\n\t//local colour variable for the monkey's features\r\n\tColor monkeyBeige = new Color (255, 188, 125);\r\n\t//local colour variable for the monkey\r\n\tColor monkeyBrown = new Color (145, 48, 0);\r\n\t//local colour variable for the sun\r\n\tColor yellow = new Color (255, 247, 18);\r\n\t//local colour variable for the berries\r\n\tColor red = new Color (201, 10, 26);\r\n\r\n\t//loop to create the sky\r\n\tc.setColor (skyBlue);\r\n\tfor (int i = 0 ; i < 320 ; i++)\r\n\t{\r\n\t c.drawRect (i, i, 640 - (i * 2), 440 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the clouds\r\n\tc.setColor (lightGrey);\r\n\tfor (int i = 0 ; i <= 50 ; i++)\r\n\t{\r\n\t c.drawRoundRect (100 + i, 30 + i, 100 - (i * 2), 70 - (i * 2), 20, 20);\r\n\t c.drawRoundRect (380 + i, 50 + i, 100 - (i * 2), 70 - (i * 2), 20, 20);\r\n\t}\r\n\r\n\t//loop to create the clouds\r\n\tfor (int i = 0 ; i <= 30 ; i++)\r\n\t{\r\n\t c.drawRoundRect (180 + i, 40 + i, 60 - (i * 2), 40 - (i * 2), 20, 20);\r\n\t c.drawRoundRect (360 + i, 40 + i, 60 - (i * 2), 40 - (i * 2), 20, 20);\r\n\t c.drawRoundRect (70 + i, 70 + i, 70 - (i * 2), 40 - (i * 2), 20, 20);\r\n\t c.drawRoundRect (430 + i, 90 + i, 80 - (i * 2), 40 - (i * 2), 20, 20);\r\n\t}\r\n\r\n\t//loop to create the ground\r\n\tc.setColor (lightBrown);\r\n\tfor (int i = 0 ; i < 160 ; i++)\r\n\t{\r\n\t c.drawRect (i, 380 + i, 640 - (i * 2), 120 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the tree leaves\r\n\tc.setColor (green);\r\n\tfor (int i = 0 ; i <= 75 ; i++)\r\n\t{\r\n\t c.drawOval (15 + i, 120 + i, 150 - (i * 2), 180 - (i * 2));\r\n\t c.drawOval (255 + i, 120 + i, 150 - (i * 2), 180 - (i * 2));\r\n\t c.drawOval (475 + i, 120 + i, 150 - (i * 2), 180 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the tree leaves\r\n\tc.setColor (lightGreen);\r\n\tfor (int i = 0 ; i <= 75 ; i++)\r\n\t{\r\n\t c.drawOval (135 + i, 100 + i, 150 - (i * 2), 180 - (i * 2));\r\n\t c.drawOval (375 + i, 100 + i, 150 - (i * 2), 180 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the tree trunks\r\n\tc.setColor (darkBrown);\r\n\tfor (int i = 0 ; i < 40 ; i++)\r\n\t{\r\n\t c.drawLine (80 + (i / 2), 260, 70 + i, 380);\r\n\t c.drawLine (200 + (i / 2), 240, 190 + i, 380);\r\n\t c.drawLine (320 + (i / 2), 260, 310 + i, 380);\r\n\t c.drawLine (440 + (i / 2), 240, 430 + i, 380);\r\n\t c.drawLine (540 + (i / 2), 260, 530 + i, 380);\r\n\t}\r\n\r\n\t//loop to create the tree stump\r\n\tfor (int i = 0 ; i < 30 ; i++)\r\n\t{\r\n\t c.drawLine (313 + (i / 2), 460, 305 + i, 495);\r\n\t}\r\n\r\n\t//loop to create the big rock\r\n\tc.setColor (darkerGrey);\r\n\tfor (int i = 0 ; i <= 29 ; i++)\r\n\t{\r\n\t c.drawArc (30 + i, 340 + i, 60 - (i * 2), 80 - (i * 2), 0, 180);\r\n\t}\r\n\r\n\t//loop to create the small rock\r\n\tc.setColor (darkGrey);\r\n\tfor (int i = 0 ; i <= 14 ; i++)\r\n\t{\r\n\t c.drawArc (68 + i, 359 + i, 30 - (i * 2), 45 - (i * 2), 0, 180);\r\n\t}\r\n\r\n\t//loop to create the sun\r\n\tc.setColor (yellow);\r\n\tfor (int i = 0 ; i <= 100 ; i++)\r\n\t{\r\n\t c.drawOval (540 + i, -100 + i, 200 - (i * 2), 200 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the bush leaves\r\n\tc.setColor (green);\r\n\tfor (int i = 0 ; i < 20 ; i++)\r\n\t{\r\n\t c.drawOval (490 + i, 340 + i, 40 - (i * 2), 40 - (i * 2));\r\n\t c.drawOval (510 + i, 325 + i, 40 - (i * 2), 40 - (i * 2));\r\n\t c.drawOval (540 + i, 315 + i, 40 - (i * 2), 40 - (i * 2));\r\n\t c.drawOval (570 + i, 325 + i, 40 - (i * 2), 40 - (i * 2));\r\n\t c.drawOval (590 + i, 340 + i, 40 - (i * 2), 40 - (i * 2));\r\n\t c.drawRect (510 + i, 350 + i, 100 - (i * 2), 30 - (i * 2));\r\n\t}\r\n\r\n\t//loop to create the bush berries\r\n\tc.setColor (red);\r\n\tfor (int i = 0 ; i < 5 ; i++)\r\n\t{\r\n\t c.drawOval (510 + i, 360 + i, 10 - (i * 2), 10 - (i * 2));\r\n\t c.drawOval (530 + i, 340 + i, 10 - (i * 2), 10 - (i * 2));\r\n\t c.drawOval (580 + i, 340 + i, 10 - (i * 2), 10 - (i * 2));\r\n\t c.drawOval (560 + i, 360 + i, 10 - (i * 2), 10 - (i * 2));\r\n\t c.drawOval (605 + i, 360 + i, 10 - (i * 2), 10 - (i * 2));\r\n\t}\r\n\r\n\t//loopa to create the monkey\r\n\tc.setColor (monkeyBrown);\r\n\tfor (int i = 0 ; i < 30 ; i++)\r\n\t{\r\n\t c.drawOval (420 + i, 425 + i, 30 - (i * 2), 50 - (i * 2)); //body\r\n\t c.drawOval (420 + i, 400 + i, 30 - (i * 2), 30 - (i * 2)); //head\r\n\t c.drawOval (415 + (i / 3), 400 + (i / 3), 10 - (i / 3 * 2), 10 - (i / 3 * 2)); //left ear\r\n\t c.drawOval (445 + (i / 3), 400 + (i / 3), 10 - (i / 3 * 2), 10 - (i / 3 * 2)); //right ear\r\n\t c.drawRect (450 + (i / 2), 437 + (i / 2), 13 - i, 7 - i); //right arm\r\n\t c.drawRect (457 + (i / 2), 437 + (i / 2), 7 - i, 20 - i);\r\n\t c.drawRect (407 + (i / 2), 437 + (i / 2), 13 - i, 7 - i); //left arm\r\n\t c.drawRect (407 + (i / 2), 437 + (i / 2), 7 - i, 20 - i);\r\n\t c.drawRoundRect (420 + (i / 3), 467 + i, 12 - (i / 3 * 2), 30 - (i * 2), 10, 10); //left leg\r\n\t c.drawRoundRect (438 + (i / 3), 467 + i, 12 - (i / 3 * 2), 30 - (i * 2), 10, 10); //right leg\r\n\t}\r\n\r\n\tc.setColor (monkeyBeige);\r\n\tfor (int i = 0 ; i < 30 ; i++)\r\n\t{\r\n\t c.drawOval (420 + i, 405 + i, 30 - (i * 2), 25 - (i * 2)); //face\r\n\t c.drawOval (427 + i, 435 + i, 16 - (i * 2), 30 - (i * 2)); //inner body\r\n\t}\r\n\r\n\tc.setColor (Color.black);\r\n\tfor (int i = 0 ; i <= 2 ; i++)\r\n\t{\r\n\t c.drawOval (428 + i, 415 + i, 4 - (i * 2), 4 - (i * 2)); //left eye\r\n\t c.drawOval (438 + i, 415 + i, 4 - (i * 2), 4 - (i * 2)); //right eye\r\n\t c.drawOval (434 + (i / 2), 420 + (i / 2), 2 - i, 2 - i); //nose\r\n\t}\r\n\r\n\tc.drawLine (430, 425, 440, 425); //mouth\r\n\r\n\t//loop to create the speech bubble\r\n\tc.setColor (Color.white);\r\n\tfor (int i = 0 ; i < 43 ; i++)\r\n\t{\r\n\t c.drawRect (470 + i, 388 + i, 85 - (i * 2), 32 - (i * 2));\r\n\t c.drawLine (460, 420, 470, 420 - (i / 4));\r\n\t}\r\n\r\n\t//displays the text\r\n\tc.setColor (Color.black);\r\n\tc.drawString (\"Where's my tree?\", 472, 402);\r\n\tc.drawString (\"I lost my home...\", 472, 413);\r\n }", "title": "" }, { "docid": "400f4f0d86786db1ec75b4c4a37407f3", "score": "0.5857379", "text": "private void redraw() {\n\n for (int i = 0; i < pl.length; i++) {\n pl[i].setTranslateX(planet[i].getXPosition() / DRAW_CONSTANT - centre.getXPosition() / DRAW_CONSTANT);\n pl[i].setTranslateY(planet[i].getYPosition() / DRAW_CONSTANT - centre.getYPosition() / DRAW_CONSTANT);\n pl[i].setTranslateZ(planet[i].getZPosition() / DRAW_CONSTANT - centre.getZPosition() / DRAW_CONSTANT);\n\n }\n\n }", "title": "" }, { "docid": "6ef8152421fe613fbf7459e3dbb15a9d", "score": "0.5851536", "text": "public void draw() {\n\t\tdraw(root, true);\n\t}", "title": "" }, { "docid": "1fbb1569d1792dd5e9c995f84f13ab73", "score": "0.58493966", "text": "private void draw() {\n gsm.draw(g);\n }", "title": "" }, { "docid": "2e76d4f589cb527ed0c3857465ee0253", "score": "0.5842853", "text": "private void render() {\n\t\tGraphics g = strategy.getDrawGraphics();\n\t\tg.clearRect(0, 0, width, height);\n\t\t\n\t\t// Tell every unit to draw here.\n\t\troom.paintComponent(g);\n\t\t\n\t\t// Show what we've drawn\n\t\tstrategy.show();\n\t\t\n\t\t// Drop the graphics resources we don't need anymore.\n\t\tg.dispose();\n\t}", "title": "" }, { "docid": "e25bdefeb2e7664873b722cdc0df1801", "score": "0.58308923", "text": "public void draw() {\r\n \r\n if(w.arcs.size() == 0){\r\n d.render();\r\n }\r\n else {\r\n w.render();\r\n }\r\n}", "title": "" }, { "docid": "5e8c3661b4a0277bb100bb2a37421bcb", "score": "0.58278596", "text": "@Override\r\n\tpublic void onDraw(Canvas canvas) {\r\n\t\t// draw the background\r\n\t\tif(canvas == null)\r\n\t\t\treturn;\r\n\t\tcanvas.drawColor(backgroundColor);\r\n\r\n\t\t// draw the normal items\r\n\t\tfor (Arc arc : arcs) {\r\n\t\t\tarc.draw(canvas);\r\n\t\t}\r\n\t\tfor (Transition transition : transitions) {\r\n\t\t\ttransition.draw(canvas);\r\n\t\t\ttransition.setColor(transition.canFire());\r\n\t\t}\r\n\r\n\t\tfor (Place place : places) {\r\n\t\t\tplace.draw(canvas);\r\n\t\t}\r\n\r\n\t\t// draw current graphic last..\r\n\t\tif (currentTransition != null)\r\n\t\t\tcurrentTransition.draw(canvas);\r\n\r\n\t\tif (currentPlace != null)\r\n\t\t\tcurrentPlace.draw(canvas);\r\n\r\n\t\tif (currentArc != null)\r\n\t\t\tcurrentArc.draw(canvas);\r\n\r\n\t\t//for zooming and panning\r\n//\t canvas.save();\r\n//\t canvas.translate(mPosX, mPosY);\r\n//\t mIcon.draw(canvas);\r\n//\t canvas.restore();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "821c10ce795b81f277a78eed8e44d9b5", "score": "0.58219135", "text": "public void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "ddc980a73a116eae0600f2287e894c03", "score": "0.58057976", "text": "public OOPDraw() {\n\t\tshapeList = new HashSet<AbstractShape>();\n\t\tinitGUI();\n\t}", "title": "" }, { "docid": "9e80eb6c2d89b6493c31a8fa7e16d5c1", "score": "0.5803746", "text": "void show() {\n fill(255,255,255); ellipse(rabX, rabY,20,20); //// ball 1\n fill(50,70,255); ellipse( cornX, cornY,20,20); //ball 2\n fill( 70, 60,200); ellipse( foxX,foxY, 20,20); //ball 3\n}", "title": "" }, { "docid": "4ec5be3a0c40419d837c5cf78d8df674", "score": "0.57990724", "text": "public void drawCards(int num) {\r\n List<Card> newCards = CardManager.getInstance().drawCards(num);\r\n int start = cards.size();\r\n\r\n for (Card c : newCards) {\r\n start++;\r\n c.setOwner(this);\r\n cards.put(start,c);\r\n }\r\n }", "title": "" }, { "docid": "1e03cc98fe54ea37f1748eae90b0f057", "score": "0.5777966", "text": "public void draw() {\n\n\t\t\t//delete past lines\n\n\t\t\tgetChildren().clear();\n\t\t\tdouble x = width * 0.30;\n\t\t\tdouble y = height * 0.70;\n\t\t\tdraw(x, y, order, lastSize);\n\t\t}", "title": "" }, { "docid": "a465d40c6fbcfa8597b208d35353063f", "score": "0.5770121", "text": "@Override\n\tpublic void Draw() {\n\t\tSystem.out.println(\"draw circle\");\n\t\t\n\t}", "title": "" }, { "docid": "794e82a95fffeca67e93740567893763", "score": "0.5769929", "text": "public static void mainDraw(Graphics graphics){\n for (int i = 1; i < 15; i++) {\n graphics.setColor(Color.GREEN);\n graphics.drawLine(5,40+(HEIGHT-40)/15*i,WIDTH/15*i, HEIGHT-5);\n }\n for (int i = 1; i < 15; i++) {\n graphics.setColor(new Color(128,0,128));\n graphics.drawLine(40+(WIDTH-40)/15*i,5,WIDTH-5, HEIGHT/15*i);\n }\n\n }", "title": "" }, { "docid": "8bb81c078c33c9ec8ed988fea41598cf", "score": "0.57587475", "text": "public void draw() {\n\n if (mainBody != null) {\n\n drawMainBody();\n drawExtraParts();\n drawCannon();\n drawEngine();\n }\n\n }", "title": "" }, { "docid": "1fbd4b443db5ceb332db2413fae9764b", "score": "0.57583773", "text": "void displayAllVehicles();", "title": "" }, { "docid": "66c501934a3da5991d89567de5b9e515", "score": "0.5756773", "text": "public void drawGame() {\n reducedMap = new Map(reduceMap(currentMap));\n\n GraphicsContext gc = canvas.getGraphicsContext2D();\n //draw interface\n drawMenu(this.pane);\n\n // Clear canvas\n Image ground2 = new Image(\"images/bay-campus-aerial-m-(1).png\");\n gc.drawImage(ground2, 0, 0, canvas.getWidth(), canvas.getHeight());\n gc.strokeRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n setSeason(currentMap.getCell(0, 0));\n\n //render each Cell\n for (int y = 0; y < reducedMap.getSizeY(); y++) {\n for (int x = 0; x < reducedMap.getSizeX(); x++) {\n drawCurrent(gc, x, y);\n }\n }\n }", "title": "" }, { "docid": "1d220021d49765a7703f4275621d6f8c", "score": "0.57541865", "text": "public void render(Graphics g){\n for(GameObject object : objects){\n object.render(g);\n }\n }", "title": "" }, { "docid": "00884cdb02a022c9e4509abb35bef856", "score": "0.5747346", "text": "public void paintComponent(Graphics gc) {\n\t\t\tsuper.paintComponent(gc); // default panel drawing (borders, nothing inside yet)\n\t\t\t// draw each square in the panel\n\t\t\tfor (Square square: squareList) {\n\t\t\t\tsquare.paint(gc); // tell the square to display itself in the current graphics context\n\t\t\t} // end for\n\t\t}", "title": "" }, { "docid": "2986244bc5cc9cc04deeec9d9af03e1b", "score": "0.57470804", "text": "public void drawLines() {\n\t// optional\n\t/*SortedSet<Line> lineSet = getLinesFast();\n\tfor (Line l : lineSet) {\n\t\tl.first().drawTo(l.last());\n\t}*/\n\t}", "title": "" }, { "docid": "e32e1432e62d3d38b9f38390a1f1ec38", "score": "0.5745852", "text": "public void drawBall(Canvas canvas) {\n\n\t\tsizeRectangle = getWidth() / XNUM;\n\t\t//canvas.drawColor(Color.WHITE);\n\t\tcanvas.drawColor(0xffe6f0ff);\n\t\tdrawBackground(canvas);\n\n\t\tsynchronized (ball) {\n\t\t\tfor (int i = 0; i < XNUM; i++) {\n\t\t\t\tfor (int j = 0; j < YNUM; j++) {\n\t\t\t\t\tif (ball[i][j] != null) {\n\t\t\t\t\t\tball[i][j].drawBall(canvas, sizeRectangle);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnextBall(canvas);\n\t\tcreateButton(canvas);\n\t}", "title": "" }, { "docid": "6dca8e29f34f1468f691e2af683d91a8", "score": "0.5742112", "text": "public void paint(final DrawingCanvas canvas) {\n \tfor (GraphicPrimitive p : this.graphicPrimitives) {\n \t\tcanvas.add(p);\n \t}\n }", "title": "" }, { "docid": "fc9a10d70996640be849395b18806be2", "score": "0.573066", "text": "public void initAllCarParts() {\n\n model = new DrawModel(mActivityContext, R.raw.hood_window);\n carparts = model.getAllCarParts();\n partsHashMap = model.getPartsHashMap();\n }", "title": "" }, { "docid": "831f79d3ad65d9484bdf43216207e059", "score": "0.57163596", "text": "public void draw() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "71bde4518a5295db2ab3b4faf5cf8391", "score": "0.5710273", "text": "public void drawAllOn(DrawSurface d) {\n for (Sprite s : sprites) {\n s.drawOn(d);\n }\n }", "title": "" }, { "docid": "d8be7e875f85ec5fe0637139504e9289", "score": "0.5708214", "text": "public void run() {\n\t\tdouble inchToPix = 72;\n\t\t\n\t\t/* Set radii and center coords */\n\t\tdouble outerRad = 1*inchToPix;\n\t\tdouble middleRad = 0.65*inchToPix;\n\t\tdouble innerRad = 0.3*inchToPix;\n\t\tdouble centerX = getWidth()/2;\n\t\tdouble centerY = getHeight()/2;\n\t\t\n\t\t/* Draw the Ovals */\n\t\tGOval outerOval = new GOval(centerX - outerRad/2, centerY - outerRad/2 , outerRad, outerRad);\n\t\tGOval middleOval = new GOval(centerX - middleRad/2, centerY - middleRad/2, middleRad, middleRad);\n\t\tGOval innerOval = new GOval(centerX - innerRad/2, centerY - innerRad/2, innerRad, innerRad);\n\t\t\n\t\t/* Set Colors of outer and inner circle */\n\t\touterOval.setColor(Color.RED);\n\t\tinnerOval.setColor(Color.RED);\n\t\t\n\t\t/* Add to canvas */\n\t\tadd(outerOval);\n\t\tadd(middleOval);\n\t\tadd(innerOval);\n\t}", "title": "" }, { "docid": "be93763ec86ad042b70e2f3c6e89d536", "score": "0.570776", "text": "public void drawAllOn(DrawSurface surface) {\r\n for (int i = 0; i < this.spriteCollection.size(); i++) {\r\n Sprite s = this.spriteCollection.get(i);\r\n s.drawOn(surface);\r\n }\r\n }", "title": "" }, { "docid": "a366637bf2809b7764a4179ef86c491c", "score": "0.5706633", "text": "private void drawIcons(Canvas canvas){\n\t\tif(booths.isClosed()) return;\n\t\tbooths.moveToPosition(-1);\n\t\twhile(booths.moveToNext()){\n\t\t\tlong x = booths.getLong(booths.getColumnIndex(DBTables.booth.LocationX));\n\t\t\tlong y = booths.getLong(booths.getColumnIndex(DBTables.booth.LocationY));\n\t\t\tif(showRecent){\n\t\t\t\tmPaint.setColor(Color.RED);\n Log.i(\"current Position\",recentX+\" \"+recentY);\n\t\t\t\tcanvas.drawCircle(recentX, recentY, 22, mPaint);\n\t\t\t\tmPaint.setColor(Color.BLACK);\n\t\t\t\tcanvas.drawCircle(recentX, recentY, 20 ,mPaint);\n\t\t\t}\n\t\t\tif(booths.getLong(booths.getColumnIndex(DBTables.booth.RECOMMENDATION)) != 0){\n\t\t\t\tmPaint.setColor(0xFFFFD541);\n\t\t\t\tcanvas.drawCircle(x + 20, y + 20, 10, mPaint);\n\t\t\t}\n\n\t\t\tif(booths.getLong(booths.getColumnIndex(DBTables.booth.POPULAR)) != 0){\n\t\t\t\tmPaint.setColor(0xFFFF0000);\n\t\t\t\tcanvas.drawCircle(x + 45, y + 20, 10, mPaint);\n\t\t\t}\n\n\t\t\tif(booths.getLong(booths.getColumnIndex(DBTables.booth.NumOfVisit)) != 0){\n\t\t\t\tmPaint.setColor(0xFF2CD100);\n\t\t\t\tcanvas.drawCircle(x + 70, y + 20, 10, mPaint);\n\t\t\t}\n\n\t\t\tif(booths.getLong(booths.getColumnIndex(DBTables.booth.EVENT)) != 0){\n\t\t\t\tmPaint.setColor(0xFF20EAE8);\n\t\t\t\tcanvas.drawCircle(x + 95, y + 20, 10, mPaint);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2d432dd2705c8f594975ec03399bcc82", "score": "0.57062364", "text": "public void render()\n {\n ui.fill(253,94,83);\n ui.ellipse(x, y, radius, diameter);\n\n ui.fill(250, 90, 80);\n ui.ellipse(x+60, y-180, 50, 50);\n\n ui.fill(250, 90, 80);\n ui.ellipse(x-150, y+100, 100, 100);\n\n ui.fill(250, 90, 80);\n ui.ellipse(x+90, y+150, 100, 100);\n \n ui.fill(60,60,60);\n ui.ellipse(x+400, y-60, 80, 80);\n\n ui.fill(60,60,60);\n ui.ellipse(x-400, y+60, 40, 40);\n \n \n }", "title": "" }, { "docid": "60c0677d604e45a513303f965e8226db", "score": "0.5701018", "text": "private void gameDraw(Canvas canvas)\n {\n Public.spawnManager.draw(canvas);\n\n // Draw entities\n for (Entity entity : this.entities)\n {\n entity.draw(canvas);\n }\n }", "title": "" }, { "docid": "4d6e1ba79e34f240ea5c46627e84e172", "score": "0.5688361", "text": "void display()\n {\n for( Enumeration e = shapesAll.elements(); e.hasMoreElements(); )\n {\n \t// Draw the image\n ((Shape)e.nextElement()).draw(graphics_img);\n }\n // Default color is black\n graphics_img.setColor(Color.magenta);\n // Set the image size\n graphics_img.drawRect(0, 0, size().width-1, size().height-1);\t\n repaint();\n }", "title": "" }, { "docid": "7328f6cc7ac6b8f337f373a11a13f235", "score": "0.5680714", "text": "@Override\r\n\tpublic void draw() {\n\t\tsuper.draw();\r\n\t}", "title": "" }, { "docid": "01c3e083464d45ca115c4caa5928a5b8", "score": "0.5679786", "text": "public void drawGeneration(ArrayList<Cell> gen) {\n\n for (Cell cell : gen) {\n drawCell(cell);\n }\n }", "title": "" }, { "docid": "321554b6c1a5c0f7bd9cbe2b8c0816b1", "score": "0.56715727", "text": "public void draw() {\n draw(root);\n }", "title": "" }, { "docid": "d42714d6b42c45dd54a9dc55940874d1", "score": "0.5663165", "text": "public void drawPoints() {\n\t// optional\n\t// TODO\n\t/*for (Point p : pointSet) {\n\t\tp.draw();\n\t}*/\n\t// END TODO\n\t}", "title": "" }, { "docid": "29330e7bbfd3b0579a155418ef764be9", "score": "0.5661813", "text": "private static void paintGrid() {\n\t\tfor (int i = 0; i < Params.world_width; i++) {\n\t\t\tfor (int j = 0; j < Params.world_height; j++) {\n\t\t\t\tShape s = new Rectangle(size, size); \n\t\t\t\ts.setFill(Color.WHITE);\n\t\t\t\ts.setStroke(Color.BLACK); \n\t\t\t\tMain.modelGrid.add(s, i, j);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7e57af1cf52436eedc95f4eda2add118", "score": "0.5655962", "text": "public static void drawAll(Batch batch) {\n for (Projectile p : Projectile.active_projectiles) {\n p.sprite.draw(batch); //simply draw all projectiles\n }\n }", "title": "" }, { "docid": "ce157761a49a359cbf5cb4ca7cafeb2c", "score": "0.5651943", "text": "public void drawAllOn(DrawSurface d) {\n for (int i = 0; i < listOfSprite.size(); i++) {\n listOfSprite.get(i).drawOn(d);\n }\n }", "title": "" }, { "docid": "6eb2a7d328d4711627997cdd48203343", "score": "0.5646709", "text": "@Override\n public void draw() {\n\tif(!done)\n\t cuadricula.drawGrid();\n\telse {\n\t for(int i = 0; i < gridWidth; i++)\n\t\tfor(int j = 0; j < gridHeight; j++)\n\t\t cuadricula.grid[i][j].color = DEFAULT_BACKGROUND_COLOR;\n\t cuadricula.drawGrid();\n\t}\n }", "title": "" }, { "docid": "0d4a726c795c838c6732e4af7aaac10c", "score": "0.564429", "text": "public void showAllVehicles() {\r\n showVehicles(deal.vehicleInventory);\r\n }", "title": "" }, { "docid": "717db5124f7363cef3e17499548dd283", "score": "0.56431055", "text": "public static void paintCanvas(){\n\t\tclearCanvas();\n\t\tfor(int functionIndex = 0; functionIndex < listOfFunctions.length; functionIndex++){ //iterate through function array\n\t\t\tfor(double x = -(canvas.getWidth()/2); x <= canvas.getWidth() / 2; x++){ //iterate through x values for that function\n\t\t\t\tdrawLine(x, listOfFunctions[functionIndex]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cefe25f6a4c9cd923942e5adebc8ceb8", "score": "0.564188", "text": "@Override\n public void render(Graphics2D g)\n {\n for(T each : this)\n {\n each.render(g);\n }\n }", "title": "" } ]
686cc433c160260d7a1db16a0460709a
Setter method for the itemType.
[ { "docid": "8b51efffbd2a6b03c10e46cf0da4946c", "score": "0.7985272", "text": "public void setItemType(String itemType) {\n\t\tthis.itemType = itemType;\n\t}", "title": "" } ]
[ { "docid": "54a45c8c89406b604bb8d04701e0e7da", "score": "0.808664", "text": "public void setItemType(String itemType) {\r\n\t\tthis.itemType = itemType;\r\n\t}", "title": "" }, { "docid": "e9a0a177a05c2b1676c7b73a716becdd", "score": "0.8058777", "text": "public void setItemType(int t){itemType = t;}", "title": "" }, { "docid": "486957050071ff2322db2b5be7979082", "score": "0.7801542", "text": "public void setType(ItemType type) {\n this.type = type;\n }", "title": "" }, { "docid": "486957050071ff2322db2b5be7979082", "score": "0.7801542", "text": "public void setType(ItemType type) {\n this.type = type;\n }", "title": "" }, { "docid": "486957050071ff2322db2b5be7979082", "score": "0.7801542", "text": "public void setType(ItemType type) {\n this.type = type;\n }", "title": "" }, { "docid": "7b2d26caf17a45c4f3b43bc93122ba69", "score": "0.7487592", "text": "public String getItemType() {\r\n\t\treturn itemType;\r\n\t}", "title": "" }, { "docid": "d4a26de9fdee4cd50bcef603736b7c8c", "score": "0.741842", "text": "public String getItemType() {\n\t\treturn itemType;\n\t}", "title": "" }, { "docid": "d4a26de9fdee4cd50bcef603736b7c8c", "score": "0.741842", "text": "public String getItemType() {\n\t\treturn itemType;\n\t}", "title": "" }, { "docid": "fd59ffdb885d85021ada93f5895b2026", "score": "0.72994256", "text": "public ItemType getItemType() {\n return itemType;\n }", "title": "" }, { "docid": "f996d40bee90bc41e2e4748316e16cc5", "score": "0.71304625", "text": "public void setWfItemType(String value)\n {\n setAttributeInternal(WFITEMTYPE, value);\n }", "title": "" }, { "docid": "8694eea6c9fea413d69836adafb7595a", "score": "0.7020817", "text": "public ItemType getType() {\n return type;\n }", "title": "" }, { "docid": "8694eea6c9fea413d69836adafb7595a", "score": "0.7020817", "text": "public ItemType getType() {\n return type;\n }", "title": "" }, { "docid": "8694eea6c9fea413d69836adafb7595a", "score": "0.7020817", "text": "public ItemType getType() {\n return type;\n }", "title": "" }, { "docid": "8694eea6c9fea413d69836adafb7595a", "score": "0.7020817", "text": "public ItemType getType() {\n return type;\n }", "title": "" }, { "docid": "68a124313ea43f4fd86b5bff18bd635a", "score": "0.69916785", "text": "public ItemType getType() {\n\t\treturn type;\n\t}", "title": "" }, { "docid": "c09b2930178ee29df924de90b1e0b491", "score": "0.694937", "text": "public void setItemTypeId(long itemTypeId);", "title": "" }, { "docid": "17ac7450b05a9d795c2ec4beea63eebd", "score": "0.67649424", "text": "public int getItemType(){return itemType;}", "title": "" }, { "docid": "9db4792dbe1dd4fdef1abb5dbe3f7c36", "score": "0.67503023", "text": "public void setItemFormType(String itemFormType) {\n\t\tthis.itemFormType = itemFormType;\n\t}", "title": "" }, { "docid": "c0d2d0ba40f3e6aaa6ac87a9ed9aadcb", "score": "0.67327464", "text": "public void updateItemType(String itemName, String newType){\r\n if(itemExists(itemName)){ //if the item exists\r\n Item item = getItem(itemName);\r\n \r\n item.setItemType(newType); //update the type\r\n updatePackages(itemName, getItem(itemName));\r\n }\r\n }", "title": "" }, { "docid": "178f948913964b92ec16cbe3731e5d73", "score": "0.6710888", "text": "public Item(ItemType type) {\r\n\t\t_type = type;\r\n\t}", "title": "" }, { "docid": "12bd571ffb13f527dd703acaa75e9b6d", "score": "0.66469944", "text": "public void setType (String newType) { type = newType; }", "title": "" }, { "docid": "127c16a01b4c01844b9b14a804ea67f4", "score": "0.65779597", "text": "public void setType( String type );", "title": "" }, { "docid": "127c16a01b4c01844b9b14a804ea67f4", "score": "0.65779597", "text": "public void setType( String type );", "title": "" }, { "docid": "d8307c6fa4cf4bd11f7988bb7e0e263d", "score": "0.6530129", "text": "public void setTileType(View itemView, int tileType) {\n\t\tmTileTypeList.set(mItemList.indexOf(itemView), tileType);\n\t}", "title": "" }, { "docid": "0368fde4e44d5bd359bdc021eb258ccf", "score": "0.65229565", "text": "@Override\r\n\tpublic void setType(String type) {\n\t\t\r\n\t}", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.6502818", "text": "public void setType(String type);", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.6502818", "text": "public void setType(String type);", "title": "" }, { "docid": "d2b88ebdcea850d1f481c1c6b034f815", "score": "0.64878124", "text": "public void setType(int type);", "title": "" }, { "docid": "622d9026c81acdc3606b1c7c90aaf1dc", "score": "0.647827", "text": "public void setType (Type type) {}", "title": "" }, { "docid": "f1171386b6e51c440b3c828242da1a64", "score": "0.6475129", "text": "@Override\n\tpublic void setType(Type type){\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "883fb19d2f301bea7789521980952703", "score": "0.6417751", "text": "@Override\n\tpublic void setType(int type) {\n\t\tmodel.setType(type);\n\t}", "title": "" }, { "docid": "f3d52ed10b9503d675915b14ba64b639", "score": "0.640771", "text": "public void setType(String type)\r\n\t{\r\n\t\tthis.m_Type = type;\r\n\t}", "title": "" }, { "docid": "1892c03737b1b59f950fa8c9f3f4ca25", "score": "0.63898265", "text": "public void setType(String type) {\n Type = type;\n }", "title": "" }, { "docid": "d5554de07f9eb6e3ff5894184444a0ee", "score": "0.63886726", "text": "public void setType(String type) {\r\n\t\tType = type;\r\n\t}", "title": "" }, { "docid": "aec2faa619f04ddf0cf247a6908d0d60", "score": "0.63486123", "text": "public void setType(E type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "238db82e168b68ee9022e565a7513bb6", "score": "0.63483655", "text": "public void setType( IType type )\n {\n _type = type;\n }", "title": "" }, { "docid": "504ca211ea19f628f6026df63c448735", "score": "0.634772", "text": "public void setType(int type){\n type_ = type;\n }", "title": "" }, { "docid": "e9cf13963b84f4581070f142ef7f10ee", "score": "0.63235223", "text": "@Override\n\t\t\t\tpublic void set(Type type) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "f55388bf843cbdfa0d6735418516b23c", "score": "0.63228554", "text": "public void setType(int type) { this.type=type; }", "title": "" }, { "docid": "c48ba3bdf517e37936892a3934904742", "score": "0.6318931", "text": "private CollectableItem.Type getItemType() {\n if (hasItem()) {\n return getItem().getType();\n } else if (hasSimpleItem()) {\n return getSimpleItem().getType();\n } else {\n return getDefaultItemType();\n }\n }", "title": "" }, { "docid": "ca0bcc78eb2d5fa11c80ed63dbaaea07", "score": "0.6318185", "text": "public void testSeteTipoItem() {\n System.out.println(\"seteTipoItem\");\n TipoItemViewContenedor eTipoItem = null;\n String strLabel= \"\";\n Object value = null;\n ItemViewContenedor instance = new ItemViewContenedor(strLabel, value);\n instance.seteTipoItem(eTipoItem);\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "d245abdd9f19d989b9f96053f3fd7149", "score": "0.6307424", "text": "public void setType(String Type) {\n this.Type = Type;\n }", "title": "" }, { "docid": "59ef0f21224ad1eb7dc65bc79f6f5853", "score": "0.6306487", "text": "public void setType(Type newType) {\n\tthis.type = newType;\n }", "title": "" }, { "docid": "c81da19be4449d3b6fc6760ffe0945f9", "score": "0.6297698", "text": "@Override\n\tpublic void set__Type( String __Type)\n\t{\n\t\t\n\t\tthis.__Type = __Type;\n\t}", "title": "" }, { "docid": "865fbc4063d5de83819ab1af643eec16", "score": "0.6292921", "text": "public void set_type( String value ) {\n _type = value;\n }", "title": "" }, { "docid": "c362f6e53983c1f455f9840eaa97e7ac", "score": "0.6289518", "text": "public void setType(String aType) {\n _theType = aType;\n }", "title": "" }, { "docid": "8ed7d04f21ee5149992e8e8942585673", "score": "0.6284634", "text": "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "title": "" }, { "docid": "8ed7d04f21ee5149992e8e8942585673", "score": "0.6284634", "text": "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "title": "" }, { "docid": "3ce38433505b4b0351b236b7c1fc4878", "score": "0.6261124", "text": "public void setType(int type) {\n this.type = type;\n }", "title": "" }, { "docid": "4fb518821959e6c04b75699a96e96a37", "score": "0.62404466", "text": "public void setType(Type type) {\n\n this.type = type;\n\n }", "title": "" }, { "docid": "b836a7f758b0d6c635e1408994893c0d", "score": "0.6230719", "text": "public void setType(String type)\n/* 52: */ {\n/* 53:48 */ this.type = type;\n/* 54: */ }", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.6228379", "text": "void setType(String type);", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.6228379", "text": "void setType(String type);", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6225966", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6225966", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "968438f639687dd894c5748483893a49", "score": "0.6208107", "text": "void setType(Type type);", "title": "" }, { "docid": "9373dad003e4df0575178522a4b66b40", "score": "0.6197629", "text": "private void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "9c5cfc6cff29f5d7b8560981c9925b74", "score": "0.6195034", "text": "public void setType(Type type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "f15438fccd9cb231b00e6b595699f532", "score": "0.6191454", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "c884757a8e88c38fd6f9d5af06edc20d", "score": "0.618997", "text": "@Override\n\tpublic void setType(final String type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "f26d53e9a3dc4f90a242792996e7ed80", "score": "0.61897033", "text": "public void setType(String type) {\n takeValueForKey(type, \"type\");\n }", "title": "" }, { "docid": "bc5a108313e9aa3155d6c210be952927", "score": "0.61855084", "text": "static void setType(){}", "title": "" }, { "docid": "7d6be6b21cd59cc71ba15b698e08a9cd", "score": "0.6174127", "text": "public void setType(String t) {\n type = t;\n }", "title": "" }, { "docid": "0469a230cbd042d68516d089851e6773", "score": "0.61739415", "text": "public LegendItemSettings setIconType(LegendItemIconType iconType) {\n if (jsBase == null) {\n this.iconType = null;\n this.iconType1 = null;\n \n this.iconType = iconType;\n } else {\n this.iconType = iconType;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".iconType(%s)\", ((iconType != null) ? iconType.generateJs() : \"null\")));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".iconType(%s);\", ((iconType != null) ? iconType.generateJs() : \"null\")));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "4bb8fff657fd16ff744ef3bb91720cb0", "score": "0.6170626", "text": "public void setType(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "506d6be181189abc8a06a4f95ed70fc0", "score": "0.61674654", "text": "public void setType(String type){\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "d9ea57dd808585538853da664db0bfac", "score": "0.61568594", "text": "ItemType(String itemName) {\n this.label = itemName;\n\n }", "title": "" }, { "docid": "36ff02f544cf391b12b578e4c7cc6972", "score": "0.61502796", "text": "public String getItemFormType() {\n\t\treturn itemFormType;\n\t}", "title": "" }, { "docid": "54f0830384eb099ca67b47e4faa8fb38", "score": "0.61455816", "text": "public NodeSetType(Type itemType) {\n super(itemType, 0, -1);\n }", "title": "" }, { "docid": "ebc09588be08857ec44108a4b5636f1e", "score": "0.6133329", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "4356ed7abd306b35f8e5723b6e5a4291", "score": "0.6127866", "text": "public void setType(String t){\n \ttype = t;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.6125192", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "a55c154a96e769a29e0c6ba3a15d469e", "score": "0.61233425", "text": "public void setType(int value) {\r\n this.type = value;\r\n }", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "e58c11fdbf01e199f50148e5b182ec3c", "score": "0.0", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.sum_machine_part2, menu);\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "d74efebd6fe79f46209a7e8cb2c52d89", "score": "0.718687", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater mif= getMenuInflater();\n\t\tmif.inflate(R.menu.main_activity_action, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "55ac6cef21c3173820e0e6db23e9ab16", "score": "0.70400286", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) { //inflates custom toolbar produced to allow user to choose options from toolbar menu\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_items, menu);\n return true;\n }", "title": "" }, { "docid": "df665dc1094db7cd556165c36f37967f", "score": "0.6985927", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t/** Create an option menu from res/menu/actionbar_items.xml */\n\t\tgetMenuInflater().inflate(R.menu.actionbar_items, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "17b7806a10d3193f41120b07cfba2ad9", "score": "0.6972256", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main_activity_actions, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "8e2f7de30974eeddc971fc6df00505f8", "score": "0.69639546", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_actionbar, menu);\n\t\tmainMenuItems=menu.findItem(R.id.mainActionsItems);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "53a5697d72bebbaef700f863ca256cfb", "score": "0.6962923", "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.layout.main_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.69105124", "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 super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "509fae1ba18012276eddf232dcd6d282", "score": "0.69099927", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "59c70908ddc9e77dd02dbc53523f81a6", "score": "0.6904042", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater blowmenu = getMenuInflater();\r\n\t\tblowmenu.inflate(R.menu.coolmenu, menu);\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "045c39957dafeb0fbfb3be2d3b8a175f", "score": "0.68843216", "text": "@Override\n\t\t public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\t \tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t }", "title": "" }, { "docid": "a0d0552a6f30e91ee80eafca61f4f7c1", "score": "0.68830293", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "de5e53984a38ae9a6df1e8d74ad8d5ac", "score": "0.6874461", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n android.util.Log.d(this.getClass().getSimpleName(), \"called onCreateOptionsMenu()\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9b082fca2e03b01bdf98d8084be71c05", "score": "0.68715185", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_inventory, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "d0af77cd41ea627a9a69472903ebdd5f", "score": "0.6865007", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menus, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a3569ff2f193bf88f7f514cf503b795a", "score": "0.68632674", "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": "0a894679c97251625c56ec3ac322a571", "score": "0.6851503", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu); // expand menu from xml to this menu; otherwise menu empty\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4cb6f066b3e73376bc74d9786749da14", "score": "0.6845139", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t\n\t\tmenu.add(0, 0, 0, \"Add\")\n\t\t\t.setIcon(R.drawable.ic_menu_add)\n\t\t\t.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n\t}", "title": "" }, { "docid": "77f0669e0bf01fe4ca133668d0d00662", "score": "0.6840091", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu, menu);\n\n }", "title": "" }, { "docid": "95b7079fa877b7731e056b5ba245d2ca", "score": "0.6836093", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.action_bar_item,menu);\n return true;\n }", "title": "" }, { "docid": "d8b2394567af7ce671524e2dd40f3cb4", "score": "0.6832364", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.items, menu);\n return true;\n }", "title": "" }, { "docid": "ad08441a977eaa21efe37a3c6bea7b0c", "score": "0.6820085", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menuactionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.68161094", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.68161094", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "975d32887c6087ec4376da8f251eac03", "score": "0.6812383", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t}", "title": "" }, { "docid": "7635bd329ec106389f54b838b25b66c3", "score": "0.6807313", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_main_action_bar_items, menu);\n this.menu = menu;\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "3e969f35deddd11086009d1ffca62e43", "score": "0.68071854", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menubar, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "4c31d7bd49a8566a306d351559c19349", "score": "0.6806742", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.items_view, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8ff740c98fb9d56a5c0cef974aa8e3dd", "score": "0.68053687", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.active_workout_action_bar, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "8d6e262b1d79fd73c42ab2bfe6226060", "score": "0.68042094", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c347a3cc4119bb2ec8d2471a3800b7e8", "score": "0.6803204", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "323736b6d5d5e794de1455b0e1d65beb", "score": "0.67941785", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.show_all_items, menu);\r\n\t\tcreateMenu(menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "15248d0a3ff453f390d9e8e9bd625071", "score": "0.67922854", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater c = getMenuInflater();\r\n\t\tc.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\r\n\t}", "title": "" }, { "docid": "7ab8a5b12d0e1c2eda0cacda363db545", "score": "0.67890334", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c09d43a1d955cbb24854844d1a9ace63", "score": "0.678772", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actb_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "baeaffbd159e357b9ce5bc429f13f109", "score": "0.6782974", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n getActivity().getMenuInflater().inflate(R.menu.menu_cookbooks, menu);\n }", "title": "" }, { "docid": "b243bdbbb9ee3d66834e40c975ffb94f", "score": "0.67463416", "text": "@Override\t\n\t public boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "c6d8a4029ee679a153a784392c5762ca", "score": "0.6734809", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archived_view, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "76f0d34dbf8419d42ddcc9857d1f81f0", "score": "0.6724685", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_alfr3d_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7091ce3cb11ab9d46978b1b0326784f3", "score": "0.67189384", "text": "@Override\r\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\r\n }", "title": "" }, { "docid": "50674382a6bd82a730c6aa682de52d53", "score": "0.6715521", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.activity_main, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "141d80080dd8c914ca57cbcfe785a633", "score": "0.6714639", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "798b81c8b70767fd22ba3423ad3a5f64", "score": "0.6711691", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater inflater = new MenuInflater(this);\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "61a31be5ff85ac861f9ea2238b0c2d57", "score": "0.67093337", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.display_message, menu);\r\n\t\treturn true;\r\n\t\t// MenuInflater inflater = getMenuInflater();\r\n\t\t// inflater.inflate(R.menu.main_activity_actions, menu);\r\n\t\t// return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.6708062", "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": "e6665a14c023340478e4f2738e70e01c", "score": "0.6706647", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu)\r\n {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.action_bar_menu,menu);\r\n return true;\r\n }", "title": "" }, { "docid": "a1e5d56ea8f3c5c2eb00f0069cb2f6d0", "score": "0.67065865", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t\t\t{\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "c36d26f964604f9edb6c8fe77588b304", "score": "0.6704631", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t MenuInflater inflater = getMenuInflater();\n\t\t inflater.inflate(R.menu.wishlistmenu,menu);\n\t\t return true;\n\t\t}", "title": "" }, { "docid": "e97fb77e1b5f2bafbdc75e9e455cbef0", "score": "0.6701356", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\tmainMenu=menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "f226bd02fcf33fae93747e774780b37c", "score": "0.66995066", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6dd017c2e62cf0c40909767c44abb0c1", "score": "0.66943324", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.favorite_action, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "563a77d860c73258192f79b0bf56b5ea", "score": "0.668939", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.66875714", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.66875714", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e2e2d4892a288fe9cbf0bc3fc489e523", "score": "0.6683091", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "80d0d28a0d48354785f9f896965bcc72", "score": "0.6676501", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_main_actions, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "403d66c1a0b610739611aed9e2d50518", "score": "0.6674564", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tthis.mMenu = menu;\n\t\tcheckActionBar();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "64fc1a62215382acb7bcde762a0c17db", "score": "0.66713583", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater menuInflater = getMenuInflater();\r\n menuInflater.inflate(R.menu.main_menu, menu);\r\n\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "a7259e9d00b0128a2f1cce03c2290297", "score": "0.6670236", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //inflate the menu. This adds items to the action bar, if it is present\n getMenuInflater().inflate(R.menu.chat_app_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "3fcb217b4321eba23185bd64f6c725cd", "score": "0.6669949", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_entry_screen, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "3114a957f4938c40cc486f9f7723e85c", "score": "0.66664475", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_note_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "f7e92f6b703ee7d6b3a647b0eaae8500", "score": "0.66636693", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n //call getMenuInflater and inflate a specific resource: R.menu.main (in which main.xml)\n // and pass along the menu parameter\n getMenuInflater().inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "931f7ca7dbfc755a9412e2aa2ec8ee3b", "score": "0.6663113", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.export_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d5f44a4541f97f542bc9a33153e60086", "score": "0.6662297", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = new MenuInflater(MainActivity.this);\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.666124", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "82b5da5a7cfa02ae73b5b07e7062f805", "score": "0.66594714", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "60a0a65d0954b254ea5a1db9f907e51c", "score": "0.6659134", "text": "@Override\r\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "d231a45ee314c8ee51a06b5d2049999f", "score": "0.66579944", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.act_menu, menu);\n return true;\n }", "title": "" }, { "docid": "985be3f2a689aeb34048e42ef2d30b54", "score": "0.6656266", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater inflate = getMenuInflater();\r\n\t\tif (finishedIt == true) {\r\n\t\t\tinflate.inflate(R.menu.mymenux, menu);\r\n\t\t} else {\r\n\t\t\tinflate.inflate(R.menu.mymenu2, menu);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3e8720a0ec0a7b29939158c5939793e8", "score": "0.6653341", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b850037f9c06d473f2a900adac325ed7", "score": "0.66517216", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //return super.onCreateOptionsMenu(menu);\n getMenuInflater().inflate(R.menu.menu_actions,menu);\n return true;\n }", "title": "" }, { "docid": "4a5748ab80fddf6896fc305842a626a4", "score": "0.6649158", "text": "@Override\r\n\t \tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t \t\t populateMenu(menu);\r\n\t \t\treturn super.onCreateOptionsMenu(menu);\r\n\t \t}", "title": "" }, { "docid": "d589d0f9f1197e972c14fb11190acae5", "score": "0.66487306", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_list, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "a0206326c774c356cf38a5cff0c61c18", "score": "0.66468316", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.drop_info_list_fragment_actions, menu);\n }", "title": "" }, { "docid": "a1e282af634f65c01e10832e353146b7", "score": "0.6644986", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.home_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8f23c4b1b0bd121d3d47a5adb3f7cd75", "score": "0.6638745", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.singer_list_action, menu);\n return true;\n }", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "e1a12324b9f13e82d6f713ef97f3b274", "score": "0.66357315", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "title": "" }, { "docid": "bbe983d35aa5baafd69dadfc80ac8caf", "score": "0.6633677", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.activity_books_list, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.66291285", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.66291285", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.66291285", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "13a3b153e3724a1c3daece8365467d4b", "score": "0.6624394", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "title": "" }, { "docid": "5707a8adb79da21934c175b10bb2d618", "score": "0.66240054", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "fa9fa36b0a9e90c22b7bd029b1a91e9f", "score": "0.66237915", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tif (!super.onCreateOptionsMenu(menu))\n\t\t\treturn false;\n\t\t\n\t\tgetMenuInflater().inflate(R.layout.addbeer_menu, menu);\n\t\treturn true; \n\t}", "title": "" }, { "docid": "687831036c64689da2c3ba6da9000714", "score": "0.6623359", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.active, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "280fdf162e8112971be108bac565b555", "score": "0.6620785", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\t// We must call through to the base implementation.\n\t\tsuper.onCreateOptionsMenu(menu);\n\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "798205e90ef55a91f63aa7918cf93210", "score": "0.6619347", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflateOil = getMenuInflater();\n inflateOil.inflate(R.menu.home_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.66164756", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.66164756", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.66164756", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d913c9ac79725ef983043efacb5dfef3", "score": "0.66060287", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.feed, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9545c64baafd07c66cd7c448cd8ebe9a", "score": "0.66050756", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) \r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7700b4b7213df52539d9c2b1ec9e89ea", "score": "0.66043514", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tLog.d(TAG, \"Entered onCreateOptionsMenu()\");\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" } ]
560f6b8b6d726b301664e265917d4a5b
optional string main_post_url = 8;
[ { "docid": "8c06827ec609885bb4c2fcb008b64671", "score": "0.8242426", "text": "java.lang.String getMainPostUrl();", "title": "" } ]
[ { "docid": "8a75b8eabe047ddf2ea45dcfbaf314c9", "score": "0.75492346", "text": "public Builder setMainPostUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n mainPostUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9799822a348a3ac832218e47b4f70763", "score": "0.7545693", "text": "public Builder setMainPostUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n mainPostUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "509b3859fd5fb6162fb878599c451439", "score": "0.747595", "text": "public java.lang.String getMainPostUrl() {\n java.lang.Object ref = mainPostUrl_;\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 mainPostUrl_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "509b3859fd5fb6162fb878599c451439", "score": "0.7475473", "text": "public java.lang.String getMainPostUrl() {\n java.lang.Object ref = mainPostUrl_;\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 mainPostUrl_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9067b117e727710e91892118ca5b9015", "score": "0.7431329", "text": "public java.lang.String getMainPostUrl() {\n java.lang.Object ref = mainPostUrl_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n mainPostUrl_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9067b117e727710e91892118ca5b9015", "score": "0.74310946", "text": "public java.lang.String getMainPostUrl() {\n java.lang.Object ref = mainPostUrl_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n mainPostUrl_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "ef69517479b16fdd52727d62da703ce9", "score": "0.7130674", "text": "boolean hasMainPostUrl();", "title": "" }, { "docid": "ef69517479b16fdd52727d62da703ce9", "score": "0.7130674", "text": "boolean hasMainPostUrl();", "title": "" }, { "docid": "1c8113b4c1e294ba823249b45d4c15e5", "score": "0.71219593", "text": "public com.google.protobuf.ByteString\n getMainPostUrlBytes() {\n java.lang.Object ref = mainPostUrl_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n mainPostUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1c8113b4c1e294ba823249b45d4c15e5", "score": "0.7121559", "text": "public com.google.protobuf.ByteString\n getMainPostUrlBytes() {\n java.lang.Object ref = mainPostUrl_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n mainPostUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6fb2cdf9279d29103298d740cc85d7a8", "score": "0.6994921", "text": "public com.google.protobuf.ByteString\n getMainPostUrlBytes() {\n java.lang.Object ref = mainPostUrl_;\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 mainPostUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6fb2cdf9279d29103298d740cc85d7a8", "score": "0.6994453", "text": "public com.google.protobuf.ByteString\n getMainPostUrlBytes() {\n java.lang.Object ref = mainPostUrl_;\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 mainPostUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "976fcd77e08b4c0411002185d08ac327", "score": "0.69737196", "text": "com.google.protobuf.ByteString\n getMainPostUrlBytes();", "title": "" }, { "docid": "976fcd77e08b4c0411002185d08ac327", "score": "0.69737196", "text": "com.google.protobuf.ByteString\n getMainPostUrlBytes();", "title": "" }, { "docid": "9801cd607cc9ce45e18603006970250e", "score": "0.69145936", "text": "public Builder setMainPostUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n mainPostUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f3b271c47b76315fc4c4ba259190b188", "score": "0.6909901", "text": "public Builder setMainPostUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n mainPostUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "86f8147841c69f98ebc94824801ac1ce", "score": "0.68193126", "text": "public boolean hasMainPostUrl() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "title": "" }, { "docid": "e58d3558eb7dbfe48f3776631bea822e", "score": "0.6753149", "text": "public boolean hasMainPostUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "500e852856cb463e42477fab9a479156", "score": "0.6723004", "text": "public boolean hasMainPostUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "8872304f93ac4bd75d5d66a716ba5eac", "score": "0.6639732", "text": "public boolean hasMainPostUrl() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "0a420ccf5244bf75e3f545a43a4642a0", "score": "0.6369081", "text": "public Builder clearMainPostUrl() {\n bitField0_ = (bitField0_ & ~0x00000080);\n mainPostUrl_ = getDefaultInstance().getMainPostUrl();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4f2b26d793e76e39c22b58eba8925b35", "score": "0.6321146", "text": "public Builder clearMainPostUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n mainPostUrl_ = getDefaultInstance().getMainPostUrl();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f25ca6595c30d0146e8a2bbbe0ee361e", "score": "0.6292475", "text": "void OnPostItemClick(MainPost passinPost);", "title": "" }, { "docid": "58c9eca4b5b423eba8ec6fbb93475ee1", "score": "0.6222773", "text": "public String getMainUrl() {\n return this.mainUrl;\n }", "title": "" }, { "docid": "69ebf7659bfa75ba622c25cc691468dd", "score": "0.6192606", "text": "public void setMainUrl(String mainUrl) {\n this.mainUrl = mainUrl;\n }", "title": "" }, { "docid": "43924a272f33e842947c448d1e31a288", "score": "0.60684973", "text": "public void setPostUrl(java.lang.String postUrl) {\n this.postUrl = postUrl;\n }", "title": "" }, { "docid": "e2ac4247be4cb11853550720f3e715a5", "score": "0.6035626", "text": "public static String getMainUrl() {\n return mainUrl;\n }", "title": "" }, { "docid": "0be5cffec0f6dc78addeb0d8085e6cd0", "score": "0.5898445", "text": "Optional<String> getPosterUrl();", "title": "" }, { "docid": "f22cae818d7f3f3165e96d0284ab053f", "score": "0.5846944", "text": "public java.lang.String getPostUrl() {\n return postUrl;\n }", "title": "" }, { "docid": "b4b823afa989bc59c56fefc552661de2", "score": "0.58035237", "text": "java.lang.String getPosterUri();", "title": "" }, { "docid": "ebc50515063b39055a16fd4fe1ba1d12", "score": "0.58025765", "text": "public FeedEntry url(String t);", "title": "" }, { "docid": "2e0dbdae0cc55a4b63dbfe2893c8e55f", "score": "0.56979525", "text": "private PostContent getPostContent(JSONObject post, String postUrl, boolean fetchVideo) {\n\n // Media is stored in the original post\n final String crosspostKey = \"crosspost_parent_list\";\n if(post.has(crosspostKey)) {\n post = post.getJSONArray(crosspostKey).getJSONObject(0);\n }\n\n final String text = post.getString(\"selftext\");\n\n // Poll post\n final String pollKey = \"poll_data\";\n if(post.has(pollKey)) {\n return parsePollDetails(post.getJSONObject(pollKey), text, post.getString(\"name\"));\n }\n\n // Video post\n else if(post.getBoolean(\"is_video\")) {\n return parseVideoDetails(postUrl, post, fetchVideo);\n }\n\n // Absence of text indicates either a link post/image post/embedded video post\n else if(text.isEmpty()) {\n final String url = post.getString(URL_KEY);\n\n // Link post/embedded video\n final String hintKey = \"post_hint\";\n if(post.has(hintKey)) {\n final String hint = post.getString(hintKey);\n\n // Link may lead to an image\n switch(hint) {\n case \"rich:video\":\n case \"link\":\n if(isImageUrl(url)) {\n break;\n }\n else if(ImgurManager.isAlbumUrl(url)) {\n GalleryContent content = new GalleryContent();\n ArrayList<String> images = ImgurManager.getAlbumImagesByUrl(url);\n\n if(images != null) {\n for(String imageUrl : images) {\n content.addImageToGallery(imageUrl);\n }\n }\n\n return content;\n }\n else {\n return new LinkContent(url);\n }\n }\n }\n\n // Gallery post (multiple images)\n if(getUrlType(url) == URL_TYPE.GALLERY_POST) {\n return parseGalleryContent(post);\n }\n\n // Single image post\n return new ImageContent(processImageUrl(url));\n }\n\n // Standard text post\n return new TextPostContent(text);\n }", "title": "" }, { "docid": "0695f6a7affea219ea15f38c70b54c5b", "score": "0.56806284", "text": "public void setPostString(String postString) {\r\n this.postString = postString;\r\n }", "title": "" }, { "docid": "4d1d7abe1dc8adef5363e10b4c014a22", "score": "0.5558483", "text": "private boolean isRedditPostUrl(String url) {\n URL_TYPE type = getUrlType(url);\n return type != URL_TYPE.NONE && type != URL_TYPE.SUBREDDIT;\n }", "title": "" }, { "docid": "992572787c7b15ae2c4f3eca06f0dea1", "score": "0.5549794", "text": "public static Post getPostByUrl(String stringurl){\n Post post = null;\n try {\n URL url = new URL(stringurl);\n\n // parsing the url to get the slug\n String[] parsedUrl = url.getPath().split(\"\\\\/\");\n String slug = parsedUrl[parsedUrl.length - 1];\n String host = url.getHost();\n String requestUrl = WORDPRESS_API + \"sites/\" + host +\n \"/posts/slug:\" + slug + \"?pretty=true&number=100&meta=replies\";\n post = getPostDetails(requestUrl);\n\n } catch (MalformedURLException e) {\n System.out.println(\"ERROR: Url passed is not a valid url\");\n }\n return post;\n }", "title": "" }, { "docid": "90c3d97031548cadec984b8d10e3acff", "score": "0.55426574", "text": "String getPublishedUrl();", "title": "" }, { "docid": "3d2d1474fb3b5623725971bdff83894f", "score": "0.55202895", "text": "public Post(User user, String postContent, String url){\r\n this.postContent=postContent;\r\n this.url=url;\r\n this.user=user;\r\n\r\n }", "title": "" }, { "docid": "517f7da5ad4ca5542039691a32945556", "score": "0.5514159", "text": "public void getLinksToInternalPosts(Document doc){\n\t\tElements midContentElements = doc.select(\"nav.main-navigation\") //First get Primary menu items then use same Elements object to grab secondary menu items\n\t\t\t\t\t\t\t\t\t .select(\"li.cat-item\");\n\t\tfor(Element midContentElement : midContentElements){\n\t\t\tmidContentLinks.add(midContentElement.select(\"a[href]\").attr(\"abs:href\"));\n\t\t\tmidContentText.add(midContentElement.text());\n\t\t}\n\t\tmidContentElements = doc.select(\"nav.secondary-navigation\")\n\t\t\t\t.select(\"li.page_item\");\n\t\tfor(Element midContentElement : midContentElements){\n\t\t\tmidContentLinks.add(midContentElement.select(\"a[href]\").attr(\"abs:href\"));\n\t\t\tmidContentText.add(midContentElement.text());\n\t\t}\n\n//\t\t//Nested menu branch point removed for a more fluid navigation\n//\t\tmidContentLinks.remove(9); midContentLinks.remove(13);\n//\t\tmidContentText.remove(9); midContentText.remove(13);\n\n\t\t//Drawer\n\t\taddDrawerItems();\n\n\n\n\t\t//Throw debug data on console and call background task to populate the links\n\n//\t\tfor(int i = 0; i<midContentLinks.size(); i++){\n//\t\t\tLog.d(\"Pratyaksha_DEBUG\", midContentText.get(i)+\"==>\"+ midContentLinks.get(i));\n//\t\t\tString[] fetchPostsparams = {midContentLinks.get(i), midContentText.get(i)};\n//\t\t\tnew FetchPostsFromPage().execute(fetchPostsparams);\n//\t\t}\n\n//\t\tStringBuilder text = new StringBuilder();\n//\t\tFile rssInput = new File(IMG_CACHE_FOLDER+\"/rss.xml\");\n//\t\tList<String> rssURLList = new ArrayList<String>();\n//\t\tDocument rssDocument;\n//\t\ttry {\n//\t\t\tif(rssInput.exists()) {\n//\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(rssInput));\n//\t\t\t\tString line;\n//\t\t\t\twhile ((line = br.readLine()) != null) {\n//\t\t\t\t\ttext.append(line);\n//\t\t\t\t}\n//\t\t\t\tbr.close();\n//\t\t\t\tDocument rssDoc = Jsoup.parse(rssInput, \"UTF-8\", \"http://pratyaksha-mitra.com\");\n//\t\t\t\tElements items = rssDoc.select(\"item\");\n//\t\t\t\tfor(Element item : items){\n//\t\t\t\t\tString rssURL = item.select(\"link\").text().replaceAll(\"\\\\s\", \"\");\n//\t\t\t\t\trssURLList.add(rssURL);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t} catch (IOException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\n//\t\tList<String> articleHeadings = new ArrayList<String>();\n//\t\tList<String> articleURLs = new ArrayList<String>();\n//\t\tList<String> articleSummaries = new ArrayList<String>();\n//\t\tList<String> articleImgs = new ArrayList<String>();\n\n\t\tElements mainPageArticles = doc.getElementsByTag(\"article\");\n\t\tfor(Element mainPageArticle : mainPageArticles){\n\t\t\tLinearLayout f = new LinearLayout(MainActivity.this);\n\t\t\tf.setOrientation(LinearLayout.VERTICAL);\n\t\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n\t\t\tparams.setMargins(0,10,0,10);\n\t\t\tf.setLayoutParams(params);\n\n\t\t\tElements article = mainPageArticle.select(\"article\");\n\t\t\tString articleHeading = article.select(\"h2\").text();\n\t\t\tfinal String articleURL = article.select(\"a[href]\").attr(\"abs:href\");\n\t\t\tString articleSummary = article.select(\"p.p-summary\").text();\n\t\t\tString articleImgTemp = article.select(\"img\").attr(\"abs:src\");\n\n\t\t\t//Remove the image dimension at the end of image URL to give better resolution image.\n\t\t\ttry {\n\t\t\t\tString imgSize = StringUtils.substringAfterLast(articleImgTemp, \"-\");\n\n\t\t\t\timgSize = StringUtils.substringBeforeLast(imgSize, \".\");\n\t\t\t\tLog.d(\"ARTICLEIMG\", \"Image Size: \"+imgSize);\n\t\t\t\tif(imgSize!=null && imgSize.length() < 9){\n\t\t\t\t\tarticleImgTemp = articleImgTemp.replace(\"-\"+imgSize, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(NullPointerException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\n\t\t\tfinal String articleImg = articleImgTemp;\n\n//\t\t\tarticleHeadings.add(articleHeading);\n//\t\t\tarticleURLs.add(articleURL);\n//\t\t\tarticleSummaries.add(articleSummary);\n//\t\t\tarticleImgs.add(articleImg);\n\n\t\t\tif(!h2List.contains(articleHeading)){\n\t\t\t\tImageView img = new ImageView(this);\n\t\t\t\tGlide.with(getApplicationContext())\n\t\t\t\t\t\t.load(articleImg)\n\t\t\t\t\t\t.into(img);\n\t\t\t\tf.addView(img);\n\t\t\t\tTextView heading = new TextView(this);\n\t\t\t\theading.setPadding(10, 5, 10, 10);\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint headlineBaseColor = Color.parseColor(colors[random.nextInt((colors.length - 0)) + 0]);\n\t\t\t\theading.setBackgroundColor(headlineBaseColor);\n\t\t\t\theading.setText(articleHeading);\n\t\t\t\theading.setTextColor(Color.parseColor(\"#FCFCFC\"));\n\t\t\t\theading.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);\n\n\t\t\t\tTextView summaryText = new TextView(this);\n\t\t\t\tsummaryText.setText(articleSummary);\n\t\t\t\tsummaryText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18);\n\n\t\t\t\tf.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(), ViewPost.class);\n\t\t\t\t\t\tintent.putExtra(\"post_link\", articleURL);\n\t\t\t\t\t\tintent.putExtra(\"image_link\", articleImg);\n\n\t\t\t\t\t\tstartActivity(intent);\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tf.addView(heading);\n\t\t\t\tf.addView(summaryText);\n\t\t\t\tf.setBackgroundResource(R.drawable.card_background_selector);\n\t\t\t\tlinearlayout.addView(f);\n\n\t\t\t}\n\t\t}\n//\t\tLog.d(\"SWAP_DBG\", \"BEFORE SWAP: \"+articleHeadings.toString());\n//\t\tfor(int i=0; i<articleURLs.size();i++){\n//\t\t\tint index;\n//\t\t\tif(rssURLList.contains(articleURLs.get(i))){\n//\t\t\t\tindex = rssURLList.indexOf(articleURLs.get(i));\n//\t\t\t\tCollections.swap(articleHeadings, index, articleHeadings.indexOf(articleURLs.get(i)));\n//\t\t\t\t//Collections.swap(articleImgs)\n//\n//\t\t\t}\n//\t\t}\n//\t\tLog.d(\"SWAP_DBG\", \"AFTER_SWAP: \"+articleHeadings.toString());\n\n\t}", "title": "" }, { "docid": "115728cb6a5ff4fe99af94447ab62a3d", "score": "0.5512466", "text": "public void setPost(Post post) {\n this.post = post;\n }", "title": "" }, { "docid": "892573f38e750498b5fb0f5fba16d75c", "score": "0.54705375", "text": "public String getHomePageURL() {\r\n return \"http://snippets.dzone.com\";\r\n }", "title": "" }, { "docid": "9edfc9a97d88156a156f7c9b1d483ebb", "score": "0.5449661", "text": "public String getPostUrl() {\n return Base_Url.market_place_URL+image;\n }", "title": "" }, { "docid": "4ea7eff87770765b1656d5ff68ab771c", "score": "0.54420686", "text": "public void setPost(Post post) {\n this.post = post;\n }", "title": "" }, { "docid": "27efb9ee1ab882aff21bc7d4166673fe", "score": "0.54203016", "text": "private String getPosterUrl(String relativeImgUrl) {\n return TMDBClient.TMDBServiceApi.IMG_BASE_URL.concat(relativeImgUrl);\n }", "title": "" }, { "docid": "e6ee3fcb48ab4bc8be589d2228a79bf7", "score": "0.53895193", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(), ViewPost.class);\n\t\t\t\t\t\t\tintent.putExtra(\"post_link\", article.select(\"a[href]\").attr(\"abs:href\"));\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "d0c285b8fe475c3d1e926c727e043cd6", "score": "0.5375565", "text": "void addPost(String content, Date date, String title, long userId) ;", "title": "" }, { "docid": "228576480535b2c8ea76cbb8c1c9e679", "score": "0.5369337", "text": "public void onClickMC(View v)\n\t{\n\t\tIntent omgIntent = new Intent(getApplicationContext(),\n\t\t\t\tPostList.class);\n\t\tomgIntent.putExtra(\"URL\", \"http://omguwmissedconnections.blogspot.com/feeds/posts/default\");\n\t\tomgIntent.putExtra(\"TYPE\", 2);\n\t\tstartActivity(omgIntent);\n\t}", "title": "" }, { "docid": "0e18afcde2d26e3ca8c7f0c2dcbaed53", "score": "0.53445905", "text": "String getMediumURL();", "title": "" }, { "docid": "40b8587d7836e0d489e8f3f56daf8a6c", "score": "0.5335835", "text": "public String getPostid() {\r\n return postid;\r\n }", "title": "" }, { "docid": "95a2be5c9c75c4b54c0c6433ea6ebdd2", "score": "0.5324404", "text": "public String getLastReadUrl() {\r\n\t\tString url = \"forums.php?action=viewthread&threadid=\" + threadId + \"&postid=\" + lastPostId;\r\n\t\treturn url;\r\n\t}", "title": "" }, { "docid": "56ee5c1894d5c0b03786fe69e38ad7f1", "score": "0.53179514", "text": "void openCreatePost(String feedId);", "title": "" }, { "docid": "f6d226adbd3083703989ad252166b16a", "score": "0.53065276", "text": "public String getLargePoster(){\n return \"http://covers.openlibrary.org/b/olid/\" + bookIMDB + \"-L.jpg?default=false\";\n }", "title": "" }, { "docid": "9fa26d31f25a39863e2f6d193b24b721", "score": "0.52827436", "text": "public static void main(String args[]){\n\t\tReddit red = RedditApi.getRedditInstance(\"Otis Test\");\r\n\t User user = red.login(\"torchbot2017\", \"gibatad\", \"5WRAIQAXlszYGA\", \"r0UlUU295NTuZxQ6j3UTSnpj4u8\");\r\n\t Document doc = MongoFacade.getInstance().torch_threads.find(new Document(\"title\", \"[PI] In a radiated clock with St. Question 11, I actually take BISTUCLLY SENDERS, BHEA, OK. When it's simply my asshole when they probably work if its as really okay about today.\")).first();\r\n\t System.out.println(doc.getString(\"title\"));\r\n\t System.out.println(doc.getString(\"text\"));\r\n\t Link link = red.Submit(doc.getString(\"subreddit\"), doc.getString(\"title\"), doc.getString(\"text\"), \"self\");\r\n\t System.out.println(link.getUrl());\r\n\t System.out.println(\"Thread posted and record updated!\");\r\n\t}", "title": "" }, { "docid": "45fffa0f49dfb332d244716c65b713b4", "score": "0.52473736", "text": "public void goPosts() {\r\n driver.findElement(By.partialLinkText(\"Post\")).click();\r\n }", "title": "" }, { "docid": "717146f9305fbf39f76d2baf52e23272", "score": "0.52346724", "text": "public String getPostString() {\r\n return postString;\r\n }", "title": "" }, { "docid": "a15ceef5b39149b6fd4c5da88cc93f24", "score": "0.52143323", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "a15ceef5b39149b6fd4c5da88cc93f24", "score": "0.52143323", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "a15ceef5b39149b6fd4c5da88cc93f24", "score": "0.52143323", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "508f419d3b4df2c3e3a4f21c46b879fe", "score": "0.51897013", "text": "public String getUrl() {\n return RestaurantNewsUrl;\n }", "title": "" }, { "docid": "063b099e2fb7dba205c1fd579c56a92c", "score": "0.5175987", "text": "void openPost(String id, String name);", "title": "" }, { "docid": "47826dcd93a92ac9434688854589ec97", "score": "0.51753455", "text": "public void setContent(Post post) {\n\t\tString content = post.getContent();\n\t\tif (content.length() > 0) post.setContent(content.substring(3, content.length()-6));\n\t}", "title": "" }, { "docid": "85513bed1f54768fe075374938dc9a9e", "score": "0.5172973", "text": "public java.lang.String getExternalPostId() {\n return externalPostId;\n }", "title": "" }, { "docid": "09aadac29a854415a77b24608c360ed9", "score": "0.51722664", "text": "public String getMediumPoster() {\n return \"http://covers.openlibrary.org/b/olid/\" + bookIMDB + \"-M.jpg?default=false\";\n }", "title": "" }, { "docid": "77242be5c0af5891d6a82a268c87e9de", "score": "0.51462394", "text": "public static String getRedditSaveUrl(String postUrl) {\n return \"https://redditsave.com/info?url=\" + EmbedHelper.urlEncode(postUrl);\n }", "title": "" }, { "docid": "d94a5ad18beca696dc46830603eb56dc", "score": "0.51313466", "text": "Permalink createPermalink();", "title": "" }, { "docid": "56c8bf1ee9f8eac6e4e76e1357d31d89", "score": "0.51181495", "text": "public String getPostMethodUrl(boolean z) {\n Context context = this.mContext;\n if (context == null) {\n return null;\n }\n if (z) {\n return ConsultUrls.getUpdateThreadUrl(context);\n }\n return ConsultUrls.getPostThreadUrl(context);\n }", "title": "" }, { "docid": "b8c57cc2f82fef7aff48301b4109475f", "score": "0.51177585", "text": "private void sendPost(ToggleButton toggleButton, TextView textStatus, String url, String siteID, Boolean Status) {\n String status;\n if (Status == true) {\n status = \"On\";\n } else {\n status = \"Off\";\n }\n HashMap<String, String> map = new HashMap<>();\n map.put(\"uuid\", siteID);\n map.put(\"app_key\", status);\n\n\n JSONObject jsonObject = new JSONObject(map);\n System.out.println(\"jsonObject=\" + jsonObject);\n\n ConstantValues constantValues = new ConstantValues();\n String parentUrl = constantValues.postParentUrl;\n url = constantValues.postUrl;\n //GetDataService service = RetrofitClientInstancePost.getRetrofitInstance(context).create(GetDataService.class);\n GetDataService service = RetrofitClientInstancePost.getApiService(parentUrl);\n\n Call<ResultStatusPost> call = service.savePost(url, jsonObject.toString());\n\n call.enqueue(new Callback<ResultStatusPost>() {\n @Override\n public void onResponse(Call<ResultStatusPost> call, Response<ResultStatusPost> response) {\n Log.d(\"URL\", \"URL = \" + call.request().url().toString()); // here\n if (response.isSuccessful()) {\n showResponse(toggleButton, textStatus, response.body().toString());\n Log.i(TAG, \"post submitted to API.\" + response.body().toString());\n }\n }\n\n @Override\n public void onFailure(Call<ResultStatusPost> call, Throwable t) {\n Log.d(\"URL\", \"URL = \" + call.request().url().toString()); // here\n Log.e(TAG, \"Unable to submit post to API.\");\n }\n });\n }", "title": "" }, { "docid": "6f15f8727532dd6a6e170b7e6e24e693", "score": "0.5115091", "text": "Movie setPosterUrl(String posterUrl);", "title": "" }, { "docid": "69513b982627c812974ce79321de5d4a", "score": "0.5109909", "text": "String getEntryUrl(E entry);", "title": "" }, { "docid": "28f82fd39a87ff1bdd5cb3dfddc46992", "score": "0.5108189", "text": "private static String getJournalUrl(Plugin plugin, TypedEntryMap paramMap) { \r\n String url = getPluginUrl(plugin, auJournalauFeatures, paramMap);\r\n if (url == null) {\r\n url = paramMap.getString(\"base_url\");\r\n }\r\n return url;\r\n }", "title": "" }, { "docid": "758174fe77df710fdbea9ae823d0280f", "score": "0.51010776", "text": "public void setPostLoginUrl(String postLoginUrl) {\n\t\tthis.postLoginUrl = postLoginUrl;\n\t}", "title": "" }, { "docid": "bf6c260046d837307e4b3c6160283bdd", "score": "0.5094729", "text": "public void onClickAsk(View v)\n\t{\n\t\tIntent omgIntent = new Intent(getApplicationContext(),\n\t\t\t\tPostList.class);\n\t\tomgIntent.putExtra(\"URL\", \"http://omguwask.blogspot.com/feeds/posts/default\");\n\t\tomgIntent.putExtra(\"TYPE\", 5);\n\t\tstartActivity(omgIntent);\n\t}", "title": "" }, { "docid": "3914d332df62fa9e3309d7abe8cb313e", "score": "0.50909114", "text": "public void onClickOH(View v)\n\t{\n\t\tIntent omgIntent = new Intent(getApplicationContext(),\n\t\t\t\tPostList.class);\n\t\tomgIntent.putExtra(\"URL\", \"http://omguwoh.blogspot.com/feeds/posts/default\");\n\t\tomgIntent.putExtra(\"TYPE\", 4);\n\t\tstartActivity(omgIntent);\n\t}", "title": "" }, { "docid": "eb4976a723031fc0cb4a0c74052e53d6", "score": "0.50666666", "text": "public void setExternalPostId(java.lang.String externalPostId) {\n this.externalPostId = externalPostId;\n }", "title": "" }, { "docid": "9881addc65f062f9acb1dbb41a42e389", "score": "0.5057881", "text": "public GooglePostRequest(String toShorten) {\n\t\tlongUrl = toShorten;\n\t}", "title": "" }, { "docid": "678cbab2f2b211c5fb949da7cbf49886", "score": "0.50477314", "text": "URL getApprovedURLArg();", "title": "" }, { "docid": "2aa87d237eb34e23c77e430adaee4464", "score": "0.50413394", "text": "public String getPostId() {\n\t\treturn postId;\n\t}", "title": "" }, { "docid": "5e48ae3d417b9fc7079f726dc5da390c", "score": "0.5040962", "text": "@Override\n public void onPostButtonClick() {\n startActivity(new Intent(MainActivity.this, EntryActivity.class));\n }", "title": "" }, { "docid": "f21336a000b56893e31d39a6d966f539", "score": "0.5040662", "text": "@Override\n\tpublic URL getEntry(String arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3d44d9ff9e76a6f3e93b8e3ddba5dfea", "score": "0.50351834", "text": "public void onClickILU(View v)\n\t{\n\t\tIntent omgIntent = new Intent(getApplicationContext(),\n\t\t\t\tPostList.class);\n\t\tomgIntent.putExtra(\"URL\", \"http://omguwilu.blogspot.com/feeds/posts/default\");\n\t\tomgIntent.putExtra(\"TYPE\", 3);\n\t\tstartActivity(omgIntent);\n\t}", "title": "" }, { "docid": "fc2012d85552a3964a0d4036111adec4", "score": "0.5025793", "text": "public String getUrl() { return mUrl; }", "title": "" }, { "docid": "891e750f38619d762f1059b8f8a16487", "score": "0.5024971", "text": "public String getMoviePosterFullUrl() {\n return String.format(\"%s%s\", MOVIE_POSTER_ENDPOINT, mPosterPath);\n }", "title": "" }, { "docid": "75ebf48fc3212c0f28c2603405cef0cc", "score": "0.5013535", "text": "public FeedEntry content(String t);", "title": "" }, { "docid": "5e0aac50fe47092d0ba0efcad64e9659", "score": "0.5001474", "text": "public String getHref() {\r\n\treturn _href;\r\n}", "title": "" }, { "docid": "1994cddaaf5f2898d59fa084791b9d7e", "score": "0.4998934", "text": "public void setUrl(String url);", "title": "" }, { "docid": "10347141dd2c32a73755311e74e4a881", "score": "0.49971238", "text": "private static String buildUrlSuggestSubmit( String strSiteUrl, SuggestSubmit suggestSubmit )\n {\n if ( ( suggestSubmit != null ) && ( suggestSubmit.getSuggest( ) != null ) )\n {\n UrlItem url = new UrlItem( strSiteUrl + SLASH + AppPathService.getPortalUrl( ) );\n url.addParameter( XPageAppService.PARAM_XPAGE_APP,\n AppPropertiesService.getProperty( PROPERTY_XPAGE_APPLICATION_ID, DEFAULT_XPAGE_ID ) );\n url.addParameter( PARAMETER_ID_SUGGEST, suggestSubmit.getSuggest( ).getIdSuggest( ) );\n url.addParameter( PARAMETER_ID_SUGGEST_SUBMIT, suggestSubmit.getIdSuggestSubmit( ) );\n url.addParameter( PARAMETER_SUGGEST_COMMENT, \"1\" );\n url.addParameter( PARAMETER_SUGGEST_DETAIL, \"1\" );\n\n return url.getUrl( );\n }\n\n AppLogService.debug( \"SuggestResourceRss - SuggestSubmit is null when trying to build the URL.\" );\n\n return StringUtils.EMPTY;\n }", "title": "" }, { "docid": "ff0341d3b7be44a6aa5438143b546ac3", "score": "0.49896836", "text": "public java.lang.String getURL(){\r\n return localURL;\r\n }", "title": "" }, { "docid": "ff0341d3b7be44a6aa5438143b546ac3", "score": "0.49896836", "text": "public java.lang.String getURL(){\r\n return localURL;\r\n }", "title": "" }, { "docid": "69dc910ada9c7293b969a43c6cdf0429", "score": "0.49889356", "text": "protected void addPost(Post post){\n posts.add(post);\n }", "title": "" }, { "docid": "ff185d5265e0b8f11d0863c3963ad4b2", "score": "0.4983995", "text": "public static void postToTumblr(URL url, String caption, String tweetCaption) throws IOException{\n // <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Lds8BgDaS8g\" frameborder=\"0\" allowfullscreen></iframe>\n Document ytPage = Jsoup.connect(url.toString()).get();\n\n String embedURL = ytPage.select(\"meta[property=og:video:url]\").attr(\"content\");\n String embedCode = \"<iframe width=\\\"560\\\" height=\\\"315\\\" src=\\\"\"+embedURL+\"\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\";\n // Put above to a separate method, maybe together with fetchFromYoutube \n\n String mainCaption= caption.substring(0, caption.indexOf(\"[TAG\"));\n String tags= caption.substring(caption.indexOf(\"[TAG\")+4).replace(\"]\", \"\").replace(\": \", \"\");\n\n System.out.println();\n System.out.println(\"Embed code : \" + embedCode);\n System.out.println(\"Main caption : \");\n System.out.println(mainCaption);\n System.out.println(\"Tags : \" + tags);\n\n System.out.println(\"Post? Y/N/Q: \");\n\n Scanner input = new Scanner(System.in);\n String postCheck = input.nextLine();\n\n input.close();\n \n if(postCheck.equalsIgnoreCase(\"Y\") || postCheck.equalsIgnoreCase(\"Q\")){\n \t//TODO to sdfy.cfg\n JumblrClient client = new JumblrClient(\n \"JrZBe7ncslnygHnDImJ9FOSwsQfTlPHHSZDixe8JfRPD1fsx1W\",\n \"QXmUT2vGnsdMlyrpWMomItIhsADYUKtM6UTdG4q3V57jMzmImH\"\n );\n client.setToken(\n \"VmDBMzrk1QOrAzf3TsbGaeZ4H3muDIohB7Oo5C7fFYlBIdD9Dw\",\n \"FyMTN9GueSy3rr9D9SA4NBjoIPCiL1lrG83vYfeQWcYsPD1Uxf\"\n );\n\n // URL for a Video post\n String postURL = \"http://api.tumblr.com/v2/blog/somedopamineforyou.tumblr.com/post?type=video&caption=\"+mainCaption+\n \"&embed=\"+embedCode+\"&tweet=off%format=html&tags=\"+tags.replace(\", \", \"\");\n System.out.println(\"I----------==================================================================================---------I\");\n System.out.println(postURL);\n System.out.println();\n\n VideoPost videoPost = null;\n\n try {\n videoPost = client.newPost(BLOG_NAME, VideoPost.class);\n videoPost.setEmbedCode(embedCode);\n videoPost.setCaption(mainCaption);\n videoPost.setFormat(\"html\");\n videoPost.setTweet(tweetCaption);\n videoPost.addTag(tags);\n if(postCheck.equalsIgnoreCase(\"Q\"))\n videoPost.setState(\"queue\");\n videoPost.save();\n\n System.out.println();\n System.out.println(\"Video posted.\");\n\n } catch (IllegalAccessException e) {\n // TODO Auto-generated catch block\n\n e.printStackTrace();\n } catch (InstantiationException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (JumblrException e) {\n e.printStackTrace();\n System.out.println(\"(\" + e.getResponseCode() + \") \" + e.getMessage());\n }\n\n\n } else if(postCheck.equalsIgnoreCase(\"N\")){\n System.exit(0);\n } \n }", "title": "" }, { "docid": "e0ea5d19d89c9a117ba875ad7cde4afe", "score": "0.4976782", "text": "public String getPublishUrl()\n {\n return _publishUrl;\n }", "title": "" }, { "docid": "4f0263bf0d46325a6497d15217b79ad4", "score": "0.49753398", "text": "public FragmentSinglePost() {\n\t\tDisplayImageOptions.Builder builder = new DisplayImageOptions.Builder();\n\t\tbuilder.bitmapConfig(Config.RGB_565);\n\t\tbuilder.cacheInMemory();\n\t\tbuilder.showImageOnFail(R.drawable.home_default_post_picture);\n\t\tbuilder.cacheOnDisc();\n\t\tbuilder.imageScaleType(ImageScaleType.EXACTLY_STRETCHED);\n\n\t\tmImageOptions = builder.build();\n\t}", "title": "" }, { "docid": "bba4f082cee931793a9a5a196ee6c2fe", "score": "0.49709064", "text": "public abstract String getUrl(Arg... args);", "title": "" }, { "docid": "b48ad370b40cd90c64211fc929d0761c", "score": "0.49636608", "text": "public String getPostString()\n {\n return req.getRequestUrl() + \"?\" + req.getPostString();\n }", "title": "" }, { "docid": "b8184d3f6e6ec0aa344b9a06e87beafb", "score": "0.49599168", "text": "public void setPublishUrl(String aValue)\n {\n _publishUrl = aValue;\n }", "title": "" }, { "docid": "ee7231e0ce1fde390f616b30511f2364", "score": "0.49579993", "text": "public void setOriginalPostID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "64ada56b2e6aaf2a8361cd6081f8ed59", "score": "0.49550888", "text": "public String getUrlApp()\r\n/* 69: */ {\r\n/* 70:61 */ return this.urlApp;\r\n/* 71: */ }", "title": "" }, { "docid": "a4f86c0ce7370cf82e04ae4964553547", "score": "0.4950685", "text": "public String getUrl()\n {\n return url; \n }", "title": "" }, { "docid": "a07cd1c5bee960d00a56ad15a61d9c81", "score": "0.49501562", "text": "@SuppressWarnings(\"deprecation\")\npublic void loadPost(Post post) {\nif (post == null || post.getTitle() == null)\n return;\nRelativeLayout layout = (RelativeLayout)getActivity().findViewById(R.id.postHead);\nScrollView scroll = (ScrollView)getActivity().findViewById(R.id.scrollView);\nTextView title = (TextView) getActivity().findViewById(R.id.postTitle);\nif (post.getTitle().equals(\"\"))\ntitle.setText(\"(\" + getResources().getText(R.string.untitled) + \")\");\nelse\n title.setText(EscapeUtils.unescapeHtml(post.getTitle()));\n\nWebView webView = (WebView) getActivity().findViewById(\n R.id.viewPostWebView);\n\ngesturedetector = new GestureDetector(new GestureListener());\n\nlayout.setOnTouchListener(new OnTouchListener() {\n \n @Override\n public boolean onTouch(View v, MotionEvent event) {\n // TODO Auto-generated method stub\n gesturedetector.onTouchEvent(event);\n return true;\n }\n \n \n });\n\n\nwebView.setOnTouchListener(new OnTouchListener() {\n \n @Override\n public boolean onTouch(View v, MotionEvent event) {\n // TODO Auto-generated method stub\n gesturedetector.onTouchEvent(event);\n return true;\n }\n \n \n});\nTextView tv = (TextView) getActivity().findViewById(\n R.id.viewPostTextView);\nImageButton shareURLButton = (ImageButton) getActivity().findViewById(\n R.id.sharePostLink);\nImageButton viewPostButton = (ImageButton) getActivity().findViewById(\n R.id.viewPost);\n\ntv.setVisibility(View.GONE);\nwebView.setVisibility(View.VISIBLE);\nString html = StringHelper.addPTags(post.getDescription()\n + \"\\n\\n\" + post.getMt_text_more());\n\nString htmlText = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?><html><head><link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"webview.css\\\" /></head><body><div id=\\\"container\\\">\"\n + html + \"</div></body></html>\";\nwebView.loadDataWithBaseURL(\"file:///android_asset/\", htmlText,\n \"text/html\", \"utf-8\", null);\n\n if (post.isLocalDraft()) {\n shareURLButton.setVisibility(View.GONE);\n viewPostButton.setVisibility(View.GONE);\n } else {\n shareURLButton.setVisibility(View.VISIBLE);\n viewPostButton.setVisibility(View.VISIBLE);\n }\n\n}", "title": "" }, { "docid": "0e6b8648def42dde023d730f5f1101d0", "score": "0.4937942", "text": "public String getPublishUrl()\n {\n return _publishUrl;\n }", "title": "" } ]
2cdae56fd5d2b02c05f74b99cb57f6de
mDialogFragment may not be visible yet in parent fragment's onResume(). To be able to dismiss dialog at that time, don't check mDialogFragment.isVisible().
[ { "docid": "0b0385a7ecf2cb2af6e7ec5e37fc4193", "score": "0.0", "text": "protected void removeDialog(int dialogId) {\n if (mDialogFragment != null && mDialogFragment.getDialogId() == dialogId) {\n mDialogFragment.dismiss();\n }\n mDialogFragment = null;\n }", "title": "" } ]
[ { "docid": "b0170d9bc2676fd70298de013ffa88a3", "score": "0.696477", "text": "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(super.isVisible()){\n\t\t\tonFragmentResume();\n\t\t}\n\t}", "title": "" }, { "docid": "a6a25ca6a7949f0b9a7d79c42991f658", "score": "0.69125605", "text": "@Override\r\n public void onDismiss(DialogInterface dialog) {\n if (!mIsPaused) {\r\n mDeleteDialogVisible = false;\r\n }\r\n }", "title": "" }, { "docid": "9b3bda399279d0baf7ec92ab0d495712", "score": "0.6221786", "text": "@Override\n \tpublic void onDestroyView() {\n \t\tif (getDialog() != null && getRetainInstance())\n \t\t\tgetDialog().setDismissMessage(null);\n \t\tsuper.onDestroyView();\n \t}", "title": "" }, { "docid": "2b6b2ce639d8faf2e35518d68276fa8a", "score": "0.61638445", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif (dialog != null && dialog.isShowing()) {\n\t\t\tdialog.dismiss();\n\t\t\tdialog = null;\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "b9d49af2dae5bc459d944a440a290684", "score": "0.6142452", "text": "@Override\n public void onDetach() {\n dismissDialog();\n super.onDetach();\n }", "title": "" }, { "docid": "78091615a0840cd7b43b8c12f0c5e146", "score": "0.6122071", "text": "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "title": "" }, { "docid": "78091615a0840cd7b43b8c12f0c5e146", "score": "0.6122071", "text": "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "title": "" }, { "docid": "daa6b2775019ca8601f53e48f002b39f", "score": "0.59495103", "text": "public void onDialogNegativeClick (DialogFragment dialog) {\n \treturn;\n }", "title": "" }, { "docid": "efd2506592eaaafbcdb2d5296097a38a", "score": "0.5924982", "text": "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n\n }", "title": "" }, { "docid": "5aa26167b1563b0bcdd706daac9aa164", "score": "0.5912646", "text": "@Override\n public void onDismiss(DialogInterface dialog) {\n if (null != mDialogCallBack) mDialogCallBack.dismissFunction();\n\n }", "title": "" }, { "docid": "4e6f79f6b8a1fc6c395fc8d6480cf46b", "score": "0.5857061", "text": "@Override\n\t\tpublic void onPause()\n\t\t{\n\t\t\tdismiss();\n\t\t\tsuper.onPause();\n\t\t}", "title": "" }, { "docid": "4e6f79f6b8a1fc6c395fc8d6480cf46b", "score": "0.5857061", "text": "@Override\n\t\tpublic void onPause()\n\t\t{\n\t\t\tdismiss();\n\t\t\tsuper.onPause();\n\t\t}", "title": "" }, { "docid": "4e6f79f6b8a1fc6c395fc8d6480cf46b", "score": "0.5857061", "text": "@Override\n\t\tpublic void onPause()\n\t\t{\n\t\t\tdismiss();\n\t\t\tsuper.onPause();\n\t\t}", "title": "" }, { "docid": "a9b5e4f71befad18945aa04b795a3c96", "score": "0.5810427", "text": "public void onResume() {\n/* 248 */ super.onResume();\n/* 249 */ if (!this.permissionToRecordAccepted) {\n/* 250 */ dismiss();\n/* */ }\n/* */ }", "title": "" }, { "docid": "774591958073c3db6c7631162235256e", "score": "0.57834643", "text": "protected void onPreExecute() {\n try {\n if (!dialog.isShowing()) {\n dialog.show();\n }\n }catch (Exception e){}\n\t}", "title": "" }, { "docid": "0af60580531aca1c4b0c20ca40da7ec5", "score": "0.5782597", "text": "@Override\n public void onStop(){\n // Suspend remaining UI updates, threads, or processing\n // that aren’t required when the Fragment isn’t visible.\n super.onStop();\n }", "title": "" }, { "docid": "d8ea202c5d90539581fbb4d8c7bae815", "score": "0.5766834", "text": "@Override\n\tpublic void onDialogNegativeClick(DialogFragment dialog) {\n\t\t\n\t}", "title": "" }, { "docid": "1af49b97cde9e7e17c810ea4a72b2cd1", "score": "0.5766504", "text": "public ErrorDialogFragment() {\n super();\n mDialog = null;\n }", "title": "" }, { "docid": "1af49b97cde9e7e17c810ea4a72b2cd1", "score": "0.5766504", "text": "public ErrorDialogFragment() {\n super();\n mDialog = null;\n }", "title": "" }, { "docid": "1af49b97cde9e7e17c810ea4a72b2cd1", "score": "0.5766504", "text": "public ErrorDialogFragment() {\n super();\n mDialog = null;\n }", "title": "" }, { "docid": "accc0d8fe22a21822237cdb610f6ba55", "score": "0.57493764", "text": "@Override\n public void onResume(){\n super.onResume();\n Log.d (\"Other Fragment\", \"onResume\");\n // Resume any paused UI updates, threads, or processes required\n // by the Fragment but suspended when it became inactive.\n }", "title": "" }, { "docid": "dec3c89c02dad2315b452d7740ec1cba", "score": "0.5742433", "text": "@Override\n public void onResume() {\n super.onResume();\n final AlertDialog ad = (AlertDialog) getDialog();\n Button save = ad.getButton(AlertDialog.BUTTON_POSITIVE);\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n boolean empty = false;\n for(EditText e : etList){\n if(e.getText().toString().isEmpty()){\n empty = true;\n e.setError(\"This field can not be blank\");\n }else{\n e.setError(null);\n }\n }\n //checkParameterValues();\n if(!empty && !checkParameterValues()){\n ad.dismiss();\n //Put function storing values into graph fragment here\n ParameterListener p = (ParameterListener) getTargetFragment();\n p.onFinishDialog(etList);\n }else if(empty){\n Toast.makeText(getContext(), \"Empty fields must be completed before saving\", Toast.LENGTH_LONG).show();\n }else if(checkParameterValues()){\n Toast.makeText(getContext(), \"Please recheck parameter values\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "title": "" }, { "docid": "72df9730b4effa43aba84023c6bfda25", "score": "0.57416874", "text": "public void onAlertFragmentDismissed() {\n finish();\n }", "title": "" }, { "docid": "bbd2393c002d7dc0f0fb535cae238c80", "score": "0.569756", "text": "public void onDialogShowing() {\n }", "title": "" }, { "docid": "7172bc28275ec5bb38b8451a08d73a2b", "score": "0.5689028", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n notifyDataSetChanged();\n\n dialog.cancel();\n\n // showMyFragment(v);\n\n\n\n // showMyFragment(v);\n }", "title": "" }, { "docid": "a7ec99bae89970ee9ae8a3d6346194cc", "score": "0.5688672", "text": "@Override\n\tpublic void onFragmentResume() {\n\t\t\n\t}", "title": "" }, { "docid": "a47b1acc4f3211d2334f5b46f2548bb8", "score": "0.56884485", "text": "public ErrorDialogFragment() {\n\t\t\tsuper();\n\t\t\tmDialog = null;\n\t\t}", "title": "" }, { "docid": "a47b1acc4f3211d2334f5b46f2548bb8", "score": "0.56884485", "text": "public ErrorDialogFragment() {\n\t\t\tsuper();\n\t\t\tmDialog = null;\n\t\t}", "title": "" }, { "docid": "9ce86c6a7b26adefecbaf25d101ac626", "score": "0.56729645", "text": "@Override\n\tpublic void onFragmentResume() {\n\n\t}", "title": "" }, { "docid": "7b772dff6c0b5ff98d2f8f04d859da57", "score": "0.56709355", "text": "@Override\n protected void onStop() {\n super.onStop();\n if ( ldialog != null)\n ldialog.dismiss();\n }", "title": "" }, { "docid": "ae060e830e97d0f2debc46c5d85f1088", "score": "0.56657994", "text": "private void onRestoreState() {\n if (controller == null || restoredInstanceState == null) return;\n boolean isDialogVisible = restoredInstanceState.getBoolean(STATE_INSPECTOR_DIALOG_VISIBLE, false);\n if (isDialogVisible) {\n showAnnotationInspector(false);\n }\n restoredInstanceState = null;\n }", "title": "" }, { "docid": "50584840d71e5312ec0edf4304057c3d", "score": "0.56630754", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif(dialog!=null)\n\t\t{\n\t\t\tdialog.dismiss();\t\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "2f66ad983bbda62a57c8d6f37c0560f2", "score": "0.5660979", "text": "@Override\n public void onStop(){\n Log.d (\"Other Fragment\", \"onStop\");\n // Suspend remaining UI updates, threads, or processing\n // that aren't required when the Fragment isn't visible.\n super.onStop();\n }", "title": "" }, { "docid": "b8426f7fa4dd1695f5ea621e5560617f", "score": "0.5657698", "text": "public void onPause() {\n super.onPause();\n this.mResume = false;\n OPTimerDialog oPTimerDialog = this.alertDialog;\n if (oPTimerDialog != null && oPTimerDialog.isShowing()) {\n this.mHandler.obtainMessage(1000);\n }\n dismissShutdownDialog();\n }", "title": "" }, { "docid": "13c75645d33be3fc4f93fb1e5a365e4f", "score": "0.5636001", "text": "@Override\n public void onUniversalDialogNegativeClick(DialogFragment _dialog)\n {\n }", "title": "" }, { "docid": "280b296545758a6b8882c0648aea68ec", "score": "0.56301355", "text": "@Override\n\tpublic void dismissDialog() {\n\t\twaitDialog.dismiss();\n\t}", "title": "" }, { "docid": "4628301e1b0e64ec96449c6d6fe649dc", "score": "0.5619572", "text": "@Override\n protected void onPause() {\n super.onPause();\n isActivityVisible = false;\n }", "title": "" }, { "docid": "a63103dff87071ce10bca3e0cd018e7f", "score": "0.558633", "text": "@Override\n public void onDismiss(DialogInterface dialog) {\n finish();\n }", "title": "" }, { "docid": "8520b1198ed36d220ae1cdbb1cfd6cb7", "score": "0.5584729", "text": "@Override\n public void onDialogNegativeClick(DialogFragment dialog){\n //No action needed as this click indicates the user does not want\n //to update\n }", "title": "" }, { "docid": "e6c834fb4317a97403a99b1cccb12b04", "score": "0.5584335", "text": "@Override // androidx.appcompat.app.AppCompatDialog\n public void onStop() {\n super.onStop();\n dismiss();\n AdbWirelessDialogListener adbWirelessDialogListener = this.mListener;\n if (adbWirelessDialogListener != null) {\n adbWirelessDialogListener.onDismiss();\n }\n }", "title": "" }, { "docid": "8ef07d25aa3e5336351b943814d7da88", "score": "0.55779564", "text": "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\n\t\t\tif (pDialog.isShowing())\n\t\t\t\tpDialog.dismiss();\n\t\t}", "title": "" }, { "docid": "03588359aa021f4f9a9cfd5ce1fb1451", "score": "0.5573508", "text": "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n onResume();\n }", "title": "" }, { "docid": "825420d3d4e20c5e82e2d1dc3337503a", "score": "0.5571304", "text": "private void hideProgressDialog() {\n if (pDialog.isShowing())\n pDialog.hide();\n }", "title": "" }, { "docid": "d9f38ba1760a674a575f49c2e7bd9846", "score": "0.5560704", "text": "private void stopDialog() {\r\n\t\tthis.pd.dismiss();\r\n\t}", "title": "" }, { "docid": "38be3f5f42bfd9ad7b19a0f798a16a55", "score": "0.55597705", "text": "@Override\n public void shouldDismissLoadingDialog() {\n dismissWaitingDialog();\n }", "title": "" }, { "docid": "e6e5f3302a2447dda5c2f9a2df1340a7", "score": "0.5559696", "text": "@Override\n public void onResume(){\n super.onResume();\n // Resume any paused UI updates, threads, or processes required\n // by the Fragment but suspended when it became inactive.\n }", "title": "" }, { "docid": "3c609a36be862ee8ff88d292230b0c9a", "score": "0.55457246", "text": "@Override\n protected void onResume() {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.detach(mFragment).attach(mFragment).commit();\n\n super.onResume();\n\n if (!AWSMobileClient.defaultMobileClient().getIdentityManager().isUserSignedIn()) {\n // In the case that the activity is restarted by the OS after the application\n // is killed we must redirect to the splash activity to handle the sign-in flow.\n Intent intent = new Intent(this, SplashActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n return;\n }\n\n }", "title": "" }, { "docid": "b11921d2df08240a15036dcffe51e5b7", "score": "0.5536765", "text": "@Override\n public void onDialogCanceled() {\n }", "title": "" }, { "docid": "e70db1e38d8b226cd941e3decbd799aa", "score": "0.5535695", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tif(pDialog == null){\n\t\t\t\tpDialog = Util.createProgressDialog(getActivity());\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();}\n\t\t\telse{\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t}}", "title": "" }, { "docid": "e70db1e38d8b226cd941e3decbd799aa", "score": "0.5535695", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tif(pDialog == null){\n\t\t\t\tpDialog = Util.createProgressDialog(getActivity());\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();}\n\t\t\telse{\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t}}", "title": "" }, { "docid": "e171300ed8d04e79bb4d76377f84aada", "score": "0.55311877", "text": "@Override\n public void onShow(DialogInterface dialogInterface) {\n }", "title": "" }, { "docid": "a5e45999deed3184f49f12cdfeec91ad", "score": "0.5527928", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSystem.gc();\n\t\tif(goRecent.equalsIgnoreCase(Constants.KEY_UPDATE_DISPOS_TO_PROCEED)){\n\t\t\tdialog = new Dialog(MainActivity.this);\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tWindowManager.LayoutParams WMLP = dialog.getWindow().getAttributes();\n\t\t\tWMLP.gravity = Gravity.CENTER;\n\t\t\tdialog.getWindow().setAttributes(WMLP);\n\t\t\tdialog.getWindow().setBackgroundDrawable(\n\t\t\t\t\tnew ColorDrawable(android.graphics.Color.TRANSPARENT));\n\t\t\tdialog.setCancelable(false);\n\t\t\tdialog.setCanceledOnTouchOutside(false);\n\t\t\tdialog.setContentView(R.layout.loginalert);\n\n\t\t\tTextView messageText = (TextView)dialog.findViewById(R.id.alerttext);\n\t\t\tmessageText.setText(R.string.login_update_response);\n\n\t\t\tButton okButton = (Button)dialog.findViewById(R.id.emailok);\n\t\t\tokButton.setOnClickListener(this);\n\n\t\t\tButton cencelButton = (Button)dialog.findViewById(R.id.emailCancel);\n\t\t\tcencelButton.setOnClickListener(this);\n\n\t\t\tdialog.show();\t\n\t\t}else{\n\t\t\tloadAllData();\n\t\t}\n\t}", "title": "" }, { "docid": "487de73d8cae99ecd9bc3eebd902ba6a", "score": "0.5521114", "text": "@Override\n public void onDismiss(DialogInterface dialog) {\n\n }", "title": "" }, { "docid": "6d212e5ae915ae105404cc37cf7959cb", "score": "0.5514947", "text": "@Override\n\tpublic void onDismiss(DialogInterface dialog) {\n\t\tsuper.onDismiss(dialog);\n\t\tLog.d(TAG, \"onDismiss()\");\n\t\tCalculationsResultList.get(getActivity()).clear();\n\t\tsIsDialogOpen = false;\n\t}", "title": "" }, { "docid": "46c489a3dae1b26be44ccef813a5e25b", "score": "0.55056626", "text": "@Override\n public void onAlertNegativeClick() {\n Toast.makeText(this, \"stay in fragment!\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "52e75b29c6ba346271b176f46453aab4", "score": "0.5501728", "text": "@Override\n\tpublic void onResumeFragments() {\n\n\t\tif (fm.findFragmentById(R.id.fragmentContainer) == null) {\n\t\t\tmDate_Fragment = new DateFragment();\n\t\t\tfm.beginTransaction().add(R.id.fragmentContainer, mDate_Fragment, DATE_FRAGMENT_TAG).commit();\n\t\t\tmSolarTiltData.mFragmentShown = true;\n\t\t}\n\t}", "title": "" }, { "docid": "6ff394156deccd119e163e0f85a93886", "score": "0.54994315", "text": "@Override\n\t protected void onDestroy() {\n\t try{\n\t pDialog.dismiss();\n\t pDialog2.dismiss();\n\t }catch (Exception e) {\n\t System.out.println(\"myDialog取消,失败!\");\n\t // TODO: handle exception\n\t }\n\t super.onDestroy();\n\t }", "title": "" }, { "docid": "659c31ac532eeee02196ee8b626da472", "score": "0.5493862", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n if(mDialog!=null && mDialog.isShowing()){\n mDialog.dismiss();\n }\n }", "title": "" }, { "docid": "cf5d79875717335c94d2312862e04c2c", "score": "0.54862016", "text": "public static void maybeDismiss(FragmentManager fragmentManager) {\n ProgressDialogFragment dialogFragment = findProgressDialogFragment(fragmentManager);\n if (dialogFragment != null) {\n dialogFragment.dismiss();\n }\n }", "title": "" }, { "docid": "9f5e88d90bc80253d0a1ea8c21176e3d", "score": "0.547233", "text": "@Override\n public void onResume() {\n super.onResume();\n\n // Shows a toast message (a pop-up message)\n Toast.makeText(getActivity(), \"DetailFragment.onResume()\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "123952b04f9d776e350db6ff8d3cf87e", "score": "0.54671675", "text": "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tAdLoaded = false;\n\t\tif (mAdView != null) {\n\t\t\tmAdView.resume();\n\t\t}\n\t}", "title": "" }, { "docid": "f84dedc85b3485aba4dbd3efb6f5730c", "score": "0.54639953", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View parentView = inflater.inflate(R.layout.fragment_chose_update_dialog, container, false);\n getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n Button update = parentView.findViewById(R.id.btn_update);\n ImageButton dissmissDialog = parentView.findViewById(R.id.ib_cancel);\n\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n final FirebaseUser mFirebaseUser = mAuth.getCurrentUser();\n\n update.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n if(mListener != null){\n dismiss();\n mListener.onUpdateClickDialog();\n }\n\n }\n });\n\n\n dissmissDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dismiss();\n }\n\n\n });\n return parentView;\n }", "title": "" }, { "docid": "998a9d230c94053031f611dcdf4f3577", "score": "0.546082", "text": "public void hideProgressDialog() {\n AppLog.d(TAG, \"-> hideProgressDialog() called\");\n try {\n if (progressDialog != null && progressDialog.isShowing()) {\n blockUserInput(false);\n progressDialog.dismiss();\n }\n } catch (Throwable throwable) {\n AppLog.e(TAG, throwable.toString());\n FabricUtils.fabricException(throwable);\n }\n\n finally {\n progressDialog = null;\n }\n }", "title": "" }, { "docid": "77a470aa3e686c0d885ffe5e58b9875a", "score": "0.5439792", "text": "@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n dialog = ProgressDialog.show(getActivity(), \"\",\r\n \" Please wait...\", true);\r\n }", "title": "" }, { "docid": "df19fd744f19a9f30028c4d7540198cf", "score": "0.54393387", "text": "@Override\n public void onPauseFragment() {\n\n }", "title": "" }, { "docid": "369bfab265e2f289d15cbfb355b1c9a9", "score": "0.54318005", "text": "@Override\r\n public void onResume() {\r\n super.onResume();\r\n if (mAdView != null) {\r\n mAdView.resume();\r\n }\r\n }", "title": "" }, { "docid": "efa1adf25386c45bca1ea3e7e43f1f5c", "score": "0.5430082", "text": "public void removeAllFragment() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n\n //Remove full screen dialof if running\n Fragment fullScreenDialogFragment = fragmentManager.findFragmentByTag(\"full_player\");\n try {\n if (fullScreenDialogFragment != null) {\n if (fullScreenDialogFragment instanceof DialogFragment) {\n ((DialogFragment) fullScreenDialogFragment).dismiss();\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER);\n }\n fragmentManager.beginTransaction().remove(fullScreenDialogFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n removeFragFromBackStack();\n }", "title": "" }, { "docid": "e39cb0061f678422ef77f1f7c421f610", "score": "0.542928", "text": "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Cargando... si desea cancelar presione fuera\");\n pDialog.setIndeterminate(false);\n // pDialog.setCancelable(false);\n pDialog.show();\n }", "title": "" }, { "docid": "9d9359ecc91268d169e52eeb446bf19d", "score": "0.5421152", "text": "public boolean onBeforeDismiss() {\n return true;\n }", "title": "" }, { "docid": "94c256b13cffc0c646587c856de0baad", "score": "0.5418652", "text": "public boolean isDialogShowable();", "title": "" }, { "docid": "3d32b8a1fb15901eb594c4f5a34a8919", "score": "0.54140264", "text": "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\t\n\t\tgetActivity().getSupportFragmentManager().beginTransaction().remove(this).commit();\n\t}", "title": "" }, { "docid": "8857f9ba47c65d43a7641669aa49cdc8", "score": "0.54023546", "text": "@Override\n public void onResume() {\n Window window = getDialog().getWindow();\n if (window!=null){\n window.setLayout(WindowManager.LayoutParams.MATCH_PARENT,\n WindowManager.LayoutParams.MATCH_PARENT);\n }\n super.onResume();\n }", "title": "" }, { "docid": "66950bb1c58eff47ea22efbc14e85804", "score": "0.5400732", "text": "private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "title": "" }, { "docid": "a77a319fe0bafc65a2422abaca1ffef1", "score": "0.5398205", "text": "@Override\n public void onResume() {\n super.onResume();\n if (mAdView != null) {\n mAdView.resume();\n }\n }", "title": "" }, { "docid": "a77a319fe0bafc65a2422abaca1ffef1", "score": "0.5398205", "text": "@Override\n public void onResume() {\n super.onResume();\n if (mAdView != null) {\n mAdView.resume();\n }\n }", "title": "" }, { "docid": "a77a319fe0bafc65a2422abaca1ffef1", "score": "0.5398205", "text": "@Override\n public void onResume() {\n super.onResume();\n if (mAdView != null) {\n mAdView.resume();\n }\n }", "title": "" }, { "docid": "771a06dfd63c3bc50fb5e076988193e1", "score": "0.53950536", "text": "public final void onResume() {\n super.onResume();\n bkcz bkcz = (bkcz) getSupportFragmentManager().findFragmentByTag(\"RootChimeraActivity.NETWORK_ERROR_DIALOG\");\n this.f110293k = bkcz;\n if (bkcz != null) {\n bkcz.f124032a = this;\n }\n m94060n();\n }", "title": "" }, { "docid": "8754250759d4a3ddc0be5b1ef57a833a", "score": "0.5377884", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n if (this.f106623I) {\n setupWithViewPager(null);\n this.f106623I = false;\n }\n }", "title": "" }, { "docid": "9d76e9208bf669f8976bb9dfe2163526", "score": "0.53614724", "text": "public boolean isOkToGoBack() {\n if (isWorkInProgress()) {\n AlertDialogFragment dialogFragment = AlertDialogFragment.newInstance(null,\n getString(R.string.dialog_message_discard_changes),\n getString(R.string.dialog_button_discard),\n getString(R.string.dialog_button_cancel));\n dialogFragment.show(getFragmentManager(), DIALOG_FRAGMENT_DISCARD_CHANGES);\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "7b2941613f17393a1c9da44af1bb9669", "score": "0.53536135", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n String error = getArguments().getString(ARG_ERROR);\n String message = getArguments().getString(ARG_MESSAGE);\n motivation = getArguments().getInt(ARG_MOTIVATION);\n\n //initialize the Dialog class to be returned, set parameters of the Dialog class\n dialog = new Dialog(getActivity());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n setCancelable(false);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_online_error_message);\n\n //retrieve widget references and initialize them (if required)\n Button okButton = (Button) dialog.findViewById(R.id.ok_error_button);\n TextView showedMessage = (TextView) dialog.findViewById(R.id.error_message_text);\n //show the user the message\n if(message.equals(\"timeout\"))\n showedMessage.setText(getString(R.string.game_terminated_timeout));\n else\n showedMessage.setText(getString(R.string.game_terminated_generic,message));\n //set the onClickListener\n okButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //tell the activity that should stop the match\n sendResult(Activity.RESULT_OK, MatchMenuActivityActions.STOP_ONLINE, motivation);\n dialog.dismiss();\n }\n });\n\n return dialog;\n }", "title": "" }, { "docid": "c678b09c544968f10320ad88fab08730", "score": "0.5351471", "text": "private void hideProgress() {\n \tif(progressBar.getVisibility() == View.VISIBLE){\r\n \t\tprogressBar.setVisibility(View.GONE);\r\n \t}\r\n //\t\tif (dialog != null && dialog.isShowing()) {\r\n //\t\t\tdialog.dismiss();\r\n //\t\t}\r\n \t}", "title": "" }, { "docid": "702cc3a1ef1866ed41a88b646060bcee", "score": "0.53507125", "text": "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) \r\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n builder.setTitle(title);\r\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n {\r\n \t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) \r\n \t{\r\n // FIRE ZE MISSILES!\r\n \t}\r\n });\r\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener()\r\n {\r\n \t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) \r\n \t{\r\n \t\tdialog.dismiss();\r\n \t}\r\n });\r\n return builder.create();\r\n }", "title": "" }, { "docid": "e97e2db55bdea4a33c204d4e9cc82178", "score": "0.53461105", "text": "@Override\n\tpublic void onFragmentPaused() {\n\n\t}", "title": "" }, { "docid": "3254bd074422c5aec1fa7133b2a2c405", "score": "0.5343186", "text": "@Override\n\t\tpublic void onResume() {\n\t\t\tsuper.onResume();\n\t\t\tif (mAdView != null) {\n\t\t\t\tmAdView.resume();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "788136f84988216f0ad3eb6165f420a3", "score": "0.5341955", "text": "private void showFilterDialog() {\n\t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n\t\tFragment prev = getSupportFragmentManager().findFragmentByTag(\n\t\t\t\t\"dialog_dialog\");\n\t\tif (prev != null) {\n\t\t\tft.remove(prev);\n\t\t}\n\t\tft.addToBackStack(null);\n\t\tFilterDialogFragment fd = new UserFilterDialogFragment();\n\t\tfd.show(ft, \"filter_dialog\");\n\t}", "title": "" }, { "docid": "bc66371a49d2b4317479f8dc5d3db343", "score": "0.53417313", "text": "@Override\n\tpublic void onFragmentPaused() {\n\t\t\n\t}", "title": "" }, { "docid": "60a544f17c7e362626d3f7fba06977e8", "score": "0.5338086", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n \n builder.setTitle(R.string.contract_title);\n builder.setMessage(dialog);\n builder.setPositiveButton(R.string.contract_accept, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n \t \tGameSetup.thePlayer.hasContract = true;\n \t\tGameSetup.thePlayer.setContract(contract);\n \t\tButton contractButton = (Button) findViewById(R.id.planet_button_contract);\n \t\tcontractButton.setEnabled(false);\n \t\tToast.makeText(context, \"You've accepted the contract\", Toast.LENGTH_LONG).show();\n }\n })\n .setNegativeButton(R.string.contract_decline, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "078ab917218e86b46a02e2b4d1e56f92", "score": "0.5329149", "text": "@MainThread\n public void dismissDialog() {\n mDialogManager.dismissDialog(mModel, DialogDismissalCause.ACTION_ON_CONTENT);\n }", "title": "" }, { "docid": "029b823d54955708656bb0088007aa41", "score": "0.53243184", "text": "@Override\n public void onBackPressed() {\n Fragment fragment=getSupportFragmentManager().findFragmentByTag(FIND_JOB_FRAGMENT);\n Log.i(\"shilo\",\"the findFragmentByTag(FIND_JOB_FRAGMENT) is \"+fragment);\n if (fragment!=null && fragment.isVisible()) {\n Log.i(\"shilo\",\"get into findjobfragment onbackpressed\");\n final AlertDialog dialog = new AlertDialog.Builder(this)\n .setView(R.layout.exit_layout)\n .show();\n Button accept = (Button) dialog.getWindow().findViewById(R.id.dialogAccpet);\n Button cancel = (Button) dialog.getWindow().findViewById(R.id.dialogCancel);\n\n accept.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Log.i(\"shilo\", \"should finish activity\");\n setResult(MAIN_DESKTOP_ACTIVITY);\n finish();\n }\n });\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n }\n else {\n actionImageButtonLeft.setImageDrawable(mainLeftTitle);\n actionBarTitle.setText(getString(R.string.titleEnteranceTextView));\n if (leftTitle != null)\n leftTitle.setText(\"\");\n super.onBackPressed();\n }\n }", "title": "" }, { "docid": "680101e9f038304b3d9f5f8137226c40", "score": "0.53235555", "text": "@Override \n\tpublic void onResume() {\n\tsuper.onResume(); \n\tSystem.out.println(\"Finder_Upload_2_Fragment--onResume\"); \n\t}", "title": "" }, { "docid": "4521592dadab69e07a28972a37d49707", "score": "0.53216875", "text": "public void onAlertFragmentDismissed(final int dialogType) {\n if (dialogType != AlertDialogFragment.DIALOG_NO_OPTIONS_SELECTED) {\n finish();\n }\n }", "title": "" }, { "docid": "6ed17b8091760a8b7cd86d3a9639990c", "score": "0.5311714", "text": "public void onDialogDismissed(int reason) throws android.os.RemoteException;", "title": "" }, { "docid": "d0a654d90cb7b6da80590d04124035b8", "score": "0.5311264", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.login_box)\n .setPositiveButton(\"Login\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Go to the Login screen when the user taps login\n startActivity(new Intent(getActivity(), LoginActivity.class));\n }\n })\n .setNegativeButton(\"Not Now\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //do nothing to cancel the dialog box when the user selects 'Not Now'\n }\n });\n // Create the AlertDialog object and return it to the Fragment Manager\n return builder.create();\n }", "title": "" }, { "docid": "b8aeb25f57d9538b4a1370a172e84f29", "score": "0.5297092", "text": "@Override\n public void onPause(){\n unregisterReceiver(mBluetoothReceiver);\n unregisterReceiver(mWifiReceiver);\n\n // Try to fix this so that we don't lose the dialog.\n //Log.i(DEBUG_TAG, \"Trying to dismiss the dialog [ProfileList]\");\n if (mDialog instanceof Dialog) {\n mDialog.dismiss();\n }\n super.onPause();\n }", "title": "" }, { "docid": "fa3473772fdf2a6c1d2a897713e87000", "score": "0.5295879", "text": "@Override\n public void onLeaveClick() {\n new AlertDialog.Builder(getActivity())\n .setTitle(R.string.room_participants_leave_prompt_title)\n .setMessage(R.string.room_participants_leave_prompt_msg)\n .setPositiveButton(R.string.leave, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mProgressView.setVisibility(View.VISIBLE);\n\n mRoom.leave(new ApiCallback<Void>() {\n @Override\n public void onSuccess(Void info) {\n if (null != getActivity()) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n getActivity().finish();\n }\n });\n }\n }\n\n private void onError(final String errorMessage) {\n if (null != getActivity()) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mProgressView.setVisibility(View.GONE);\n Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n\n @Override\n public void onNetworkError(Exception e) {\n onError(e.getLocalizedMessage());\n }\n\n @Override\n public void onMatrixError(final MatrixError e) {\n if (getVectorActivity() != null && MatrixError.M_CONSENT_NOT_GIVEN.equals(e.errcode)) {\n getVectorActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mProgressView.setVisibility(View.GONE);\n\n getVectorActivity().getConsentNotGivenHelper().displayDialog(e);\n }\n });\n } else {\n onError(e.getLocalizedMessage());\n }\n }\n\n @Override\n public void onUnexpectedError(Exception e) {\n onError(e.getLocalizedMessage());\n }\n });\n\n }\n })\n .setNegativeButton(R.string.cancel, null)\n .show();\n }", "title": "" }, { "docid": "1df3ad2ccf7cf00acf3767097b04eda4", "score": "0.5295685", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "title": "" }, { "docid": "1df3ad2ccf7cf00acf3767097b04eda4", "score": "0.5295685", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "title": "" }, { "docid": "1df3ad2ccf7cf00acf3767097b04eda4", "score": "0.5295685", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "title": "" }, { "docid": "8ccbfd13f36bc3b26ae0ff01c26dc8b9", "score": "0.5295345", "text": "public void dismissLoadingDialog() {\r\n handler.post(\r\n new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n dismissDialog(DIALOG_LOAD);\r\n } catch (IllegalArgumentException e) {}\r\n }\r\n }\r\n );\r\n }", "title": "" }, { "docid": "7fe4c0a36adb53cd979d5f502aad5798", "score": "0.52931815", "text": "@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n dialog = ProgressDialog.show(getActivity(), \"\",\r\n \" Please wait...\", true,true);\r\n }", "title": "" }, { "docid": "74fd27c0c1bd6531a896e17baf78c145", "score": "0.52870023", "text": "@Override\r\n\tprotected void onPreExecute() {\r\n\t\tsuper.onPreExecute();\r\n\t\t/** if Dialog is not null **/\r\n\t\tif(dialog != null){\r\n\t\t\tdialog.show();\r\n\t\t}\r\n\t\t/** END **/\r\n\t\t\r\n\t\t/** if progress is not null **/\r\n\t\tif(progressLayout != null){\r\n\t\t\tprogressLayout.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\t/** END **/\r\n\t\t\r\n\t}", "title": "" } ]
d92f2c81f3a082b15fd725c23da11765
hmmm these are inconsistent re: inclusion of limit values
[ { "docid": "589d8b564e196d77fd4a3b6dff860d10", "score": "0.0", "text": "public boolean isInsideLimits(int value) {\n return value > lowerLimit && value < upperLimit;\n }", "title": "" } ]
[ { "docid": "01734c7498180ca0f60338e18ffdb505", "score": "0.56362927", "text": "Limits limits();", "title": "" }, { "docid": "7adb37907b73eb9ecfd4067420b6cb3e", "score": "0.5338613", "text": "public void estimateParameter(){\r\n int endTime=o.length;\r\n int N=hmm.stateCount;\r\n double p[][][]=new double[endTime][N][N];\r\n for (int t=0;t<endTime;++t){\r\n double count=EPS;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]=fbManipulator.alpha[t][i]*hmm.a[i][j]*hmm.b[i][j][o[t]]*fbManipulator.beta[t+1][j];\r\n count +=p[t][j][j];\r\n }\r\n }\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]/=count;\r\n }\r\n }\r\n }\r\n double pSumThroughTime[][]=new double[N][N];\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]=EPS;\r\n }\r\n }\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n //rebuild gamma\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i) fbManipulator.gamma[t][i]=0;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n fbManipulator.gamma[t][i]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n double gammaCount=EPS;\r\n //maximum parameter\r\n for (int i=0;i<N;++i){\r\n gammaCount+=fbManipulator.gamma[0][i];\r\n hmm.pi[i]=fbManipulator.gamma[0][i];\r\n }\r\n for (int i=0;i<N;++i){\r\n hmm.pi[i]/=gammaCount;\r\n }\r\n\r\n for (int i=0;i<N;++i) {\r\n gammaCount = EPS;\r\n for (int t = 0; t < endTime; ++t) gammaCount += fbManipulator.gamma[t][i];\r\n for (int j = 0; j < N; ++j) {\r\n hmm.a[i][j] = pSumThroughTime[i][j] / gammaCount;\r\n }\r\n }\r\n for (int i=0;i<N;i++){\r\n for (int j=0;j<N;++j){\r\n double tmp[]=new double[hmm.observationCount];\r\n for (int t=0;t<endTime;++t){\r\n tmp[o[t]]+=p[t][i][j];\r\n }\r\n for (int k=0;k<hmm.observationCount;++k){\r\n hmm.b[i][j][k]=(tmp[k]+1e-8)/pSumThroughTime[i][j];\r\n }\r\n }\r\n }\r\n //rebuild fbManipulator\r\n fbManipulator=new HMMForwardBackwardManipulator(hmm,o);\r\n }", "title": "" }, { "docid": "31e86c571fae895f239a7ddf4bc3ddf1", "score": "0.5256748", "text": "public void setMiterLimit(float limit);", "title": "" }, { "docid": "041a06782c8ebcc798fb6901041eb637", "score": "0.51309234", "text": "@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }", "title": "" }, { "docid": "5ad2605c938cfe59189cdad788cba790", "score": "0.5052774", "text": "Range controlLimits();", "title": "" }, { "docid": "e71fb05ad12f932411552b8bef1e076d", "score": "0.5032142", "text": "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9d1213f91cd2ea9df8089fe48c919055", "score": "0.5001746", "text": "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "title": "" }, { "docid": "fc3e8e07db5d293b0e5b3fecd5953cf3", "score": "0.49928123", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.m_minWordP = (-988.56143);\n double double0 = naiveBayesMultinomialText0.getMinWordFrequency();\n assertEquals((-988.56143), double0, 0.01);\n }", "title": "" }, { "docid": "1e348751ec9ea1b919baffe8840b9dcb", "score": "0.4963817", "text": "@Test\n public void testIsInLimitUpper() {\n Assertions.assertFalse(saab.isInLimit(.5, 1.5, 2.0));\n }", "title": "" }, { "docid": "91f7955d82b277fedfe9873bc2c0bb07", "score": "0.49513984", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"probToLogOdds: probability must be in [0,1] \");\n assertEquals(\"probtologod: prob must be in [0,1] \", string0);\n }", "title": "" }, { "docid": "c68b1891ee2ac1d494f259a5268030db", "score": "0.4933035", "text": "public static void parametrik(Matriks M) {\r\n\t\t// KAMUS LOKAL\r\n\t\tchar[] varAlp = new char[10];\r\n\t\tint unusedAlpIdx = 0;\r\n\t\tchar[] valOfVar = new char[M.KolEff];\r\n\t\tdouble[] numOfVar = new double[M.KolEff];\r\n\r\n\r\n\t\t// ALGORITMA\r\n\t\tvarAlp[0] = 'q';\r\n\t\tvalOfVar[0] = 'A';\r\n\t\tnumOfVar[0] = -12345;\r\n\r\n\t\tfor (int i=1; i<varAlp.length; i++) {\r\n\t\t\tvarAlp[i] = (char) (varAlp[0]+1);\r\n\r\n\t\t\tif (i < M.KolEff-1) {\r\n\t\t\t\tvalOfVar[i] = 'A';\r\n\t\t\t\tnumOfVar[i] = -12345;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvalOfVar[M.KolEff-1] = 'B';\r\n\r\n\r\n\t\tfor (int i=0; i<M.BrsEff - 1; i++) {\r\n\t\t\tint firstIdx = 0;\r\n\r\n\t\t\tboolean foundFirst1 = false;\r\n\t\t\tboolean foundSecond = false;\r\n\r\n\t\t\tfor (int j=0; j<M.KolEff - 1; j++) {\r\n\t\t\t\tif(M.Elmt[i][j] != 0) {\r\n\t\t\t\t\tif (!foundFirst1) {\r\n\t\t\t\t\t\tfoundFirst1 = true;\r\n\t\t\t\t\t\tfirstIdx = j;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif (valOfVar[j] == 'A') {\r\n\t\t\t\t\t\t\tvalOfVar[j] = varAlp[unusedAlpIdx];\r\n\t\t\t\t\t\t\tunusedAlpIdx++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfoundSecond = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!foundSecond && foundFirst1) {\r\n\t\t\t\tnumOfVar[firstIdx] = M.Elmt[i][M.KolEff-1];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i=0; i<M.BrsEff; i=i+1) {\r\n\t\t\tint firstIdx = 0;\r\n\r\n\t\t\tboolean foundFirst1 = false;\r\n\t\t\tboolean foundSecond = false;\r\n\r\n\t\t\tfor (int j=0; j<M.KolEff; j=j+1) {\r\n\r\n\t\t\t\tif (M.Elmt[i][j] != 0) {\r\n\r\n\t\t\t\t\tif ((!foundFirst1) && (j != M.KolEff-1)) {\r\n\t\t\t\t\t\tfoundFirst1 = true;\r\n\t\t\t\t\t\tSystem.out.printf(\"x%d = \", j);\r\n\t\t\t\t\t\tfirstIdx = j;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tif (!foundSecond) {\r\n\r\n\t\t\t\t\t\t\tif (valOfVar[j] == 'A') {\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f \", -(M.Elmt[i][j] * numOfVar[j]));\r\n\t\t\t\t\t\t\t\tfoundSecond = true;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse if (valOfVar[j] == 'B') {\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f%c \", -M.Elmt[i][j], valOfVar[j]);\r\n\t\t\t\t\t\t\t\tfoundSecond = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\tif (valOfVar[j] == 'A') {\r\n\t\t\t\t\t\t\t\tdouble value = M.Elmt[i][j] * numOfVar[j];\r\n\r\n\t\t\t\t\t\t\t\tif (value < 0) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"+ %.2f \", -value);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"- %.2f \", value);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse if (valOfVar[j] == 'B') {\r\n\r\n\t\t\t\t\t\t\t\tif (M.Elmt[i][j] < 0) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"+ %.2f \", -M.Elmt[i][j]);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"- %.2f \", M.Elmt[i][j]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t\tif (M.Elmt[i][j] < 0) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"+ %.2f%c \", -M.Elmt[i][j], valOfVar[j]);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tSystem.out.printf(\"- %.2f%c \", M.Elmt[i][j], valOfVar[j]);\r\n\t\t\t\t\t\t\t\t}\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}\r\n\r\n\t\t\tif (!foundSecond && foundFirst1) {\r\n\t\t\t\tSystem.out.printf(\"%.2f \", numOfVar[firstIdx]);\r\n\t\t\t}\r\n\r\n\t\t\tif (foundFirst1) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int j=0; j<valOfVar.length; j++) {\r\n\r\n\t\t\tif ((valOfVar[j] != 'A') && (valOfVar[j] != 'B')) {\r\n\t\t\t\tSystem.out.printf(\"x%d = %c\", j, valOfVar[j]);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "04acf4593b422952c0c79b6f6439e36b", "score": "0.49195877", "text": "@Test\n public void testIsInLimitLower() {\n Assertions.assertTrue(saab.isInLimit(.3, .9, .6));\n }", "title": "" }, { "docid": "298ef9ae7d5668426c792ab1f6915bba", "score": "0.48581353", "text": "@Test\n\tpublic void priorsAreReasonable() {\n\t\tdouble tot = 0;\n\t\tboolean zeroPrior = false;\n\t\tfor(NewsGroup g: groups) {\n\t\t\tdouble p = g.getPrior();\n\t\t\ttot+=p;\n\t\t\tif(p == 0.0) {\n\t\t\t\tzeroPrior = true;\n\t\t\t}\n\t\t}\n\t\tassertTrue((tot == 1) && !zeroPrior);\n\t}", "title": "" }, { "docid": "23adc6e0cc694bf992d93d8f7c867685", "score": "0.4837987", "text": "void setMaxWrongGuesses(Integer max);", "title": "" }, { "docid": "8166eb2e22fd667e01e39954bc667790", "score": "0.48349202", "text": "public static void func(){\n\t\tHashMap<Integer,Integer> map = new HashMap<Integer,Integer>();\n\t\tint limit = 1000;\n\t\tboolean psb[] = generatePrime(limit);\n\t\t\n\t\tint ps[] = MathTool.generatePrime(100000);\n\t\tfor (int i = 1; ps[i]<1000; i++) {\n\t\t\t//System.out.println(ps[i]);\n\t\t}\n\t\tint max=0;\n\t\tfor (int i = 0; ps[i] < limit; i++) {\n\t\t\tint n = ps[i];\n\t\t\tint j=i;\n\t\t\twhile(n<limit){\n\t\t\t\tif(!psb[n]){\n\t\t\t\t\tint num =j-i+1;\n\t\t\t\t\tif(map.containsKey(n)){\n\t\t\t\t\t\tif(map.get(new Integer(n)) < num){\n\t\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t}\n\t\t\t\t\tif(num > max){\n\t\t\t\t\t\tmax=num;\n\t\t\t\t\t\tSystem.out.println(num+\" \"+n+\" \"+i+\" \"+j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tn+=ps[j];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0941e5ad9c1ed9f2f4f385db4b9cd4ae", "score": "0.48273143", "text": "@Then(\"^limit should be given limit$\")\r\n\tpublic void limit_should_be_given() throws Throwable {\n\t\tScenarioName.createNode(new GherkinKeyword(\"Then\"),\"limit should be given limit\");\r\n\t\trespPayload =response.getBody().as(ResponsePayLoad.class);\r\n\t\tSystem.out.println(\"Limit is \"+respPayload.getLimit());\r\n\t\tAssert.assertEquals(Integer.parseInt(DataSheet.get(\"SearchLimit\")), respPayload.getLimit());\r\n\t\tList<Data> data = respPayload.getData();\r\n\t\t\r\n\t\tList<Categories> category = data.get(0).getCategories();\r\n\t\tSystem.out.println(\"1 st Category \"+ category.get(0).getName());\r\n\t}", "title": "" }, { "docid": "35377bd4e7026872ea6bf07beea92953", "score": "0.48189965", "text": "@Test(timeout = 4000)\n public void test68() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"probToLogOdds: probability must be in [0,1] \");\n assertEquals(\"probtologod: prob must be in [0,1] \", string0);\n }", "title": "" }, { "docid": "ec7f3aceb8ed200ee022bfb033dd3048", "score": "0.48025382", "text": "private double limit(double num) {\n if (num > 1.0) {\n return 1.0;\n }\n if (num < 0) {\n return 0;\n }\n return num;\n }", "title": "" }, { "docid": "884d7bd0ce585dd78e8b6c17a854c40c", "score": "0.48000997", "text": "@Test\r\n void testVaryingMajorityWithTooMuchHistory() {\r\n VaryingMajority testStrat = new VaryingMajority(3);\r\n AlwaysDefect testStrat2 = new AlwaysDefect();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 5, payoffs);\r\n game.playGame();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 4, \"varyingMajority not returning correctly with too much history\");\r\n }", "title": "" }, { "docid": "e15a69f506a72c7b8467c79a8068ad6b", "score": "0.47973764", "text": "public double getLimit() {return limit;}", "title": "" }, { "docid": "ec0eafe9ac156258934c888157b5fac2", "score": "0.47966963", "text": "@SuppressWarnings(\"Duplicates\")\n public static Solver makeGolombRuler(int m){\n Solver solver = new Solver();\n IntVar[] ticks = VariableFactory.enumeratedArray(\"a\", m, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver);\n solver.addHook(\"ticks\", ticks);\n solver.post(IntConstraintFactory.arithm(ticks[0], \"=\", 0));\n\n for (int i = 0; i < m - 1; i++) {\n solver.post(IntConstraintFactory.arithm(ticks[i + 1], \">\", ticks[i]));\n }\n\n IntVar[] diffs = VariableFactory.enumeratedArray(\"d\", (m * m - m) / 2, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver);\n solver.addHook(\"diffs\", diffs);\n IntVar[][] m_diffs = new IntVar[m][m];\n for (int k = 0, i = 0; i < m - 1; i++) {\n for (int j = i + 1; j < m; j++, k++) {\n // d[k] is m[j]-m[i] and must be at least sum of first j-i integers\n // <cpru 04/03/12> it is worth adding a constraint instead of a view\n solver.post(IntConstraintFactory.scalar(new IntVar[]{ticks[j], ticks[i]}, new int[]{1, -1}, diffs[k]));\n solver.post(IntConstraintFactory.arithm(diffs[k], \">=\", (j - i) * (j - i + 1) / 2));\n solver.post(IntConstraintFactory.arithm(diffs[k], \"-\", ticks[m - 1], \"<=\", -((m - 1 - j + i) * (m - j + i)) / 2));\n solver.post(IntConstraintFactory.arithm(diffs[k], \"<=\", ticks[m - 1], \"-\", ((m - 1 - j + i) * (m - j + i)) / 2));\n m_diffs[i][j] = diffs[k];\n }\n }\n solver.post(IntConstraintFactory.alldifferent(diffs, \"BC\"));\n // break symetries\n if (m > 2) {\n solver.post(IntConstraintFactory.arithm(diffs[0], \"<\", diffs[diffs.length - 1]));\n }\n solver.setObjectives(ticks[m-1]);\n return solver;\n }", "title": "" }, { "docid": "d1dc0f336f819a0bb4f92cd09629f389", "score": "0.4791792", "text": "public TextModel getCriterionMaxValue()\n {\n return myCriterionMaxValue;\n }", "title": "" }, { "docid": "63094d5678fe73bbeca953f612c355d8", "score": "0.4788044", "text": "@Test\n\tpublic void generateRandomFactorIsBetweenExpectedLimits() {\n\t\t\n\t\t//when a good sample of randomly generated factors is generated\n\t\tList<Integer> randomFactors = IntStream.range(0, 1000).map(i -> randomGeneratorServiceImpl.generateRandomFactor()).boxed().collect(Collectors.toList());\n\t\t\n\t\t//then all of them should be between 11 and 100 because we want a middle-complexity calculation\n\t\tassertThat(randomFactors).containsOnlyElementsOf(IntStream.range(11, 100).boxed().collect(Collectors.toList()));\n\t}", "title": "" }, { "docid": "f3eac4b2ffafe69f6b0b16171468c3bd", "score": "0.47852966", "text": "public void normalize(){\r\n /*//cambios 30 de agosto\r\n if (firstExtreme<0&&secondExtreme<0){\r\n firstExtreme=-firstExtreme;\r\n secondExtreme=-secondExtreme;\r\n }\r\n //fin cambios 30 de agosto*/\r\n if (firstExtreme>secondExtreme){\r\n double auxExtreme = firstExtreme;\r\n char auxLimit = feIncluded;\r\n firstExtreme = secondExtreme;\r\n secondExtreme = auxExtreme;\r\n feIncluded = seIncluded==']'?'[':'(';\r\n seIncluded = auxLimit=='['?']':')';\r\n }\r\n }", "title": "" }, { "docid": "b9d7087d6e1d36de7fa94494eaec2472", "score": "0.47809935", "text": "public abstract int getMaxQlength();", "title": "" }, { "docid": "af193fbf8034e7d57037a3d1f84fa15a", "score": "0.47803608", "text": "protected void calcMinMax() {\n }", "title": "" }, { "docid": "a4994b192ba813c4768c1a51c489fabd", "score": "0.4772565", "text": "public final AstValidator.limit_clause_return limit_clause() throws RecognitionException {\n AstValidator.limit_clause_return retval = new AstValidator.limit_clause_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 CommonTree LIMIT282=null;\n CommonTree INTEGER284=null;\n CommonTree LONGINTEGER285=null;\n AstValidator.rel_return rel283 =null;\n\n AstValidator.expr_return expr286 =null;\n\n\n CommonTree LIMIT282_tree=null;\n CommonTree INTEGER284_tree=null;\n CommonTree LONGINTEGER285_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:14: ( ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:16: ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n LIMIT282=(CommonTree)match(input,LIMIT,FOLLOW_LIMIT_in_limit_clause2381); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LIMIT282_tree = (CommonTree)adaptor.dupNode(LIMIT282);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(LIMIT282_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_limit_clause2383);\n rel283=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel283.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:29: ( INTEGER | LONGINTEGER | expr )\n int alt72=3;\n switch ( input.LA(1) ) {\n case INTEGER:\n {\n int LA72_1 = input.LA(2);\n\n if ( (synpred142_AstValidator()) ) {\n alt72=1;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 1, input);\n\n throw nvae;\n\n }\n }\n break;\n case LONGINTEGER:\n {\n int LA72_2 = input.LA(2);\n\n if ( (synpred143_AstValidator()) ) {\n alt72=2;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 2, input);\n\n throw nvae;\n\n }\n }\n break;\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case CUBE:\n case DIV:\n case DOLLARVAR:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case GROUP:\n case IDENTIFIER:\n case MINUS:\n case NULL:\n case PERCENT:\n case PLUS:\n case QUOTEDSTRING:\n case STAR:\n case TRUE:\n case BAG_VAL:\n case BIN_EXPR:\n case CASE_COND:\n case CASE_EXPR:\n case CAST_EXPR:\n case EXPR_IN_PAREN:\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n case MAP_VAL:\n case NEG:\n case TUPLE_VAL:\n {\n alt72=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt72) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:31: INTEGER\n {\n _last = (CommonTree)input.LT(1);\n INTEGER284=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_limit_clause2387); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER284_tree = (CommonTree)adaptor.dupNode(INTEGER284);\n\n\n adaptor.addChild(root_1, INTEGER284_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:41: LONGINTEGER\n {\n _last = (CommonTree)input.LT(1);\n LONGINTEGER285=(CommonTree)match(input,LONGINTEGER,FOLLOW_LONGINTEGER_in_limit_clause2391); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LONGINTEGER285_tree = (CommonTree)adaptor.dupNode(LONGINTEGER285);\n\n\n adaptor.addChild(root_1, LONGINTEGER285_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:55: expr\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_limit_clause2395);\n expr286=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr286.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\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": "186321edc2bc844fbd71989322007fd4", "score": "0.4756438", "text": "Limit createLimit();", "title": "" }, { "docid": "cd23e81133b0ffbf472c8f88e25f0f3f", "score": "0.47463655", "text": "private double[] getMinAndMaxScore(Motif motif) {\n double minscore=0;\n double maxscore=0;\n for (int i=0;i<motif.getLength();i++) {\n double[] freq=new double[]{motif.getBaseFrequency(i,'A'),motif.getBaseFrequency(i,'C'),motif.getBaseFrequency(i,'G'),motif.getBaseFrequency(i,'T')};\n double posmax=0;\n double posmin=2.0; // this should be higher than any value\n for (int j=0;j<freq.length;j++) {\n if (freq[j]>posmax) posmax=freq[j];\n if (freq[j]<posmin) posmin=freq[j];\n }\n minscore+=posmin;\n maxscore+=posmax;\n }\n return new double[]{minscore,maxscore};\n }", "title": "" }, { "docid": "3a3b7eee572328b755d57d0c56952d02", "score": "0.47453785", "text": "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "title": "" }, { "docid": "70002ca28549e67f31071477a21aa004", "score": "0.4738785", "text": "static void minimumBribes(int[] q) {\n\n\t\ttry {\n\t\t\tSystem.out.println(amountOfPeopleBribed(q));\n\t\t} catch (TooManyBribedPeople e) {\n\t\t\tSystem.out.println(\"Too chaotic\");\n\t\t}\n\t}", "title": "" }, { "docid": "3dc44ed27f317bc00387f7301163363b", "score": "0.47385198", "text": "public char[] sample(Motif motif, double min, double max) {\n minMatch=min;\n maxMatch=max;\n pwm=motif.getMatrixAsFrequencyMatrix();\n motifpattern=new char[motif.getLength()];\n if (motifpattern.length==0) return motifpattern; // this should hopefully not happpen\n if (min>0.99) { // use only the best pattern\n for (int i=0;i<motifpattern.length;i++) {\n motifpattern[i]=getBestBaseForPosition(i);\n }\n return motifpattern;\n } else { \n // sample a starting point. If min-score is relatively high then sample according to PWM distribution, else just sample randomly\n for (int i=0;i<motifpattern.length;i++) {\n if (min>0.6) motifpattern[i]=getSampledBaseForPosition(i);\n else motifpattern[i]=bases[(int)(Math.random()*4)];\n }\n minmax=getMinAndMaxScore(motif);\n score=getMatchScore(motifpattern);\n if (score>=min && score<=max) {\n return motifpattern;\n }\n // setup the transition matrix\n transitions=new double[pwm.length][pwm[0].length];\n for (int i=0;i<motifpattern.length;i++) {\n updateTransitionMatrix(i, motifpattern[i]);\n }\n char[] workingcopy=Arrays.copyOf(motifpattern, motifpattern.length);\n for (int tries=0; tries<100; tries++) {\n ArrayList<int[]> validtransitions=findTransitionsToWithinLimits(workingcopy); \n int[] trans=null;\n boolean valid=(validtransitions.size()>0);\n if (validtransitions.isEmpty()) { // no single transition can bring the pattern into score limits\n validtransitions=findSuggestedTransitions(workingcopy, 0.25); // suggest other transitions\n }\n trans=(!validtransitions.isEmpty())?validtransitions.get((int)(Math.random()*validtransitions.size())):new int[]{(int)(Math.random()*workingcopy.length),(int)(Math.random()*4)};\n int changepos=trans[0];\n int newbase=trans[1];\n switch(newbase) {\n case 0: workingcopy[changepos]='A'; break;\n case 1: workingcopy[changepos]='C'; break;\n case 2: workingcopy[changepos]='G'; break;\n case 3: workingcopy[changepos]='T'; break;\n }\n updateTransitionMatrix(changepos, bases[newbase]);\n double newscore=getMatchScore(workingcopy);\n double targetscore=minMatch+(maxMatch-minMatch)/2; // target score is midway between min and max\n if (Math.abs(newscore-targetscore)<Math.abs(score-targetscore)) { // is the new score closer to the target\n score=newscore;\n motifpattern=Arrays.copyOf(workingcopy, motifpattern.length);\n }\n if (score>=minMatch && score<=maxMatch) break; // success!\n }\n return motifpattern;\n }\n }", "title": "" }, { "docid": "abfbd4d2e860d87980762958335496fa", "score": "0.4737963", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "title": "" }, { "docid": "4e3ef5f475567205ec7dd93fd4e5cc92", "score": "0.47297224", "text": "int getLikelihoodValue();", "title": "" }, { "docid": "a1077f31efb74df9ad81a9475a2d9df0", "score": "0.4723365", "text": "public final CQLParser.limitDefinition_return limitDefinition() throws RecognitionException {\n CQLParser.limitDefinition_return retval = new CQLParser.limitDefinition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token TOP21=null;\n Token BOTTOM22=null;\n Token RANDOM23=null;\n CQLParser.limitParameters_return lp = null;\n\n\n Object TOP21_tree=null;\n Object BOTTOM22_tree=null;\n Object RANDOM23_tree=null;\n RewriteRuleTokenStream stream_BOTTOM=new RewriteRuleTokenStream(adaptor,\"token BOTTOM\");\n RewriteRuleTokenStream stream_RANDOM=new RewriteRuleTokenStream(adaptor,\"token RANDOM\");\n RewriteRuleTokenStream stream_TOP=new RewriteRuleTokenStream(adaptor,\"token TOP\");\n RewriteRuleSubtreeStream stream_limitParameters=new RewriteRuleSubtreeStream(adaptor,\"rule limitParameters\");\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:2: ( TOP lp= limitParameters -> ^( TOP $lp) | BOTTOM lp= limitParameters -> ^( BOTTOM $lp) | RANDOM lp= limitParameters -> ^( RANDOM $lp) )\n int alt10=3;\n switch ( input.LA(1) ) {\n case TOP:\n {\n alt10=1;\n }\n break;\n case BOTTOM:\n {\n alt10=2;\n }\n break;\n case RANDOM:\n {\n alt10=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n }\n\n switch (alt10) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:4: TOP lp= limitParameters\n {\n TOP21=(Token)match(input,TOP,FOLLOW_TOP_in_limitDefinition666); \n stream_TOP.add(TOP21);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition670);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: TOP, lp\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 249:28: -> ^( TOP $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:31: ^( TOP $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_TOP.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:250:4: BOTTOM lp= limitParameters\n {\n BOTTOM22=(Token)match(input,BOTTOM,FOLLOW_BOTTOM_in_limitDefinition686); \n stream_BOTTOM.add(BOTTOM22);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition690);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: lp, BOTTOM\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 250:30: -> ^( BOTTOM $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:250:33: ^( BOTTOM $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_BOTTOM.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:251:4: RANDOM lp= limitParameters\n {\n RANDOM23=(Token)match(input,RANDOM,FOLLOW_RANDOM_in_limitDefinition704); \n stream_RANDOM.add(RANDOM23);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition708);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: RANDOM, lp\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 251:30: -> ^( RANDOM $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:251:33: ^( RANDOM $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANDOM.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\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 retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "1cc7d0c27d07fffadd8daf328f95ff76", "score": "0.47179645", "text": "public void setMismatchOverhang(int s){\n for(int i=0;i<scores.length;i++) {//i=position\n for(int j=0;j<scores[i].length;j++) {//j=primer\n if(j<(primerNum /2)) {\n //Matching Forward Direction Primers to 3'-5' stand so empty vals at left 3' end\n if(i<pLens[j]-1) {\n scores[i][j][0]=pLens[j];\n }\n }\n else {\n //Matching Reverse Direction Primers to 5'-3' stand so empty vals at right 3' end\n if(i>compSeqs[s].length()-pLens[j]) {\n scores[i][j][0]=pLens[j];\n }\n }\n }\n }\n }", "title": "" }, { "docid": "0af1608ad2be7a27c4bc78206afea6b9", "score": "0.47120434", "text": "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 4), new Float(3));\r\n\t}", "title": "" }, { "docid": "7d4dd1c8a1d3ffcc39490d8e76289f11", "score": "0.4707707", "text": "public void test_hk_03() {\n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM);\n spec.setReasoner(null);\n OntModel ontModel = ModelFactory.createOntologyModel(spec, null);\n OntProperty property = ontModel.createObjectProperty(\"http://www.aldi.de#property\");\n /* MinCardinalityRestriction testClass = */\n ontModel.createMinCardinalityRestriction(null, property, 42);\n \n }", "title": "" }, { "docid": "4630b10bb05475c64dbccffe4b7f113b", "score": "0.47061864", "text": "@Test\n public void testGetLimite() {\n \n assertEquals(50.0, soin1.getLimite(),0.01);\n assertEquals(80.0, soin2.getLimite(),0.01);\n }", "title": "" }, { "docid": "8945afd08ed307316cd231fbefebfdc9", "score": "0.46947974", "text": "public boolean isWithinLimit() {\n return assumptionsFailed.get() < assumptionLimit;\n }", "title": "" }, { "docid": "a8b8b69cdb9a695a4e2888c64a47af7e", "score": "0.46872804", "text": "public void guess(){\n\t\tfor(int i=0;i<size;i++){\n\t\t\tfor(int j=0;j<size;j++){\n\t\t\t\tif(!boundary[i][j]){\n\t\t\t\t\tvalues[i][j]=100/(.05*i+1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "title": "" }, { "docid": "c6f6a983c91e771667a87cce0fd8e45c", "score": "0.46818975", "text": "public void initForMM(){\n hdBase = HD_BASED_ON_MMS;\n hdNoHdRankThreshold = 0;\n hdCorrection = 1; \n hdCeiling = 9;\n }", "title": "" }, { "docid": "7d90e23ffb7e74019d18bc5ce41298ac", "score": "0.46763834", "text": "public static void checkUpdateProbabilityOnHORNRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 1; j < 255; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = j;\r\n\t\t\t\tif(!MTS.BIMTS_H8.contains((Integer)r2))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t/*if(r2 == 1 || r2 == 2 || r2 == 4 || r2 == 8 || r2 == 16 || r2 == 32 || r2 == 64 || r2 == 128)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t*/\r\n\t\t\t\telse\r\n\t\t\t\tfor(int k = 1; k < 255; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = k;\r\n\t\t\t\t\t//if(r3 == 1 || r3 == 2 || r3 == 4 || r3 == 8 || r3 == 16 || r3 == 32 || r3 == 64 || r3 == 128)\r\n\t\t\t\t\t\tif(!MTS.BIMTS_H8.contains((Integer)r3))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\ttotal++;\r\n\t\t\t\t\t\tint new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\t\tif(new_r3 < r3)\r\n\t\t\t\t\t\t\tupdate++;\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}\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "e11016358d26a540e60b1b16405425fa", "score": "0.46756074", "text": "boolean hasMaxMP();", "title": "" }, { "docid": "0595eb292ce0135eaf68cd54e2e1e781", "score": "0.46720505", "text": "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "title": "" }, { "docid": "51beefd35c9927b366fe941184813ee3", "score": "0.46704566", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.m_lnorm = (double) (-2);\n double double0 = naiveBayesMultinomialText0.getLNorm();\n assertEquals((-2.0), double0, 0.01);\n }", "title": "" }, { "docid": "78b00f1e93cbb6e63fab3718646d78cb", "score": "0.46605557", "text": "public boolean isMaximumBetter(){\n return false;\n }", "title": "" }, { "docid": "9aa45518f6622fbc0605daff557cdb3d", "score": "0.4658799", "text": "private double applyLimitBounds(double value) {\n if(value > 1.0) {\n value = 1.0;\n }\n if(value < -1.0) {\n value = -1.0;\n }\n\n // Absolute limits:\n if(lifter.getBottomLimit() && lifter.getUpperLimit()) {\n if(value < 0) {\n value = 0; // Can't go down from the bottom;\n }\n }\n\n if((lifter.getUpperLimit() && lifter.getUpperWarning()) && lifter.getUpperSmallPieceDetector()) {\n if(value > 0) {\n value = 0; // Can't go up from the top\n }\n }\n\n // Slow speed zones\n if(lifter.getBottomWarning()) {\n if(value < -0.3) {\n value = -0.3;\n }\n }\n\n if(lifter.getUpperWarning()) {\n if(value > 0.7) {\n value = 0.7;\n }\n }\n\n printLimits();\n\n return value;\n }", "title": "" }, { "docid": "08fc6073e72bd6ff72b1777d52ac926d", "score": "0.46490738", "text": "@Test\n @Tag(\"bm1000\")\n public void testBANDM() {\n CuteNetlibCase.doTest(\"BANDM.SIF\", \"-158.6280184501187\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "c4ede1e563df3fc07998f275d2058c93", "score": "0.46464032", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.setPeriodicPruning((-1));\n int int0 = naiveBayesMultinomialText0.getPeriodicPruning();\n assertEquals((-1), int0);\n }", "title": "" }, { "docid": "5287065f215c84e67b9431170a7b70db", "score": "0.46396977", "text": "@Test\r\n void testVaryingMajorityWithNotEnoughHistory() {\r\n VaryingMajority testStrat = new VaryingMajority(3);\r\n AlwaysDefect testStrat2 = new AlwaysDefect();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 2, payoffs);\r\n game.playGame();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 1, \"varyingMajority not returning correctly with insufficient history\");\r\n }", "title": "" }, { "docid": "48141c948c11ba53ba98149dde132f93", "score": "0.46363917", "text": "private int choose_table( int max ) {\n\t\tint i, choice;\n\n\t\tif ( max == 0 )\n\t\t\treturn 0;\n\n\t\tmax = Math.abs( max );\n\t\tchoice = 0;\n\n\t\tif ( max < 15 ) {\n\t\t\tchoice = 1; /* not 0 -- ht[0].xlen == 0 */\n\t\t\t\t\twhile (xlen[choice] <= max)\n\t\t\t\t\t\tchoice++;\n\t\t} else {\n\t\t\tmax -= 15;\n\n\t\t\tchoice = 15;\n\t\t\twhile (linmax[choice] < max)\n\t\t\t\tchoice++;\n\t\t}\n\n\t\treturn choice;\n\t}", "title": "" }, { "docid": "dc5c7e10f0008ef7cbe0b49e3c25abd3", "score": "0.46298012", "text": "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "title": "" }, { "docid": "d8d60d1523c97eb5603a531d89be226a", "score": "0.46241304", "text": "public MinMaxSearch(SearchLimitingPredicate<T> slp)\t{\n\t\tthis.slp = slp;\n\t}", "title": "" }, { "docid": "efd3579fbcb826f2e1350b05f95fa59b", "score": "0.46208972", "text": "public double homoscedasticTTest(double m1, double m2, double v1, double v2, double n1, double n2) throws MaxCountExceededException, NotStrictlyPositiveException {\r\n return 2.0d * new TDistribution((RandomGenerator) null, (n1 + n2) - 2.0d).cumulativeProbability(-FastMath.abs(homoscedasticT(m1, m2, v1, v2, n1, n2)));\r\n }", "title": "" }, { "docid": "c123b7ec3c68b81d097c2da72be4d671", "score": "0.46188664", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tint N= Integer.parseInt(st.nextToken());\n\t\tint T= Integer.parseInt(st.nextToken());\n\t\t\n\t\t//for each N, three possible problem sets (P, A, G)\n\t\t//and P (prep time: min), V (value)\n\t\t//P <= A <= G\n\t\t\n\t\t//given limit T\n\t\t//find max profit\n\t\tint[][] v = new int[N+1][3+1];\n\t\tint[][] w = new int[N+1][3+1];\n\t\t\n\t\t//one \n\t\t\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor (int j = 1; j <= 3; j++) {\n\t\t\t\tw[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t\tv[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t}\n//\t\tfor (int i = 1; i <= N; i++) {\n//\t\t\tfor (int j = 1; j <= 3; j++) {\n//\t\t\t\tSystem.out.println(w[i][j] + \" \"+ v[i][j]);\n//\t\t\t}\n//\t\t}\n\t\tint[][] dp = new int[2][T+1];\n\t\t//where k looks at the kth row of the values/weight array\n\t\tfor (int k = 1; k <= N; k++) {\n\t\t\tfor (int x = 0; x <= T; x++) {\n\t\t\t\t//going through each weight and value\n\t\t\t\tboolean ran = false;\n\t\t\t\tfor (int a = 1; a <= 3; a++) {\t\t\t\t\t\n\t\t\t\t\tif (w[k][a] > x) {\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\tran = true;\n\t\t\t\t\t\tdp[1][x] = Math.max(Math.max(dp[0][x],dp[0][x-w[k][a]] + v[k][a]),dp[1][x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!ran) {\n\t\t\t\t\tdp[1][x] = dp[0][x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tdp[0] = dp[1].clone();\n//\t\t\tfor (int[] row: dp) {\n//\t\t\t\tfor (int m: row) {\n//\t\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int[] row: dp) {\n//\t\t\tfor (int m: row) {\n//\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(dp[1][T]);\n\t}", "title": "" }, { "docid": "051e4c8b402257ea4686ba4bd0a64c23", "score": "0.46179053", "text": "public static void lotsOfSpewage(final long maxN) {\n for (long n = 0; n <= maxN; n++) {\n for (long k = 0; k <= n; k++) {\n for (double kappa = 0.5; kappa < 5.0; kappa += 0.5) {\n final double lb = approximateLowerBoundOnP(n, k, kappa);\n final double ub = approximateUpperBoundOnP(n, k, kappa);\n final double est = estimateUnknownP(n, k);\n assertTrue(lb <= est);\n assertTrue(ub >= est);\n final String slb = String.format(\"LB\\t%d\\t%d\\t%.1f\\t%.16g%n\", n, k, kappa, lb);\n final String sub = String.format(\"UB\\t%d\\t%d\\t%.1f\\t%.16g%n\", n, k, kappa, ub);\n println(slb);\n println(sub);\n }\n }\n }\n }", "title": "" }, { "docid": "0062d81e03c7b7185f415ef9f9b64c87", "score": "0.46008724", "text": "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "title": "" }, { "docid": "793f3a666ed5c5f927d0f0e615ff2e15", "score": "0.4599678", "text": "@Test\n public static void tinyLBTest() {\n final double[] answers = {0.0, 0.004592032688529923, 0.04725537386564205,\n 0.1396230607626959, 0.2735831034867167, 0.4692424353373485};\n final double kappa = 2.0;\n assertTrue( 0.0 == approximateLowerBoundOnP(0, 0, kappa) );\n final long n = 5;\n for (long k = 0; k <= n; k++) {\n final double lb = approximateLowerBoundOnP(n, k, kappa);\n final double est = estimateUnknownP(n, k);\n assertTrue(lb <= est);\n assertTrue(Math.abs(lb - answers[(int) k]) < 1e-14);\n // System.out.printf (\"LB\\t%d\\t%d\\t%.1f\\t%.16g%n\", n, k, kappa, lb);\n }\n }", "title": "" }, { "docid": "bea03a524169565023895bb944716453", "score": "0.45922408", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n \n naiveBayesMultinomialText0.setMinWordFrequency(0.0);\n double double0 = naiveBayesMultinomialText0.getMinWordFrequency();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "ebe01bd8a24d21c30b6605d944bafe59", "score": "0.459095", "text": "@Test()\n public void testTrainWarmCFastSMO() {\n ClassificationDataSet train = FixedProblems.getHalfCircles(250, RandomUtil.getRandom(), 0.1, 0.2);\n\n PlattSMO warmModel = new PlattSMO(new LinearKernel(1));\n warmModel.setC(1);\n warmModel.train(train);\n\n PlattSMO warm = new PlattSMO(new LinearKernel(1));\n warm.setC(1e4);// too large to train efficently like noraml\n\n long start, end;\n\n start = System.currentTimeMillis();\n warm.train(train, warmModel);\n end = System.currentTimeMillis();\n long warmTime = (end - start);\n\n PlattSMO notWarm = new PlattSMO(new LinearKernel(1));\n notWarm.setC(1e4);// too large to train efficently like noraml\n\n start = System.currentTimeMillis();\n notWarm.train(train);\n end = System.currentTimeMillis();\n long normTime = (end - start);\n\n assertTrue(warmTime < normTime * 0.75);\n\n }", "title": "" }, { "docid": "5313f6e2a9f2fd77ccc1f3cfea64f99b", "score": "0.4590669", "text": "public void setMaxResults(int val) throws HibException;", "title": "" }, { "docid": "15840c385b7a1f2ec4bbfd72b729358c", "score": "0.45893553", "text": "public double getProperLimitingMag ( ) {\r\n\t\tif (getLimitingMag() != null)\r\n\t\t\treturn (double)getLimitingMag().floatValue();\r\n\r\n\t\treturn 0.0;\r\n\t}", "title": "" }, { "docid": "99d388694790afd183ec5f4d1b351512", "score": "0.45881888", "text": "private ArrayList[] blxAlpha(ArrayList[] madre, ArrayList[] padre, Random al)\n\t{\n\t\tint numAtributos = madre.length;\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\tdouble I = 0;\n\t\tArrayList[] hijo = new ArrayList[numAtributos];\n\t\t\n\t\t\n\t\tfor (int i = 0; i < numAtributos; i++)\t\t//Para cada atributo\n\t\t{\n\t\t\thijo[i] = new ArrayList();\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(0));\n\t\t\t\n\t\t\tint numParticiones = madre[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif ((Double)(madre[i].get(j)) < (Double)(padre[i].get(j)))\n\t\t\t\t{\t\n\t\t\t\t\tmax = (Double)(padre[i].get(j));\n\t\t\t\t\tmin = (Double)(madre[i].get(j));\n\t\t\t\t}\n\t\t\t\telse\t\t\t\t\t\t\t//Si el gen de la madre es mayor\n\t\t\t\t{\n\t\t\t\t\tmin = (Double)(padre[i].get(j));\n\t\t\t\t\tmax = (Double)(madre[i].get(j));\n\t\t\t\t}\t\t\t\t\t \n\t\t\t\tI = max - min;\t//Obtenemos la diferencia\n\t\t\t\tmin = min - I * 0.15;\t//Calculamos el extremo inferior\n\t\t\t\tmax = max + I * 0.15;\t//Calculamos el extremo superior\n\t\t\t\thijo[i].add(min + al.nextDouble() * (max - min));\t//Calculamos un punto aleatorio dentro del intervalo\n\t\t\t}\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(numParticiones-1));\n\t\t}\n\t\t\n\t\t// Validación del individuo\n\t\t\n\t\t// Ponemos a mínimo los valores menores que el mínimo y al máximo los valores menores que el máximo\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tmin = ((Double)(hijo[i].get(0)));\n\t\t\tmax = ((Double)(hijo[i].get(numParticiones-1)));\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif(((Double)(hijo[i].get(j))) < min)\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, min);\n\t\t\t\t}\n\t\t\t\telse if((((Double)(hijo[i].get(j))) > max))\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ordenamos los valores de menor a mayor\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-2;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 1; k < numParticiones-2; k++)\n\t\t\t\t{\n\t\t\t\t\tdouble temp = ((Double)(hijo[i].get(k)));\n\t\t\t\t\tdouble compara = ((Double)(hijo[i].get(k+1)));\n\t\t\t\t\t\n\t\t\t\t\tif(temp > compara)\n\t\t\t\t\t{\n\t\t\t\t\t\thijo[i].remove(k);\n\t\t\t\t\t\thijo[i].add(k, compara);\n\t\t\t\t\t\thijo[i].remove(k+1);\n\t\t\t\t\t\thijo[i].add(k+1, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hijo;\t\n\t}", "title": "" }, { "docid": "477083cc956e282aa76e3b8438016523", "score": "0.4586251", "text": "public void test2 (List<List<String>> sentences) {\n double totalLogProb = 0;\n double totalNumTokens = 0;\n for (List<String> sentence : sentences) {\n totalNumTokens += sentence.size();\n double sentenceLogProb = sentenceLogProb2(sentence);\n totalLogProb += sentenceLogProb;\n }\n double perplexity = Math.exp(-totalLogProb / totalNumTokens);\n System.out.println(\"Word Perplexity = \" + perplexity );\n }", "title": "" }, { "docid": "c9457d3db2fe8cdea39500aa7384d435", "score": "0.4585478", "text": "private void notEligibleForRealMax() {\n eligibleForRealMax = false;\n }", "title": "" }, { "docid": "84f9c009fb7516bb87eb6251e4402d79", "score": "0.45854676", "text": "@Override\n\tpublic void limitSpeed() {\n\t\tSystem.out.println(\"120 KMPH\");\n\t}", "title": "" }, { "docid": "49ca079cb83f582d0ad2ab23017e967c", "score": "0.4583133", "text": "private Proof notDividesStepGreater(int n, int m, Expression z) {\n Expression a = intToLit(n); //[n]\n Expression b = intToLit(m); //[m]\n java.util.function.Function<Proof, Proof> stepFunction = p -> faxm2ConvertTwice(faxm8Gen(a, z), p);\n Expression equal = equal(multi(a, succ(z)), b); //a * z' = b\n Proof notGreaterLemma = notGreaterLemma(multi(a, z), n, m); //!(a*z+[n]=[m])\n return subNot(equal, notGreaterLemma, stepFunction); //(a*z'=b) -> (!a*z+[n]=[m]) -> ... -> !([n]*z'=m)\n }", "title": "" }, { "docid": "3d72c0abb58af26102800cc4e99a5959", "score": "0.45822", "text": "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t= scan.nextInt();\n int min[] = new int[10001];\n Arrays.fill(min,89898);\n min[0] = 0;\n int pn[] = new int[10001];\n boolean p[] = new boolean[10001];\n for(int i=2;i<101;++i)\n {\n if(!p[i])\n for(int j=i*i;j<10001;j+=i)\n p[j] = true;\n }\n int index = 0;\n for(int i=2;i<10001;++i)\n if(!p[i])\n pn[index++] = i;\n int last = index-1;\n for(int i=0;i<=last;++i)\n {\n int temp = (int)Math.pow(pn[i], pn[i]);\n if(temp<10001)\n pn[index++] = temp;\n else break;\n }\n pn[index++] = 898989;\n Arrays.sort(pn,0,index);\n for(int i=2;i<10001;++i)\n {\n for(int j=0;pn[j]<=i;++j)\n if(min[i]>1+min[i-pn[j]])\n min[i] = 1+min[i-pn[j]];\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n while(t-->0)\n {\n sb.append(min[scan.nextInt()]+\"\\n\");\n }\n System.out.println(sb);\n }", "title": "" }, { "docid": "64170e667db3c1869b9931dfd8f7e348", "score": "0.45789576", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.setPeriodicPruning(1072);\n int int0 = naiveBayesMultinomialText0.getPeriodicPruning();\n assertEquals(1072, int0);\n }", "title": "" }, { "docid": "2c519a6acda6aa692552982029971753", "score": "0.45764747", "text": "int tryScale(){\n int numAccepted = 0;\n \n for(int c=0; c<numCandScaleTuning; c++){\n DoubleMatrix1D y = nextCandidate();\n if(checkCandidate(y))//accept\n numAccepted++;\n }\n \n return numAccepted;\n }", "title": "" }, { "docid": "c7a42deb39a68404f0fa381832f8b7f0", "score": "0.45735848", "text": "@Test\n public void testFilterGoodData() throws Exception {\n assertEquals(300.0, maxFilter.filter(300.0), .01);\n assertEquals(2342342.213, maxFilter.filter(2342342.213), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(840958239423.123213123), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(0.000001232123), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(-123210.000001232123), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(-0.00087868761232123), .01);\n }", "title": "" }, { "docid": "cc585aa3110abe9ff4675351a7f09eaf", "score": "0.45730156", "text": "private static void evaluateCase() {\n try {\n int n = SYS_IN.nextInt();\n int m = SYS_IN.nextInt();\n SYS_IN.nextLine();\n int mn = Integer.MAX_VALUE;\n long sum = 0L;\n int num;\n int sign = 1;\n for (int ni = 0; ni < n; ni++) {\n for (int mi = 0; mi < m; mi++) {\n num = SYS_IN.nextInt();\n if (num < 0) {\n sign *= -1;\n num = -num;\n }\n sum += num;\n mn = Math.min(mn, num);\n }\n SYS_IN.nextLine();\n }\n if (sign == -1) {\n sum -= 2 * mn;\n }\n System.out.println(sum);\n } catch (Exception e) {}\n }", "title": "" }, { "docid": "9198554db300c30ca6ef290ca87f9313", "score": "0.45715204", "text": "public static void Main()\n\t{\n\t\tint n;\n\t\tint[] a = new int[300];\n\t\tint i;\n\t\tint sum = 0;\n\t\tint max;\n\t\tint min;\n\t\tfloat m;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar);\n\t\t}\n\t\tfor (i = 0;i < n;i++)\n\t\t{\n\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\tif (tempVar2 != null)\n\t\t\t{\n\t\t\t\ta[i] = Integer.parseInt(tempVar2);\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tm = (float)sum / n;\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tfor (i = 0;i < n;i++)\n\t\t{\n\t\t\tif (max < a[i])\n\t\t\t{\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif (min > a[i])\n\t\t\t{\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tif (((float)max - m) > (m - (float)min))\n\t\t{\n\t\t\tSystem.out.printf(\"%d\",max);\n\t\t}\n\t\telse if (((float)max - m) < (m - (float)min))\n\t\t{\n\t\t\tSystem.out.printf(\"%d\",min);\n\t\t}\n\t\telse if (((float)max - m) == (m - (float)min))\n\t\t{\n\t\t\tSystem.out.printf(\"%d,%d\",min,max);\n\t\t}\n\t}", "title": "" }, { "docid": "da68f354ad57ead00de51f7906835b98", "score": "0.456523", "text": "private static int maxMp(int mp){\r\n int mMP = 0;\r\n mMP = mp + 5;\r\n return mMP;\r\n }", "title": "" }, { "docid": "ca22b228168dfa534b601e0f14ae4c11", "score": "0.45651293", "text": "public double getMiterLimit(\n )\n {return miterLimit;}", "title": "" }, { "docid": "6c32cd76d095ec1848c8ac1ce66a34e9", "score": "0.45626193", "text": "private void setMinMax(List<IBasicExplanation> explanationList){\n\t\t\tminSE = scoringFunction.getScore(explanationList.get(0));\n\t\t\tmaxSE = scoringFunction.getScore(explanationList.get(explanationList.size() - 1));\n\t\t}", "title": "" }, { "docid": "dbf0ce52a5efdccb9109e4cc8672258d", "score": "0.45564753", "text": "SpamCampaign(int n_max, int K, int M, String l_file, \n\t\t\tdouble[] tau, double r){\n\t\tthis.n_max = n_max;\n\t\tthis.K = K;\n\t\tthis.M = M;\n\t\tthis.tau = tau;\n\t\tthis.r = r;\n\t\t//this.ss = ss;\n\t\t//this.nn = nn;\n\t\t\n\t\tloadLegitimateFollowers(l_file);\n\t\tgenerateFollowers();\n\t\t\n\t\t//this.Vk = new int[K][];\n\t\t//this.Vs = new int[s];\n\t}", "title": "" }, { "docid": "917a205630ca8a81b23badd54ac3d63d", "score": "0.45534906", "text": "public static void main(String[] args) {\n\t\tint array0[] = new int[0];\r\n\t\tint array3[] = new int[3];\r\n\t\tint array5[] = new int[5];\r\n\t\tint array15[] = new int[15];\r\n\t\tint array16[] = new int[16];\r\n\t\tint array17[] = new int[17];\r\n\t\tint array19[] = new int[19];\r\n\t\tint array20[] = new int[20];\r\n\t\tint array200[] = new int[200];\r\n\t\tint array1000[] = new int[1000];\r\n\r\n\t\t// iX => integer with value X\r\n\t\tint i0 = 0;\r\n\t\tint i20 = 20;\r\n\t\tint i1 = 1;\r\n\t\tint i2 = 2;\r\n\t\tint i3 = 3;\r\n\t\tint i4 = 4;\r\n\t\tint i_5 = -5;\r\n\t\tint p = i2 * i_5; // p is [-10,-10]\r\n\r\n\t\tarray0[0] = 5; // Illegal upper bound\r\n\r\n\t\tarray0[1] = 5; // Illegal upper bound\r\n\r\n\t\tarray5[p] = 5; // Illegal lower bound\r\n\r\n\t\tp = 2 * i2; // p is [4,4]\r\n\r\n\t\tarray5[p] = 5; // Good\r\n\r\n\t\tp *= p; // p is [16,16]\r\n\r\n\t\tarray16[p] = 5; // Illegal upper bound (legal index range is 0-15)\r\n\r\n\t\tarray17[p] = 5; // Good\r\n\r\n\t\tp = i2 * i3; // p is [6,6]\r\n\r\n\t\tboolean b = args.length == 0;\r\n\r\n\t\tif (b) {\r\n\t\t\tp = p * i3; // p is [18,18]\r\n\t\t}\r\n\r\n\t\t// now p is [6,18]\r\n\r\n\t\tarray17[p] = 5; // Potentially illegal upper bound\r\n\t\tarray19[p] = 5; // Good\r\n\r\n\t\tp = 2; // p is [2,2]\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tp *= 2;\r\n\t\t}\r\n\r\n\t\t// now p is [2,INF]\r\n\r\n\t\tarray19[p] = 5; // Potentially illegal upper bound // TODO problem\r\n\r\n\t\tp = p - 4; // p is [-2,INF]\r\n\r\n\t\tarray1000[p] = 5; // Potentially illegal lower and upper bounds\r\n\r\n\t\tp = 2; // p is [2,2]\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tarray3[i] = 5; // Potentially illegal upper bound\r\n\t\t\tarray16[i] = 5; // Good\r\n\t\t\tp *= -2;\r\n\t\t}\r\n\r\n\t\tint i = 5, j = 10;\r\n\r\n\t\tif (b) {\r\n\t\t\ti = 15;\r\n\t\t\tj = 20;\r\n\t\t}\r\n\r\n\t\t// now i is [5,15], j is [10,20]\r\n\r\n\t\tif (i != j) {\r\n\t\t\tarray16[j] = 5; // Potentially illegal upper bound\r\n\t\t} else {\r\n\t\t\tarray16[j] = 5; // Good\r\n\t\t}\r\n\r\n\t\t// p is [-INF,INF]\r\n\r\n\t\tarray1000[p] = 5; // Potentially illegal lower and upper bounds\r\n\r\n\t}", "title": "" }, { "docid": "5539a9f4c8009ba4ee79952fe6a9e0e8", "score": "0.4552575", "text": "public void kolmogorovSmirnovTest(double cutoff, MWBMatchingAlgorithm mwbm) {\n double p = 0;\n\n KolmogorovSmirnovTest t = new KolmogorovSmirnovTest();\n for (int i = 0; i < this.train.numAttributes(); i++) {\n for (int j = 0; j < this.test.numAttributes(); j++) {\n // negative infinity counts as not present, we do this so we don't have to map\n // between attribute indexs in weka\n // and the result of the mwbm computation\n mwbm.setWeight(i, j, Double.NEGATIVE_INFINITY);\n\n // class attributes are not relevant\n if (this.test.classIndex() == j) {\n continue;\n }\n if (this.train.classIndex() == i) {\n continue;\n }\n\n // this may invoke exactP on small sample sizes which will not terminate in all\n // cases\n // p = t.kolmogorovSmirnovTest(this.train_values.get(i),\n // this.test_values.get(j), false);\n\n // this uses approximateP everytime\n p = t.approximateP(\n t.kolmogorovSmirnovStatistic(this.train_values.get(i),\n this.test_values.get(j)),\n this.train_values.get(i).length,\n this.test_values.get(j).length);\n if (p > cutoff) {\n mwbm.setWeight(i, j, p);\n }\n }\n }\n }", "title": "" }, { "docid": "fb87d417f78f080201f449eb1feaa46f", "score": "0.45493224", "text": "private static long pisano(long m) {\n long temp;\n long first = 0;\n long second = 1;\n\n long count = 0; // initial length of the pisano period\n \n while (true) {\n temp = first;\n first = second;\n second = (second + temp) % m;\n count++;\n\n if (first == 0 && second == 1) {\n return count;\n } // every pisano period begins with 0 1. When we see 0 1, we know len of pisano period.\n }\n }", "title": "" }, { "docid": "6336a24d10e47f2bb5dbc51e4dc83358", "score": "0.4548936", "text": "public static void loop(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++){\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tq.setFinalCount(i);\r\n\t\t\tprintStats(q);\r\n\t\t\tloopWithCheck(990000, q);\r\n\t\t}", "title": "" }, { "docid": "bc5206aee9feb4c059c0ead2565b29ff", "score": "0.45456678", "text": "@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }", "title": "" }, { "docid": "b0fa74eb3b652b7f1561302ffd4c11cf", "score": "0.45435062", "text": "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}", "title": "" }, { "docid": "ca21c52cda29834b48bbe00f648b5dc4", "score": "0.45421112", "text": "public void boundsLex(int [] a , IntDomainVar [] x , int [] b,int j) throws ContradictionException{\n\n int i =0;\n\n\n while( i< n && a[i]==b[i]){\n\n\n if((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n i++;\n }else{\n this.fail();\n }\n\n }\n\n\n if(i<n )\n if ((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n }else{\n this.fail();\n }\n\n\n if(i==n || x[i].getNextDomainValue(a[i])<b[i]){\n return ;\n }\n\n i+=1;\n\n while(i<n && (b[i]+1 <= a[i]-1) && x[i].getInf()==b[i] && x[i].getSup()==a[i]){\n if(x[i].removeInterval(b[i]+1,a[i]-1, this, false)){\n i++;\n }else{\n this.fail();\n\n }\n }\n\n if(i<n) {\n if (b[i] + 1 <= a[i] - 1 && x[i].getInf() <= b[i] &&\n b[i] <= x[i].getSup() && x[i].getSup() >= a[i] && a[i] >= x[i].getInf()) {\n if (!x[i].removeInterval(b[i] + 1, a[i] - 1, this, false)) {\n this.fail();\n }\n }\n }\n\n }", "title": "" }, { "docid": "7750f855f3b8b3bb3b4100d0cdcd1b94", "score": "0.45392862", "text": "protected static double limit(double num) {\r\n\t\tif (num > 1.0) {\r\n\t\t\treturn 1.0;\r\n\t\t}\r\n\t\tif (num < -1.0) {\r\n\t\t\treturn -1.0;\r\n\t\t}\r\n\t\treturn num;\r\n\t}", "title": "" }, { "docid": "9d445554818774a88290a0f3a5d67eac", "score": "0.45334238", "text": "int maxOffsetErrors(int parametricState);", "title": "" }, { "docid": "3400f8539dfedbd4441388a28eaa306f", "score": "0.45327353", "text": "public static void main(String[] args) {\n\t\tint res=hammingWeight(2147483648l);\r\n\t\tSystem.out.println(res);\r\n\t}", "title": "" }, { "docid": "4fec2f9c546def06aa2b3f4a0d3cf788", "score": "0.45290673", "text": "public static void main(String[] args) throws IOException{\n Reader sc = new Reader();\n \n int n=sc.nextInt();\n int m=sc.nextInt();\n \n int ans[]=new int[n];\n \n for(int i=0;i<m;i++)\n {\n int l=sc.nextInt();\n int r=sc.nextInt();\n // indexing is 1 based.\n l--;\n r--;\n \n ans[l]++;\n if(r!=n-1)\n {\n ans[r+1]--;\n \n } \n \n }\n \n int s=0;\n int max=0;\n for(int i=0;i<n;i++)\n {\n s+=ans[i];\n ans[i]=s;\n if(s>max)\n {\n max=s;\n }\n }\n \n int brr[]=new int[max+1];\n for(int i=0;i<n;i++)\n {\n brr[ans[i]]++;\n \n }\n \n s=0;\n for(int i=max;i>=0;i--)\n {\n s+=brr[i];\n brr[i]=s;\n \n }\n \n int q=sc.nextInt();\n for(int i=0;i<q;i++)\n {\n int x=sc.nextInt();\n if(x>max)\n {\n System.out.println(0);\n }\n else\n \tSystem.out.println(brr[x]);\n }\n \n\t}", "title": "" }, { "docid": "9cc892d83e8918138d388253a55ff420", "score": "0.45285532", "text": "public static double calculateLimit() {\n return 500;\n }", "title": "" }, { "docid": "faa49c367e6c02f572b52b1b668c5376", "score": "0.45273373", "text": "public static void modifiedNussinov() {\r\n // Declare j\r\n int j;\r\n\r\n // Fill in DPMatrix\r\n for (int k = 0; k < sequence.length(); k++) {\r\n for (int i = 0; i < sequence.length()-1; i++) {\r\n // If bigger than allowed loop size\r\n if (k > minimumLoop - 1) {\r\n // Index is in bounds\r\n if ((i + k + 1) <= sequence.length()-1) {\r\n // Set j to i + k + 1\r\n j = i + k + 1;\r\n\r\n // Set min to max value\r\n double minimum = Double.MAX_VALUE;\r\n\r\n // Check for minimum\r\n minimum = Math.min(minimum, Math.min((DPMatrix[i + 1][j] ), (DPMatrix[i][j - 1] )) );\r\n\r\n // Adjust for pair scores\r\n if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 1) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 2);\r\n } else if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 2) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 3);\r\n }\r\n for (int l = i + 1; l < j; l++) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, (DPMatrix[i][l]) + (DPMatrix[l + 1][j]));\r\n }\r\n\r\n // Set the matrix value\r\n DPMatrix[i][j] = minimum;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Run the traceback\r\n String structure = structureTraceback();\r\n\r\n // Create file for writer\r\n File file = new File(\"5.o1\");\r\n\r\n // Create writer\r\n try {\r\n // Writer\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\r\n // Write sequence\r\n writer.write(sequence);\r\n writer.write('\\n');\r\n\r\n // Write MFE\r\n writer.write(Double.toString(DPMatrix[0][sequenceLength - 1]));\r\n writer.write('\\n');\r\n\r\n // Write structure\r\n writer.write(structure);\r\n\r\n // Close writer\r\n writer.close();\r\n\r\n } catch (IOException e) {\r\n // Print error\r\n System.out.println(\"Error opening file 5.o1\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "36931e454c6ab7c54a3e052410d5318c", "score": "0.452228", "text": "private ArrayList<MotifStruct> sampleModule(Module module, double minMatch, double maxMatch, MotifSampler sampler) {\n int modulesize=module.getCardinality();\n ArrayList<Integer> motiforder=new ArrayList<Integer>(modulesize);\n for (int i=0;i<modulesize;i++) motiforder.add(i); // default order is 0,1,2,3...,N\n if (!module.isOrdered()) Collections.shuffle(motiforder); // choose a random order if order is irrelevant\n ArrayList<MotifStruct> chosenMotifs=new ArrayList<MotifStruct>(modulesize); // Ordered in the same was as the chosen motiforder, Each Object[] array will hold name of single Motif, pattern of single motif and selected orientation\n int totalTFBSspan=0; // the total span of planted TFBS not counting distance between them\n for (int i=0;i<modulesize;i++) { // for each ModuleMotif: select a representative Motif and TFBS pattern as well as relative orientation\n ModuleMotif modulemotif=module.getSingleMotif(motiforder.get(i));\n MotifCollection set=modulemotif.getMotifAsCollection();\n int chosenIndex=(int)(Math.random()*set.size());\n Motif motif=set.getMotifByIndex(chosenIndex, engine); // The Motif choosen to represent this ModuleMotif\n char[] motifpattern=sampler.sample(motif, minMatch, maxMatch);\n double score=getMatchScore(motifpattern, motif);\n int orientation=modulemotif.getOrientation();\n if (orientation==Module.INDETERMINED) orientation=(Math.random()<0.5)?Module.DIRECT:Module.REVERSE; // chose a random orientation if no constraint is set\n totalTFBSspan+=motifpattern.length;\n chosenMotifs.add(new MotifStruct(motiforder.get(i),motif.getName(),motifpattern,orientation,score,0));\n }\n int maxlength=module.getMaxLength(); // maximum allowed length span for entire module\n int maxdistanceleft=maxlength-totalTFBSspan;\n if (maxdistanceleft<0) maxdistanceleft=(modulesize-1)*10; // this can happen if maxlength is not set explicitly. Use an average distance of 10bp between motifs\n int totaldistance=0; // total span of intra-module distances (so far)\n // add distance to next motif to each Object[]\n for (int i=0;i<modulesize;i++) {\n MotifStruct motif=(MotifStruct)chosenMotifs.get(i);\n int distance=0;\n if (i==modulesize-1) distance=totalTFBSspan+totaldistance; // for the last motif the distance should be set to full module distance\n else {// for the other motifs, select a random distance to next motif!\n int[] spacingconstraint=module.getDistance(i, i+1);\n if (spacingconstraint!=null) {\n if (spacingconstraint[0]<0) spacingconstraint[0]=0; // to avoid overlapping motifs do not allow negative distances\n if (spacingconstraint[1]<0) spacingconstraint[1]=0; // to avoid overlapping motifs do not allow negative distances\n int range=spacingconstraint[1]-spacingconstraint[0];\n distance=spacingconstraint[0]+(int)(Math.random()*range);\n } else { // no specific constraint, choose a random length depending on how much length is left\n // if we allow an early motif to choose a random length up to the full length left\n // then there might be little spacing left for the motifs coming after. What we want is probably\n // an approximately equal distance between the motifs (maxdistanceleft/modulesize).\n // here I choose to allow using the full range with a small probability or else the divided range\n if (Math.random()<0.1) {\n distance=(int)(Math.random()*maxdistanceleft*0.7);\n } else {\n distance=(int)(Math.random()*(maxdistanceleft/(double)(modulesize-(i+1))));\n }\n if (distance<0) distance=1; // just a wild guess\n\n }\n }\n motif.distance=distance;\n totaldistance+=distance;\n maxdistanceleft-=distance;\n }\n\n return chosenMotifs;\n }", "title": "" }, { "docid": "3f9af24022ca786b38501cc4c592087b", "score": "0.45208314", "text": "List<Model> minimize(Model model, int nMinima);", "title": "" }, { "docid": "40db4b67df9b4871c7b243472eccce7b", "score": "0.45189336", "text": "private Proof notDividesInductionStep(int n, int m, Expression z) {\n if (n <= m) {\n return notDividesStepLessEq(n, m, z);\n } else {\n return notDividesStepGreater(n, m, z);\n }\n }", "title": "" }, { "docid": "4c4451a0b02d955927c90e29c8e32f5f", "score": "0.451814", "text": "private Proof notGreaterLemma(Expression a, int n1, int m1) {\n if (m1 == 0) {\n int n = n1 - 1;\n final int finalN = n;\n Function<Proof, Proof> stepFunction = p -> {\n Proof faxm5Gen = faxm5Gen(a, intToLit(finalN));\n return equalityRightConvert(faxm5Gen, p);\n };\n Expression equal = equal(plus(a, intToLit(n1)), zero());\n Proof succNotZero = succIsNotZero(plus(a, intToLit(n)));\n return subNot(equal, succNotZero, stepFunction);\n }\n int n = n1 - 1;\n int m = m1 - 1;\n final int finalN = n;\n Function<Proof, Proof> stepFunction = p -> {\n Expression toLit = intToLit(finalN);\n Proof faxm5gen = faxm5Gen(a, toLit);\n Proof faxm2ConvertTwice = faxm2ConvertTwice(faxm5gen, p);\n return faxm3Convert(faxm2ConvertTwice);\n };\n Expression equal = equal(plus(a, intToLit(n1)), intToLit(m1));\n Proof notGreaterLemma = notGreaterLemma(a, n, m);\n return subNot(equal, notGreaterLemma, stepFunction);\n }", "title": "" }, { "docid": "bcae2d577c232d91a0730c421adfd0ef", "score": "0.45172924", "text": "@Test \n\tpublic void baysNeverZeroResult() {\n\t\tboolean nil = false;\n\t\t//word ids are only positive so -1 is testing a \"word not found\" case\n\t\tfor(int i = -1; i< 100; i++) {\n\t\t\tfor(NewsGroup g: groups) {\n\t\t\t\tif(g.bayesianEstimator(i) == 0)\n\t\t\t\t\tnil = true;\n\t\t\t}\n\t\t}\n\t\tassertFalse(nil);\n\t}", "title": "" } ]
d7d97b325de462023a4de75fbc24c419
Gets the value of the pending property.
[ { "docid": "e9a0c9be0095f96bd5e8948d799f8495", "score": "0.7465108", "text": "public boolean isPending() {\n return pending;\n }", "title": "" } ]
[ { "docid": "88aeafd76ee88afaffc675618cc89c3d", "score": "0.85945654", "text": "public Integer getPending() {\n return this.pending;\n }", "title": "" }, { "docid": "24340caad207fdecdca08518a7824b5d", "score": "0.83937085", "text": "public int getPending() {\n return this.pending;\n }", "title": "" }, { "docid": "2cd5d89397717b9b06ea24ed8eb019b2", "score": "0.7468774", "text": "@ApiModelProperty(value = \"Amount of product pending\")\n public Integer getPending() {\n return pending;\n }", "title": "" }, { "docid": "33697b111e6581fad69224c8a9bbc932", "score": "0.73353255", "text": "public boolean isPending() {\n return pending > 0 ? true : false;\n }", "title": "" }, { "docid": "0f2c9a4236ce18527bbea6fcab2ad159", "score": "0.7233343", "text": "public long pendingCount() {\n return pending;\n }", "title": "" }, { "docid": "4a1a6d16d31e58d25c6633a8b8870374", "score": "0.7022855", "text": "public void setPending(Integer pending) {\n this.pending = pending;\n }", "title": "" }, { "docid": "00521fb030ddf8ef80542954cbcba2dd", "score": "0.6983549", "text": "public void setPending(boolean value) {\n this.pending = value;\n }", "title": "" }, { "docid": "728282196fea5d6ad8746a86cc4f239f", "score": "0.68968314", "text": "public int incrementAndGetPending() {\n this.pending++;\n return pending;\n }", "title": "" }, { "docid": "7540b2d9878c8beabd9130c836ced890", "score": "0.6834022", "text": "public void setPending(int pending) {\n this.pending = pending;\n }", "title": "" }, { "docid": "c248e897aa43919cbd97f11322aea575", "score": "0.67797107", "text": "public Long getPrincipalPending() {\n return principalPending;\n }", "title": "" }, { "docid": "8bbc4a149522c0336d3d003ca745fc6f", "score": "0.66430485", "text": "public Long getInterestPending() {\n return interestPending;\n }", "title": "" }, { "docid": "57a2e870a720edaf95654c9db4d5f370", "score": "0.6572791", "text": "public PacketQueue getPendingQueue()\n {\n return this.pendingQueue;\n }", "title": "" }, { "docid": "1b113be1dca73e0a67815d657bede289", "score": "0.65717703", "text": "public Boolean getDelPending() {\n return delPending;\n }", "title": "" }, { "docid": "33a58fb59910e703cf43386d77f6e599", "score": "0.6534983", "text": "public int decrementAndGetPending() {\n this.pending = Math.max(this.pending - 1, 0);\n return pending;\n }", "title": "" }, { "docid": "4766258c43928ba12f709d18426439d3", "score": "0.64952934", "text": "@Override\n\tpublic boolean isPending();", "title": "" }, { "docid": "803699a71e9da1e84daec7d3ac37a211", "score": "0.63958246", "text": "public Byte getStatusNotify() {\n return statusNotify;\n }", "title": "" }, { "docid": "742e8e18b986724911a2aca3073d7cc5", "score": "0.63831145", "text": "@Override\n\tpublic boolean isPending() {\n\t\treturn _official.isPending();\n\t}", "title": "" }, { "docid": "0b66ead09902c94b3c36cf3083ad13ad", "score": "0.6341869", "text": "public Integer getCallWaiting()\n {\n return this.m_CallWaiting;\n }", "title": "" }, { "docid": "68100879e6c6347b174e07ecd54dcb26", "score": "0.6310716", "text": "boolean isPending();", "title": "" }, { "docid": "f08e22b27aa4d8054185baf1a4cf9a05", "score": "0.6304697", "text": "int goToPending() {\n if (this.state != WAITING) {\n logger.warn(this.lockID + \": Ignoring Moving to PENDING since not in WAITING state: current state = \"\n + this.state);\n } else {\n this.state = PENDING;\n }\n return this.server_level;\n }", "title": "" }, { "docid": "f7111a9de97f080daa407c5c705bbb30", "score": "0.62749493", "text": "public Integer getPbStatus() {\r\n\t\treturn pbStatus;\r\n\t}", "title": "" }, { "docid": "9394d1998e56e61b8323bc7e271c7458", "score": "0.6209081", "text": "public List<Request> getPendingRequests() {\n return pendingRequests;\n }", "title": "" }, { "docid": "6eeda6bf83513d6ac0c6d00c3d5eb6bb", "score": "0.61430883", "text": "public Boolean getPendingDeletion() {\n return pendingDeletion;\n }", "title": "" }, { "docid": "dbeb5d3ddce407284f302901bb0f6086", "score": "0.61314166", "text": "public java.util.Date getPendingdate () {\r\n\t\treturn _pendingdate;\r\n\t}", "title": "" }, { "docid": "655c845c2e7e677f148078bdd3ef7c00", "score": "0.6075465", "text": "@Override\n\tpublic boolean isPending() {\n\t\treturn _connection.isPending();\n\t}", "title": "" }, { "docid": "8349e8d349faa81ad8b3163719f077b1", "score": "0.6055259", "text": "@Override\n\tpublic boolean isPending() {\n\t\treturn _place.isPending();\n\t}", "title": "" }, { "docid": "fdc6863bb2cf4b8118a4d6c823a4d37c", "score": "0.6055039", "text": "@Override\n\tpublic boolean isPending() {\n\t\treturn _comment.isPending();\n\t}", "title": "" }, { "docid": "4bf4aa597ad8468b48e4607ecc982cd2", "score": "0.60474193", "text": "public boolean getInProgressFlag() {\n return mInProgress;\n }", "title": "" }, { "docid": "67348c4c512d342541ecf57e440d3d24", "score": "0.6038092", "text": "public boolean hasPending() {\n return sendQueue.hasPending();\n }", "title": "" }, { "docid": "814710a0f2ba2bc4e3da7d250e2a1c8a", "score": "0.6027408", "text": "public String getNotificationRequired() {\n return notificationRequired;\n }", "title": "" }, { "docid": "4bcbd4f80357cbff0f2f0f30efe40193", "score": "0.60175055", "text": "boolean isPending() {\n return outstandingResponses != 0;\n }", "title": "" }, { "docid": "beed2b5e518ee4b029405e002a34f605", "score": "0.5975002", "text": "public Map<String, Map<String, List<Mail>>> getPendingMail() {\r\n\t\treturn this.pendingMail;\r\n\t}", "title": "" }, { "docid": "275bc4f7d8f5cd3395450a379d8f49a1", "score": "0.59412843", "text": "public synchronized boolean hasPending() {\n return queue.size() > 0;\n }", "title": "" }, { "docid": "c6e0537b4574a9119b521f430dec523f", "score": "0.5937316", "text": "public String pendingFirmwareVersion() {\n return this.pendingFirmwareVersion;\n }", "title": "" }, { "docid": "2a4c08f5c40e2d08f1cdfd56aede2611", "score": "0.5923785", "text": "public Integer getIsBusy() {\n return isBusy;\n }", "title": "" }, { "docid": "48671bc5005fb9e230a4d8f45c8db56b", "score": "0.5913522", "text": "public ClientMonitor getPendingClient() {\n return this.mPendingClient;\n }", "title": "" }, { "docid": "a551d11b99e056911a73eb173f4656f9", "score": "0.5874477", "text": "public Integer getWaitingtime() {\n\t\treturn this.waitingtime;\n\t}", "title": "" }, { "docid": "1b6873d84c482e73adffca7bbf5a88f6", "score": "0.58523864", "text": "@javax.annotation.Nullable\n public String getAvailable() {\n return available;\n }", "title": "" }, { "docid": "337dd55d57cae4575547c862b7b532f6", "score": "0.5839709", "text": "public boolean getStatus() {\n return status.get();\n }", "title": "" }, { "docid": "36888518f4907addd34afee9384d90b7", "score": "0.5813325", "text": "public Byte getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "36888518f4907addd34afee9384d90b7", "score": "0.5813325", "text": "public Byte getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "569e8745e6510c000e461e0c4f1a5d25", "score": "0.5798714", "text": "public Byte getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "3a2fb4f6721b80d799faf74c86d64d0e", "score": "0.5772492", "text": "public Byte getStatus() {\n return status;\n }", "title": "" }, { "docid": "506d97ff9654f69bcceb30335f0ed1af", "score": "0.5771942", "text": "public List<ResourceCreationRequest> getPendingRequests() {\n return this.pendingRequests;\n }", "title": "" }, { "docid": "a1c95bf2213c456395cec50e7eb6d11a", "score": "0.5761857", "text": "protected boolean isPending()\n {\n return getChannel().isOpen() && m_buf != null;\n }", "title": "" }, { "docid": "114157f81e936f1f67fd5cace2c12dc7", "score": "0.5752665", "text": "public int getCurrentCompleted(){\n\t\treturn currentCompleted;\n\t}", "title": "" }, { "docid": "54cf3b2a99bb696f5d10771e945b0b83", "score": "0.575051", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\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 ptFlag_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "54cf3b2a99bb696f5d10771e945b0b83", "score": "0.57501435", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\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 ptFlag_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "54cf3b2a99bb696f5d10771e945b0b83", "score": "0.57501435", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\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 ptFlag_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "54cf3b2a99bb696f5d10771e945b0b83", "score": "0.5749012", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\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 ptFlag_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "ae1e1ca6321fd68da5591ea9724b1f62", "score": "0.57452035", "text": "public boolean isSuccess() {\n\t\tif (pending)\n\t\t\tthrow new UnsupportedOperationException(\"Cannot access to property of pending request.\");\n\t\treturn success;\n\t}", "title": "" }, { "docid": "f9b458fa7a052e7c3f34effd2a58390a", "score": "0.5712965", "text": "final long pendingResponses() {\n return pendingResponses.sum();\n }", "title": "" }, { "docid": "571aad54a00abe6e12bd9441132cd352", "score": "0.570335", "text": "String getSuspended();", "title": "" }, { "docid": "f36545d56e88e3f4ab8d766714ef73ea", "score": "0.56854", "text": "@Override\n public StatusFlag getStatus() {\n StatusFlag result = StatusFlag.forNumber(status_);\n return result == null ? StatusFlag.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "b4b53d7903c1841a4944465e4e6452b2", "score": "0.56837976", "text": "@java.lang.Override\n public boolean getNotify() {\n return notify_;\n }", "title": "" }, { "docid": "2d4d9cc913ceb1d1dd131de5d5a41526", "score": "0.56763756", "text": "@java.lang.Override\n public boolean getNotify() {\n return notify_;\n }", "title": "" }, { "docid": "71f8103346a7beff4df9cc6508fe41e4", "score": "0.56576395", "text": "public T getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "352910c437b9639116d4f5969f81df33", "score": "0.5646468", "text": "@Override\n public StatusFlag getStatus() {\n StatusFlag result = StatusFlag.forNumber(status_);\n return result == null ? StatusFlag.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "373dc679e9a57149fe7ef4167272872c", "score": "0.5629914", "text": "public Byte getTask() {\r\n return task;\r\n }", "title": "" }, { "docid": "7ffefb80dc70983b3211e6698a0e2276", "score": "0.56213397", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "7ffefb80dc70983b3211e6698a0e2276", "score": "0.56213397", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "7ffefb80dc70983b3211e6698a0e2276", "score": "0.56213397", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "7ffefb80dc70983b3211e6698a0e2276", "score": "0.56213397", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "7ffefb80dc70983b3211e6698a0e2276", "score": "0.56213397", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "2c54ecfe036c9eaf087eb0af5b25b129", "score": "0.561431", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "2c54ecfe036c9eaf087eb0af5b25b129", "score": "0.561431", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "2c54ecfe036c9eaf087eb0af5b25b129", "score": "0.561431", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "2c54ecfe036c9eaf087eb0af5b25b129", "score": "0.561431", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "2c54ecfe036c9eaf087eb0af5b25b129", "score": "0.561431", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }", "title": "" }, { "docid": "cc7dfc38d9b8b081b2710d28bffaef9d", "score": "0.56138283", "text": "public String getStatusFlag()\n\t{\n\t\treturn getValue(ShippingPlan.STATUSFLAG).toString();\n\t}", "title": "" }, { "docid": "4b12b312335fed00c51f2e642d0f1e88", "score": "0.5599427", "text": "public BooleanProperty statusProperty() {\n return status;\n }", "title": "" }, { "docid": "bd8abe9ac6248bbc298f1ff996673a32", "score": "0.55951935", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ptFlag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "bd8abe9ac6248bbc298f1ff996673a32", "score": "0.55951935", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ptFlag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "38055d81786ce2e49c4c5e1b23ef9986", "score": "0.55946285", "text": "public Integer getSuspendedByAcb() {\n return this.suspendedByAcb;\n }", "title": "" }, { "docid": "b4a6e9b1b55926153a00187a39f5adf0", "score": "0.5594391", "text": "public int getCompleted() {\n return completed;\n }", "title": "" }, { "docid": "bd8abe9ac6248bbc298f1ff996673a32", "score": "0.559436", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ptFlag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "bd8abe9ac6248bbc298f1ff996673a32", "score": "0.559436", "text": "public java.lang.String getPtFlag() {\n java.lang.Object ref = ptFlag_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ptFlag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "74b9b7322a89c2546ff3b850a0316357", "score": "0.5592472", "text": "boolean getStatusFlag() {\n\t\treturn this.statusFlag;\n\t}", "title": "" }, { "docid": "062be75f936c5accd2fc5cec54b470d3", "score": "0.5590236", "text": "public Optional<Customer> getWaitingCustomer() {\n return this.waitingCustomer;\n }", "title": "" }, { "docid": "0884239fa4d789d1e2df2c3352170d46", "score": "0.5588757", "text": "public Integer getActive() {\n return this.active;\n }", "title": "" }, { "docid": "867f45a2a1786a220cfc47e414a3d178", "score": "0.5587903", "text": "@Override\r\n public T getStatus() {\r\n return this.status;\r\n }", "title": "" }, { "docid": "1faf4148f606573e383a0c28dc1038eb", "score": "0.5587461", "text": "public Boolean isPendingDeletion() {\n return pendingDeletion;\n }", "title": "" }, { "docid": "f2be54ca45b61b523ac8d5d3a372da31", "score": "0.55847013", "text": "@Nullable\n public final String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "a34700c94feef097dd7df85b1f316b10", "score": "0.5581894", "text": "public Byte getFlag() {\r\n return flag;\r\n }", "title": "" }, { "docid": "1982ad03a9a6327019cd19c1c87ac8b4", "score": "0.5578539", "text": "public Byte getFlag() {\n return flag;\n }", "title": "" }, { "docid": "b58d08ae798ff3f66677148bd28107af", "score": "0.55670726", "text": "public boolean getRequired(){\n return localRequired;\n }", "title": "" }, { "docid": "5c1758e196f3798b2e48722a940372a8", "score": "0.55667424", "text": "public LiveData<CachingTaskStatus> getCachingTaskStatus() {\n return cachingTaskStatus;\n }", "title": "" }, { "docid": "d3bc6765d200633f34db47f0b8153594", "score": "0.5562564", "text": "public boolean getBusy ()\n {\n return (getBooleanProperty(\"Busy\") || (getReadyState() != ReadyState.COMPLETE));\n }", "title": "" }, { "docid": "cc51cba67c968c60d9b5e4093c731dc8", "score": "0.5555607", "text": "public String getPStatus(){\n\t\treturn comboBoxPStatus.getSelectedItem().toString();\n\t}", "title": "" }, { "docid": "c8e00d7f4308ab06e768907dcce081b1", "score": "0.55512273", "text": "@Override\n public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "87184ad16f9457f25bb4d7612f43a6ea", "score": "0.55486166", "text": "public boolean getPlanned(){\n return localPlanned;\n }", "title": "" }, { "docid": "00714208fe2f7ad5405c184e3a46c913", "score": "0.5544521", "text": "public boolean getSuspended() {\r\n\t\treturn suspended;\r\n\t}", "title": "" }, { "docid": "7fbdce88f75c2aec7816e2604eb944d7", "score": "0.55379313", "text": "public String getTaskStatus() {\n return taskStatus;\n }", "title": "" }, { "docid": "911d50944a4d61f10eeb84dc1d564a36", "score": "0.5535828", "text": "public boolean getSuspended() {\n return this.suspended;\n }", "title": "" } ]
317cae8382b0049676a80447abab584d
Returns a list of the best qualified pictures in all the server
[ { "docid": "551a0af4751b199082e7b0efbb808368", "score": "0.5329573", "text": "public List<DatatypeContent> getMostCommentedPictures(int length);", "title": "" } ]
[ { "docid": "bf32891d8592f2e82f5b15b4d4d8d572", "score": "0.68604374", "text": "public List<DatatypeContent> getBestQualifiedPictures(int length);", "title": "" }, { "docid": "2dba11e503b1b12a0a07ec45fac18671", "score": "0.67363125", "text": "public void getFetchStorages() throws Exception {\n ServerInfo[] servers = FileManager.getFetchStorages(\"group1\", \"M00/00/00/wKgBm1N1-CiANRLmAABygPyzdlw073.jpg\");\n\n for (int k = 0; k < servers.length; k++) {\n System.err.println(k + 1 + \". \" + servers[k].getIpAddr() + \":\" + servers[k].getPort());\n }\n }", "title": "" }, { "docid": "3f90bd3c5b14687a21cb4128f26260d4", "score": "0.63055325", "text": "java.util.List<String> getImagesList();", "title": "" }, { "docid": "12bd64ec444591b0204129e06e0b4769", "score": "0.62246263", "text": "static Pair<Vector<Bitmap>, Vector<String>> getAllPictures() {\n\n Vector<Bitmap> bitmaps = new Vector<>();\n Vector<String> paths = new Vector<>(); // Paths to files with images\n\n String path = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES).toString() + \"/puzzles\";\n File f = new File(path);\n File file[] = f.listFiles();\n\n for (File it : file) {\n String filenameArray[] = it.getName().split(\"\\\\.\");\n String extension = filenameArray[filenameArray.length - 1];\n\n if (extension.equals(\"png\") || extension.equals(\"jpg\") ||\n extension.equals(\"bmp\") || extension.equals(\"gif\") || extension.equals(\"jpeg\")) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inPreferredConfig = Bitmap.Config.ARGB_8888;\n Bitmap bitmap = null;\n try {\n bitmap = Picture.decodeSampledBitmapFromFile(it, Constant.GRID_THUMB_DIM,\n Constant.GRID_THUMB_DIM);//Dimensions for grid thumbs\n bitmaps.add(bitmap);\n paths.add(path + \"/\" + it.getName());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n }\n return new Pair<>(bitmaps, paths);\n }", "title": "" }, { "docid": "bb652338b2b27d11af16c0fd67a05fed", "score": "0.62193507", "text": "private ArrayList<String> getAllShownImagesPath(Activity activity) {\n Uri uri;\n int column_index_data, column_index_folder_name;\n ArrayList<String> listOfAllImages = new ArrayList<String>();\n String absolutePathOfImage = null;\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n\n String[] projection = {MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME};\n final Cursor cursor = getContext().getContentResolver()\n .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, null,\n null, MediaStore.Images.ImageColumns.DATE_TAKEN + \" DESC\");\n\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n final int maxDim = 50;\n int index = 0;\n while (cursor.moveToNext()) {\n absolutePathOfImage = cursor.getString(column_index_data);\n listOfAllImages.add(absolutePathOfImage);\n index++;\n if (index == maxDim)\n break;\n }\n return listOfAllImages;\n }", "title": "" }, { "docid": "4c162e89de117298a323079769cfa145", "score": "0.61755556", "text": "List<String> getThumbnails();", "title": "" }, { "docid": "44e5cf16b207044e329862e780377dee", "score": "0.6133021", "text": "List<Image> fetchAllImages() throws RestClientException;", "title": "" }, { "docid": "436901c4a37b19612102f8a087f3e7b6", "score": "0.5949112", "text": "public List<URL> getPhotos();", "title": "" }, { "docid": "2f652926651a7234e4472309eb00b558", "score": "0.592587", "text": "@GET\n @Path(\"/getImagesForView\")\n @Produces(MediaType.APPLICATION_JSON)\n @Transactional\n public List<Image> getAlreadyUsedImages() {\n return imageDao.getAllAlreadyUsedImages();\n }", "title": "" }, { "docid": "a66ae0c4c65713c1d4796f66f8831d7b", "score": "0.5858315", "text": "public List<ThumbFile> listThumbnails();", "title": "" }, { "docid": "2a53213cffc1d21c51b4d64f1a64eb90", "score": "0.58519477", "text": "public Iterable<? extends Image> getImages() {\n\t\t if (nova == null) {\n\t\t\t log.error(\"nova object is not initialized! call open() first!\");\n\t\t\t return null;\n\t\t }\n\t\t ImageApi imageApi = nova.getApi().getImageApiForZone(zone);\n\t\t return imageApi.listInDetail().concat();\n\t }", "title": "" }, { "docid": "e925787c63e0252ff634e45a0e249c0e", "score": "0.5836373", "text": "public Set<Image> getAllImages(Infrastructure infrastructure);", "title": "" }, { "docid": "7e20b55b1900745534953b2de5054508", "score": "0.58264184", "text": "public File getRandomFile(Server server){\n\t\tArrayList<File> imgList = new ArrayList<File>(); \n\t\t \n\t\tFile[] dirList = new File(imgLocation + server.getId() + \"/\").listFiles();\n\t\tfor(File directory : dirList){\n\t\t\tFile[] tempImgList = new File(directory.getAbsolutePath()).listFiles();\n\t\t\tfor(File img : tempImgList)\n\t\t\timgList.add(img);\n\t\t}\n\t\treturn imgList.get((int)(Math.random()*imgList.size()));\n\t}", "title": "" }, { "docid": "292226e10dcd1a1f28693b6697858324", "score": "0.57991505", "text": "@Override\n\tpublic List<Picture> getListOfPictures(Album album) {\n\t\t// TODO: obtain remote information\n\t\tList<Picture> lst = new ArrayList<Picture>();\n\t\tlst.add( new SharedPicture(\"aula 1\"));\n\t\tlst.add( new SharedPicture(\"aula 2\"));\n\t\tlst.add( new SharedPicture(\"aula 3\"));\n\t\treturn lst;\n\t}", "title": "" }, { "docid": "e49c064b460274499cdf2c99c8ad7e85", "score": "0.57738227", "text": "public List<GenericImage> getImages(Context context) {\n\t\tString json = FileUtils.readRawTextFile(context, R.raw.flickr);\n\n\t\tQueryResponse response = getObjectFromJson(json,\n\t\t\t\tQueryResponse.class);\n\n\t\tList<GenericImage> images = new ArrayList<GenericImage>();\n\t\tfor (FlickrImage flickrImage : response.getImages()) {\n\t\t\tGenericImage genericImage = new GenericImage();\n\t\t\tgenericImage.setHeight(flickrImage.getHeight());\n\t\t\tgenericImage.setWidth(flickrImage.getWidth());\n\t\t\tgenericImage.setUrl(flickrImage.getImageURL());\n\t\t\timages.add(genericImage);\n\t\t}\n\n\t\treturn images;\n\t}", "title": "" }, { "docid": "8f6e073a89f2731cac7f42022da4c043", "score": "0.57702196", "text": "@Override\n\tpublic List<String> getAllImages() {\n\t\treturn flickrDao.getAllImages();\n\t}", "title": "" }, { "docid": "7a8898c732c3844a0554d5b93aaa8a29", "score": "0.5748077", "text": "Map<String, String> getThumbnailUrls();", "title": "" }, { "docid": "6b911124829b9a6c530a9887364e1dbe", "score": "0.57425046", "text": "@GetMapping(value=\"/listBestOfToday\")\n\tpublic List<ImageDTO> getListBestOfToday(/*@RequestParam String[] services*/){\n\t\tString[] list = new String[2];\n\t\tlist[0] = \"IMGUR\";\n\t\tlist[1] = \"GIPHY\";\n\t\t//\n\t\t\n\t\tList<ServiceProviders> services = getEnumValue(list,ServiceProviders.class);\n\t\tif(!services.isEmpty()){\n\t\t\tservices.parallelStream().forEach(service ->{\n\t\t\t\tif(service == ServiceProviders.IMGUR){\n\t\t\t\t\tthis.imgurImageService.getImageByBestOfTheDay();\n\t\t\t\t}else if(service == ServiceProviders.GIPHY){\n\t\t\t\t\t//TODO\n\t\t\t\t}else{\n\t\t\t\t\t//TODO\n\t\t\t\t\t//throw new Exception(\"\");\n\t\t\t\t}\n\t\t\t});\n\t\t}else{\n\t\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8fdbee48b44b5e162caa9fe269b62f00", "score": "0.5694936", "text": "private static void loadImages() {\r\n\t\tpictures = new ArrayList<Image>();\r\n\t\tjava.net.URL marsURL = MarsModelo.class.getResource(\"mars.png\");\r\n\t\tjava.net.URL marsSeenURL = MarsModelo.class.getResource(\"marsSeen.png\");\r\n\t\tjava.net.URL homebaseURL = MarsModelo.class.getResource(\"homebase.png\");\r\n\t\tjava.net.URL spotterURL = MarsModelo.class.getResource(\"sentryagent.png\");\r\n\t\tjava.net.URL produtorURL = MarsModelo.class.getResource(\"productionagent.png\");\r\n\t\tjava.net.URL transportadorURL = MarsModelo.class.getResource(\"carryagent.png\");\r\n\t\tpictures.add(new ImageIcon(marsURL).getImage());\r\n\t\tpictures.add(new ImageIcon(marsSeenURL).getImage());\r\n\t\tpictures.add(new ImageIcon(homebaseURL).getImage());\r\n\t\tpictures.add(new ImageIcon(spotterURL).getImage());\r\n\t\tpictures.add(new ImageIcon(produtorURL).getImage());\t\r\n\t\tpictures.add(new ImageIcon(transportadorURL).getImage());\t\r\n\t}", "title": "" }, { "docid": "40c08ef226282c801f1e6f1568ba1eef", "score": "0.56866", "text": "public List<String[]> getImages(){\n\t\t\n\t\treturn loadImages();\n\t}", "title": "" }, { "docid": "5ae573fba355d92758a81a4dd9d0b814", "score": "0.5670275", "text": "public ArrayList<PhotosGridModel> getSameImages(String clusterId) {\n ArrayList<PhotosGridModel> items = new ArrayList<PhotosGridModel>();\n final Cursor cursor = database.query(TABLE_PHOTOS, null, COLUMN_CLUSER_ID + \"=?\", new String[]{\"\" + clusterId}, null, null, null, null);\n try {\n if (cursor.getCount() > 0) {\n if (cursor.moveToFirst()) {\n do {\n if (cursor.getInt(cursor.getColumnIndex(COLUMN_IS_BEST)) == 1) {\n\n } else {\n int ClusterId = cursor.getInt(cursor.getColumnIndex(COLUMN_CLUSER_ID));\n float QualityRank = cursor.getFloat(cursor.getColumnIndex(COLUMN_QUALITY_RANK));\n items.add(new PhotosGridModel(cursor.getString(cursor.getColumnIndex(COLUMN_FILE_LOCATION)), false, \"1\", null, \"0\", ClusterId, QualityRank, cursor.getInt(cursor.getColumnIndex(COLUMN_FILE_INDEX)), cursor.getString(cursor.getColumnIndex(COLUMN_UPDATE_DATE)), cursor.getInt(cursor.getColumnIndex(COLUMN_IS_BEST))));\n }\n } while (cursor.moveToNext());\n }\n }\n if (cursor != null)\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return items;\n }", "title": "" }, { "docid": "0121d80b9cae1b39e7d7910886b36f03", "score": "0.56436646", "text": "public List<Photo> retrievePhotoList() throws Exception;", "title": "" }, { "docid": "0e430c3cffc5f9ee7d3fa121515d9ef8", "score": "0.5616383", "text": "public void peakExternalStoragePublicPicture() {\n\t\tbmFiles = new Vector<Vector<Bitmap>>();\n\t\tnew Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tfor(int i = 0 ; i < files.size() ; i++){\n\t\t\t\t\tVector<Bitmap> bmV = new Vector<Bitmap>();\n\t\t\t\t\tfor(int j = 0 ; j < files.get(i).length ; j++){\n\t\t\t\t\t\tString p = files.get(i)[j].getPath();\n\t\t\t\t\t\t\n\t\t\t\t\t\tBitmapFactory.Options opts = new BitmapFactory.Options();\n\t\t\t\t\t\topts.inJustDecodeBounds = true;\n\t\t\t\t\t\tBitmapFactory.decodeFile(p, opts);\n\n\t\t\t\t\t\topts.inSampleSize = computeSampleSize(opts, -1, 100*100);\n\t\t\t\t\t\topts.inJustDecodeBounds = false;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBitmap bmp = BitmapFactory.decodeFile(p, opts);\n\t\t\t\t\t\t\tbmV.add(bmp);\n\t\t\t\t\t\t } catch (OutOfMemoryError err) {\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbmFiles.add(bmV);\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "title": "" }, { "docid": "882ee23e0fafa77c421a74a050895689", "score": "0.559473", "text": "@Override\n public Iterable<Image> listImages() {\n final Set<String> imagesFromYamlNames = Sets.newHashSet(Iterables.transform(imagesToYamlImages.keySet(),\n new Function<Image, String>() {\n @Override\n public String apply(Image input) {\n return VIRTUALBOX_IMAGE_PREFIX + input.getId();\n }\n\n }));\n\n // IMachines that were not built from the yaml file transformed to Images\n Set<Image> imagesFromCloning = Sets.newHashSet(Iterables.transform(\n Iterables.filter(imageMachines(), new Predicate<IMachine>() {\n @Override\n public boolean apply(IMachine input) {\n return !imagesFromYamlNames.contains(input.getName());\n }\n }), imachineToImage));\n\n // final set of images are those from yaml and those from vbox that were not a transformation\n // of the yaml ones\n return Sets.union(imagesToYamlImages.keySet(), imagesFromCloning);\n }", "title": "" }, { "docid": "e5649c4b85e3d2b56c55f98ab79897a0", "score": "0.5585462", "text": "public Map<Integer,ImageContainer> getImages() throws DBError;", "title": "" }, { "docid": "282f03ef9e3289d94973adb42ba14ec7", "score": "0.554393", "text": "List<Photo> getPhotos(String user);", "title": "" }, { "docid": "e81107945f45389a58dea3c6d25c9acf", "score": "0.55337566", "text": "public CommonResponseDTO getAllImages();", "title": "" }, { "docid": "ac3cda5d1619fdc69cdccab7395127d0", "score": "0.55326134", "text": "public List<String> getLocations() throws IOException {\n\n ReplicaLocationsResponse majorityResponse = null;\n final List<ReplicaLocationsResponse> resultList = new LinkedList<ReplicaLocationsResponse>();\n final Set<ReplicaLocationsResponse> resultSet = new HashSet<ReplicaLocationsResponse>();\n\n int initialMatches = 1;\n boolean foundMajority = false;\n\n /*\n * Get responses. Loop through each locator server.\n */\n for (final Entry<LocatorClientConnection, Integer> locatorLocation : locatorConnections.entrySet()) {\n\n final LocatorClientConnection lcc = locatorLocation.getKey();\n\n if (!lcc.checkIsConnected()) { // not connected.\n break;\n }\n final ReplicaLocationsResponse response = lcc.getDatabaseLocations();\n\n locatorLocation.setValue(response.getUpdateCount());\n\n // If we've found the majority the only thing needing updated is the update count.\n if (!foundMajority) {\n resultList.add(response);\n final boolean newEntry = resultSet.add(response);\n\n if (!newEntry || locatorConnections.size() == 1) { // if we quickly get a majority, use this.\n initialMatches++;\n if (initialMatches >= locatorConnections.size() / 2 + 1) {\n majorityResponse = response;\n foundMajority = true;\n }\n // XXX this doesn't record the database locations returned\n // by each locator server. Does this matter?\n }\n }\n }\n\n if (!foundMajority) {\n /*\n * Pick majority response.\n */\n final Map<ReplicaLocationsResponse, Integer> matches = new HashMap<ReplicaLocationsResponse, Integer>();\n\n for (final ReplicaLocationsResponse response : resultList) {\n final Integer count = matches.get(response);\n\n if (count == null) {\n matches.put(response, 1);\n }\n else {\n matches.put(response, (count + 1));\n }\n }\n\n int currentMax = 0;\n for (final Entry<ReplicaLocationsResponse, Integer> entry : matches.entrySet()) {\n final int count = entry.getValue();\n\n if (count > currentMax) {\n majorityResponse = entry.getKey();\n currentMax = count;\n }\n }\n\n if (currentMax < resultList.size() / 2 + 1) { return null; // no majority found.\n }\n }\n\n return majorityResponse.getLocations();\n }", "title": "" }, { "docid": "da3bc90dcf0ef91d6b89c597412a136d", "score": "0.5524126", "text": "java.util.List<java.lang.String>\n getLargeVoicePicList();", "title": "" }, { "docid": "08028da9bb190fb9b1577d97f356aae7", "score": "0.5510333", "text": "public void getAvatars() throws IOException{\n\t\t\n\t\tint counter = 1;\n\t\tFile newFile;\n\t\tFileOutputStream out;\n\t\tInputStream input;\n\t\tbyte[] buffer = new byte[2024];\n\t\t\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = conn.prepareStatement(\"SELECT * FROM Avatar;\");\n\t\t\tstatement.execute();\n\t\t\t\n\t\t\tjava.sql.ResultSet resultset = null;\n\t\t\tresultset = statement.executeQuery();\n\t\t\t\n\t\t\twhile(resultset.next()){\n\t\t\t\t\n\t\t\t\tinput = resultset.getBinaryStream(\"src\");\n\t\t\t\t\n\t\t\t\tnewFile = new File(\"Avatar\"+String.valueOf(counter)+\".png\");\n\t\t\t\tout = new FileOutputStream(newFile);\n\t\t\t\t\n\t\t\t\twhile (input.read(buffer) > 0){\n\t\t\t\t\t\n\t\t\t\t\tout.write(buffer);\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c2c4bccbae6c28dce2b232453d911d45", "score": "0.5496366", "text": "private ArrayList<String> getAllShownImagesPath(Context activity) {\n Uri uri;\n Cursor cursor;\n int data,album;\n int check=0;\n\n\n int column_index_data, column_index_folder_name;\n ArrayList<String> listOfAllImages = new ArrayList<String>();\n String absolutePathOfImage = null;\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n\n String[] projection = { MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME };\n\n cursor = activity.getContentResolver().query(uri, projection, null, null, null);\n\n\n ///////<< 앨범으로 만들기\n// cursor = activity.getContentResolver().query(uri, projection, \"GROUP BY (BUCKET_DISPLAY_NAME\",\n// null, null);\n// while(cursor.moveToNext()){\n//\n// }\n// data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n// album = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.BUCKET_DISPLAY_NAME);\n//\n// viewholder{\n// image view = set(data);\n// image view onclik{\n//\n// }\n// text view = set(album);\n//\n// }\n//\n//\n//\n// cursor= activity.getContentResolver().query(uri, projection, \"BUCKET_DISTPLAY_NAME ==\" +\"'\" +album+\"'\" ,\n// null, null);\n //<<---- 2번째 view\n //////<< 앨범으로 만들기\n\n\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n while (cursor.moveToNext()) {\n\n absolutePathOfImage = cursor.getString(column_index_data);\n listOfAllImages.add(absolutePathOfImage);\n\n }\n return listOfAllImages;\n }", "title": "" }, { "docid": "c8bb0fb37d0266756d9c5acbf100824b", "score": "0.54914445", "text": "public ArrayList<File> getAllImages() {\n return null;\n }", "title": "" }, { "docid": "cb0e67d9145bb5f88a9014d4f88fd97f", "score": "0.5473225", "text": "private void fetchGalleryImages() {\n final String[] columns = {MediaStore.Images.Media.DATA, MediaStore.Images.Media._ID};//get all columns of type images\n final String orderBy = MediaStore.Images.Media.DATE_TAKEN;//order data by date\n Cursor imagecursor = managedQuery(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, columns, null,\n null, orderBy + \" DESC\");//get all data in Cursor by sorting in DESC order\n\n galleryImageUrls = new ArrayList<String>();//Init array\n\n\n //Loop to cursor count\n for (int i = 0; i < imagecursor.getCount(); i++) {\n imagecursor.moveToPosition(i);\n int dataColumnIndex = imagecursor.getColumnIndex(MediaStore.Images.Media.DATA);//get column index\n galleryImageUrls.add(imagecursor.getString(dataColumnIndex));//get Image from column index\n System.out.println(\"Array path : \" + galleryImageUrls.get(i));\n }\n }", "title": "" }, { "docid": "33529de53299aeeb35fa9432b1d49cfa", "score": "0.54663247", "text": "private List<String[]> loadImages(){\n\t\t\n\t\tList<String[]> carouselData = new ArrayList<String[]>();// List of strings to hold comments\n\t\tList<Map<String, Object>> rows = jdbcTemplateObject.queryForList(GET_CAROUSEL); \t\t\n\t\t\n\t\tfor (Map<String, Object> row : rows) { // For loop through results \n\t\t\tString[] temp = new String[4];\n\t\t\ttemp[0] = (String)row.get(\"image\");\n\t\t\ttemp[1] = (String)row.get(\"description\");\n\t\t\ttemp[2] = Integer.toString((Integer)row.get(\"id\"));\n\t\t\ttemp[3] = (String)row.get(\"address\");\n\t\t\tcarouselData.add(temp);\n\t\t\n\t\t} \n\t\t\n\t\treturn carouselData;\n\t}", "title": "" }, { "docid": "076abc064108da727d2bd94c65e21e80", "score": "0.54374075", "text": "private ArrayList<GalleryImage> getBingImages(int n2, boolean bl2) throws IOException {\n ArrayList<GalleryImage> arrayList = new ArrayList<GalleryImage>();\n String string2 = this.getBingJson(n2, bl2);\n JsonArray jsonArray = new JsonParser().parse(string2).getAsJsonObject().get(\"d\").getAsJsonObject().get(\"results\").getAsJsonArray();\n string2 = bl2 ? \"SourceUrl\" : \"Url\";\n n2 *= 50;\n while (arrayList.size() < 50 && n2 < jsonArray.size()) {\n JsonObject jsonObject = jsonArray.get(n2).getAsJsonObject();\n String string3 = jsonObject.get(string2).getAsString();\n FragmentIndex fragmentIndex = FragmentRouter.INSTANCE.getGalleryFragmentIndexByUrl(string3);\n if (fragmentIndex != null && !fragmentIndex.isIndexOf(UnsupportedUrlFragment.class)) {\n String string4;\n GalleryImage galleryImage = new GalleryImage(null, string3, jsonObject.get(\"Title\").getAsString(), 150, 150);\n int n3 = fragmentIndex.getBreadcrumbIcon();\n int n4 = fragmentIndex.getRootBreadcrumbIcon();\n CrDb.d(\"crumby producer\", \"\" + n4 + \" \" + fragmentIndex.getFragmentClassName() + \" \" + n3);\n if (n3 != n4 && n3 != -1) {\n LayerDrawable layerDrawable;\n String string5 = \"\" + n4 + \" \" + n3;\n string4 = layerDrawable = overlays.get(string5);\n if (layerDrawable == null) {\n layerDrawable = this.context.getResources().getDrawable(n4);\n Drawable drawable2 = this.context.getResources().getDrawable(n3);\n string4 = (LayerDrawable)this.context.getResources().getDrawable(2130837688);\n string4.setDrawableByLayerId(2131493169, (Drawable)layerDrawable);\n string4.setDrawableByLayerId(2131493170, drawable2);\n overlays.put(string5, (LayerDrawable)string4);\n }\n galleryImage.setIcon((LayerDrawable)string4);\n } else {\n galleryImage.setIcon(n4);\n }\n if (bl2) {\n galleryImage.setThumbnailUrl(jsonObject.get(\"Thumbnail\").getAsJsonObject().get(\"MediaUrl\").getAsString());\n galleryImage.setImageUrl(jsonObject.get(\"MediaUrl\").getAsString());\n } else {\n galleryImage.setThumbnailUrl(CrumbyProducer.getSnapshot(string3));\n if (fragmentIndex.isIndexOf(ImgurImageFragment.class)) {\n string4 = GalleryViewerFragment.matchIdFromUrl(ImgurImageFragment.REGEX_URL, string3);\n galleryImage.setImageUrl(\"http://i.imgur.com/\" + string4 + \".jpg\");\n galleryImage.setThumbnailUrl(\"http://i.imgur.com/\" + string4 + \"m.jpg\");\n galleryImage.setSmallThumbnailUrl(\"http://i.imgur.com/\" + string4 + \"t.jpg\");\n }\n }\n galleryImage.setSubtitle(jsonObject.get(\"DisplayUrl\").getAsString());\n galleryImage.setReload(true);\n arrayList.add(galleryImage);\n }\n ++n2;\n }\n return arrayList;\n }", "title": "" }, { "docid": "65f46bda1a2de1285b8790958e88bd61", "score": "0.543602", "text": "public PriorityQueue<Result<String>> getMatchingImages(File image) throws IOException {\r\n\t\treturn getMatchingImages(ImageIO.read(image));\r\n\t}", "title": "" }, { "docid": "20fc1fcdb8240443c317e7ce347b8607", "score": "0.5434307", "text": "public ArrayList<EgotripMetadata> getMetadataThatRequiresImageUploadBeforeItCanBeUPloaded() {\n\t\tsynchronized (DBLOCK) {\n\t\t\tCursor cursor = query(\"SELECT m.id as id, m.metadatatype as metadatatype,m.localcontent as localcontent, m.servercontent as servercontent, m.modified as modified, m.synced as synced, m.deleted as deleted, m.serverid as serverid, m.locationid as locationid \"\n\t\t\t\t\t+ \" FROM \"\n\t\t\t\t\t+ DbTools.METADATATABLE\n\t\t\t\t\t+ \" m INNER JOIN \"\n\t\t\t\t\t+ DbTools.LOCATIONTABLE\n\t\t\t\t\t+ \" l \"\n\t\t\t\t\t+ \"ON (m.locationid=l.id) \"\n\t\t\t\t\t+ \"WHERE (m.synced < m.modified or m.synced is null) AND m.servercontent is null \"\n\t\t\t\t\t+ \" AND m.metadatatype='imagelink'\"\n\t\t\t\t\t+ \" AND l.serverid IS NOT NULL\");\n\n\t\t\tArrayList<EgotripMetadata> imageMetadata = getMetadataFromCursor(cursor);\n\n\t\t\tif (!cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t\treturn imageMetadata;\n\t\t}\n\t}", "title": "" }, { "docid": "22b937e2d0774b9fabc75fc40a99f1a9", "score": "0.5432099", "text": "public static List<TextItem> getAllImageFiles() {\r\n\t\tList<TextItem> imageFiles = new ArrayList<TextItem>();\r\n\t\tList<HiveApImageInfo> images = QueryUtil.executeQuery(\r\n\t\t\t\tHiveApImageInfo.class, null, null);\r\n\t\tfor (HiveApImageInfo image : images) {\r\n\t\t\timageFiles.add(new TextItem(image.getImageName(), image\r\n\t\t\t\t\t.getImageVersion() + \" - \" + image.getImageName()));\r\n\t\t}\r\n\t\tif (imageFiles.size() == 0) {\r\n\t\t\tString none = MgrUtil.getUserMessage(\"config.optionsTransfer.none\");\r\n\t\t\timageFiles.add(new TextItem(none, none));\r\n\t\t}\r\n\t\t// ordered\r\n\t\tCollections.sort(imageFiles, new Comparator<TextItem>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(TextItem o1, TextItem o2) {\r\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn imageFiles;\r\n\t}", "title": "" }, { "docid": "d58eb96d7c23dd5bd32d6ba84ed52269", "score": "0.53703994", "text": "public List<CloudImageDescription> getCompatibleImages(MethodResourceDescription requested) {\n // logger.debug(\"REQUESTED: \" + requested.toString());\n List<CloudImageDescription> compatiblesList = new LinkedList<>();\n for (CloudImageDescription cid : this.images.values()) {\n // logger.debug(\"CID: \" + cid.toString());\n\n // OS CHECK\n String imageOSType = cid.getOperatingSystemType();\n String reqOSType = requested.getOperatingSystemType();\n if (!imageOSType.equals(CloudMethodResourceDescription.UNASSIGNED_STR)\n && !reqOSType.equals(CloudMethodResourceDescription.UNASSIGNED_STR) && !imageOSType.equals(reqOSType)) {\n continue;\n }\n\n String imageOSDistr = cid.getOperatingSystemDistribution();\n String reqOSDistr = requested.getOperatingSystemDistribution();\n if (!imageOSDistr.equals(CloudMethodResourceDescription.UNASSIGNED_STR)\n && !reqOSDistr.equals(CloudMethodResourceDescription.UNASSIGNED_STR)\n && !imageOSDistr.equals(reqOSDistr)) {\n continue;\n }\n\n String imageOSVersion = cid.getOperatingSystemVersion();\n String reqOSVersion = requested.getOperatingSystemVersion();\n if (!imageOSVersion.equals(CloudMethodResourceDescription.UNASSIGNED_STR)\n && !reqOSVersion.equals(CloudMethodResourceDescription.UNASSIGNED_STR)\n && !imageOSVersion.equals(reqOSVersion)) {\n continue;\n }\n\n // SOFTWARE CHECK\n if (!cid.getAppSoftware().containsAll(requested.getAppSoftware())) {\n continue;\n }\n\n // CHECK QUEUES\n List<String> reqQueues = requested.getHostQueues();\n List<String> imageQueues = cid.getQueues();\n // Disjoint = true if the two specified collections have no elements in common.\n if (!reqQueues.isEmpty() && Collections.disjoint(reqQueues, imageQueues)) {\n continue;\n }\n\n compatiblesList.add(cid);\n }\n return compatiblesList;\n }", "title": "" }, { "docid": "b76b96d3c6d463c559b18addae2f7deb", "score": "0.5356061", "text": "public List<String> getImageUrls()\r\n {\r\n if (imageUrls == null)\r\n {\r\n imageUrls = new ArrayList<>();\r\n }\r\n return imageUrls;\r\n }", "title": "" }, { "docid": "9b3dfe204f27b7d2a0c6508e0c69ff87", "score": "0.53489685", "text": "public List<Photo> getPhotos(User u);", "title": "" }, { "docid": "8e612e2ac16022b72799dd731c7267c6", "score": "0.5347222", "text": "public ArrayList<GenericDropboxFile> getFiles()\n\t{\t\t\n\t\tArrayList<GenericDropboxFile> remote_files = new ArrayList<GenericDropboxFile>();\n\t\t\t\n\t\t//obtenemos los ficheros remotos.\n\t\tscanDir(remote_files,DbxPath.ROOT);\n\t\t\n\t\t//Realizamos la sincronizacion entre local y remoto.\n\t\tfiles = doSync(files,remote_files);\n\t\t\n\t\treturn files;\n\t}", "title": "" }, { "docid": "0f8faf27f491328f03b859007fcf7216", "score": "0.53240645", "text": "@Override\n\tpublic List<ImageEntity> getImageAll() {\n\t\treturn iImageMapper.getImageAll();\n\t}", "title": "" }, { "docid": "6a878128dd0510f3fdd1a44ca869becf", "score": "0.53218234", "text": "public List<String> GetNamesOfImagesInLocalStorage(){\n\n List<String> files = new ArrayList();\n\n try{\n ContextWrapper cw = new ContextWrapper(context);\n File directory = cw.getDir(FolderName, Context.MODE_PRIVATE);\n\n if(directory.exists()){\n files.addAll(Arrays.asList(directory.list()));\n return files;\n }\n else{\n System.out.println(\"Directory \" + directory.getName() + \" Doesnt exist\");\n return null;\n }\n }catch (Exception ex){\n System.out.println(ex);\n }\n\n return files;\n }", "title": "" }, { "docid": "37acb3354550d74e3ebb633a317e328e", "score": "0.531823", "text": "public List<Image> BitmapImages()\n {\n\n\n return bitmapImages;\n // questions.get(currentQuestion).getType().equals(\n\n }", "title": "" }, { "docid": "72f9b32748317dded8a1f570c0e7a323", "score": "0.5294281", "text": "@Override\r\n\tpublic List<Gallery> getAllGallery() {\n\t\tList<Gallery> list = (List<Gallery>) dao.findAll();\r\n\t\tfor (Gallery gallery : list) {\r\n\t\t\tgallery.setRealPath(rootPath + gallery.getLocation());\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "2ad40dbdb6b793306c3a9f2f763bb737", "score": "0.528285", "text": "java.util.List<protobuf.clazz.Common.CommonLS> \n getAvatarsList();", "title": "" }, { "docid": "385c5d5cf2a17244de5aa1b6e42d01de", "score": "0.5282013", "text": "public ArrayList<GenericDropboxFile> getFiles(AbstractCriteria criteria)\n\t{\t\t\n\t\tArrayList<GenericDropboxFile> remote_files = new ArrayList<GenericDropboxFile>();\n\t\t\n\t\t//empezamos a buscar.\n\t\tscanDir(remote_files,DbxPath.ROOT);\n\n\t\t//Realizamos la sincronizacion entre local y remoto.\n\t\tfiles = doSync(files,remote_files);\n\t\t\n\t\treturn FileShorter.do_short(files, criteria);\n\t}", "title": "" }, { "docid": "7b35cf51bd0fb9d85eb1ec9bc38afe71", "score": "0.527566", "text": "public static List<String> getAllImageVersions(){\r\n\t\tSet<String> versions = new HashSet<String>();\r\n\t\tList<HiveApImageInfo> images = QueryUtil.executeQuery(\r\n\t\t\t\tHiveApImageInfo.class, null, null);\r\n\t\tfor (HiveApImageInfo image : images) {\r\n\t\t\tversions.add(image.getImageVersion().trim());\r\n\t\t}\r\n\t\tif(versions.isEmpty()){\r\n\t\t\tversions.add(MgrUtil.getUserMessage(\"config.optionsTransfer.none\"));\r\n\t\t}\r\n\t\tList<String> list = new ArrayList<String>(versions);\r\n\t\tCollections.sort(list,new Comparator<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treturn o2.hashCode()-o1.hashCode();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "bbd635dd843ebcf83728975496ad2509", "score": "0.52527523", "text": "public List<Photo> getAllPhotosSync() {\n return dbDao.getAllPhotosSync();\n }", "title": "" }, { "docid": "70aa3b91b5c290c30fe622198451e52e", "score": "0.52479637", "text": "public ArrayList<Image> getAllImage(int accID) throws ClassNotFoundException {\n try {\n ArrayList<Image> listImage = new ArrayList<>();\n Connection conn = getConnection();\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM Image WHERE AccountID = ? group by source;\");\n ps.setInt(1, accID);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n listImage.add(new Image(rs.getInt(\"ImageID\"), rs.getString(\"Source\"), rs.getInt(\"ArticleID\"), rs.getInt(\"AccountID\"), rs.getString(\"DateCreated\"), rs.getInt(\"Thumbnail\")));\n }\n return listImage;\n } catch (SQLException e) {\n System.out.println(e.toString());\n\n }\n return null;\n }", "title": "" }, { "docid": "78ca1cd835eb061f06afe388a1618fbf", "score": "0.5235015", "text": "public Set imageNameList() {\n Set nameSet = new HashSet();\n if (!mMediaStorageDir.getParentFile().exists() &&\n !mMediaStorageDir.getParentFile().mkdirs()) {\n Log.d(APP_TAG, \"failed to create directory\");\n }\n if (mMediaStorageDir.length() > 0) {\n for (File file : Objects.requireNonNull(mMediaStorageDir.listFiles())) {\n nameSet.add(file.getName());\n }\n }\n return nameSet;\n }", "title": "" }, { "docid": "3ba7dd821b703c881d6beadfa7171a55", "score": "0.523368", "text": "@RequestMapping(value = \"/images\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @RolesAllowed(AuthoritiesConstants.ADMIN)\n public ResponseEntity<Iterable<Image>> getAll(HttpServletRequest request) {\n ResponseEntity<Iterable<Image>> result;\n String page = request.getParameter(\"page\");\n String set = request.getParameter(\"set\");\n if(page != null) {\n int pageNumber = 0;\n try {\n pageNumber = Math.max(0,Integer.parseInt(page));\n }\n catch(NumberFormatException e) {\n e.printStackTrace();\n }\n finally {\n PageRequest pageRequest = new PageRequest(pageNumber,12);\n if(set == null) {\n log.debug(\"REST request to get page number {} of Images\", pageNumber);\n result = new ResponseEntity<>(imageRepository.findAll(pageRequest), HttpStatus.OK);\n }\n else {\n log.debug(\"REST request to get page number {} of Images from set : {}\", pageNumber, set);\n result = new ResponseEntity<>(imageRepository.findByImageSet(set,pageRequest), HttpStatus.OK);\n }\n }\n }\n else {\n if(set == null) {\n log.debug(\"REST request to get all Images\");\n result = new ResponseEntity<>(imageRepository.findAll(), HttpStatus.OK);\n }\n else {\n log.debug(\"REST request to get all Images from set : {}\", set);\n result = new ResponseEntity<>(imageRepository.findByImageSet(set), HttpStatus.OK);\n }\n }\n return result;\n }", "title": "" }, { "docid": "d1fdce87b7bac03ad119645b6b877fa7", "score": "0.52242285", "text": "public void grabAllThumbnail() throws SQLException, IOException, ClassNotFoundException {\r\n\r\n if (sqlLiteUtils == null) {\r\n sqlLiteUtils = new SQLliteUtils(CustomPreferences.getInstance().getDBPath());\r\n }\r\n\r\n ResultSet rs = sqlLiteUtils.readSites();\r\n\r\n int counter = 0;\r\n while (rs.next() && !shouldExit) {\r\n counter++;\r\n String url = rs.getString(1);\r\n LAUNCH_LIST.set(2, url);\r\n ProcessBuilder pb = new ProcessBuilder(LAUNCH_LIST).redirectErrorStream(true);\r\n Process proc = pb.start();\r\n try {\r\n if (!proc.waitFor(Constants.PROCESSWAITSECODS, TimeUnit.SECONDS)) {\r\n proc.destroy();\r\n }\r\n // TODO: sostituire le print con chiamate call back per isolare il modulo\r\n System.out.print(String.format(\"%d - Url: %s - \", counter, url));\r\n workerCallback.updateWorker(String.format(\"%d - Url: %s - \", counter, url), counter);\r\n\r\n if (proc.exitValue() != 0) {\r\n System.out.println(\"ERROR\");\r\n workerCallback.updateWorker(\"ERROR\", counter);\r\n\r\n sqlLiteUtils.updateUpdateStatusDB(url, Constants.ERROR);\r\n // Stampo il messaggio di errore\r\n InputStream is = proc.getInputStream();\r\n try (BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));) {\r\n // Prendo l'output del processo\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n System.out.println(\"\\t\" + line);\r\n workerCallback.updateWorker(\"\\t\" + line, counter);\r\n }\r\n }\r\n } else {\r\n // Aggiorno il DB\r\n sqlLiteUtils.updateImageDB(url, LAUNCH_LIST.get(3));\r\n File file_temp = new File(LAUNCH_LIST.get(3));\r\n if (file_temp.delete()) {\r\n System.out.println(\"DONE\");\r\n workerCallback.updateWorker(\"DONE\", counter);\r\n } else {\r\n System.out.println(\"ERROR\");\r\n workerCallback.updateWorker(\"ERROR\", counter);\r\n }\r\n }\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(ThumbnailGenerator.class.getName()).log(Level.SEVERE, null, ex);\r\n System.out.print(String.format(\"Process: %s - terminated with status: %d\", pb.toString(), proc.exitValue()));\r\n workerCallback.updateWorker(String.format(\"Process: %s - terminated with status: %d\", pb.toString(), proc.exitValue()), counter);\r\n }\r\n }\r\n\r\n closeDBConnection();\r\n }", "title": "" }, { "docid": "079048829f8baccd2eb7fe737afc0c25", "score": "0.5222813", "text": "private void imageGet(HttpServletRequest request, HttpServletResponse response){\n\t\t//expected path = [\"images\",<size>,<file name>]\t\n\t\tString[] path = request.getPathInfo().split(\"/\");\n\t\t\n\t\tif(path.length < 4){\n\t\t\tresponse.setStatus(404);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString size = path[2];\n\t\tString name = path[3];\n\t\t\n\t\t//making sure the file exists\n\t\tif(!exists(name)){\n\t\t\tresponse.setStatus(404);\n\t\t\treturn;\n\t\t}\n\t\tDocument retrieved;\n\t\t\n\t\t//taking the right size\n\t\tswitch(size){\n\t\t\tcase \"small\":\n\t\t\t\tretrieved = collectionSmall.find(eq(\"name\",name)).first();\n\t\t\t\tbreak;\n\t\t\tcase \"medium\":\n\t\t\t\tretrieved = collectionMedium.find(eq(\"name\",name)).first();\n\t\t\t\tbreak;\n\t\t\tcase \"large\":\n\t\t\t\tretrieved = collectionLarge.find(eq(\"name\",name)).first();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//return if the size doesn't fit\n\t\t\tdefault:\n\t\t\t\tresponse.setStatus(404);\n\t\t\t\treturn;\n\t\t}\n\t\t//turning the Document into a byte array to pass to the response's OutputStream\n\t\tbyte[] retrievedBytes = ((Binary)retrieved.get(\"image\")).getData();\n\t\t\n\t\tresponse.setContentType(\"image/jpg\");\n\t\t\n\t\ttry {\n\t\t\tresponse.getOutputStream().write(retrievedBytes);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "2d191469a61e56eea5a745118280954b", "score": "0.52182424", "text": "public Iterable<Image> list() {\n return imageRepository.getAllByOrderByCreatedDesc();\n }", "title": "" }, { "docid": "bb67e010a279b42a94c16e05dbd9dd65", "score": "0.521384", "text": "@GetMapping(\"/\")\n\tpublic @ResponseBody Page<GalleryImage> showAllGalleryImage() {\n\n\t\tPage<GalleryImage> galleryImageList = galleryImageService.findAllGalleryImage(0);\n\t\treturn galleryImageList;\n\t}", "title": "" }, { "docid": "c7418958d93ac85d44e87d4c2ec3af08", "score": "0.5201015", "text": "@Override\n\tpublic List<PhotoClsf> queryAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bfdba9a29f1b9c2a7535fd0c2a8c45f6", "score": "0.5200437", "text": "public List<GiphyImageInfo> getList() {\n return data;\n }", "title": "" }, { "docid": "29a5e36ec0bc151c78e1f81137c264c8", "score": "0.51975286", "text": "public StreamedContent getListImage() {\n\t\t FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"id\");\n\t\t HttpServletRequest req = (HttpServletRequest) FacesContext.getCurrentInstance()\n .getExternalContext().getRequest();\n\t\t Map<String, String> parameterMap = (Map<String, String>) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\n\t\t FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().entrySet();\n\t\t String param = parameterMap.get(\"id\");\n\t\tSystem.out.println(id);\n StreamedContent img = null;\n for (Event e : eventList){\n \tif(e.getEventId() == id){\n \t\timg = e.getDbImage();\n \t}\n }\n return img;\n\t}", "title": "" }, { "docid": "0b211432f83510322c83bca2e0cf1f06", "score": "0.5197039", "text": "public List<ContentElement> getImages(MapPoint mapPoint)\r\n {\r\n return contentElementDB.findAllByFileTypeAndMappointAndDeletedFalse(\"image\", mapPoint);\r\n }", "title": "" }, { "docid": "2f5f4cb2b40fbefd900a60d480656ce0", "score": "0.5195977", "text": "public PhotoList getListOfPhotos(String UserID){\n\t\tSet<String> extras = (Set) new TreeSet<String>();\r\n\t\tUser tempUser = null;\r\n\t\t\r\n\t\t//Max perPage set by flickr is 100\r\n\t\tint perPage = 100,page = 0,totalPictureNum,pageNumber;\r\n\t\t\r\n\t\textras.add(\"date_upload\");\r\n\t\textras.add(\"last_update\");\r\n\t\textras.add(\"tags\");\r\n\t\t\r\n\t\tPhotoList list_of_photo = new PhotoList();\r\n\t\t\r\n\t\t\r\n\t\t//tempUser holds the current userid's information\r\n\t\t//We use it to get the total number of pictures the \r\n\t\t//current user has. Then convert it to \r\n\t\ttry {\r\n\t\t\ttempUser = peopleinterface.getInfo(UserID);\r\n\t\t\t\r\n\t\t\t//Get the total number of pictures\r\n\t\t\ttotalPictureNum = tempUser.getPhotosCount();\r\n\t\t\t\r\n\t\t\t//if no pic, return null\r\n\t\t\tif (totalPictureNum == 0){return list_of_photo;}\r\n\t\t\t\r\n\t\t\tpageNumber = (int)(totalPictureNum/perPage+1);\r\n\t\t\t\r\n\t\t\tfor (int i=0;i<pageNumber;i++){\r\n\t\t\t\tPhotoList tempPhotoList=peopleinterface.getPublicPhotos(UserID, extras, perPage, i+1);\r\n\t\t\t\tIterator itr=tempPhotoList.iterator();\r\n\t\t\t\twhile(itr.hasNext()){\r\n\t\t\t\t\tlist_of_photo.add(itr.next());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FlickrException 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\treturn list_of_photo;\r\n\t}", "title": "" }, { "docid": "a5651ebab68e455692dbff2cfdf69ee5", "score": "0.51947826", "text": "public String getImagesBaseUrl();", "title": "" }, { "docid": "d3057069aa2a998b28e4fb5da0794ba4", "score": "0.5192199", "text": "java.util.Collection getAllFiles(MugenCaller caller) throws ApplicationException, java.rmi.RemoteException;", "title": "" }, { "docid": "d89b51fbd46e8c2022f995c4f47058ed", "score": "0.5174257", "text": "List<Server> getServers();", "title": "" }, { "docid": "7171a68f21b97cec10266d12afcf475b", "score": "0.5167005", "text": "private List<PhotoEntity> retrievePhotos(SharedPreferences settings) {\n Gson gson = new Gson();\n Type type = new TypeToken<ArrayList<PhotoEntity>>() {\n }.getType();\n\n return gson.fromJson(settings.getString(PreferenceKeys.PHOTOS, \"\"), type);\n\n }", "title": "" }, { "docid": "68c275471533ac6a87dcb7d401027b98", "score": "0.5165125", "text": "private List<CmsResource> getResources(String resource) {\n\n if (VIEW_LIST.equals(getSettings().getExplorerMode())) {\n // check if the list must show the list view or the check content view\n I_CmsResourceCollector collector = getSettings().getCollector();\n if (collector != null) {\n // is this the collector for the list view\n if (collector instanceof I_CmsListResourceCollector) {\n ((I_CmsListResourceCollector)collector).setPage(getSettings().getExplorerPage());\n }\n try {\n return collector.getResults(getCms());\n } catch (CmsException e) {\n if (LOG.isInfoEnabled()) {\n LOG.info(e);\n }\n }\n }\n return Collections.emptyList();\n } else if (VIEW_GALLERY.equals(getSettings().getExplorerMode())) {\n // select galleries\n A_CmsAjaxGallery gallery = A_CmsAjaxGallery.createInstance(getSettings().getGalleryType(), getJsp());\n return gallery.getGalleries();\n } else {\n // default is to return a list of all files in the folder\n try {\n \t//Modified by Shi Jinghai, huaruhai@hotmail.com 2014-4-16\n \t\tCmsUserSettings settings = new CmsUserSettings(getCms());\n \t\t\tint treesort = settings.getExplorerTreeSort();\n \t\t\tList<CmsResource> resources = getCms().getResourcesInFolder(resource,\n\t\t\t\t\t\tCmsResourceFilter.ONLY_VISIBLE);\n\t\t\t\tif (treesort == 1) {\n\t\t\t\t\tList<CmsResource> resourcesFolder = new ArrayList<CmsResource>();\n\t\t\t\t\tCmsResource res =null;\n\t\t\t\t\tfor(int i=0;i<resources.size();i++){\n\t\t\t\t\t\t res = (CmsResource) resources.get(i);\n\t\t\t\t\t\t if(res.isFolder()){\n\t\t\t\t\t\t\t resourcesFolder.add(res);\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tresources.removeAll(resourcesFolder);\n\t\t\t\t\tCmsPriorityTitleResourceComparator comparator = new CmsPriorityTitleResourceComparator(getCms());\n\t\t\t Collections.sort(resourcesFolder, comparator);\n\t\t\t Collections.sort(resources, comparator);\n\t\t\t resourcesFolder.addAll(resources);\n\t\t\t\t\treturn resourcesFolder;\n\t\t\t\t} else if (treesort == 2) {\n\t\t\t\t\tCmsPrioritySizeResourceComparator comparator =new CmsPrioritySizeResourceComparator(getCms(),false);\n\t\t\t\t\tCollections.sort(resources, comparator);\n\t\t\t\t\treturn resources;\n\t\t\t\t} else if (treesort == 3) {\n\t\t\t\t\tList<CmsResource> resourcesFolder = new ArrayList<CmsResource>();\n\t\t\t\t\tCmsResource res =null;\n\t\t\t\t\tfor (int i=0;i<resources.size();i++){\n\t\t\t\t\t\tres = (CmsResource) resources.get(i);\n\t\t\t\t\t\tif (res.isFolder()){\n\t\t\t\t\t\t resourcesFolder.add(res);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresources.removeAll(resourcesFolder);\n\t\t\t\t\tCollections.sort(resourcesFolder,\n\t\t\t\t\t\t\tCmsResource.COMPARE_DATE_RELEASED);\n\t\t\t\t\tCollections.sort(resources,\n\t\t\t\t\t\t\tCmsResource.COMPARE_DATE_RELEASED);\n\t\t\t\t\tresourcesFolder.addAll(resources);\n\t\t\t\t\treturn resourcesFolder;\n\t\t\t\t} else {\n\t\t\t\t\treturn resources;\n\t\t\t\t}\n // return getCms().getResourcesInFolder(resource, CmsResourceFilter.ONLY_VISIBLE);\n } catch (CmsException e) {\n // should usually never happen\n if (LOG.isInfoEnabled()) {\n LOG.info(e);\n }\n return Collections.emptyList();\n }\n }\n }", "title": "" }, { "docid": "217b76c81fd7ac038bdfd57b19d73f41", "score": "0.5158424", "text": "@Override\r\n public List<Image> getAllImages(Chapter c) throws IOException {\n List<Image> lstImage = new ArrayList<Image>();\r\n Document doc = getDocument(c.getUrl());\r\n Elements xmlNodes = doc.select(\"div[id=controls] a\").not(\"a[href~=javascript]\");\r\n for (Element e : xmlNodes) {\r\n try {\r\n String url = BASED_URL + e.attr(\"href\");\r\n int order = Integer.parseInt(e.html());\r\n Image img;\r\n if (order == 1) {\r\n img = getImageFromPage(doc, order);\r\n } else {\r\n img = getImageFromPage(url, order);\r\n }\r\n lstImage.add(img);\r\n } catch (NumberFormatException ex) {\r\n }\r\n }\r\n return lstImage;\r\n }", "title": "" }, { "docid": "f855f95669f5c882d2f95aa94889460e", "score": "0.51402694", "text": "String[] getImageUrlsForUrl(String url);", "title": "" }, { "docid": "f54c1836b52c6fe0173442e28747a26e", "score": "0.5136299", "text": "@Override\n public ArrayList<byte[]> getImages(long offerId) {\n SQLiteDatabase db = mDb.getReadableDatabase();\n\n String selectQuery = \"SELECT * FROM \" + mDb.IMAGES\n + \" WHERE \" + mDb.OFFER_ID + \" = \" + offerId;\n\n Cursor c = db.rawQuery(selectQuery, null);\n ArrayList<byte[]> images = new ArrayList<byte[]>();\n\n if(c.moveToFirst()){\n do{\n byte[] content = c.getBlob(c.getColumnIndex(mDb.CONTENT));\n\n images.add(content);\n } while(c.moveToNext());\n }\n c.close();\n return images;\n }", "title": "" }, { "docid": "389a7427a77a7c74f2530f07d5ce1d76", "score": "0.5132788", "text": "private void jsonGet(HttpServletRequest request, HttpServletResponse response){\n\t\t\n\t\tArrayList<String> URLs = getURLs(request);\n\t\t\n\t\tJsonArray outputArray = new JsonArray();\n\t\tfor(String s : URLs){\n\t\t\t\n\t\t\t//get the file name from the url and call for an upload if it doesn't exist in the database\n\t\t\tString fileName = s.split(\"/\")[s.split(\"/\").length-1];\n\t\t\tif(!exists(fileName)){\n\t\t\t\tupload(s, fileName);\n\t\t\t}\n\t\t\t\n\t\t\t//prepare the json object for each image and add it to the array\n\t\t\tJsonObject obj = new JsonObject();\n\t\t\tobj.addProperty(\"original\", s);\n\t\t\tobj.addProperty(\"small\", LOCATION + \"images/small/\" + fileName);\n\t\t\tobj.addProperty(\"medium\", LOCATION + \"images/medium/\" + fileName);\n\t\t\tobj.addProperty(\"large\", LOCATION + \"images/large/\" + fileName);\n\t\t\toutputArray.add(obj);\n\t\t}\n\t\t\n\t\t//deliver the result to the writer as a json object\n\t\tJsonObject outputJSON = new JsonObject();\n\t\toutputJSON.add(\"images\", outputArray);\n\t\t\n\t\tresponse.setContentType(\"application/json\");\n\t\ttry {\n\t\t\tresponse.getWriter().write(outputJSON.toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b8289f6c595f8235d9ad72460e9846ef", "score": "0.5122642", "text": "List<Photo> loadPhotos ()\n throws ServiceException;", "title": "" }, { "docid": "674d08b7362668fee2b15abae1abeb70", "score": "0.51216656", "text": "public List<Image> GetAIMs() {\n\n\t\tDescribeImagesResult ImageResult = ec2.describeImages();\n\n\t\treturn ImageResult.getImages();\n\n\t}", "title": "" }, { "docid": "3dc3d2afd52bb77e4733c44a733243d5", "score": "0.5120069", "text": "public List<PicUrl> findAll() {\n\t\tPicUrlExample example = new PicUrlExample();\r\n\t\texample.setOrderByClause(\"add_time desc\");\r\n\t\tList<PicUrl> urls = picUrlMapper.selectByExample(example);\r\n\t\treturn urls;\r\n\t}", "title": "" }, { "docid": "68faa2dfd3f17b7d7ff0af82f19777b4", "score": "0.51128376", "text": "private static void retrieveArtistImages(ArrayList<Artist> artistSubList) {\n boolean showImages = true;\n //Check to see if there is at all any index files present\n if (!Environment.hasArtistImageIndex()) {\n //If there isn't, first download images and create the index\n showImages = Preparation.createArtistArtIndex(artistSubList);\n }\n //If index creation succeeds, try to show the images\n if (showImages) {\n try {\n //Get the index reader\n artistArtIndexReader = Preparation.getArtistArtIndex();\n artistSubList.forEach(artist -> {\n retrieveImageFor(artist, artistArtIndexReader);\n });\n //If there is at least one unindexed artist, index it\n // if(!notFound.isEmpty())\n // retrieveArtistImages(notFound);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "75de4e1cbc9dcb70514a8aac09fdcb82", "score": "0.5109788", "text": "private static void getImages(HashSet<ImageInfo> imageSet, File destDir) throws MalformedURLException, IOException {\n\t\tfor (ImageInfo info : imageSet) {\n\n\t\t\tlong imageID = info.getimageID();\n\t\t\tFile imgOutput = new File(destDir.getPath() + \"/\" + Long.toUnsignedString(imageID) + \".jpg\");\n\n\t\t\tif (imgOutput.exists()) {\n\t\t\t\tSystem.out.println(\"[DatasetBuilder - \" + System.currentTimeMillis() + \"] Image \"\n\t\t\t\t\t\t+ Long.toUnsignedString(imageID) + \" exists, skipping.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Get URL\n\t\t\tString imageURL = (info.hasThumbnail() ? info.getThumbnailURL() : info.getOriginalURL());\n\n\t\t\tSystem.out.println(\"[DatasetBuilder - \" + System.currentTimeMillis() + \"] Downloading image \"\n\t\t\t\t\t+ Long.toUnsignedString(imageID) + \"...\");\n\n\t\t\t// get image, resized if needed\n\t\t\tBufferedImage img;\n\n\t\t\ttry {\n\t\t\t\timg = downloadImage(new URL(imageURL), !info.hasThumbnail());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"[DatasetBuilder - \" + System.currentTimeMillis() + \"] Error while retrieving image \"\n\t\t\t\t\t\t+ Long.toUnsignedString(imageID) + \", skipping image.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// XXX e se non fossero tutte jpg?\n\t\t\t// write down image\n\t\t\tImageIO.write(img, \"jpg\", imgOutput);\n\t\t}\n\t}", "title": "" }, { "docid": "5abfa12a8e3283c286ef811386d05594", "score": "0.510901", "text": "@Override\n\tpublic ArrayList<ImgVO> getAllImg() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9dfebc51fa5b19fcbb7371cd139f60f2", "score": "0.5097801", "text": "public File[] getServerFileList() {\n\t\treturn file.listFiles((FileFilter) new SuffixFileFilter(extensions,\n\t\t\t\tIOCase.SENSITIVE));\n\t}", "title": "" }, { "docid": "1cb7d94a988579c75c84969edc80ee25", "score": "0.50910693", "text": "public ArrayList<WebsiteUrl> findImages(String url) {\n\n //return of urlImages\n ArrayList<WebsiteUrl> urlImages = new ArrayList<>();\n WebsiteUrl newUrl = null;\n\n try {\n //Connect to the website and get the html\n Document doc = Jsoup.connect(url)\n .userAgent(\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36\")\n .referrer(\"http://www.google.com\")\n .get();\n\n //Get all elements with img tag\n Elements img = doc.getElementsByTag(\"img\");\n\n for (Element el : img) {\n\n //for each element get the src url with jpg or png file extension\n if (el.attr(\"alt\").toLowerCase().contains(\"logo\") &&\n el.attr(\"alt\").toLowerCase().endsWith(\"jpg\") ||\n el.attr(\"src\").toLowerCase().contains(\"logo\") &&\n el.attr(\"alt\").toLowerCase().endsWith(\"png\") ||\n !el.attr(\"src\").endsWith(\"gif\") &&\n el.attr(\"src\").toLowerCase().endsWith(\"jpg\") ||\n !el.attr(\"src\").endsWith(\"gif\") &&\n el.attr(\"src\").toLowerCase().endsWith(\"png\")) {\n\n String src = el.absUrl(\"src\");\n\n //create websiteUrl instance\n newUrl = new WebsiteUrl(url, src);\n\n //add img url to return arraylist\n urlImages.add(newUrl);\n\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return urlImages;\n }", "title": "" }, { "docid": "9e0197afee96e056a6b4202c9b49f4a1", "score": "0.50839275", "text": "static List<Gallery> getAllFavoriteGalleries() throws IOException {\n Cursor c = getAllFavoriteGalleriesCursor();\n List<Gallery> galleries = GalleryTable.cursorToList(c);\n c.close();\n return galleries;\n }", "title": "" }, { "docid": "af30b632e3758a3408f17e93fa230e20", "score": "0.50830734", "text": "public String getImageUrl() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"http://farm\");\n\t\tbuilder.append(this.farm);\n\t\tbuilder.append(\".static.flickr.com/\");\n\t\tbuilder.append(this.server);\n\t\tbuilder.append(\"/\");\n\t\tbuilder.append(this.id);\n\t\tbuilder.append(\"_\");\n\t\tbuilder.append(this.secretCode);\n\t\tbuilder.append(\"_m.jpg\");\n\t\t\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "92dfe1b2ae23a434df403e0a26364b72", "score": "0.50697434", "text": "public static List<Gallery> getAllGalleries() throws IOException {\n String query = \"SELECT * FROM \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n List<Gallery> galleries = new ArrayList<>(cursor.getCount());\n if (cursor.moveToFirst()) {\n do {\n galleries.add(cursorToGallery(cursor));\n } while (cursor.moveToNext());\n }\n cursor.close();\n return galleries;\n }", "title": "" }, { "docid": "6e17a9dddfa64bb6f84323cb5c2e6a04", "score": "0.5064613", "text": "@Nullable\n private FilePath findDuplicateMappedPath() {\n Collection<FilePath> otherServersPaths = new ArrayList<>();\n for (ServerInfo server : getServers()) {\n Collection<FilePath> currentServerPaths = new ArrayList<>();\n for (WorkspaceInfo workspace : server.getWorkspacesForCurrentOwnerAndComputer()) {\n for (WorkingFolderInfo workingFolder : workspace.getWorkingFoldersCached()) {\n final FilePath currentServerPath = workingFolder.getLocalPath();\n for (FilePath otherServerPath : otherServersPaths) {\n if (currentServerPath.isUnder(otherServerPath, false)) {\n return currentServerPath;\n }\n if (otherServerPath.isUnder(currentServerPath, false)) {\n return otherServerPath;\n }\n }\n currentServerPaths.add(currentServerPath);\n }\n }\n otherServersPaths.addAll(currentServerPaths);\n }\n return null;\n }", "title": "" }, { "docid": "ba30d054779ed46cb138fb9104f9f551", "score": "0.5057086", "text": "List<Image> getImagesForTag(String tag);", "title": "" }, { "docid": "83a9ccea291cd733e33cdd35dd7f9bfc", "score": "0.5056253", "text": "public interface Images {\n\n\t/**\n\t * @param\n\t * @return List<URL>\n\t * This method is getting all pictures found in the sub directories and filling the photos List<URL>\n\t */\n\tpublic List<URL> getPhotos();\n\t\n\t/**\n\t * @param int\n\t * @return List<URL>\n\t */\n\tpublic List<URL> getRandomPhotosURL(int value);\n\t\n\t/**\n\t * @param\n\t * @return URL\n\t * Returns a random photo URL from the current category\n\t */\n\tpublic List<URL> getRandomPhotoURL();\n\t\n\t/**\n\t * @param URL\n\t * @return boolean that permits to check if the url belongs to the current category\n\t */\n\tpublic boolean isPhotoCorrect(URL url);\n\t\n}", "title": "" }, { "docid": "9142bd6f6f9125c9ec877daaa7f9877b", "score": "0.504965", "text": "protobuf.clazz.Common.CommonLS getAvatars(int index);", "title": "" }, { "docid": "94c2cc6a737b9c106cbda02f55f714db", "score": "0.5049582", "text": "@Override\n\tpublic List<Image> doGet() {\n\t\tString result = getHttp().doGet(getUrl());\n\t\ttry{\n\t\t\tJSONArray arr = new JSONArray(result);\n\t\t\tint len = arr.length();\n\t\t\tList<Image> res = new ArrayList<Image>();\n\t\t\tImage image = null;\n\t\t\tJSONObject json = null;\n\t\t\tfor(int i=0 ; i<len ; i++){\n\t\t\t\tjson = arr.getJSONObject(i);\n\t\t\t\t\n\t\t\t\timage = new Image();\n\t\t\t\timage.setImg(json.getString(\"图片\").trim());\n\t\t\t\timage.setTime(json.getString(\"时间\").trim());\n\t\t\t\timage.setContent(json.getString(\"内容\").trim());\n\t\t\t\t\n\t\t\t\tres.add(image);\n\t\t\t}\n\t\t\t\n\t\t\treturn res;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "444386ddbc3090ba2cb89238b5ee639e", "score": "0.5046682", "text": "public List<PathologyImagesDTO> loadPathologyImagesViaPathologyImagesProbes(ProbeDTO pObject) \n throws SQLException {\n return loadPathologyImagesViaPathologyImagesProbes(pObject, 1, -1);\n }", "title": "" }, { "docid": "e409e8e786fb2c9853fbc16040a8187b", "score": "0.5031094", "text": "@Override\n\tpublic ArrayList<ImageData> getLatestImagesFromDB(String username, Date timestamp, String isHappy) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b21e351b8a71abb86978cc564373f76d", "score": "0.5016859", "text": "public DefaultListModel getPictureListModel(){\n\t\t\n\t\treturn this.pictureListModel;\n\t\t\n\t}", "title": "" }, { "docid": "30bb72db618eaf7221b2d0a56162778d", "score": "0.5013278", "text": "public List<byte[]> getImages() {\n\t\treturn images;\n\t}", "title": "" }, { "docid": "9e1607d2679da671fb5f9261fed8af32", "score": "0.50107706", "text": "private ArrayList<String> getURLs(HttpServletRequest request){\n\t\tArrayList<String> URLs = new ArrayList<String>();\n\t\ttry {\n\t\t\t//opening a connection to the webservice\n\t\t\tURL url = new URL(CHALLENGE_WEBSERVICE);\n\t\t\tHttpURLConnection req = (HttpURLConnection) url.openConnection();\n\t\t\treq.connect();\n\t\t\t\n\t\t\t//parsing the response to a json object\n\t\t\tJsonParser jp = new JsonParser();\n\t\t\tJsonElement root;\n\t\t\troot = jp.parse(new InputStreamReader((InputStream) req.getContent()));\n\t\t\tJsonObject rootobj = root.getAsJsonObject();\n\t\t\t\n\t\t\t//navigating through json object and extracting urls\n\t\t\tJsonArray inputArray = rootobj.getAsJsonArray(\"images\");\n\t\t\tfor(JsonElement obj : inputArray){\n\t\t\t\tURLs.add(((JsonObject)obj).get(\"url\").getAsString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn URLs;\n\t}", "title": "" }, { "docid": "8364a22a13ac1a6faf14be1cdd193a44", "score": "0.50006527", "text": "private void InitializeImages(StorageResponse storageResponse){\n GetAllFirebaseImageNames(new StorageResponse() {\n @Override\n public void processFinish(List<StorageReference> response, Optional<Bitmap> bitmap, Optional<String> Url) {\n List<String> localStorageImages = GetNamesOfImagesInLocalStorage();\n List<String> ImagesToDownloadFromCloud = new ArrayList();\n\n for(StorageReference ref: response){\n if(!(localStorageImages.contains(ref.getName()))){\n ImagesToDownloadFromCloud.add(ref.getName());\n }\n }\n\n DownloadImagesFromFirebaseToLocalStorage(ImagesToDownloadFromCloud,0,storageResponse);\n }\n @Override\n public void OnErrorListener(String error) {\n storageResponse.OnErrorListener(error);\n }\n });\n }", "title": "" }, { "docid": "0ab4d1d062d25b32e4160dac4b62f752", "score": "0.49963295", "text": "private ArrayList<NodeDesc> storeNearestNodes() {\t\t\n\t\t\tfor(int i=0;i<conf.getNearest().getNearestNodes().values().size();i++)\n\t\t\t{\t\t\t\n\t\t\t\tNodeDesc nd = conf.getNearest().getNearestNodes().values().iterator().next();\n\t\t\t\tpathsBC.add(nd);\n\t\t\t\tSystem.out.println(\"******** BroadCast NodeDesc \"+ nd.getNodeId());\n\t\t\t} \n\t\t\treturn pathsBC;\n\t\t}", "title": "" }, { "docid": "183400e98fb532c482f0291b9a10017b", "score": "0.4993849", "text": "public void getImageListFromServer(String email) {\n final ProgressDialog waiting = ProgressDialog.show(this, \"Searching...\",\n \"Getting Next Image..\", false, false);\n String finalURL = SHOW_THIS_URL + email;\n\n JsonArrayRequest jsonQuery = new JsonArrayRequest(JsonArrayRequest.Method.GET, finalURL, null,\n new Response.Listener<JSONArray>() {\n\n @Override//on success, parse the data\n public void onResponse(JSONArray response) {\n waiting.dismiss();\n parseJSONtoList(response);\n }\n\n },//on error report and log the error\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n voice.speak(\"There may be a network error\", TextToSpeech.QUEUE_FLUSH, null);\n waiting.dismiss();\n Log.d(\"myTag\", \"volley Error\");\n }\n }\n ) {\n };//add the request to the request queue\n RequestQueue rQue = Volley.newRequestQueue(this);\n rQue.add(jsonQuery);\n\n }", "title": "" }, { "docid": "aa011fad2c2dfba39bf6184e80f9cd79", "score": "0.4992753", "text": "private ArrayList<BitmapDrawable> getSelectedImages() {\n\t\tArrayList<BitmapDrawable> list = new ArrayList<BitmapDrawable>();\n\t\t\n\t\tfor (int i = 0; i < mPicsSelected.length; i++) {\n\t\t\tif (mPicsSelected[i]) {\n\t\t\t\tBitmapDrawable b = new BitmapDrawable(getResources(), images[i]);\n\t\t\t\tlist.add(b);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "08187402cfcb1dcacfa88e7076ae4639", "score": "0.49921516", "text": "public void listFiles() {\n\t\tFilePrinter fp = new FilePrinter(serverRootPath);\n\t\ttry {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Files Stored on Server:\\t\" + label);\n\t\t\tFiles.walkFileTree(serverRootPath, fp);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "674748b0919cbf1aaaae07628eb83554", "score": "0.49810064", "text": "public List<Image> getFreeAMIs() {\n\t\t// Create the filter to only get AMIs owner = Amazon and EBS based\n\t\t// Filter f1 = new Filter(\"root-device-type\");\n\t\t// f1.withValues(\"ebs\");\n\t\t// Filter f2 = new Filter(\"owner-alias\");\n\t\t// f2.withValues(\"amazon\");\n\t\tFilter f1 = new Filter(\"image-id\");\n\t\tf1.withValues(\"ami-e565ba8c\").withValues(\"ami-a29943cb\")\n\t\t\t\t.withValues(\"ami-8f8c54e6\");\n\t\t// Create the request to only get the AMIs eligible with the free tier\n\t\tDescribeImagesRequest describeImagesRequest = new DescribeImagesRequest();\n\t\tdescribeImagesRequest.withFilters(f1);\n\t\t// Object to return from EC2\n\t\tDescribeImagesResult imageResult = ec2\n\t\t\t\t.describeImages(describeImagesRequest);\n\t\treturn imageResult.getImages();\n\t}", "title": "" }, { "docid": "e045e4dc98f40dadaf56aa252b3470bd", "score": "0.49791867", "text": "@Override\n public CompletionStage<String> retrieveAllUrl() {\n return productRepository.findAll().thenApply(l -> {\n //throw new CancellationException();\n java.util.List<String> lDescription = l.stream().map(p -> p.description).distinct().collect(java.util.stream.Collectors.toList());\n for (String q : lDescription) {\n if (q != null) {\n String fullname = getFullname(q, \"\", \"json\");\n if (!fileExist(fullname) || fileIsEmpty(q)) {\n logger.warn(q + \" \" + fileExist(fullname) + \" \" + fileIsEmpty(q));\n // QPS = 3 request per second max\n searchImageService(q).thenApply(bingResult -> {\n if (bingResult.getStatus() != 200)\n return \"Status: \" + bingResult.getStatus() + \" - \" + bingResult.getMessage();\n String jsonString = \"\";\n try {\n jsonString = (new ObjectMapper()).writeValueAsString(bingResult.extractUrls());\n } catch (com.fasterxml.jackson.core.JsonProcessingException e) {\n return \"Json Processing Exception.\";\n }\n if (!jsonString.equals(\"\"))\n saveUrl(jsonString, q);\n try {\n // Do not spam bing service...\n Thread.sleep(340);\n } catch (InterruptedException e) {\n //throw new CompletionException(e) (just example here to see how to use it);\n throw new RuntimeException();\n }\n return \"success\";\n }).exceptionally(throwable -> \"Cannot build json object\");\n }\n } // if (q != null)\n } // for\n return \"success\";\n });\n }", "title": "" }, { "docid": "71c3ae26be55abb337e37a5c811c34c8", "score": "0.49671456", "text": "protected abstract List<URI> getAllFiles() throws IOException;", "title": "" } ]
5bff15d537facdc241cbe10fb4f0346f
Removes the cooldown on a spell if it exists
[ { "docid": "354b89c155bff9d61393bbb15fd3488c", "score": "0.7097165", "text": "public static void removeCooldown(Wand wand, String name){\n if(wand.getActiveSpellCDS().containsKey(name)){\n wand.getActiveSpellCDS().get(name).cancel();\n }\n }", "title": "" } ]
[ { "docid": "12084343a069491b0cab055f6bf643e1", "score": "0.6698418", "text": "public void addCooldown(){\n\n final ItemStack lastSpell = wand.getLastSpell();\n lastSpell.setAmount((int)this.cooldown);\n long time = (long) (System.currentTimeMillis() + (this.cooldown *1000));\n ItemUtils.setData(lastSpell, Data.COOLDOWN.toString(), Data.COOLDOWN.getType(), time);\n wand.updateWand();\n\n Timer t = new Timer();\n final Cooldown cooldown = new Cooldown(this);\n t.schedule(cooldown, 1000, 1000);\n\n this.task = t;\n this.wand.getActiveSpellCDS().put(ItemUtils.getNBT(lastSpell, Data.SPELLNAME.toString(), Data.SPELLNAME.getType()).toString(), t);\n\n }", "title": "" }, { "docid": "9187da7ee51fa37861fd5cc469174a81", "score": "0.6398524", "text": "public void removeCooldown(Cooldown cooldown) {\n plugin.getCooldownManager().removeCooldown(cooldown);\n }", "title": "" }, { "docid": "a92d0ea2265a01d8a61b14fe76dcfb59", "score": "0.6099722", "text": "private void resetCooldown() {\n cooldown = (int) Math.ceil(basicCoolDown / level);\n }", "title": "" }, { "docid": "f93cb175059240691864301349fd8fee", "score": "0.60976684", "text": "public void removeBuff() {\n\t\tcanPotionEffect = false;\n\t}", "title": "" }, { "docid": "b8865de014bc1762b9fbc285f0eb1002", "score": "0.60326374", "text": "public static void sweepCooldowns() {\n PromUtil.debug(\"Sweeping cooldowns.\");\n cooldowns.removeIf(cooldown -> System.currentTimeMillis() > cooldown.getExpiry());\n }", "title": "" }, { "docid": "65d026e9cedfd3e0fbefa7221a045b58", "score": "0.58027154", "text": "protected void cool() {\n cooldown -= 1;\n if (cooldown < 0) {\n cooldown = 0; //Cooldown can't be zero\n }\n Output.msgDebug(subsystem, String.format(\"FTL cooldown: %s turns remaining.\", cooldown));\n }", "title": "" }, { "docid": "c5f08aeaad18dc70220ab3df2e3c9b58", "score": "0.5797718", "text": "public void removeCooldown(UUID uuid, String name) {\n plugin.getCooldownManager().removeCooldown(uuid, name);\n }", "title": "" }, { "docid": "ffc39c949adc0d31d5f348151627ad98", "score": "0.5627095", "text": "public void update()\n {\n if (cooldownRemaining > 0)\n cooldownRemaining--;\n }", "title": "" }, { "docid": "7844fed98049e4f29ba0be88ce5c2568", "score": "0.56146026", "text": "public static void resetCooldowns() {\r\n\t\tsunflowerPurchaseIsOnCooldown = false;\r\n\t\tpeashooterPurchaseIsOnCooldown = false;\r\n\t}", "title": "" }, { "docid": "4aecd729fcf5b72246508e273607ce82", "score": "0.56003237", "text": "@Override\n public void remove() {\n super.remove();\n \n // Remove the disguise if the player is disguised, and the effect has been started.\n if (hasStarted() && DiagonCraftSpellsPlugin.getDisguiseAPI().isDisguised(getPlayerAffected())) {\n DiagonCraftSpellsPlugin.getDisguiseAPI().undisguisePlayer(getPlayerAffected());\n }\n }", "title": "" }, { "docid": "8aef0a0d3bebb9fea34c271f1535cbf7", "score": "0.55969614", "text": "public static void reloadCooldown(ItemStack item, Wand wand, PotterWorldSpells plugin, int pos) {\n\n if (ItemUtils.hasNBT(item, Data.COOLDOWN.toString(), Data.COOLDOWN.getType())) {\n\n long time = (long) ItemUtils.getNBT(item, Data.COOLDOWN.toString(), Data.COOLDOWN.getType());\n long currentTime = System.currentTimeMillis();\n long remainingTime = time - currentTime;\n if (remainingTime > 0) {\n\n int amount = (int) Math.ceil(remainingTime/1000D);\n if(amount > 1)\n item.setAmount(amount);\n BukkitRunnable task = new BukkitRunnable() {\n @Override\n public void run() {\n if (wand.getPlayer().getInventory().first(item) == -1) {\n this.cancel();\n }\n long cTime = System.currentTimeMillis();\n if (time > cTime) {\n if (item.getAmount() > 1) {\n item.setAmount(Math.max(item.getAmount()-1, 1));\n wand.getPlayer().getInventory().setItem(pos, item);\n }\n } else {\n ItemUtils.removeNBT(item, Data.COOLDOWN.toString(), Data.COOLDOWN.getType());\n wand.updateWand();\n wand.getPlayer().getInventory().setItem(pos, item);\n this.cancel();\n }\n }\n\n };\n task.runTaskTimerAsynchronously(plugin, 20, 20);\n wand.getActiveSpellCDS().put(item.getItemMeta().getDisplayName(), task);\n\n }else{\n ItemUtils.removeNBT(item, Data.COOLDOWN.toString(), Data.COOLDOWN.getType());\n item.setAmount(1);\n }\n\n }\n }", "title": "" }, { "docid": "c062fb34f8617886aac32e89f13fdf71", "score": "0.5581968", "text": "public void resetTimer() {\n cooldown = 300 - (80 * firepower);\n }", "title": "" }, { "docid": "50ad3292392c34568011a9b9132026e2", "score": "0.55391467", "text": "private void clearSpellChecker() {\n this.spellChecker_ = null;\n this.bitField1_ &= -524289;\n }", "title": "" }, { "docid": "fabeaaaa6174885ecd58307f18b6bf47", "score": "0.55305606", "text": "public void setSpellToNull();", "title": "" }, { "docid": "ea9fc3f5ad7984fcae5b86e9674d833a", "score": "0.5336368", "text": "public void fireCooldown(){\n\n if (timerAvail) {\n int randint = rand.nextInt(4);\n if (randint == 0)\n randomShotWait = 1000;\n if (randint == 1)\n randomShotWait = 1500;\n if (randint == 2)\n randomShotWait = 500;\n if (randint == 3)\n randomShotWait = 750;\n\n initialTime = System.currentTimeMillis();\n timerAvail = false;\n return;\n }\n if (System.currentTimeMillis() - initialTime >= randomShotWait){\n timerAvail = true;\n canFire = true;\n }\n }", "title": "" }, { "docid": "4de260b417d4715ab5786b32f43f52fb", "score": "0.531148", "text": "@Override\n\tpublic int getCooldown()\n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5fe602f89ebb2c4a88d780e340631844", "score": "0.52983636", "text": "public void updateCooldown() {\n this.cooldownBehaviour.updateCooldown();\n }", "title": "" }, { "docid": "c3ab2d04f4779d9c2d89766096740287", "score": "0.5272777", "text": "void cancelFight(Player p, String reason);", "title": "" }, { "docid": "ff8f6c2b83ae3bc2bf9d485235d44eee", "score": "0.52471644", "text": "public void clear(Player player) {\n send(player, new LCPacketCooldown(name, 0, itemId));\n }", "title": "" }, { "docid": "f2d9bb8e520e8eb704a8906d26b485d7", "score": "0.5242558", "text": "boolean removeEnchant(EnchantmentType enchantment);", "title": "" }, { "docid": "e90906a70d86de17ff41f4cb22a499d7", "score": "0.5219742", "text": "public Builder clearSpellCorrection() {\n bitField0_ = (bitField0_ & ~0x00000100);\n spellCorrection_ = null;\n if (spellCorrectionBuilder_ != null) {\n spellCorrectionBuilder_.dispose();\n spellCorrectionBuilder_ = null;\n }\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e0098b686dd343d91de97b587231326e", "score": "0.5161401", "text": "public void removeBuff(ItemStack item) {\n\t\tif(this.item.getItemMeta().equals(item.getItemMeta()))\n\t\t\tcanPotionEffect = false;\n\t}", "title": "" }, { "docid": "d656b1a9045ad5b1235e1a1c8de72d22", "score": "0.51324654", "text": "@Override\n public void onTick(long i) {\n super.onTick(i);\n\n if (combatTask.isComplete()) {\n if (!slowApplied) {\n applySlow();\n slowApplied = true;\n }\n if (stateTimer > explosion.getAnimationDuration()) {\n WorldUtil.removeEntity(this);\n }\n }\n }", "title": "" }, { "docid": "4c40f119f1236ff977900ab04ad2ce9a", "score": "0.51209474", "text": "public void updateTask() {\n/* 113 */ this.castTime--;\n/* 114 */ if (this.castTime == 0) {\n/* 115 */ this.cleric.playSound(ModSoundEvents.villagerEnchant);\n/* 116 */ if (this.target.isEntityAlive()) {\n/* 117 */ PotionEffect blessEffect = new PotionEffect((Potion)ModPotions.potionBless, 6000, this.cleric.getBaseSkill(ProfessionType.CLERIC));\n/* 118 */ this.target.addPotionEffect(blessEffect);\n/* 119 */ this.target.playSound(ModSoundEvents.healingTarget);\n/* */ \n/* 121 */ this.cleric.tryAddSkill(ProfessionType.CLERIC, 4);\n/* 122 */ this.cooldownTick = this.cleric.ticksExisted;\n/* */ } \n/* */ } \n/* */ \n/* 126 */ super.updateTask();\n/* */ }", "title": "" }, { "docid": "42da66d13f06c6834624f52832e94aff", "score": "0.5087561", "text": "@Test\n public void test_NotPreventDamage() {\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 1);\n addCard(Zone.HAND, playerA, \"Lightning Bolt\", 1);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertPermanentCount(playerA, \"Balduvian Bears\", 0);\n assertHandCount(playerA, \"Lightning Bolt\", 0);\n }", "title": "" }, { "docid": "83090c7762a98583fc000c68ff385b0f", "score": "0.5084615", "text": "public void deactivateDD()\n {\n Character c = getWorldOfType(MyWorld.class).getCharacter();\n c.revertDamage();\n limit = false;\n }", "title": "" }, { "docid": "d80dd2ed4452ba8c2525e42efe7474a9", "score": "0.5080378", "text": "public void disableShield(boolean cri) {\n float f = 0.25F + (float) EnchantmentHelper.getEfficiencyModifier(this) * 0.05F;\n if (cri) {\n f += 0.75F;\n }\n\n if (this.rand.nextFloat() < f) {\n this.cooldownTracker.setCooldown(this.getActiveItemStack().getItem(), 100);\n this.resetActiveHand();\n this.world.setEntityState(this, (byte) 30);\n }\n\n }", "title": "" }, { "docid": "76749388c46858e447b75f4c46499766", "score": "0.50477844", "text": "public void spellWord() {\n\t\t_isLocked.replace(_currentWord, true);\n\t\t_festival.spellWord(getWord());\n\t}", "title": "" }, { "docid": "f0eca669c02efd6add7f797281a03644", "score": "0.50449103", "text": "public void cancelTask(String key) {\n CooldownTask task = taskCooldowns.remove(key);\n if (task == null) {\n return;\n }\n\n task.task.cancel();\n\n if (task.endTask != null) {\n task.endTask.cancel();\n }\n }", "title": "" }, { "docid": "8874f9560c794b8b5ab7b6e5ddb7d9c7", "score": "0.5038399", "text": "public void checkDespawn() {\n if (this.world.getDifficulty() == Difficulty.PEACEFUL && this.isDespawnPeaceful()) {\n this.remove();\n } else {\n this.idleTime = 0;\n }\n }", "title": "" }, { "docid": "602f26759e70d2047cacbe28feab8d63", "score": "0.50368476", "text": "@Override\n public void handle(ClientCommandData data) {\n sessionContext.getPlayer().castSpell(RELAX_SPELL_ID);\n }", "title": "" }, { "docid": "e3e7efce2597421f0569bd2f483cecae", "score": "0.50174826", "text": "@Test\n public void test_UnpreventableCombatDamageToPlayer() {\n addCard(Zone.BATTLEFIELD, playerB, \"Questing Beast\", 1);\n // When The One Ring enters the battlefield, if you cast it, you gain protection from everything until your next turn.\n addCard(Zone.HAND, playerA, \"The One Ring\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Island\", 4);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"The One Ring\");\n attack(2, playerB, \"Questing Beast\");\n\n setStrictChooseMode(true);\n setStopAt(2, PhaseStep.END_TURN);\n execute();\n\n assertLife(playerA, 20 - 4); // Damage should not be prevented\n }", "title": "" }, { "docid": "04d3a38f19d4e2f0fd1bf8091b24b02b", "score": "0.50016356", "text": "public static void unblindPlayer(final Player player) {\n if (player == null || !player.isOnline()) {\n return;\n }\n player.removePotionEffect(PotionEffectType.BLINDNESS);\n }", "title": "" }, { "docid": "afc1f9b8abb9b893e50b81ace9e6ab44", "score": "0.50007164", "text": "@Test\n public void test_TriggerDamageToOpponent_FromSpell() {\n addCard(Zone.BATTLEFIELD, playerA, \"Brash Taunter\");\n //\n // Shock deals 2 damage to any target\n addCard(Zone.HAND, playerA, \"Shock\");\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Shock\", \"Brash Taunter\");\n addTarget(playerA, playerB);\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);\n execute();\n\n assertLife(playerB, 20 - 2);\n }", "title": "" }, { "docid": "9048a75e673043faf3cb6f32b57293cc", "score": "0.499736", "text": "@EventHandler\n public void onCastSpell(PlayerInteractEvent event){\n Player player = event.getPlayer();\n if(event.getItem() == null){\n return;\n }\n if(event.getAction() == Action.PHYSICAL){\n return;\n }\n //Check if held item is book\n ItemStack item = event.getItem();\n PlayerParama playerParama = plugin.getPlayerParama(player);\n if (item.getItemMeta() != null)\n switch (item.getItemMeta().getDisplayName()) {\n case ChatColor.COLOR_CHAR+\"2Shields Up\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(3, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n shieldsUp.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Phoenix Dive\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(5, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n phoenixDive.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Enrage\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(6, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n enrage.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Onslaught\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(7, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n onslaught.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Terrifying Cruelty\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(8, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n terrifyingCruelty.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Superconducted\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(9, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n superconducted.castSpell(playerParama);\n }\n case ChatColor.COLOR_CHAR+\"2Calamity\" -> {\n event.setCancelled(true);\n if (playerParama.checkLevel(10, ClassGameType.SWORDSMAN) && playerParama.isNotSilenced())\n calamity.castSpell(playerParama);\n }\n }\n }", "title": "" }, { "docid": "e29f28d1bafd8cc9cbdd3bf205648405", "score": "0.498525", "text": "public void cooldown(JavaPlugin plugin, String key, int delay, Runnable onEnd) {\n if (taskCooldowns.containsKey(key)) {\n cancelTask(key);\n }\n\n CooldownTask task = new CooldownTask(key, System.currentTimeMillis(), delay);\n task.task = Bukkit.getScheduler().runTaskLater(plugin, () -> clearTask(key), delay);\n task.endTask = Bukkit.getScheduler().runTaskLater(plugin, onEnd, delay);\n taskCooldowns.put(key, task);\n }", "title": "" }, { "docid": "f2c27a6a43db525e0182581d0f16108b", "score": "0.49832803", "text": "public void tick() {\n this.duration--;\n LOGGER.debug(\"tick {} -> {}\", this.skill, this.duration);\n if (this.duration < 0) {\n this.disable();\n }\n }", "title": "" }, { "docid": "c604b73240e2362c9a6c378142debc0b", "score": "0.49697745", "text": "public Spell randomSpell()\n\t{\n\t\tRandom random = new Random();\n\t\treturn this.spells[random.nextInt(this.spells.length)];\n\t}", "title": "" }, { "docid": "6e2f21304b290d8d132a465db35e9f42", "score": "0.4956497", "text": "public void shoot() {\n // to avoid ConcurrentModificationException for removing item during iteration\n HashSet<Critter> killedCritters = new HashSet<>();\n\n if (!crittersInRange.isEmpty()) {\n for (Critter c: crittersInRange) {\n int health = c.getCurrentHealth();\n health -= power;\n c.setCurrentHealth(health);\n\n if (c.getCurrentHealth() <= 0) {\n killedCritters.add(c);\n }\n }\n crittersInRange.removeAll(killedCritters);\n }\n }", "title": "" }, { "docid": "c243eba2f8f15177b523baf619e0f8d1", "score": "0.49400926", "text": "private void killOstrich(Command command) { \n if(!command.hasSecondWord()) { \n System.out.println(\"kill what?\");\n return;\n }\n \n String object = command.getSecondWord();\n if (object.equals(\"ostrich\") && player.itemInInventory(\"knife\") && player.getCurrentRoom().hasOstrich() ){ //requirements to kill an ostrich\n Ostrich enemy = player.getCurrentRoom().getOstrich(); //an ostrich object is collected and dealt damage to\n enemy.getAttacked(player.getDamage());\n System.out.println(\"You attacked an ostrich\");\n if (enemy.getHealth() <= 0) { //checks health of ostrich, if its below 0 then it is removed permenantly\n player.getCurrentRoom().removeOneOstrich();\n ostrichNum -= 1;\n System.out.println(\"You killed the ostrich\");\n if (ostrichNum <= 0){ //if all 3 are killed then the player is rewarded feathers\n player.rewardFeathers();\n }\n } \n } else {\n System.out.println(\"You need a knife, if you have one then you can only kill an ostrich and thats only when they are in the room.\\n\");\n } \n }", "title": "" }, { "docid": "17babae5aa442f5c497bcf9e10733ff0", "score": "0.49328196", "text": "public LCCooldown(String name, long millis, Material item) {\n this(name, millis, convertMaterialToId(item));\n }", "title": "" }, { "docid": "8ef9a7cb6603f52fcd998a1038e4bc15", "score": "0.4925404", "text": "private void dropItem(Command command){\n if(!command.hasSecondWord()) {\n System.out.println(\"drop what?\");\n return;\n }\n String object = command.getSecondWord();\n \n if(player.itemInInventory(object)){ //if player has that object, then drop it in the room\n Item item = player.getItem(object); \n player.removeItem(item.getName());\n player.getCurrentRoom().addItem(item);\n player.setDamage(); //if item dropped = knife, then damage goes back down to 0\n System.out.println(\"You have dropped \" + object);\n } else {\n System.out.println(\"You dont have that\");\n }\n }", "title": "" }, { "docid": "14301ba6caa1462c4a3201f8db087e81", "score": "0.49150604", "text": "public void setCooldownTime(Duration cooldownTime) {\n this.cooldownTime = cooldownTime;\n }", "title": "" }, { "docid": "998cf1a77e7a6c5894f1da07adeb9f0d", "score": "0.49115446", "text": "@Override\n public void removePlayer(@NotNull Player player) {\n super.removePlayer(player);\n if (this.isSpeedrunner(player.getUniqueId())) {\n this.endMinigame(false, false);\n return;\n }\n\n if (this.hunters.remove(player.getUniqueId()) && this.hunters.isEmpty()) {\n this.endMinigame(true, false);\n }\n }", "title": "" }, { "docid": "d01db506e0d0e671d05f4cb19cbf527c", "score": "0.4906129", "text": "public abstract int getCooldown();", "title": "" }, { "docid": "32db3caf5dd79d320ea8b8d47ecb9b7c", "score": "0.4903069", "text": "public int getCooldown()\n {\n return cooldown;\n }", "title": "" }, { "docid": "8b965b2832db45849bbe50d1be2d3362", "score": "0.4887944", "text": "@Test\n public void test_PreventSomeDamage_Normal() {\n addCard(Zone.HAND, playerA, \"Pollen Remedy\", 1); // {W}\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 1);\n addCard(Zone.HAND, playerA, \"Swamp\", 1); // for kicker\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n //\n addCard(Zone.HAND, playerA, \"Lightning Bolt\", 3);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 3);\n\n // add shield for 3 damage\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Pollen Remedy\");\n setChoice(playerA, false); // no kicker\n addTargetAmount(playerA, \"Balduvian Bears\", 3);\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);\n checkGraveyardCount(\"shield\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Pollen Remedy\", 1);\n\n // 6 damage to die (if no shield then can cast only 1 bolt)\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);\n checkGraveyardCount(\"after\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", 2);\n checkGraveyardCount(\"after\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Balduvian Bears\", 1);\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n }", "title": "" }, { "docid": "ac0cbd594fff2c7635d67d008ad05d83", "score": "0.48668385", "text": "@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c8ccc087d2470012f587e9464e17276b", "score": "0.48609293", "text": "@Override\n public void remove() throws CombatException {\n if (this instanceof Triggered) {\n TriggerManager.unregisterListeners((Triggered) this);\n }\n remove(getTarget());\n getTarget().removeEffect(this);\n info(deactivateMessage);\n // lets play some visual effects\n List<AmbientEffect> effects = visualEffects.get(EffectEffectStage.REMOVE);\n if (effects != null) {\n for (AmbientEffect effect : effects) {\n effect.run(getTarget().getEntity().getLocation());\n }\n }\n }", "title": "" }, { "docid": "42d3271ba85e5b2d4c1dcc2e757459c7", "score": "0.48478985", "text": "private void drop(Command command)\n { \n Boolean found = false;\n String itemString = command.getSecondWord();\n \n if(!command.hasSecondWord()) \n {\n // if there is no second word, we don't know which way to turn...\n System.out.println(\"Drop what?\");\n return;\n }\n \n \n for (Item aItem: itemList) {\n \n if (aItem.getItemDescription().equals(itemString) && aItem.getCarried() == true ) //checks if can be dropped\n {\n //weight update \n weight = weight - aItem.getWeight();\n found = true;\n robotPlayer.botDropItem();\n aItem.setCarried(false);\n aItem.putDownItem(thePlayer.getRoom(), thePlayer.getDirection().toString()); \n System.out.println(\"you have put down \" + itemString); \n } \n \n }\n \n if (found == false) {\n System.out.println(\"you cant find \" + itemString + \" on your person\");\n } \n }", "title": "" }, { "docid": "1afb921b74fc84aacd81cb5b6680d45c", "score": "0.48455957", "text": "public Integer getSecondsLeft(final Player player, int cooldown, String skillName) {\n\t\tString pID = player.getUniqueId().toString();\n\t\tif (cooldowns.containsKey(pID) && cooldowns.get(pID).containsKey(skillName)) {\n\t\t\tlong oldTime = this.cooldowns.get(pID).get(skillName);\n\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\tint secondsLeft = (int)((cooldown - (curTime - oldTime)/1000));\n\t\t\treturn secondsLeft;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "e3bdbe9e8bbb1ff4e2101549d50f1488", "score": "0.48450652", "text": "protected void damageEnemy() {\n // If the projectile directly hits an enemy, then hurt everyone in the radius\n if (target != null && !isRemoved()) {\n for (int i = 0; i < targets.size() && i < SPLASH_LIMIT; i++) {\n targets.get(i).damage(damage, isMagic, !isMagic);\n }\n if (hasExplosion) explode();\n else destroy();\n }\n }", "title": "" }, { "docid": "b8f34bf520c1d2befc25ca44582f8e1a", "score": "0.48358887", "text": "public void hurt(int amount) {\r\n\t\tif (inventory.contains(3)) {\r\n\t\t\tinventory.remove(3);\r\n\t\t} else {\r\n\t\t\thealth -= amount;\r\n\t\t\tif (health <= 0 && active) {\r\n\t\t\t\thealth = 0; // I will be using this later when entity is knocked out\r\n\t\t\t\tdestroy();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b23980778695ca9bb68265ccbb59b802", "score": "0.47959405", "text": "public void addCooldown(Cooldown cooldown) {\n plugin.getCooldownManager().addCooldown(cooldown);\n }", "title": "" }, { "docid": "f5cc128bbb51415f6ce7b9e9e97b2d2b", "score": "0.4793427", "text": "protected void checkAttacks() {\r\n\t\t// Cooldown timing code\r\n\t\t// ----------------------------------------------------------\r\n\t\tattackTimer += System.currentTimeMillis() - lastAttackTimer;\r\n\t\tlastAttackTimer = System.currentTimeMillis();\r\n\t\tif (attackTimer < attackCooldown)\r\n\t\t\treturn;\r\n\t\t// ----------------------------------------------------------\r\n\r\n\t\tRectangle cb = getCollisionBounds(0, 0);// Collision Bounds of Player\r\n\t\tRectangle ar = new Rectangle(); // Attack Rectangle\r\n\t\tint arSize = 23; // Size of Attack Rectangle\r\n\t\tar.width = arSize;\r\n\t\tar.height = arSize;\r\n\r\n\t\tif (attacking) {\r\n\t\t\tif (lastDirection == 1) { // Attack Left\r\n\t\t\t\tar.x = cb.x - arSize;\r\n\t\t\t\tar.y = cb.y + cb.height / 2 - arSize / 2;\r\n\t\t\t} else if (lastDirection == 3) { // Attack Right\r\n\t\t\t\tar.x = cb.x + arSize;\r\n\t\t\t\tar.y = cb.y + cb.height / 2 - arSize / 2;\r\n\t\t\t} else if (lastDirection == 0) { // Attack Up\r\n\t\t\t\tar.x = cb.x;\r\n\t\t\t\tar.y = cb.y - arSize;\r\n\t\t\t} else if (lastDirection == 2) { // Attack Down\r\n\t\t\t\tar.x = cb.x + cb.width / 2 - arSize / 2;\r\n\t\t\t\tar.y = cb.y + cb.height;\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\treturn;\r\n\r\n\t\tattackTimer = 0;\r\n\r\n\t\tfor (Entity e : handler.getWorld().getEntityManager().getCreatures()) {\r\n\t\t\tif (e.equals(this))\r\n\t\t\t\tcontinue;\r\n\t\t\tif (e.getCollisionBounds(0, 0).intersects(ar)) {\r\n\t\t\t\tif (inventory.contains(2)) {\r\n\t\t\t\t\te.hurt(100);\r\n\t\t\t\t\tinventory.remove(2);\r\n\t\t\t\t} else {\r\n\t\t\t\t\te.hurt(5); // Entity receives damage value of 1\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (Entity e : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif (e.getCollisionBounds(0, 0).intersects(ar)) {\r\n\t\t\t\te.hurt(1); // Entity receives damage value of 1\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (Entity e : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif (e.getCollisionBounds(0, 0).intersects(ar)) {\r\n\t\t\t\te.activate();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7b01e6dab6f008bda23b51652cbb28e1", "score": "0.4793378", "text": "public void attack() {\r\n\t\tif (canAttack) {\r\n\t\t\tif (target instanceof Elephant) if (target != null) {\r\n\t\t\t\ttarget.health -= 1 * -Game.elephantHyde; \r\n\t\t\t\tSoundEffect.LION_ATTACK_ELEPHANT.play();\r\n\t\t\t}\r\n\t\t\tif (target != null) target.health -= attackDamage;\r\n\t\t\tcanAttack = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "291723b170ec7124e1400c47006475c6", "score": "0.47869197", "text": "@Test\n public void testDontUntap(){\n\n addCard(Zone.HAND, playerA, \"Capture Sphere\");\n addCard(Zone.BATTLEFIELD, playerA, \"Island\", 4);\n addCard(Zone.BATTLEFIELD, playerB, \"Grizzly Bears\");\n\n castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerA,\"Capture Sphere\", \"Grizzly Bears\");\n setStrictChooseMode(true);\n setStopAt(4, PhaseStep.PRECOMBAT_MAIN);\n execute();\n\n assertTapped(\"Grizzly Bears\", true);\n }", "title": "" }, { "docid": "1996a76faf423816819b3c023c843fd3", "score": "0.4780739", "text": "@Override\r\n\tpublic int cast_spell(Spell spell)\r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ccd90e04b392e7e9f95b9f5398bff31a", "score": "0.47692916", "text": "public LCCooldown(String name, long millis, int itemId) {\n Preconditions.checkArgument(millis > 0, \"Cooldown must have a valid time > 0.\");\n this.name = Preconditions.checkNotNull(name, \"Cooldown Name cannot be null.\");\n this.millis = millis;\n this.item = Material.values()[itemId];\n this.itemId = itemId;\n packet = new LCPacketCooldown(name, millis, itemId);\n }", "title": "" }, { "docid": "a1970ac8ceb053046c18362a709a4b6c", "score": "0.47687793", "text": "public void villainDamage() \n {\n //endGame is only found in the Menu1 subclass of world, so this declaration is required.\n Menu1 world = getWorldOfType(Menu1.class);\n if (isTouching(Villain.class)) {\n removeTouching(Villain.class);\n lives -=1;\n }\n if (lives == 0)\n {\n world.endGame();\n }\n }", "title": "" }, { "docid": "420e8b1dcbefef259a4792156d5ca998", "score": "0.47660416", "text": "public void cooldown(JavaPlugin plugin, String key, int delay) {\n cooldown(plugin, key, delay, null);\n }", "title": "" }, { "docid": "d26ff7a9a9ca781896c7eb52de950dee", "score": "0.47633588", "text": "@Override\n\tpublic void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)\n\t{\n\t\tif (this.cooldown > 0 && !par2World.isRemote)\n\t\t{\n\t\t\t--this.cooldown;\n\t\t}\n\t}", "title": "" }, { "docid": "891a60787a0d5d65e1882daba194111f", "score": "0.47520363", "text": "public LCCooldown(String name, int time, TimeUnit unit, Material item) {\n this(name, unit.toMillis(time), item);\n }", "title": "" }, { "docid": "6975c0df3ebffac682375fe195c4cf95", "score": "0.47392938", "text": "@Override\r\n public void happen() {\n if (!isSpellEffectPositive()) {\r\n Fight.startCombat(getSelf(), getTarget());\r\n }\r\n\r\n Room room = getSelf().getRoom();\r\n\r\n MudArrayList mobs = room.getMobs();\r\n\r\n // Can summon targets in other room locations.\r\n if (!_spell.isAnyTarget()) {\r\n if (mobs == null || mobs.contains(getTarget()) == false) {\r\n out(getTarget().getId() + \" is no longer here you stop casting\");\r\n\r\n getSelf().getMobStatus().setCasting(0);\r\n finished();\r\n return;\r\n }\r\n }\r\n\r\n out(new Msg(\r\n getSelf(),\r\n getTarget(),\r\n \"<S-You launch/NAME launches> a bolt of energy from <S-your/GEN-his> fingertips directed at a <T-you/NAME>.\"));\r\n\r\n if (isSuccess() || isSpellEffectPositive()) {\r\n hit();\r\n } else {\r\n miss();\r\n }\r\n Prompt.show(getSelf());\r\n duration(1);\r\n }", "title": "" }, { "docid": "6cb567b8dc565bbe155134bb5f928160", "score": "0.47367424", "text": "@Override\n\tpublic void reduceCurrentHp(double damage, Creature attacker, L2Skill skill)\n\t{\n\t\tif (_clan != null && isScriptValue(0))\n\t\t{\n\t\t\t_clan.broadcastToOnlineMembers(SystemMessage.getSystemMessage(SystemMessageId.BASE_UNDER_ATTACK));\n\t\t\t\n\t\t\tsetScriptValue(1);\n\t\t\tThreadPool.schedule(() -> setScriptValue(0), 30000);\n\t\t}\n\t\tsuper.reduceCurrentHp(damage, attacker, skill);\n\t}", "title": "" }, { "docid": "0d50292293facb6b7774d0b8baf90ea8", "score": "0.47301453", "text": "public SpellResult calculateOffensiveSpellResult(Entity source, Entity victim, Spell spell) {\r\n SpellResult spellResult = DefaultAppFactory.createSpellResult();\r\n\r\n int levelDifference = source.getLevel() - victim.getLevel();\r\n int combatSkillMod = (victim.getCombatSkill() - 70) / 10;\r\n int spellDefense = 1 - levelDifference + combatSkillMod;\r\n if (spellDefense < 1) {\r\n spellDefense = 1;\r\n }\r\n if (Dice.roll(1, 20) <= spellDefense) {\r\n spellResult.setSpellResultEnum(SpellResultEnum.NEGATED);\r\n return spellResult;\r\n }\r\n\r\n spellResult.setSpellResultEnum(SpellResultEnum.SUCCESS);\r\n\r\n int damage = Dice.roll(spell.getMinSpellEffect(), spell.getMaxSpellEffect());\r\n\r\n if (spell.scalesWithLevel()) {\r\n damage = damage * source.getLevel();\r\n }\r\n\r\n damage += damage * (source.getStats().getIntellect().getOffensiveSpellPotency() / 100F);\r\n\r\n spellResult.setNumberEffect(damage);\r\n return spellResult;\r\n }", "title": "" }, { "docid": "cdead7d425649124a0995b2dd4d08ced", "score": "0.47291663", "text": "private void removeWord() {\n\t\tSystem.out.print(\"Enter the word you'd like to remove: \");\n String input = getUserInput();\n DictionaryWord word = editor.find(input);\n if (word == null) {\n System.out.println(\"Word not found - unable to remove words not already present in the dictionary.\");\n }\n else {\n editor.delete(word);\n System.out.println(\"\\\"\" + input + \"\\\" has been deleted.\");\n }\n\n\t}", "title": "" }, { "docid": "58817b4cddfaad370fa0c0e3daadae4d", "score": "0.47198775", "text": "public static void loseLife(Worm worm) {\n if (!worm.getShield()) {\n Music.loseLife.play();\n worm.setLife(worm.getLife() - 1);\n worm.setShield(true);\n worm.setTransparencyChange(true);\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n worm.setShield(false);\n worm.setTransparencyChange(false);\n }\n }, 1000);\n }\n }", "title": "" }, { "docid": "9229b33d9ba7e3383e12065d6b0df140", "score": "0.47142145", "text": "@Test\n public void test_PreventSomeDamage_Kicked() {\n addCard(Zone.HAND, playerA, \"Pollen Remedy\", 1); // {W}\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 1); // for kicker\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n //\n addCard(Zone.HAND, playerA, \"Lightning Bolt\", 3);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 3);\n\n // add shield for 6 damage\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Pollen Remedy\");\n setChoice(playerA, true); // use kicker\n setChoice(playerA, \"Swamp\"); // kicker cost\n addTargetAmount(playerA, \"Balduvian Bears\", 6);\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);\n checkGraveyardCount(\"shield\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Pollen Remedy\", 1);\n\n // 9 damage to die (if no shield then can cast only 1 bolt)\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", \"Balduvian Bears\");\n waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA);\n checkGraveyardCount(\"after\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", 3);\n checkGraveyardCount(\"after\", 1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Balduvian Bears\", 1);\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n }", "title": "" }, { "docid": "e2f88a88c52146aed91ac8234df15f44", "score": "0.47123176", "text": "@Test\n public void testUndyingEvil() {\n // Elite Vanguard\n // Creature — Human Soldier 2/1\n addCard(Zone.BATTLEFIELD, playerA, \"Elite Vanguard\");\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 3);\n // Last Gasp\n // Instant, 1B\n // Target creature gets -3/-3 until end of turn.\n addCard(Zone.HAND, playerA, \"Last Gasp\");\n // Undying Evil\n // Target creature gains undying until end of turn. \n // When it dies, if it had no +1/+1 counters on it, return it to the battlefield under its owner's control with a +1/+1 counter on it.)\n addCard(Zone.HAND, playerA, \"Undying Evil\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Last Gasp\", \"Elite Vanguard\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Undying Evil\", \"Elite Vanguard\");\n\n setStopAt(1, PhaseStep.END_COMBAT);\n execute();\n\n assertPermanentCount(playerA, \"Elite Vanguard\", 1);\n assertPowerToughness(playerA, \"Elite Vanguard\", 3, 2);\n }", "title": "" }, { "docid": "45ef12837dcb6720d9c90255d433863a", "score": "0.4711183", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n am.playSoundEffect(Sounds.DISALLOWED);\n }", "title": "" }, { "docid": "9e40c0283fbb7f0d8e95b2950e0c318c", "score": "0.47108337", "text": "public void removeFromInventory(final char inItem) {\n\n // If the item being removed is a spell, what we want to do is reduce the\n // count for that spell by 1, and if it reaches zero, only then do we\n // actually remove the element from the map.\n if (inItem == Globals.SPELL_FIRE_RAIN ||\n inItem == Globals.SPELL_HEAL_THY_SELF ||\n inItem == Globals.SPELL_FREEZE_TIME) {\n int spellCount =\n ((Integer)inventory.get(Character.toString(inItem))).intValue();\n spellCount--;\n if (spellCount == 0) {\n inventory.remove(Character.toString(inItem));\n } else {\n inventory.put(Character.toString(inItem), new Integer(spellCount));\n }\n } else {\n // The item is NOT a spell, just remove it outright.\n inventory.remove(Character.toString(inItem));\n }\n\n }", "title": "" }, { "docid": "342d44f8a21189f4b136e801eed170b1", "score": "0.47072947", "text": "public void stopSoundEffect() {\n\t\tSound.Boss.stop();\n\t\tSound.PistolReload.stop();\n\t\tSound.MagnumReload.stop();\n\t\tSound.M16Reload.stop();\n\t\tSound.ShotgunReload.stop();\n\t\tSound.HealthPickup.stop();\n\t}", "title": "" }, { "docid": "67db85c7ccefa6523449df013c22c61c", "score": "0.46897203", "text": "private void stopProgram() {\n if (spellProgram != null) {\n spellProgram.destroy();\n spellProgram = null;\n }\n }", "title": "" }, { "docid": "ffbf50e83d5744ef187b8cc3bb955c33", "score": "0.46884575", "text": "public void handleMentalRestDelay(Entity entity, Spell spell) {\r\n float baseWait;\r\n if (spell.getLevel() == 1) {\r\n baseWait = 15;\r\n } else {\r\n baseWait = 27 + spell.getLevel();\r\n }\r\n baseWait -= entity.getLevel();\r\n if (baseWait < 5) {\r\n baseWait = 5;\r\n }\r\n\r\n float variance = (baseWait / 10) * 2;\r\n int random = Dice.roll(1, (int) variance);\r\n if (Dice.roll(0, 1) == 0) {\r\n random = -random;\r\n }\r\n baseWait += random;\r\n entity.setMentalExhaustionTicker((int) baseWait);\r\n }", "title": "" }, { "docid": "276aca2604a3d5ac3158ad062c133460", "score": "0.46882868", "text": "public void removeBonus(L2PcInstance player)\r\n\t{\r\n\t\t_boni.removeBonus(player);\r\n\t\t\r\n\t\t// remove the skill if any\r\n\t\tif (_skill1 != null)\r\n\t\t{\r\n\t\t\tif (_skill1.isPassive())\r\n\t\t\t\tplayer.removeSkill(_skill1, false, true);\r\n\t\t\telse\r\n\t\t\t\tplayer.removeSkill(_skill1, false, false);\r\n\t\t\t\r\n\t\t\tplayer.sendSkillList();\r\n\t\t}\r\n\t\t// remove the skill if any\r\n\t\tif (_skill2 != null)\r\n\t\t{\r\n\t\t\tif (_skill2.isPassive())\r\n\t\t\t\tplayer.removeSkill(_skill2, false, true);\r\n\t\t\telse\r\n\t\t\t\tplayer.removeSkill(_skill2, false, false);\r\n\t\t\t\r\n\t\t\tplayer.sendSkillList();\r\n\t\t}\r\n\t\t// remove the skill if any\r\n\t\tif (_skill3 != null)\r\n\t\t{\r\n\t\t\tif (_skill3.isPassive())\r\n\t\t\t\tplayer.removeSkill(_skill3, false, true);\r\n\t\t\telse\r\n\t\t\t\tplayer.removeSkill(_skill3, false, false);\r\n\t\t\t\r\n\t\t\tplayer.sendSkillList();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a752f98aed1f4ce1551ad2b3f6c89a2d", "score": "0.4679264", "text": "public void removeAutocompletionListener(AutocompletionListener<T> l) {\n\t\tautocompletionListeners.remove(l);\n\t}", "title": "" }, { "docid": "d26695cf1dbb559f74cd832f29c23496", "score": "0.4674794", "text": "public void takeAdvAway() {\n\t\t\n\t\tplayer1LongPaddle = false;\n\t\tplayer2LongPaddle = false;\n\t\t\n\t\tnonPowerHitCount = 0;\n\t\tPowerHitCount = 0;\n\t\t\n\t}", "title": "" }, { "docid": "8fbf3b11c352dc982d8b13939a77dc12", "score": "0.46719238", "text": "@Override\n\t\tpublic IMessage onMessage(SpellRequestReplyMessage message, MessageContext ctx) {\n\t\t\tNBTTagList list = message.tag.getTagList(NBT_SPELLS, NBT.TAG_COMPOUND);\n\t\t\tif (list == null)\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tboolean clean = message.tag.getBoolean(NBT_CLEAN);\n\t\t\tif (clean) {\n\t\t\t\tNostrumMagica.logger.info(\"Cleaning spell registry to receive server's copy\");\n\t\t\t\tNostrumMagica.getSpellRegistry().clear();\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < list.tagCount(); i++) {\n\t\t\t\tNBTTagCompound nbt = list.getCompoundTagAt(i);\n\t\t\t\tint id = nbt.getInteger(NBT_ID);\n\t\t\t\tnbt = nbt.getCompoundTag(NBT_SPELL);\n\t\t\t\tSpell spell = Spell.fromNBT(nbt, id);\n\t\t\t\t\n\t\t\t\tif (spell != null)\n\t\t\t\t\tNostrumMagica.getSpellRegistry().override(id, spell);\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "81766490840de9f25896b48a3c97455e", "score": "0.46715367", "text": "public void onSpellTick(Spell spell, World world, float x, float y, float z, SpellInfo info) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3052cb7f37ce92ca832a76c01bf5751c", "score": "0.46684825", "text": "private void clearAutoclickDelay() {\n this.autoclickDelay_ = null;\n this.bitField0_ &= -9;\n }", "title": "" }, { "docid": "a24cc7b34a98fa0f4a3a598b3c05efa2", "score": "0.4652879", "text": "public SpellResult handleAreaSpellDamage(Entity entity, Spell spell) {\r\n SpellResult spellResult = DefaultAppFactory.createSpellResult();\r\n\r\n spellResult.setSpellResultEnum(SpellResultEnum.SUCCESS);\r\n\r\n int damage = Dice.roll(spell.getMinSpellEffect(), spell.getMaxSpellEffect());\r\n\r\n if (spell.scalesWithLevel()) {\r\n damage = damage * entity.getLevel();\r\n }\r\n\r\n damage += damage * (entity.getStats().getIntellect().getOffensiveSpellPotency() / 100F);\r\n\r\n spellResult.setNumberEffect(damage);\r\n return spellResult;\r\n\r\n }", "title": "" }, { "docid": "27bb63ab1eb912da2be2cea23bfee3c2", "score": "0.46503928", "text": "public void underAttack() {\n\t\ttimeSinceAttack = 0;\n\t}", "title": "" }, { "docid": "84508e9d893c0391384b618a27656dce", "score": "0.4646442", "text": "public void decrementHealth() {\n currentHealth--;\n }", "title": "" }, { "docid": "7640281735de37a68832780bedcae354", "score": "0.46454686", "text": "public LCCooldown(String name, int seconds, Material item) {\n this(name, seconds * 1000L, item);\n }", "title": "" }, { "docid": "4a0bb7990ac0be9e2bfe05ab9eb2b320", "score": "0.46391055", "text": "protected void hurt(int damage) {\n\t\tdhealth -= damage;\n\t}", "title": "" }, { "docid": "5169a54b73cc7d2f6abc9dae0b301e0e", "score": "0.4631759", "text": "public boolean isUsable()\n {\n return cooldownRemaining <= 0;\n }", "title": "" }, { "docid": "6a6c906c42e5df73ea70f3920f6633b2", "score": "0.46303627", "text": "public void remEnchantFromNonBook(ItemStack item, Enchantment enchant) {\r\n item.removeEnchantment(enchant);\r\n }", "title": "" }, { "docid": "d2bfda3e2860403c604328a92f8f5832", "score": "0.46230513", "text": "public void rem_power(String name) {\n character.remove_power(name);\n }", "title": "" }, { "docid": "6ab3368a7f9b33b60f0d1408539bc1c5", "score": "0.4617382", "text": "void takeDamage(int damage, Iterator<Enemy> itr) {\r\n health -= damage;\r\n if (health <= 0) {\r\n itr.remove();\r\n }\r\n }", "title": "" }, { "docid": "bbda5c0956e858d921b328aa9ef7e85c", "score": "0.46091545", "text": "boolean hasSpellCorrection();", "title": "" }, { "docid": "4f2bcf73d32e71b787f8ed7c2a715ce6", "score": "0.46068016", "text": "@Override\n public void onPlayerQuit(PlayerQuitEvent event) {\n Hero hero = getPlugin().getHeroManager().getHero(event.getPlayer());\n if (hero.getSummons().isEmpty())\n return;\n for (Creature summon : hero.getSummons()) {\n if (summon instanceof Skeleton) {\n Effect effect = getPlugin().getHeroManager().getCreatureEffect(summon, \"Summon\");\n if (effect != null) {\n getPlugin().getHeroManager().removeCreatureEffect(summon, effect);\n } else {\n summon.remove();\n }\n }\n }\n }", "title": "" }, { "docid": "4b8a29a4ab2c4cc19326912b34808732", "score": "0.45984954", "text": "public void damage (int amount) {currentHealth-=amount;}", "title": "" }, { "docid": "162eeb9ba87f7309938744b3dbf59598", "score": "0.45961574", "text": "public void act() \r\n {\r\n explode.setVolume(20);\r\n powerBullet a =(powerBullet)getOneIntersectingObject(powerBullet.class);\r\n if(a != null){\r\n explode.play();\r\n removeTouching(powerBullet.class);\r\n getWorld().removeObject(this);\r\n }\r\n }", "title": "" }, { "docid": "eb4db48cc21539f0609c4de53c7b737f", "score": "0.4588249", "text": "public void unShoot() {\n shooterPiston.set(Relay.Value.kReverse);\n }", "title": "" }, { "docid": "25704ebdfc6dd39e7dd01fa8f248f87e", "score": "0.45818335", "text": "public void do_remove(String name, String player) {\r\n String temp = ba.getFuzzyPlayerName(player);\r\n\r\n if (temp != null && temp.equalsIgnoreCase(player)) {\r\n winners.remove(low(player));\r\n lagChecks.remove(low(player));\r\n losers.remove(low(player));\r\n played.remove(low(player));\r\n ElimPlayer ep = players.remove(low(player));\r\n\r\n if (ep != null)\r\n ep.cancelTasks();\r\n\r\n ba.spec(player);\r\n ba.spec(player);\r\n ba.sendPrivateMessage(player, \"You have been forcibly removed from the game.\");\r\n ba.sendPrivateMessage(name, player + \" has been removed from the game.\");\r\n checkWinner();\r\n } else {\r\n ba.sendPrivateMessage(name, \"Player '\" + player + \"' not found in the arena; attempting to remove manually, in cases of bugged players.\");\r\n winners.remove(low(player));\r\n lagChecks.remove(low(player));\r\n losers.remove(low(player));\r\n played.remove(low(player));\r\n ElimPlayer ep = players.remove(low(player));\r\n\r\n if (ep != null)\r\n ep.cancelTasks();\r\n\r\n ba.sendPrivateMessage(player, \"You have been forcibly removed from the game.\");\r\n ba.sendPrivateMessage(name, player + \" has been removed from the game (if playing).\");\r\n checkWinner();\r\n }\r\n }", "title": "" }, { "docid": "563db133225563d8f73c00c3e704b26c", "score": "0.45803934", "text": "public void dropFood()\n {\n if (dropTimer == 0)\n {\n hasFood = false;\n /* setImage(\"...\") or something */\n dropTimer = DROP_TIME * 2;\n }\n else\n {\n dropTimer--;\n }\n }", "title": "" }, { "docid": "aa641d4d4f0780bd592638bedb03dae6", "score": "0.4575294", "text": "@SuppressWarnings(\"nls\")\n public void removeCharacter(final long id) {\n if ((playerChar != null) && (playerChar.getCharId() == id)) {\n throw new IllegalArgumentException(\"Can't remove player char\");\n }\n charsLock.writeLock().lock();\n try {\n final Char chara = chars.get(id);\n if (chara != null) {\n // cancel attack when character is removed\n if (CombatHandler.getInstance().isAttacking(chara)) {\n CombatHandler.getInstance().standDown();\n }\n chars.remove(id);\n chara.recycle();\n }\n } finally {\n charsLock.writeLock().unlock();\n }\n }", "title": "" }, { "docid": "4ee020290fda92e77831f425f51e6c98", "score": "0.4574845", "text": "public void modifySpellEntity(ISpellEntity entity, Spell spell) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "253492c6eb20bdd62ba5c31c4f1f8cfa", "score": "0.45715356", "text": "public void death()\n {\n Actor ironsword;\n ironsword = getOneObjectAtOffset(0, 0, IronSword.class);\n if (isTouching(IronSword.class) == true)\n {\n World world;\n world = getWorld();\n world.removeObject(this);\n }\n }", "title": "" } ]
07a054f75804b2c6fb9b888b90c0e010
Returns the protocol plugins to be used when acting as a server
[ { "docid": "f7096c1aefed09f92c05607ae9ef0d02", "score": "0.8098721", "text": "public Collection<ServerProtocolPlugin> getServerProtocolPlugins() {\n\t\t\treturn serverProtocolPlugins;\n\t\t}", "title": "" } ]
[ { "docid": "72f0a233a23f44bece9bd239a40793b1", "score": "0.7026594", "text": "public Map<String, Plugin> getPlugins();", "title": "" }, { "docid": "c1fd265dce62f2d0d4b9bda8c7714582", "score": "0.69290966", "text": "List<Plugin> getPlugins();", "title": "" }, { "docid": "3e43dfa346d3ceab8d185ccd5d577aef", "score": "0.68947905", "text": "public List<String> getSupportedProtocols();", "title": "" }, { "docid": "94a1ba95b5c8c52a16d50d356a47c1b2", "score": "0.68726885", "text": "public List<Plugin> getPlugins();", "title": "" }, { "docid": "7c4203ac4d4e7c12ce7466fa607556e5", "score": "0.6810724", "text": "public java.util.List<String> getProtocols() {\n return protocols;\n }", "title": "" }, { "docid": "9bbc317b8cf0ea9a97e7aaec35a90bbe", "score": "0.6750983", "text": "@Override\n\tpublic List<String> getProtocols() {\n\t\treturn protocols;\n\t}", "title": "" }, { "docid": "485c86a7c1efd950f910a9c10efe80ea", "score": "0.6697438", "text": "@Override\n public String[] supportedGetProtocols()\n {\n for( String protocol: getProtocols) {\n logger.debug(\"supportedGetProtocols: \" + protocol );\n }\n\n return getProtocols;\n }", "title": "" }, { "docid": "b930b893734bb2e267b2007153065d5c", "score": "0.66463125", "text": "public List getSupportedProtocols()\n {\n return Collections.unmodifiableList(supportedProtocols);\n }", "title": "" }, { "docid": "e0d779a99c9df1da8d92452f441c636a", "score": "0.6593964", "text": "public List<String> protocols()\r\n/* 37: */ {\r\n/* 38: 81 */ return this.protocols;\r\n/* 39: */ }", "title": "" }, { "docid": "ade0ba42ebe61e37b1cdaee7716beaa9", "score": "0.6561869", "text": "public List< Protocol > getProtocolsForRemote( Remote remote )\n {\n return getProtocolsForRemote( remote, true );\n }", "title": "" }, { "docid": "6fa891a2e5170678e2cb306777f59ea0", "score": "0.6529322", "text": "public List<P> getAvailablePlugins ()\n {\n synchronized ( checkLock )\n {\n return new ImmutableList<P> ( availablePlugins );\n }\n }", "title": "" }, { "docid": "4f2e5ea7a67ad82bc57432eb90aae649", "score": "0.65246826", "text": "public Set<Protocol> getProtocols()\n {\n return protocols;\n }", "title": "" }, { "docid": "8736a64013692562fdb4a24cbbe3b144", "score": "0.6506585", "text": "private void loadPluginChannels() {\n getServer().getMessenger().registerOutgoingPluginChannel(this, \"BungeeCord\");\n getServer().getMessenger().registerIncomingPluginChannel(this, \"BungeeCord\", new NetworkListener(this));\n }", "title": "" }, { "docid": "88781d272256a607873b7c182b1522dd", "score": "0.64530426", "text": "public abstract List<String> getProtocols();", "title": "" }, { "docid": "ed5a0e3064344e4d012cc38fc0f1565c", "score": "0.63510865", "text": "public java.util.List<Plugin> getPlugins()\n {\n if ( this.plugins == null )\n {\n this.plugins = new java.util.ArrayList<Plugin>();\n }\n\n return this.plugins;\n }", "title": "" }, { "docid": "f9dc883bc57a4101145c21e6feefe739", "score": "0.63253546", "text": "public List<DetectedPlugin<P>> getDetectedPlugins ()\n {\n synchronized ( checkLock )\n {\n return new ImmutableList<DetectedPlugin<P>> ( detectedPlugins );\n }\n }", "title": "" }, { "docid": "d51bcd894d2a83c0c5551d6b09af078c", "score": "0.63098973", "text": "public CompositeData getPlugIns() throws Exception {\n\t\tCompositeData result = null;\n\t\ttry {\n\t\t\tList<WebSocketServer> lAllServers = JWebSocketFactory.getServers();\n\t\t\tMap lServers = new FastMap();\n\n\t\t\tfor (int i = 0; i < lAllServers.size(); i++) {\n\t\t\t\tif (lAllServers.get(i).getPlugInChain() != null) {\n\t\t\t\t\tList<WebSocketPlugIn> lAllPlugins =\n\t\t\t\t\t\t\tlAllServers.get(i).getPlugInChain().getPlugIns();\n\t\t\t\t\tMap lServerPlugins = new FastMap();\n\t\t\t\t\tif (!lAllPlugins.isEmpty()) {\n\t\t\t\t\t\tfor (int j = 1; j <= lAllPlugins.size(); j++) {\n\t\t\t\t\t\t\tMap lPlugins = new FastMap();\n\t\t\t\t\t\t\tTokenPlugIn lValue = (TokenPlugIn) lAllPlugins.get(j - 1);\n\t\t\t\t\t\t\tlPlugins.put(\"id\", lValue.getId());\n\t\t\t\t\t\t\tlPlugins.put(\"name\", lValue.getName());\n\t\t\t\t\t\t\tlPlugins.put(\"namespace\", lValue.getNamespace());\n\t\t\t\t\t\t\tlPlugins.put(\"version\", lValue.getVersion());\n\t\t\t\t\t\t\tlPlugins.put(\"isEnable\", lValue.getEnabled());\n\n\t\t\t\t\t\t\tlServerPlugins.put(\"plugin_\" + lValue.getId(), lPlugins);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlServerPlugins.put(\"plugin\", \"This server doesn't have \"\n\t\t\t\t\t\t\t\t+ \"any plugins loaded\");\n\t\t\t\t\t}\n\n\t\t\t\t\tlServers.put(\"serverId_\" + lAllServers.get(i).getId(), lServerPlugins);\n\t\t\t\t} else {\n\t\t\t\t\tlServers.put(\"serverId_\" + lAllServers.get(i).getId(), \"This\"\n\t\t\t\t\t\t\t+ \" server doesn't have any plugins chain\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tresult = JMXHandler.convertMapToCompositeData(lServers);\n\t\t} catch (Exception ex) {\n\t\t\tmLog.error(\"JMXPlugIn on getPlugIns: \" + ex.getMessage());\n\t\t\tthrow new Exception(ex.getMessage());\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1a7059f8fa10b6603b430491bf214016", "score": "0.62586695", "text": "public Collection getPlugins() {\n\t\treturn mm.getPlugins(this);\n\t}", "title": "" }, { "docid": "36e54a939c1fc2efd52f7125f23ae0f7", "score": "0.61468095", "text": "private static List<PluginSettings> loadConfigurations(){\n PluginSettings ps = new PluginSettings(INSTANCE_ID,OCTANE_SERVER_URL,SPACE_ID,CLIENT_ID,CLIENT_PASSWORD);\n return Arrays.asList(ps);\n }", "title": "" }, { "docid": "b9bbd4d08d4026e1d8cf06efa1908e17", "score": "0.607647", "text": "public List<String> getRegisteredPluginNames();", "title": "" }, { "docid": "c52cd63765bf0f1b2ac7753a669750fb", "score": "0.6029374", "text": "@Override\n public List<IPluginModule> getPluginModules(Conversation.ConversationType conversationType) {\n List<IPluginModule> pluginModuleList = new ArrayList<>();\n pluginModuleList.add(new ImagePlugin());\n// pluginModuleList.add(new PaiShePlugin());\n IPluginModule file = new FilePlugin();\n return pluginModuleList;\n }", "title": "" }, { "docid": "7b2006da88097acae75067c375869252", "score": "0.6019099", "text": "public IExtension[] getExtensions() {\n\t\tIExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(RuntimePlugin.PLUGIN_ID, ADVISOR_EXTENSION_POINT);\n\t\t\n\t\tif (extensionPoint == null)\n\t\t\treturn new IExtension[] {};\n\t\treturn extensionPoint.getExtensions();\n\t}", "title": "" }, { "docid": "ceee7608d21867acd98b64685f520879", "score": "0.5983447", "text": "public static ProtocolPlugins getInstance () {\n\t\t\tWrapper<ProtocolPlugins> w = wrapper;\n\t if (w == null) { // check 1\n\t \tsynchronized (ProtocolPlugins.class) {\n\t \t\tw = wrapper;\n\t \t\tif (w == null) { // check 2\n\t \t\t\tw = new Wrapper<ProtocolPlugins>(new ProtocolPlugins());\n\t \t\t\twrapper = w;\n\t \t\t}\n\t \t}\n\t }\n\t \n\t return w.getInstance();\n\t\t}", "title": "" }, { "docid": "6d901c63df353b59f94be53ede48f94e", "score": "0.5981368", "text": "public String[] getConnectors() {\r\n\t\treturn SupportedModularRobots.CKBOTSTANDARD_CONNECTORS;\r\n\t}", "title": "" }, { "docid": "87619248cb55318d27ee8817ba78f2a8", "score": "0.59123474", "text": "public List< Protocol > getProtocolsForRemote( Remote remote, boolean allowUpgrades )\n {\n List< Protocol > rc = new ArrayList< Protocol >();\n for ( String name : names )\n {\n Protocol p = findProtocolForRemote( remote, name, allowUpgrades );\n if ( p != null )\n {\n rc.add( p );\n }\n }\n /*\n * if ( allowUpgrades && manualProtocol.hasCode( remote )) rc.add( manualProtocol );\n */\n return rc;\n }", "title": "" }, { "docid": "617b5af18efbaa2bb88ca12d90110238", "score": "0.5912199", "text": "public static ChannelType[] getServerChannelTypes() {\n return serverChannelTypes;\n }", "title": "" }, { "docid": "5888f4aa8a651a81909859d240c01ab6", "score": "0.5892032", "text": "public IExtension[] getHandlerContributions() {\r\n\r\n\t\t// Note: The identifier below must match the extension point ID in plugin.xml.\r\n\r\n\t\tIExtension[] extensions = null;\r\n\r\n\t\t// Note: The identifier below must match the plug-in ID in plugin.xml.\r\n\t\tIExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID,\r\n\t\t\t\tISAFExtensionConstants.HANDLERS_EXT_POINT_ID);\r\n\t\tif (extensionPoint != null) {\r\n\t\t\textensions = extensionPoint.getExtensions();\r\n\t\t}//if\r\n\r\n\t\treturn extensions;\r\n\t}", "title": "" }, { "docid": "d6d9464ee112931d797553baec47c37b", "score": "0.5890072", "text": "public void loadPlugins();", "title": "" }, { "docid": "ad454043c07962134f8e811b47876bda", "score": "0.58864844", "text": "public com.google.protobuf.ProtocolStringList\n getApplicationProtocolsList() {\n return applicationProtocols_;\n }", "title": "" }, { "docid": "bc27d70bea0bf3723f77566acd8b5ee6", "score": "0.58798933", "text": "public List getListPlugin() {\n return listPlugin;\n }", "title": "" }, { "docid": "ddc6ffeafce009ec865cc0e86a54f53c", "score": "0.5873465", "text": "public ProtocolProviderService getProtocolProvider()\n\t{\n\t\treturn this.getWhiteboardSession().getProtocolProvider();\n\t}", "title": "" }, { "docid": "a1fb0223cbe1b373b172bc28f4cd4fbc", "score": "0.5833327", "text": "public static ProtocolManager getProtocolManager()\n {\n return protocolManager;\n }", "title": "" }, { "docid": "e5cac2399cca52090fff838856e34f5c", "score": "0.58200485", "text": "public interface GoPlugins extends IObserver {\n void enable(IGoController controller);\n void deenable();\n String getName();\n}", "title": "" }, { "docid": "b0f8521aacbcdbe165b5c77d5690e51c", "score": "0.58142066", "text": "String getPlugin();", "title": "" }, { "docid": "48bc035f54e9ed56507c16c62aadd90a", "score": "0.5809917", "text": "IProtocolLayoutType[] getProtocolTypes();", "title": "" }, { "docid": "02c7ba02ee0a3a88ef85a08d21484334", "score": "0.5804357", "text": "public static List<Command> getServerCommands() {\n return serverCommands;\n }", "title": "" }, { "docid": "2444ca7a193277f2da9f16cdaa8299d6", "score": "0.57832336", "text": "private String[] getProtocols()\n/* */ {\n/* 166 */ String str = (String)AccessController.doPrivileged(new GetPropertyAction(\"https.protocols\"));\n/* */ \n/* */ String[] arrayOfString;\n/* 169 */ if ((str == null) || (\"\".equals(str))) {\n/* 170 */ arrayOfString = null;\n/* */ }\n/* */ else {\n/* 173 */ Vector localVector = new Vector();\n/* */ \n/* 175 */ StringTokenizer localStringTokenizer = new StringTokenizer(str, \",\");\n/* 176 */ while (localStringTokenizer.hasMoreTokens())\n/* 177 */ localVector.addElement(localStringTokenizer.nextToken());\n/* 178 */ arrayOfString = new String[localVector.size()];\n/* 179 */ for (int i = 0; i < arrayOfString.length; i++) {\n/* 180 */ arrayOfString[i] = ((String)localVector.elementAt(i));\n/* */ }\n/* */ }\n/* 183 */ return arrayOfString;\n/* */ }", "title": "" }, { "docid": "5a5f714dc3ab8a5154987e7e8f7f01ee", "score": "0.57641006", "text": "public ProtocolRegistry getProtocolRegistry() { return mProtocolRegistry; }", "title": "" }, { "docid": "7db9bde47bb336036e0f6a183eb414ef", "score": "0.5728751", "text": "public List<UIListItem> getPlugins()\n {\n if (this.plugins == null)\n {\n FacesContext context = FacesContext.getCurrentInstance();\n this.plugins = new ArrayList<UIListItem>();\n \n // create a list entry for each configured plugin\n for (String pluginId : this.sidebarConfig.getPlugins().keySet())\n {\n SidebarPluginConfig plugin = this.sidebarConfig.getPlugin(pluginId);\n \n // resolve the label for the plugin\n String label = plugin.getlabelId();\n if (label != null)\n {\n label = Application.getMessage(context, label);\n }\n if (label == null)\n {\n label = plugin.getlabel();\n }\n if (label == null)\n {\n label = plugin.getId();\n }\n \n // resolve the description (tooltip for the plugin)\n String tooltip = plugin.getDescriptionId();\n if (tooltip != null)\n {\n tooltip = Application.getMessage(context, tooltip);\n }\n if (tooltip == null)\n {\n tooltip = plugin.getDescription();\n }\n \n UIListItem item = new UIListItem();\n item.setValue(plugin.getId());\n item.setLabel(label);\n if (tooltip != null)\n {\n item.setTooltip(tooltip);\n }\n \n this.plugins.add(item);\n }\n }\n \n return this.plugins;\n }", "title": "" }, { "docid": "07ea558ee8b47c45c08f72ca62597c15", "score": "0.5710793", "text": "public ImmutableList<Props> getNegotiationHandlers() {\n Preconditions.checkState(negotiationHandlers != null, \"Negotiation Handlers not defined\");\n return negotiationHandlers;\n }", "title": "" }, { "docid": "31a4fd395e85e4f377e3de186ec622d8", "score": "0.5681746", "text": "public com.google.protobuf.ProtocolStringList\n getApplicationProtocolsList() {\n return applicationProtocols_.getUnmodifiableView();\n }", "title": "" }, { "docid": "ccd82e8b5a4deed15423d692ef8daaf8", "score": "0.5675046", "text": "public Hashtable getServerExtensions()\n throws IOException {\n if (this.encryptThenMACOffered && allowEncryptThenMAC()) {\n /*\n * RFC 7366 3. If a server receives an encrypt-then-MAC request extension from a client\n * and then selects a stream or Authenticated Encryption with Associated Data (AEAD)\n * ciphersuite, it MUST NOT send an encrypt-then-MAC response extension back to the\n * client.\n */\n if (TlsUtils.isBlockCipherSuite(this.selectedCipherSuite)) {\n TlsExtensionsUtils.addEncryptThenMACExtension(checkServerExtensions());\n }\n }\n\n if (this.maxFragmentLengthOffered >= 0 && MaxFragmentLength.isValid(maxFragmentLengthOffered)) {\n TlsExtensionsUtils.addMaxFragmentLengthExtension(checkServerExtensions(), this.maxFragmentLengthOffered);\n }\n\n if (this.truncatedHMacOffered && allowTruncatedHMac()) {\n TlsExtensionsUtils.addTruncatedHMacExtension(checkServerExtensions());\n }\n\n if (this.clientECPointFormats != null && TlsECCUtils.isECCCipherSuite(this.selectedCipherSuite)) {\n /*\n * RFC 4492 5.2. A server that selects an ECC cipher suite in response to a ClientHello\n * message including a Supported Point Formats Extension appends this extension (along\n * with others) to its ServerHello message, enumerating the point formats it can parse.\n */\n this.serverECPointFormats = new short[]{ECPointFormat.uncompressed,\n ECPointFormat.ansiX962_compressed_prime, ECPointFormat.ansiX962_compressed_char2,};\n\n TlsECCUtils.addSupportedPointFormatsExtension(checkServerExtensions(), serverECPointFormats);\n }\n\n return serverExtensions;\n }", "title": "" }, { "docid": "1acc1e0c3ce626a12ba9890a30a6aaf9", "score": "0.56685853", "text": "public static List<SubServer> getSubServers() {\n List<SubServer> Server = new ArrayList<SubServer>();\n Server.addAll(SubPlugin.Servers.values());\n return Server;\n }", "title": "" }, { "docid": "d4632000bee68a49349d7060105548c4", "score": "0.563011", "text": "java.util.List<com.google.gws.plugins.searchapp.proto.VoiceSearchConfiguration.DebugServer> \n getDebugServerList();", "title": "" }, { "docid": "64ff0968b04ed9a4051ebca441bdd2b2", "score": "0.5621967", "text": "String getProtocol();", "title": "" }, { "docid": "64ff0968b04ed9a4051ebca441bdd2b2", "score": "0.5621967", "text": "String getProtocol();", "title": "" }, { "docid": "af43753fcac29401f402119485006a9c", "score": "0.5611288", "text": "public List<String> leePlugins(String name);", "title": "" }, { "docid": "20baa85561e856732db0b5d00ed0e433", "score": "0.5608119", "text": "protected void addInstancePlugins(){\n //The RPC basic command service is enabled by default\n addInstance(new RpcCommandServiceImpl());\n //Open DB service by default\n addInstance(new RpcDBServiceImpl());\n }", "title": "" }, { "docid": "f5e26f4d9bf460a5702f11af781df61e", "score": "0.5584456", "text": "@Nullable\n List<String> alpnProtocols();", "title": "" }, { "docid": "5f2f4456b13174f7c6ae60fd286889ed", "score": "0.55749553", "text": "public synchronized PacketExtension[] getExtensions()\r\n {\r\n return packetExtensions.toArray(new PacketExtension[]{});\r\n }", "title": "" }, { "docid": "86d26b765bdd8690665beaf87faeb070", "score": "0.55389214", "text": "public String[] getPluginParameters() {\n return new String[] { };\n }", "title": "" }, { "docid": "ac8d453daa7855b99683ecfabe09035c", "score": "0.55009586", "text": "int getProtocol();", "title": "" }, { "docid": "ac8d453daa7855b99683ecfabe09035c", "score": "0.55009586", "text": "int getProtocol();", "title": "" }, { "docid": "69d4365440f7d6f1f7449399dae4312e", "score": "0.5493311", "text": "String[] getServers();", "title": "" }, { "docid": "8bfcd65d51745550a097436783902232", "score": "0.54777896", "text": "public ProtocolExecutor<InetSocketAddress, ReconfigurationPacket.PacketType, String> getProtocolExecutor();", "title": "" }, { "docid": "b6674c70cf3aee917ba85a85e2dcdfba", "score": "0.5475488", "text": "java.util.List<io.grpc.grpclb.Server> \n getServersList();", "title": "" }, { "docid": "cf59b4f72fdb6d1cb9bebe496b213986", "score": "0.54634017", "text": "public PluginManager() {\n this.listPlugin = new ArrayList<String>();\n //this.listControllerPlugin = new ArrayList<ControllerInterface>();\n }", "title": "" }, { "docid": "6df29d1f1ac30296aa1456e026a43963", "score": "0.5446731", "text": "JPFInspector getServer();", "title": "" }, { "docid": "2eb0291cd08d0faf012665f826117f8d", "score": "0.5437985", "text": "java.util.List<? extends com.google.gws.plugins.searchapp.proto.VoiceSearchConfiguration.DebugServerOrBuilder> \n getDebugServerOrBuilderList();", "title": "" }, { "docid": "aa98d164901849f86ca57d6447703033", "score": "0.5437192", "text": "public Set<String> getSupportedUriSchemes() {\n Set<String> schemes = new HashSet<>();\n\n for (ConfigFileLoaderPlugin loaderPlugin : this.getLoaderPlugins()) {\n schemes.add(loaderPlugin.getUriScheme());\n }\n\n return schemes;\n }", "title": "" }, { "docid": "8c3d748b342a0e737f888eb817c205a5", "score": "0.5435301", "text": "public List<String> getServer() {\n return server;\n }", "title": "" }, { "docid": "8f773614608df3a161c4732d7958cead", "score": "0.54286313", "text": "public PluginManager createPluginManager(){\n return new PluginManager(client);\n }", "title": "" }, { "docid": "fd422aa8d6998f7f8f91c5a94de427a4", "score": "0.5421886", "text": "public com.google.protobuf.ProtocolStringList\n getToolkitsList() {\n return toolkits_;\n }", "title": "" }, { "docid": "8a0b700b42c8adb1134e29aad22175c2", "score": "0.542045", "text": "java.lang.String getProtocol();", "title": "" }, { "docid": "b9bbc5b688fb713608835c6562f53f40", "score": "0.5415343", "text": "Plugin getPlugin();", "title": "" }, { "docid": "28d4d0cd254a241dc4382aef9eca55a9", "score": "0.5408591", "text": "public String getProtocol() {\r\n return protocol;\r\n }", "title": "" }, { "docid": "2386aed5f5eca056b403c2007d1cd7ca", "score": "0.5405636", "text": "public void addServerProtocolPlugin(ServerProtocolPlugin protocolPlugin) {\n\t\t\tserverProtocolPlugins.add(protocolPlugin);\n\t\t}", "title": "" }, { "docid": "0100aa381c7d54a478c98647116764db", "score": "0.54052544", "text": "@Nullable\n List<String> sslProtocols();", "title": "" }, { "docid": "7b87ae0d91428f306becf7b9a0466d2f", "score": "0.5401531", "text": "public <T> List<T> getPluginsByType(Class<T> type);", "title": "" }, { "docid": "cb5c3530129e5b5fce011abb0d7a0f99", "score": "0.5401206", "text": "Map<String, Server> getServers();", "title": "" }, { "docid": "4812910e22dfa6e487bcce9e2cb95736", "score": "0.53950995", "text": "public synchronized static Set<Class<?>> getPluginLoads() {\n\n // Initialize cache for plugin load\n if (pluginLoads == null) {\n pluginLoads = reflections.getTypesAnnotatedWith(PluginLoad.class);\n }\n\n return pluginLoads;\n }", "title": "" }, { "docid": "1d79f2f123ce9692d23112c4aace5fb8", "score": "0.5390603", "text": "List<T> getPluginsFor(String delimiter);", "title": "" }, { "docid": "f0a708cb01e2562efdcfd2a23a4116eb", "score": "0.53823125", "text": "public String getProtocol() {\n return protocol;\n }", "title": "" }, { "docid": "f0a708cb01e2562efdcfd2a23a4116eb", "score": "0.53823125", "text": "public String getProtocol() {\n return protocol;\n }", "title": "" }, { "docid": "b6f0e26ff5e7cf474443fbfee181251a", "score": "0.5374193", "text": "@GET(\"plugins/enabled\")\n Call<EnabledPlugins> retrieveEnabledPlugins();", "title": "" }, { "docid": "b567b7009ba5deb06ae2bac6b7e1bda3", "score": "0.5363026", "text": "private String[] getProxyList() {\n\t\tif(Defaults.release) {\n\t\t\tmyLog.l(Log.INFO, \"getProxyList stub\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new String[] {\"cdev.swiftp.org\"};\n\t\t}\n\t}", "title": "" }, { "docid": "18bb37a34bcd46505e7d72815f0d4d54", "score": "0.535273", "text": "private void installPacketExtensionProviders() {\n \n try {\n Class.forName(ActivitiesExtension.class.getName());\n Class.forName(CancelInviteExtension.class.getName());\n Class.forName(InvitationOfferingExtension.class.getName());\n Class.forName(InvitationParameterExchangeExtension.class.getName());\n Class.forName(InvitationAcknowledgedExtension.class.getName());\n Class.forName(InvitationAcceptedExtension.class.getName());\n Class.forName(InvitationCompletedExtension.class.getName());\n Class.forName(CancelProjectNegotiationExtension.class.getName());\n Class.forName(FileListExtension.class.getName());\n Class.forName(KickUserExtension.class.getName());\n Class.forName(UserListExtension.class.getName());\n Class.forName(SarosLeaveExtension.class.getName());\n Class.forName(UserListRequestExtension.class.getName());\n Class.forName(UserListReceivedExtension.class.getName());\n Class.forName(PingExtension.class.getName());\n Class.forName(PongExtension.class.getName());\n \n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "0b4c9651c81d0b16bd4d7cdc9244a5bc", "score": "0.53509265", "text": "public abstract String getPluginType();", "title": "" }, { "docid": "d0d5abfbed807ee72e7865b7fbc029a4", "score": "0.53337675", "text": "public int getProtocol() {\n return protocol_;\n }", "title": "" }, { "docid": "45d0403cd49365cfcf818d3e6d4fe1bf", "score": "0.5333666", "text": "java.util.List<com.github.wenweihu86.raft.proto.RaftMessage.Server> \n getServersList();", "title": "" }, { "docid": "45d0403cd49365cfcf818d3e6d4fe1bf", "score": "0.5333666", "text": "java.util.List<com.github.wenweihu86.raft.proto.RaftMessage.Server> \n getServersList();", "title": "" }, { "docid": "45d0403cd49365cfcf818d3e6d4fe1bf", "score": "0.5333666", "text": "java.util.List<com.github.wenweihu86.raft.proto.RaftMessage.Server> \n getServersList();", "title": "" }, { "docid": "45d0403cd49365cfcf818d3e6d4fe1bf", "score": "0.5333666", "text": "java.util.List<com.github.wenweihu86.raft.proto.RaftMessage.Server> \n getServersList();", "title": "" }, { "docid": "95dd8fa5f680e685d53e7e149779b26c", "score": "0.5327961", "text": "static Class<?>[] getProtocolInterfaces(Class<?> protocol) {\n Class<?>[] interfaces = protocol.getInterfaces();\n return getSuperInterfaces(interfaces);\n }", "title": "" }, { "docid": "42b077ab1ceae1a4456e51309e331b0b", "score": "0.53152853", "text": "public static ChannelType[] getRegularServerChannelTypes() {\n return regularServerChannelTypes;\n }", "title": "" }, { "docid": "839432aaf616990e7acf04dce37ae0ff", "score": "0.5315195", "text": "public String getProtocol() {\n return this.Protocol;\n }", "title": "" }, { "docid": "62c1f28758c67fcf04ddf8436c0ed04c", "score": "0.5303009", "text": "public String getprotocol() {\n return protocol;\n }", "title": "" }, { "docid": "fa48d4c4e1a46d7d9f47dbafee9e0088", "score": "0.53012836", "text": "public int getApplicationProtocolsCount() {\n return applicationProtocols_.size();\n }", "title": "" }, { "docid": "ad25796e57ae035bc7cb6cb5f6ce077f", "score": "0.5293427", "text": "public IExtension[] getContextExtensionContibutions() {\r\n\r\n\t\t// Note: The identifier below must match the extension point ID in plugin.xml.\r\n\r\n\t\tIExtension[] extensions = null;\r\n\r\n\t\t// Note: The identifier below must match the plug-in ID in plugin.xml.\r\n\t\tIExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID,\r\n\t\t\t\tISAFExtensionConstants.CONTEXTEXTENSION_EXT_POINT_ID);\r\n\t\tif (extensionPoint != null) {\r\n\t\t\textensions = extensionPoint.getExtensions();\r\n\t\t}//if\r\n\r\n\t\treturn extensions;\r\n\t}", "title": "" }, { "docid": "36c17fadd9dc9e6a268aa92dfb2ddd9b", "score": "0.52890795", "text": "public List<String> getHandlers();", "title": "" }, { "docid": "1ab8d55ca658e1d6c74e8b558e2739d3", "score": "0.5281325", "text": "public IExtension[] getContextContibutions() {\r\n\r\n\t\t// Note: The identifier below must match the extension point ID in plugin.xml.\r\n\r\n\t\tIExtension[] extensions = null;\r\n\r\n\t\t// Note: The identifier below must match the plug-in ID in plugin.xml.\r\n\t\tIExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID,\r\n\t\t\t\tISAFExtensionConstants.CONTEXT_EXT_POINT_ID);\r\n\t\tif (extensionPoint != null) {\r\n\t\t\textensions = extensionPoint.getExtensions();\r\n\t\t}//if\r\n\r\n\t\treturn extensions;\r\n\t}", "title": "" }, { "docid": "e00e52ea48b028d124fb140a6bbff948", "score": "0.52709264", "text": "public String getProtocol() {\r\n\r\n\t\treturn (this.protocol);\r\n\r\n\t}", "title": "" }, { "docid": "7a61d7fdc81934dc971178d29373df35", "score": "0.52700526", "text": "public String getPLUGIN_TYPE() {\n return PLUGIN_TYPE;\n }", "title": "" }, { "docid": "31b74a8e1ee27552665184e8cdbf5f6e", "score": "0.5267219", "text": "public int getApplicationProtocolsCount() {\n return applicationProtocols_.size();\n }", "title": "" }, { "docid": "db28cd2c8651065f220a32a9cf7b2393", "score": "0.5263362", "text": "public static boolean pluginsOnly() {\n\treturn _pluginOnly;\n }", "title": "" }, { "docid": "2fbfb5fcbcfa71b2f1b87ea89daa09bb", "score": "0.5254644", "text": "public Protocol getProtocol() {\n \t\treturn protocol;\n \t}", "title": "" }, { "docid": "61d45e81000c612c2adf8932e34883af", "score": "0.5246994", "text": "public java.lang.String getApplicationProtocols(int index) {\n return applicationProtocols_.get(index);\n }", "title": "" }, { "docid": "5afa45a016b00b2d0c4f86835b24ca4e", "score": "0.5240733", "text": "java.util.List<? extends com.github.wenweihu86.raft.proto.RaftMessage.ServerOrBuilder> \n getServersOrBuilderList();", "title": "" }, { "docid": "5afa45a016b00b2d0c4f86835b24ca4e", "score": "0.5240733", "text": "java.util.List<? extends com.github.wenweihu86.raft.proto.RaftMessage.ServerOrBuilder> \n getServersOrBuilderList();", "title": "" }, { "docid": "5afa45a016b00b2d0c4f86835b24ca4e", "score": "0.5240733", "text": "java.util.List<? extends com.github.wenweihu86.raft.proto.RaftMessage.ServerOrBuilder> \n getServersOrBuilderList();", "title": "" } ]
5e8e1fd4ba5547ec5c0da319b9319b52
link intre controller si model care il folosim compilerbot.gif, el o vede din resources
[ { "docid": "3611fa81b2e646897c2f0a21e47aa6fc", "score": "0.52863073", "text": "@RequestMapping(value = \"/gif/{name}\") // prin {name}, noi preluam numele gif path\n // prin @PathVariable , parsam name-ul preluat mai sus\n public String gifDetails(@PathVariable String name, ModelMap modelMap){\n Gif gif = gifRepository.findByName(name); // accesam lista de gif-uri, fara a initializa ca obiect, folosind autowired\n modelMap.put(\"gif\", gif); // adaug in model, obiectul necesar\n return \"gif-details\";\n }", "title": "" } ]
[ { "docid": "4351b7a22490d554a00960e7d6d9c638", "score": "0.6003389", "text": "@RequestMapping(\"/\")\n\tpublic String index(Model model){\n\t\t/**\n\t\t * The model that you see here allows use to send content to the webpage.\n\t\t * a model map takes a key and an object, you then would access that object\n\t\t * from the html using the key that you set. ex: ${key}\n\t\t */\n\t\tmodel.addAttribute(\"images\",repository.getImages());\n\t\tmodel.addAttribute(\"action\",\"head\");\n\t\tmodel.addAttribute(\"push\",\"push it\");\n\t\t/**\n\t\t * Returns the page that you would like to show in the browser\n\t\t * you do not need the whole file path Sping will find it for you.\n\t\t */\n\t\treturn \"index\";\n\t}", "title": "" }, { "docid": "0e9cf1d30fa37907193ac270423a7f17", "score": "0.59381217", "text": "@RequestMapping(value = \"/\") // pentru link dintre root directory si metoda\n public String listGifs(ModelMap modelMap) { // metoda pentru afisarea tuturor GIF-urilor, ce handle URI-ul root\n List<Gif> allGifs = gifRepository.getAllGifs();\n modelMap.put(\"gifs\", allGifs);\n return \"home\"; // html-ul inclus\n\n }", "title": "" }, { "docid": "2caa1037badfefc8f11cfdd39ee35905", "score": "0.5895161", "text": "@Override\r\n\tpublic void crearCuerpo() {\n\t\tcuerpo = new ImageIcon(getClass().getResource(\"/img/CuerpoRey.jpg\"));\r\n\t}", "title": "" }, { "docid": "e106dd85212e2a72434f3fe9d4cfd854", "score": "0.5892377", "text": "private JLabel buildLandingImage() throws IOException {\n\tBufferedImage img = ImageIO.read(new File(\"../src/codeu/chat/client/simplegui/Controller.png\"));\n\treturn new JLabel(new ImageIcon(img));\n }", "title": "" }, { "docid": "75551236ae6f5cdab61c62e66cd08350", "score": "0.57940227", "text": "public SLOGOController getController();", "title": "" }, { "docid": "972037805c3fc0c8583c130f0971fee0", "score": "0.57472515", "text": "@Override\n\tprotected void linkModelsWithController() {\n\t\tqueryManager = new QueryManager(mainView.mainPane.progressBar);\n\t\tmainPaneController.setQueryManager(queryManager);\n\t\tsearchPaneController.setQueryManager(queryManager);\n\t\t\n\t\t// InfmaTree\n\t\ttheTree = new InfmaTree(null);\n\t\tmainPaneController.setTweetTree(theTree);\n\t\tsearchPaneController.setInfmaTree(theTree);\n\t\t\n\t\t// LiblinearClassifier\n\t\tclassifier = new LibLinearClassifier();\n\t\tmainPaneController.setClassifier(classifier);\n\t}", "title": "" }, { "docid": "9eab162aa5e51c1861e0b6ab82cef71d", "score": "0.5724768", "text": "public JF_Marinheiro() {\n this.marinheiroController = new MarinheiroBack();\n\n initComponents();\n\n }", "title": "" }, { "docid": "55ed0ac4577a035b3b23c6155f81fc16", "score": "0.57199484", "text": "public Absensi() {\n initComponents();\n this.setTitle(\"Aplikasi Absensi PDAM Garut 1.0\");\n ClassLoader cl = this.getClass().getClassLoader();\n try {\n BufferedImage image = ImageIO.read(cl.getResource(\"image/marketing 40x.png\"));\n this.setIconImage(image);\n } catch (IOException ex) {\n Logger.getLogger(Absensi.class.getName()).log(Level.SEVERE, null, ex);\n }\n loadDataKantor();\n Tabel.setModel(model);\n runClock();\n }", "title": "" }, { "docid": "6f1726f4d31c271a1d4225f2e33aa9c6", "score": "0.57033885", "text": "public DivisaController() {\n divisaModelo = new DivisaModelo();\n }", "title": "" }, { "docid": "d6ed4da0731c428e1affc7e0b2b44f19", "score": "0.57016164", "text": "public void setController(SLOGOController controller);", "title": "" }, { "docid": "723815a2436fe4053dc2f70a3142f0d0", "score": "0.5697029", "text": "public interface ControllerPartidasPopulares {\n void inicializarVista();\n\n}", "title": "" }, { "docid": "39dfa5b1e7a50b47ef7e30a4672b8892", "score": "0.5691302", "text": "public VentanaConsumicion() {\n initComponents();\n ImageIcon icon = new ImageIcon(\"src/imagenes/fondoCelesteFinoFlecha.jpg\");\n this.lblfondoCeleste.setIcon(icon);\n modeloLista = new DefaultListModel();\n }", "title": "" }, { "docid": "bf7ce9cf404922237c45addbec6a989d", "score": "0.5663043", "text": "public ActualiserMaterielFenetre(Ecole model, Controller controller, Local local) {\n\t\tsuper(model, controller);\n\t\tj9 = new JFrame();\n\t\tj9.setTitle(\"Actualiser Matériel\");\n\t\tj9.setVisible(true);\n\t\tj9.setBounds(100, 100, 266, 233);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tj9.setContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 260, 205);\n\t\tcontentPane.add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t// creation du label neuf\n\t\tJLabel lblNeuf = new JLabel(\"Neuf\");\n\t\tlblNeuf.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\tlblNeuf.setBounds(19, 40, 56, 16);\n\t\tpanel.add(lblNeuf);\n\t\t\n\t\t// creation du label bon\n\t\tJLabel lblBon = new JLabel(\"Bon\");\n\t\tlblBon.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\tlblBon.setBounds(19, 69, 56, 16);\n\t\tpanel.add(lblBon);\n\t\t\n\t\t// creation du label usé\n\t\tJLabel lblUs = new JLabel(\"Usé\");\n\t\tlblUs.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\tlblUs.setBounds(19, 105, 56, 16);\n\t\tpanel.add(lblUs);\n\t\t\n\t\t// creation du label critique\n\t\tJLabel lblCritique = new JLabel(\"Critique\");\n\t\tlblCritique.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\tlblCritique.setBounds(19, 137, 56, 16);\n\t\tpanel.add(lblCritique);\n\t\t\n\t\t\n\t\t// creation du label Chaises\n\t\tJLabel lblChaises = new JLabel(\"Chaises\");\n\t\tlblChaises.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\t\tlblChaises.setBounds(86, 11, 56, 16);\n\t\tpanel.add(lblChaises);\n\t\t\n\t\t// creation du label Tables\n\t\tJLabel lblTables = new JLabel(\"Tables\");\n\t\tlblTables.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\t\tlblTables.setBounds(174, 11, 56, 16);\n\t\tpanel.add(lblTables);\n\t\t\n\t\t// creation du champ de recuperation du nombre de chaises neuves\n\t\ttxtChaiseNeuf = new JTextField();\n\t\ttxtChaiseNeuf.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtChaiseNeuf.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtChaiseNeuf.setBounds(86, 40, 47, 22);\n\t\tpanel.add(txtChaiseNeuf);\n\t\ttxtChaiseNeuf.setColumns(10);\n\t\ttxtChaiseNeuf.setText(String.valueOf(local.getNbChaises().getNeuf()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de tables neuves\n\t\ttxtTableNeuf = new JTextField();\n\t\ttxtTableNeuf.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtTableNeuf.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtTableNeuf.setBounds(173, 40, 47, 22);\n\t\tpanel.add(txtTableNeuf);\n\t\ttxtTableNeuf.setColumns(10);\n\t\ttxtTableNeuf.setText(String.valueOf(local.getNbTables().getNeuf()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de chaise en bon état\n\t\ttxtChaiseBon = new JTextField();\n\t\ttxtChaiseBon.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtChaiseBon.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtChaiseBon.setColumns(10);\n\t\ttxtChaiseBon.setBounds(86, 73, 47, 22);\n\t\tpanel.add(txtChaiseBon);\n\t\ttxtChaiseBon.setText(String.valueOf(local.getNbChaises().getBon()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de chaises usées\n\t\ttxtChaiseUse = new JTextField();\n\t\ttxtChaiseUse.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtChaiseUse.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtChaiseUse.setColumns(10);\n\t\ttxtChaiseUse.setBounds(86, 105, 47, 22);\n\t\tpanel.add(txtChaiseUse);\n\t\ttxtChaiseUse.setText(String.valueOf(local.getNbChaises().getUse()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de chaises critiques\n\t\ttxtChaiseCritique = new JTextField();\n\t\ttxtChaiseCritique.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtChaiseCritique.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtChaiseCritique.setColumns(10);\n\t\ttxtChaiseCritique.setBounds(86, 134, 47, 22);\n\t\tpanel.add(txtChaiseCritique);\n\t\ttxtChaiseCritique.setText(String.valueOf(local.getNbChaises().getCritique()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de tables en bon état\n\t\ttxtTableBon = new JTextField();\n\t\ttxtTableBon.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtTableBon.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtTableBon.setColumns(10);\n\t\ttxtTableBon.setBounds(174, 73, 47, 22);\n\t\tpanel.add(txtTableBon);\n\t\ttxtTableBon.setText(String.valueOf(local.getNbTables().getBon()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de tables usées\n\t\ttxtTableUse = new JTextField();\n\t\ttxtTableUse.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtTableUse.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtTableUse.setColumns(10);\n\t\ttxtTableUse.setBounds(174, 105, 47, 22);\n\t\tpanel.add(txtTableUse);\n\t\ttxtTableUse.setText(String.valueOf(local.getNbTables().getUse()));\n\t\t\n\t\t// creation du champ de recuperation du nombre de tables critiques\n\t\ttxtTableCritique = new JTextField();\n\t\ttxtTableCritique.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\ttxtTableCritique.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtTableCritique.setColumns(10);\n\t\ttxtTableCritique.setBounds(174, 134, 47, 22);\n\t\tpanel.add(txtTableCritique);\n\t\ttxtTableCritique.setText(String.valueOf(local.getNbTables().getCritique()));\n\n\t\t// creation du bouton de validation\n\t\tJButton btnValider = new JButton(\"Valider\");\n\t\tbtnValider.setBounds(174, 176, 87, 29);\n\t\tpanel.add(btnValider);\n\t\tbtnValider.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint[] chaises = new int[4];\n\t\t\t\tint[] tables = new int[4];\n\t\t\t\ttry {\n\n\t\t\t\t\tchaises[0] = Integer.parseInt(txtChaiseNeuf.getText());\n\t\t\t\t\tchaises[1] = Integer.parseInt(txtChaiseBon.getText());\n\t\t\t\t\tchaises[2] = Integer.parseInt(txtChaiseUse.getText());\n\t\t\t\t\tchaises[3] = Integer.parseInt(txtChaiseCritique.getText());\n\t\t\t\t\ttables[0] = Integer.parseInt(txtTableNeuf.getText());\n\t\t\t\t\ttables[1] = Integer.parseInt(txtTableBon.getText());\n\t\t\t\t\ttables[2] = Integer.parseInt(txtTableUse.getText());\n\t\t\t\t\ttables[3] = Integer.parseInt(txtTableCritique.getText());\n\n\t\t\t\t\tlocal.majMateriels(chaises, tables);\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tj9.revalidate();\n\t\t\t\tj9.dispose();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "40f364c2265bbcb05c6146ca10b03c06", "score": "0.5639792", "text": "public ControllerPostagem() {\r\n urlsFoto = new LinkedList();\r\n urlsVideo = new LinkedList();\r\n }", "title": "" }, { "docid": "7a6113b2753b45a3665c6896da14633b", "score": "0.56272143", "text": "void neuAnmeldung() {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"../resources/anmeldung.fxml\"));\n Parent root = loader.load();\n anmeldungsCtrl = loader.getController();\n anmeldungsCtrl.setMainApp(this);\n stageRef.setTitle(\"Benutzerverwaltung: Anmeldung\");\n stageRef.setScene(new Scene(root));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5c92acc64cd60fe59ae6baec12079d75", "score": "0.5619106", "text": "public AktuelleFilmeController() {\n }", "title": "" }, { "docid": "9f4995f13eb71821ba92fc4d269c9f1e", "score": "0.55844206", "text": "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo();\n\t\tordenamientos = new Ordenamientos();\n\t}", "title": "" }, { "docid": "fc13c9a7820d1dad3f975e662bd99760", "score": "0.55786836", "text": "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo();\n\t}", "title": "" }, { "docid": "fbb5d2d5f29814c3c91dc56267f29da1", "score": "0.5578302", "text": "@GetMapping(\"/index\")\r\n\tpublic String mostrarIndex(Model model) {\r\n\t\t// Ejercicio: Implementar metodo\r\n\t\tList<Banner> listaBanner = serviceBanner.buscarTodos();\r\n\r\n\t\tmodel.addAttribute(\"banners\", listaBanner);\r\n\r\n\t\t// Ejercicio: Crear vista listBanners.jsp. Utilizar el archivo listBanners.html\r\n\t\t// de la plantilla\r\n\t\treturn \"banners/listBanners\";\r\n\t}", "title": "" }, { "docid": "adb9d85b7fb36f198416b199584d3195", "score": "0.5575208", "text": "static MovimentiContoCorrenteController mettiInEsercizi() {\r\n\t\t// crea un oggetto ServiceImpl\r\n\t\tMovimentiContoCorrenteServiceImpl serviceImpl = new MovimentiContoCorrenteServiceImpl();\r\n\t\t// crea un oggetto Controller\r\n\t\tMovimentiContoCorrenteController controller = new MovimentiContoCorrenteController();\r\n\t\t// risolve la dipendenza <<use>> (del Controller verso il Service)\r\n\t\tcontroller.setMovimentiContoCorrenteService(serviceImpl);\r\n\t\t\t\t\r\n\t\t// crea un oggetto FactoryImpl\r\n\t\tMovimentoContoCorrenteFactoryImpl movimentoCcFactoryImpl = new MovimentoContoCorrenteFactoryImpl();\r\n\t\t// risolve la dipendenza \r\n\t\tserviceImpl.setMovimentoCcFactory(movimentoCcFactoryImpl);\r\n\t\t\t\t\r\n\t\t// mette in esercizio tutti i component (in realtà ci serve solo il Controller)\r\n\t\treturn controller;\r\n\t}", "title": "" }, { "docid": "59da07409d8c8c9192bb454feeee2f2c", "score": "0.5569001", "text": "public ReceitaView() {\n setTitle(\"Receituário Médico | Saúde & Cia\");\n setIcon();\n initComponents();\n }", "title": "" }, { "docid": "6d92a016edc1ad49d85d9108503b8420", "score": "0.5550268", "text": "public interface IngestionControlPanelResources extends ClientBundle {\n /**\n * @return resource to the tel logo\n */\n ImageResource tellogo();\n}", "title": "" }, { "docid": "28410db3e69007ac02487c99a456fb38", "score": "0.5543889", "text": "public interface SplashView extends IView {\n /**\n * 加载广告图 gif\n * @param splashAdvInfo 图片信息\n */\n void loadSplashGif(BannerBean splashAdvInfo);\n\n /**\n * 加载广告图\n * @param splashAdvInfo 图片信息\n */\n void loadSplashImg(BannerBean splashAdvInfo);\n\n /**\n * 设置跳过文本的显示\n * @param visible 是否显示\n */\n void setSkipView(int visible);\n}", "title": "" }, { "docid": "73bd9fba823a31299319515e1d76ecc6", "score": "0.5537096", "text": "public ViewPrincipal() {\n initComponents();\n \n ImageIcon icone = new ImageIcon(getClass().getResource(\"/images/icone.png\"));\n this.setIconImage(icone.getImage());\n \n }", "title": "" }, { "docid": "af51413c0e84aa80dbf4a9c916183142", "score": "0.55296385", "text": "public Controller ()\n\t{\n\t\tview = new MVCView();\n\t\tmodelo = new MVCModelo();\n\t}", "title": "" }, { "docid": "af51413c0e84aa80dbf4a9c916183142", "score": "0.55296385", "text": "public Controller ()\n\t{\n\t\tview = new MVCView();\n\t\tmodelo = new MVCModelo();\n\t}", "title": "" }, { "docid": "ca60949578cadb09abd018b68a6c1ca1", "score": "0.5501371", "text": "public Controller() {\n\n\t\tmodel = new BallModel(new IModel2ViewAdapter() {\n\t\t\t@Override\n\t\t\tpublic void update() {\n\t\t\t\tview.update();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Component getComponent() {\n\t\t\t\treturn view.getCenterPanel();\n\t\t\t}\n\n\t\t});\n\n\t\tview = new BallGUI(new IView2ModelAdapter() {\n\t\t\t@Override\n\t\t\tpublic void update(Graphics g) {\n\t\t\t\tmodel.update(g);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void clearAll() {\n\t\t\t\tmodel.clearAll();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic IStrategyFac addStrategyFac(String text) {\n\t\t\t\treturn model.addStrategyFac(text);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic IStrategyFac combineFac(IStrategyFac f1, IStrategyFac f2) {\n\t\t\t\treturn model.combineStrategyFac(f1, f2);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void switchStrategy(IStrategyFac fac) {\n\t\t\t\tmodel.switchAll(fac);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic IPaintFac addPaintFac(String text) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn model.addPaintFac(text);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void loadBall(IStrategyFac fac, IPaintFac paint_fac, boolean switchable) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmodel.addABall(fac, paint_fac, switchable);\n\t\t\t}\n\n\t\t});\n\n\t}", "title": "" }, { "docid": "7b281a16805b4917fe73b61e84a88beb", "score": "0.5495833", "text": "public void initController()\r\n\t{\r\n\t\tthis.view.getCompileAndDeployButton().addActionListener(this);\r\n\t\tthis.view.getDeployConfigFilesButton().addActionListener(this);\r\n\t}", "title": "" }, { "docid": "83d1dda6cd80d3a4ce4664bd2e821526", "score": "0.5491454", "text": "public interface ControllerApuesta {\n void inicializarVista();\n\n void botonEnviarPulsado();\n}", "title": "" }, { "docid": "59273c184c211afa60c7f3ffb1dd2a26", "score": "0.547478", "text": "public FrmDadosCliente(ItelaVenda itelaVenda) {\n initComponents();\n this.iTelaVenda = itelaVenda;\n URL url = this.getClass().getResource(\"/imagens/logo_mini.png\");\n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);\n this.setIconImage(imagemTitulo);\n this.setLocationRelativeTo(null);\n try{\n UIManager.setLookAndFeel(\"com.birosoft.liquid.LiquidLookAndFeel\");\n }catch (Exception e){\n }\n this.setVisible(true);\n }", "title": "" }, { "docid": "7d16c244d54913a49ac75adc1e9ea8c4", "score": "0.54743135", "text": "public void CargarFondo(int escenario){\n \n ImageLoader loader = ImageLoader.getInstance();\n \n ImageIcon icon= loader.getMundo(0+escenario);\n \n ImageIcon icono2= loader.getImage(2);\n \n initComponents();\n \n cargarPlataforma();\n \n \n Enemigos obj= new Enemigos(); \n background = new JLabel(icon);\n \n background.setBounds(0, 0, icon.getIconWidth(), icon.getIconHeight());\n MainFrame.this.getContentPane().add(background);\n \n \n \n \n }", "title": "" }, { "docid": "1c810def4ef3f765b0bfe8de9f054393", "score": "0.54599017", "text": "public JIFLlegendasAtendimentos() {\n initComponents();\n setIconImage(getToolkit().createImage(getClass().getResource(\"/br/bcn/admclin/imagens/imagemIconePrograma.png\")));\n }", "title": "" }, { "docid": "a0da0a0e3e6356209f103a6eef2a06eb", "score": "0.5443606", "text": "private void pripremiFormu() {\n URL slika = ClassLoader.getSystemResource(\"image/ples2.png\");\n ImageIcon ikonica = new ImageIcon(slika);\n setIconImage(ikonica.getImage());\n }", "title": "" }, { "docid": "4bc529686e18518927a640ce97691e20", "score": "0.54372084", "text": "public FuncionarioView() {\n initComponents();\n IconeSistema icone = new IconeSistema();\n icone.InserirIcone(this);\n setLocationRelativeTo(null);\n controller.bloqueioInicial();\n controller.carregarComboEstados();\n controller.carregarTabela();\n }", "title": "" }, { "docid": "d1a997076afe44b37c5f85ff9ae9b6a7", "score": "0.54361314", "text": "public BukuKasirView() {\n tableModel = new TableBukuModel();\n\n model = new BukuModel();\n model.setListener(this);\n\n controller = new MengelolaBuku();\n controller.setModel(model);\n\n initComponents();\n setTitle(\"Data Buku - Admin Faraz Information System (FISt)\");\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setExtendedState(MAXIMIZED_BOTH);\n ImageIcon img = new ImageIcon(\"src/faraz/view/images/library.png\");\n setIconImage(img.getImage());\n\n tabelBuku.getSelectionModel().addListSelectionListener(this);\n tabelBuku.setModel(tableModel);\n tabelBuku.getTableHeader().setReorderingAllowed(false);\n tabelBuku.getTableHeader().setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n tabelBuku.getTableHeader().setBackground(Color.CYAN);\n }", "title": "" }, { "docid": "ecacfb25c760d1f218c94353119bfba3", "score": "0.5432933", "text": "public GUIController() {\r\n\t\tthis.model = new GUIModel();\r\n\t\tthis.worldModel = WorldModelImpl.getInstance();\r\n\t}", "title": "" }, { "docid": "5aff18f48b7f057b4574f033a565c951", "score": "0.5418038", "text": "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n\n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n\n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n\n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n }", "title": "" }, { "docid": "7475d9f71112a123990ec442b1ae2032", "score": "0.5409395", "text": "public CompraView() {\n compra = new Compra();\n cliente = new Cliente();\n fidelidade = new Fidelidade();\n artigo = new Artigo();\n \n initComponents();\n }", "title": "" }, { "docid": "f1640de8783e6fc5947dc2a0e8c22573", "score": "0.53851", "text": "public addRam() {\n initComponents();\n setLocationRelativeTo(null);\n final ImageIcon title = new ImageIcon(\".\\\\images\\\\icons\\\\addComponent.png\");\n final ImageIcon logoSmall = new ImageIcon(\".\\\\images\\\\icons\\\\cpblogoSmallFull.png\");\n final ImageIcon background = new ImageIcon(\".\\\\images\\\\backgrounds\\\\addComponent.jpg\");\n jLblLogo.setIcon(logoSmall);\n jLblTitle.setIcon(title);\n jLblBackground.setIcon(background);\n }", "title": "" }, { "docid": "177122236a20b4f5c140e586148886ba", "score": "0.5382667", "text": "public Controller(GUI gui, Model model){\r\n\t\tthis.gui = gui;\r\n\t\tthis.model = model;\r\n\t\t\r\n\t\t//add listeners\r\n\t\tmodel.deck.addListeners(this);\r\n\t\tgui.btnEnd.addMouseListener(this);\r\n\t\t\r\n\t\tmodel.player1.drawHand(model.deck.getCards());\r\n\t\tmodel.player2.drawHand(model.deck.getCards());\t\r\n\t\t\r\n\t\tgui.infoText.setText(model.assignAttackerDefender());\t//assign attacker and defender\r\n\t\t\r\n\t\tgui.showCards(model.player1.getCards(), model.player2.getCards(), model.table.getCards(), model.deck.getCards());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9b2f5224bcfb130738355f9b2e7a2187", "score": "0.5372691", "text": "public Controlador() {\n this.juego = new Juego();\n this.vista = new Vista();\n this.about = new About();\n this.vista.setVisible(true);\n HandlerAceptar ha = new HandlerAceptar();\n HandlerCampoIngresar hci = new HandlerCampoIngresar();\n HandlerIniciar hi = new HandlerIniciar();\n HandlerAboutOk hbo = new HandlerAboutOk();\n HandlerAbout hab = new HandlerAbout();\n HandlerMusica hm = new HandlerMusica();\n this.vista.setHandlers(ha, hci, hi, hab, hm);\n this.about.setHandlers(hbo);\n }", "title": "" }, { "docid": "a655f8a314c3fe6f17599542cf810928", "score": "0.53724444", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n cadastroController.setInterface(this);\n }", "title": "" }, { "docid": "b8f6415b5db108d91b2998fabb5826e5", "score": "0.53678656", "text": "public frmGenerador() {\n this.listTablas = new ArrayList();\n this.listClases = new ArrayList();\n this.objConexion = new dacConexion();\n this.clsGenerador = new brcGenerador();\n initComponents();\n ImageIcon img = new ImageIcon(getClass().getResource(\"/IMG/blue.png\"));\n this.setIconImage(img.getImage());\n this.setSize(new java.awt.Dimension(1024, 550));\n this.validate();\n }", "title": "" }, { "docid": "64519d8d76c3c916ecb7dc560e202abd", "score": "0.53673583", "text": "public void gerarInterfaceWeb() {\n\t\tthis.script += \"faces-setup --facesVersion 2.2\\n\";\n\t\tthis.script += \"scaffold-setup\\n\";\n\t\tthis.script += \"scaffold-generate --targets org.\" + this.nomeProjeto\n\t\t\t\t+ \".model.*\\n\\n\";\n\n\t}", "title": "" }, { "docid": "b64d856be43c73b4e816f93c3046036d", "score": "0.5351051", "text": "public void launchImage(Controller controller, String path, JPanel pannel, LeapListener l) {\n l.setMode(1);\n controller.enableGesture(Gesture.Type.TYPE_SWIPE);\n controller.enableGesture(Gesture.Type.TYPE_KEY_TAP);\n \n \n interface3D inter = new interface3D();\n l.setSimple(inter.getSimple());\n inter.createBranch(path);\n inter.addBranch();\n panel = inter.getPanel();\n l.setFrame(this);\n setSize(1024,720);\n \n add(panel);\n \n setVisible(true);\n //new PPE();\n \n }", "title": "" }, { "docid": "bac3979c36af1fb8bfa832fd68d53e41", "score": "0.53472877", "text": "public pendaftaran() {\n initComponents();\n cbt = new ControllerPendaftaran(this);\n }", "title": "" }, { "docid": "65d4a9102df97a9ac59bc83304d6cfd7", "score": "0.53456986", "text": "public TableroJuego() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n juegoNuevo();\n }", "title": "" }, { "docid": "42b09a4f3e4384857a7fbf9401d59b0b", "score": "0.5343006", "text": "public MenuEscenarioUI(CtrlView pCtrlView) {\n iCtrlView = pCtrlView;\n this.setTitle(\"Othello App\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setLocationRelativeTo(null);\n initComponents();\n try {\n Image image = ImageIO.read(new File(\"src/main/java/resources/OthelloWindowIcon.png\"));\n this.setIconImage(image);\n \n } catch (Exception ex) {\n }\n }", "title": "" }, { "docid": "701079cbdbf920fd720203e45561f65d", "score": "0.53350085", "text": "public FClient() {\n initComponents();\n setLocationRelativeTo(null);\n //popravi\n this.setIconImage(new ImageIcon(\"src\\\\resources\\\\BG_Sound.jpg\").getImage());\n }", "title": "" }, { "docid": "61a2a6ef665bf9b440e41c36cd8d63e5", "score": "0.53264284", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmModel.loadImage();\n\t\t\t}", "title": "" }, { "docid": "b774adaa59d44af03c344be44903dbfa", "score": "0.5319036", "text": "private void iniciarControladores() {\n\t\tRepositorioAdministrador ra = new RepositorioAdministrador();\n\t\tadministrador = new ControllerAdministrador(ra);\n\n\t\tRepositorioPreferencia rp = new RepositorioPreferencia();\n\t\tpreferencia = new ControllerPreferencia(rp);\n\t\t\n\t\tRepositorioCaixa rc = new RepositorioCaixa();\n\t\tcaixa = new ControllerCaixa(rc);\n\t\n\t\tRepositorioChamada rh = new RepositorioChamada();\n\t\tchamada = new ControllerChamada(rh);\n\t}", "title": "" }, { "docid": "5d247aa96a69d0828efaf5ddec18c4e0", "score": "0.531348", "text": "public MinicardController(GameController controller)\n {\n FXMLLoader minicardLoader = new FXMLLoader(AvatarDuel.class.getResource(\"gui/minicard.fxml\"));\n minicardLoader.setRoot(this);\n minicardLoader.setController(this);\n try {\n minicardLoader.load();\n this.gameController = controller;\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "1f1effc6a15351eed66535644fb74d00", "score": "0.53044885", "text": "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n PublicRoomController a = new PublicRoomController();\r\n mylabel1.setText(a.allacc);\r\n }", "title": "" }, { "docid": "28a43721ad182fb88b821039b45a5646", "score": "0.53043544", "text": "@Source(\"TopePG.jpg\")\n ImageResource name3Logo();", "title": "" }, { "docid": "71bfaff897a3912ba834faca6a20424b", "score": "0.529616", "text": "private void restaura() {\n btnCel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel1.setActionCommand(\"\");\n btnCel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel2.setActionCommand(\"\");\n btnCel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel3.setActionCommand(\"\");\n btnCel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel4.setActionCommand(\"\");\n btnCel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel5.setActionCommand(\"\");\n btnCel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel6.setActionCommand(\"\");\n btnCel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel7.setActionCommand(\"\");\n btnCel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel8.setActionCommand(\"\");\n btnCel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/calarius.jpg\")));\n btnCel9.setActionCommand(\"\");\n }", "title": "" }, { "docid": "038e697d966ddb20fb5595e0eee09c0b", "score": "0.52898", "text": "public OpretMedlem() {\n initComponents();\n DataAccessorFile dao = new DataAccessorFile();\n BetalingCalculator bc = new BetalingCalculator();\n c = new Controller(dao, bc);\n c.getMedlemmer();\n this.setTitle(\"Opret Medlem\");\n }", "title": "" }, { "docid": "703061c0932d51863697c9154c813ba3", "score": "0.5287394", "text": "private void createUIComponents() {\n escudoLabel = new JLabel(new ImageIcon(\"escudoTxiki.gif\"));\r\n\r\n }", "title": "" }, { "docid": "ff46fc0caf618b3e01b41c2a47bc5875", "score": "0.52730864", "text": "public ManagerAccessView() {\n ImageIcon img=new ImageIcon(\"src/images/parking1.gif\"); \n setIconImage(img.getImage()); \n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);\n }", "title": "" }, { "docid": "27e899b5e6cb9e20e100cdb36cad6b30", "score": "0.52677876", "text": "public Controller(){\r\n\t\tthis.logicModel=new Game();\r\n\r\n\t}", "title": "" }, { "docid": "4408b0823fb8945db73330c7a88f86d2", "score": "0.5266413", "text": "public CarritoController() {\r\n listaProductos = new ArrayList();\r\n }", "title": "" }, { "docid": "d18b5b0023fe6a5e7541c879c7640bbe", "score": "0.5264371", "text": "public interfaz() {\n Image icon = new ImageIcon(getClass().getResource(\"/images/logo.png\")).getImage();\nsetIconImage(icon);\n initComponents();\n \n }", "title": "" }, { "docid": "9a5d56f49d322403c881fb70995afa86", "score": "0.5258844", "text": "@RequestMapping(value=\"/menuResto/{nomR}\", method = RequestMethod.GET)\n public String pageMenu(@PathVariable(name = \"nomR\") String nomR, Model model) {\n\n Restaurant restaurant = restaurantRepository.findByNomR(nomR);\n restaurant.getPlat();\n\n List<PlatDto> dtos = new ArrayList<PlatDto>();\n\n for (Plat plats : restaurant.getPlat()) {\n PlatDto platDto = new PlatDto();\n platDto.setNomP(plats.getNomP());\n platDto.setDescription(plats.getDescription());\n platDto.setImage(plats.getPhotosImagePath());\n platDto.setPrix(plats.getPrix());\n platDto.setRestaurants(plats.getRestaurants());\n System.out.println(\"les images de mes restos sont : \" + plats.getPhotosImagePath());\n\n dtos.add(platDto);\n }\n //enregistrement dans le model\n model.addAttribute(\"listPlat\", dtos);\n model.addAttribute(\"restaurant\", restaurant);\n return \"menu\";\n }", "title": "" }, { "docid": "c71b5242179e5a3d175d0169f0ee868e", "score": "0.5249013", "text": "public GUI() {\n initComponents();\n\n c = new Controller();\n }", "title": "" }, { "docid": "5b1aceb229df5d73588598407b7b926b", "score": "0.5240994", "text": "public TelaSimulaCadastro() {\n initComponents();\n\n ImageIcon imageIcon = new ImageIcon(this.getClass().getResource(\"/imagens/semImagem.gif\"));\n Image image = imageIcon.getImage();\n Image newimg = image.getScaledInstance(120, 120, java.awt.Image.SCALE_SMOOTH);\n\n ImageIcon icon = new ImageIcon(newimg);\n lbFoto.setIcon(icon);\n }", "title": "" }, { "docid": "6eda966d48d4592c9e8511ac04a1b2ef", "score": "0.52366525", "text": "@GetMapping\n public String ex(Model model) {\n model.addAttribute(\"url\", giphy());\n\n return \"exchange\";\n }", "title": "" }, { "docid": "65ce1d8cecd3456a280fa11a45a0d291", "score": "0.5228058", "text": "private void showCanvasAndStuff() {\r\n try {\r\n\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(MainController.class.getResource(\"view/CanvasAndStuff.fxml\"));\r\n BorderPane canvasAndStuff = (BorderPane) loader.load();\r\n\r\n rootLayout.setCenter(canvasAndStuff);\r\n\r\n // Give the controllerView access to the main app.\r\n CanvasAndStuffController canvasController = loader.getController();\r\n canvasController.setMainController(this);\r\n canvasController.initialize();\r\n\r\n // on ajoute la vue comme listener sur le modele\r\n \t\tmodel.addStateListener(canvasController);\r\n\r\n\r\n } catch (IOException e) {\r\n \tnotifyHandleException(\r\n \t\t\te,\r\n \t\t\t\"Error\",\r\n \t\t\t\"IOException occured in showCanvasAndStuff\",\r\n \t\t\t\"\\\"view/CanvasAndStuff.fxml\\\" probably could not be read\",\r\n \t\t\ttrue);\r\n //e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "eed1a9f1893ffd08322c6624cf173c2e", "score": "0.52249444", "text": "@RequestMapping(\"/favorites\")\n public String gifFavorites(ModelMap modelMap){\n // Według schematu:\n List<Gif> favoriteGifs = gifRepository.getFavoritesGifs();\n // Analogicznie: 1. Pobieramy listę gifów (tylko ulubionych)\n // 2. Przekazywanie gifów do widoku\n modelMap.put(\"gifs\", favoriteGifs);\n // Informacja: widok nazywa sie favourite.html\n\n\n return \"favorites\";\n\n }", "title": "" }, { "docid": "fcd370a8ba07a92e2b7ef56a186c5629", "score": "0.5223088", "text": "public CTHoaDon() {\n ImageIcon img = new ImageIcon(\"src//Image//iced-tea.png\");\n this.setIconImage(img.getImage());\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n load();\n setLocationRelativeTo(this);\n }", "title": "" }, { "docid": "963c43b2da7f37e6a954158f610c2e7e", "score": "0.52135646", "text": "public void btnThemHoaDonMoi() {\n this.qlhdView.getBtnThemHD().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n QuanLyHoaDonModel qlhdModel = new QuanLyHoaDonModel();\n ThemHoaDonView thdView = new ThemHoaDonView();\n qlhdModel.layNhanVienPhuTrachTuFormDangNhap(nvpt);\n ThemHoaDonController thdController = new ThemHoaDonController(qlhdModel, thdView);\n thdView.setLocationRelativeTo(null);\n thdView.setVisible(true);\n\n thoatFormQuanLyHoaDon();\n } catch (Exception ex) {\n Logger.getLogger(QuanLyHoaDonController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n });\n }", "title": "" }, { "docid": "f0a93b5da0dd540cdc20114e03758d9e", "score": "0.5202978", "text": "void init(DomeController controller);", "title": "" }, { "docid": "f4584d31b29462706311d7acf3af5d4d", "score": "0.51898754", "text": "public Rostislav() {\t\n\t\t\tURL fich = getClass().getClassLoader().getResource(\"Rostislav.png\");\n\t\t\tif (fich == null) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\t\"Fichier d'image introuvable!\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\timg = ImageIO.read(fich);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t}\n\n}", "title": "" }, { "docid": "2a611e2f060cfefc6f75c10f510b5fc6", "score": "0.5181069", "text": "public MainMenuGUI(MainMenuModel aModel) \n {\n super();\n this.model = aModel;\n this.model.setView(this);\n this.drawMainMenu();\n this.registerControllers();\n }", "title": "" }, { "docid": "705267d3b3406ff905c64d226aa2a8c0", "score": "0.5178262", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Main\");\n\t\tframe.setBounds(0, 0, 500, 509);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tJButton btnEjecutarTkrun = new JButton(\"Ejecutar giis.demo.tkrun\");\n\t\tbtnEjecutarTkrun.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCarrerasController controller=new CarrerasController(new CarrerasModel(), new CarrerasView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t\n\t\tframe.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEjecutarTkrun);\n\n\t\tJButton btnEjecutarNuevoSocio = new JButton(\"Nuevo Socio\");\n\t\tbtnEjecutarNuevoSocio.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tNuevoSocioControlador controller=new NuevoSocioControlador(new NuevoSocioModelo(), new SocioVista());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEjecutarNuevoSocio);\n\t\t\n\t\tJButton btnEjecutarNuevoTecnico = new JButton(\"Nuevo Tecnico\");\n\t\tbtnEjecutarNuevoTecnico.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tNuevoTecnicoControlador controller=new NuevoTecnicoControlador(new NuevoTecnicoModel(), new nuevoTecnicoVista());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEjecutarNuevoTecnico);\n\t\t\n\t\tJButton btnEjecutarNuevoJuez = new JButton(\"Nuevo Juez\");\n\t\tbtnEjecutarNuevoJuez.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tNuevoJuezControlador controller=new NuevoJuezControlador(new NuevoJuezModel(), new nuevoJuezVista());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEjecutarNuevoJuez);\n\n\t\tJButton btnEjecutarPagarLicencia = new JButton(\"PagarLicencia\");\n\t\tbtnEjecutarPagarLicencia.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPagarLicenciaControlador controller=new PagarLicenciaControlador(new PagarLicenciaModelo(), new PagarLicenciaVista());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEjecutarPagarLicencia);\n\t\t\n\t\tJButton btnRealizarReserva = new JButton(\"Realizar reserva\");\n\t\tbtnRealizarReserva.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tRealizarReservaController controller=new RealizarReservaController(new RealizarReservaModel(), new RealizarReservaView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnRealizarReserva);\n\n\t\tJButton btnRenovarLicencia = new JButton(\"Renovar licencia\");\n\t\tbtnRenovarLicencia.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tRenovarLicenciaController controller=new RenovarLicenciaController(new RenovarLicenciaModel(), new RenovarLicenciaView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnRenovarLicencia);\n\t\t\n\t\tJButton btnReciboCuota = new JButton(\"Recibo Cuota\");\n\t\tbtnReciboCuota.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tReciboCuotaController controller=new ReciboCuotaController(new ReciboCuotaModel(), new ReciboCuotaView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnReciboCuota);\n\t\t\n\t\tJButton btncerrarLotes = new JButton(\"Cerrar Lotes\");\n\t\tbtncerrarLotes.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcerrarLotesController controller=new cerrarLotesController(new ReciboCuotaModel(), new generarLotesView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btncerrarLotes);\n\n\t\tJButton btnValidarPago = new JButton(\"Validar Pagos\");\n\t\tbtnValidarPago.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tValidarPagoController controller=new ValidarPagoController(new ValidarPagoModel(), new ValidarPagoView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnValidarPago);\n\t\t\n\t\tJButton btnReservaBurbuja = new JButton(\"Realizar reserva burbuja\");\n\t\tbtnReservaBurbuja.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tReservaBurbujaController controller=new ReservaBurbujaController(new ReservaBurbujaModel(), new ReservaBurbujaView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\t//frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnReservaBurbuja);\n\t\t\n\t\tJButton btnEditarInstalacion = new JButton(\"Editar instalaciones\");\n\t\tbtnEditarInstalacion.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEditarInstalacionesController controller=new EditarInstalacionesController(new EditarInstalacionesModel(), new EditarInstalacionesView());\n\t\t\t\tcontroller.initController();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n\t\tframe.getContentPane().add(btnEditarInstalacion);\n\t\t\n\t\tJButton btnInicializarBaseDeDatos = new JButton(\"Inicializar Base de Datos en Blanco\");\n\t\tbtnInicializarBaseDeDatos.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDatabase db=new Database();\n\t\t\t\tdb.createDatabase(false);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnInicializarBaseDeDatos);\n\t\t\t\n\t\tJButton btnCargarDatosIniciales = new JButton(\"Cargar Datos Iniciales para Pruebas\");\n\t\tbtnCargarDatosIniciales.addActionListener(new ActionListener() { //NOSONAR codigo autogenerado\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDatabase db=new Database();\n\t\t\t\tdb.createDatabase(false);\n\t\t\t\tdb.loadDatabase();\n\t\t\t}\n\t\t});\n\t\t\n\t\tframe.getContentPane().add(btnCargarDatosIniciales);\n\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "31536c6bc5105216ca2f1d1de7294301", "score": "0.5177573", "text": "@RequestMapping(\"/\")\n public String getAllImages(Model model) {\n List<Image> images = imageService.getAllImages();\n model.addAttribute(\"images\", images);\n return \"index\";\n }", "title": "" }, { "docid": "d3c5faf03ed2e2246dcf984d35650c30", "score": "0.5161844", "text": "public interface Controller {\n\t/**\n\t * Accion para mostrar el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String list(Model model);\n\n\t/**\n\t * Accion para mostrar la siguiente pagina en el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String listNext(Model model);\n\n\t/**\n\t * Accion para mostrar la pagina anterior en el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String listPrevious(Model model);\n\n\t/**\n\t * Accion para mostrar la primera pagina en el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String listStart(Model model);\n\n\t/**\n\t * Accion para mostrar la ultima pagina en el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String listEnd(Model model);\n\n\t/**\n\t * Accion para cambiar el tamaño de pagina en el listado de datos\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @param pageSize\n\t * tamaño de pagina a mostrar\n\t * @return\n\t */\n\tpublic String listPageSize(String pageSize, Model model);\n\n\t/**\n\t * Accion para cambiar el tamaño de pagina en el listado de datos\n\t * \n\t * @param column\n\t * id de la columna\n\t * @param dir\n\t * direccion de ordenacion\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String listSort(String column, String dir, Model model);\n\n\t/**\n\t * Accion para mostrar el listado de datos aplicando el filtro indicado\n\t * \n\t * @param f\n\t * filtro a aplicar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String filter(Bean f, Model model);\n\n\t/**\n\t * Accion para mostrar el dialogo de creacion\n\t * \n\t * @param index\n\t * indice del elemento del listado del que se reaprovecharan los\n\t * datos\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String create(Integer index, Model model);\n\n\t/**\n\t * Accion para borrar el elemento indicado\n\t * \n\t * @param index\n\t * indice del elemento del listado a borrar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String delete(Integer index, Model model);\n\n\t/**\n\t * Accion para mostrar el dialogo de modificacion del elemento indicado\n\t * \n\t * @param index\n\t * indice del elemento del listado a modificar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String update(Integer index, Model model);\n\n\t/**\n\t * Accion para mostrar el dialogo de modificacion del elemento indicado\n\t * \n\t * @param id\n\t * id de base de datos del elemento a modificar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String updateFromId(Integer id, Model model);\n\n\t/**\n\t * Accion para mostrar el listado para seleccionar los elementos a modificar\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String multiupdate(Model model);\n\n\t/**\n\t * Accion para mostrar el listado para seleccionar los elementos a modificar\n\t * \n\t * @param model\n\t * modelo de datos de SPRING\n\t * @param filter\n\t * datos por lo que filtrar el listado\n\t * @return\n\t */\n\tpublic String multiupdate(Bean filter, Model model);\n\n\t/**\n\t * Accion para mostrar el dialogo de modificacion una vez seleccionados\n\t * varios elementos\n\t * \n\t * @param index\n\t * lista de indices de los elementos a modificar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String acceptMultiupdateSelection(Collection<Integer> index, Model model);\n\n\t/**\n\t * Accion para confirmar la modificacion varios elementos simultaneamente\n\t * \n\t * @param newData\n\t * datos del elemento a modificar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String acceptMultiupdate(Bean newData, Model model);\n\n\t/**\n\t * Accion para mostrar el dialgo de informacion del elemento indicado\n\t * \n\t * @param index\n\t * indice del elemento del listado a mostrar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String read(Integer index, Model model);\n\n\t/**\n\t * Accion para mostrar el dialgo de informacion del elemento indicado por id\n\t * de base de datos\n\t * \n\t * @param index\n\t * id de base de datos del elemento a mostrar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String readFromId(Integer id, Model model);\n\n\t/**\n\t * Accion para confirmar la creacion de un nuevo elemento\n\t * \n\t * @param newElement\n\t * datos del nuevo elemento a crear\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String acceptCreation(Bean newElement, Model model);\n\n\t/**\n\t * Accion para confirmar la modificacion de un elemento\n\t * \n\t * @param newElement\n\t * datos del elemento a modificar\n\t * @param model\n\t * modelo de datos de SPRING\n\t * @return\n\t */\n\tpublic String acceptUpdate(Bean newElement, Model model);\n\n\t/**\n\t * Accion sobre los datos asociados al elemento actual\n\t * \n\t * @param action\n\t * tipo de accion: añadir, crear o borrar,...\n\t * @param dataType\n\t * tipo de dato asociado\n\t * @param data\n\t * datos\n\t * @return\n\t */\n\tpublic String manageRelatedData(RELATED_ACTION action, String dataType, String data);\n\n\t/**\n\t * Obtiene datos filtrados a partir de un indicio\n\t * \n\t * @param hint\n\t * indicio por el que se filtraran los datos\n\t * @return\n\t */\n\t@SuppressWarnings(\"rawtypes\")\n\tpublic List getData(String hint);\n\n\t/**\n\t * Obtiene datos filtrados a partir de un indicio\n\t * \n\t * @param hint\n\t * indicio por el que se filtraran los datos\n\t * \n\t * @param id\n\t * id por el que se filtraran los datos\n\t * @return\n\t */\n\t@SuppressWarnings(\"rawtypes\")\n\tpublic List getData(String hint, Integer id);\n\n\t/**\n\t * Obtiene la clase del bean que gestiona este controlador\n\t * \n\t * @return\n\t */\n\tpublic Class<? extends Bean> getBeanClass();\n\t\n\tpublic void setUserAgent(String userAgent);\n\n\t/**\n\t * Realiza la operacion correspondiente a los libros del carrito\n\t * @param model\n\t * @param newData \n\t * @param list \n\t * @return\n\t */\n\tpublic String cartBooks(Model model, Bean newData, List<Libro> list);\n}", "title": "" }, { "docid": "5b8e5994da1d882efebb9d480cc74f9b", "score": "0.51552063", "text": "public Cliente() {\n initComponents();\n iconoEnBD();\n }", "title": "" }, { "docid": "aa58e07cbd1ec005c2df117bd4467acc", "score": "0.51535", "text": "public interface Resources extends ClientBundle {\n // I added this line below\n public static final Resources INSTANCE = GWT.create(Resources.class);\n\n @Source(\"../imageresource/arrow_closed_down.gif\") ImageResource openImage();\n\n @Source(\"../imageresource/arrow_open_up.gif\") ImageResource closeImage();\n}", "title": "" }, { "docid": "26224bec7b44ac0152c20708143a126d", "score": "0.5152523", "text": "@Override\r\n\tpublic ImageIcon mostrarCuerpo() {\n\t\treturn cuerpo;\r\n\t}", "title": "" }, { "docid": "2411dc3fa44fcc350205d691527f8095", "score": "0.51480556", "text": "public FrmCompras() {\n initComponents();\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/img/icon.png\")).getImage());\n }", "title": "" }, { "docid": "0f39c3ce0033747231f75b0cf88eaab5", "score": "0.5147199", "text": "@Override\r\n public void initialize(URL url, ResourceBundle rb){\r\n \t utilies.backgroundImage(imageMedicaSud);\r\n \r\n \t Image img = new Image(\"Assets/icons8-voir-les-détails-50.png\");\r\n \t imgConsulterTicket.setImage(img);\r\n \t \r\n \t img = new Image(\"Assets/icons8-poste-de-travail-64.png\");\r\n \t imgConsulterMateriel.setImage(img);\r\n \t \r\n \t img = new Image(\"Assets/icons8-ajouter-32.png\");\r\n \t ImgNouveauTicket.setImage(img);\r\n \t \r\n \t img = new Image(\"Assets/demandeblanche.png\");\r\n \t ImgDemandeMateriel.setImage(img);;\r\n \t \r\n \t img = new Image(\"Assets/icons8-editer-le-fichier-80.png\");\r\n \t ImgEditerProfile.setImage(img);\r\n \t \r\n \t img = new Image(\"Assets/icons8-connexion-filled-50.png\");\r\n \t ImageDeconnexion.setImage(img);\r\n\r\n \t \r\n \t imgAccceuil.setImage(img);\r\n }", "title": "" }, { "docid": "40ef6566736e38f1c6b8a360ab094687", "score": "0.5146367", "text": "public AuteurController() {\n }", "title": "" }, { "docid": "c1ef62671c529cb7579a3f5b2b472958", "score": "0.5144705", "text": "public Controller() {\n initComponents();\n }", "title": "" }, { "docid": "460e0a537252652ae4959c36aaea5843", "score": "0.5142854", "text": "java.lang.String getController();", "title": "" }, { "docid": "3b6e004accd1fbdaef9d50a4f3f702f7", "score": "0.5139022", "text": "private void impactadoP() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/Impactado/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/Impactado/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "60484fa94bd30d4d3cbe18256998a7db", "score": "0.5134843", "text": "public ListMotorista() {\n initComponents();\n setFrameIcon(new ImageIcon(this.getClass().getResource(\"/imagens/taxi-driver.png\")));\n readTabela();\n }", "title": "" }, { "docid": "4142b1e78025e53c8b48314b7c9dc743", "score": "0.51342237", "text": "private void initControllerComponents() {\n commandController = new CommandController();\n taskController = TaskController.getTaskController();\n undoController = UndoController.getUndoController();\n commandController.setMainApp(this);\n taskController.setMainApp(this);\n commandController.setTaskController(taskController);\n commandController.setUndoController(undoController);\n commandController.updateView();\n }", "title": "" }, { "docid": "de64dafef0de79619fd0287622ff1c35", "score": "0.5132019", "text": "private void cayendo() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/Cayendo/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/Cayendo/\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b6eaa0cd76a470d2667bb0653e109163", "score": "0.51314425", "text": "public MemoriaFamiliaN1() {\n log = new LogicaJuegoMemoria();\n \n setSize(888,551);//Tamaño reajustable de la ventana\n this.setLocationRelativeTo(null);\n setTitle(\"LudoAprende\");\n Image icon=new ImageIcon(getClass().getResource(\"/imagenes/Logo.png\")).getImage();\n setIconImage(icon);\n initComponents();\n \n setCards();\n }", "title": "" }, { "docid": "08fd4d8df8a7f1634ccdd4069fb3e697", "score": "0.51269215", "text": "@Override\n\tpublic MainController createController(FunctionsModel vModel, MainScreen ms) {\n\t\tCLAZZ z = CLAZZ.valueOf(vModel.getClass().getSimpleName());\n\t\tswitch (z) {\n\t\tcase ValidacionBiometrica:\n\t\t\treturn new ValidacionBiometricaCtrl(vModel, ms);\n\t\tcase ValidacionCrediticia:\n\t\t\treturn new ValidacionCrediticiaCtrl(vModel, ms);\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c0420bebdbcbf10c96a6d7007f762dc3", "score": "0.5118212", "text": "public Controller() {\r\n\t\tview = new MovingViolationsManagerView();\r\n\t\t//grafo= new Grafo<Long,VOIntersections,VOWay>();\r\n\t\tgrafoJson = new Graph<Long,VOIntersections,VOWay>();\r\n\t}", "title": "" }, { "docid": "00b2f222a92b70b41bf685245fc1cee2", "score": "0.5117952", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n \n animationGenerator = new AnimationGenerator();\n imageEditor = new ImageEditor();\n \n }", "title": "" }, { "docid": "af739c6760907dcccd4ac1bfe596bd67", "score": "0.51148117", "text": "public IndicadoresController() {\n\n }", "title": "" }, { "docid": "b8162084a239576813c941b87c941907", "score": "0.5105194", "text": "@RequestMapping(value = { \"/\"}, method = RequestMethod.GET)\n public String index(Model model) {\n\n return \"Accueil\";\n }", "title": "" }, { "docid": "f6c7581fbe3312c207ed8a88b01c3bda", "score": "0.5102367", "text": "public interface Resources extends ClientBundle {\n\n /**\n * Returns the JS file.\n * <p/>\n * Override this method to use your own JS file.\n *\n * @return the JS file\n */\n @Source(\"js/joint.DirectedGraph.transform.js\")\n TextResource directedGraphTransform();\n\n /**\n * Returns the JS file.\n * <p/>\n * Override this method to use your own JS file.\n *\n * @return the JS file\n */\n @Source(\"js/joint.all.min.js\")\n TextResource joinAllMin();\n\n}", "title": "" }, { "docid": "a83582103de1e57e0a4d1945ede6dee8", "score": "0.509631", "text": "public PerteneceController() throws PersistenciaException, FicheroException {\n tipoController = new TipoController();\n pokemonController = new PokemonController();\n perteneceModelo = new PerteneceModelo();\n }", "title": "" }, { "docid": "c0aa92c4228e5388261a705954ebf925", "score": "0.5095091", "text": "@Override\n\tpublic void enter() {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/model/Welcome.fxml\"));\t\n\t\t\tPane pane = loader.load();\n\t\t\tsetBackground(pane,\"/img/battle-art-war-planes-picture.jpg\");\n\t\t\tWelcome controller = loader.getController();\n\t\t\tcontroller.setCallback(this);\n\t\t\troot.setCenter(pane);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "e9ed3ae715ba8389fbaaad21ababbbed", "score": "0.50920624", "text": "private void izquierdaAbajo() {\r\n\t\tif(pato == 1) {\r\n\t\t\truta = \"ImagenesPatoNormal/IzquierdaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 2) {\r\n\t\t\truta = \"ImagenesPatoVeloz/IzquierdaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 3) {\r\n\t\t\truta = \"ImagenesPatoBlindado/IzquierdaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 4) {\r\n\t\t\truta = \"ImagenesPatoDoble/IzquierdaAbajo/\";\r\n\t\t}\r\n\t\tif(pato == 5) {\r\n\t\t\truta = \"ImagenesPatoBoss/IzquierdaAbajo/\";\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "a9e25b80323c03555a37a1b54fbdd6dc", "score": "0.50903004", "text": "static void mostraMenuMedico(){\n\t\tInterfacciaGrafica.mostra(\"/Autenticazione/MenuMedicoBoundary.fxml\");\n\t}", "title": "" }, { "docid": "e7f238ddb9521cf07d818014fb685cd3", "score": "0.50865424", "text": "public DestacadosPorNivel1EditController() {\n\t}", "title": "" }, { "docid": "070635dc8638c9608100cc8bd609f15f", "score": "0.50843495", "text": "@Override\n public void registerController(AbstractController ac) {\n controller = ac;\n \n btnVoltar.addActionListener(controller);\n }", "title": "" } ]
f1b6fdf29f18895efa4e117a6e94b98c
A set of requested RoleTypes repeated .RoleType roles = 1;
[ { "docid": "2af5d03a78e01b75771a6d377b9e7afd", "score": "0.0", "text": "public Builder clearRoles() {\n roles_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "f75e6b7cd0741ca5a0d13df0d452e400", "score": "0.6797021", "text": "public void setRole(Set<com.tts.Radiate.model.Role> set) {\n\t\t\n\t}", "title": "" }, { "docid": "e37897eb1a96a5a5950e624268ba5fb5", "score": "0.67244494", "text": "public void setRoles(Set<Role> roles) {\n this.roles = roles;\n }", "title": "" }, { "docid": "6159ccbaf784c76acc4ef267e595daaf", "score": "0.6504411", "text": "public void setRoles (java.util.Set<Role> roles) {\r\n\t\tthis.roles = roles;\r\n\t}", "title": "" }, { "docid": "41c640775069baf2d41ed685973ea164", "score": "0.64390707", "text": "Set<String> getRoles();", "title": "" }, { "docid": "41c640775069baf2d41ed685973ea164", "score": "0.64390707", "text": "Set<String> getRoles();", "title": "" }, { "docid": "d4756a9e686443399e2064d7394a965b", "score": "0.63710433", "text": "public List<String> listRoleTypes()\n {\n \n return null;\n }", "title": "" }, { "docid": "a6eb928bb7c634f0310131be5bb929f0", "score": "0.63293743", "text": "@Override\n public void declareRoles(String... roles) {\n }", "title": "" }, { "docid": "ecd59da313511bd3a797ca7f40da9e4c", "score": "0.63033736", "text": "public boolean addTypes(BillingAccountPartyRole.RoleType newTypes){ return types.add(newTypes); }", "title": "" }, { "docid": "64f1ea6bd0f18b8a10c6d32a06672b1b", "score": "0.6285975", "text": "public void setRoles(List<Long> roles) {\n this.roles = roles;\n }", "title": "" }, { "docid": "2fd461d8aa4377daa61230d3da79fff1", "score": "0.6205493", "text": "public RoleSet(Set roles)\n {\n this.wrappedSet = roles;\n }", "title": "" }, { "docid": "0a1d613837b371c648c16ff455919276", "score": "0.61572295", "text": "RoleType getRoleType();", "title": "" }, { "docid": "0a1d613837b371c648c16ff455919276", "score": "0.61572295", "text": "RoleType getRoleType();", "title": "" }, { "docid": "cb82b89699732c55563c9d48ddb2a268", "score": "0.59225756", "text": "private List<GrantedAuthority> buildAutorities(Set<UserRole> userRoles) {\n\t\tSet<GrantedAuthority> auths = new HashSet<GrantedAuthority>();\n\t\tfor (UserRole userRole : userRoles) {\n\t\t\tauths.add(new SimpleGrantedAuthority(userRole.getRole()));\n\t\t}\n\t\treturn new ArrayList<GrantedAuthority>(auths);\n\t}", "title": "" }, { "docid": "c3132ee65b6ba88a9c88900c66f1bde7", "score": "0.5917522", "text": "public interface Roles {\n\n\t/**\n\t * Role 1\n\t */\n\tString ROLE1 = \"ROLE1\";\n\t/**\n\t * Role 2\n\t */\n\tString ROLE2 = \"ROLE2\";\n\t/**\n\t * Role 3\n\t */\n\tString ROLE3 = \"ROLE3\";\n\t/**\n\t * Role 4\n\t */\n\tString ROLE4 = \"ROLE4\";\n\n}", "title": "" }, { "docid": "d90a09d004c86ee74a4396d80c7b67d5", "score": "0.5863288", "text": "private Role[] setAllRoles() throws NNDException\n {\n try\n {\n if(NNDConstantUtil.notNull(allRoles))\n {\n if(!allRoles.isEmpty())\n {\n Role[] castorRoles = new Role[allRoles.size()];\n for(int i = 0; i < castorRoles.length; i++)\n {\n Role castorRole = new Role();\n castorRole = (Role)allRoles.get(i);\n\n // *** commented out to get scopign entity uids 01/07/2004 castorRole.setScopingEntityTempId(null);\n if(NNDConstantUtil.notNull(castorRole.getSubjectEntityTempId()))\n {\n Long entityUid = new Long(castorRole.getSubjectEntityTempId());\n if(localIdMap.containsKey(entityUid))\n {\n castorRole.setSubjectEntityTempId(localIdMap.get(entityUid).toString());\n }\n }\n castorRoles[i] = castorRole;\n }\n return castorRoles;\n }\n }\n return null;\n }\n catch(Exception e)\n {\n e.printStackTrace();\n throw new NNDException(\"Error in marshallVaccination, setAllRoles() method \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "4cf915edeff208abc94132b873678562", "score": "0.5860976", "text": "void setRoleType(final RoleType roleType);", "title": "" }, { "docid": "4c28a05ab30ba0c7e8f85ab869e635f5", "score": "0.58459246", "text": "public static void addNormalRoles(List<String> roles, RequestType request)\n {\n SubjectType subject = request.getSubject().iterator().next();\n if (subject != null)\n {\n for (String role : roles)\n {\n subject.getAttribute().add(\n RequestAttributeFactory.createStringAttributeType(XACMLConstants.ATTRIBUTEID_ROLE, null, role));\n }\n }\n }", "title": "" }, { "docid": "128d8e96d18855e559034eb7aee7f9ac", "score": "0.58207506", "text": "public Set<UserRole> loadUserRoles();", "title": "" }, { "docid": "1b1041329ee471e4346d3b062255e318", "score": "0.58186024", "text": "public Builder addAllRoles(\n java.lang.Iterable<? extends sawtooth.sdk.protobuf.RoleType> values) {\n ensureRolesIsMutable();\n for (sawtooth.sdk.protobuf.RoleType value : values) {\n roles_.add(value.getNumber());\n }\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2b10f74cf0ead4dca050a7146b6cb468", "score": "0.5818568", "text": "public void setRolesThatImplyImmediate(List<Role> rolesThatImplyImmediate1) {\r\n this.rolesThatImplyImmediate = rolesThatImplyImmediate1;\r\n }", "title": "" }, { "docid": "0bb8921bedfa6c0210b94109e01dc2e8", "score": "0.58019304", "text": "public Builder addRoles(sawtooth.sdk.protobuf.RoleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRolesIsMutable();\n roles_.add(value.getNumber());\n onChanged();\n return this;\n }", "title": "" }, { "docid": "35f8e400e2e50a1799a2bcbbbc2c93fc", "score": "0.5789006", "text": "public Builder setRoles(\n int index, sawtooth.sdk.protobuf.RoleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRolesIsMutable();\n roles_.set(index, value.getNumber());\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a417871d6617267b00a57d8145677a27", "score": "0.5784849", "text": "public sawtooth.sdk.protobuf.RoleType getRoles(int index) {\n return roles_converter_.convert(roles_.get(index));\n }", "title": "" }, { "docid": "9b5f471bc05981c269dc4ec6e11a343e", "score": "0.5756545", "text": "private void createDefaultRoles(){\n List<Role> defaultRoles = new ArrayList<>();\n defaultRoles.add(new Role(UserRole.ENTERPRISE_ADMIN.toString(), UserRole.ENTERPRISE_ADMIN.toString(),\n \"Enterprise Admin Role\", ParentRoleType.ENTERPRISE, \"\"));\n\n\n defaultRoles.add(new Role(UserRole.ENTERPRISE_COMPLIANCE_OFFICER.toString(), UserRole.ENTERPRISE_COMPLIANCE_OFFICER.toString(),\n \"Enterprise Compliance Officer Role\", ParentRoleType.ENTERPRISE, \"\"));\n defaultRoles.add(new Role(UserRole.ENTERPRISE_SUPPORT_OFFICER.toString(), UserRole.ENTERPRISE_SUPPORT_OFFICER.toString(),\n \"Enterprise Support Officer Role\", ParentRoleType.ENTERPRISE, \"\"));\n\n //MSB default roles\n defaultRoles.add(new Role(UserRole.MSB_ADMIN.toString(), UserRole.MSB_ADMIN.toString(),\n \"MSB Admin Role\", ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_AUTHORIZER.toString(), UserRole.MSB_AUTHORIZER.toString(),\n \"MSB Authorizer Role\", ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_COMPLIANCE_OFFICER.toString(), UserRole.MSB_COMPLIANCE_OFFICER.toString(),\n \"MSB Compliance Officer Role\", ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_FINANCE_OFFICER.toString(), UserRole.MSB_FINANCE_OFFICER.toString(),\n \"MSB Finance Officer Role\", ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_APPROVER.toString(), UserRole.MSB_APPROVER.toString(),\n \"MSB Approver Officer Role\", ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_USER.toString(), UserRole.MSB_USER.toString(), \"Business User Role\",\n ParentRoleType.MSB, \"\"));\n defaultRoles.add(new Role(UserRole.MSB_REGISTRAR.toString(), UserRole.MSB_REGISTRAR.toString(),\n \"MSB Registrar Role\", ParentRoleType.MSB, \"\"));\n\n\n List<Role> existingRoles = rolesDao.getRoles();\n List<String> existingRoleNames = Collections.EMPTY_LIST;\n if (existingRoles != null) {\n existingRoleNames = rolesDao.getRoles().stream().map(role -> role.getRoleName())\n .collect(Collectors.toList());\n }\n\n for (Role role : defaultRoles) {\n if (!existingRoleNames.contains(role.getRoleName())) {\n log.debug(\"Creating deafult role: \" + role.getRoleName());\n rolesDao.createRole(role);\n }\n }\n }", "title": "" }, { "docid": "de087a7859e3114f27f8891253162187", "score": "0.5743262", "text": "List<Role> getRoles();", "title": "" }, { "docid": "2f0ff846966b0f18886310b546981e1a", "score": "0.5720201", "text": "public void setRolesThatImply(List<Role> rolesThatImply1) {\r\n this.rolesThatImply = rolesThatImply1;\r\n }", "title": "" }, { "docid": "632a22609bcf0a4555dc4bf3158e8bb0", "score": "0.5710385", "text": "public List<Role> getRoles();", "title": "" }, { "docid": "ca38ee13c608f89a57f9809d98c92646", "score": "0.57084113", "text": "private void mapUsersToRoles() {\n\n List<Role> rolesList=new ArrayList<>(List.of(admin, developer, projectLead, teamLead, manager, administrative));\n /* for each user grab a random selection of roles */\n Random rand = new Random();\n System.out.println(\"Randomly assigning Roles to Users..\");\n users.forEach(user -> {\n rand.ints(3, 0, 5)\n .boxed()\n .collect(Collectors.toSet())\n .forEach(roleid-> user.addRole(rolesList.get(roleid.intValue())));\n });\n\n userRepository.saveAll(users);\n }", "title": "" }, { "docid": "1a68f29bcc821031d7e965ad7323c780", "score": "0.56972027", "text": "public boolean checkRoles(Set<String> rolesSet) {\n\t\tfor (String role : rolesSet) {\n\t\t\tif (this.getRoles().toUpperCase().contains(role.toUpperCase())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e8b7a6430ac68cf2bde2b4937858e4f0", "score": "0.56955945", "text": "@Override\n\t\t\tpublic List<String> getRoles() {\n\t\t\t\treturn new ArrayList<String>();\n\t\t\t}", "title": "" }, { "docid": "142e82d11508c9de8d942da936bd565c", "score": "0.5686001", "text": "public sawtooth.sdk.protobuf.RoleType getRoles(int index) {\n return roles_converter_.convert(roles_.get(index));\n }", "title": "" }, { "docid": "4621a98c069bd2d846af28864c0082ae", "score": "0.5673824", "text": "public void parseRoles(Collection<String> roles)\n {\n super.parseValues(roles);\n }", "title": "" }, { "docid": "92d80a70ad6d26369cc7939a25406a84", "score": "0.563681", "text": "public int getRoleTypeValue() {\n return roleType_;\n }", "title": "" }, { "docid": "5a04cc311ad1d8ae6c58049751a8bf6d", "score": "0.5618321", "text": "@Test\n\tvoid testRoles() {\n\t\tassertEquals(newHashSet(\"ADMIN\"), getRolesForBranch(\"MAIN\", \"ROLE_snowstorm-admin\"));\n\t\tassertEquals(newHashSet(\"ADMIN\", \"VIEW\"), getRolesForBranch(\"MAIN\", \"ROLE_snowstorm-admin\", \"ROLE_global-view\"));\n\t\tassertEquals(newHashSet(\"ADMIN\"), getRolesForBranch(\"MAIN/PROJECTA\", \"ROLE_snowstorm-admin\"));\n\t\tassertEquals(newHashSet(\"ADMIN\"), getRolesForBranch(\"MAIN/SNOMEDCT-ABC\", \"ROLE_snowstorm-admin\"));\n\t\tassertEquals(newHashSet(\"ADMIN\"), getRolesForBranch(\"MAIN/SNOMEDCT-ABC/something/task-123\", \"ROLE_snowstorm-admin\"));\n\n\t\t// International roles work on MAIN or any sub branch but not other code systems\n\t\tassertEquals(newHashSet(\"VIEW\", \"AUTHOR\"), getRolesForBranch(\"MAIN\", \"int-author\"));\n\t\tassertEquals(newHashSet(\"VIEW\", \"AUTHOR\", \"REVIEW\"), getRolesForBranch(\"MAIN\", \"int-reviewer\"));\n\t\tassertEquals(newHashSet(\"VIEW\", \"AUTHOR\"), getRolesForBranch(\"MAIN/PROJECTA\", \"int-author\"));\n\t\tassertEquals(newHashSet(\"VIEW\", \"AUTHOR\", \"REVIEW\"), getRolesForBranch(\"MAIN/PROJECTA\", \"int-reviewer\"));\n\t\tassertEquals(newHashSet(), getRolesForBranch(\"MAIN/SNOMEDCT-ABC\", \"int-author\"));\n\t\tassertEquals(newHashSet(), getRolesForBranch(\"MAIN/SNOMEDCT-ABC\", \"int-reviewer\"));\n\n\t\t// Roles can be set on a single project\n\t\tassertEquals(newHashSet(), getRolesForBranch(\"MAIN\", \"int-projectA-author\"));\n\t\tassertEquals(newHashSet(\"AUTHOR\"), getRolesForBranch(\"MAIN/PROJECTA\", \"int-projectA-author\"));\n\t\tassertEquals(newHashSet(\"AUTHOR\"), getRolesForBranch(\"MAIN/PROJECTA/task-123\", \"int-projectA-author\"));\n\t\tassertEquals(newHashSet(), getRolesForBranch(\"MAIN/SNOMEDCT-ABC/PROJECTA\", \"int-projectA-author\"));\n\n\t\t// Extension roles\n\t\tassertEquals(newHashSet(), getRolesForBranch(\"MAIN\", \"abc-author\"));\n\t\tassertEquals(newHashSet(\"AUTHOR\"), getRolesForBranch(\"MAIN/SNOMEDCT-ABC\", \"abc-author\"));\n\t\tassertEquals(newHashSet(\"AUTHOR\"), getRolesForBranch(\"MAIN/SNOMEDCT-ABC/PROJECTZ/task-99\", \"abc-author\"));\n\n\t}", "title": "" }, { "docid": "fb7ea79e4c9e1c9c4c89c1ff1fbd7634", "score": "0.5612604", "text": "protected abstract void _userRealmRoles(List<String> o);", "title": "" }, { "docid": "8af66a27c75efa0dd02551268d951844", "score": "0.56065494", "text": "@Message(id = Message.NONE, value = \"What roles do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)\")\n String rolesPrompt();", "title": "" }, { "docid": "4f6b2a204cd79cb35330a3f34b64b449", "score": "0.5605901", "text": "@Override\n\tpublic Vector<String> getRoles();", "title": "" }, { "docid": "3f32801823b5028969cd82b73cb54e15", "score": "0.5595839", "text": "public RoleSet()\n {\n super();\n }", "title": "" }, { "docid": "8ab493999f1cd77271d50f5ae3bc58fd", "score": "0.5584642", "text": "private List<String> getTypes(){\n\t\tList<String> types = new ArrayList<>();\n\t\ttypes.add(\"Root\");\n\t\ttypes.add(\"Enrollment\");\n\t\ttypes.add(\"Authorization\");\n\t\treturn types;\n\t}", "title": "" }, { "docid": "06684b0b4fc3d06488e555852cdb71f6", "score": "0.5575998", "text": "private static void assertRoles(Set<String> actualRoles, String... expectedRoles) {\n\t\tassertEquals(\"Incorrect number of roles\", expectedRoles.length, actualRoles.size());\n\t\tfor (String role : expectedRoles) {\n\t\t\tassertTrue(\"Expected to have role: '\" + role + \"'\", actualRoles.contains(role));\n\t\t}\n\t}", "title": "" }, { "docid": "4678df7563d870b88585e6961f21a661", "score": "0.5572287", "text": "public void setRoleType(Long RoleType) {\n this.RoleType = RoleType;\n }", "title": "" }, { "docid": "d96172fa1dcc3f35174b1711a2a5c709", "score": "0.55654925", "text": "public final Set<Role> getRoles() {\n\t\tfinal Set<Role> roleSet = new HashSet<>();\n\t\tfor (final DefinitionReference<Role> roleReference : roleRefs) {\n\t\t\troleSet.add(roleReference.get());\n\t\t}\n\t\treturn Collections.unmodifiableSet(roleSet);\n\t}", "title": "" }, { "docid": "67d74c88eb2a7c38a900e1483f23b304", "score": "0.55552524", "text": "@Override\r\n\tpublic int role(String[] roleIds, int id) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "a897ca530ba1852cf6de7ae5e2bc45ff", "score": "0.5554175", "text": "@Override\n\tpublic int getcodeUsersRole(Utilisateurs users) {\n\t\tList<UtilisateursRoles> listofUsersRoles=(List<UtilisateursRoles>) users.getListofusersRoles();\n\t\t//System.err.println(\"listofUsersRoles \"+listofUsersRoles.size());\n\t\tint codeRole=0;\n\t\tint containsRoles=0;\n\n\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"CENSEUR\"))) containsRoles=1;\n\t\t\t//System.err.println(\"usersRoles \"+usersRoles.getRoleAssocie().getRole()+\" containsRoles == \"+containsRoles);\n\t\t}\n\n\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"SG\"))) containsRoles=2;\n\t\t}\n\n\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"INTENDANT\"))) containsRoles=3;\n\t\t}\n\n\t\tif(containsRoles==1){//donc il est censeur\n\t\t\tint ensrole=0;\n\t\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\t\t//lorsque le si est verifie alors il est en plus enseignant; selon les code on doit avoir 1 comme code\n\t\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"ENSEIGNANT\"))) ensrole=1;\n\t\t\t\t//System.err.println(\"A t'il enseignant comme role en plus de censeur? \"+\" ensrole == \"+ensrole);\n\t\t\t}\n\t\t\tif(ensrole==0) codeRole=2;//role censeur uniquement\n\t\t\tif(ensrole==1) codeRole=1;//role censeur et ennseignant\n\t\t}\n\n\t\tif(containsRoles==2){//donc il est SG\n\t\t\tint ensrole=0;\n\t\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\t\t//en plus de SG si le if est verifie alors il est en plus enseignant donc 3 comme code\n\t\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"ENSEIGNANT\"))) ensrole=1;\n\t\t\t\t//System.err.println(\"A t'il enseignant comme role en plus de sg? \"+\" ensrole == \"+ensrole);\n\t\t\t}\n\t\t\tif(ensrole==0) codeRole=4;//role SG uniquement\n\t\t\tif(ensrole==1) codeRole=3;//role SG et ennseignant\n\t\t}\n\n\t\tif(containsRoles==3){//donc il est d'abord Intendant\n\t\t\tint ensrole=0;\n\t\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"ENSEIGNANT\"))) ensrole=1;\n\t\t\t\t//System.err.println(\"A t'il enseignant comme role en plus de intendant? \"+\" ensrole == \"+ensrole);\n\t\t\t}\n\t\t\tif(ensrole==0) codeRole=6;//role Intendant uniquement\n\t\t\tif(ensrole==1) codeRole=5;//role Intendant et ennseignant\n\t\t}\n\n\t\tif((containsRoles!=1)&&(containsRoles!=2)&&(containsRoles!=3)){//ni censeur ni sg ni intendant\n\t\t\tfor(UtilisateursRoles usersRoles : listofUsersRoles){\n\t\t\t\tif(usersRoles.getRoleAssocie().getRole().equals(new String(\"ENSEIGNANT\"))) codeRole=7;//donc juste role Enseignant\n\t\t\t}\n\t\t}\n\n\t\treturn codeRole;\n\t}", "title": "" }, { "docid": "b311bebaef3aee4e02535c2c1ad81c45", "score": "0.554656", "text": "@Override\n public ArrayList<Roles> getSupportedRole() {\n ArrayList<Roles> roles = new ArrayList<>();\n roles.add(new DoctorRole());\n return roles;\n }", "title": "" }, { "docid": "cfc302acd0dfe7ca7e20ef952ca3cffd", "score": "0.5543145", "text": "public String getRoleType() {\n\t\treturn roleType;\n\t}", "title": "" }, { "docid": "b190c9eb997eb1c90079b665f0c6c405", "score": "0.5529279", "text": "private String[] extractRoleNames(Set<Role> roles)\n\t{\n\t\tString[] roleNames = new String[roles.size()];\n\t\tint a = 0;\n\t\tfor (Role role : roles)\n\t\t{\n\t\t\troleNames[a] = role.getName();\n\t\t\ta++;\n\t\t}\n\t\treturn roleNames;\n\t}", "title": "" }, { "docid": "a9eed1781d467016c189ffc116739931", "score": "0.5513351", "text": "public WtRoleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "2af1939e08df705f36b8a95675afaa22", "score": "0.5512746", "text": "public java.util.List<sawtooth.sdk.protobuf.RoleType> getRolesList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, sawtooth.sdk.protobuf.RoleType>(roles_, roles_converter_);\n }", "title": "" }, { "docid": "48393aa24199982ded3b64c5f48c8df6", "score": "0.5512507", "text": "public int getRoleTypeValue() {\n return roleType_;\n }", "title": "" }, { "docid": "8160dc29bb88de6e415e9d80b534fc10", "score": "0.5510146", "text": "public boolean addTypes(int index,BillingAccountPartyRole.RoleType newTypes){ return types.add(newTypes); }", "title": "" }, { "docid": "e8d005a355d912551fe3a4e04488a10d", "score": "0.5507044", "text": "@Test\n\tpublic void testIsRoleOnHasRole() {\n\t\tassertTrue(hasRoles.isRole(User.AUTHOR));\n\t\tassertTrue(hasRoles.isRole(User.REVIEWER));\n\t\tassertTrue(hasRoles.isRole(User.SUBPROGRAM_CHAIR));\n\t\tassertTrue(hasRoles.isRole(User.PROGRAM_CHAIR));\n\t}", "title": "" }, { "docid": "e78224f26e77409778a20ed69687a3d2", "score": "0.5490689", "text": "@JsonProperty(\"roles\")\n public void setRoles(List<String> roles) {\n this.roles = roles;\n }", "title": "" }, { "docid": "237002c87671f980a157a9e1118f525f", "score": "0.5490523", "text": "@Override\n\tpublic List<Tuserrole> selectRoleList(String[] list) {\n\t\treturn userroleMapper.selectRoleList(list);\n\t}", "title": "" }, { "docid": "fd798f3dae4d4f1bc6163d61fec87eab", "score": "0.54894394", "text": "protected List<Role> getRoleList(PersoniumEvent event) {\n // create permitted role list\n List<Role> roleList = new ArrayList<Role>();\n String roles = event.getRoles();\n if (roles != null) {\n String[] parts = roles.split(\",\");\n for (int i = 0; i < parts.length; i++) {\n try {\n URL url = new URL(parts[i]);\n Role role = new Role(url);\n roleList.add(role);\n } catch (MalformedURLException e) {\n // return empty list because of error\n return new ArrayList<Role>();\n }\n }\n }\n return roleList;\n }", "title": "" }, { "docid": "ea06644967a5311f912578161db6758b", "score": "0.5488817", "text": "@Override\r\n\tpublic List<RoleType> listRoleType(Integer rtId) {\n\t\treturn bizClubRepository.listRoleType(rtId);\r\n\t}", "title": "" }, { "docid": "c72929f6757761580e7f76f327a7617d", "score": "0.54855305", "text": "public void setRoles(HashSet<User> hashSet) {\n\t\t\n\t}", "title": "" }, { "docid": "b04a7774c1e63c7223ab7924221646f9", "score": "0.5482262", "text": "public Builder setRoleTypeValue(int value) {\n roleType_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f9d4239b2849cda2ab1eba73aabbe277", "score": "0.54813313", "text": "public Set<String> getRoles() {\n return roles;\n }", "title": "" }, { "docid": "9be07a47c43238ae547d313cec8b11ab", "score": "0.5463524", "text": "public java.util.Set<Role> getRoles () {\r\n\t\treturn roles;\r\n\t}", "title": "" }, { "docid": "493993c184eb6c7c3ff61db862d01b33", "score": "0.5463485", "text": "public boolean add(RoleSet roleSet)\n {\n boolean res = false;\n for( Iterator it = roleSet.iterator(); it.hasNext();)\n {\n Role r = (Role) it.next();\n res |= add(r);\n }\n return res;\n }", "title": "" }, { "docid": "c9d54f635acc64474a917ddd7d45f2c8", "score": "0.54564786", "text": "private Collection<? extends GrantedAuthority> mapRolesToAuthorities(Collection<Role> roles) {\n return roles.stream().map(role -> new SimpleGrantedAuthority(role.getRole())).collect(Collectors.toList());\n }", "title": "" }, { "docid": "36c6eaca469ed32edcbf2b19942bc3e6", "score": "0.5456114", "text": "public List<String> readServerRoles(String roleType) {\n String rolesPath = ServerRoleUtils.getRegistryPath(roleType);\n List<String> roles = new ArrayList<String>();\n\n try {\n if (configRegistry.resourceExists(rolesPath)) {\n Resource resource = configRegistry.get(rolesPath);\n List<String> rolesRead = resource.getPropertyValues(roleType);\n if (rolesRead != null) {\n return rolesRead;\n }\n }\n } catch (RegistryException e) {\n log.error(\"Error while reading server role resources\", e);\n }\n return roles;\n }", "title": "" }, { "docid": "f9b0adfb0c83dd6b2c66851cb3bfff6c", "score": "0.5453364", "text": "@Override\n\tpublic List<String> getRoles() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "010c95218174c981295c36c5bb9910ba", "score": "0.5451794", "text": "private void updateRoles(Set<Roles> callerRoles, StudyParticipant participant, Account account) {\n Set<Roles> newRoleSet = Sets.newHashSet();\n // Caller can only add roles they have the rights to edit\n for (Roles role : participant.getRoles()) {\n if (callerCanEditRole(callerRoles, role)) {\n newRoleSet.add(role);\n }\n }\n // Callers also can't remove roles they don't have the rights to edit\n for (Roles role : account.getRoles()) {\n if (!callerCanEditRole(callerRoles, role)) {\n newRoleSet.add(role);\n }\n }\n account.setRoles(newRoleSet);\n }", "title": "" }, { "docid": "164a21ca4943ee59358ff5e50abd4261", "score": "0.54508156", "text": "@Test\n public void setGetRoles() {\n final Permission permission = new Permission();\n final List<Role> ROLES = List.of(new Role(\"R1\"), new Role(\"R2\"));\n permission.setRoles(ROLES);\n\n assertSame(ROLES, permission.getRoles());\n }", "title": "" }, { "docid": "9f46e98c0230537366e34151e71ed837", "score": "0.5448311", "text": "public static List<SshAccountRole> getValidRoles() {\r\n List<SshAccountRole> roles = new ArrayList<SshAccountRole>();\r\n List<String> allowedCommandPatterns = new ArrayList<String>();\r\n List<String> allowedScpPath = new ArrayList<String>();\r\n\r\n // add not restricted role\r\n allowedCommandPatterns.add(\".*\");\r\n allowedScpPath.add(\"/tmp/\");\r\n allowedScpPath.add(\"/etc/\");\r\n roles.add(new SshAccountRole(NOT_RESTRICTED_ROLE, allowedCommandPatterns, allowedScpPath));\r\n\r\n // add restricted role\r\n allowedCommandPatterns = new ArrayList<String>();\r\n allowedScpPath = new ArrayList<String>();\r\n\r\n allowedCommandPatterns.add(\"stats\");\r\n allowedCommandPatterns.add(\"tasks\");\r\n allowedCommandPatterns.add(\"net( .+)?\");\r\n allowedScpPath.add(\"/tmp/rce/\");\r\n roles.add(new SshAccountRole(RESTRICTED_ROLE, allowedCommandPatterns, allowedScpPath));\r\n return roles;\r\n }", "title": "" }, { "docid": "09ddd6eea0a68fbbd9d82f1f2adfc5c7", "score": "0.54410964", "text": "public Builder addAllRole(\n java.lang.Iterable<? extends com.weizhu.proto.AdminProtos.Role> values) {\n if (roleBuilder_ == null) {\n ensureRoleIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, role_);\n onChanged();\n } else {\n roleBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "09ddd6eea0a68fbbd9d82f1f2adfc5c7", "score": "0.54410964", "text": "public Builder addAllRole(\n java.lang.Iterable<? extends com.weizhu.proto.AdminProtos.Role> values) {\n if (roleBuilder_ == null) {\n ensureRoleIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, role_);\n onChanged();\n } else {\n roleBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "ad60fefb8c90fe2480ebe9ab43188c4b", "score": "0.5435985", "text": "CodeType getRole();", "title": "" }, { "docid": "d9b90b2f5e83784b64fbf7525d154914", "score": "0.5434342", "text": "default Map<Role, ast.binary.Type> partial() throws ScribbleException\n\t{\n\t\tMap<Role, ast.binary.Type> types = new java.util.HashMap<>();\n\t\tfor (Role r: roles())\n\t\t{\n\t\t\ttypes.put(r, partial(r));\n\t\t}\n\t\treturn types;\n\t}", "title": "" }, { "docid": "0f4427d7a8a53f05411e1b6462eb5c22", "score": "0.5434274", "text": "public java.util.List<sawtooth.sdk.protobuf.RoleType> getRolesList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, sawtooth.sdk.protobuf.RoleType>(roles_, roles_converter_);\n }", "title": "" }, { "docid": "2b3fd3bbf8af46bd66738fab51ad01a5", "score": "0.54300046", "text": "public Set<Role> getRoles() {\n return roles;\n }", "title": "" }, { "docid": "571c08e191f822473b6989fa1e3091ef", "score": "0.5427935", "text": "public Builder setRoleType(com.alibaba.maxgraph.proto.RoleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n roleType_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "be7e91172a04313bef34efa51ca3b160", "score": "0.5425832", "text": "public Set<UserRole> getRoles() {\n\t\tSet<UserRole> roles = EnumSet.noneOf(UserRole.class);\n\t\tif (authorities != null) {\n\t\t\tfor (UserAuthority authority : authorities) {\n\t\t\t\troles.add(UserRole.valueOf(authority));\n\t\t\t}\n\t\t}\n\t\treturn roles;\n\t}", "title": "" }, { "docid": "fb65d889422b5f385d7b4a54f6365118", "score": "0.5418675", "text": "@Override\n\tpublic void setUs_roles(Integer us_roles) {\n\t\tsuper.setUs_roles(us_roles);\n\t}", "title": "" }, { "docid": "96792c02c61c8ccdfc52935130ef2684", "score": "0.54112977", "text": "@Override\n\t\t\t\t\t\tpublic void accept(Menu t) {\n\t\t\t\t\t\t\tString role1 = role +\"_\" + t.getMenuName();\n\t\t\t\t\t\t\troles.add(role1.toUpperCase());\n\t\t\t\t\t\t}", "title": "" }, { "docid": "c2f37e78e3793287480b17d21aa5a66c", "score": "0.5407705", "text": "private Set<String> getResourcesWithGrantedPermissionsToRolesOfUser(\n\t\t\tString resourceType, \n\t\t\tUser user, \n\t\t\tString permissionsType) {\n\t\tSet<String> resourceSet = new HashSet<String>();\n\t\t\n\t\tfor (Role role : user.getRoles()) {\t\t\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"resourceType\", resourceType);\n\t\t\tparameterMap.put(\"externalId\", String.valueOf(role.getId()));\n\t\t\tparameterMap.put(\"externalType\", Permissions.EXTERNAL_TYPE_ROLE);\n\t\t\tparameterMap.put(\"permission\", permissionsType);\n\n \tList<Map<String, String>> listOfMaps = queryForList(getNameSpace() + \".findResourcesWithGrantedPermissions\", parameterMap);\n\n\t\t\t\tfor (Map<String, String> resultMap : listOfMaps) {\n String resourceMapping = resultMap.get(\"resourceMapping\");\n if (\"layerclass\".equals(resourceType)) {\n resourceSet.add(resourceMapping.substring(4)); // TODO: fix this\n } else {\n\t\t\t\t resourceSet.add(resourceMapping);\n }\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn resourceSet;\n\t}", "title": "" }, { "docid": "ac612287403686bf046bbf0866ac8a2f", "score": "0.54026335", "text": "@Override\n public List<PrivilegeApiEntity> getReadPrivilegesForRoles(Collection<RoleApiEntity> roles) {\n PrivilegeApiEntity readPrivilege = new PrivilegeApiEntity();\n readPrivilege.setName(\"READ\");\n readPrivilege.setCreateDateTs(new Timestamp(new Date().getTime()));\n// readPrivilege.setRoles(roles);\n return Arrays.asList(readPrivilege);\n\n }", "title": "" }, { "docid": "9b0fd7ab27033ffe018cce5784800349", "score": "0.5400558", "text": "java.util.List<com.weizhu.proto.AdminProtos.Role> \n getRoleList();", "title": "" }, { "docid": "9b0fd7ab27033ffe018cce5784800349", "score": "0.5400558", "text": "java.util.List<com.weizhu.proto.AdminProtos.Role> \n getRoleList();", "title": "" }, { "docid": "ed4ac38838da129c0b9851060e10c153", "score": "0.53968245", "text": "@Override\n\tpublic Integer getUs_roles() {\n\t\treturn super.getUs_roles();\n\t}", "title": "" }, { "docid": "156b0434ab45d8e403758014c5050859", "score": "0.5391017", "text": "List<Role>listAll();", "title": "" }, { "docid": "044b09c1326dec7c1ba0d07ea8dbd28f", "score": "0.53868246", "text": "protected abstract void _userResourceRoles(List<String> o);", "title": "" }, { "docid": "32b07d8d65ce4de9955b4e80a8a5e33d", "score": "0.53653693", "text": "java.util.List<? extends com.weizhu.proto.AdminProtos.RoleOrBuilder> \n getRoleOrBuilderList();", "title": "" }, { "docid": "32b07d8d65ce4de9955b4e80a8a5e33d", "score": "0.53653693", "text": "java.util.List<? extends com.weizhu.proto.AdminProtos.RoleOrBuilder> \n getRoleOrBuilderList();", "title": "" }, { "docid": "936b830ed85210d5dc4127faeb319bc4", "score": "0.53650284", "text": "public Long getRoleType() {\n return this.RoleType;\n }", "title": "" }, { "docid": "592d2c0a4f4096c8b4e90dc93d0b4fc7", "score": "0.5361903", "text": "public void setRolesImpliedByImmediate(List<Role> rolesImpliedByImmediate1) {\r\n this.rolesImpliedByImmediate = rolesImpliedByImmediate1;\r\n }", "title": "" }, { "docid": "1a137c8f644d6c9b8c52edd4fdc6b35e", "score": "0.5356175", "text": "public List<Role> getRoles() throws Exception;", "title": "" }, { "docid": "7695e5eac097cef815500891d26930c3", "score": "0.53483874", "text": "public void setTypes(String ... names);", "title": "" }, { "docid": "35c730dd8aefb43e1b2744bee7c8066b", "score": "0.5346676", "text": "private void assignUserToRoles(User user, Collection roles) {\r\n if (roles.size() == 0) {\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"No roles specified, not adding any roles...\");\r\n }\r\n } else {\r\n //if (log.isDebugEnabled()) {\r\n // log.debug(\"Assigning roles to user \" + user.getName());\r\n //}\r\n \r\n String role;\r\n Group group;\r\n \r\n for (Iterator it = roles.iterator(); it.hasNext();) {\r\n role = it.next().toString().trim();\r\n \r\n if (role.length() == 0) {\r\n continue;\r\n }\r\n \r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Assigning \" + user.getName() + \" to role \" + role);\r\n }\r\n \r\n try {\r\n group = getGroupManager().getGroup(role);\r\n if (group == null) {\r\n if (config.isAutoCreateGroup()) {\r\n if (getGroupManager().isCreative()) {\r\n group = getGroupManager().createGroup(role);\r\n } else {\r\n log.warn(\r\n \"Cannot create role '\" + role + \"' due to permission issue.\");\r\n continue;\r\n }\r\n } else {\r\n log.debug(\r\n \"Skipping autocreation of role '\" + role + \"'.\");\r\n continue; //no point of attempting to allocate user\r\n }\r\n }\r\n \r\n if (getGroupManager().hasMembership(group, user)) {\r\n log.debug(\"Skipping \" + user.getName() + \" to role \" + role + \" - already a member\");\r\n }\r\n else {\r\n getGroupManager().addMembership(group, user);\r\n }\r\n } catch (Exception e) {\r\n log.error(\r\n \"Attempted to add user \" + user + \" to role \" + role + \" but the role does not exist.\",\r\n e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a7a2660739d38220ef6b56f83aebdaee", "score": "0.53398824", "text": "ArrayList<String> getRolesList();", "title": "" }, { "docid": "9a08f93436610e225d658b5cc37e9509", "score": "0.5329972", "text": "private Set<Role> getRolesForNewUser(Boolean isToBeMadeAdmin) {\n Set<Role> newUserRoles = new HashSet<>(roleService.findAll());\n if (!isToBeMadeAdmin) {\n newUserRoles.removeIf(Role::isAdminRole);\n }\n logger.info(\"Setting user roles: \" + newUserRoles);\n return newUserRoles;\n }", "title": "" }, { "docid": "f8714c3f300561e969cbdddfd1da03ab", "score": "0.53251404", "text": "ArrayList<String> getAllowedRolesList();", "title": "" }, { "docid": "89cff897aa20bceed11a6877b9a1bf53", "score": "0.53225875", "text": "public List<Call> getAllRoles();", "title": "" }, { "docid": "3554237d453218daa290e54968fcb574", "score": "0.53184485", "text": "public List<SecRight> getAllRights(int type);", "title": "" }, { "docid": "607a2c557ed8a97fe98e46cd502494e3", "score": "0.5313066", "text": "public void set_roleSet(String roleSetConcat) {\n\t\tif (roleSetConcat != null) {\n\t\t\tfinal String[] roles = roleSetConcat.split(\",\");\n\t\t\tfor (int i = 0; i < roles.length; i++) {\n\t\t\t\tif (StringUtils.isNumeric(roles[i])) {\n\t\t\t\t\t_roleSet.add(Integer.valueOf(roles[i]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4f54f5f257a4e25a93ef8067fa83759e", "score": "0.5300251", "text": "public void setUserRoles(Set<UserRole> userRoles) {\r\n\t\tthis.userRoles = userRoles;\r\n\t}", "title": "" }, { "docid": "46873fcbf466f4c5233de7e70d66aa0f", "score": "0.52983207", "text": "java.lang.String getRole();", "title": "" }, { "docid": "4b2b4dc3c0954f602462b36d6dbd2238", "score": "0.5293808", "text": "public void setRole(int role) {\r\n this.role = role;\r\n }", "title": "" }, { "docid": "71b610ff2e82a9ea5a96a5fc293ce36a", "score": "0.52869004", "text": "public abstract List<RewardType> getRewardTypes();", "title": "" } ]
084d26b0428fb6f7889faf847e769be5
Method to get the value of process running.
[ { "docid": "13379c208b526c5aa3e15f82bd4abadd", "score": "0.73782504", "text": "public boolean getProcessRunning ( ) {\n return processRunning;\n }", "title": "" } ]
[ { "docid": "d1bd4f29bc40ac42cb8fb113f358fa9a", "score": "0.7330928", "text": "public static final String getProcessValue() {\n\t\treturn VALUE_FOR_PROCESS;\n\t}", "title": "" }, { "docid": "30f81ce881bccad9b1b431c7301a7044", "score": "0.7016943", "text": "public int getProcess(){\n\t\treturn process;\n\t}", "title": "" }, { "docid": "392a8a5889bb487af8558c1ff2bcd21a", "score": "0.69535166", "text": "public Process getActiveProcess() {\r\n return this.activeProcess;\r\n }", "title": "" }, { "docid": "ac3dee48ab1dc3193655a4d60b9b0d9a", "score": "0.68032736", "text": "public boolean getRunning() {\n return running.get();\n }", "title": "" }, { "docid": "69feb5ce302489df489d784dc4cf157a", "score": "0.673278", "text": "public ProcessInfo getResult()\n\t{\n\t\treturn m_pi;\n\t}", "title": "" }, { "docid": "93addf884a525cd89c86a2de9da8d3d3", "score": "0.67228955", "text": "public boolean isRunning() {\n return process.isRunning();\n }", "title": "" }, { "docid": "925e16e2ad9fde0be107a262484e9dc9", "score": "0.66576034", "text": "public static boolean isRunning(){\n return isRunning.get();\n }", "title": "" }, { "docid": "692809186698e3c53c3f41a74426cf81", "score": "0.66358817", "text": "public String getProcess() {\n return process;\n }", "title": "" }, { "docid": "f03e71bf4564bdcd21a2eec7f2c57249", "score": "0.6635269", "text": "public String getRunningStatus();", "title": "" }, { "docid": "1a91550151659553018f5338fb35261d", "score": "0.6584095", "text": "public int current () \n\t{\n\t\treturn runningJob;\n\t}", "title": "" }, { "docid": "401679b74d33c93f7318e283745c8085", "score": "0.6579267", "text": "public Process getActiveProcess() {\n \t//Return the activeProcess.\n return activeProcess;\n }", "title": "" }, { "docid": "2e4efe4f76d6ad0ffd6ceef54f507bfc", "score": "0.6576054", "text": "public boolean getRunning() {\n\t\treturn running;\n\t}", "title": "" }, { "docid": "2fb9ec8063a5748c4f56bc60d63bcf99", "score": "0.6544431", "text": "public ProcessState getState() {\n //System.out.println(\"getState called\");\n return processState;\n }", "title": "" }, { "docid": "9a259c6ae8665d90316932d64c574f7c", "score": "0.65387285", "text": "public Integer processCount() {\n return this.processCount;\n }", "title": "" }, { "docid": "5b4d7ea75c717dfcfb7f8e69486221ea", "score": "0.6489294", "text": "public String getProcessResult() {\n return processResult;\n }", "title": "" }, { "docid": "954f97528e9619e15e2c2f2493fbe87a", "score": "0.648813", "text": "public final String getProcessInfo()\n\t{\n\t\treturn sProcessInfo;\n\t}", "title": "" }, { "docid": "47d90ffc935ccf02c0b7c4f406c8bcb2", "score": "0.6444189", "text": "public Number getProcessId() {\n return (Number)getAttributeInternal(PROCESSID);\n }", "title": "" }, { "docid": "307062eaebf433825c8143667777871d", "score": "0.64370275", "text": "public final synchronized Command getCurrentlyRunning() {\n return kCurrentlyRunning;\n }", "title": "" }, { "docid": "7f6e934b4b8271906afbc73fda4ea91c", "score": "0.63600063", "text": "public String getProcessName() {\n return (String)getAttributeInternal(PROCESSNAME);\n }", "title": "" }, { "docid": "cd6d5578553cdb0b635fbfce2f86c4ea", "score": "0.63568413", "text": "public Long getProcessinstanceid() {\n return processinstanceid;\n }", "title": "" }, { "docid": "dc963d89f59b29d949816daf369c5856", "score": "0.6315496", "text": "Process getProcess() {\n return process;\n }", "title": "" }, { "docid": "3b46315dfbeda87ff79ea97f3c2cf044", "score": "0.6310117", "text": "public int getProcessID(){\n return localProcessID;\n }", "title": "" }, { "docid": "5615da68a7e0721a961921e190979165", "score": "0.6305744", "text": "public boolean isRunning() {\n return isRunning;\n }", "title": "" }, { "docid": "190b0e81093f5970b7a689c584adc074", "score": "0.6292563", "text": "protected boolean isRunning() {\n return running.get();\n }", "title": "" }, { "docid": "96cbb1ad30cbfc29334e428c034c32b5", "score": "0.62919277", "text": "public boolean isRunning() {\n return isRunning;\n }", "title": "" }, { "docid": "15fcba95d004d6b45aeb994c9b369e97", "score": "0.62886006", "text": "public boolean isRunning() {\n return running.get();\n }", "title": "" }, { "docid": "ab11b18230007b2ae64a60fad8243f63", "score": "0.6248145", "text": "public String getProcessInstanceId() {\n\t\treturn processInstanceId;\n\t}", "title": "" }, { "docid": "4df39eee783e9573878ead0bc04a39d9", "score": "0.6229926", "text": "public static String getScanStatusRunning() {\n return scanStatusRunning;\n }", "title": "" }, { "docid": "6548c9a76111209621d50bded6bad752", "score": "0.6228585", "text": "public static String getCurrentPid() {\n return ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0];\n }", "title": "" }, { "docid": "a7da9f10125613aa1ee25b35104ec6c8", "score": "0.6222085", "text": "public boolean isRunning() {\n return mRunning;\n }", "title": "" }, { "docid": "9908bf66c1cf37c409542ee4b208a38a", "score": "0.6220664", "text": "public boolean isRunning()\n\t{\n\t\treturn isRunning;\n\t}", "title": "" }, { "docid": "10a137c58a653121fbb5ee0896c0c5fc", "score": "0.62160367", "text": "public boolean isRunning() {\n\t\treturn isRunning;\n\t}", "title": "" }, { "docid": "10a137c58a653121fbb5ee0896c0c5fc", "score": "0.62160367", "text": "public boolean isRunning() {\n\t\treturn isRunning;\n\t}", "title": "" }, { "docid": "fcbf5b8f265b4d3e29c887698f108571", "score": "0.62132496", "text": "public JobExecutionRunningState status() {\n return this.status;\n }", "title": "" }, { "docid": "39f4d51429241a7f632e0687598f9319", "score": "0.61921245", "text": "public boolean isRunning() {\n return _running;\n }", "title": "" }, { "docid": "8c4d95d238eee7cbf2b61d84b1a79e07", "score": "0.6190745", "text": "private long getStreamerPid() {\n try {\n if (streamProcess.getClass().getName().equals(\"java.lang.UNIXProcess\")) {\n Field f = streamProcess.getClass().getDeclaredField(\"pid\");\n f.setAccessible(true);\n return ((Integer)f.get(streamProcess)).longValue();\n } else {\n throw new RuntimeException(\"Unsupported process class: \"+streamProcess.getClass().getName());\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "6d66f573de931c482f91381958b7d81d", "score": "0.6171233", "text": "public java.lang.String getProcessName(){\n return localProcessName;\n }", "title": "" }, { "docid": "ccd28b06a1e2e79e44cbc4a0e2a27e0f", "score": "0.6162598", "text": "public boolean isRunning() {\r\n return running;\r\n }", "title": "" }, { "docid": "ccd28b06a1e2e79e44cbc4a0e2a27e0f", "score": "0.6162598", "text": "public boolean isRunning() {\r\n return running;\r\n }", "title": "" }, { "docid": "b0c20b196b8ebb81133ed29684c906c1", "score": "0.61579746", "text": "public String getProcessName() {\n return this.processName;\n }", "title": "" }, { "docid": "40b48cc4a54158c1107d621713b43e88", "score": "0.6152978", "text": "public boolean isRunning() {\n\t\treturn this.running;\n\t}", "title": "" }, { "docid": "c3fbb19f6b5496934522d78b22218125", "score": "0.6139926", "text": "public boolean isRunning() {\n\t\treturn mRunning;\n\t}", "title": "" }, { "docid": "0596ec77ca43c08a8d64404e31e5a7cb", "score": "0.6135676", "text": "public java.lang.String getProcessname() {\r\n return processname;\r\n }", "title": "" }, { "docid": "e766b72e8b57a756e7a988e6f22ef111", "score": "0.61336124", "text": "public java.lang.String getProcessName() {\n return processName;\n }", "title": "" }, { "docid": "58ec8d2bba7eb3b0a54881d7229e8de8", "score": "0.6127922", "text": "public final boolean isRunning() {\n return kRunning;\n }", "title": "" }, { "docid": "34b4d13bffe95b052c1d3358fc904251", "score": "0.6120912", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "34b4d13bffe95b052c1d3358fc904251", "score": "0.6120912", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "34b4d13bffe95b052c1d3358fc904251", "score": "0.6120912", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "34b4d13bffe95b052c1d3358fc904251", "score": "0.6120912", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "34b4d13bffe95b052c1d3358fc904251", "score": "0.6120912", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "c08d7bcd2d97fbd852b83eb27f18513a", "score": "0.61148053", "text": "public boolean isRunning() {\n return running;\n }", "title": "" }, { "docid": "6d3516c533e5c00b7a8cfe7196e9f2bf", "score": "0.61082524", "text": "public boolean isRunning(){\n return this.running;\n }", "title": "" }, { "docid": "1d9cf20e3efeb1130483009a1bea5601", "score": "0.6094516", "text": "public String processId() {\n return this.innerProperties() == null ? null : this.innerProperties().processId();\n }", "title": "" }, { "docid": "03b777d4c766c032a51bb21304fa93a6", "score": "0.6082882", "text": "public Integer getProcessId() {\n return processId;\n }", "title": "" }, { "docid": "83061d8109d9529bf97cd0f470b5a4bd", "score": "0.60808265", "text": "public synchronized boolean isRunning()\n\t{\n\t\treturn running;\n\t}", "title": "" }, { "docid": "a97188f3a6ef8709acbffe5e3c838354", "score": "0.6080563", "text": "public Integer getPid() {\r\n return pid;\r\n }", "title": "" }, { "docid": "a97188f3a6ef8709acbffe5e3c838354", "score": "0.6080563", "text": "public Integer getPid() {\r\n return pid;\r\n }", "title": "" }, { "docid": "a97188f3a6ef8709acbffe5e3c838354", "score": "0.6080563", "text": "public Integer getPid() {\r\n return pid;\r\n }", "title": "" }, { "docid": "b8af36e73ce10e19fbfbcf99002a8798", "score": "0.60790694", "text": "java.lang.String getProcessInstanceId();", "title": "" }, { "docid": "2332d6310c1a86415c1b525333b0db5d", "score": "0.6073736", "text": "public boolean isRunning()\n\t{\n\t\treturn running;\n\t}", "title": "" }, { "docid": "071c90fe94bacac0f8ed51b7bb6827b3", "score": "0.6056633", "text": "public Integer getPid() {\n return pid;\n }", "title": "" }, { "docid": "071c90fe94bacac0f8ed51b7bb6827b3", "score": "0.6056633", "text": "public Integer getPid() {\n return pid;\n }", "title": "" }, { "docid": "071c90fe94bacac0f8ed51b7bb6827b3", "score": "0.6056633", "text": "public Integer getPid() {\n return pid;\n }", "title": "" }, { "docid": "e99627665f7ff649ab975188a1e18cb0", "score": "0.6055651", "text": "public static int getPid() {\n if (pid == null) {\n pid = new Integer(ManagementFactory.getRuntimeMXBean().getName()\n .split(\"@\")[0]);\n }\n\n return pid.intValue();\n }", "title": "" }, { "docid": "9c8924ee3e4508dd6cde6d42a033f754", "score": "0.603764", "text": "public boolean isRunning() {\n\t\treturn running;\n\t}", "title": "" }, { "docid": "9c8924ee3e4508dd6cde6d42a033f754", "score": "0.603764", "text": "public boolean isRunning() {\n\t\treturn running;\n\t}", "title": "" }, { "docid": "9c8924ee3e4508dd6cde6d42a033f754", "score": "0.603764", "text": "public boolean isRunning() {\n\t\treturn running;\n\t}", "title": "" }, { "docid": "550dba3c4eeca08c5739fbdd5560a49d", "score": "0.6033697", "text": "public int getProcessCount()\r\n {\r\n return _processList.size();\r\n }", "title": "" }, { "docid": "2a17780abb3cbfab86bbf6bd953bcf4d", "score": "0.6022639", "text": "public boolean isRunning1() {\n return running1.get();\n }", "title": "" }, { "docid": "f595549aff488b4562379eb3b1fd5afb", "score": "0.60207623", "text": "public boolean isRunning(){\n\t\treturn running;\n\t}", "title": "" }, { "docid": "8b19cc1dbd5cc43820c31ac668f82bd1", "score": "0.60086536", "text": "public int getPid() {\n\t\treturn pid;\n\t}", "title": "" }, { "docid": "8f909357a45cd9e14f7287367dfc5943", "score": "0.6007531", "text": "@Override\n\tpublic boolean isRunning() {\n\t\treturn this.running.get();\n\t}", "title": "" }, { "docid": "b94917f9fb9ba92feb0c54f8bf3352f2", "score": "0.59531254", "text": "public int getPID() {\n return pid;\n }", "title": "" }, { "docid": "230ce8a42485d475d41bade3c46c1588", "score": "0.59414846", "text": "public String getProcessID() {\r\n\t\treturn processID;\r\n\t}", "title": "" }, { "docid": "98fcb7cb26f2a616d4a9d5819467bf35", "score": "0.59252954", "text": "private static long processId() {\n try {\n return ProcessHandle.current().pid();\n } catch (UnsupportedOperationException e) {\n return -1L;\n }\n }", "title": "" }, { "docid": "c0d07c931be22c0934ce33e3c565ceab", "score": "0.59204614", "text": "public synchronized int exitValue() {\n \t\tif (hostShell.isActive())\n \t\t\tthrow new IllegalThreadStateException();\n \t\t// No way to tell what the exit value was.\n \t\t// TODO it would be possible to get the exit value\n \t\t// when the remote process is started like this:\n \t\t// sh -c' remotecmd ; echo\" -->RSETAG<-- $?\\\"'\n \t\t// Then the output steram could be examined for -->RSETAG<-- to get the\n \t\t// exit value.\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "368973c4d099b09b36dd48cb8b169c9c", "score": "0.5906586", "text": "public java.lang.String getPid() {\n return pid;\n }", "title": "" }, { "docid": "c3e4e260d8ad6621b3e8567fd3b070e4", "score": "0.5890762", "text": "public boolean isRunning() {\n return this.state == State.RUNNING;\n }", "title": "" }, { "docid": "211c5672163d8dce28a6aef36861754a", "score": "0.58820117", "text": "public Long getPid() {\r\n\t\treturn pid;\r\n\t}", "title": "" }, { "docid": "2d51b3d5ea110bf473291cffbd89c7ba", "score": "0.5879551", "text": "public long getPid() {\r\n\t\treturn pid;\r\n\t}", "title": "" }, { "docid": "3bd71a5081bbbb7673923585045428c4", "score": "0.58746326", "text": "public final boolean isRunning()\n\t\t{\n\t\t\treturn running;\n\t\t}", "title": "" }, { "docid": "e192f90978161a64f00091ba6e90bd1c", "score": "0.5855282", "text": "public boolean isAlive() {\n return this.process != null;\n }", "title": "" }, { "docid": "111571ce83af45a2ba9867efdafc2a6e", "score": "0.58537483", "text": "private static int getJvmPid() throws Exception {\n java.lang.management.RuntimeMXBean runtime =\n java.lang.management.ManagementFactory.getRuntimeMXBean();\n java.lang.reflect.Field jvm = runtime.getClass().getDeclaredField(\"jvm\");\n jvm.setAccessible(true);\n sun.management.VMManagement mgmt = (sun.management.VMManagement) jvm.get(runtime);\n java.lang.reflect.Method pidMethod = mgmt.getClass().getDeclaredMethod(\"getProcessId\");\n pidMethod.setAccessible(true);\n\n return (int) (Integer) pidMethod.invoke(mgmt);\n }", "title": "" }, { "docid": "782906a17b0cacf83220549aee8a8dbe", "score": "0.58410895", "text": "public static int getPid() {\n String name = ManagementFactory.getRuntimeMXBean().getName();\n Matcher matcher = PID_PATTERN.matcher(name);\n\n if (!matcher.matches()) {\n return -1;\n }\n\n return Integer.parseInt(matcher.group(1));\n }", "title": "" }, { "docid": "794efcd05332be26c82088c35afdb057", "score": "0.58352757", "text": "public boolean isRunning();", "title": "" }, { "docid": "50145be8001481d5c69096578cde967e", "score": "0.5834412", "text": "public static final int getProcessId() {\n\t\treturn ID_FOR_PROCESS;\n\t}", "title": "" }, { "docid": "f5f69729b3bb2ee45f3566f3d7f97963", "score": "0.5820957", "text": "public synchronized boolean isRunning(){ return isRunning;\t}", "title": "" }, { "docid": "28c897a55328ff7a55a218cb0fd431f1", "score": "0.5820029", "text": "public synchronized boolean isRunning() {\n return run;\n }", "title": "" }, { "docid": "0407fa14a7a5d6de471ba46fc641ea49", "score": "0.58142084", "text": "public java.util.Enumeration enumerateProcess()\r\n {\r\n return _processList.elements();\r\n }", "title": "" }, { "docid": "041d46bb337522b9f1233f2c27f9f5f2", "score": "0.5812272", "text": "public String getPid() {\n return pid;\n }", "title": "" }, { "docid": "84fb313a17079e6c045239abea2bccb5", "score": "0.5790936", "text": "public boolean isRunning()\n/* */ {\n/* 160 */ return this.running;\n/* */ }", "title": "" }, { "docid": "9d8cb90d4ffae695014e4e81c97df08e", "score": "0.5787835", "text": "public final int getProcessId()\n\t{\n\t\treturn nProcessId;\n\t}", "title": "" }, { "docid": "d3625f286b10323b7831aae87f29a185", "score": "0.57801473", "text": "public int getPID(){\n\treturn this.pid;\n }", "title": "" }, { "docid": "0678d744a19ef3402d9fb369cfec36a2", "score": "0.577448", "text": "public static final String getProcessName() {\n\t\treturn NAME_FOR_PROCESS;\n\t}", "title": "" }, { "docid": "fde6bf7ab34ae6bd3922465c1d687d0f", "score": "0.57663906", "text": "public com.sforce.soap.enterprise.QueryResult getProcessInstances() {\n return processInstances;\n }", "title": "" }, { "docid": "673b76770f0c702478641158398fb322", "score": "0.5764545", "text": "public java.lang.String getProcessId() {\n return processId;\n }", "title": "" }, { "docid": "cb695030fa94be8781e8b3265f907765", "score": "0.5748035", "text": "public String getPid() {\n\t\treturn pid;\n\t}", "title": "" }, { "docid": "cb695030fa94be8781e8b3265f907765", "score": "0.5748035", "text": "public String getPid() {\n\t\treturn pid;\n\t}", "title": "" }, { "docid": "bfe3bc7a7cb344ff5ebcfae9036c7284", "score": "0.5742011", "text": "private int getCurrentModuleInstance() {\n String instance = \"-1\";\n try {\n instance = modulesService.getCurrentInstanceId();\n } catch (ModulesException me) {\n logger.log(Level.FINEST, \"Ignoring Exception getting module instance and continuing\", me);\n }\n return Integer.parseInt(instance);\n }", "title": "" }, { "docid": "0ac9051d09ab6c130429e07232767023", "score": "0.57300174", "text": "public String getProcessName() {\n\t\treturn mProcessName;\n\t}", "title": "" } ]
1887fae457eef0a13fc56cf11d02eeb6
clear the wrong pattern unless they have started a new one already
[ { "docid": "c66d2ff07d134b142f3ee343fa54f9ad", "score": "0.60256344", "text": "private void postClearPatternRunnable() {\n mLockPatternView.removeCallbacks(mClearPatternRunnable);\n mLockPatternView.postDelayed(mClearPatternRunnable,\n WRONG_PATTERN_CLEAR_TIMEOUT_MS);\n }", "title": "" } ]
[ { "docid": "fd6ffb17f94046dabca7afd9ad347167", "score": "0.63700897", "text": "private void sequencerClearPattern(int dst) {\r\n\t\tfor (int x = 0; x < (this.monome.sizeX); x++) {\r\n\t\t\tfor (int y = 0; y < 15; y++) {\r\n\t\t\t\tint x_dst = x + (dst * (this.monome.sizeX));\r\n\t\t\t\tsequence[bank][x_dst][y] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "352df8c7d6ae3216c0e64089a1688a06", "score": "0.63251984", "text": "public void reset() {\n matcherCache.clear(); // Clear the matchers but not the cached patterns\n }", "title": "" }, { "docid": "8b3ad44890429aa70b668727f87ebc96", "score": "0.5987353", "text": "void clearSequence();", "title": "" }, { "docid": "09eaceffbbcfcbbbca29f50396f3278a", "score": "0.5830713", "text": "public MultiPattern() {\n this.patterns = new Hashtable();\n this.patternList = new LinkedList();\n this.prependStr = \"\";\n }", "title": "" }, { "docid": "23f68fb6172d0a5eb8d96938e89c6c89", "score": "0.5794734", "text": "public void setPattern(){\n }", "title": "" }, { "docid": "2591db923772ea2492caa9f439eb4c8e", "score": "0.57458264", "text": "public final void reset(){\n\tline.reset();\n\tlb.reset();\n }", "title": "" }, { "docid": "dbdc1a44ba9bf587f05b3e2cc1f627e7", "score": "0.57363707", "text": "private void reset() {\n sources.clear();\n destinations.clear();\n }", "title": "" }, { "docid": "8c736c089d3b3049d01708d75a855b7a", "score": "0.5725953", "text": "public void reset() {\n\t\tset.stream().forEach((f)->f.reset());\n\t}", "title": "" }, { "docid": "38832082d2bcd0f4d7cba271af87916b", "score": "0.5723766", "text": "void unsetMatchedOhd();", "title": "" }, { "docid": "17b3571e407daaeddee99576d726e4b9", "score": "0.5675875", "text": "private void resetPathElementState() {\n\t\tthis.pathElementStart = -1;\n\t\tthis.singleCharWildcardCount = 0;\n\t\tthis.insideVariableCapture = false;\n\t\tthis.variableCaptureCount = 0;\n\t\tthis.wildcard = false;\n\t\tthis.isCaptureTheRestVariable = false;\n\t\tthis.variableCaptureStart = -1;\n\t}", "title": "" }, { "docid": "d90bb7651ae4be6008db7ffa5539df75", "score": "0.56618834", "text": "static void recompute(ArrayList<Pattern> patterns) {\n\t\tArrayList<Integer> vertexList = patterns.get(0).vertexList;\n\t\tfor (int i = 1; i < patterns.size(); i++) {\n\t\t\tPattern p = patterns.get(i);\n\t\t\tfor (int j = 0; j < vertexList.size() && p.vertexList.size() > 0; j++) { // Integer v : vertexList\n\t\t\t\tp.vertexList.remove(vertexList.get(j));\n\t\t\t}\n\t\t\tif (p.vertexList.size() == 0 || p.getSavings() <= 0) {\n\t\t\t\tpatterns.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tpatterns.remove(0); // removing the pattern(processed) with most savings\n\t}", "title": "" }, { "docid": "bfd232419e1baf8c3ce3b915ad335b2a", "score": "0.5621372", "text": "public void reset() {\n lastStart = -1;\n }", "title": "" }, { "docid": "908858a6dedeb957b3e0bd1c5d987279", "score": "0.5617644", "text": "private void clearPossibleMoveColors(){\n for(int i=0; i<8; i++){\n for(int j=0; j<8; j++){\n removeColor(i, j);\n }\n }\n }", "title": "" }, { "docid": "23c79fa1ebd1d80a84981ff85930297c", "score": "0.56056994", "text": "public void reset() {\r\n\t\tburstLookingAt = 0;\r\n\t\tarrivalTimes = new ArrayList<>(originalArrivalTimes);\r\n\t\trunTimes = new ArrayList<>(originalRunTimes);\r\n\t}", "title": "" }, { "docid": "f2d792b4a50b60b305f2e34f69dc99eb", "score": "0.5583055", "text": "public void doClear() {\n beginMarker = new Node<>( null, null, null );\n endMarker = new Node<>( null, beginMarker, null );\n beginMarker.next = endMarker;\n \n theSize = 0;\n modCount++;\n }", "title": "" }, { "docid": "c0991a98743ef70d50370c7f7bd21d30", "score": "0.5560805", "text": "private Pattern adjustPattern(Pattern pattern) {\r\n return pattern;\r\n }", "title": "" }, { "docid": "c49c0f74bdd82a9d55115a77dc26b967", "score": "0.5560479", "text": "public void doClear( )\n {\n beginMarker = new Node<>( null, null, null );\n endMarker = new Node<>( null, beginMarker, null );\n beginMarker.next = endMarker;\n\n theSize = 0;\n modCount++;\n }", "title": "" }, { "docid": "55fa5e16afca9f3d9cb60228643dd493", "score": "0.5553322", "text": "void resetRepeatPassings();", "title": "" }, { "docid": "d444713812efe8537694241635010a0a", "score": "0.5525945", "text": "public void clearAll() {\n\t\twhile(lines.size() > 0) {\n\t\t\tlines.remove(0);\n\t\t}\n\t\twhile(points.size() > 0) {\n\t\t\twhiteboard.remove(points.get(0));\n\t\t\tpoints.remove(0);\n\t\t}\n\t\trecalculate();\n\t\trefresh();\n\t}", "title": "" }, { "docid": "8f88c6c42946ab731c4d2bf59ff693e8", "score": "0.552108", "text": "public void reset() {\n clear();\n tried.clear();\n }", "title": "" }, { "docid": "4c4b4e0ca7fc1b380139730e62be4453", "score": "0.5518162", "text": "public void reset() {\n\t\t\n\t\tratio =0;\n\t\t\n\t\tstartTime = System.currentTimeMillis();\n\n\t\tthis.visualisationUsed.reset();\n\n\t}", "title": "" }, { "docid": "dcc9304e2fc226c551752c1ae5be8b1d", "score": "0.5512685", "text": "private void resetCupPuzzle() {\n\t\tpathFromStartToGoal.clear();\n\t\tprocessedStates.clear();\n\t\tfoundGoalState = null;\n\t}", "title": "" }, { "docid": "aa1d8e72b0c87fccd9981647f46c56b1", "score": "0.5508032", "text": "public void scratch_clear();", "title": "" }, { "docid": "d537752195b47ccd8d2ff91043e00b0b", "score": "0.54719186", "text": "public synchronized void reset(){\n\t\tvisitedLines.clear();\n\t\tupdateLastModifiedTimestamp();\n\t}", "title": "" }, { "docid": "e02a626be5f1949894da3b76f80b45c7", "score": "0.54565316", "text": "public static void clear() {\n\t\tFileIO.write(new ArrayList<String>());\n\t\tmax_star_map.clear();\n\t\tstar_map.clear();\n\t}", "title": "" }, { "docid": "e5e1d3c381bdf1854173de613677eba0", "score": "0.5437143", "text": "public void reset() {\n clear();\n }", "title": "" }, { "docid": "05740843188e441e7feb3c8bb0bbf874", "score": "0.54251975", "text": "public void cierreCompetencia(){\n\t\tpatinadoras.clear();\n\t\t\n\t}", "title": "" }, { "docid": "8435cde76c894f0c252bbba24c8f594e", "score": "0.5421489", "text": "public void clear()\n\t {\n\t\t this.first_=null;\n\t\t this.count_ = 0;\n\t }", "title": "" }, { "docid": "5953c24787c5b15a250824ee7266832e", "score": "0.54161114", "text": "public void clearUp() {\n\t\trange += 2;\n\t\tsetPaths();\t\n\t}", "title": "" }, { "docid": "1f371b10330f6008f581240f59628d69", "score": "0.5405605", "text": "public void reset(){\n\t\tthis.distance = Double.POSITIVE_INFINITY;\n\t\tthis.previous = null;\n\t\tthis.color = \"White\";\n\t}", "title": "" }, { "docid": "c276402ee727f7efde226ff421382dd5", "score": "0.53941905", "text": "@NotifyChange({\"users\", \"searchPattern\"})\n public void cancelReset() {\n users = null;\n searchPattern = null;\n }", "title": "" }, { "docid": "4e2d0507f5306b179d49d79c603d1f9d", "score": "0.5384118", "text": "public void clear() { \n\t\t\n\t\tpointer = 0; \n\t\tzeromark = 0; \n\t\tcounter = 0; \n\t\t\n\t}", "title": "" }, { "docid": "5171cec401b5c7eb752abf84af2960bd", "score": "0.53808546", "text": "public static void reset()\n\t{\n\t\t_nextID = 0;\n\t\t_subblockCount = 0;\n\t\t_subblocks = new ArrayList<JCSubBlock>();\n\t}", "title": "" }, { "docid": "819001dfe0cd980302dfaa33bf73ca5c", "score": "0.53793496", "text": "public void reset() {}", "title": "" }, { "docid": "da99147eba827d2b1e1d9c2bd23d5463", "score": "0.5375622", "text": "abstract public void reset();", "title": "" }, { "docid": "b6c007c2a07f73764d16aa6851d6a5e9", "score": "0.5366699", "text": "public void setBasePatterns(PatternSet patternSet) {\n if (patternSet == null) {\n patternScores = null;\n patternQueue = null;\n fireClearPatterns();\n return;\n }\n if (patternScores == null) {\n patternScores = patternSet;\n } else {\n patternScores.putAll(patternSet);\n }\n if (patternQueue == null) {\n patternQueue = new PriorityQueue<Pattern>(100,\n new Comparator<Pattern>() {\n\n public int compare(Pattern p1, Pattern p2) {\n return -patternScores.get(p1).compareTo(patternScores.get(p2));\n }\n\n public boolean equals(Object object) {\n if (object == this) {\n return true;\n }\n return false;\n }\n });\n }\n Iterator<Pattern> patIter = patternSet.keySet().iterator();\n while (patIter.hasNext()) {\n Pattern p = patIter.next();\n double d = patternScores.get(p);\n if (getMaxPatterns() > 0 && patternCounter.size() == getMaxPatterns()) {\n if (patternScores.get(patternCounter.first()) >= d) {\n continue;\n } else {\n patternScores.remove(patternCounter.first());\n if (!patternQueue.remove(patternCounter.first())) {\n Pattern drop = patternCounter.first();\n String[] dropElems = drop.split();\n for (int i = 0; i < dropElems.length; i++) {\n // TODO: Fix here\n if (patternsByElems.get(dropElems[i]) == null) // Unlikely but possible\n {\n continue;\n }\n patternsByElems.get(dropElems[i]).remove(drop);\n if (patternsByElems.get(dropElems[i]).isEmpty()) {\n patternsByElems.remove(dropElems[i]);\n }\n }\n }\n firePatternDropped(patternCounter.first());\n patternCounter.remove(patternCounter.first());\n }\n }\n if (d < getScoreFilter()) {\n continue;\n }\n patternQueue.add(p);\n firePatternGenerated(p, d);\n }\n }", "title": "" }, { "docid": "50345f8819694ec412d6924f2bcda1af", "score": "0.53549", "text": "@Override\n\tpublic void reset() {\n\t\tprey = new ArrayList<Prey>();\n\t\tpredators = new ArrayList<Predator>();\n\t\t\n\t\tfor (Prey creature : preyDupe) {\n\t\t\tprey.add((Prey) creature.copy());\n\t\t}\n\t\t\n\t\tfor (Predator creature : predatorsDupe) {\n\t\t\tpredators.add((Predator) creature.copy());\n\t\t}\n\t}", "title": "" }, { "docid": "49e808703fa7f3950b0602c9b91862e1", "score": "0.5347768", "text": "public void reset() {\n //initializes -1 for impossible choice (invalid plane position)\n //with 0 for possible choice\n for(int i = 0; i < maxChoiceNo; i++)\n {\n Plane pl = mapIndexToPlane(i);\n if (pl.isPositionValid(m_row, m_col))\n m_choices.set(i, new Integer(0));\n else\n m_choices.set(i, new Integer(-1));\n }\n\n //clears various lists in the computerlogic object\n m_guessedPlaneList.clear();\n //m_guessedHeadList.clear();\n m_guessesList.clear();\n m_extendedGuessesList.clear();\n m_headDataList.clear();\n }", "title": "" }, { "docid": "c334ce3707ed7b89d3a00bf5f569c6b0", "score": "0.5343733", "text": "private static void clear(){\n }", "title": "" }, { "docid": "6ff88b1b9ccb369f074f41613ad99d5e", "score": "0.53401554", "text": "public void clear(){\r\n first = null;\r\n last = null;\r\n numLinks = 0;\r\n }", "title": "" }, { "docid": "b42852f4af8fa97a19181baf7c1b0d9b", "score": "0.5331326", "text": "public void reset() {\n this.set = createNewSet(Collections.EMPTY_LIST);\n this.skipped = new HashSet();\n \n currentItem = 0;\n }", "title": "" }, { "docid": "f741b1f0b05ba0c2fc4b0c2a0acd992e", "score": "0.5330924", "text": "public void reset(){\n\t\tcurIndex_ = 0;\n\t}", "title": "" }, { "docid": "741d840aeadffb01230ec2ad467bd0b5", "score": "0.5327696", "text": "public void clear_buffer(String dir){\n //valid UDLR A ALL\n if(dir == \"A\"){\n this.clear_buffer(\"U\");\n this.clear_buffer(\"D\");\n this.clear_buffer(\"L\");\n this.clear_buffer(\"R\");\n\n }\n else if(dir == \"U\"){\n\n }\n else if(dir == \"D\"){\n\n }\n else if(dir == \"L\"){\n\n }\n else if(dir == \"R\"){\n\n }\n\n }", "title": "" }, { "docid": "8bb26900d1acde9918aa47f8aa0203f4", "score": "0.5319399", "text": "public void reset(){\n this.delta.clear();\n }", "title": "" }, { "docid": "2e883b614d3e18d951ec912115973037", "score": "0.531476", "text": "public void clear() {\n\t\tsum = 0;\n\t\tcorrection = 0;\n\t}", "title": "" }, { "docid": "eb8a041822c0c76f1461895c8597b1e9", "score": "0.5311648", "text": "abstract public void clearAll();", "title": "" }, { "docid": "dd5b45e3782d374a1c63336d4c6eb904", "score": "0.5306404", "text": "public void reset(){\n\t\tif(isDone) return;\n\t\tappliedTo = appliedToD = 0;\n\t\t\n\t}", "title": "" }, { "docid": "05113362b017b8005906cae0df8bd868", "score": "0.5302859", "text": "private void clearTimes() {\n \n times_ = 0;\n }", "title": "" }, { "docid": "6eb41ea798ab131fc564e2d092f25f59", "score": "0.5299578", "text": "public void reset() {\n\t\tsofar = 0;\n\t\tif (next != null) { next.reset(); }\n\t}", "title": "" }, { "docid": "392b9a03c07a08c10577a1db0d5cba93", "score": "0.5297617", "text": "private void reset() {\n }", "title": "" }, { "docid": "6692b7e18eec62896da13025826c8562", "score": "0.52956253", "text": "public void clear() {\n\t\tthis.b_InPosition = false; \r\n\t}", "title": "" }, { "docid": "aab66a63718eb6ec89d1057abdc26063", "score": "0.5295347", "text": "public void reset() {\n for (Snake snake :\n pileOfSnakes) {\n snake.endSnake();\n\n }\n pileOfSnakes.clear();\n drawStarterMap();\n }", "title": "" }, { "docid": "df9f62c22be7da61a3a3792e41b22df7", "score": "0.52882344", "text": "private static void clear() {\r\n\t\tfor (int i = 0; i < sources.length; i++) {\r\n\t\t\tif (sources[i] != null) {\r\n\t\t\t\tsources[i].destroy();\r\n\t\t\t\tsources[i] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a0efa25fe958f6964d4dacedfc5b3649", "score": "0.5287363", "text": "private static void clear(){\r\n\r\n\t\tbmd = Double.MIN_VALUE;\r\n\t\tweight = Double.MIN_VALUE;\r\n\t\tPfx = 0;\r\n\t\tnbFalls = 0;\r\n\r\n\t\tfalls.clear();\r\n\t\tfractures.clear();\r\n\t\tbmdMeasurements.clear();\r\n\t\tweightMeasurements.clear();\r\n\r\n\t\tbmdMeasurement = null;\r\n\t\tweightMeasurement = null;\r\n\r\n\t\tindexDateToWeight = null;\r\n\t\tindexDateToBMD = null;\r\n\t}", "title": "" }, { "docid": "d60505f8025d532771eb9246b744bbbb", "score": "0.52871096", "text": "public void resetAll();", "title": "" }, { "docid": "f1f94f97f0ca5b31379635315e4cd25d", "score": "0.5286671", "text": "private void clearGraphic(){\n while(!arena.attackGraphic.empty()){\n //System.out.println(\"line clear\");\n paneArena.getChildren().remove(arena.attackGraphic.pop());\n }\n }", "title": "" }, { "docid": "a07eab9eff84ef1f473b659f92e7965e", "score": "0.52805287", "text": "public void clear() {\n for (int i = 0; i < offset.length; i++) {\n offset[i] = 0;\n }\n count = 0;\n }", "title": "" }, { "docid": "ef371a9427c8e0e4a6c95ea4c977f15c", "score": "0.5279507", "text": "protected void clear()\r\n/* 175: */ {\r\n/* 176:432 */ this.contents = null;\r\n/* 177: */ }", "title": "" }, { "docid": "43f38d12a808c907bbb1b1a948737e58", "score": "0.5278056", "text": "protected abstract void clear();", "title": "" }, { "docid": "995a9ba1d86531d570159894d4be63be", "score": "0.5270788", "text": "void reset()\n {\n // DO NOT reset the frameNumber\n center.x = -1.0;\n center.y = -1.0;\n size.width = -1.0;\n size.height = -1.0;\n angle = -1.0;\n fixedAngle = -1.0;\n\n isFreshData = false;\n isTargetFound = false;\n }", "title": "" }, { "docid": "00248f47b728f2b637369bdf7b08f81c", "score": "0.5266005", "text": "@Override\n\tpublic void reset() {\n\t\tsuper.clear();\n\t\t\n\t}", "title": "" }, { "docid": "301f70d8e2278769c9cddb7689cf7529", "score": "0.5264952", "text": "public void reset() {\n\t\tthis.nextProgramPosition = 0;\n\t}", "title": "" }, { "docid": "90a7db209445d08d141f942499f6a15c", "score": "0.52611405", "text": "private void reset() {\n this.timer.restart();\n this.setNewShapesList();\n elapsedTime = 0;\n }", "title": "" }, { "docid": "cffe08d31f15aeaa459c9b04304370f2", "score": "0.525642", "text": "public void clear()\n\t{\n\t\tpathList.clear();\n\t\tcurrentPath = new Path();\n\t\tinvalidate();\n\t}", "title": "" }, { "docid": "6d7cd59c0bba85c2237a4d86383fb61c", "score": "0.5255969", "text": "public void cleanStops() {\n for(int i = 0; i < 21; i++) {\n toStop[i] = false;\n }\n }", "title": "" }, { "docid": "d53b487f55352205a621e034d77a7659", "score": "0.5249334", "text": "public final void reset()\r\n {\r\n frameAnnotation.reset();\r\n deleted = false;\r\n fillFrame = false;\r\n }", "title": "" }, { "docid": "d0a2cb952e55af6132f273565ac890f2", "score": "0.5247698", "text": "public void reset() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tppCorner.get(i).set(0,0);\n\t\t\tppDown.get(i).set(0,0);\n\t\t\tppRight.get(i).set(0,0);\n\t\t}\n\t\tthis.threshCorner = 0;\n\t\tthis.threshDown = 0;\n\t\tthis.threshRight = 0;\n\t\tversion = -1;\n\t\terror = L;\n\t\tmask = QrCodeMaskPattern.M111;\n\t\talignment.reset();\n\t\tmode = Mode.UNKNOWN;\n\t\tfailureCause = Failure.NONE;\n\t\trawbits = null;\n\t\tcorrected = null;\n\t\tmessage = null;\n\t}", "title": "" }, { "docid": "41dbee6eb43a196ee1e346206ad072d2", "score": "0.52461267", "text": "private void clearPreviousOptions() {\n extractedOptions.clear();\n optionStarts.clear();\n optionEnds.clear();\n }", "title": "" }, { "docid": "4b0cde5565ec5344b0c96b6d85fcde3b", "score": "0.52447045", "text": "public void clear() {\n lines.clear();\n }", "title": "" }, { "docid": "4b0cde5565ec5344b0c96b6d85fcde3b", "score": "0.52447045", "text": "public void clear() {\n lines.clear();\n }", "title": "" }, { "docid": "fde8373ed2571ceb8428d959a8ded61c", "score": "0.52403253", "text": "abstract protected void reset();", "title": "" }, { "docid": "2737a905047d411a1372644c0ae70116", "score": "0.5237117", "text": "private void clean(Set<DatalogRule> dlg) {\n\t\tIterator<DatalogRule> it = dlg.iterator();\n\t\t\n\t\twhile(it.hasNext()) {\n\t\t\tDatalogRule r = it.next();\n\t\t\tif(!this.rtd.exists(r)) {\n\t\t\t\tif(test) this.profiler.trace(r.toString() + \"\\n\");\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3f7429218f77c035466b7142cfacba11", "score": "0.5236349", "text": "public void reset() {\r\n this.fks.clear();\r\n this.clauses.clear();\r\n this.inClauses.clear();\r\n this.outClauses.clear();\r\n }", "title": "" }, { "docid": "cab99ab69694fcc15c9ebf1ac321e6d0", "score": "0.5231251", "text": "private void resetCrane() {\r\n containerPathUp.clearWayPoints();\r\n containerPathDown.clearWayPoints();\r\n cranePath.clearWayPoints();\r\n newCranePath.clearWayPoints();\r\n cranePathBack.clearWayPoints();\r\n cranePathCounter = 0;\r\n newCranePathCounter = 0;\r\n containerPathUpCounter = 0;\r\n containerPathDownCounter = 0;\r\n cranePathBackCounter = 0;\r\n containerPathUp = new MotionPath();\r\n containerPathDown = new MotionPath();\r\n cranePath = new MotionPath();\r\n newCranePath = new MotionPath();\r\n cranePathBack = new MotionPath();\r\n }", "title": "" }, { "docid": "ed17178ce72196bcac0cf236a36afdad", "score": "0.5227794", "text": "public void clear () {\r\n \t\tcreateSingleSegment(null);\r\n \t}", "title": "" }, { "docid": "ec3f813fe586efa1eff22a7091b3c5e1", "score": "0.52277446", "text": "public void testMatchingEmpty() {\n pattern = new ProductionPattern(P1, \"P1\");\n alt = new ProductionPatternAlternative();\n alt.addProduction(P2, 0, -1);\n alt.addToken(T1, 0, 1);\n alt.addProduction(P1, 0, 1);\n addAlternative(pattern, alt);\n assertTrue(pattern.isMatchingEmpty());\n }", "title": "" }, { "docid": "543b6f671a32e9ff4b296d38c587ef44", "score": "0.5226914", "text": "public void reset() {\n\n\t\t}", "title": "" }, { "docid": "5021c8e722b525ec5cbd83f925081ccf", "score": "0.5222361", "text": "public static void clearRoute() {\n shortestPath = new LinkedList<>();\n }", "title": "" }, { "docid": "85ef48e49ca29df14f955fbac5f3768c", "score": "0.52199227", "text": "public void clearSinks() {\n obj1 = new Object();\n objs1 = new Object[]{new Object()};\n }", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "5ecc5b98ac25f6c7620c364eea677f0c", "score": "0.52159613", "text": "public void reset();", "title": "" }, { "docid": "71c128d7c17ffd726bf20ec0f8fc4c85", "score": "0.5210845", "text": "private Pattern removeNext(Pattern p) {\n\t\tPattern ret;\n\t\tif (p == null) {\n\t\t\tret = firstchild;\n\t\t\tif (firstchild == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tfirstchild = firstchild.next;\n\t\t\treturn firstchild;\n\t\t}\n\t\tret = p.next;\n\t\tif (ret == null) {\n\t\t\treturn null;\n\t\t}\n\t\tp.next = ret.next;\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "4b7042e47d3bb675de8bf6e9d1570bc3", "score": "0.52097833", "text": "@Override\r\n\t\t\tpublic void reset()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2fc54381eb60f99625366381d30a276b", "score": "0.52094716", "text": "public void clear();", "title": "" }, { "docid": "2fc54381eb60f99625366381d30a276b", "score": "0.52094716", "text": "public void clear();", "title": "" }, { "docid": "2fc54381eb60f99625366381d30a276b", "score": "0.52094716", "text": "public void clear();", "title": "" }, { "docid": "2fc54381eb60f99625366381d30a276b", "score": "0.52094716", "text": "public void clear();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7443d5575104a8ccc79c5f81f760f1d6", "score": "0.0", "text": "@Override\n\tpublic boolean fire(String trigger) {\n\t\treturn false;\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": "" } ]
ebcc68b2ba6771b723baa66ea1e535d1
Sets the name of this map.
[ { "docid": "05452ceca2f7ab8a281f50533ed601d1", "score": "0.0", "text": "PersistentMapBuilder<K, V> withName(String name);", "title": "" } ]
[ { "docid": "d47a3f5aa93f9c261cba545182b52ea8", "score": "0.8570044", "text": "@SuppressWarnings(\"unused\")\n private void setMapName(String name) {\n this.mapName = name;\n }", "title": "" }, { "docid": "1e2232b80021d3e52500b644e82d709d", "score": "0.75891024", "text": "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_marker.setName(name);\n\t}", "title": "" }, { "docid": "9b0d2e41603e71f3a9209b94119b9bba", "score": "0.7477964", "text": "@Internal\n void setName(String name);", "title": "" }, { "docid": "033ff596826c596a36468b921c209243", "score": "0.73561335", "text": "public void setName(String name) {\n this.name.set(name);\n }", "title": "" }, { "docid": "ae62e9beee4c56b41ea998e9b207f3a7", "score": "0.7346297", "text": "public void setName(String name) {\n\t\tmName = name;\n\t}", "title": "" }, { "docid": "c94f604559e40d89099d1bc2235576fb", "score": "0.7341549", "text": "public void setName(final String name) {\n set(NAME, name);\n }", "title": "" }, { "docid": "1feaa9d4c78b57907d30add59b210d52", "score": "0.73403496", "text": "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "e5bb7422492704544060d93004088252", "score": "0.733719", "text": "public void setName(String name) {\n\t\tm_name = name.intern();\n\t}", "title": "" }, { "docid": "f999a6584567f2b433082c751772483c", "score": "0.7335861", "text": "@Override\r\n public void setName(String name) {\r\n this.name = name;\r\n }", "title": "" }, { "docid": "106816431523ed914bb96ecbdce54e52", "score": "0.7334968", "text": "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "106816431523ed914bb96ecbdce54e52", "score": "0.7334968", "text": "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "106816431523ed914bb96ecbdce54e52", "score": "0.7334968", "text": "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "3b5c0efb66f1d92805e0d47c178d76c3", "score": "0.73287696", "text": "public void setName(String name) {\n\t\t_name = name;\n\t}", "title": "" }, { "docid": "3b5c0efb66f1d92805e0d47c178d76c3", "score": "0.73287696", "text": "public void setName(String name) {\n\t\t_name = name;\n\t}", "title": "" }, { "docid": "2009fe1d9b61b77a7a289635c61571a5", "score": "0.73164946", "text": "@Override\n\tpublic void setName(String name) {\n\t\tthis.name= name;\n\t}", "title": "" }, { "docid": "fc17011bd0f2e4452f5d8747b4d4218c", "score": "0.7305673", "text": "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "title": "" }, { "docid": "c7a5bacee8c049ddfd9ec6740658480d", "score": "0.7297135", "text": "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "c7a5bacee8c049ddfd9ec6740658480d", "score": "0.7297135", "text": "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "ab544d2992d9d21b0b0010b18ba91d44", "score": "0.72954094", "text": "public void setName (String name) {\n this.nameProperty().set(name);\n }", "title": "" }, { "docid": "3031c3494dac1605d166ba63ce14bb89", "score": "0.7294345", "text": "private void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "3018401d759c925f1283b0304d9ce004", "score": "0.7293786", "text": "public void setName(String name) {\r\n _name = name;\r\n }", "title": "" }, { "docid": "a123a507275162cf1f80145c134267f4", "score": "0.7286803", "text": "public void setName (String name){\r\n \tthis.name = name;\r\n }", "title": "" }, { "docid": "7060d37a889dad28d04757640aada60e", "score": "0.7285583", "text": "public void setName(String name) {\n\t\tthis.mName = name;\n\t}", "title": "" }, { "docid": "df25e7ab7aec8c373c808f1c6fdf2725", "score": "0.7285386", "text": "public void setName(String name)\n {\n mName = name;\n }", "title": "" }, { "docid": "9e95f4df714f50c59de943e2f6ea787d", "score": "0.7281055", "text": "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "8dd59c19552831b616f64814cde299f9", "score": "0.7278804", "text": "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "f0b4d3ef743d2c246eafe20b5dd3b358", "score": "0.7278298", "text": "public void setName(String name) {\n _name = name;\n }", "title": "" }, { "docid": "f5205500986f5f43729de2cb5983e57e", "score": "0.72781867", "text": "public void setName(String name) {\n mName = name;\n }", "title": "" }, { "docid": "a1294f5184991ef19e5d81e58bf391ac", "score": "0.72680074", "text": "public void setName(String name) {\n name_ = name;\n }", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "1c4dcfa8581a236082a24946432b95a4", "score": "0.72660625", "text": "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "c235389d7e8bac65d8836e797a980e76", "score": "0.726465", "text": "public void setName( String name )\n\t{\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "5824af2408977cda3e21b5cd3d35a24e", "score": "0.7263992", "text": "public void setName(String name)\r\n \t{\r\n \t\tthis.name = name;\r\n \t}", "title": "" }, { "docid": "8ae55bd95f4e9f1389fb56fd6242dfac", "score": "0.72623926", "text": "public void setName(String name)\r\n\t{\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "8ae55bd95f4e9f1389fb56fd6242dfac", "score": "0.72623926", "text": "public void setName(String name)\r\n\t{\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "b56edb7025174b5f470c3a6f9942e459", "score": "0.726236", "text": "public void setName(final String name) {\n this.name = name;\n }", "title": "" }, { "docid": "b56edb7025174b5f470c3a6f9942e459", "score": "0.726236", "text": "public void setName(final String name) {\n this.name = name;\n }", "title": "" }, { "docid": "7189e45f865f5aca51cbf3d46c6729df", "score": "0.7257235", "text": "public void setName( String name ) {\n this.name = name;\n }", "title": "" }, { "docid": "0a32452c282531fe20c7989bfd3fea88", "score": "0.7254561", "text": "public void setName(String name)\r\n {\r\n _name = name;\r\n }", "title": "" }, { "docid": "1fd01299dc39d336cfca2ecc49c8687d", "score": "0.7254401", "text": "public void setName(String name) {\n\t\tthis.name = name; \n\t}", "title": "" }, { "docid": "9678b1cf1c7842f075f27692a03f681e", "score": "0.7253358", "text": "public void setName(String name) { \n\t\tthis.name = name; \n\t}", "title": "" }, { "docid": "50dc55e9ff7f77786d1d20b975b5c7ae", "score": "0.72511655", "text": "public void setName(String name) {\r\n\t\t\tthis.name = name;\r\n\t\t}", "title": "" }, { "docid": "e60101b84f20c48da98798e185a28120", "score": "0.72498375", "text": "public void setName(String name) {\n\n this.name = name;\n }", "title": "" }, { "docid": "3456e5f44f4a9c5c6bf889928f5dc12a", "score": "0.72495306", "text": "public void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "3456e5f44f4a9c5c6bf889928f5dc12a", "score": "0.72495306", "text": "public void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "cf4aa0a559a7fcdafb0d25b1820340be", "score": "0.72494984", "text": "public void setName(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t}", "title": "" }, { "docid": "81712251f635ec1de0d6ebe05434cfbb", "score": "0.7249477", "text": "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "title": "" }, { "docid": "81712251f635ec1de0d6ebe05434cfbb", "score": "0.7249477", "text": "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "title": "" }, { "docid": "3d9f6a3562cb3ea6d12c191e0bf44069", "score": "0.72477365", "text": "public void setName(String name)\n {\n \tthis.name = name;\n }", "title": "" }, { "docid": "4d47a2912d7f829a8afe1b3c19598c08", "score": "0.7247087", "text": "public void setName(String name){\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "7ac6aa55cabed3c191761e76ac876714", "score": "0.72459483", "text": "@Override\r\n\tpublic void setName(String _name) {\r\n\t\tthis.name = _name;\r\n\t}", "title": "" }, { "docid": "78994b1409175cf81a4914e45c3baa34", "score": "0.72453785", "text": "public void setName(String name){\n\t\tthis.name = name; \n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9b790cc9910470e9ce4d6a07d887bb69", "score": "0.7244844", "text": "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "3a9ebc70a833345caf8cfc0d0deb6f6a", "score": "0.0", "text": "@Override\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6682903", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6682903", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.6570819", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.6483202", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.6436131", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63750404", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.6315794", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.62355125", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.62232745", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.6216356", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.6197969", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.617857", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61595005", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61595005", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61595005", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.6095921", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60710156", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.606665", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.60510606", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.6050463", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60399127", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.60261655", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.60259384", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021195", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.6011613", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.60086405", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.5997989", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.59801203", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5976588", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935894", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59223473", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59223473", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.5907052", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.59036565", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887088", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.58794814", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5866052", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.5865707", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853879", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5836262", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823675", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.57998157", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5781978", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.5770734", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.5763876", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5755245", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.57367027", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57364756", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.57176805", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.5717085", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5716718", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.5714074", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712992", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.57109976", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.57032174", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.57029223", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57026166", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.5686078", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.5682074", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5678869", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5678522", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5678522", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.56668913", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.5658092", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56481266", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.56441945", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.5637979", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.56295544", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.56291026", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.56222296", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.5615934", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5615673", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5615673", "text": "public final void mo63019a() {\n }", "title": "" } ]
c796b58334c3dff1b2e994799e8ebd3d
select and compose //
[ { "docid": "d55ace5a21fdbf228c77b105db4dd498", "score": "0.0", "text": "public JwSqlSelect getSelect()\n {\n JwSqlSelect st = createSelect();\n populateSelectColumnsToCompose(st, ALIAS);\n st.from(TABLE, ALIAS);\n return st;\n }", "title": "" } ]
[ { "docid": "e4f7fdb13bd84f322d2b79a5eb833adb", "score": "0.7627735", "text": "Select() {}", "title": "" }, { "docid": "b4edec97f5e7f174d1d380ab39e96e49", "score": "0.74726284", "text": "public void select();", "title": "" }, { "docid": "f7299b0204311470ef38983e87907890", "score": "0.7186653", "text": "protected abstract void select();", "title": "" }, { "docid": "23cfac3f6d90aa697f459ca2619ae42c", "score": "0.71339285", "text": "void select();", "title": "" }, { "docid": "f6a82914046d6ecad8822f46083ab633", "score": "0.69655865", "text": "public abstract void select();", "title": "" }, { "docid": "bc7969bab268420601fa1efe1e6d0fa2", "score": "0.6805692", "text": "boolean select();", "title": "" }, { "docid": "97ef77f5353a2d73e3b011c0dfa73c45", "score": "0.6799803", "text": "@Override\n\tpublic void select() {\n\t\t\n\t}", "title": "" }, { "docid": "84fd87a010d60e44b16cb6ba6737d2ba", "score": "0.67311543", "text": "<TResult> Stream<TResult> select(Selector<T, TResult> selector);", "title": "" }, { "docid": "8a98e6574fb3e6afa2db642fc654957b", "score": "0.6717636", "text": "@Override\r\n\tprotected void select() {\n\t\t\r\n\t}", "title": "" }, { "docid": "308522cf378951d04eaa99ef794fed9f", "score": "0.65389943", "text": "@Override\r\n\tpublic void select() {\n\r\n\t}", "title": "" }, { "docid": "079d9b9b7a08cf0f638f5c05a8162f50", "score": "0.65130246", "text": "@Override\n public void select(int arg0) {\n \n }", "title": "" }, { "docid": "dc5e2ff450bad20ef474cd838f989191", "score": "0.64406663", "text": "public State select();", "title": "" }, { "docid": "7b15a06f7fd47ba907a4f4e047a44e48", "score": "0.63387936", "text": "public void select() {\n selectAll();\n super.select();\n }", "title": "" }, { "docid": "a5fae8bc96d49d9658bde606823a65aa", "score": "0.6171868", "text": "@Override\n public void select() {\n super.select();\n }", "title": "" }, { "docid": "2e27a9ac76e83f73f27f7a8a5666bcd2", "score": "0.61699134", "text": "public interface SelectCollect {\n\n void changeSize(int newSize);\n\n void select(int position);\n void select(Iterable<Integer> selectIndex);\n void selectAll();\n void deselect(int position);\n void deselect(Iterable<Integer> deselectIndex);\n void deselectAll();\n void toggleSelection(int position);\n\n Set<Integer> getSelections();\n boolean isSelect(int position);\n\n void swap(int from, int to);\n void removeItem(int position);\n void insertItem(int position);\n}", "title": "" }, { "docid": "44c2a979160606ca137636447430305e", "score": "0.61665756", "text": "public Select select() { return new Select(context); }", "title": "" }, { "docid": "ea4a0b0abd44f58625f74285b03867b2", "score": "0.61462784", "text": "protected List<T> select() {\r\n\t\treturn selection.selectionOf(population, elitist);\r\n\t}", "title": "" }, { "docid": "bd26a9964d260802729a604588de0949", "score": "0.60721695", "text": "public Select() {}", "title": "" }, { "docid": "0fef0ca73244117ba3479827b2c4584e", "score": "0.59164643", "text": "@Test\n public void testSelect() {\n TestTuple t = new TestTuple(testData);\n\n Fields f = new Fields(\"integer\", \"string\");\n List<Object> results = t.select(f);\n Assert.assertEquals(2, results.size());\n Assert.assertEquals(1, results.get(0));\n Assert.assertEquals(\"1\", results.get(1));\n }", "title": "" }, { "docid": "f7aad2539dd92490dddc4070f9ec8699", "score": "0.5913955", "text": "<T> T select(final List<T> elements);", "title": "" }, { "docid": "5cad09118c97e1b400808b47e98e574b", "score": "0.58792543", "text": "public void select(T toBeSelected);", "title": "" }, { "docid": "947d0d86c7ffd3bbaff4fea79a2492e1", "score": "0.5802687", "text": "long select(long j);", "title": "" }, { "docid": "760ba10c8dd3699abea4159b3def1365", "score": "0.57909024", "text": "@Override\n public default RowSet select() {\n return build().select();\n }", "title": "" }, { "docid": "49141e07862f67f60a9c23d53e740188", "score": "0.5744318", "text": "protected abstract Selector<Variable> findElect();", "title": "" }, { "docid": "31cce52bd4fcf7f284be5778b3729e5b", "score": "0.5717484", "text": "public interface ValueSelector {\n void accept(String value);\n String select();\n}", "title": "" }, { "docid": "5c96172e8b14e8e23c6dbcd51021d8f2", "score": "0.5676231", "text": "@Override\r\n\tpublic Collection defineSelect() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "dceeff1232cc81cc762edcf440d553f6", "score": "0.5663694", "text": "@Override\n\tpublic void visit(SubSelect arg0) {\n\n\t}", "title": "" }, { "docid": "8bbb609a58f785ab85f80b4b03662b6e", "score": "0.5651469", "text": "@Override\r\n\tpublic Special select(Integer sid) {\n\t\treturn specialMapper.select(sid);\r\n\t}", "title": "" }, { "docid": "d362eae586f1736d837ded823ead613b", "score": "0.56336886", "text": "@SuppressWarnings(\"unchecked\")\r\n \tprivate OclRoot evaluateSelect(OclExpression body,\r\n \t\t\tOclCollection<OclRoot> source, Variable iterator, Type resultType) {\r\n \r\n \t\t/* Eventually log the entry of this method. */\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t\t\t.debug(\"evaluateSelect(OclExpression, OclCollection<OclRoot>, Variable, Type) - start\");\r\n \t\t}\r\n \t\t// no else.\r\n \r\n \t\tOclRoot result;\r\n \r\n \t\tOclIterator<OclRoot> it = source.getIterator();\r\n \t\tList<OclRoot> resultList = new ArrayList<OclRoot>();\r\n \r\n \t\t/* Iterate over the collection. */\r\n \t\twhile (it.hasNext().isTrue()) {\r\n \r\n \t\t\tOclRoot anElement;\r\n \t\t\tOclBoolean bodyResult;\r\n \r\n \t\t\t/* Add an element to the environment. */\r\n \t\t\tanElement = it.next();\r\n \t\t\tenv.addVar(iterator.getQualifiedName(), anElement);\r\n \r\n \t\t\t/* Compute the body expression for an element. */\r\n \t\t\tbodyResult = (OclBoolean) doSwitch((EObject) body);\r\n \r\n \t\t\t/* Add the element to the result list if the body result is true. */\r\n \t\t\tif (bodyResult.isTrue()) {\r\n \t\t\t\tresultList.add(anElement);\r\n \t\t\t}\r\n \t\t\t// no else.\r\n \t\t}\r\n \t\t// end while.\r\n \r\n \t\t/* Convert the result list into a collection. */\r\n \t\tresult = this.getResultListAsCollection(resultList, resultType);\r\n \r\n \t\t/* Eventually log the exit of this method. */\r\n \t\tif (logger.isDebugEnabled()) {\r\n \r\n \t\t\tString msg;\r\n \r\n \t\t\tmsg = \"evaluateSelect(OclExpression, OclCollection\";\r\n \t\t\tmsg += \"<OclRoot>, Variable, Type) - end - return value=\" + result;\r\n \r\n \t\t\tlogger.debug(msg);\r\n \t\t}\r\n \t\t// no else.\r\n \r\n \t\treturn result;\r\n \t}", "title": "" }, { "docid": "f3641b01520d0eb59c6a33558008ef58", "score": "0.558602", "text": "public Component select(int x, int y);", "title": "" }, { "docid": "718b5b5834cedd63a20dd8a9974574c6", "score": "0.55706096", "text": "public abstract void selectAndReveal(int index);", "title": "" }, { "docid": "889d3d9f318a68b5d49a6f68ce7b1d97", "score": "0.55514127", "text": "void selectiveTransform(Predicate<ContainedType> nodePicker, UnaryOperator<ContainedType> transformer);", "title": "" }, { "docid": "0852d73b4fda5e32a4e042d6f0470b47", "score": "0.5544493", "text": "@Override\n\tpublic List<T> select(T record) {\n\t\treturn baseMapper.select(record);\n\t}", "title": "" }, { "docid": "2b0a423081bc99d7b6ec6636225b00b1", "score": "0.552982", "text": "private InMemorySelector transformCrossdataSelector(Selector selector){\n InMemorySelector result;\n if(FunctionSelector.class.isInstance(selector)){\n FunctionSelector xdFunction = FunctionSelector.class.cast(selector);\n String name = xdFunction.getFunctionName();\n List<InMemorySelector> arguments = new ArrayList<>();\n for(Selector arg : xdFunction.getFunctionColumns()){\n arguments.add(transformCrossdataSelector(arg));\n }\n result = new InMemoryFunctionSelector(name, arguments);\n }else if(ColumnSelector.class.isInstance(selector)){\n ColumnSelector cs = ColumnSelector.class.cast(selector);\n result = new InMemoryColumnSelector(cs.getName().getName());\n }else{\n result = new InMemoryLiteralSelector(selector.getStringValue());\n }\n return result;\n }", "title": "" }, { "docid": "2dd77a1d2b696d8b4c1b6dcb9bdd1c21", "score": "0.55252284", "text": "private void select() {\n\t \n\tthis.iter = new FileScan(this.schemas[0], new HeapFile(this.tableNames[0]));\n\tint n = 1;\n\twhile (n < this.tableNames.length){\n\t\tthis.iter = new SimpleJoin(this.iter, new FileScan(this.schemas[n], new HeapFile(this.tableNames[n])), new Predicate[0]);\n\t\t\n\t\tArrayList<Predicate[]> removepreds = new ArrayList<>();\n\t\tfor (Predicate[] pred : predicates){\n\t\t\tPredicate[][] predi = new Predicate[1][pred.length];\n\t\t\tpredi[0] = pred;\n\t\t\tif (isSelPossible(predi, this.iter)){\n\t\t\t\tthis.iter = new Selection(this.iter, pred);\n\t\t\t\tremovepreds.add(predi[0]);\n\t\t\t}\n\t\t}\n\t\tPredicate[][] corrpreds = new Predicate[predicates.length-removepreds.size()][predicates[0].length];\n\t\t\n\t\tfor (int i = 0; i<predicates.length; i++){\n\t\t\tif (!removepreds.contains(predicates[i])){\n\t\t\t\tcorrpreds[i] = predicates[i];\n\t\t\t}\n\t\t}\n\t\tpredicates = corrpreds;\n\t\t++n;\n\t}\n\tn = 0;\n\twhile (n < this.predicates.length){\n\t\tthis.iter = new Selection(iter, this.predicates[n]);\n\t\t++n;\n\t}\n\tif (this.columns.length > 0){\n\t\tInteger[] intarr = new Integer[this.columns.length];\n\t\tint index = 0;\n\t\twhile (index < this.columns.length){\n\t\t\tintarr[index] = this.schema.fieldNumber(this.columns[index]);\n\t\t\t++index;\n\t\t}\n\t\tthis.iter = new Projection(this.iter, intarr);\n\t}\n }", "title": "" }, { "docid": "8eddc2dbc8cc09992747ac0ea7d3348b", "score": "0.551369", "text": "public abstract boolean onSelect();", "title": "" }, { "docid": "83f29d37cee22c2ebec74d24f48c9047", "score": "0.55020523", "text": "@Override\n public void selectNext() {\n \n }", "title": "" }, { "docid": "ae5bbd48420e0a527d3f1520cf3c2ace", "score": "0.5496064", "text": "@FunctionalInterface\npublic interface Selection {\n\n Phenotype select(Population currentPopulation, Routes routes);\n}", "title": "" }, { "docid": "9eefeec0b1cbe628116a688937993bf1", "score": "0.5462059", "text": "List<ViewCbfp> selectByExample(ViewCbfpExample example);", "title": "" }, { "docid": "c923e8a92c8378738e1ebfed07cd0482", "score": "0.54606587", "text": "private Tree<Terminal> parseSelect(Terminal select) {\n\t\tTree<Terminal> result = new Tree<Terminal>(select);\n\t\t// create a synthetic node for the list of expressions \n\t\tTree<Terminal> list = new Tree<Terminal>(select.rename(\"list\", \"list\"));\n\t\tdo {\n\t\t\tlist.add(parseExp());\n\t\t} while (scanner.matches(\",\"));\n\t\tresult.add(list);\n\t\tscanner.expect(\"FROM\");\n\t\tresult.add(scanner.expect(\"ID\"));\n\t\tscanner.expect(\"WHERE\");\n\t\tresult.add(parseExp());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4a0f453dae8049fe66a5cf2390b1bdda", "score": "0.5454136", "text": "@Override\r\n\tpublic ResultSet select() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6a60c0ef6e434b118cb271981d18510a", "score": "0.54538816", "text": "public void select(GenericObject o) {\n\t\tselect(new GenericObject[] {\n\t\t\to\n\t\t});\n\t}", "title": "" }, { "docid": "8e722870aa0344abbd0b075b268a0e46", "score": "0.54507035", "text": "@Override\n public void selectFirst() {\n \n }", "title": "" }, { "docid": "67e81cc4368af6021d910edfabe178a2", "score": "0.54480296", "text": "public void doSelectReverse() {\n\t\t\n\t}", "title": "" }, { "docid": "ced4a5b7b3b45d731ddfef30fbab5fa6", "score": "0.5437134", "text": "OQueryRequest<T> select(String select);", "title": "" }, { "docid": "e26ad22c55509c26d75c2a90b7613c11", "score": "0.54250073", "text": "public Select (Operator operator, Predicate predicate) \n\tthrows EngineException {\n \n super(operator);\n this.predicate = predicate;\n returnList = new ArrayList<Tuple>();\n }", "title": "" }, { "docid": "083b9a55e4c9d88db85369775fc23d74", "score": "0.541966", "text": "List<Stuff> selectAll();", "title": "" }, { "docid": "e902cf70f799ec8d671aa9495349c49f", "score": "0.5399781", "text": "public MatchElementNavigation select()\n\t{\n\t\treturn new MatchElementNavigation(this, \"select\");\n\t}", "title": "" }, { "docid": "f55cc58588126640f079e2bb2ba1cd23", "score": "0.53758234", "text": "public R visit(SelectClause n, A argu) {\r\n R _ret=null;\r\n n.f0.accept(this, argu);\r\n n.f1.accept(this, argu);\r\n return _ret;\r\n }", "title": "" }, { "docid": "4db54b3784369f4e37ee19752b168026", "score": "0.53659266", "text": "List<Supplier> selectByExample(SupplierExample example);", "title": "" }, { "docid": "f4a0a63ae0c962360b3941d732d9289f", "score": "0.5361038", "text": "private void select(Square selecting) {\n if (Rule.canIselect(selecting)) {\n Rule.beforeMove(selecting); //<- polymorphic call starting here, go to(Rule line 153)\n selectedChess = selecting.getChess();\n selectedSquare = selecting;\n }\n }", "title": "" }, { "docid": "8c8f374fbb86479b8379e543ff380918", "score": "0.53471285", "text": "public void doSelect(SqlRunner str)\n{\n\tConsSqlQuery q = new ConsSqlQuery(ConsSqlQuery.SELECT);\n\tsbuf.getSelectCols(q, selectTable);\n\tq.addTable(selectTable);\n\tsetSelectWhere(q);\n\tsbuf.setRows(str, q.getSql());\n}", "title": "" }, { "docid": "6d0d3cf221d10c03672373e69c77c094", "score": "0.53209484", "text": "private void do_select_result_1(){\n\t\tboolean bool=this.doCommon();\n//\t\tif(bool){\n//\t\t\n//\t\t\tString oper=\"\";\n//\t\t\tString t1=\"\";\t\n//\t\t\tString t2=\"\";\n//\t\t\tList list=this.getResultList();\n//\t\t\tt2=\"-\";\n//\t\t\tif(list.size()==1){\n//\t\t\t\toper=\"ALL\";\n//\t\t\t\tt1=(String)list.get(0);\n//\t\t\t\tthis.showResult(oper, t1, t2);\n//\t\t\t}else if(list.size()==2){\n//\t\t\t\toper=(String)list.get(0);\n//\t\t\t\tt1=(String)list.get(1);\n//\t\t\t\tthis.showResult(oper, t1, t2);\n//\t\t\t}\n//\t\t\t\n//\t\t\t\n//\t\t}\n\t}", "title": "" }, { "docid": "9c7c66774000caf25d54421cce7406d2", "score": "0.5319236", "text": "Item select(ItemParam itemParam);", "title": "" }, { "docid": "5b020f942434db448a57965cfca1b633", "score": "0.5297601", "text": "public void select(int x, int y, int z) {\n instances.select(x, y, z);\n }", "title": "" }, { "docid": "614f50405017ebecf43ec478d1dacaa4", "score": "0.52930546", "text": "int select (double[] p);", "title": "" }, { "docid": "c62535417d8466691ee412a6823b07ae", "score": "0.52926934", "text": "List<GameUserReceiveHis> selectByExample(GameUserReceiveHisExample example);", "title": "" }, { "docid": "88d4196f33eec325c7d354c0940e45dc", "score": "0.5292092", "text": "String getSelect();", "title": "" }, { "docid": "1d46a991e5614a0f46d7eda2eb464e98", "score": "0.5287707", "text": "Shuxingduiying selectOneByExample(ShuxingduiyingExample example);", "title": "" }, { "docid": "8dd131e5a04c8dffe994beadaf15c2ba", "score": "0.52797234", "text": "Union selectByPrimaryKey(String id);", "title": "" }, { "docid": "37002159a57b2ac252310006391ad7f7", "score": "0.5248589", "text": "public static void main(String[] args)\r\n {\n\t postSelect();\r\n\r\n\r\n }", "title": "" }, { "docid": "2f4639e0579e12455bffda54faa9ebdf", "score": "0.5244529", "text": "Behavior getSelection();", "title": "" }, { "docid": "bd94b2ca9d527b69e3bcdcfa6b980442", "score": "0.5244312", "text": "public void run() {\n try {\n while (!Thread.interrupted()) {\n selector.select();\n Set<SelectionKey> selected = selector.selectedKeys();\n Iterator<SelectionKey> it = selected.iterator();\n while (it.hasNext()) {\n dispatch(it.next());\n }\n selected.clear();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "27795f13381adf091bf277bb93344267", "score": "0.5233141", "text": "List<Collections> selectByExample(CollectionsExample example);", "title": "" }, { "docid": "a245fa6c21b58cb6f18f96a6fcef08e6", "score": "0.5216431", "text": "public void SelectAll() ;", "title": "" }, { "docid": "6d40d0aa70f7180de8aeaf96459c78ad", "score": "0.5214904", "text": "public R visit(SelectOrGroupClause n, A argu) {\r\n R _ret=null;\r\n n.f0.accept(this, argu);\r\n return _ret;\r\n }", "title": "" }, { "docid": "c140225bec02ee02307c9c3921adb645", "score": "0.5211243", "text": "@Override\n protected R visitSelect(Select select, C context) {\n\n selectStatementStack.push(new SelectStatement(existingLineage));\n\n currentlyInside.push(Select.class);\n R node = visitNode(select, context);\n currentlyInside.pop();\n\n return node;\n }", "title": "" }, { "docid": "66e484c6a5536de6210383e6b5a969d3", "score": "0.5199992", "text": "public void selected(){\n\t}", "title": "" }, { "docid": "283fd8528c3927872e843a318eccd1f8", "score": "0.5197782", "text": "List selectByExample(THonorandotherExample example);", "title": "" }, { "docid": "ba6ee7375f75cacf3ed734e61a46bdd6", "score": "0.5193676", "text": "public ResultSet select(String select){ \n\ttry{\n\t this.stat = this.connection.createStatement();\n\t ResultSet resultset = this.stat.executeQuery(select);\n\t System.out.println(select);\n\t if(resultset != null){\n\t\tSystem.out.println(\"OK ... bien1.1\");\n\t }else{\n\t\tSystem.out.println(\"NO EXISTE INFORMACION\");\n\t }\n\t return resultset;\n\t}catch(Exception e){\n\t System.out.println(\"Error....\"+ e.toString());\n\t return null;\n\t}\n }", "title": "" }, { "docid": "e01b8ace6978c6371a030fafd6419d02", "score": "0.5193155", "text": "public Cube<T> select(Function<Data<T>, Boolean> function);", "title": "" }, { "docid": "aa010750b872cf41ad4d3f8e88030bfe", "score": "0.5184588", "text": "public interface CompiledRawSelect {\n /**\n * Execute this raw SELECT statement against a database.\n * <p>\n * This method runs synchronously in the calling thread.\n *\n * @return {@link Cursor} over the result set\n */\n @NonNull\n @CheckResult\n @WorkerThread\n Cursor execute();\n}", "title": "" }, { "docid": "bad61db008f06b86ed5b517db60b2fee", "score": "0.51842815", "text": "List selectByExample(Mi602Example example);", "title": "" }, { "docid": "4949bb536a4596c0e67f3a9746d767d4", "score": "0.5181497", "text": "@Override\n public ASTNode visitSelect(final SelectContext ctx) {\n SelectStatement result = (SelectStatement) visit(ctx.selectNoParens());\n result.setParameterCount(getCurrentParameterIndex());\n return result;\n }", "title": "" }, { "docid": "5f10e73f7684276129991d0809b94d22", "score": "0.5180718", "text": "List<VstBandejastrex> selectByExample(VstBandejastrexExample example);", "title": "" }, { "docid": "122226684eb9905f5aa55188ed750073", "score": "0.5175673", "text": "Object getSelectdValue();", "title": "" }, { "docid": "3111b07c5da9820361e7ba72a877ad4c", "score": "0.5171156", "text": "public T caseSelect(Select object)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "324e77ea6c4d8196c0cf6967f6709272", "score": "0.51700395", "text": "Shuxingduiying selectByPrimaryKeySelective(@Param(\"id\") Integer id, @Param(\"selective\") Shuxingduiying.Column ... selective);", "title": "" }, { "docid": "2ace21d1c046d8d345ae0fcb7886ae4d", "score": "0.51691055", "text": "public void select() {\n\t\tselected = true;\n\t}", "title": "" }, { "docid": "03479be5561f57d18ef7978d4edc4245", "score": "0.51613927", "text": "<X extends T> SelectQuery<X> basicSelect(SelectContext<X> context) {\n\t\tif (context.isById()) {\n\n\t\t\tClass<X> root = context.getType();\n\t\t\tSelectQuery<X> query = new SelectQuery<>(root);\n\t\t\tCollection<LrAttribute> idAttributes = context.getEntity().getLrEntity().getIds();\n\n\t\t\tif (idAttributes.size() != context.getId().size()) {\n\t\t\t\tthrow new LinkRestException(Status.BAD_REQUEST,\n\t\t\t\t\t\t\"Wrong compound ID size: expected \" + idAttributes.size() + \", got: \" + context.getId().size());\n\t\t\t}\n\t\t\tfor (LrAttribute idAttribute : idAttributes) {\n\t\t\t\tObject idValue = context.getId().get(idAttribute.getName());\n\t\t\t\tquery.andQualifier(ExpressionFactory.matchDbExp(\n\t\t\t\t\t\t((CayenneLrAttribute) idAttribute).getDbAttribute().getName(), idValue\n\t\t\t\t));\n\t\t\t}\n\n\t\t\treturn query;\n\t\t}\n\n\t\treturn context.getSelect() != null ? context.getSelect() : new SelectQuery<>(context.getType());\n\t}", "title": "" }, { "docid": "04ee6f38cc5d1bdbcdf123d62ab3ee45", "score": "0.51596177", "text": "List<Union> selectByExample(UnionExample example);", "title": "" }, { "docid": "efd93a98a725b8617e66f66333b8c137", "score": "0.5151388", "text": "List<Canteen> selectByExample(CanteenExample example);", "title": "" }, { "docid": "3615a2e2a1c461db006991fdfcd1c0e6", "score": "0.5149542", "text": "@Override\n\tpublic void selectOne(int no) {\n\t\t\n\t}", "title": "" }, { "docid": "734d406cdc91546d2e321053c1d54cb3", "score": "0.51490843", "text": "int select( String title, String[] options );", "title": "" }, { "docid": "5d4ebaf569ed620437156f5010f45502", "score": "0.5148479", "text": "@Override\r\n\tpublic List<Special> selects() {\n\t\treturn specialMapper.selects();\r\n\t}", "title": "" }, { "docid": "05cbdd131e591dbede432f0cdcf370cc", "score": "0.5142956", "text": "public People selectPeople(People people);", "title": "" }, { "docid": "0b6bc42fb60640e974e917f6cbbe2398", "score": "0.51407003", "text": "public void select() {\n selected = true;\n }", "title": "" }, { "docid": "c5c4dbd1d0cfa1d698bc96219ffd4428", "score": "0.5134523", "text": "@Override\n public void selectAll() {\n \n }", "title": "" }, { "docid": "489324946cd71b0ce80390c16a518dc4", "score": "0.51340306", "text": "@Override\r\n\tpublic List<Favorite> select() {\n\t\treturn mapper.select();\r\n\t}", "title": "" }, { "docid": "5c9d3a4883529692d68e06d065feb92b", "score": "0.5129758", "text": "public void select_all(boolean selected) {\r\n\t\tfor ( int i = size() - 1; i >= 0; --i)\r\n\t\t\tget( i).select( selected);\r\n\t}", "title": "" }, { "docid": "1eeb8f4e164da8a2fb48d14b0417f36c", "score": "0.5125055", "text": "List<LrbMargAct> selectByExample(LrbMargActExample example);", "title": "" }, { "docid": "9f94e3df35f6740c2445c3ab4f4a0242", "score": "0.512133", "text": "private int doSelect(Ruby runtime, ThreadContext context, IRubyObject timeout) {\n int result;\n\n cancelKeys();\n try {\n context.getThread().beforeBlockingCall();\n if(timeout.isNil()) {\n result = this.selector.select();\n } else {\n double t = RubyNumeric.num2dbl(timeout);\n if(t == 0) {\n result = this.selector.selectNow();\n } else if(t < 0) {\n throw runtime.newArgumentError(\"time interval must be positive\");\n } else {\n result = this.selector.select((long)(t * 1000));\n }\n }\n context.getThread().afterBlockingCall();\n return result;\n } catch(IOException ie) {\n throw runtime.newIOError(ie.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "f8ecebc0eb8dce06b92d7236ee71f0a2", "score": "0.5118519", "text": "public void select()\n {\n triangle.blick();\n }", "title": "" }, { "docid": "e58e6790e1c22d31023fe5e3deb94fad", "score": "0.51164824", "text": "List selectByExample(Mi621Example example);", "title": "" }, { "docid": "7f7029bb302d0a234d49687e47b40b77", "score": "0.5114773", "text": "List<WithDraw> selectByExample(WithDrawExample example);", "title": "" }, { "docid": "64a9d11c47c2210ebefa0a1cfa1acfff", "score": "0.51134384", "text": "public void doSelectColumn() {\n\t\t\n\t}", "title": "" }, { "docid": "09cae2bced401415b2754d5aae5bb60f", "score": "0.511302", "text": "public void select(Object item)\r\n\t {\r\n\t\t int index = objects.indexOf(item);\r\n\t\t if (index >= 0)\r\n\t\t\t super.select(index);\r\n\t }", "title": "" }, { "docid": "31f06557bf2ac147145eddab6e3615ec", "score": "0.51037604", "text": "private static GuardedByExpression getSelectInstance(GuardedByExpression guard) {\n if (guard instanceof Select) {\n return getSelectInstance(((Select) guard).base());\n }\n return guard;\n }", "title": "" }, { "docid": "ca783e673dab82b65a5f6636a58750c4", "score": "0.5097777", "text": "@Override\n public ASTNode visitSelect(final SelectContext ctx) {\n SelectStatement result = (SelectStatement) visit(ctx.unionClause());\n result.setParametersCount(currentParameterIndex);\n return result;\n }", "title": "" }, { "docid": "0803852d7987ab0376e39a58c992dee6", "score": "0.50971544", "text": "public interface Select extends MapperIdentifiableStatement, WithResultMap {\n\n}", "title": "" }, { "docid": "714be6cd4397717507c411ad5a1d74e0", "score": "0.5095861", "text": "public void doSelectNone() {\n\t\t\n\t}", "title": "" } ]
096719423f873328fd0be7795b47c129
Get the output data as an XML Document. This document will contain all the required data. The document root element is the &lt;data&gt; xml element. Example: ... GetConfig g = new GetConfig(c.getSession(), Datastore.candidate); SubtreeFilter sf = g.createSubtreeFilter(); Filter f = sf.addFilter(MyCapabilities.EXAMPLE); f.addFilterString("machines/machine|sysname=Linux"); g.setSubtreeFilter(sf); RpcReply rep = g.executeSync(rpcHandler); GetConfigReply grp = g.new GetConfigReply(rep); Document d = grp.getData(); DOMUtils.dump(d, System.out); ... Into the stdout is printed in the following XML Document (or something similar): Linux i686
[ { "docid": "d8abb68970b53eb4b103df945a5f855a", "score": "0.46284238", "text": "public Document getData() {\r\n\t\t\treturn data;\r\n\t\t}", "title": "" } ]
[ { "docid": "181c0e69b2ecc6342f0b8bc2211f9f77", "score": "0.5872075", "text": "public String getXMLData()\r\n {\r\n return xmlResult;\r\n }", "title": "" }, { "docid": "154c912213f2e53d81f884e77cb6a796", "score": "0.5593839", "text": "Collection<Element> getConfigXML();", "title": "" }, { "docid": "d01a2c50610ab204cf3aeecbf3e7e684", "score": "0.5447969", "text": "public Document getXMLDocumentReport() {\n\t\tdoc = docBuilder.newDocument();\n\t\tprepDocument(doc, \"\");\n\t\t\n\t\tif(changeSet instanceof StructuralChangeSet)\n\t\t\treturn getStructuralChangeSetReport((StructuralChangeSet)changeSet, doc, sf);\n\t\telse if(changeSet instanceof LogicalChangeSet)\n\t\t\treturn getLogicalChangeSetReport((LogicalChangeSet)changeSet, doc, sf);\n\t\telse\n\t\t\tthrow new Error(\"Invalid change set\");\n\t}", "title": "" }, { "docid": "73b7847ac3ceba76554872aaaa2770be", "score": "0.53658724", "text": "public GetConfigReply(RpcReply reply)\r\n\t\t{\r\n\t\t\tsuper(reply);\r\n\t\t\tdata = operation.getOutput().getAnyxmlValue(outData);\r\n\r\n\t\t}", "title": "" }, { "docid": "ce0aa83c2510f6f92cc7140614107522", "score": "0.52898216", "text": "public static Document getXML_DOC() {\n return XML_DOC;\n }", "title": "" }, { "docid": "2f3cf5538eece3cc086b21f85751dc87", "score": "0.5237702", "text": "public static String getServerConfigXML() {\n String fileName =\n basedir +\n File.separator + DIR_UPGRADE + File.separator +\n DIR_CONFIG + File.separator + BACKUP_SERVER_CONFIG_XML;\n return readFile(fileName);\n }", "title": "" }, { "docid": "0a2c284dca9528b4db96b30c8452d357", "score": "0.5225847", "text": "String getXmlDocumentContents();", "title": "" }, { "docid": "2f0f9448fe47c0ac1b188823151ecf02", "score": "0.5198992", "text": "public String dumpAsXml();", "title": "" }, { "docid": "0f2a2f83164a27175b504165e1eda5af", "score": "0.5120984", "text": "@GET\r\n @Path(\"message\")\r\n @Produces(MediaType.TEXT_PLAIN)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n Configuration cfg = new Configuration();\r\n String configStr = \"AIC: \" + cfg.getConfig(\"DATA.ASSET.LOADER.IP\");\r\n return configStr;\r\n }", "title": "" }, { "docid": "ebb12512cee741d48eb50c13333f413f", "score": "0.5078152", "text": "public String getXML() {\n StringBuilder retval = new StringBuilder();\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"name\", getName() ) );\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"description\", getDescription() ) );\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"type\", configId ) );\n\n retval.append( AttributesUtil.getAttributesXml( attributesMap ) );\n\n return retval.toString();\n }", "title": "" }, { "docid": "1c4dbbbf673c962f97a2ae41f4ccf733", "score": "0.50648695", "text": "public String toXMLString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tsb.append(String.format(\"<config type=\\\"%s\\\">%n\", XML_CONFIG_NAME));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"Enabled\", enableWriteback ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"MessageIdType\", messageIdType.name() ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"SendOnValueChange\", sendOnValueChange ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"SendInitialValue\", sendInitialValue ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"DataType\", dataType.name() ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"InitialValue\", initialValue ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"InitialId\", initialId ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"UsePrefix\", usePrefix ));\r\n\t\tsb.append(String.format(\"\\t<setting name=\\\"%s\\\">%s</setting>%n\", \"Prefix\", prefix ));\r\n\t\tsb.append(\"</config>\");\r\n\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "1f79f2391ede88edf1c37d30f7f1cdd5", "score": "0.50256544", "text": "private Document getDocumentFromRdf(String content)\n\t\t\tthrows AnalyzerException {\n\t\ttry {\n\t\t\tDocument xdoc;\t\t\n\t\t\txdoc = DocumentBuilderFactory.newInstance()\n\t\t\t\t\t.newDocumentBuilder().newDocument();\t\t\n\n\t\t\t// set root element of the output XML\n\t\t\tNode Response = xdoc.createElement(\"Response\");\n\t\t\txdoc.appendChild(Response);\t\t\n\t\t\t\n\t\t\t// build Geographies section to output XML\n\t\t\tenrichCompanies(createSection(\n\t\t\t\tResponse, \"Companies\", \"Company\", \n\t\t\t\t\"opencalais/companies.sparql\", content), content);\n\t\n\t\t\t// build Geographies section to output XML\n\t\t\tenrichGeo(createSection(\n\t\t\t\tResponse, \"Geographies\", \"Geography\", \n\t\t\t\t\"opencalais/geo.sparql\", content));\t\t\t\n\t\t\t\n\t\t\t// build Products section to output XML\n\t\t\tenrichProduct(createSection(\n\t\t\t\tResponse, \"Products\", \"Product\", \n\t\t\t\t\"opencalais/products.sparql\", content));\n\t\t\t\n\t\t\treturn xdoc;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tthrow new AnalyzerException(\"(EE) Error creating new DOM object for content\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "2448e5138b9b3665c94b533c9319fe3c", "score": "0.5022239", "text": "public Document getXMLDocument() {\n\n Element root = new Element(\"TextInventory\");\n root.setAttribute(\"registryid\", \"perseuscts\");\n root.setAttribute(\"tsversion\", \"1.0\");\n\n // TODO namespaces, ack\n root.addContent(createNamespaceElement(\"perseus\",\n \"Classical texts hosted by the Perseus Project at \" +\n \"Tufts University\"));\n\n Element otherNamespaces = new Element(\"namespaces\");\n otherNamespaces.addContent(createNamespaceElement(\"camena\",\n \"Texts from the CAMENA (Corpus Automatum Multiplex \" +\n \"Electorum Neolatinitatis Auctorum) project at the \" +\n \"University of Mannheim.\"));\n otherNamespaces.addContent(createNamespaceElement(\"ddbdp\",\n \"Papyri from the Duke Databank of Documentary Papyri.\"\n ));\n otherNamespaces.addContent(createNamespaceElement(\"mpi\",\n \"Texts from the Max Planck Institute.\"\n ));\n root.addContent(otherNamespaces);\n\n List<Corpus> corpora = new ArrayList<Corpus>();\n corpora.add(new Corpus(\n new Query(\"Perseus:collection:Greco-Roman\")));\n corpora.addAll(Corpus.getConglomerates());\n corpora.addAll(Corpus.getAuthorCorpora());\n\n // Only deal with classics for now. This may be all we ever want\n // to display, CTS-wise...\n for (int i = 0, n = corpora.size(); i < n; i++) {\n Corpus corpus = (Corpus) corpora.get(i);\n root.addContent(getCorpus(corpus));\n }\n\n root.addContent(getTextGroups());\n\n return new Document(root);\n }", "title": "" }, { "docid": "89127d38d64a27822869cbcd320ca652", "score": "0.5006031", "text": "public synchronized void saveConfigurationFromScratch(OutputStream out)\r\n throws IOException {\r\n\r\n // Get the JavaXML namespace\r\n Namespace ns = Namespace.getNamespace(\"JavaXML\",\r\n \"http://www.oreilly.com/catalog/javaxml/\");\r\n\r\n // Create the root element\r\n Element root = new Element(\"xmlrpc-config\", ns);\r\n Document doc = new Document(root);\r\n doc.setDocType(new DocType(\"JavaXML:xmlrpc-config\",\r\n \"DTD/XmlRpc.dtd\"));\r\n\r\n root.addChild(new Element(\"hostname\", ns)\r\n .setContent(hostname))\r\n .addChild(new Element(\"port\", ns)\r\n .addAttribute(\"type\", \"unprotected\")\r\n .setContent(portNumber + \"\"))\r\n .addChild(new Element(\"parserClass\", ns)\r\n .setContent(driverClass));\r\n\r\n Element handlersElement = new Element(\"handlers\", ns);\r\n Enumeration e = handlers.keys();\r\n while (e.hasMoreElements()) {\r\n String handlerID = (String)e.nextElement();\r\n String handlerClass = (String)handlers.get(handlerID);\r\n\r\n handlersElement.addChild(new Element(\"handler\", ns)\r\n .addChild(new Element(\"identifier\", ns)\r\n .setContent(handlerID))\r\n .addChild(new Element(\"class\", ns)\r\n .setContent(handlerClass))\r\n );\r\n }\r\n\r\n root.addChild(new Element(\"xmlrpc-server\", ns)\r\n .addChild(handlersElement));\r\n\r\n // Output the document, use standard formatter\r\n XMLOutputter fmt = new XMLOutputter();\r\n fmt.output(doc, out);\r\n }", "title": "" }, { "docid": "e1bdc6bf30c937457649c2ed9c9c7709", "score": "0.49679622", "text": "@Override\n public String getXMLData(final ResourceResolver resourceResolver, final String xmlDataUrl) throws ServletException, IOException {\n\n HttpServletRequest request = requestResponseFactory.createRequest(\"GET\", xmlDataUrl);\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n HttpServletResponse response = requestResponseFactory.createResponse(out);\n requestProcessor.processRequest(request, response, resourceResolver);\n return new String(out.toByteArray(), \"UTF-8\");\n }", "title": "" }, { "docid": "ed7cce5fac94f30a2e37a93a448da886", "score": "0.49598598", "text": "public String getXmlDocument( HttpServletRequest request )\r\n {\r\n return XmlUtil.getXmlHeader( ) + getXml( request );\r\n }", "title": "" }, { "docid": "77c930cfa0eaf78995f81605ab59bfc8", "score": "0.49440148", "text": "public ServerConfiguration getElementValues(){\n\t\t\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db;\n\t\tServerConfiguration serverConfiguration = new ServerConfiguration();\t;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\t/*\n\t\t\t * The hard coded reference to the config file should be changed \n\t\t\t */\n\t\t\tURL url = this.getClass().getResource(\"/resources/dcm4chee-config.xml\");\n\t\t\t\n\t\t\tInputSource is = new InputSource(url.openStream());\n\t\t\tdom = db.parse(is);\t\t\n\t\tNodeList root=dom.getElementsByTagName(\"server\");\t\t\n\t\tfor(int i=0;i<root.getLength();i++){\n\t\t\tElement element=(Element)root.item(i);\n\t\t\tNodeList aetitle=element.getElementsByTagName(\"aetitle\");\n\t\t\tElement aetitleElement=(Element)aetitle.item(0);\n\t\t\tserverConfiguration.setAeTitle(aetitleElement.getFirstChild().getNodeValue());\n\t\t\t\n\n\t\t\tNodeList hostname=element.getElementsByTagName(\"hostname\");\n\t\t\tElement hostnameElement=(Element)hostname.item(0);\n\t\t\tserverConfiguration.setHostName(hostnameElement.getFirstChild().getNodeValue());\n\n\t\t\tNodeList port=element.getElementsByTagName(\"port\");\n\t\t\tElement portElement=(Element)port.item(0);\n\t\t\tserverConfiguration.setPort(portElement.getFirstChild().getNodeValue());\n\n\t\t\tNodeList wadoport=element.getElementsByTagName(\"wadoport\");\n\t\t\tElement wadoportElement=(Element)wadoport.item(0);\n\t\t\tserverConfiguration.setWadoPort(wadoportElement.getFirstChild().getNodeValue());\n\t\t\t\n\t\t\tNodeList dcmProtocol=element.getElementsByTagName(\"dcmprotocol\");\n\t\t\tElement dcmProtocolElement=(Element)dcmProtocol.item(0);\t\t\t\n\t\t\tserverConfiguration.setDcmProtocol(dcmProtocolElement.getFirstChild().getNodeValue());\n\t\t\t\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Unable to get the values from the XML document. \"+e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn serverConfiguration;\n\t}", "title": "" }, { "docid": "6f4674d927de87e056021de7074921c1", "score": "0.48817715", "text": "public Document getXMLDocumentReportUsingGenSyms() {\n\t\tgenSymDoc = docBuilder.newDocument();\n\t\tprepDocument(genSymDoc, \"-gs\");\n\t\t\n\t\tif(changeSet instanceof StructuralChangeSet)\n\t\t\treturn getStructuralChangeSetReport((StructuralChangeSet)changeSet, genSymDoc, gp);\n\t\telse if(changeSet instanceof LogicalChangeSet)\n\t\t\treturn getLogicalChangeSetReport((LogicalChangeSet)changeSet, genSymDoc, gp);\n\t\telse\n\t\t\tthrow new Error(\"Invalid change set\");\n\t}", "title": "" }, { "docid": "bb3a4f69a299de02429699cac2f31c69", "score": "0.48657417", "text": "public ObjectNode getConfig() {\n return config;\n }", "title": "" }, { "docid": "abfa771810c29fdb3678674332b6dc34", "score": "0.48438296", "text": "private Document createDOMTree() {\n\t\tDocumentBuilderFactory factory;\n\t\tDocumentBuilder builder;\n\t\tDocument document;\n\t\tElement elemLocalSimilarities, elemLocalSim;\n\t\tIterator it;\n\t\tCBRGlobalSimilarity globalSim;\n\n\t\ttry {\n\t\t\t// Create document.\n\t\t\tfactory = DocumentBuilderFactory.newInstance();\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\tdocument = builder.newDocument(); // Create from whole cloth\n\n\t\t\t// <LocalSimilarities>.\n\t\t\telemLocalSimilarities = document\n\t\t\t\t\t.createElement(\"GlobalSimilarities\");\n\t\t\tdocument.appendChild(elemLocalSimilarities);\n\n\t\t\t// <LocalSimil>.\n\t\t\tit = getGlobalSimils().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tglobalSim = (CBRGlobalSimilarity) it.next();\n\t\t\t\telemLocalSim = globalSim.toXMLDOM(document);\n\t\t\t\telemLocalSimilarities.appendChild(elemLocalSim);\n\t\t\t}\n\n\t\t\treturn document;\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\t// Parser with specified options can't be built\n\t\t\tCBRLogger.log(\"jcolibri.tools.GlobalSimilarityRegistry\",\n\t\t\t\t\t\"createDOMTree\", pce);\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8a73887fe409cc3c14e62fd6d105005b", "score": "0.48154038", "text": "public String getXmlString()\n {\n return PSXmlDocumentBuilder.toString(\n toXml(PSXmlDocumentBuilder.createXmlDocument()));\n }", "title": "" }, { "docid": "4f907200f56f27bda92e923bbac1dadc", "score": "0.48061746", "text": "@GET\n @Path(\"world\")\n @Produces(MediaType.APPLICATION_XML)\n public World getXml() throws JAXBException {\n World world = services.readWorldFromXml();\n services.saveWorldToXml(world);\n return(world);\n }", "title": "" }, { "docid": "9ebf2410adaa6674114af9f2243cbad5", "score": "0.47725186", "text": "private void getXml() {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t\tURL url = new URL(\"http://sharkz91.0fees.us/tele/recent.php?id=\"+ uid);\n\t\t\tInputStream stream = url.openStream();\n\t\t\t// doc = docBuilder.parse(stream);\n\t\t\t// InputSource is = new InputSource();\n\t\t\t// is.setCharacterStream(new StringReader(xml));\n\t\t\tdoc = db.parse(stream);\n\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tLog.e(\"Error: \", e.getMessage());\n\t\t\t// return null;\n\t\t} catch (SAXException e) {\n\t\t\tLog.e(\"Error: \", e.getMessage());\n\t\t\t// return null;\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"Error: \", e.getMessage());\n\t\t\t// return null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "20554e180cbef7f869d5a986b9e3c944", "score": "0.47626752", "text": "@GET\n @Produces(MediaType.TEXT_XML)\n public String GetXMLRoster() {\n logger.info(\"getXMLRoster\");\n return ROSTER_TEXT_XML;\n }", "title": "" }, { "docid": "96348e73c0f02f45b7a3ef0baa6c1903", "score": "0.47379282", "text": "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( ScheduleDailyRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "title": "" }, { "docid": "5783d3a1b95dcba528e77114087b1a26", "score": "0.47218266", "text": "@Override\n\tprotected String asXML() throws IOException {\n\t\tStringBuilder result = new StringBuilder(\"<configuration>\\n\");\n\t\tmetricsAsXML(result,\"Sarah Tool\",BalanceSarahMetrics.get().toolMetrics);\n\t\tfunctionMetricsAsXML(result,\"Number of reducer after these applying these functions\",BalanceSarahMetrics.get().balanceMetrics,true);\t\n\n\t\tresult = result.append(\"</configuration>\\n\");\n\t\treturn result.toString();\n\t}", "title": "" }, { "docid": "c40128b3e6ce74f89be2736119ca326a", "score": "0.47120067", "text": "public SerializationHandler getOutputDomBuilder()\n {\n return _dom.getOutputDomBuilder();\n }", "title": "" }, { "docid": "86964beb0c8de806c3f81096deb7ed81", "score": "0.46732867", "text": "List<XMLConfig> findAll();", "title": "" }, { "docid": "2476065a34a3a28c31930583ca9836c8", "score": "0.4667729", "text": "public java.lang.String getXml() {\n return xml;\n }", "title": "" }, { "docid": "c187d93a10ef7aca2d6195594260f9c4", "score": "0.46673867", "text": "private Document makeDocument() {\n Element rootElem = new Element(\"featureDataset\");\n Document doc = new Document(rootElem);\n rootElem.setAttribute(\"location\", ds.getLocation());\n rootElem.addContent(new Element(\"analyser\").setAttribute(\"class\", getName()));\n if (ft != null)\n rootElem.setAttribute(\"featureType\", ft.toString());\n\n for (NestedTable nt : leaves) {\n writeTable(rootElem, nt.getLeaf());\n }\n\n return doc;\n }", "title": "" }, { "docid": "a845617e8865a227fca432c31c339e68", "score": "0.46605724", "text": "public String toXML() {\n return xml.toString();\n }", "title": "" }, { "docid": "f4941238477468d58e9505ac1ec4e2c0", "score": "0.46508467", "text": "public FileConfiguration getData() {\r\n try {\r\n return getDataFile();\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "aa40c43f62bb3b387d19a13116684806", "score": "0.46188223", "text": "public WeavePackageConfig getConfig() {\n return config;\n }", "title": "" }, { "docid": "760484cde53aff06d3fd149f60446c03", "score": "0.4594061", "text": "public String outputXML(){\n\t\tString returnMe=\"\";\n\t\t\n\t\tif(putScript!=null)\n\t\t\treturnMe+=\"<put><![CDATA[\"+putScript.replaceAll(\"]]>\",\"]]&gt;\")+\"]]></put>\\n\";\n\t\telse\n\t\t\treturnMe+=\"<put><![CDATA[\"+putScript+\"]]></put>\\n\";\n\n\t\tif(getScript!=null)\n\t\t\treturnMe+=\"<get><![CDATA[\"+getScript.replaceAll(\"]]>\",\"]]&gt;\")+\"]]></get>\\n\";\n\t\telse\n\t\t\treturnMe+=\"<get><![CDATA[\"+getScript+\"]]></get>\\n\";\n\n\t\treturn(returnMe);\n\t}", "title": "" }, { "docid": "7313cd842191c4625fe1696d6005e756", "score": "0.45726678", "text": "public ServerConfig getServerConfig() throws ParserConfigurationException, SAXException,\n IOException, TransformerConfigurationException, TransformerException, URISyntaxException {\n\n //createConection();\n ServerConfig config = null;\n\n NodeList NodoUsers = userElement.getChildNodes();/*devuelve los hijos de la raiz (en este caso)*/\n\n for (int i = 0; i < NodoUsers.getLength(); i++) {\n\n Element user = (Element) NodoUsers.item(i);\n\n NodeList serverN = user.getElementsByTagName(\"serverName\");\n Text serverName = (Text) serverN.item(0).getFirstChild();\n\n NodeList serverU = user.getElementsByTagName(\"serverUser\");\n Text serverUser = (Text) serverU.item(0).getFirstChild();\n\n NodeList serverP = user.getElementsByTagName(\"serverPassword\");\n Text serverPassword = (Text) serverP.item(0).getFirstChild();\n\n config = new ServerConfig(serverName.getData());\n config.setUserLogin(serverUser.getData());\n config.setPassLogin(serverPassword.getData());\n }\n //closeConection();\n return config;\n }", "title": "" }, { "docid": "f4b28846310628ba93fb10173c9da47f", "score": "0.457071", "text": "public XmlDocument createResult( Object result ) throws Exception\n {\n return (new XmlDocument( this.toXml( \"\" ) ));\n }", "title": "" }, { "docid": "a7fd3563f1f3d62810b3fa139dd02132", "score": "0.45702904", "text": "public XplDocumentData get_DocumentData(){\n\t\treturn p_DocumentData;\n\t}", "title": "" }, { "docid": "3e8abe7530da789caa59b987f8105f30", "score": "0.45697027", "text": "public String getAsXML(){\n\t\treturn definitionSet.getAsXML();\n\t}", "title": "" }, { "docid": "f77e3aedb014a4568713a9141b51c101", "score": "0.45651048", "text": "public String getServiceRequestData()\r\n {\r\n return(getElementData());\r\n }", "title": "" }, { "docid": "3b2cbfb2db1e679a466c92fe2f482c29", "score": "0.4561049", "text": "@Override\n\t\t\tpublic DOMConfiguration getDomConfig() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "33a72bc694c83dff0c1cffdcb1bec6db", "score": "0.45609328", "text": "@GET\r\n\tpublic Response getOptions() {\r\n\t\tDocument document = null;\r\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder dBuilder;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\t/*\r\n\t\t\t * Retrieve the xml options file on the computer\r\n\t\t\t */\r\n\t\t\tdocument = (Document) dBuilder.parse(new File(System.getProperty(\"user.home\") +File.separator+ \".dream\"+File.separator+\"options.xml\"));\r\n\t\t\tOutputFormat format = new OutputFormat(document);\r\n\t\t\t/*\r\n\t\t\t * The XML can be collect in String format\r\n\t\t\t */\r\n\t\t\tStringWriter writer = new StringWriter();\r\n\t\t\tXMLSerializer serial = new XMLSerializer(writer, format);\r\n\r\n\t\t\tserial.serialize(document);\r\n\t\t\t/*\r\n\t\t\t * Return the description file to the client\r\n\t\t\t */\r\n\t\t\treturn Response.ok(writer.toString(), \"application/atom+xml\").build();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (SAXException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "94588c7f20a86d02514576d8173fbc3a", "score": "0.45493123", "text": "public String extractProcessOutput() {\n\t\tString expression = \"//*[local-name()='Output']/*[local-name()='parameterType']\";\n\n\t\tString output = \"\";\n\t\tString output_param = \"\";\n\t\tNodeList nodeList = getNodeList(expression);\n\n\t\tif (nodeList.getLength() != 0) {\n\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\t\tNode node = nodeList.item(i);\n\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement element = (Element) node;\n\t\t\t\t\toutput += \"\\t(\" + element.getTextContent();\n\t\t\t\t\toutput_param = getParamFromText(output);\n\t\t\t\t\toutput += \" ?\" + output_param + \")\";\n\t\t\t\t\tif (i < nodeList.getLength() - 1) {\n\t\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\toutput = output.replace(\"http://127.0.0.1/\", \"\");\n\t\t\toutput += \"\";\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "72c003ccd824c73a3b05c128858c7b4c", "score": "0.4547728", "text": "private ConfigFile()\n\t{\n\t\ttry \n\t\t{\n\t\t\tFile configFile = new File(\"config.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(configFile);\n\t\t\t\n\t\t\tNodeList nList = doc.getElementsByTagName(\"options\");\n\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++)\n\t\t\t{\n\t\t\t\tNode nNode = nList.item(temp);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t{\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint i = Integer.parseInt(getTagValue(\"difficult\", eElement));\n\t\t\t\t\tsetDifficult(i);\n\t\t\t\t\tboolean b = Boolean.parseBoolean(getTagValue(\"nodeChecker\", eElement));\n\t\t\t\t\tsetUseNode(b);\n\t\t\t\t\tb = Boolean.parseBoolean(getTagValue(\"showPoint\", eElement));\n\t\t\t\t\tsetShowPoint(b);\n\t\t\t\t\thelp = Boolean.parseBoolean(getTagValue(\"useSolver\", eElement));\n\t\t\t\t\tsetUseSolve(help);\n\t\t\t\t\ti = Integer.parseInt(getTagValue(\"usePause\", eElement));\n\t\t\t\t\tsetUsePause(i);\n\t\t\t\t\ti = Integer.parseInt(getTagValue(\"minute\", eElement));\n\t\t\t\t\tsetMin(i);\n\t\t\t\t\ti = Integer.parseInt(getTagValue(\"second\", eElement));\n\t\t\t\t\tsetSec(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "24f9a3c83586b73b139fa50c784d9c99", "score": "0.45460677", "text": "protected int getDataForXml() {\n\n\t\tthis.fullCurrentPath = configuration.getTypes().get(this.type).getPath()\n\t\t\t\t+ this.currentFolder;\n\n\t\tif (!AccessControlUtil.getInstance(configuration).checkFolderACL(\n\t\t\t\tthis.type, this.currentFolder, this.userRole,\n\t\t\t\tAccessControlUtil.CKFINDER_CONNECTOR_ACL_FILE_VIEW)) {\n\t\t\treturn Constants.Errors.CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED;\n\t\t}\n\n\t\tFile dir = new File(this.fullCurrentPath);\n\t\ttry {\n\t\t\tif (!dir.exists()) {\n\t\t\t\treturn Constants.Errors.CKFINDER_CONNECTOR_ERROR_FOLDER_NOT_FOUND;\n\t\t\t}\n\t\t\tfiles = FileUtils.findChildrensList(dir, false);\n\t\t} catch (SecurityException e) {\n\t\t\tif (configuration.isDebugMode()) {\n\t\t\t\tthrow e;\n\t\t\t} else {\n\t\t\t\treturn Constants.Errors.CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED;\n\t\t\t}\n\t\t}\n\t\tfilterListByHiddenAndNotAllowed();\n\t\tCollections.sort(files);\n\t\treturn Constants.Errors.CKFINDER_CONNECTOR_ERROR_NONE;\n\t}", "title": "" }, { "docid": "df66b7275035042f1bb4c36135bcd71e", "score": "0.45386037", "text": "org.tron.tronj.proto.Response.NodeInfo.ConfigNodeInfo getConfigNodeInfo();", "title": "" }, { "docid": "c92e1105bf9d01ab5a913e666efc2f85", "score": "0.45372018", "text": "protected Element createDocument() {\n // create the dom tree\n DocumentBuilder builder = getDocumentBuilder();\n Document doc = builder.newDocument();\n Element rootElement = doc.createElement(RESULTS);\n doc.appendChild(rootElement);\n\n // get all files and add them to the document\n File[] files = getFiles();\n for (int i = 0; i < files.length; i++) {\n try {\n log(\"Parsing file: '\" + files[i] + \"'\", Project.MSG_VERBOSE);\n //REVISIT there seems to be a bug in xerces 1.3.0 that doesn't like file object\n // will investigate later. It does not use the given directory but\n // the vm dir instead ? Works fine with crimson.\n Document testsuiteDoc = builder.parse(\"file:///\" + files[i].getAbsolutePath());\n Element elem = testsuiteDoc.getDocumentElement();\n DOMUtil.importNode(rootElement, elem);\n String result = elem.getAttribute(ATTR_RESULT).toLowerCase();\n if (\"warning\".equals(result)\n || \"failed\".equals(result)\n || \"invalid\".equals(result)) {\n failedTests.add(elem.getAttribute(ATTR_PARENT)\n + \"/\" + elem.getAttribute(ATTR_TASK_NAME));\n }\n } catch (SAXException e) {\n // a testcase might have failed and write a zero-length document,\n // It has already failed, but hey.... mm. just put a warning\n log(\"The file \" + files[i]\n + \" is not a valid XML document. It is possibly corrupted.\",\n Project.MSG_WARN);\n log(StringUtils.getStackTrace(e), Project.MSG_DEBUG);\n } catch (IOException e) {\n log(\"Error while accessing file \" + files[i] + \": \" + e.getMessage(), \n Project.MSG_ERR);\n }\n }\n return rootElement;\n }", "title": "" }, { "docid": "ca29d2a5fa9349cb4acfb77bc13e0681", "score": "0.4531014", "text": "List<XMLConfig> search(String query);", "title": "" }, { "docid": "7f61a4a1d130c9b372faa0211f407d71", "score": "0.4530323", "text": "public Object getXml() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6ef40cb87a5e70c0c33de4ed2d71fb91", "score": "0.452939", "text": "public String getXml() {\n\r\n StringBuffer xmlOut = new StringBuffer();\r\n \r\n xmlOut.append(\"<product>\");\r\n xmlOut.append(\"<id>\");\r\n xmlOut.append(id);\r\n xmlOut.append(\"</id>\"); \r\n xmlOut.append(\"<title><![CDATA[\");\r\n xmlOut.append(title);\r\n xmlOut.append(\"]]></title>\");\r\n xmlOut.append(\"<price>\");\r\n xmlOut.append(price); \r\n xmlOut.append(\"</price>\");\r\n xmlOut.append(\"<description><![CDATA[\");\r\n xmlOut.append(description); \r\n xmlOut.append(\"]]></description>\");\r\n xmlOut.append(\"<quantity><![CDATA[\");\r\n xmlOut.append(qty); \r\n xmlOut.append(\"]]></quantity>\");\r\n xmlOut.append(\"</product>\");\r\n \r\n return xmlOut.toString();\r\n }", "title": "" }, { "docid": "356b9a7de1010091405ae139cf87caf7", "score": "0.45290977", "text": "public static Document getDocument() throws Exception {\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tDocument document = builder.parse(new File(\"src/db.cfg.xml\"));\n\t\treturn document;\n\t}", "title": "" }, { "docid": "3db33a25c189ab5347cf535778db95f1", "score": "0.4523884", "text": "public OxdConfiguration oxdGet() throws ApiException {\n return oxdGetWithHttpInfo().getData();\n }", "title": "" }, { "docid": "139eb4e66a4e442c2e17acf511983039", "score": "0.45122603", "text": "public static DomRepresentation toXml() throws Exception {\n final String state = \"state\"; // PMD pickiness\n final String key = \"key\"; // PMD pickiness\n final String value = \"value\"; // PMD pickiness\n \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = null;\n docBuilder = factory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n \n // Create root tag\n Element rootElement = doc.createElement(\"state-data\");\n rootElement.setAttribute(\"system\", \"AQUAPONICS\");\n rootElement.setAttribute(\"device\", \"arduino-1\");\n rootElement.setAttribute(\"timestamp\", String.valueOf(new Date().getTime()));\n doc.appendChild(rootElement);\n \n // Create circulation state tag.\n Element circulationElement = doc.createElement(state);\n circulationElement.setAttribute(key, \"CIRCULATION\");\n circulationElement.setAttribute(value, String.valueOf(circulation));\n rootElement.appendChild(circulationElement);\n \n // Create dead fish state tag.\n Element deadFishElement = doc.createElement(state);\n deadFishElement.setAttribute(key, \"DEAD_FISH\");\n deadFishElement.setAttribute(value, String.valueOf(dead_fish));\n rootElement.appendChild(deadFishElement);\n \n // Create electrical conductivity state tag.\n Element electricalConductivityElement = doc.createElement(state);\n electricalConductivityElement.setAttribute(key, \"ELECTRICAL_CONDUCTIVITY\");\n electricalConductivityElement.setAttribute(value, String.valueOf(ec));\n rootElement.appendChild(electricalConductivityElement);\n \n // Create temperature state tag.\n Element temperatureElement = doc.createElement(state);\n temperatureElement.setAttribute(key, \"TEMPERATURE\");\n temperatureElement.setAttribute(value, String.valueOf(temperature));\n rootElement.appendChild(temperatureElement);\n \n // Create turbidity state tag.\n Element turbidityElement = doc.createElement(state);\n turbidityElement.setAttribute(key, \"TURBIDITY\");\n turbidityElement.setAttribute(value, String.valueOf(turbidity));\n rootElement.appendChild(turbidityElement);\n \n // Create water state tag.\n Element waterLevelElement = doc.createElement(state);\n waterLevelElement.setAttribute(key, \"WATER_LEVEL\");\n waterLevelElement.setAttribute(value, String.valueOf(water_level));\n rootElement.appendChild(waterLevelElement);\n \n // Create PH state tag.\n Element phElement = doc.createElement(state);\n phElement.setAttribute(key, \"PH\");\n phElement.setAttribute(value, String.valueOf(roundSingleDecimal(ph)));\n rootElement.appendChild(phElement);\n \n // Create oxygen state tag.\n Element oxygenElement = doc.createElement(state);\n oxygenElement.setAttribute(key, \"OXYGEN\");\n oxygenElement.setAttribute(value, String.valueOf(oxygen));\n rootElement.appendChild(oxygenElement);\n \n // Convert Document to DomRepresentation.\n DomRepresentation result = new DomRepresentation();\n result.setDocument(doc);\n \n // Return the XML in DomRepresentation form.\n return result;\n }", "title": "" }, { "docid": "433e44bf51e64c7c7dcfd8ac4a7f189f", "score": "0.45096767", "text": "protected Document makeDoc() {\r\n try {\r\n DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder parser = fact.newDocumentBuilder();\r\n Document doc = parser.newDocument();\r\n\r\n Node root = doc.createElement(\"Poem\");\r\n doc.appendChild(root);\r\n\r\n Node stanza = doc.createElement(\"Stanza\");\r\n root.appendChild(stanza);\r\n \r\n Node line = doc.createElement(\"Line\");\r\n stanza.appendChild(line);\r\n line.appendChild(doc.createTextNode(\"Once, upon a midnight dreary\"));\r\n line = doc.createElement(\"Line\");\r\n stanza.appendChild(line);\r\n line.appendChild(doc.createTextNode(\"While I pondered, weak and weary\"));\r\n\r\n return doc;\r\n\r\n } catch (Exception ex) {\r\n System.err.println(\"+============================+\");\r\n System.err.println(\"| XML Error |\");\r\n System.err.println(\"+============================+\");\r\n System.err.println(ex.getClass());\r\n System.err.println(ex.getMessage());\r\n System.err.println(\"+============================+\");\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "74ee98faafb1a1ca9b2b60c4c120cffd", "score": "0.45026028", "text": "private String[] readConfig() {\n try {\n configFile = new File(\"config.xml\");\n if(!configFile.exists()){\n writeConfig();\n }\n Scanner input = new Scanner(configFile);\n\n StringBuilder buffer = new StringBuilder(\"\");\n returnValues = new String[4];\n\n for (; input.hasNext();) {\n buffer.append(input.nextLine());\n }\n returnValues[0] = buffer.subSequence(buffer.indexOf(\"<serverip>\") + 10, buffer.indexOf(\"</serverip>\")).toString();\n returnValues[1] = buffer.subSequence(buffer.indexOf(\"<databasename>\") + 14, buffer.indexOf(\"</databasename>\")).toString();\n returnValues[2] = buffer.subSequence(buffer.indexOf(\"<username>\") + 10, buffer.indexOf(\"</username>\")).toString();\n returnValues[3] = buffer.subSequence(buffer.indexOf(\"<password>\") + 10, buffer.indexOf(\"</password>\")).toString();\n return returnValues;\n } catch (FileNotFoundException e) {\n System.out.println(\"Exception in readConfig() \" + e.getMessage());\n }\n return null;\n }", "title": "" }, { "docid": "84cfe7c1166849fa022da757af11bc45", "score": "0.4499219", "text": "public String toXml( String prefix )\n {\n String xml = new String();\n String pre = (null == prefix) ? \"\" : prefix;\n\n String[] classArray = getClass().getName().replace( '.', '\\u2345' )\n .split( \"\\u2345\" );\n String tag = classArray[classArray.length - 1];\n\n xml += pre + \"<\" + tag + \">\\r\\n\";\n\n if (null == command)\n {\n xml += pre + \" <Command/>\\r\\n\";\n } else\n {\n xml += pre + \" <Command>\" + command + \"</Command>\\r\\n\";\n }\n\n int dataMap_size = this.dataMap.size();\n if (0 == dataMap_size)\n {\n xml += pre + \" <Data/>\\r\\n\";\n } else\n {\n xml += pre + \" <Data items=\\\"\" + dataMap_size + \"\\\">\\r\\n\";\n\n Iterator iterator = this.dataMap.keySet().iterator();\n while (iterator.hasNext())\n {\n String key = (String) iterator.next();\n Object val = this.dataMap.get( key );\n xml += toXml( val, key, pre + \" \" );\n }\n\n xml += pre + \" </Data>\\r\\n\";\n }\n\n if (null == matlabResult)\n {\n xml += pre + \" <MatlabResult/>\\r\\n\";\n } else\n {\n xml += pre + \" <MatlabResult>\\r\\n\";\n xml += toXml( this.matlabResult, null, pre + \" \" );\n xml += pre + \" </MatlabResult>\\r\\n\";\n }\n\n xml += pre + \"</\" + tag + \">\\r\\n\";\n\n return (xml);\n }", "title": "" }, { "docid": "39db357adfce9a729cc19758e9cd1bd1", "score": "0.4493175", "text": "public String getConfigContent() {\n return configContent;\n }", "title": "" }, { "docid": "fcaf21083afad7905ee6e2b44f1dbfea", "score": "0.44922832", "text": "public static Document convertGetDocument(FilterType type) {\n Document doc = DocumentHelper.createDocument();\n Element get = doc.addElement(\"get\");\n get.addElement(\"filter\");\n get.addAttribute(\"type\", type.name().toLowerCase());\n return doc;\n }", "title": "" }, { "docid": "dbdfc6ac56ca8394b0ceb61ce7d5236f", "score": "0.44921938", "text": "public String getXmlString() {\n\t\treturn _xml.asNiceXml(false);\n\t}", "title": "" }, { "docid": "d1d82dec243b58506c819cabedcfd9f6", "score": "0.449212", "text": "public Element getXML(Document root);", "title": "" }, { "docid": "4532baf0947808b0c919e62b22f8defa", "score": "0.44871294", "text": "String getDom();", "title": "" }, { "docid": "d7abac84ad0c1138f60b24d794414408", "score": "0.44825402", "text": "public abstract String toXML();", "title": "" }, { "docid": "a9e1979488bbe714e77b908f4493a7d3", "score": "0.4476062", "text": "@Override\n public String getXML() throws DataGatheringException {\n try {\n assert (_answer != null);\n String messageData = _answer.getSerialisedData();\n\n if (messageData == null) {\n throw new DataGatheringException(\"no payload in message from info service\");\n }\n _log.debug(\"Requested URL: {}\", _pathElements);\n _log.debug(\"InfoMessage length: {}\", messageData.length());\n return messageData;\n } catch (SerializationException ex) {\n throw new DataGatheringException(ex);\n }\n }", "title": "" }, { "docid": "0f6acd98876343d85cc0046a8e3ab335", "score": "0.44468057", "text": "public String toXmlString() {\n StringBuffer result = new StringBuffer(String.format(\"<clientSessionStatesData>%s\", NEW_LINE));\n\n result.append(String.format(\"<listSize>%s</listSize>%s\", getListSize(), NEW_LINE));\n\n result.append(String.format(\"</clientSessionStatesData>%s\", NEW_LINE));\n\n return result.toString();\n }", "title": "" }, { "docid": "9d153b6c1310d6ece8d46d3fa28f158c", "score": "0.44242275", "text": "public static void main(String[] args) {\n\t\tString xdef = \"./src/Example4.xdef\";\n\t\tString xmlData = \"./src/Example4.xml\";\n\n\t\t// 1. Create XDPool\n\t\tProperties props = System.getProperties();\n\t\tXDPool xpool = XDFactory.compileXD(props, xdef);\n\n\t\t// 2. Create XDDocument\n\t\tXDDocument xdoc = xpool.createXDDocument();\n\n\t\t// 3. parse source XML (and set values of variables).\n\t\txdoc.xparse(xmlData, null);\n\n\t\t// 4. Set context with parsed element in previous step to XDDocument.\n\t\t// XDDocument contains parsed element and also there are\n\t\t// assigned values to variables in XDDocument.\n\t\t// We set the parsed result element as context to the XDDocument.\n\t\txdoc.setXDContext(xdoc.getElement());\n\n\t\t// 5. Because the model used for cconstruction of result has\n\t\t// the namespance we must create the QNname with\n\t\t// the namespace URI and local name.\n\t\tString modelNamespace = \"http://www.w3.org/1999/xhtml\";\n\t\tString modelLocalname = \"html\";\n\t\tQName modelName = new QName(modelNamespace, modelLocalname);\n\n\t\t// 6. create result from model (context data were set\n\t\t// in the previons step).\n\t\tQName model = new QName(modelNamespace, modelLocalname);\n\t\txdoc.xcreate(model, null);\n\n\t\t// 7. print it!\n\t\tSystem.out.println(KXmlUtils.nodeToString(xdoc.getElement(), true));\n\t}", "title": "" }, { "docid": "0bc9eb672676c80ea7fb8017aa73281b", "score": "0.44173568", "text": "public static Document getDocument (String content) {\n\t\tDocument document = null;\n\t\tSAXBuilder builder = new SAXBuilder();\n\n\t\ttry {\n\t\t\tdocument = builder.build(new StringReader(content));\n\t\t\t//Element root = document.getRootElement();\n\t\t\t//root.addNamespaceDeclaration(Namespace.getNamespace(\"z\", \"http://www.openarchives.org/OAI/2.0/\"));\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} catch (JDOMException je) {\n\t\t\tje.printStackTrace();\n\t\t}\n\n\t\treturn document;\n\t}", "title": "" }, { "docid": "6dd53debea258524623b23b59bf65fc8", "score": "0.44165817", "text": "public String getXML() throws KettleValueException {\n\t\tStringBuilder xml = new StringBuilder(\"\").append(XMLHandler.addTagValue(\"startPage\", startPage))\n\t\t\t\t\t\t\t\t\t\t\t\t .append(XMLHandler.addTagValue(\"maxPage\", maxPage));\n\t\t\n\t\t\n\t\t// Ouput Fields\n\t xml.append( \"<inputFields>\" );\n\t for ( int i = 0; i < importIOInputFields.length; i++ ) {\n\t xml.append( \"<inputField>\" );\n\t xml.append(XMLHandler.addTagValue( \"name\", importIOInputFields[i] ) );\n\t xml.append(XMLHandler.addTagValue( \"value\", importIOInputFieldsValues[i] ) );\n\t xml.append( \"</inputField>\" );\n\t }\n\t xml.append( \"</inputFields>\" );\n\t xml.append(super.getXML());\n\t \n\t\treturn xml.toString();\n\t}", "title": "" }, { "docid": "419c5340329b2c6b4664a3c0b440df5b", "score": "0.44138545", "text": "@Override\r\n public String serializeDocumentToXml() {\r\n String tempXmlDocumentContents = xmlDocumentContents;\r\n xmlDocumentContents = null;\r\n String xmlForWorkflow = super.serializeDocumentToXml();\r\n xmlDocumentContents = tempXmlDocumentContents;\r\n return xmlForWorkflow;\r\n }", "title": "" }, { "docid": "adbaf79ca778be9b49998f0fe20341d4", "score": "0.4412172", "text": "@Override\n\tpublic File getResponse(){\n\t\tString incidentMap = APIConfig.getInstance().getConfiguration().getString(\n\t\t\t\tAPIConfig.INCIDENT_MAP, SADisplayConstants.INCIDENT_MAP);\n\t\t\n\t\tFile responseFile = null;\n\t\ttry{\n\t\t\t//Build the request URL\n\t\t\tString url = this.buildGetCapsUrl(this.exportFormat);\n\t\t\t\n\t\t\t//Request the get capabilities document\n\t\t\tXMLRequest request = new XMLRequest(XMLRequest.DOCUMENT_FORMAT);\n\t\t\tDocument document = (Document) request.getRequest(url.toString());\n\t\t\t\n\t\t\t//Retrieve a list of collab rooms that the user has access to\n\t\t\tList<CollabRoom> rooms = collabRoomDao.getAccessibleCollabRooms(userId, incidentId, incidentMap);\n\t\t\t\n\t\t\t//Build a response document\n\t\t\tthis.response = this.getNewDocument(document);\n\t\t\t\n\t\t\tthis.getCapabilities(document, rooms);\n\t\t\t\n\t\t\t// write the contents into xml file\n\t\t\tresponseFile = this.createTempFile(\"GetCapabilities_\" + this.exportFormat, \".xml\");\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(this.response);\n\t\t\tStreamResult result = new StreamResult(responseFile);\n\t\t\ttransformer.transform(source, result);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn responseFile;\n\t}", "title": "" }, { "docid": "0795ac308b348e7f1c5e5e9f361655fd", "score": "0.44075724", "text": "@Override\n public String toXml() {\n return xml;\n }", "title": "" }, { "docid": "6c9fbcd92c7a658df2b330af11e9bfd0", "score": "0.44074297", "text": "public static void xmlDisplay() {\n\t\ttry {\n\t\t\tXMLOutputter output = new XMLOutputter(Format.getPrettyFormat());\n\t\t\toutput.output(document, System.out);\n\t\t} catch (java.io.IOException e){\n\t\t\tSystem.out.println(\"[Error JdomXml.displayXml()] \" +e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "697fd6d186f05ed62856cc563076e343", "score": "0.44020838", "text": "String documentRoot();", "title": "" }, { "docid": "7a3f94228af09cb3bdba7ab4657c3696", "score": "0.43990806", "text": "org.tron.tronj.proto.Response.NodeInfo.ConfigNodeInfoOrBuilder getConfigNodeInfoOrBuilder();", "title": "" }, { "docid": "54a95f03bf4ccdcea1ea69628ec1a38e", "score": "0.43971547", "text": "public Document makeDocument() throws ParserConfigurationException {\r\n Document doc = UJAXP.makeDocument();\r\n makeElement(doc);\r\n return (doc);\r\n }", "title": "" }, { "docid": "3a5974ae457e2e10d60b4bb7c81d0677", "score": "0.43946344", "text": "ImmutableNode getConfig();", "title": "" }, { "docid": "2fde40c2665c8d29bf8e6bc8b8d323df", "score": "0.4393373", "text": "public Document getXMLDocumentReportUsingLabels() {\t\n\t\tlabelDoc = docBuilder.newDocument();\n\t\tprepDocument(labelDoc, \"-lbl\");\n\t\tif(changeSet instanceof StructuralChangeSet)\n\t\t\treturn getStructuralChangeSetReport((StructuralChangeSet)changeSet, labelDoc, lp);\n\t\telse if(changeSet instanceof LogicalChangeSet)\n\t\t\treturn getLogicalChangeSetReport((LogicalChangeSet)changeSet, labelDoc, lp);\n\t\telse\n\t\t\tthrow new Error(\"Invalid change set\");\n\t}", "title": "" }, { "docid": "48c3bc5b98d39175eef3baaf3c7b42e7", "score": "0.4389517", "text": "public native String toXML();", "title": "" }, { "docid": "7eb3d9956d149e3c1353153fc34dbb41", "score": "0.4388709", "text": "public CollectorConfig getConfig();", "title": "" }, { "docid": "ac6b70dee639f2eec11b90d836a6c566", "score": "0.43877473", "text": "public static void main(String[] args)\n\t\t\tthrows ParserConfigurationException, SAXException, IOException, XPathExpressionException, TasteException,\n\t\t\tClassNotFoundException, InstantiationException, IllegalAccessException {\n\t\t\n\t\t\n\t\tString configFile = \"/home/carlos/BD/config.xml\";\n\t\tif(args.length > 0)\n\t\t\tconfigFile = args[0];\n\t\t\n\t\t/* reading xml file with the specs for the calculation */\n\t\tFile inputFile = new File(configFile);\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\n\t\tDocument doc = builder.parse(inputFile);\n\n\t\t/* --- global settings from file --- */\n\t\tNodeList globalVarsList = doc.getElementsByTagName(\"global\");\n\t\tif (globalVarsList.getLength() != 0) {\n\t\t\tNode globalVarsNode = globalVarsList.item(0);\n\t\t\tElement gel = (Element) globalVarsNode;\n\n\t\t\tNode gbasePathNode = gel.getElementsByTagName(\"basePath\").item(0);\n\t\t\tif (gbasePathNode != null)\n\t\t\t\tglobalBasePath = gbasePathNode.getFirstChild().getNodeValue();\n\n\t\t\tNode gresourceFile = gel.getElementsByTagName(\"resourceFile\").item(0);\n\t\t\tif (gresourceFile != null)\n\t\t\t\tglobalResourceFile = gresourceFile.getFirstChild().getNodeValue();\n\n\t\t\tNode gpLength = gel.getElementsByTagName(\"partitionLength\").item(0);\n\t\t\tif (gpLength != null)\n\t\t\t\tglobalPartitionLength = Integer.parseInt(gpLength.getFirstChild().getNodeValue());\n\n\t\t\tNode goutputFolder = gel.getElementsByTagName(\"outputFolder\").item(0);\n\t\t\tif (goutputFolder != null)\n\t\t\t\tglobalOutputFolder = goutputFolder.getFirstChild().getNodeValue();\n\n\t\t\tNode gdataFile = gel.getElementsByTagName(\"dataFile\").item(0);\n\t\t\tif (gdataFile != null)\n\t\t\t\tglobalDataFile = gdataFile.getFirstChild().getNodeValue();\n\n\t\t\tNode gBufferSize = gel.getElementsByTagName(\"bufferSize\").item(0);\n\t\t\tif (gBufferSize != null)\n\t\t\t{\n\t\t\t\tglobalBufferSize = Integer.parseInt(gBufferSize.getFirstChild().getNodeValue());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.err.println(\"No global bufferSize\");\n\t\t\t}\n\t\t\t\t\n\t\t\tNodeList gdoUserNodeList = gel.getElementsByTagName(\"doUser\");\n\t\t\tif (gdoUserNodeList.getLength() > 0)\n\t\t\t\tglobalDoUser = true;\n\t\t\telse\n\t\t\t\tglobalDoUser = false;\n\n\t\t\tNodeList gdoItemNodeList = gel.getElementsByTagName(\"doItem\");\n\t\t\tif (gdoItemNodeList.getLength() > 0)\n\t\t\t\tglobalDoItem = true;\n\t\t\telse\n\t\t\t\tglobalDoItem = false;\n\n\t\t\tNodeList gdoItemUserNodeList = gel.getElementsByTagName(\"doItemUser\");\n\t\t\tif (gdoItemUserNodeList.getLength() > 0)\n\t\t\t\tglobalDoItemUser = true;\n\t\t\telse\n\t\t\t\tglobalDoItemUser = false;\n\t\t\t\n\t\t\tNodeList guseTxtOutput = gel.getElementsByTagName(\"useTextOutput\");\n\t\t\tif (guseTxtOutput.getLength() > 0)\n\t\t\t\tuseTxtOutput = true;\n\t\t\telse\n\t\t\t\tuseTxtOutput = false;\n\t\t}\n\t\t/* --- */\n\n\t\tNodeList processList = doc.getElementsByTagName(\"process\");\n\n\t\tfor (int i = 0; i < processList.getLength(); i++) {\n\t\t\tSystem.out.println(\"\\nFound process \" + (i + 1));\n\t\t\tNode process = processList.item(i);\n\n\t\t\tif (process.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\tElement el = (Element) process;\n\n\t\t\t\tNode typeNode = el.getElementsByTagName(\"type\").item(0);\n\t\t\t\tString typeString = typeNode.getFirstChild().getNodeValue();\n\n\t\t\t\tif (typeString.equals(\"collaborative\")) {\n\t\t\t\t\tSystem.out.println(\"type : \" + typeString);\n\t\t\t\t\tCollaborativeCalculator calculator = new CollaborativeCalculator();\n\n\t\t\t\t\tcalculator.setTxtOutput(useTxtOutput);\n\t\t\t\t\t\n\t\t\t\t\tNode basePathNode = el.getElementsByTagName(\"basePath\").item(0);\n\t\t\t\t\tif (basePathNode != null) {\n\t\t\t\t\t\tString basePathString = basePathNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\tcalculator.setPathBase(basePathString);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setPathBase(globalBasePath);\n\t\t\t\t\t}\n\n\t\t\t\t\tNode bufferSizeNode = el.getElementsByTagName(\"bufferSize\").item(0);\n\t\t\t\t\tif (bufferSizeNode != null) {\n\t\t\t\t\t\tint bufferSizeInt = Integer.parseInt(bufferSizeNode.getFirstChild().getNodeValue());\n\t\t\t\t\t\tcalculator.setBufferSize(bufferSizeInt);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setBufferSize(globalBufferSize);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tNode metricNode = el.getElementsByTagName(\"metric\").item(0);\n\t\t\t\t\tString metricString = metricNode.getFirstChild().getNodeValue();\n\t\t\t\t\tcalculator.setMetricClassName(metricString);\n\n\t\t\t\t\tNodeList numThreadsNodeList = el.getElementsByTagName(\"numThreads\");\n\t\t\t\t\tif (numThreadsNodeList.getLength() > 0) {\n\t\t\t\t\t\tNode numThreadsNode = numThreadsNodeList.item(0);\n\t\t\t\t\t\tString numThreadsString = numThreadsNode.getFirstChild().getNodeValue();\n\n\t\t\t\t\t\tint numThreadsInt = Integer.parseInt(numThreadsString);\n\t\t\t\t\t\tcalculator.setNumCores(numThreadsInt);\n\t\t\t\t\t}\n\t\t\t\t\tboolean di, du, diu;\n\n\t\t\t\t\tNodeList doUserNodeList = el.getElementsByTagName(\"doUser\");\n\t\t\t\t\tif (doUserNodeList.getLength() > 0)\n\t\t\t\t\t\tdu = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tdu = false;\n\n\t\t\t\t\tNodeList doItemNodeList = el.getElementsByTagName(\"doItem\");\n\t\t\t\t\tif (doItemNodeList.getLength() > 0)\n\t\t\t\t\t\tdi = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tdi = false;\n\n\t\t\t\t\tNodeList doItemUserNodeList = el.getElementsByTagName(\"doItemUser\");\n\t\t\t\t\tif (doItemUserNodeList.getLength() > 0)\n\t\t\t\t\t\tdiu = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tdiu = false;\n\n\t\t\t\t\tif (du == false && di == false && diu == false) {\n\t\t\t\t\t\tcalculator.setDoItemUser(globalDoItemUser);\n\t\t\t\t\t\tcalculator.setDoUser(globalDoUser);\n\t\t\t\t\t\tcalculator.setDoItem(globalDoItem);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setDoItemUser(diu);\n\t\t\t\t\t\tcalculator.setDoUser(du);\n\t\t\t\t\t\tcalculator.setDoItem(di);\n\t\t\t\t\t}\n\n\t\t\t\t\tNode itemsNode = el.getElementsByTagName(\"items\").item(0);\n\t\t\t\t\tElement itemsEl = (Element) itemsNode;\n\t\t\t\t\tNodeList itemList = itemsEl.getElementsByTagName(\"item\");\n\n\t\t\t\t\tfor (int j = 0; j < itemList.getLength(); j++) {\n\t\t\t\t\t\tElement itemElement = (Element) itemList.item(j);\n\n\t\t\t\t\t\tNode dataFileNode = itemElement.getElementsByTagName(\"dataFile\").item(0);\n\t\t\t\t\t\tif (dataFileNode != null) {\n\t\t\t\t\t\t\tString dataFileString = dataFileNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setPathData(dataFileString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setPathData(globalDataFile);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNode resourceFileNode = itemElement.getElementsByTagName(\"resourceFile\").item(0);\n\t\t\t\t\t\tif (resourceFileNode != null) {\n\t\t\t\t\t\t\tString resourceFileString = resourceFileNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setResourceFile(resourceFileString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setResourceFile(globalResourceFile);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNode outputFolderNode = itemElement.getElementsByTagName(\"outputFolder\").item(0);\n\t\t\t\t\t\tif (outputFolderNode != null) {\n\t\t\t\t\t\t\tString outputFolderString = outputFolderNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setOutputFolder(outputFolderString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setOutputFolder(globalOutputFolder);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNodeList partitionLengthNodeList = el.getElementsByTagName(\"partitionLength\");\n\t\t\t\t\t\tif (partitionLengthNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode partitionLengthNode = partitionLengthNodeList.item(0);\n\t\t\t\t\t\t\tString partitionLengthString = partitionLengthNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tint partitionLengthInt = Integer.parseInt(partitionLengthString);\n\t\t\t\t\t\t\tcalculator.setPartitionLength(partitionLengthInt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setPartitionLength(globalPartitionLength);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tSystem.out.println(\"run...\");\n\t\t\t\t\t\tcalculator.run();\n\t\t\t\t\t}\n\t\t\t\t} else if (typeString.equals(\"content-based\")) {\n\t\t\t\t\tSystem.out.println(\"type : \" + typeString);\n\t\t\t\t\tContentBasedCalculator calculator = new ContentBasedCalculator();\n\n\t\t\t\t\tcalculator.setTxtOutput(useTxtOutput);\n\t\t\t\t\t\n\t\t\t\t\t// Global parameters:\n\t\t\t\t\tNode basePathNode = el.getElementsByTagName(\"basePath\").item(0);\n\t\t\t\t\tif (basePathNode != null) {\n\t\t\t\t\t\tString basePathString = basePathNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\tcalculator.setPathBase(basePathString);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setPathBase(globalBasePath);\n\t\t\t\t\t}\n\n\t\t\t\t\tNode bufferSizeNode = el.getElementsByTagName(\"bufferSize\").item(0);\n\t\t\t\t\tif (bufferSizeNode != null) {\n\t\t\t\t\t\tint bufferSizeInt = Integer.parseInt(bufferSizeNode.getFirstChild().getNodeValue());\n\t\t\t\t\t\tcalculator.setBufferSize(bufferSizeInt);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setBufferSize(globalBufferSize);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tNode luceneFolderNode = el.getElementsByTagName(\"indexFolder\").item(0);\n\t\t\t\t\tif (luceneFolderNode != null) {\n\t\t\t\t\t\tString luceneFolderString = luceneFolderNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\tcalculator.setPathLucene(luceneFolderString);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setPathLucene(globalLuceneFolder);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//store term frequencies in memory or not (leaving freqs in disk results in very slow operation)\n\t\t\t\t\tboolean storeFreqsInMemory = true;\n\t\t\t\t\tNode freqsInMemoryNode = el.getElementsByTagName(\"storeFrequenciesInMemory\").item(0);\n\t\t\t\t\tif(freqsInMemoryNode != null) {\n\t\t\t\t\t\tstoreFreqsInMemory = Boolean.parseBoolean(freqsInMemoryNode.getFirstChild().getNodeValue());\n\t\t\t\t\t}\n\t\t\t\t\tcalculator.storeFreqsInMemory(storeFreqsInMemory);\n\t\t\t\t\t\n\t\t\t\t\t// check if it is an indexing process\n\t\t\t\t\tboolean isIndex = false;\n\t\t\t\t\tNodeList indexNodeList = el.getElementsByTagName(\"index\");\n\t\t\t\t\tif(indexNodeList.getLength() > 0) isIndex = true;\n\t\t\t\t\t\n\t\t\t\t\tboolean di, du;\n\n\t\t\t\t\tNodeList doUserNodeList = el.getElementsByTagName(\"doUser\");\n\t\t\t\t\tif (doUserNodeList.getLength() > 0)\n\t\t\t\t\t\tdu = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tdu = false;\n\n\t\t\t\t\tNodeList doItemNodeList = el.getElementsByTagName(\"doItem\");\n\t\t\t\t\tif (doItemNodeList.getLength() > 0)\n\t\t\t\t\t\tdi = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tdi = false;\n\n\t\t\t\t\tif (du == false && di == false) {\n\t\t\t\t\t\tcalculator.setDoUser(globalDoUser);\n\t\t\t\t\t\tcalculator.setDoItem(globalDoItem);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalculator.setDoUser(du);\n\t\t\t\t\t\tcalculator.setDoItem(di);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(isIndex)\n\t\t\t\t\t{\n\t\t\t\t\t\tcalculator.setIndex(true);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Indexing parameters:\n\t\t\t\t\t\tSystem.out.println(\"Lucene index process\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode preferenceFileNode = el.getElementsByTagName(\"userPreferenceFile\").item(0);\n\t\t\t\t\t\tif (preferenceFileNode != null) {\n\t\t\t\t\t\t\tString preferenceFileString = preferenceFileNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setPreferenceFile(preferenceFileString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setPreferenceFile(globalPreferenceFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode resourceFileNode = el.getElementsByTagName(\"resourceFile\").item(0);\n\t\t\t\t\t\tif (resourceFileNode != null) {\n\t\t\t\t\t\t\tString resourceFileString = resourceFileNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setResourceFile(resourceFileString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setResourceFile(globalResourceFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode sepNode = el.getElementsByTagName(\"separatorCharacter\").item(0);\n\t\t\t\t\t\tif (sepNode != null) {\n\t\t\t\t\t\t\tString sepString = sepNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setSeparator(sepString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setSeparator(globalSeparator);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList startingFieldNodeList = el.getElementsByTagName(\"startingField\");\n\t\t\t\t\t\tif (startingFieldNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode startingFieldNode = startingFieldNodeList.item(0);\n\t\t\t\t\t\t\tString startingFieldString = startingFieldNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tint startingFieldInt = Integer.parseInt(startingFieldString);\n\t\t\t\t\t\t\tcalculator.setStartingField(startingFieldInt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setNumFields(globalNumFields);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList numFieldsNodeList = el.getElementsByTagName(\"numFields\");\n\t\t\t\t\t\tif (numFieldsNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode numFieldsNode = numFieldsNodeList.item(0);\n\t\t\t\t\t\t\tString numFieldsString = numFieldsNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tint numFieldsInt = Integer.parseInt(numFieldsString);\n\t\t\t\t\t\t\tcalculator.setNumFields(numFieldsInt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setNumFields(globalNumFields);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList userThresholdNodeList = el.getElementsByTagName(\"userPreferenceThreshold\");\n\t\t\t\t\t\tif (userThresholdNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode thresholdNode = userThresholdNodeList.item(0);\n\t\t\t\t\t\t\tString thresholdString = thresholdNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tdouble thresholdDouble = 0.0;\n\t\t\t\t\t\t\tif (thresholdString.charAt(thresholdString.length() - 1) == '%')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthresholdDouble = Double.parseDouble(thresholdString.substring(0, thresholdString.length()-1));\n\t\t\t\t\t\t\t\tcalculator.setUserPreferenceThreshold(thresholdDouble, true);\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\tthresholdDouble = Double.parseDouble(thresholdString);\n\t\t\t\t\t\t\t\tcalculator.setUserPreferenceThreshold(thresholdDouble, false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setUserPreferenceThreshold(0.5);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList titleNodeList = el.getElementsByTagName(\"useFirstLineAsTitle\");\n\t\t\t\t\t\tif (titleNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode titleNode = titleNodeList.item(0);\n\t\t\t\t\t\t\tString titleString = titleNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tint titleInt = Integer.parseInt(titleString);\n\t\t\t\t\t\t\tcalculator.setFirstLineTitle(titleInt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setFirstLineTitle(globalUseFirstLineAsTitle);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(!isIndex)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Fields\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList fieldNodes = el.getElementsByTagName(\"field\");\n\t\t\t\t\t\tfor (int o=0; o<fieldNodes.getLength(); o++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNode fNode = fieldNodes.item(o);\n\t\t\t\t\t\t\tString fString = fNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint fInt = Integer.parseInt(fString);\n\t\t\t\t\t\t\tcalculator.addField(fInt-1);\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// Metric parameters:\n\t\t\t\t\t\tNode metricNode = el.getElementsByTagName(\"metric\").item(0);\n\t\t\t\t\t\tString metricString = metricNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\tcalculator.setMetricClassName(metricString);\n\t\t\t\t\t\tSystem.out.println(\"Metric: \" + metricString);\n\t\n\t\t\t\t\t\tNodeList numThreadsNodeList = el.getElementsByTagName(\"numThreads\");\n\t\t\t\t\t\tif (numThreadsNodeList.getLength() > 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNode numThreadsNode = numThreadsNodeList.item(0);\n\t\t\t\t\t\t\tString numThreadsString = numThreadsNode.getFirstChild().getNodeValue();\n\t\n\t\t\t\t\t\t\tint numThreadsInt = Integer.parseInt(numThreadsString);\n\t\t\t\t\t\t\tcalculator.setNumCores(numThreadsInt);\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\tNode outputFolderNode = el.getElementsByTagName(\"outputFolder\").item(0);\n\t\t\t\t\t\tif (outputFolderNode != null) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString outputFolderString = outputFolderNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setOutputFolder(outputFolderString);\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\tcalculator.setOutputFolder(globalOutputFolder);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNodeList parameterList = el.getElementsByTagName(\"metricParameter\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int j = 0; j < parameterList.getLength(); j++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Found parameter \" + (j + 1));\n\t\t\t\t\t\t\tNode parameterNode = parameterList.item(j);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (parameterNode.getNodeType() == Node.ELEMENT_NODE) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tElement parameterElement = (Element) parameterNode;\n\t\t\t\t\t\t\t\tString idString = null;\n\t\t\t\t\t\t\t\tString valueString = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tNode idNode = parameterElement.getElementsByTagName(\"id\").item(0);\n\t\t\t\t\t\t\t\tif (idNode != null) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tidString = idNode.getFirstChild().getNodeValue();\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\tNode valueNode = parameterElement.getElementsByTagName(\"value\").item(0);\n\t\t\t\t\t\t\t\tif (valueNode != null) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tvalueString = valueNode.getFirstChild().getNodeValue();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcalculator.setMetricParameter(idString, valueString);\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\n\t\t\t\t\t\tif (outputFolderNode != null) {\n\t\t\t\t\t\t\tString outputFolderString = outputFolderNode.getFirstChild().getNodeValue();\n\t\t\t\t\t\t\tcalculator.setOutputFolder(outputFolderString);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcalculator.setOutputFolder(globalOutputFolder);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"run...\");\n\t\t\t\t\tcalculator.run();\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Unknown metric type : \" + typeString);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.gc();\n\t\t}\n\t\tSystem.out.println(\"END\");\n\t}", "title": "" }, { "docid": "56e16f850f6d9b45f2cc1a27e22a64ef", "score": "0.43797326", "text": "public TODConfig getConfig();", "title": "" }, { "docid": "684e297f454e1d96418a684abe9e3a82", "score": "0.43721443", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getXml() {\n //TODO return proper representation object\n \n String response = \"{\\\"message\\\":\\\"hello\\\"}\"; \n return response;\n }", "title": "" }, { "docid": "c5a9321cb920c3ad08dcd42a1e2f73b4", "score": "0.43660334", "text": "private Document getDoc()\n\t{\n\t\tif (doc!=null)\n\t\t{\n\t\t\treturn doc;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tdoc = builder.parse(xmlFile);\n\t\t\t\n\t\t\treturn doc;\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "4c096a363208c39753aba69252088671", "score": "0.43625674", "text": "Document getRequestDocument();", "title": "" }, { "docid": "68e9c982b5f922a4a987e2ae1dd848d7", "score": "0.43560535", "text": "public SandstormConfig getConfig() {\n\t\treturn mgrconfig.getCopy();\n\t}", "title": "" }, { "docid": "b81f8957e4cebda31ca96092da835be8", "score": "0.43453318", "text": "Document generateXMLDataToPost(byte[] payload, DataSet dataSet) {\n byte[] encodedPayload = Base64.encodeBase64(payload);\n // Base64 encoded content is always limited to US-ASCII charset\n String strPayload;\n try {\n strPayload = new String(encodedPayload, \"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n \n Document document = DocumentFactory.getInstance().createDocument();\n Element data = document.addElement(\"replicationdata\").addElement(\"data\");\n data.addAttribute(\"type\", \"database\");\n data.addAttribute(\"action\", \"replace\");\n \n data.addAttribute(\"target_data_name\", dataSet.getName());\n \n // these 2 values are hardcoded for now - they do not seem to be used by replication.cgi\n data.addAttribute(\"target_component_type\", \"comm-server\");\n data.addAttribute(\"target_component_id\", \"CommServer1\");\n \n data.addElement(\"payload\").setText(strPayload);\n \n return document;\n }", "title": "" }, { "docid": "9d2a778b86a1ca06b8cf77acdbc59f2f", "score": "0.4341939", "text": "@Override\n public String toXML() {\n \n // Instanciamos el motor de XML\n \n XMLHandler xml = new XMLHandler();\n \n Writer out = new StringWriter();\n try{\n OutputFormat format = new OutputFormat(xml.engine);\n format.setIndenting(true);\n \n XMLSerializer serializerToString = new XMLSerializer(out , format);\n serializerToString.serialize(this.getElement(xml));\n\n } catch(IOException ie) {\n ie.printStackTrace();\n }\n \n return out.toString();\n }", "title": "" }, { "docid": "6aec7fa1a7f19bb37ac3a81b736d4199", "score": "0.43409258", "text": "public String asXML() throws Exception {\n\t\t\tJAXBContext context = JAXBContext.newInstance(Folder.class);\n\t\t\tMarshaller marshaller = context.createMarshaller();\n\t\t\tjava.io.StringWriter sw = new StringWriter();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(this, sw);\n\t\t\tString result=sw.toString();\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "314c46b1ad641ae4440c7bd72cf4898d", "score": "0.43402317", "text": "public ConfigFile getConfig() {\n\t\treturn cConfiguration;\n\t}", "title": "" }, { "docid": "c5338f98d2c6774ed44a3a8133ad9d23", "score": "0.43397114", "text": "String getConfigContents();", "title": "" }, { "docid": "0de575d5ba61bd09ea7f2e1df2877767", "score": "0.43381026", "text": "public Document dom()\n {\n return pom.getDom();\n }", "title": "" }, { "docid": "993216912e1d258498c6eaa06da1f9e8", "score": "0.43379092", "text": "public String getXML() {\n \t\tStringBuffer sb = new StringBuffer();\n \t\tsb.append(\"<euclidianView>\\n\");\n \t\t\n \t\tif (width > MIN_WIDTH && height > MIN_HEIGHT) {\n \t\t\tsb.append(\"\\t<size \");\n \t\t\tsb.append(\" width=\\\"\");\n \t\t\tsb.append(width);\n \t\t\tsb.append(\"\\\"\");\n \t\t\tsb.append(\" height=\\\"\");\n \t\t\tsb.append(height);\n \t\t\tsb.append(\"\\\"\");\n \t\t\tsb.append(\"/>\\n\");\n \t\t}\n \n \t\tsb.append(\"\\t<coordSystem\");\n \t\tsb.append(\" xZero=\\\"\");\n \t\tsb.append(xZero);\n \t\tsb.append(\"\\\"\");\n \t\tsb.append(\" yZero=\\\"\");\n \t\tsb.append(yZero);\n \t\tsb.append(\"\\\"\");\n \t\tsb.append(\" scale=\\\"\");\n \t\tsb.append(xscale);\n \t\tsb.append(\"\\\"\");\n \t\tsb.append(\" yscale=\\\"\");\n \t\tsb.append(yscale);\n \t\tsb.append(\"\\\"\");\n \t\tsb.append(\"/>\\n\");\n \n \t\t// NOTE: the attribute \"axes\" for the visibility state of\n \t\t// both axes is no longer needed since V3.0.\n \t\t// Now there are special axis tags, see below.\n \t\tsb.append(\"\\t<evSettings axes=\\\"\");\n \t\tsb.append(showAxes[0] || showAxes[1]);\n \t\tsb.append(\"\\\" grid=\\\"\");\t\t\n \t\tsb.append(showGrid);\n \t\tsb.append(\"\\\" gridIsBold=\\\"\");\t// \n \t\tsb.append(gridIsBold);\t\t\t// Michael Borcherds 2008-04-11\n \t\tsb.append(\"\\\" pointCapturing=\\\"\");\n \t\tsb.append(pointCapturingMode);\n \t\tsb.append(\"\\\" pointStyle=\\\"\");\n \t\tsb.append(pointStyle);\n \t\tsb.append(\"\\\" rightAngleStyle=\\\"\");\n \t\tsb.append(rightAngleStyle);\n \t\tsb.append(\"\\\"/>\\n\");\n \n \t\t// background color\n \t\tsb.append(\"\\t<bgColor r=\\\"\");\n \t\tsb.append(bgColor.getRed());\n \t\tsb.append(\"\\\" g=\\\"\");\n \t\tsb.append(bgColor.getGreen());\n \t\tsb.append(\"\\\" b=\\\"\");\n \t\tsb.append(bgColor.getBlue());\n \t\tsb.append(\"\\\"/>\\n\");\n \n \t\t// axes color\n \t\tsb.append(\"\\t<axesColor r=\\\"\");\n \t\tsb.append(axesColor.getRed());\n \t\tsb.append(\"\\\" g=\\\"\");\n \t\tsb.append(axesColor.getGreen());\n \t\tsb.append(\"\\\" b=\\\"\");\n \t\tsb.append(axesColor.getBlue());\n \t\tsb.append(\"\\\"/>\\n\");\n \n \t\t// grid color\n \t\tsb.append(\"\\t<gridColor r=\\\"\");\n \t\tsb.append(gridColor.getRed());\n \t\tsb.append(\"\\\" g=\\\"\");\n \t\tsb.append(gridColor.getGreen());\n \t\tsb.append(\"\\\" b=\\\"\");\n \t\tsb.append(gridColor.getBlue());\n \t\tsb.append(\"\\\"/>\\n\");\n \n \t\t// axes line style\n \t\tsb.append(\"\\t<lineStyle axes=\\\"\");\n \t\tsb.append(axesLineType);\n \t\tsb.append(\"\\\" grid=\\\"\");\n \t\tsb.append(gridLineStyle);\n \t\tsb.append(\"\\\"/>\\n\");\n \n \t\t// axis settings\n \t\tfor (int i = 0; i < 2; i++) {\n \t\t\tsb.append(\"\\t<axis id=\\\"\");\n \t\t\tsb.append(i);\n \t\t\tsb.append(\"\\\" show=\\\"\");\n \t\t\tsb.append(showAxes[i]);\n \t\t\tsb.append(\"\\\" label=\\\"\");\n \t\t\tsb.append(axesLabels[i] == null ? \"\" : axesLabels[i]);\n \t\t\tsb.append(\"\\\" unitLabel=\\\"\");\n \t\t\tsb.append(axesUnitLabels[i] == null ? \"\" : axesUnitLabels[i]);\n \t\t\tsb.append(\"\\\" tickStyle=\\\"\");\n \t\t\tsb.append(axesTickStyles[i]);\n \t\t\tsb.append(\"\\\" showNumbers=\\\"\");\n \t\t\tsb.append(showAxesNumbers[i]);\n \n \t\t\t// the tick distance should only be saved if\n \t\t\t// it isn't calculated automatically\n \t\t\tif (!automaticAxesNumberingDistances[i]) {\n \t\t\t\tsb.append(\"\\\" tickDistance=\\\"\");\n \t\t\t\tsb.append(axesNumberingDistances[i]);\n \t\t\t}\n \n \t\t\tsb.append(\"\\\"/>\\n\");\n \t\t}\n \n \t\t// grid distances\n \t\tif (!automaticGridDistance || \n \t\t\t\t// compatibility to v2.7:\n \t\t\tautomaticGridDistanceFactor != DEFAULT_GRID_DIST_FACTOR) \n \t\t{\n \t\t\tsb.append(\"\\t<grid distX=\\\"\");\n \t\t\tsb.append(gridDistances[0]);\n \t\t\tsb.append(\"\\\" distY=\\\"\");\n \t\t\tsb.append(gridDistances[1]);\n \t\t\tsb.append(\"\\\"/>\\n\");\n \t\t}\n \n \t\tsb.append(\"</euclidianView>\\n\");\n \t\treturn sb.toString();\n \t}", "title": "" }, { "docid": "2872f6eb213828e07f12e75164e4cda7", "score": "0.43318278", "text": "public DataOutput getDataOutput(String name) {\n\t\treturn delegate.getWrappedIndividual(name, Vocabulary.CLASS_DATAOUTPUT, DefaultDataOutput.class);\n }", "title": "" }, { "docid": "4655c0508a4c0c9b012d3c95b46bfc99", "score": "0.4327217", "text": "public String getXml( HttpServletRequest request )\r\n {\r\n // retrieve the folder path from the request\r\n setFolderPathFromRequest( request );\r\n\r\n StringBuffer sbXml = new StringBuffer( );\r\n\r\n XmlUtil.beginElement( sbXml, TAG_PORTLET_FOLDERLISTING );\r\n\r\n XmlUtil.addElement( sbXml, TAG_ALIAS_ROOT_DIRECTORY, getRootFolderName( ) );\r\n\r\n XmlUtil.addElement( sbXml, TAG_DIRECTORY_PATH, getFolderPath( ) );\r\n\r\n try\r\n {\r\n for ( FolderListingDirectory folderlistingDirectory : FolderListingHome.getSubDirectories( getRootFolderPath( ) +\r\n getFolderPath( ) ) )\r\n {\r\n sbXml.append( folderlistingDirectory.getXml( request ) );\r\n }\r\n\r\n for ( FolderListingFile folderlistingFile : FolderListingHome.getFiles( getRootFolderPath( ) +\r\n getFolderPath( ) ) )\r\n {\r\n sbXml.append( folderlistingFile.getXml( request ) );\r\n }\r\n\r\n XmlUtil.endElement( sbXml, TAG_PORTLET_FOLDERLISTING );\r\n }\r\n catch ( DirectoryNotFoundException e )\r\n {\r\n AppLogService.error( e.getMessage( ), e );\r\n // Clear the buffer\r\n sbXml.delete( 0, sbXml.length( ) );\r\n }\r\n\r\n return addPortletTags( sbXml );\r\n }", "title": "" }, { "docid": "502ae77d155cbc744058d3a9984def37", "score": "0.43129492", "text": "public com.google.privacy.dlp.v2beta1.OutputStorageConfig getRequestOutputConfig() {\n if (requestOutputConfigBuilder_ == null) {\n return requestOutputConfig_ == null ? com.google.privacy.dlp.v2beta1.OutputStorageConfig.getDefaultInstance() : requestOutputConfig_;\n } else {\n return requestOutputConfigBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "15ae05e37bf63caabd37c6e3d0c94814", "score": "0.43116626", "text": "public Properties getClientConfig() throws ParserConfigurationException, SAXException,\n IOException, TransformerConfigurationException, TransformerException, URISyntaxException {\n\n //createConection();\n Properties config = new Properties();\n\n NodeList NodoUsers = userElement.getChildNodes();/*devuelve los hijos de la raiz (en este caso)*/\n\n for (int i = 0; i < NodoUsers.getLength(); i++) {\n\n Element user = (Element) NodoUsers.item(i);\n\n NodeList cn = user.getElementsByTagName(\"clientName\");\n Text clientName = (Text) cn.item(0).getFirstChild();\n String att_name = cn.item(0).getAttributes().item(0).getNodeValue();;\n\n NodeList cln = user.getElementsByTagName(\"clientLastName\");\n Text clientLastName = (Text) cln.item(0).getFirstChild();\n String att_last = cln.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList co = user.getElementsByTagName(\"clientOrganization\");\n Text clientOrganization = (Text) co.item(0).getFirstChild();\n String att_org = co.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList l = user.getElementsByTagName(\"localization\");\n Text localization = (Text) l.item(0).getFirstChild();\n String att_locale = l.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList dp = user.getElementsByTagName(\"downloadPath\");\n Text downloadPath = (Text) dp.item(0).getFirstChild();\n String att_download = dp.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList pu = user.getElementsByTagName(\"publicStorage\");\n Text publicStorage = (Text) pu.item(0).getFirstChild();\n String att_public = pu.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList pv = user.getElementsByTagName(\"privateStorage\");\n Text privateStorage = (Text) pv.item(0).getFirstChild();\n String att_private = pv.item(0).getAttributes().item(0).getNodeValue();\n\n NodeList isr = user.getElementsByTagName(\"isSetupRun\");\n Text isSetupRun = (Text) isr.item(0).getFirstChild();\n String att_setup = isr.item(0).getAttributes().item(0).getNodeValue();\n// boolean aux = (isSetupRun.getData().compareToIgnoreCase(\"true\") == 0) ? true : false;\n\n config.setProperty(att_name, clientName.getData());\n config.setProperty(att_last, clientLastName.getData());\n config.setProperty(att_org, clientOrganization.getData());\n config.setProperty(att_locale, localization.getData());\n config.setProperty(att_download, downloadPath.getData());\n config.setProperty(att_public, publicStorage.getData());\n config.setProperty(att_private, privateStorage.getData());\n config.setProperty(att_setup, isSetupRun.getData());\n\n }\n //closeConection();\n return config;\n }", "title": "" }, { "docid": "86f1cecbd9a782e0d4f2fc7e447e28b7", "score": "0.43092775", "text": "public com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder getRequestOutputConfigBuilder() {\n \n onChanged();\n return getRequestOutputConfigFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "9a36ef637e1c8ac4be1c5f5d322f87ff", "score": "0.4306463", "text": "public com.google.privacy.dlp.v2beta1.OutputStorageConfig getRequestOutputConfig() {\n return requestOutputConfig_ == null ? com.google.privacy.dlp.v2beta1.OutputStorageConfig.getDefaultInstance() : requestOutputConfig_;\n }", "title": "" }, { "docid": "335891e24581f052871046068a826252", "score": "0.4300351", "text": "public String toString() {\n return (toXML());\n }", "title": "" }, { "docid": "b8b073dbcf4dac34929558638cdd55b3", "score": "0.4299923", "text": "Map<String, DFEOutput> getDFEOutput() throws RemoteException;", "title": "" }, { "docid": "0d247aac3aabe1c2ce9f6e9c342f1042", "score": "0.42971534", "text": "public Node asXML();", "title": "" }, { "docid": "637b92fe4fa32cbdb63f8b3f9e42d3e9", "score": "0.42968342", "text": "@Override\n public String getMonitoringData(String prefix) {\n StringBuilder sb = new StringBuilder();\n sb.append(prefix).append(\"<TotalCPUComputingUnits>\").append(this.description.getTotalCPUComputingUnits())\n .append(\"</TotalCPUComputingUnits>\").append(\"\\n\");\n sb.append(prefix).append(\"<TotalGPUComputingUnits>\").append(this.description.getTotalGPUComputingUnits())\n .append(\"</TotalGPUComputingUnits>\").append(\"\\n\");\n sb.append(prefix).append(\"<TotalFPGAComputingUnits>\").append(this.description.getTotalFPGAComputingUnits())\n .append(\"</TotalFPGAComputingUnits>\").append(\"\\n\");\n sb.append(prefix).append(\"<TotalOTHERComputingUnits>\").append(this.description.getTotalOTHERComputingUnits())\n .append(\"</TotalOTHERComputingUnits>\").append(\"\\n\");\n sb.append(prefix).append(\"<Memory>\").append(this.description.getMemorySize()).append(\"</Memory>\").append(\"\\n\");\n sb.append(prefix).append(\"<Disk>\").append(this.description.getStorageSize()).append(\"</Disk>\").append(\"\\n\");\n return sb.toString();\n }", "title": "" } ]
828c2c1c440378597d9b8f8cb5ec77fe
uses: nothing provides: solveRefElm, unfoldArrayTypeAx
[ { "docid": "172ce3c8d1fa6a9c7d58c413d466ed38", "score": "0.5140795", "text": "public void arrayTacs(PrintStream stream) {\n\t\tstream.println(\"(**\\n\" +\n\t\t\" ** Array Things\\n\" +\n\t\t\"Old Tactics used in the tactic arrtac.\\n\\n\" +\n\t\t\"*)\\n\");\n\n\t\tstream.println(\"Ltac unfoldRefArrAx array pos := let H:= fresh \\\"H\\\" in (assert(H := refelementsDom (refelements array pos) array pos);\\n\" +\n\t\t\t\t\t \" let H1 := fresh \\\"H\\\" in (assert (H1 : refelements array pos = null \\\\/ instances (refelements array pos));\\n\"+ \n\t\t\t\t\t \" [apply H; trivial | clear H])).\\n\\n\" +\n\t\t\t\t\t \"Ltac unfoldArrayTypeAx arr := match goal with\\n\" +\n\t\t\t\t\t \"[H: (subtypes (typeof ?arr) (array (class ?c) ?n)) |- _] =>\\n\" +\n\t\t\t\t\t \" let H1:= fresh \\\"H\\\" in (assert(H1 := ArrayTypeAx arr c n);\\n\" +\n\t\t\t\t\t \" let H2 := fresh \\\"H\\\" in (assert (H2 := H1 H); clear H))\\n\" +\n\t\t\t\t\t \"end.\\n\\n\" +\n\t\t\t\t\t \n\t\t\t\t\t \"Ltac solveRefElm := match goal with\\n\" +\n\t\t\t\t\t \"| [h : _ |- instances (refelements ?array ?pos)] =>\\n\" +\n\t\t\t\t\t \" unfoldRefArrAx array pos\\n\" +\n\t\t\t\t\t \"end.\\n\");\n\t}", "title": "" } ]
[ { "docid": "d44462ef2fb4db0a03f91d998e31e620", "score": "0.548494", "text": "private void expand() {\n System.out.println( \"expand... (for debugging)\");\n \n\t\t int[] intCopy = intElements; \n intElements = new int[2 * filledElements]; \n for(int i = 0; i < intCopy.length; i++) \n\t\t\tintElements[i] = intCopy[i]; \n \n\t\t double[] doubleCopy = doubleElements; \n doubleElements = new double[2 * filledElements]; \n for(int i = 0; i < doubleCopy.length; i++) \n\t\t\tdoubleElements[i] = doubleCopy[i]; \n\t \n String[] stringCopy = stringElements; \n stringElements = new String[2 * filledElements]; \n for(int i = 0; i < stringCopy.length; i++) \n\t\t\tstringElements[i] = stringCopy[i]; \n \n\t\t int[] typeCopy = typeOfElements; \n typeOfElements = new int[2 * filledElements]; \n for(int i = 0; i < typeCopy.length; i++) \n\t\t\ttypeOfElements[i] = typeCopy[i]; \n }", "title": "" }, { "docid": "31d65173b9b33a8244a4ca76d8ad0b43", "score": "0.54040855", "text": "static CVMArrayDataType\n referenceArray( int depth, int baseType, CVMpkg thisPkg, int nameHash ){\n\tint bucket = (int)((((long)nameHash)&0xffffffffL) % CVMpkg.NCLASSHASH);\n\tfor ( CVMDataType d = thisPkg.typeData[bucket];\n\t d != null ;\n\t d = d.next )\n\t{\n\t if ( d instanceof CVMArrayDataType ){\n\t\tCVMArrayDataType a = (CVMArrayDataType)d;\n\t\tif ( a.depth == depth && a.baseType == baseType )\n\t\t return a;\n\t }\n\t}\n\t// not there. add it.\n\tCVMArrayDataType a = new CVMArrayDataType( depth, baseType );\n\t// at end...\n\ta.next = thisPkg.typeData[bucket];\n\tthisPkg.typeData[bucket] = a;\n\treturn a;\n }", "title": "" }, { "docid": "7cde7729956dc5e7f355513a7bd5af32", "score": "0.53456897", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp\", line = 4650,\n FQN=\"clang::Sema::ActOnArrayTypeTrait\", NM=\"_ZN5clang4Sema19ActOnArrayTypeTraitENS_14ArrayTypeTraitENS_14SourceLocationENS_9OpaquePtrINS_8QualTypeEEEPNS_4ExprES2_\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.sema/llvmToClangType -split-class=clang::Sema@this ${LLVM_SRC}/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp -nm=_ZN5clang4Sema19ActOnArrayTypeTraitENS_14ArrayTypeTraitENS_14SourceLocationENS_9OpaquePtrINS_8QualTypeEEEPNS_4ExprES2_\")\n//</editor-fold>\npublic final ActionResultTTrue<Expr /*P*/ > ActOnArrayTypeTrait(ArrayTypeTrait ATT, \n SourceLocation KWLoc, \n OpaquePtr<QualType> Ty, \n Expr /*P*/ DimExpr, \n SourceLocation RParen) {\n type$ptr<TypeSourceInfo /*P*/ > TSInfo = create_type$null$ptr();\n QualType T = GetTypeFromParser(new OpaquePtr<QualType>(Ty), $AddrOf(TSInfo));\n if (!(TSInfo.$star() != null)) {\n TSInfo.$set($this().Context.getTrivialTypeSourceInfo(/*NO_COPY*/T));\n }\n \n return $this().BuildArrayTypeTrait(ATT, new SourceLocation(KWLoc), TSInfo.$star(), DimExpr, new SourceLocation(RParen));\n}", "title": "" }, { "docid": "9a38db474337491526c0d4deac9d93e9", "score": "0.5334669", "text": "private static String castElem(Type dest, Type source, Operation root) throws Exception\r\n {\r\n String x = \"\";\r\n\r\n if (source == null)\r\n return (dest.dim == 0 && dest.type == Keyword.NONESY)?\" \\\" \" + dest.ident.string.substring(dest.ident.string.lastIndexOf('.') + 1) + \" \\\" CASTTO \":x;\r\n\r\n long val = 0;\r\n double fval = 0.;\r\n Operation literal = Find.isLiteral(root);\r\n \r\n if (literal != null)\r\n if (source.type == Keyword.BYTESY ||\r\n \t source.type == Keyword.CHARSY ||\r\n \t source.type == Keyword.SHORTSY ||\r\n \t source.type == Keyword.INTSY ||\r\n \t source.type == Keyword.LONGSY)\r\n val = Find.getLong(literal);\r\n else if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n fval = Find.getValue(literal);\r\n else\r\n literal = null;\r\n \r\n if (dest.match(source) ||\r\n (dest.dim > 0 || dest.type == Keyword.NONESY) &&\r\n source.type == Keyword.NONESY && source.ident.string.compareTo(\"Object\") == 0 ||\r\n dest.dim == 1 && dest.type == Keyword.NONESY && dest.ident.string.compareTo(\"Object\") == 0 &&\r\n source.type == Keyword.NONESY &&\r\n source.ident.string.compareTo(\"JavaArray\") == 0 ||\r\n source.dim > 0 && dest.type == Keyword.NONESY && dest.ident.string.compareTo(\"JavaArray\") == 0)\r\n return x;\r\n\r\n if (dest.dim - source.dim == 1 && (source.dim > 0 || source.type == Keyword.NONESY))\r\n {\r\n ClassType [] c;\r\n MethodType [] m = Find.getMethod(\"JavaArray\", null, null, c = findClass(\"JavaArray\", 0));\r\n MethodType [] n = Find.getMethod(\"getElem\", null, null, c);\r\n int code = Find.crc(dest);\r\n\r\n dest.dim--;\r\n if (dest.match(source))\r\n x = \"1 \" + code + \" \" + Find.buildQualifiedName(m[1].scope.prev.prev, c[0], false, \"\").trim() + \".table \" + (m[1].version & -4) +\r\n \" EXECUTE-NEW >R 0 \" + Find.buildQualifiedName(n[0].scope, n[0], false, \"R@\") + \" ! R> \";\r\n else\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n dest.dim++;\r\n }\r\n else if (dest.type == Keyword.NONESY)\r\n if (source.type == Keyword.VOIDSY ||\r\n dest.ident.string.compareTo(\"Object\") == 0 && dest.dim == 0 && (source.dim > 0 ||\r\n source.type == Keyword.NONESY) ||\r\n Find.isInterface(source, dest) || Find.isInterface(dest, source))\r\n return x;\r\n else if ((x = Find.isOuter(source, new Type(dest))).length() > 0 || Find.isSuperclass(dest, source))\r\n if (dest.dim != source.dim)\r\n Find.error(\"dimension does not match\");\r\n else if (dest.dim == 0)\r\n x = \" \\\" \" + dest.ident.string.substring(dest.ident.string.lastIndexOf('.') + 1) + \" \\\" CASTTO \";\r\n else\r\n x = \"\";\r\n else if (dest.ident.string.compareTo(\"String\") == 0)\r\n {\r\n MethodType [] m = Find.getMethod(\"createString\", null, null, findClass(\"JavaArray\", 0));\r\n MethodType [] n = Find.getMethod(\"createUnicode\", null, null, findClass(\"JavaArray\", 0));\r\n\r\n String append = \" DUP TO \" + locals.size() + \"§ \";\r\n locals.add(new Type(dest));\r\n\r\n if (source.type == Keyword.BYTESY)\r\n x = \" <# HOLD DUP DUP #> \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.INTSY)\r\n x = \" <# 0 ..R \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \" 0<! IF 0FFFF0000H OR ELSE 0FFFFH AND ENDIF <# 0 ..R \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.CHARSY)\r\n x = \" <# DUP 8 RSHIFT HOLD HOLD DUP DUP #> \" +Find.buildQualifiedName(n[0].scope, n[0], false, \"\") + append;\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" <# 0 D..R \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F.. \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F.. \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n else if (source.type == Keyword.BOOLEANSY)\r\n x = \" IF \\\" true \\\" ELSE \\\" false \\\" ENDIF COUNT \" +Find.buildQualifiedName(m[0].scope, m[0], false, \"\") + append;\r\n }\r\n else if (source.type == Keyword.NONESY && source.ident.string.compareTo(\"Object\") == 0 && source.dim == 0)\r\n return x;\r\n else\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n else if (dest.dim != 0 || source.dim != 0)\r\n ;//Find.error(\"primitive vectors of different type dest = \" + dest.toString() + \" source = \" + source.toString());\r\n else if (dest.type == Keyword.BYTESY)\r\n if (literal != null)\r\n {\r\n if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n \tval = (long)fval;\r\n \r\n literal.code = (byte)val + \" \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.INTSY)\r\n x = \" 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \" 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.CHARSY)\r\n x = \" 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" NIP 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F>D NIP 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F>D NIP 127 U>! NIP IF 0FFFFFF00H OR ENDIF \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else if (dest.type == Keyword.SHORTSY)\r\n if (literal != null)\r\n {\r\n if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n \tval = (long)fval;\r\n \r\n literal.code = (short)val + \" \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.BYTESY)\r\n x = \"\";\r\n else if (source.type == Keyword.INTSY)\r\n x = \" 32767 U>! NIP IF 0FFFF0000H OR ENDIF \";\r\n else if (source.type == Keyword.CHARSY)\r\n x = \"\";\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" NIP 32767 U>! NIP IF 0FFFF0000H OR ENDIF \";\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F>D NIP 32767 U>! NIP IF 0FFFF0000H OR ENDIF \";\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F>D NIP 32767 U>! NIP IF 0FFFF0000H OR ENDIF \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else if (dest.type == Keyword.CHARSY)\r\n if (literal != null)\r\n {\r\n if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n \tval = (long)fval;\r\n \r\n literal.code = ((int)(char)val) + \" \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.BYTESY)\r\n x = \"\";\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \"\";\r\n else if (source.type == Keyword.INTSY)\r\n x = \" 0FFFFH AND \";\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" NIP 0FFFFH AND \";\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F>D NIP 0FFFFH AND \";\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F>D NIP 0FFFFH AND \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else if (dest.type == Keyword.INTSY)\r\n if (literal != null)\r\n {\r\n if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n \tval = (long)fval;\r\n \r\n literal.code = (int)val + \" \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.BYTESY)\r\n x = \"\";\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \"\";\r\n else if (source.type == Keyword.CHARSY)\r\n x = \"\";\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" D>S \";\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F>D D>S \";\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F>D D>S \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else if (dest.type == Keyword.LONGSY)\r\n if (literal != null)\r\n {\r\n if (source.type == Keyword.FLOATSY ||\r\n \t source.type == Keyword.DOUBLESY)\r\n \tval = (long)fval;\r\n \r\n literal.code = val + \" \";\r\n if (Math.abs(val) <= Integer.MAX_VALUE)\r\n literal.code += \"S>D \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.BYTESY)\r\n x = \" S>D \";\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \" S>D \";\r\n else if (source.type == Keyword.CHARSY)\r\n x = \" S>D \";\r\n else if (source.type == Keyword.INTSY)\r\n x = \" S>D \";\r\n else if (source.type == Keyword.FLOATSY)\r\n x = \" F>D \";\r\n else if (source.type == Keyword.DOUBLESY)\r\n x = \" F>D \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else if (dest.type == Keyword.FLOATSY || dest.type == Keyword.DOUBLESY)\r\n if (literal != null)\r\n {\r\n if (source.type != Keyword.FLOATSY &&\r\n \t source.type != Keyword.DOUBLESY)\r\n \tfval = val;\r\n \r\n literal.code = fval + \" \";\r\n literal.type = dest;\r\n }\r\n else\r\n {\r\n if (source.type == Keyword.BYTESY)\r\n x = \" S>D D>F \";\r\n else if (source.type == Keyword.SHORTSY)\r\n x = \" S>D D>F \";\r\n else if (source.type == Keyword.CHARSY)\r\n x = \" S>D D>F \";\r\n else if (source.type == Keyword.INTSY)\r\n x = \" S>D D>F \";\r\n else if (source.type == Keyword.LONGSY)\r\n x = \" D>F \";\r\n else if (source.type == Keyword.BOOLEANSY)\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n }\r\n else\r\n Find.error(\"incompatible types \"+\"dest=\"+dest.toString()+\" source=\" + source.toString());\r\n\r\n return x;\r\n }", "title": "" }, { "docid": "2e6b4991f3ac4945f9c9b6311a827da4", "score": "0.5257319", "text": "JvmGenericArrayTypeReference createJvmGenericArrayTypeReference();", "title": "" }, { "docid": "5b6127b6abe78e3bfe6d02d2e20ccca6", "score": "0.52273285", "text": "public abstract List<IElement> solveIElement(List<IElement> input);", "title": "" }, { "docid": "364f3039baea328942bae0a56b9b07ff", "score": "0.51662314", "text": "final public void solve_expr() throws ParseException {\n /*@bgen(jjtree) SolveExpr */\n ASTSolveExpr jjtn000 = new ASTSolveExpr(this, JJTSOLVEEXPR);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t;\n ArrayAccess aa;\n try {\n if (jj_2_6(2)) {\n aa = array_access_expr();\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n jjtn000.setType(1); jjtn000.setIdent(aa.getIdent()); jjtn000.setIndex(aa.getIndex());\n } else if (jj_2_7(2)) {\n jj_consume_token(IDENT);\n jj_consume_token(LP);\n flat_exprs();\n jj_consume_token(RP);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case IDENT:\n t = jj_consume_token(IDENT);\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n jjtn000.setType(0); jjtn000.setIdent(t.image);\n break;\n default:\n jj_la1[29] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n }", "title": "" }, { "docid": "b07106e5060d5b1f4d09334f7395e986", "score": "0.50758225", "text": "private static Solution trial(A4Reporter rep, TupleFactory fac, AbstractKodkodSolver<Bounds,Options> solver, Iterable<Sig> sigs, Formula f, A4Solution frame, Object[] t) {\n try {\n frame.kr2typeCLEAR();\n Bounds b = null;\n TupleSet ts = null;\n for (int i = 1; i < t.length; i++) {\n Object x = t[i];\n if (x == null)\n return null;\n if (x instanceof String && ((String) x).length() > 0) { // This\n // means\n // it's\n // a\n // unary\n // Tuple\n // containing\n // the\n // given\n // atom\n Tuple xx = fac.tuple((String) x);\n if (ts == null)\n ts = fac.noneOf(1);\n ts.add(xx);\n continue;\n }\n if (x instanceof Tuple) { // This means it's a Tuple\n Tuple xx = (Tuple) x;\n if (ts == null)\n ts = fac.noneOf(xx.arity());\n ts.add(xx);\n continue;\n }\n if (x instanceof String) { // The empty string means the sig\n // name follows here\n i++;\n if (i >= t.length - 1 || !(t[i] instanceof String) || !(t[i + 1] instanceof String))\n return null;\n String sigName = (String) (t[i]);\n i++;\n String fieldName = (String) (t[i]);\n Sig first = hasSig(sigs, sigName);\n if (first == null)\n return null;\n Expression expr = null;\n if (fieldName.length() == 0) {\n expr = frame.a2k(first);\n } else {\n for (Field field : first.getFields())\n if (field.label.equals(fieldName)) {\n expr = frame.a2k(field);\n while (expr instanceof BinaryExpression)\n expr = ((BinaryExpression) expr).right();\n break;\n }\n }\n if (!(expr instanceof Relation))\n return null;\n if (b == null)\n b = frame.getBounds(); // We delay the expansive\n // Bounds.clone() until we\n // really find a possible match\n if (ts == null)\n ts = fac.noneOf(expr.arity());\n if (!ts.containsAll(b.lowerBound((Relation) expr)))\n return null; // Sanity check\n if (!b.upperBound((Relation) expr).containsAll(ts))\n return null; // Sanity check\n b.boundExactly((Relation) expr, ts);\n ts = null;\n continue;\n }\n }\n SATFactory sat = solver.options().solver();\n Solution sol;\n try {\n solver.options().setSolver(SATFactory.DefaultSAT4J);\n sol = solver.solve(f, b);\n } finally {\n solver.options().setSolver(sat);\n }\n if (sol == null || (sol.outcome() != SATISFIABLE && sol.outcome() != TRIVIALLY_SATISFIABLE))\n return null;\n if (rep != null)\n rep.debug(\"Comment: \" + t[0] + \"\\n\");\n return sol;\n } catch (Throwable ex) {\n return null;\n }\n }", "title": "" }, { "docid": "ff18c9659ff64d338682240f7a774f63", "score": "0.50738657", "text": "public String visit(ArrayLookup n, SymbolTable argu) throws Exception {\n String _ret = null;\n String a = n.f0.accept(this, argu), anew;\n anew = cleanupPrimex(a);\n if(!anew.equals(a)){\n throw new Exception(\"cannot use array lookup on a newly allocated expression in \" + currClass.ID + currFunction.ID);\n }\n debugger.add(\"[\");\n anew=decodePrimEx(anew);\n if(!anew.endsWith(\"[]\")){\n throw new Exception(\"cannot use array lookup on non-array variable in \" + currClass.ID + currFunction.ID);\n }\n anew = getArrayType(anew);\n String b = n.f2.accept(this, argu), bnew;\n bnew = decodePrimEx(cleanupPrimex(b));\n inappropriateTypeCheck(bnew,\"int\");\n debugger.add(\"]\");\n\n return anew;\n\n }", "title": "" }, { "docid": "f8c50eed0bca11ed09e1789050c6a929", "score": "0.5044668", "text": "public String deResolve(ReferenceType element, ContainerType container, EReference reference);", "title": "" }, { "docid": "9784929434510a22aa8e5481c43be286", "score": "0.50342417", "text": "public String visit(ArrayLookup n, String argu) throws Exception {\n String retStr = \"int\";\n String[] temp = argu.split(\"/\");\n int alloced = 0;\n String alloc = \"\";\n if (temp[0].equals(\"load\"))\n return \"\";\n //to f0 tha prepei na einai Identifier enos int array\n //tha prepei na epistrefw ton typo tou identifier(xwris to array) afou koitaksw to symbolTable\n emit += \"\\n; load element from int array \";\n String name = n.f0.accept(this, argu);\n name = ridOf(name);\n\n String[] crop = argu.split(\"[.]\");\n\n n.f1.accept(this, argu);\n String index = n.f2.accept(this, argu);\n index = ridOf(index);\n\n String reg0 = getNewLabel(argu, null);\n String reg1 = \"\";\n String reg2 = getNewLabel(argu, null);\n String reg3 = getNewLabel(argu, null);\n String reg4 = getNewLabel(argu, null);\n String reg5 = getNewLabel(argu, null);\n String reg6 = getNewLabel(argu, null);\n String reg7 = getNewLabel(argu, null);\n String oob_ok_Label = getNewExprLabel(argu, null);\n String oob_err_Label = getNewExprLabel(argu, null);\n\n if (Helper.isVariableRegister(index) == 0)\n if (Helper.isInt(index) == 0)\n index = getVariableRegister(argu, index);\n if (Helper.isMethodVariable(argu, name)){\n reg1 = getNewLabel(argu, null);\n emit += \"\\n\\t\" + reg0 + \" = load i32*, i32** %\" + name;\n emit += \"\\n\\t\" + reg1 + \" = load i32, i32* \" + reg0;\n emit += \"\\n\\t\" + reg2 + \" = icmp sge i32 \"+index+\", 0\";\n emit += \"\\n\\t\" + reg3 + \" = icmp slt i32 \"+index+\", \"+reg1;\n emit += \"\\n\\t\" + reg4 + \" = and i1 \"+reg2+\", \"+reg3;\n }else if(Helper.isField(argu, name)>=0){\n reg1 = getVariableRegister(argu, name);\n emit += \"\\n\\t\" + reg0 + \" = load i32, i32 *\" + reg1;\n emit += \"\\n\\t\" + reg4 + \" = icmp ult i32 \"+index+\", \"+reg0;\n }\n else {\n String[] tempr = name.split(\"/\");\n if(tempr[0].equals(\"store\"))\n {\n if(tempr[1].equals(\"int[]\")) {\n alloced=1;\n alloc = tempr[2];\n emit += \"\\n\\t\"+reg0+\" = load i32, i32* \"+tempr[2];\n emit += \"\\n\\t\" + reg4 + \" = icmp ult i32 \"+index+\", \"+reg0;\n }\n }\n else if(Helper.isVariableRegister(name)==2){\n emit += \"\\n\\t\"+reg0+\" = load i32, \"+name;\n emit += \"\\n\\t\" + reg4 + \" = icmp ult i32 \"+index+\", \"+reg0;\n }\n }\n emit += \"\\n;yo is here \" +name;\n emit += \"\\n\\t\" + \"br i1 \"+reg4+\", label %\"+oob_ok_Label+\", label %\"+oob_err_Label;\n\n emit += \"\\n\" + oob_err_Label + \":\";\n emit += \"\\n\\t\" + \"call void @throw_oob()\";\n emit += \"\\n\\t\" + \"br label %\"+oob_ok_Label;\n emit += \"\\n\" + oob_ok_Label + \":\";\n emit += \"\\n\\t\" + reg5 + \" = add i32 1, \"+index;\n if (Helper.isMethodVariable(argu, name))\n emit += \"\\n\\t\" + reg6 + \" = getelementptr i32, i32* \"+reg0+\", i32 \"+reg5;\n else if(Helper.isField(argu, name)>=0)\n emit += \"\\n\\t\" + reg6 + \" = getelementptr i32, i32* \"+reg1+\", i32 \"+reg5;\n else if(alloced>0)\n emit += \"\\n\\t\" + reg6 + \" = getelementptr i32, i32* \"+alloc+\", i32 \"+reg5;\n else if(Helper.isVariableRegister(name)==2)\n emit += \"\\n\\t\" + reg6 + \" = getelementptr i32, \"+name+\", i32 \"+reg5;\n emit += \"\\n\\t\" + reg7 + \" = load i32, i32* \"+reg6;\n\n n.f3.accept(this, argu);\n retStr = reg7;\n if(retStr!=null)\n retStr=retStr.trim();\n return \"i32 \" +retStr;\n }", "title": "" }, { "docid": "89ab0a194664c5d8836aab937093683f", "score": "0.5024375", "text": "private void m5706a(C1497b bVar, C1480a aVar, C1524t tVar) {\n C1497b.C1498a a = bVar.mo7082a(\"FDArray\");\n if (a != null) {\n this.f4454a.mo7118b(a.mo7084a(0).intValue());\n C1524t d = m5718d(this.f4454a);\n LinkedList linkedList = new LinkedList();\n LinkedList linkedList2 = new LinkedList();\n int i = 0;\n while (i < d.mo7128a()) {\n C1497b e = m5720e(new C1484c(d.mo7130a(i)));\n LinkedHashMap linkedHashMap = new LinkedHashMap();\n linkedHashMap.put(\"FontName\", m5702a(e, \"FontName\"));\n linkedHashMap.put(\"FontType\", m5700a(e, \"FontType\", (Number) 0));\n linkedHashMap.put(\"FontBBox\", m5714b(e, \"FontBBox\", (List<Number>) null));\n linkedHashMap.put(\"FontMatrix\", m5714b(e, \"FontMatrix\", (List<Number>) null));\n linkedList2.add(linkedHashMap);\n C1497b.C1498a a2 = e.mo7082a(\"Private\");\n if (a2 != null) {\n int intValue = a2.mo7084a(1).intValue();\n this.f4454a.mo7118b(intValue);\n C1497b e2 = m5720e(new C1484c(this.f4454a.mo7120d(a2.mo7084a(0).intValue())));\n Map<String, Object> a3 = m5704a(e2);\n linkedList.add(a3);\n int intValue2 = ((Integer) m5700a(e2, \"Subrs\", (Number) 0)).intValue();\n if (intValue2 == 0) {\n a3.put(\"Subrs\", new C1524t(0));\n } else {\n this.f4454a.mo7118b(intValue + intValue2);\n a3.put(\"Subrs\", m5718d(this.f4454a));\n }\n i++;\n } else {\n throw new IOException(\"Font DICT invalid without \\\"Private\\\" entry\");\n }\n }\n this.f4454a.mo7118b(bVar.mo7082a(\"FDSelect\").mo7084a(0).intValue());\n C1523s a4 = m5698a(this.f4454a, tVar.mo7128a(), aVar);\n aVar.mo7040a((List<Map<String, Object>>) linkedList2);\n aVar.mo7042b((List<Map<String, Object>>) linkedList);\n aVar.mo7039a(a4);\n return;\n }\n throw new IOException(\"FDArray is missing for a CIDKeyed Font.\");\n }", "title": "" }, { "docid": "4098d5a829a846b0ea8f57126cbada59", "score": "0.500536", "text": "private static void arrayInitializer(Operation root, Type t, boolean rhs) throws Exception\r\n {\r\n ClassType [] c;\r\n MethodType [] m = Find.getMethod(\"JavaArray\", null, null, c = findClass(\"JavaArray\", 0));\r\n String routine = ' ' + Find.buildQualifiedName(m[1].scope.prev.prev, c[0], false, \"\").trim() + \".table \" + (m[1].version & -4) + \" EXECUTE-NEW \";\r\n m = Find.getMethod(\"getElem\", null, null, c);\r\n String getElem = ' ' + Find.buildQualifiedName(m[0].scope, m[0], false, \"SWAP\") + ' ';\r\n //int code = Find.crc(t);\r\n Type t1 = new Type(t);\r\n t1.dim--;\r\n\r\n root.code = \"\";\r\n\r\n String store = \"! \";\r\n\r\n if (t1.dim == 0 && t1.type != Keyword.NONESY)\r\n if (t1.type == Keyword.BYTESY)\r\n {\r\n store = \"C! \";\r\n }\r\n else if (t1.type == Keyword.CHARSY || t1.type == Keyword.SHORTSY)\r\n {\r\n store = \"H! \";\r\n }\r\n else if (t1.type == Keyword.DOUBLESY || t1.type == Keyword.FLOATSY || t1.type == Keyword.LONGSY)\r\n {\r\n store = \"2! \";\r\n }\r\n\r\n // allocate array\r\n root.left.code += Find.crc(t) + routine;\r\n if (!rhs)\r\n {\r\n root.left.code += \"DUP TO \" + locals.size() + \"§ \";\r\n locals.add(new Type(t));\r\n }\r\n\r\n int i = 0;\r\n for(Operation ptr = root.right; ptr != null; ptr = ptr.right, i++)\r\n {\r\n int x = 0;\r\n\r\n if (ptr.left.operator == Keyword.LBRACESY)\r\n arrayInitializer(ptr.left, t1, true);\r\n else\r\n x = traverse(ptr.left, false, true, false, null, false, false);\r\n\r\n if (store.startsWith(\"2\"))\r\n ptr.left.code += \"2 PICK \" + i + \" \" + getElem + store;\r\n else\r\n ptr.left.code += ((x & LOADED) != 0 && (ptr.left.type.dim > 0 || ptr.left.type.type == Keyword.NONESY)?incrementReference(\"DUP\"):\"\") + \"OVER \" + i + \" \" + getElem + store;\r\n }\r\n }", "title": "" }, { "docid": "e73bcd7df32f8538e8e35257f619a88d", "score": "0.49432093", "text": "public void rebuild() {\n\t\tE[] a = (E[]) new Comparable[size()];\n\t\ttoArray(root,a,0);\n\t\troot = buildTree(a,0,a.length-1);\n\t}", "title": "" }, { "docid": "290cfe173afe314c2a945d49a1194fe6", "score": "0.49378067", "text": "public static e[] resolve(e elt,String pad)\n {\n if (elt.v<0)\n {\n e[] r={elt};\n return r;\n }\n\n if (dict2.containsKey(elt))\n {\n return dict2.get(elt);\n }\n ArrayList<e> ret = new ArrayList<>();\n if (mult.containsKey(elt.nm))\n {\n int n = mult.get(elt.nm);\n int c = elt.v;\n while (c>=n)\n {\n ret.add(e.Gen(n,elt.nm));\n c -= n;\n }\n if (c>0)\n {\n ret.add(e.Gen(c,elt.nm));\n }\n\n e []r2 = new e[ret.size()];\n for (int j=0;j<ret.size();j++)\n {\n r2[j]=ret.get(j);\n }\n\n //System.out.println(pad + \": RES \" + elt + \" (\" + pr(r2) + \")\");\n return r2;\n }\n else if (elt.nm.compareTo(\"ORE\")==0)\n {\n e [] r = {elt};\n return r;\n }\n else\n {\n System.out.println(\"ERROR: cant find \\\"\" + elt + \"\\\" defn..\");\n }\n return null;\n }", "title": "" }, { "docid": "97c425aaa71968781f5cab2a73a68241", "score": "0.49152508", "text": "@Test\n public void twoUmbrellasButNoSolution() {\n int[] u1 = {3, 2};\n assertEquals(-1, (new BackTracking(1, u1)).getSolution());\n int[] u2 = {3, 5};\n assertEquals(-1, (new BackTracking(4, u2)).getSolution());\n int[] u3 = {3, 5};\n assertEquals(-1, (new BackTracking(7, u3)).getSolution());\n }", "title": "" }, { "docid": "0460ab6400b4b0f79fd31a5b3d481fde", "score": "0.4887941", "text": "@Test\n public void testNonNullElements() {\n Assume.assumeTrue(!\"z3_4_3\".equals(solver));\n Assume.assumeTrue(!\"cvc4\".equals(solver));\n Assume.assumeTrue(!\"yices2\".equals(solver)); // TODO: yices2 cannot handle quantifiers - better error message\n helpTCX(\"tt.TestJava\",\"package tt; \\n\"\n +\"public class TestJava { \\n\"\n \n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m1x(/*@ non_null */ Object[] a) {\\n\"\n +\" //@ assume \\\\nonnullelements(a);\\n\"\n +\" //@ assume a.length > 1;\\n\"\n +\" //@ assert a[0] != null;\\n\" // OK\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m11(Object[] a) {\\n\"\n +\" //@ assume \\\\nonnullelements(a);\\n\"\n +\" //@ assert a != null;\\n\" // OK\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m11a(Object[] a) {\\n\"\n +\" //@ assume \\\\nonnullelements(a);\\n\"\n +\" //@ assert a == null;\\n\" // BAD\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m1a(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length > 1;\\n\"\n +\" //@ assert a[0] != null;\\n\" // BAD\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m2(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 0;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m22(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 0;\\n\"\n +\" //@ assert (\\\\forall int i; 0<=i && i<a.length; a[i] != null);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m3(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 1;\\n\"\n +\" a[0] = new Object();\" // No return so as not to bollix the line numbers in the error messages\n +\" //@ assert a[0] != null;\\n\" // OK\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m33(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 1;\\n\"\n +\" //@ assume a[0] != null;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m4(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 2;\\n\"\n +\" a[0] = new Object();\\n\"\n +\" a[1] = new Object();\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m44(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 2;\\n\"\n +\" //@ assume a[0] != null;\\n\"\n +\" //@ assume a[1] != null;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m4a(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 3;\\n\"\n +\" a[0] = new Object();\\n\"\n +\" a[1] = new Object();\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // BAD\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m5(Object[] a) {\\n\"\n +\" //@ assume \\\\nonnullelements(a) && a.length == 3;\\n\"\n +\" a[0] = new Object();\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // OK\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m5a(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 3;\\n\" // Line 75\n +\" a[0] = null;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // BAD\n +\" }\\n\"\n \n +\" //@ requires \\\\elemtype(\\\\typeof(a)) == \\\\type(Object); modifies \\\\everything;\\n\"\n +\" public void m5b(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 3;\\n\"\n +\" //@ assume \\\\nonnullelements(a);\\n\" \n +\" a[0] = null;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\" // BAD\n +\" }\\n\"\n \n +\" //@ modifies \\\\everything;\\n\"\n +\" public void m5c(Object[] a) {\\n\"\n +\" //@ assume a != null && a.length == 0;\\n\"\n +\" //@ assert \\\\nonnullelements(a);\\n\"\n +\" }\\n\"\n \n \n +\"}\"\n ,\"/tt/TestJava.java:17: warning: The prover cannot establish an assertion (Assert) in method m11a\",9\n ,\"/tt/TestJava.java:22: warning: The prover cannot establish an assertion (Assert) in method m1a\",9\n ,\"/tt/TestJava.java:65: warning: The prover cannot establish an assertion (Assert) in method m4a\",9\n ,\"/tt/TestJava.java:77: warning: The prover cannot establish an assertion (Assert) in method m5a\",9\n ,\"/tt/TestJava.java:84: warning: The prover cannot establish an assertion (Assert) in method m5b\",9\n );\n }", "title": "" }, { "docid": "075bf397b99f70a5c081b0a16366442e", "score": "0.4886879", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp\", line = 1005,\n FQN=\"(anonymous namespace)::FindVA\", NM=\"_ZN12_GLOBAL__N_1L6FindVAEPKN5clang4TypeE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.analysis/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp -nm=_ZN12_GLOBAL__N_1L6FindVAEPKN5clang4TypeE\")\n//</editor-fold>\npublic static /*const*/ VariableArrayType /*P*/ FindVA(/*const*/ Type /*P*/ t) {\n {\n /*const*/ ArrayType /*P*/ vt;\n while (((/*P*/ vt = dyn_cast_ArrayType(t)) != null)) {\n {\n /*const*/ VariableArrayType /*P*/ vat = dyn_cast_VariableArrayType(vt);\n if ((vat != null)) {\n if ((vat.getSizeExpr() != null)) {\n return vat;\n }\n }\n }\n \n t = vt.getElementType().getTypePtr();\n }\n }\n \n return null;\n}", "title": "" }, { "docid": "48fe0ffa31ddc5664f6d178e19458d2a", "score": "0.48791155", "text": "public final defpackage.efm a(defpackage.dlw dlw) {\n int length;\n while (true) {\n int a2 = dlw.a();\n switch (a2) {\n case 0:\n break;\n case 8:\n int i = dlw.i();\n try {\n int e = dlw.e();\n if ((e < 0 || e > 8) && ((e < 137 || e > 142) && ((e < 144 || e > 144) && (e < 255 || e > 255)))) {\n throw new java.lang.IllegalArgumentException(e + \" is not a valid enum RootTag\");\n }\n this.b = e;\n continue;\n } catch (java.lang.IllegalArgumentException e2) {\n dlw.e(i);\n a(dlw, a2);\n break;\n }\n case 16:\n int a3 = defpackage.dmh.a(dlw, 16);\n if (this.c == null) {\n length = 0;\n } else {\n length = this.c.length;\n }\n int[] iArr = new int[(a3 + length)];\n if (length != 0) {\n java.lang.System.arraycopy(this.c, 0, iArr, 0, length);\n }\n while (length < iArr.length - 1) {\n iArr[length] = dlw.e();\n dlw.a();\n length++;\n }\n iArr[length] = dlw.e();\n this.c = iArr;\n continue;\n case 18:\n int c2 = dlw.c(dlw.e());\n int i2 = dlw.i();\n int i3 = 0;\n while (dlw.h() > 0) {\n dlw.e();\n i3++;\n }\n dlw.e(i2);\n int length2 = this.c == null ? 0 : this.c.length;\n int[] iArr2 = new int[(i3 + length2)];\n if (length2 != 0) {\n java.lang.System.arraycopy(this.c, 0, iArr2, 0, length2);\n }\n while (length2 < iArr2.length) {\n iArr2[length2] = dlw.e();\n length2++;\n }\n this.c = iArr2;\n dlw.d(c2);\n continue;\n default:\n if (!super.a(dlw, a2)) {\n break;\n } else {\n continue;\n }\n }\n }\n return this;\n }", "title": "" }, { "docid": "4445830e661dc1079090810c83e9d66a", "score": "0.48766938", "text": "List<NodeInteface> evalute(List<NodeInteface> roots);", "title": "" }, { "docid": "5164511b47eca2d5651f7ecaebeff2ee", "score": "0.48765302", "text": "public void remIndexedPlainObjRef(){\n rem(DmtDMSAG.__indexedPlainObjRef);\n }", "title": "" }, { "docid": "4c675b5c099ee7520ac7c8b018e13087", "score": "0.48700738", "text": "private static void fillEquivalenceClasses() {\n\t\tList<CoreAddrExpr> v = new ArrayList<CoreAddrExpr>();\n\t\tfor (CoreAddrExpr e : CoreExpr.varMap.values()) {\n\t\t\tSymbol sym = e.getSymbol();\n\t\t\tif (sym.isFunction() && sym.isDefined())\n\t\t\t\tv.add(e);\n\t\t}\n\n\t\tfor (CoreAddrExpr e : v) init(e);\n\n\t\t/* Fill all of the other expression nodes. */\n\t\tfor (CoreExpr e : CoreExpr.allExprs.values()) init(e);\n\t\tfor (CoreExpr e : CoreExpr.varMap.values()) init(e);\n\t\tfor (CoreExpr e : CoreExpr.allocMap.values()) init(e);\n\t}", "title": "" }, { "docid": "3c04ac02e97a4dd6dc4de9cd231b2010", "score": "0.48689365", "text": "ArrayType getArrayType(TypeMirror componentType);", "title": "" }, { "docid": "40f43c9b731eba598ef46387f8d43c9a", "score": "0.48524034", "text": "private IResolvedIt<DeepType> resolveAsPlainType(PhpExpression expr)\n {\n return IResolvedIt.fst(L::non\n , () -> Tls.cast(ArrayCreationExpressionImpl.class, expr)\n .map(arr -> new ArrCtorRes(ctx).resolve(arr))\n , () -> Tls.cast(StringLiteralExpressionImpl.class, expr)\n .map(lit -> new DeepType(lit))\n , () -> Tls.cast(ConstantReferenceImpl.class, expr)\n .flt(cst -> // they are defined through themselves in Core_d.php\n cst.getText().toLowerCase().equals(\"null\") ||\n cst.getText().toLowerCase().equals(\"true\") ||\n cst.getText().toLowerCase().equals(\"false\"))\n .map(cst -> new DeepType(cst))\n , () -> Tls.cast(PhpExpressionImpl.class, expr)\n .fop(casted -> opt(casted.getText())\n .flt(text -> Tls.regex(\"^\\\\d+$\", text).has())\n .map(num -> DeepType.makeInt(casted, num)))\n , () -> Tls.cast(PhpExpressionImpl.class, expr)\n .fop(casted -> opt(casted.getText())\n .flt(text -> Tls.regex(\"^\\\\d+\\\\.\\\\d+$\", text).has())\n .map(num -> DeepType.makeFloat(casted, num)))\n , () -> Tls.cast(BinaryExpressionImpl.class, expr)\n .fop(bin -> opt(bin.getOperation())\n .flt(op -> op.getText().equals(\"-\")\n || op.getText().equals(\"*\") || op.getText().equals(\"/\")\n || op.getText().equals(\"%\") || op.getText().equals(\"**\")\n )\n .map(op -> {\n DeepType type = new DeepType(bin, PhpType.NUMBER);\n type.isNumber = true;\n return type;\n }))\n );\n }", "title": "" }, { "docid": "ce532022c1aadbc9f57361014bffaf29", "score": "0.48488268", "text": "public interface CrossReference<E extends CrossReference, D extends Declaration> extends Element<E> {\r\n\t\r\n\t/**\r\n\t * Return the element referenced by this cross-reference.\r\n\t * \r\n\t * @throws LookupException\r\n\t * A LookupException is thrown if the model cannot guarantee to\r\n\t * find a correct result. This happens at some point during\r\n\t * the lookup, a required element cannot be found, or if \r\n\t * there are multiple equivalent candidates.\r\n\t */\r\n\tpublic D getElement() throws LookupException;\r\n\r\n\t/**\r\n\t * Return the element that declared the element that is returned\r\n\t * by getElement(). In most cases, both methods return the same element,\r\n\t * but for variable, getElement() returns the variable, whereas \r\n\t * getDeclarator() may return a variable declarator. The same goes for\r\n\t * type names that refer to type a parameter. In this case getElement()\r\n\t * returns the type, and getDeclarator() returns the type parameter.\r\n\t * \r\n\t * This method is used e.g. in IDEs to jump to the definition of an element in the source code.\r\n\t * @return\r\n\t * @throws LookupException\r\n\t */\r\n\tpublic Declaration getDeclarator() throws LookupException;\r\n\r\n\t/**\r\n\t * Return the declaration selector that is responsible for selecting the declaration\r\n\t * referenced by this cross-reference.\r\n\t * \r\n\t * @return\r\n\t */\r\n\t// Not every cross reference uses a selector anymore.\r\n\t//public DeclarationSelector<D> selector();\r\n}", "title": "" }, { "docid": "2b45f49611336dbe32675281458f5aae", "score": "0.48268613", "text": "private Analysis breakableRefs(Analysis analysis) {\n // Use this graph to detect when symmetries cannot be broken.\n KeyGraph<AstClafer> graph = new KeyGraph<AstClafer>();\n for (AstClafer clafer : analysis.getClafers()) {\n if (clafer instanceof AstConcreteClafer) {\n AstConcreteClafer concreteClafer = (AstConcreteClafer) clafer;\n if (concreteClafer.hasParent() && analysis.getScope(concreteClafer.getParent()) > 1) {\n addDependency(graph, concreteClafer, concreteClafer.getParent(), analysis);\n }\n if (concreteClafer.hasSuperClafer()) {\n addDependency(graph, concreteClafer, concreteClafer.getSuperClafer(), analysis);\n }\n }\n for (AstConcreteClafer child : clafer.getChildren()) {\n addDependency(graph, clafer, child, analysis);\n }\n if (clafer.hasRef()) {\n addDependency(graph, clafer, clafer.getRef().getTargetType(), analysis);\n }\n }\n\n Map<AstRef, int[]> breakableRefsMap = new HashMap<AstRef, int[]>();\n Map<AstClafer, AstRef[]> breakableTargetsMap = new HashMap<AstClafer, AstRef[]>();\n for (AstClafer clafer : analysis.getClafers()) {\n if (clafer.hasRef()) {\n if (!GraphUtil.hasPath(\n graph.getVertex(clafer.getRef().getTargetType()),\n graph.getVertex(clafer),\n graph)) {\n int scope = analysis.getScope(clafer);\n TIntArrayList breakableIds = new TIntArrayList();\n for (int i = 0; i < scope; i++) {\n Pair<AstConcreteClafer, Integer> concreteId = analysis.getConcreteId(clafer, i);\n AstConcreteClafer concreteClafer = concreteId.getFst();\n int id = concreteId.getSnd().intValue();\n\n if (analysis.getCard(concreteClafer).getHigh() == 1) {\n /*\n * It is possible this ref id does not need to be broken.\n * \n * For example:\n * abstract Feature\n * footprint -> integer\n * A : Feature\n * B : Feature 2\n * \n * Then the footprints under A do not have symmetry, since\n * there is only one A. However, the footprints under B\n * do need to be broken.\n */\n int[] possibleParents =\n analysis.getPartialSolution(concreteClafer).getPossibleParents(id);\n\n if (!singleParentScope(concreteClafer.getParent(), possibleParents, analysis)) {\n breakableIds.add(i);\n }\n } else {\n breakableIds.add(i);\n }\n }\n if (!breakableIds.isEmpty()) {\n breakableRefsMap.put(clafer.getRef(), breakableIds.toArray());\n }\n AstRef[] breakableTarget = breakableTargetsMap.get(clafer.getRef().getTargetType());\n if (breakableTarget == null) {\n breakableTarget = new AstRef[]{clafer.getRef()};\n } else {\n breakableTarget = Util.cons(clafer.getRef(), breakableTarget);\n }\n breakableTargetsMap.put(clafer.getRef().getTargetType(), breakableTarget);\n }\n }\n }\n Iterator<Entry<AstClafer, AstRef[]>> iter = breakableTargetsMap.entrySet().iterator();\n while (iter.hasNext()) {\n Entry<AstClafer, AstRef[]> entry = iter.next();\n if (singleSourceScope(entry.getValue(), analysis)) {\n iter.remove();\n }\n }\n return analysis.setBreakableRefsMap(breakableRefsMap).setBreakableTargetsMap(breakableTargetsMap);\n }", "title": "" }, { "docid": "e7e7ec684ca36022d29e462167dd6e23", "score": "0.48167878", "text": "public abstract ResolvedType getArrayElementType();", "title": "" }, { "docid": "e8e7ef1c51c329a0e19f9d4536901246", "score": "0.4797286", "text": "private void exploreRelations() {\r\n\t\tint length = getPackages().size();\r\n\t\tfor(int i = 0; i < length; i++)\r\n\t\t{\r\n\t\t\tJavaPackage pack = getPackages().get(i);\r\n\t\t\tfor(JavaType type : pack.getJavaTypes())\r\n\t\t\t{\r\n\t\t\t\tif((!(type instanceof CompiledJavaType)) && (type instanceof JavaType)) {\r\n\t\t\t\t\tfor(FieldDeclaration fd : type.getTypeDeclaration().getFields())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\texploreRelations(pack, type, fd);\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}", "title": "" }, { "docid": "2d5fe4146dbee4452c1e5972be7deae1", "score": "0.47834998", "text": "@NotNull\n private IGosuResolveResult[] multiResolve() {\n return (IGosuResolveResult[]) myReferenceElement.multiResolve(false);\n }", "title": "" }, { "docid": "90d0110ffa2952da84facf274726dbef", "score": "0.47761407", "text": "public abstract Collection<?> getUnresolvedObjectRefs();", "title": "" }, { "docid": "308f83c966a60da72409e7dddfa8a821", "score": "0.4771155", "text": "public void insertIntoArrayForMap(LoopNestParser.ArrayAccess_lfno_primaryContext ctx) {\n \tString varName = ctx.expressionName(0).Identifier().getText();\n\t\tArrayList<ForLoopModel> indexList = new ArrayList<ForLoopModel>();\n\t\t\n\t\tint len = flmStack.size();\n\t\tfor(int i=0;i<len;i++) {\n\t\t\tForLoopModel flm = flmStack.get(i);\n\t\t\tindexList.add(flm);\n\t\t}\n\t\t\n\t\tarrayForRef.put(varName, indexList);\n\t\t\n }", "title": "" }, { "docid": "cb649c903a5a7ba058d49dc4834125f2", "score": "0.47690552", "text": "public void testArrayAccessors() throws Exception {\n Expression e = buildExpression(\"im[0]\");\n assertEquals(\"Unexpected expression type\", ExpressionType.PROPERTY, e.getExpressionType());\n PropertyReference pr = (PropertyReference) e;\n assertEquals(\"Unexpected root of PropertyReference\", \"im\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unable to access array member via PropertyReference\", \"0\", pr.getRoot());\n assertNull(\"Stemming end of PropertyReference should return null\", pr.getStem());\n\n e = buildExpression(\"im.an[3151345]\");\n assertEquals(\"Unexpected expression type\", ExpressionType.PROPERTY, e.getExpressionType());\n pr = (PropertyReference) e;\n assertEquals(\"Unexpected root of PropertyReference\", \"im\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unexpected root of PropertyReference after stemming\", \"an\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unable to access array member via PropertyReference after stemming\", \"3151345\", pr.getRoot());\n assertNull(\"Stemming end of PropertyReference should return null\", pr.getStem());\n\n e = buildExpression(\"im.an[3151345].array\");\n assertEquals(\"Unexpected expression type\", ExpressionType.PROPERTY, e.getExpressionType());\n pr = (PropertyReference) e;\n assertEquals(\"Unexpected root of PropertyReference\", \"im\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unexpected root of PropertyReference after stemming\", \"an\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unable to access array member via PropertyReference after stemming\", \"3151345\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unexpected root of PropertyReference after stemming and accessing array\", \"array\", pr.getRoot());\n assertNull(\"Stemming end of PropertyReference should return null\", pr.getStem());\n\n e = buildExpression(\"multi[1][364]\");\n assertEquals(\"Unexpected expression type\", ExpressionType.PROPERTY, e.getExpressionType());\n pr = (PropertyReference) e;\n assertEquals(\"Unexpected root of PropertyReference\", \"multi\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unable to access array member via PropertyReference\", \"1\", pr.getRoot());\n pr = pr.getStem();\n assertEquals(\"Unable to access second array member via PropertyReference\", \"364\", pr.getRoot());\n assertNull(\"Stemming end of PropertyReference should return null\", pr.getStem());\n }", "title": "" }, { "docid": "dfc6d3021eb84f0c8fe971ceb13147fe", "score": "0.47620168", "text": "@Test\n public void oneUmbrellaSamePeopleSize() {\n int[] u1 = {1};\n assertEquals(1, (new BackTracking(1, u1)).getSolution());\n int[] u2 = {2};\n assertEquals(1, (new BackTracking(2, u2)).getSolution());\n int[] u3 = {10};\n assertEquals(1, (new BackTracking(10, u3)).getSolution());\n int[] u4 = {1000};\n assertEquals(1, (new BackTracking(1000, u4)).getSolution());\n }", "title": "" }, { "docid": "44b534e19d4bc4462e71dd27b77d4200", "score": "0.4739064", "text": "private static void convertArraysDeclaration(StringBuffer procKod) {\n Pattern vairablePattern = Pattern.compile(\"([a-zA-Z0-9]+)(\\\\s*[\\\\[\\\\]]+)\\\\s*([a-zA-Z0-9]+)\\\\s*[;=]\");\r\n Matcher varm = vairablePattern.matcher(procKod);\r\n int end = 0;\r\n while (varm.find(end)) {\r\n\r\n end = varm.end();\r\n //System.out.println(\"end = \" + end);\r\n //System.out.println(\"convertArraysDefinitions varm.group(0) = \" + varm.group(0));\r\n //System.out.println(\"convertArraysDefinitions varm.group(1) = \" + varm.group(1));\r\n //final String brackets = varm.group(2);\r\n //System.out.println(\"convertArraysDefinitions brackets = \" + brackets);\r\n //System.out.println(\"convertArraysDefinitions varm.group(3) = \" + varm.group(3));\r\n //String type = replaceFirstMatch(varm, procKod, \"var\");\r\n String type = replaceMatch(1, 2, varm, procKod, \"var\");\r\n end += \"var\".length() - type.length();\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "8c1465f2a3f6f64477ceda2fcb5b969f", "score": "0.47318006", "text": "private static void _pf_rebuild() {\n\t\t_pf_dim = _pf_map_rad * 2 + 1;\n\t\t_pf_map = new int[_pf_dim][_pf_dim];\n\t}", "title": "" }, { "docid": "3059a18ca2e2e240048be370265d4bc8", "score": "0.47160092", "text": "public static void main(String[] args) {\n\t\tint[] x;\n\t\tint []y;\n\t\tint z[];\n\t\tint a [];\n\t\tint [] []a1, b[];\n\t\t//int []a,[]b1;\n\t\t//int[5] x1; time of declration u can not assign value\n\t\t\n\t\tint[] x1 = new int[4] ;\n\t\tSystem.out.println(x1.getClass().getName());\n\t\t\n\t\tint[][] x2 = new int [5][3];\n\t\tSystem.out.println(x2.getClass().getName());\n\t\t\n\t\tboolean []b1 = new boolean[3];\n\t\tSystem.out.println(b1.getClass().getName());\n\t\t\n\t\tbyte [] b2 = new byte[3];\n\t\tSystem.out.println(b2.getClass().getName());\n\t\t\n\t\t//int []x=new int[];\n\t\t//System.out.println();\n\t\tint [] x5= new int[0];\n\t\t//int [] x6 = new int[-5];\n\t\tint [] x7 = new int ['a'];\n\t\tint [] x8 = new int [(int) 5.5];\n\t\tdouble [] x9 = new double [(int) 3.5];\n\t\t//double [] x10 = new double [2147483647];\n\t\t//int r1 = null;\n\t\tString string = null;\n\t\t//int [][][] x11= new int [3][][2];\n\t\t//System.out.println(x6);\n\t\tint[] w = new int[3];\n\t\tSystem.out.println(w[0]);\n\t\tSystem.out.println(w[1]);\n\t\tSystem.out.println(w[2]);\n\t\tSystem.out.println(w);\n\t\t//System.out.println(w[3]);\n\t\tSystem.out.println(w.toString());\n\t\tint[][] w1 = new int[3][2];\n\t\tSystem.out.println(w1);\n\t\tSystem.out.println(w1[0][0]);\n\t\tSystem.out.println(w1[0][1]);\n\t\t//System.out.println(w1[0][2]);\n\t\tSystem.out.println(w1[0][1]);\n\t\tSystem.out.println(w1[1][1]);\n\t\tSystem.out.println(w1[2][1]);\n\t\tint[] y1 = {10,20,30};\n\t\tSystem.out.println(y1);\n//\t\tSystem.out.println(y1[0]);\n//\t\tSystem.out.println(y1[1]);\n//\t\tSystem.out.println(y1[2]);\n//\t\tint[] y2;\n//\t\ty2= {10,20,30};\n\t\tint[][] y3 = {{10,20,30},{40,50}};\n\t\tSystem.out.println(y3[0][1]); //20\n\t\tSystem.out.println(y3[0][0]); //10\n\t\tSystem.out.println(y3[0][2]); //30\n\t\tSystem.out.println(y3[1][0]); //40\n\t\tSystem.out.println(y3[1][1]); //50\n\t\t//System.out.println(y3[1][2]); //50\n\t\t\n\t\tint[] y4 = new int[3];\n\t\tSystem.out.println(y4.length);\n\t\t//System.out.println(y4.length());\n\t\tString string2 = \"Garvita\";\n\t\tSystem.out.println(string2.length());\n\t\t\n\t\tString[] s1 = {\"a\",\"aa\",\"aaa\"};\n\t\tSystem.out.println(s1.length); // for array\n\t\t//System.out.println(s1[0].length); \n\n\t\tSystem.out.println(s1[0].length());\n\t\t\n\t\tint[][] r1 = new int [3][2];\n\t\tSystem.out.println(r1.length); //3\n\t\tSystem.out.println(r1[0].length); //2\n}", "title": "" }, { "docid": "b7bf7aa46a4cd8d8084134aa13601e49", "score": "0.47116065", "text": "private void retBfunValues(Rule rule, Formula formula, String contextName,Element deleElement, Element addElement, RuntimeNode nodeRun, boolean del_add) {\n\t\t\tif(formula.getKind().matches(\"forall\")) {\r\n\t\t\t\tForallFormula forallFormula = (ForallFormula)formula;\r\n\t\t\t\tif(forallFormula.getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValues(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((forallFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValues(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"exists\")){\r\n\t\t\t\tExistsFormula existsFormula = (ExistsFormula)formula;\r\n\t\t\t\tif((existsFormula).getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t \r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValues(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((existsFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t //System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValues(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"not\")){\r\n\t\t\t\tUnaryFormula unaryFormula = (UnaryFormula)formula;\r\n\t\t\t\tretBfunValues(rule, (unaryFormula).getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"and\")){\r\n\t\t\t\tAndFormula andFormula = (AndFormula)formula;\r\n\t\t\t\tretBfunValues(rule, (andFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValues(rule, (andFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"or\")){\r\n\t\t\t\tOrFormula orFormula = (OrFormula)formula;\r\n\t\t\t\tretBfunValues(rule, (orFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValues(rule, (orFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"implies\")){\r\n\t\t\t\tImpliesFormula impliesFormula = (ImpliesFormula)formula;\r\n\t\t\t\tretBfunValues(rule, (impliesFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValues(rule, (impliesFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//System.out.println(\"Bfunc value evaluating...\"+formula.getKind());\r\n\t\t\t\t//System.out.println(nodeRun.getVar().toString());\r\n\t\t\t\t\r\n\t\t\t\t//if(del_add==true)\r\n\t\t\t\t//\tbfuncValueList.add(((BFunc)formula).getValue());\r\n\t\t\t\t//else {\r\n\t\t\t\t\tboolean value = ((BFunc)formula).evaluateEcc(rule.getContexts(), nodeRun);\r\n\t\t\t\t\tbfuncValueList.add(value);\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "82f96f28835486f96addd52216cad2fe", "score": "0.4710817", "text": "@Test\n \tpublic void testPrimitiveArrays() {\n \t\tint[] ints = { 1, 5, -7 };\n \t\tflattenAndUnflatten(ints);\n \t\tflattenAndUnflatten(ArrayUtils.toObject(ints), ints);\n \n \t\tdouble[] doubles = { 1.4, 12.6, 0 };\n \t\tflattenAndUnflatten(doubles);\n \t\tflattenAndUnflatten(ArrayUtils.toObject(doubles), doubles);\n \n \t\tboolean[] booleans = { true, false, false, true };\n \t\tflattenAndUnflatten(booleans);\n \t\tflattenAndUnflatten(ArrayUtils.toObject(booleans), booleans);\n \n \t\tdouble[][] doubles2d = { { 1, 5, -7 }, { 1.4, 12.6, 0 } };\n \t\tflattenAndUnflatten(doubles2d, new double[][] { doubles2d[0], doubles2d[1] });\n \t\tflattenAndUnflatten(new double[][] { doubles2d[0], doubles2d[1] });\n \t}", "title": "" }, { "docid": "4c9e1135501d01124e895fd3faf9d0c8", "score": "0.47048613", "text": "private native void deletePointers(long polynomial, long[] fieldElements);", "title": "" }, { "docid": "7ea6444d3b87ef8b4dccdafa28b34242", "score": "0.4694046", "text": "private boolean checkReferenceFieldExistenceAndParseArrays(Method m, Token name1, Token refField1) {\r\n\t\tboolean b = true;\r\n\t\tif(m.isContainingFildMethodAndClassAndLoops(name1.getText(), false)){\r\n\t\t\tField classRef = m.findFieldInsideMethoAndClassAndScope(name1.getText());\r\n\t\t\tif(refField1 == null){\r\n\t\t\t\t\r\n\t\t\t\tif(classRef.getType().isArray()){\r\n\t\t\t\t\tb = this.parseArray(m);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"Errot at: Class ExpressionParser, method: checkReferenceFieldExistenceAndParseArrays(Method m, Token name1, Token refField1) -> ERROR1\");\r\n\t\t\t\t\tthis.p.setError(false);\r\n\t\t\t\t\tthis.p.getLfc().readNextToken();\r\n\t\t\t\t\tthis.expected(new Token(this.tks.SEMICOLON, \";\"));\r\n\t\t\t\t\tb = false;\r\n\t\t\t\t}\r\n\t\t\t}else if(!classRef.getType().isClass()){\r\n\t\t\t\tSystem.out.println(\"Errot at: Class ExpressionParser, method: checkReferenceFieldExistenceAndParseArrays(Method m, Token name1, Token refField1)\");\r\n\t\t\t}else{\r\n\t\t\t\tif(classRef.getClazz().isAllreadyContainingField(refField1.getText())){\r\n\t\t\t\t\tField fieldRef = classRef.getClazz().getFieldFromClassFieldsByName(refField1.getText());\r\n\t\t\t\t\tif(fieldRef.getType().isArray()){\r\n\t\t\t\t\t\tb = this.parseArray(m);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tSystem.out.println(\"Errot at: Class ExpressionParser, method: checkReferenceFieldExistenceAndParseArrays(Method m, Token name1, Token refField1) -> ERROR1\");\r\n\t\t\t\t\t\tthis.p.setError(false);\r\n\t\t\t\t\t\tthis.p.getLfc().readNextToken();\r\n\t\t\t\t\t\tthis.expected(new Token(this.tks.SEMICOLON, \";\"));\r\n\t\t\t\t\t\tb = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.p.setError(true);\r\n\t\t\t\t\tthis.errors.printReferenceDoesNotExist(refField1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tthis.p.setError(true);\r\n\t\t\tthis.errors.printFieldDoesNotExists(name1);\r\n\t\t}\r\n\t\treturn b;\r\n\t}", "title": "" }, { "docid": "598fd8439dd73dab9e552967b68415d6", "score": "0.46831718", "text": "private static ae<C6384c<? super T>> m27881a(Type[] typeArr) {\n C7397a g = ae.m27686g();\n for (Type b : typeArr) {\n C6384c b2 = C6384c.m27885b(b);\n if (b2.m27890b().isInterface()) {\n g.m31831c(b2);\n }\n }\n return g.m31828a();\n }", "title": "" }, { "docid": "76aeac713e6117a0bd537ff4e85b7f01", "score": "0.46676117", "text": "public void setup(Ontology ontology, AssociationContainer assocs)\n {\n\n this.assoc = assocs;\n this.graph = ontology;\n\n\n SlimDirectedGraphView<Term> slimGraphView = this.graph.getSlimGraphView();\n this.term2Parents = slimGraphView.vertexParents; //recall this was an array of arrays\n this.term2Children = slimGraphView.vertexChildren;\n this.term2Ancestors = slimGraphView.vertexAncestors;\n this.term2Descendants = slimGraphView.vertexDescendants; //presumably, this is a vertex induced subgraph\n\n this.slimGraph = graph.getSlimGraphView();\n\n HashSet<ByteString> allItemsToBeConsidered = new HashSet<ByteString>(this.assoc.getAllAnnotatedGenes());\n\n\n PopulationSet allItems = new PopulationSet(\"all\");\n allItems.addGenes(allItemsToBeConsidered);\n this.termEnumerator = //since a.getEvidence is always false\n allItems.enumerateGOTerms(this.graph, this.assoc, null);\n //a\n ItemEnumerator itemEnumerator = ItemEnumerator.createFromTermEnumerator(this.termEnumerator);\n\n this.allItemList = new ArrayList<ByteString>();\n this.item2Index = new HashMap<ByteString, Integer>(); //these are the diseases\n int i = 0;\n for (ByteString item : itemEnumerator) { //we need this to get the actual terms!!\n this.allItemList.add(item);\n this.item2Index.put(item, i);\n i++;\n }\n\n\n\n this.items2Terms = new int[this.allItemList.size()][];\n i = 0;\n for (ByteString item : allItemList) {\n int j = 0;\n //these all the terms connected via the induced subgraph (i.e. following the annotation propagation rule)\n ArrayList<TermID> tids = itemEnumerator.getTermsAnnotatedToTheItem(item);\n this.items2Terms[i] = new int[tids.size()]; //jagged arrays\n\n for (TermID tid : tids) {\n this.items2Terms[i][j++] = this.slimGraph.getVertexIndex(this.graph.getTerm(tid));\n }\n\n Arrays.sort(this.items2Terms[i]);\n\n i++;\n }\n\n createDiffVectors(); //need this crucial line from provideGlobals()\n\n //\n multiDiseaseDistributions = new double[this.slimGraph.getNumberOfVertices()][this.allItemList.size()];\n System.out.println(\"num rows\" + this.slimGraph.getNumberOfVertices());\n System.out.println(\"num cols\" + this.allItemList.size());\n dfs();\n }", "title": "" }, { "docid": "bc3a596b76817ddc8ffb05ec420526d2", "score": "0.46643725", "text": "private void resolveReferences() {\n\t\tif (this.pendingReferences == null\n\t\t\t\t|| this.pendingReferences.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tfor (FieldReference reference : this.pendingReferences) {\n\t\t\tDataElement referredElement = this.elements\n\t\t\t\t\t.get(reference.referredName);\n\t\t\tif (referredElement != null) {\n\t\t\t\tthis.addDataElement(reference.fieldName, referredElement);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tStringBuilder sbf = new StringBuilder();\n\t\t\tsbf.append(\"Design Error: Data element \").append(\n\t\t\t\t\treference.fieldName);\n\t\t\tString recordName = reference.recordName;\n\t\t\tif (recordName != null) {\n\t\t\t\tsbf.append(\" which is part of record/group \")\n\t\t\t\t\t\t.append(recordName);\n\t\t\t}\n\t\t\tsbf.append(\" refers to a non-existing name \").append(\n\t\t\t\t\treference.referredName);\n\t\t\tSpit.out(sbf.toString());\n\t\t\tthis.inError = true;\n\t\t}\n\t}", "title": "" }, { "docid": "3446476a9de4141647327f7e148b293e", "score": "0.46632892", "text": "private void resolveRef(ArrayList<GraphWay> ways){\n\t\tfor(int i=0; i<ways.size(); ++i){\n\t\t\tArrayList<Integer> refs = ways.get(i).getRefs();\n\t\t\tfor(int j=0; j<refs.size(); ++j){\n\t\t\t\tGraphNode nd = getNode(refs.get(j).intValue());\n\t\t\t\tways.get(i).addNode(nd);\n\t\t\t}\n\t\t\trefs.clear();\n\t\t}\n\t}", "title": "" }, { "docid": "20755d264d74beecc4a353a79bad7437", "score": "0.46534333", "text": "public abstract DataType getEquivalentArrayType();", "title": "" }, { "docid": "936f4c7c6384aa8b1f57ef4ed44aadef", "score": "0.4651407", "text": "public static void solve() {\n }", "title": "" }, { "docid": "fb3e1c79ddebafd8e0720681fb9019f8", "score": "0.46358782", "text": "@GuardedBy(\"this\")\n public void d() {\n AtomicReferenceArray<E> atomicReferenceArray = this.e;\n int length = atomicReferenceArray.length();\n if (length < 1073741824) {\n int i = this.b;\n AtomicReferenceArray<E> atomicReferenceArray2 = (AtomicReferenceArray<E>) new AtomicReferenceArray(length << 1);\n this.d = (atomicReferenceArray2.length() * 3) / 4;\n int length2 = atomicReferenceArray2.length() - 1;\n for (int i2 = 0; i2 < length; i2++) {\n E e2 = atomicReferenceArray.get(i2);\n if (e2 != null) {\n i b2 = e2.b();\n int hash = e2.getHash() & length2;\n if (b2 == null) {\n atomicReferenceArray2.set(hash, e2);\n } else {\n i iVar = e2;\n while (b2 != null) {\n int hash2 = b2.getHash() & length2;\n if (hash2 != hash) {\n iVar = b2;\n hash = hash2;\n }\n b2 = b2.b();\n }\n atomicReferenceArray2.set(hash, iVar);\n while (e2 != iVar) {\n int hash3 = e2.getHash() & length2;\n i c2 = this.a.f.c(n(), e2, (i) atomicReferenceArray2.get(hash3));\n if (c2 != null) {\n atomicReferenceArray2.set(hash3, c2);\n } else {\n i--;\n }\n e2 = e2.b();\n }\n }\n }\n }\n this.e = atomicReferenceArray2;\n this.b = i;\n }\n }", "title": "" }, { "docid": "48d32862b957f2bdab154590137a1a15", "score": "0.4633806", "text": "private ReferenceBinding[] makeReferenceBindings(TypeX[] types) {\n \t\tint len = types.length;\n \t\tReferenceBinding[] ret = new ReferenceBinding[len];\n \t\t\n \t\tfor (int i = 0; i < len; i++) {\n \t\t\tret[i] = (ReferenceBinding)makeTypeBinding(types[i]);\n \t\t}\n \t\treturn ret;\n \t}", "title": "" }, { "docid": "0a72d2fc92a3bf51c682b51241103616", "score": "0.46318385", "text": "public void updateAll()\n {\n Klass stringClass = Klass.forName(\"java/lang/String\");\n FieldInfo vField = stringClass.findField(\"value\");\n FieldInfo cField = stringClass.findField(\"count\");\n FieldInfo oField = stringClass.findField(\"offset\");\n \n stringClass.markNeeded(\"AsmBackEnd\", JavaElement.INSTANCE_NEEDED);\n if (vField != null) \n vField.markNeeded(\"AsmBackEnd\", JavaElement.NEEDED);\n if (cField != null)\n cField.markNeeded(\"AsmBackEnd\", JavaElement.NEEDED);\n if (oField != null)\n oField.markNeeded(\"AsmBackEnd\", JavaElement.NEEDED);\n\n Klass.forName (\"[C\").\n markNeeded (\"AsmBackEnd\", JavaElement.INSTANCE_NEEDED);\n\n try \n {\n ((NativeRef) allNatives.get (\"kernel-routines\")).\n markNeeded(\"kernel\", JavaElement.NEEDED);\n }\n catch (NullPointerException e) { }\n\n boolean[] used = Klass.getAllBytecodesUsed();\n for (int i=0; i<used.length; i++) \n {\n if (used[i])\n {\n try \n {\n ((NativeRef) allNatives.get (\"op_\" + OPCODE_NAMES[i])).\n markNeeded(\"opcode\", JavaElement.NEEDED);\n }\n catch (NullPointerException e) { }\n }\n }\n\n // multianewarray uses anewarray and newarray\n if (used[op_multianewarray])\n {\n ((NativeRef) allNatives.get (\"op_anewarray\")).\n markNeeded(\"op_multianewarray\", JavaElement.NEEDED);\n ((NativeRef) allNatives.get (\"op_newarray\")).\n markNeeded(\"op_multianewarray\", JavaElement.NEEDED);\n }\n\n for (Enumeration enum=allNatives.elements(); enum.hasMoreElements(); )\n {\n ((NativeRef) enum.nextElement()).updateNeeded();\n }\n }", "title": "" }, { "docid": "d973552ef1b9a55f19e5a37c4990eb2b", "score": "0.4610829", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/BasicAliasAnalysis.cpp\", line = 182,\n FQN=\"llvm::BasicAAResult::GetLinearExpression\", NM=\"_ZN4llvm13BasicAAResult19GetLinearExpressionEPKNS_5ValueERNS_5APIntES5_RjS6_RKNS_10DataLayoutEjPNS_15AssumptionCacheEPNS_13DominatorTreeERbSE_\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/BasicAliasAnalysis.cpp -nm=_ZN4llvm13BasicAAResult19GetLinearExpressionEPKNS_5ValueERNS_5APIntES5_RjS6_RKNS_10DataLayoutEjPNS_15AssumptionCacheEPNS_13DominatorTreeERbSE_\")\n //</editor-fold>\n private static /*const*/ Value /*P*/ GetLinearExpression(/*const*/ Value /*P*/ V, final APInt /*&*/ Scale, final APInt /*&*/ Offset, final uint$ref/*uint &*/ ZExtBits, \n final uint$ref/*uint &*/ SExtBits, final /*const*/ DataLayout /*&*/ DL, /*uint*/int Depth, \n AssumptionCache /*P*/ AC, DominatorTree /*P*/ DT, final bool$ref/*bool &*/ NSW, final bool$ref/*bool &*/ NUW) {\n assert (V.getType().isIntegerTy()) : \"Not an integer value\";\n \n // Limit our recursion depth.\n if (Depth == 6) {\n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n return V;\n }\n {\n \n /*const*/ ConstantInt /*P*/ Const = dyn_cast_ConstantInt(V);\n if ((Const != null)) {\n // If it's a constant, just convert it to an offset and remove the variable.\n // If we've been called recursively, the Offset bit width will be greater\n // than the constant's (the Offset's always as wide as the outermost call),\n // so we'll zext here and process any extension in the isa<SExtInst> &\n // isa<ZExtInst> cases below.\n Offset.$addassign(Const.getValue().zextOrSelf(Offset.getBitWidth()));\n assert (Scale.$eq($int2ulong(0))) : \"Constant values don't have a scale\";\n return V;\n }\n }\n {\n \n /*const*/ BinaryOperator /*P*/ BOp = dyn_cast_BinaryOperator(V);\n if ((BOp != null)) {\n {\n ConstantInt /*P*/ RHSC = dyn_cast_ConstantInt(BOp.getOperand(1));\n if ((RHSC != null)) {\n \n // If we've been called recursively, then Offset and Scale will be wider\n // than the BOp operands. We'll always zext it here as we'll process sign\n // extensions below (see the isa<SExtInst> / isa<ZExtInst> cases).\n APInt RHS = RHSC.getValue().zextOrSelf(Offset.getBitWidth());\n switch (BOp.getOpcode()) {\n default:\n // We don't understand this instruction, so we can't decompose it any\n // further.\n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n return V;\n case Instruction.BinaryOps.Or:\n // X|C == X+C if all the bits in C are unset in X. Otherwise we can't\n // analyze it.\n if (!ValueTrackingLlvmGlobals.MaskedValueIsZero(BOp.getOperand(0), RHSC.getValue(), DL, 0, AC, \n BOp, DT)) {\n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n return V;\n }\n case Instruction.BinaryOps.Add:\n // FALL THROUGH.\n V = GetLinearExpression(BOp.getOperand(0), Scale, Offset, ZExtBits, \n SExtBits, DL, Depth + 1, AC, DT, NSW, NUW);\n Offset.$addassign(RHS);\n break;\n case Instruction.BinaryOps.Sub:\n V = GetLinearExpression(BOp.getOperand(0), Scale, Offset, ZExtBits, \n SExtBits, DL, Depth + 1, AC, DT, NSW, NUW);\n Offset.$minusassign(RHS);\n break;\n case Instruction.BinaryOps.Mul:\n V = GetLinearExpression(BOp.getOperand(0), Scale, Offset, ZExtBits, \n SExtBits, DL, Depth + 1, AC, DT, NSW, NUW);\n Offset.$starassign(RHS);\n Scale.$starassign(RHS);\n break;\n case Instruction.BinaryOps.Shl:\n V = GetLinearExpression(BOp.getOperand(0), Scale, Offset, ZExtBits, \n SExtBits, DL, Depth + 1, AC, DT, NSW, NUW);\n Offset.$lshiftassign($ulong2uint(RHS.getLimitedValue()));\n Scale.$lshiftassign($ulong2uint(RHS.getLimitedValue()));\n // the semantics of nsw and nuw for left shifts don't match those of\n // multiplications, so we won't propagate them.\n NSW.$set(NUW.$set(false));\n return V;\n }\n if (isa_OverflowingBinaryOperator(BOp)) {\n NUW.$set$andassign(BOp.hasNoUnsignedWrap());\n NSW.$set$andassign(BOp.hasNoSignedWrap());\n }\n return V;\n }\n }\n }\n }\n \n // Since GEP indices are sign extended anyway, we don't care about the high\n // bits of a sign or zero extended value - just scales and offsets. The\n // extensions have to be consistent though.\n if (isa_SExtInst(V) || isa_ZExtInst(V)) {\n Value /*P*/ CastOp = cast_CastInst(V).getOperand(0);\n /*uint*/int NewWidth = V.getType().getPrimitiveSizeInBits();\n /*uint*/int SmallWidth = CastOp.getType().getPrimitiveSizeInBits();\n /*uint*/int OldZExtBits = ZExtBits.$deref();\n /*uint*/int OldSExtBits = SExtBits.$deref();\n /*const*/ Value /*P*/ Result = GetLinearExpression(CastOp, Scale, Offset, ZExtBits, SExtBits, DL, \n Depth + 1, AC, DT, NSW, NUW);\n \n // zext(zext(%x)) == zext(%x), and similiarly for sext; we'll handle this\n // by just incrementing the number of bits we've extended by.\n /*uint*/int ExtendedBy = NewWidth - SmallWidth;\n if (isa_SExtInst(V) && ZExtBits.$deref() == 0) {\n // sext(sext(%x, a), b) == sext(%x, a + b)\n if (NSW.$deref()) {\n // We haven't sign-wrapped, so it's valid to decompose sext(%x + c)\n // into sext(%x) + sext(c). We'll sext the Offset ourselves:\n /*uint*/int OldWidth = Offset.getBitWidth();\n Offset.$assignMove(Offset.trunc(SmallWidth).sext(NewWidth).zextOrSelf(OldWidth));\n } else {\n // We may have signed-wrapped, so don't decompose sext(%x + c) into\n // sext(%x) + sext(c)\n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n Result = CastOp;\n ZExtBits.$set(OldZExtBits);\n SExtBits.$set(OldSExtBits);\n }\n SExtBits.$set$addassign(ExtendedBy);\n } else {\n // sext(zext(%x, a), b) = zext(zext(%x, a), b) = zext(%x, a + b)\n if (!NUW.$deref()) {\n // We may have unsigned-wrapped, so don't decompose zext(%x + c) into\n // zext(%x) + zext(c)\n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n Result = CastOp;\n ZExtBits.$set(OldZExtBits);\n SExtBits.$set(OldSExtBits);\n }\n ZExtBits.$set$addassign(ExtendedBy);\n }\n \n return Result;\n }\n \n Scale.$assign($int2ulong(1));\n Offset.$assign($int2ulong(0));\n return V;\n }", "title": "" }, { "docid": "cc67ba4d7cd7dea5c4c2068dd691cfd0", "score": "0.460392", "text": "private Object readResolve() throws java.io.ObjectStreamException\n {\n return( array[ index ] );\n }", "title": "" }, { "docid": "4de9c73f99d78f35e2a30fb2e2143c42", "score": "0.45948648", "text": "@Override\n public Node visitArrayElemNode(ArrayElemNode node) {\n List<ExprNode> params = simplifyExprList(node.getIndex());\n return new ArrayElemNode(node.getArray(), params, node.getType(), node.getName(), node.getSymbol());\n }", "title": "" }, { "docid": "d31ad5b610cf2057576edce13038020b", "score": "0.45920834", "text": "@Converted(kind = Converted.Kind.MANUAL_SEMANTIC,\n source = \"${LLVM_SRC}/llvm/include/llvm/ADT/TinyPtrVector.h\", line = 120,\n FQN=\"llvm::TinyPtrVector::operator MutableArrayRef<type-parameter-0-0>\", NM=\"_ZN4llvm13TinyPtrVectorcvNS_15MutableArrayRefIT_EEEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.adtsupport/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp -nm=_ZN4llvm13TinyPtrVectorcvNS_15MutableArrayRefIT_EEEv\")\n //</editor-fold>\n public MutableArrayRef<EltTy> $MutableArrayRef$EltTy() {\n if ($isNull()) {\n return MutableArrayRef.None();\n }\n if ($isElement()) {\n return new MutableArrayRef(Native.$star($getAsElement()), true);\n }\n return new MutableArrayRef(Native.$star($getAsVector()));\n }", "title": "" }, { "docid": "3d3c8199ae71caabf5db5681866f4a06", "score": "0.4591083", "text": "node[] arrExpand(node oldArr[]){\n\r\n\t\tnode expandArr[] = new node[oldArr.length*2];\r\n for(int i=0;i<top+1;i++){\r\n\t\t\texpandArr[i]=oldArr[i].deepCopy();\r\n\t\t}\r\n size=expandArr.length;\r\n\t\treturn expandArr;\r\n\t}", "title": "" }, { "docid": "914ff9727d556f0488edf4c8bd3f5e5b", "score": "0.45819303", "text": "private void expand( ) {\n int newLength = (int) (1.5 * element.length);\r\n E[] temp = (E[]) new Object[newLength];\r\n \r\n // now copy the data to the new array\r\n for (int i = 0; i < element.length; i++) {\r\n temp[i] = element[i];\r\n }\r\n \r\n // finally set the variable entry to point to the new array\r\n element = temp; \r\n }", "title": "" }, { "docid": "f0cbe83a065a6e171f1a44ecf51df1f2", "score": "0.45760027", "text": "private Expression parseNewArrayExpression(\n String elementTypeRef, SourcePosition newBegin, SourcePosition typeBegin) {\n expectAndConsume(LBRACK);\n Expression size = parseExpression();\n SourcePosition end = expectAndConsume(RBRACK).range().end;\n int dim = 0;\n while (matchCurrentAndLookAhead(LBRACK, RBRACK)) {\n expectAndConsume(LBRACK);\n end = expectAndConsume(RBRACK).range().end;\n dim++;\n }\n SourceRange typeRange = new SourceRange(typeBegin, end);\n SourceRange newRange = new SourceRange(newBegin, end);\n return new Expression.NewArray(\n new Type(new Ref<>(elementTypeRef), dim, typeRange), size, newRange);\n }", "title": "" }, { "docid": "55de438d1bf472deca3ead358674d3a3", "score": "0.45730376", "text": "@Test\n public void test_arraysPassing() {\n try {\n DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, \"passStringArray\");\n Annotation[] notes =\n ArraysUnionsTuscanyServant.class.getMethod(\"passStringArray\", new Class<?>[] {String[][].class})\n .getAnnotations();\n request.setOutputType(String[][].class, notes);\n String[][] argument = { {\"Hello\", \"World\"}, {\"Hi\", \"again\"}};\n request.addArgument(argument, notes);\n DynaCorbaResponse response = request.invoke();\n String[][] result = (String[][])response.getContent();\n for (int i = 0; i < argument.length; i++) {\n for (int j = 0; j < argument[i].length; j++) {\n assertEquals(argument[i][j], result[i][j]);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n\n try {\n DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, \"passTestStruct\");\n ArraysTestStruct arg = new ArraysTestStruct();\n String[] field1 = {\"Hello\", \"World\"};\n arg.field1 = field1;\n int[][] field2 = { {4, 2, 2, 5}, {6, 12, 5, 8}};\n arg.field2 = field2;\n float[][][] field3 = { { {2, 6}, {2, 7}, {9, 3}, {4, 6}}, { {3, 7}, {6, 6}, {3, 5}, {6, 2}}};\n arg.field3 = field3;\n request.addArgument(arg);\n request.setOutputType(ArraysTestStruct.class);\n DynaCorbaResponse response = request.invoke();\n ArraysTestStruct result = (ArraysTestStruct)response.getContent();\n for (int i = 0; i < arg.field1.length; i++) {\n assertEquals(arg.field1[i], result.field1[i]);\n }\n for (int i = 0; i < arg.field2.length; i++) {\n for (int j = 0; j < arg.field2[i].length; j++) {\n assertEquals(arg.field2[i][j], result.field2[i][j]);\n }\n }\n for (int i = 0; i < arg.field2.length; i++) {\n for (int j = 0; j < arg.field2[i].length; j++) {\n for (int k = 0; k < arg.field3[i][j].length; k++) {\n assertEquals(arg.field3[i][j][k], result.field3[i][j][k], 0.0);\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n }", "title": "" }, { "docid": "d3be22a021def4be7f642601fb033c7c", "score": "0.45635295", "text": "public void remIndexedObjRef(){\n rem(DmtDMSAG.__indexedObjRef);\n }", "title": "" }, { "docid": "fbb0a160c2e82b32ab2d2003776684c7", "score": "0.45627186", "text": "void generateMultianewarrayCore (Klass cls, int dimensions, \n int offsetToLength, String labelPrefix)\n {\n int index = cls.classIndex;\n int elsize = 4;\n int shift = 2;\n boolean objArray = false;\n String sig = cls.getSignature();\n \n if (sig.startsWith(\"[B\")) { elsize = 1; shift = 0; }\n else if (sig.startsWith(\"[C\")) { elsize = 1; shift = 0; }\n else if (sig.startsWith(\"[D\")) { elsize = 8; shift = 3; }\n else if (sig.startsWith(\"[F\")) { elsize = 4; shift = 2; }\n else if (sig.startsWith(\"[I\")) { elsize = 4; shift = 2; }\n else if (sig.startsWith(\"[J\")) { elsize = 8; shift = 3; }\n else if (sig.startsWith(\"[L\")) { elsize = 4; shift = 2; objArray = true; }\n else if (sig.startsWith(\"[S\")) { elsize = 2; shift = 1; }\n else if (sig.startsWith(\"[Z\")) { elsize = 1; shift = 0; }\n else if (sig.startsWith(\"[[\")) { elsize = 4; shift = 2; objArray = true; }\n\n if (dimensions <= 1) \n {\n if (objArray) \n {\n asmout.println(\"\\tmove.w\\t#\" + cls.classIndex + \",d0\\t; \" + cls);\n asmout.println(\"\\tmove.l\\t\" + offsetToLength + \"(a7),-(a7)\");\n asmout.println(\"\\tbsr.far\\top_anewarray\");\n asmout.println(\"\\tmove.l\\t(a7)+,a0\");\n }\n else \n {\n asmout.println(\"\\tmove.w\\t#\" + cls.classIndex + \",d0\\t; \" + cls);\n asmout.println(\"\\tmove.w\\t#\" + elsize + \",d1\");\n asmout.println(\"\\tmove.l\\t\" + offsetToLength + \"(a7),-(a7)\");\n asmout.println(\"\\tbsr.far\\top_newarray\");\n asmout.println(\"\\tmove.l\\t(a7)+,a0\");\n }\n }\n else \n {\n if (!sig.startsWith(\"[[\")) \n {\n ASSERT.fail (\"Wrong array type in 'multianewarray'\");\n }\n\n // data register to be used for the loop\n String loopReg = \"d\" + (9-dimensions);\n String loopLabel = labelPrefix + \"_loop\" + dimensions;\n String loopEndLabel = labelPrefix + \"_end\" + dimensions;\n Klass nextClass = Klass.forName (sig.substring (1));\n\n // new instance \n asmout.println(\"\\tmove.l\\t\" + offsetToLength + \"(a7),\" + loopReg);\n asmout.println(\"\\tmove.l\\t\" + loopReg + \",-(a7)\");\n asmout.println(\"\\tmove.w\\t#\" + cls.classIndex + \",d0\\t; \" + cls);\n asmout.println(\"\\tbsr.far\\top_anewarray\");\n asmout.println(\"\\tmove.l\\t(a7),a0\");\n asmout.println(\"\\tmove.l\\tArray.data(a0),-(a7)\");\n // stack is ... array-ptr, data-ptr\n\n // the loop\n asmout.println(\"\\tbra.s\\t\" + loopEndLabel);\n asmout.println(loopLabel + \":\");\n\n generateMultianewarrayCore (nextClass, dimensions-1, offsetToLength+4, \n labelPrefix);\n\n asmout.println(\"\\tmove.l\\t(a7),a1\");\n asmout.println(\"\\tmove.l\\ta0,(a1)+\");\n asmout.println(\"\\tmove.l\\ta1,(a7)\");\n asmout.println(loopEndLabel + \":\");\n asmout.println(\"\\tdbra\\t\" + loopReg + \",\" + loopLabel);\n asmout.println(\"\\taddq.l\\t#4,a7\");\n asmout.println(\"\\tmove.l\\t(a7)+,a0\");\n }\n }", "title": "" }, { "docid": "0dbc9d14c785effbe7d2f850de4a532b", "score": "0.4552697", "text": "private void m27379a(C8879e eVar, C9086a aVar) {\n int i;\n C8879e eVar2 = eVar;\n C9086a aVar2 = aVar;\n long j = aVar2.f20279b;\n this.f20503e.mo24689c(1);\n m27378a(j, this.f20503e.f22333a, 1);\n long j2 = j + 1;\n byte b = this.f20503e.f22333a[0];\n boolean z = (b & 128) != 0;\n byte b2 = b & Byte.MAX_VALUE;\n C8874b bVar = eVar2.f19022U;\n if (bVar.f19006a == null) {\n bVar.f19006a = new byte[16];\n }\n m27378a(j2, eVar2.f19022U.f19006a, (int) b2);\n long j3 = j2 + ((long) b2);\n if (z) {\n this.f20503e.mo24689c(2);\n m27378a(j3, this.f20503e.f22333a, 2);\n j3 += 2;\n i = this.f20503e.mo24676B();\n } else {\n i = 1;\n }\n int[] iArr = eVar2.f19022U.f19007b;\n if (iArr == null || iArr.length < i) {\n iArr = new int[i];\n }\n int[] iArr2 = iArr;\n int[] iArr3 = eVar2.f19022U.f19008c;\n if (iArr3 == null || iArr3.length < i) {\n iArr3 = new int[i];\n }\n int[] iArr4 = iArr3;\n if (z) {\n int i2 = i * 6;\n this.f20503e.mo24689c(i2);\n m27378a(j3, this.f20503e.f22333a, i2);\n j3 += (long) i2;\n this.f20503e.mo24693e(0);\n for (int i3 = 0; i3 < i; i3++) {\n iArr2[i3] = this.f20503e.mo24676B();\n iArr4[i3] = this.f20503e.mo24715z();\n }\n } else {\n iArr2[0] = 0;\n iArr4[0] = aVar2.f20278a - ((int) (j3 - aVar2.f20279b));\n }\n C8925a aVar3 = aVar2.f20280c;\n C8874b bVar2 = eVar2.f19022U;\n bVar2.mo23216a(i, iArr2, iArr4, aVar3.f19172b, bVar2.f19006a, aVar3.f19171a, aVar3.f19173c, aVar3.f19174d);\n long j4 = aVar2.f20279b;\n int i4 = (int) (j3 - j4);\n aVar2.f20279b = j4 + ((long) i4);\n aVar2.f20278a -= i4;\n }", "title": "" }, { "docid": "a31d34ca7fb4f0ea73a85903c73d6a51", "score": "0.45482323", "text": "static void solveEls() throws XPRSexception\n {\n double objval; /* Objective value */\n int t,l;\n int starttime;\n int ncut, npass, npcut; /* Counters for cuts and passes */\n double[] solprod, solsetup; /* Solution values for var.s prod & setup */\n double ds;\n XPRSprob op;\n XPRBbasis basis;\n XPRBexpr le;\n\n starttime=XPRB.getTime();\n op=p.getXPRSprob();\n op.setIntControl(XPRS.CUTSTRATEGY, 0);\n /* Disable automatic cuts - we use our own */\n op.setIntControl(XPRS.PRESOLVE, 0);\n /* Switch presolve off */\n ncut = npass = 0;\n solprod = new double[T];\n solsetup = new double[T];\n\n do\n {\n npass++;\n npcut = 0;\n p.lpOptimize(\"p\"); /* Solve the LP */\n basis = p.saveBasis(); /* Save the current basis */\n objval = p.getObjVal(); /* Get the objective value */\n\n /* Get the solution values: */\n for(t=0;t<T;t++)\n {\n solprod[t]=prod[t].getSol();\n solsetup[t]=setup[t].getSol();\n }\n \n /* Search for violated constraints: */\n for(l=0;l<T;l++)\n {\n for(ds=0.0, t=0; t<=l; t++)\n {\n if(solprod[t] < D[t][l]*solsetup[t] + EPS) ds += solprod[t];\n else ds += D[t][l]*solsetup[t];\n }\n\n /* Add the violated inequality: the minimum of the actual production\n prod[t] and the maximum potential production D[t][l]*setup[t] \n in periods 0 to l must at least equal the total demand in periods \n 0 to l.\n sum(t=1:l) min(prod[t], D[t][l]*setup[t]) >= D[0][l]\n */\n if(ds < D[0][l] - EPS) \n {\n le = new XPRBexpr();\n for(t=0;t<=l;t++) \n {\n if (solprod[t] < D[t][l]*solsetup[t] + EPS)\n le .add(prod[t]);\n else\n le .add(setup[t].mul(D[t][l]));\n }\n p.newCtr(\"cut\" +(ncut+1), le.gEql(D[0][l]) );\n ncut++; \n npcut++;\n }\n }\n \n System.out.println(\"Pass \" +npass + \" (\" +(XPRB.getTime()-starttime)/1000.0 \n + \" sec), objective value \" + objval + \", cuts added: \" + npcut \n + \" (total \" + ncut +\")\");\n\n if(npcut==0) \n System.out.println(\"Optimal integer solution found:\");\n else\n { \n p.loadMat(); /* Reload the problem */\n p.loadBasis(basis); /* Load the saved basis */\n basis = null; /* No need to keep the basis any longer */\n }\n } while(npcut>0);\n\n /* Print out the solution: */\n for(t=0;t<T;t++)\n System.out.println(\"Period \" + (t+1) + \": prod \" + prod[t].getSol()\n + \" (demand: \" + DEMAND[t] + \", cost: \" + PRODCOST[t] + \"), setup \" \n + setup[t].getSol() + \" (cost: \" + SETUPCOST[t] + \")\"); \n }", "title": "" }, { "docid": "582ff3d13e96c797ecdef04c4aaa4714", "score": "0.45473847", "text": "public final long a(f[] fVarArr, boolean[] zArr, l[] lVarArr, boolean[] zArr2, long j) {\n int i;\n AppMethodBeat.i(125913);\n int[] iArr = new int[fVarArr.length];\n int[] iArr2 = new int[fVarArr.length];\n int i2 = 0;\n while (true) {\n i = i2;\n if (i >= fVarArr.length) {\n break;\n }\n if (lVarArr[i] == null) {\n i2 = -1;\n } else {\n i2 = ((Integer) this.bjd.get(lVarArr[i])).intValue();\n }\n iArr[i] = i2;\n iArr2[i] = -1;\n if (fVarArr[i] != null) {\n o tf = fVarArr[i].tf();\n for (i2 = 0; i2 < this.bjg.length; i2++) {\n if (this.bjg[i2].aNe.a(tf) != -1) {\n iArr2[i] = i2;\n break;\n }\n }\n }\n i2 = i + 1;\n }\n boolean z = false;\n this.bjd.clear();\n l[] lVarArr2 = new l[fVarArr.length];\n l[] lVarArr3 = new l[fVarArr.length];\n f[] fVarArr2 = new f[fVarArr.length];\n int i3 = 0;\n j[] jVarArr = new j[this.bjg.length];\n i2 = 0;\n while (true) {\n i = i2;\n if (i < this.bjg.length) {\n Object obj;\n i2 = 0;\n while (i2 < fVarArr.length) {\n lVarArr3[i2] = iArr[i2] == i ? lVarArr[i2] : null;\n fVarArr2[i2] = iArr2[i2] == i ? fVarArr[i2] : null;\n i2++;\n }\n j jVar = this.bjg[i];\n com.google.android.exoplayer2.i.a.checkState(jVar.prepared);\n int i4 = jVar.bgT;\n i2 = 0;\n while (true) {\n int i5 = i2;\n if (i5 >= fVarArr2.length) {\n break;\n }\n if (lVarArr3[i5] != null && (fVarArr2[i5] == null || !zArr[i5])) {\n jVar.r(((i) lVarArr3[i5]).bjl, false);\n lVarArr3[i5] = null;\n }\n i2 = i5 + 1;\n }\n if (z || (jVar.bgR ? i4 == 0 : j != jVar.bgZ)) {\n obj = 1;\n } else {\n obj = null;\n }\n f fVar = jVar.bjo.biB;\n i4 = 0;\n Object obj2 = obj;\n Object obj3 = fVar;\n while (i4 < fVarArr2.length) {\n if (lVarArr3[i4] == null && fVarArr2[i4] != null) {\n f fVar2 = fVarArr2[i4];\n int a = jVar.aNe.a(fVar2.tf());\n jVar.r(a, true);\n if (a == jVar.bju) {\n jVar.bjo.biB = fVar2;\n obj3 = fVar2;\n }\n lVarArr3[i4] = new i(jVar, a);\n zArr2[i4] = true;\n if (obj2 == null) {\n k kVar = jVar.bgO[a];\n kVar.rewind();\n if (kVar.g(j, true) || kVar.bhG.sj() == 0) {\n obj = null;\n i4++;\n obj2 = obj;\n } else {\n obj = 1;\n i4++;\n obj2 = obj;\n }\n }\n }\n obj = obj2;\n i4++;\n obj2 = obj;\n }\n if (jVar.bgT == 0) {\n jVar.bjo.biw = null;\n jVar.bjs = null;\n jVar.bjr.clear();\n if (jVar.bgI.isLoading()) {\n for (k sq : jVar.bgO) {\n sq.sq();\n }\n jVar.bgI.cancelLoading();\n } else {\n jVar.sA();\n }\n } else {\n boolean z2;\n if (!(jVar.bjr.isEmpty() || v.j(obj3, fVar))) {\n if (jVar.bgR) {\n obj = 1;\n } else {\n obj3.ag(0);\n if (obj3.th() != jVar.bjo.bis.j(((f) jVar.bjr.getLast()).bic)) {\n obj = 1;\n } else {\n obj = null;\n }\n }\n if (obj != null) {\n z2 = true;\n obj2 = 1;\n jVar.bjy = true;\n if (obj2 != null) {\n jVar.j(j, z2);\n for (i2 = 0; i2 < lVarArr3.length; i2++) {\n if (lVarArr3[i2] != null) {\n zArr2[i2] = true;\n }\n }\n }\n }\n }\n z2 = z;\n if (obj2 != null) {\n }\n }\n jVar.bgR = true;\n obj = null;\n for (i4 = 0; i4 < fVarArr.length; i4++) {\n if (iArr2[i4] == i) {\n com.google.android.exoplayer2.i.a.checkState(lVarArr3[i4] != null);\n lVarArr2[i4] = lVarArr3[i4];\n obj = 1;\n this.bjd.put(lVarArr3[i4], Integer.valueOf(i));\n } else if (iArr[i4] == i) {\n com.google.android.exoplayer2.i.a.checkState(lVarArr3[i4] == null);\n }\n }\n if (obj != null) {\n jVarArr[i3] = jVar;\n i2 = i3 + 1;\n if (i3 == 0) {\n jVar.aJ(true);\n if (!(obj2 == null && this.bjh.length != 0 && jVar == this.bjh[0])) {\n this.bip.bjA.clear();\n z = true;\n i3 = i2;\n }\n } else {\n jVar.aJ(false);\n }\n i3 = i2;\n }\n i2 = i + 1;\n } else {\n System.arraycopy(lVarArr2, 0, lVarArr, 0, lVarArr2.length);\n this.bjh = (j[]) Arrays.copyOf(jVarArr, i3);\n this.bji = new com.google.android.exoplayer2.source.e(this.bjh);\n AppMethodBeat.o(125913);\n return j;\n }\n }\n }", "title": "" }, { "docid": "e52adca594032b7125df3bab065c531d", "score": "0.4544569", "text": "private void retBfunValuesAdd(Rule rule, Formula formula, String contextName,Element deleElement, Element addElement, RuntimeNode nodeRun, boolean del_add) {\n\t\t\tif(formula.getKind().matches(\"forall\")) {\r\n\t\t\t\tForallFormula forallFormula = (ForallFormula)formula;\r\n\t\t\t\tif(forallFormula.getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t\t\tnode.setKind(addElement.getKey());\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t rule.changeContext(contextName, deleElement, addElement);\r\n\t\t\t\t\t nodeRun.setVar(((ForallFormula)formula).getVariable(),sc);\r\n\t\t\t\t\t boolean result = node.evaluateEcc(rule.getContexts(), nodeRun);\r\n\t\t\t\t\t bfuncValueList.add(result);\r\n\t\t\t\t\t nodeRun.deleteVar(variable);\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t /*if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesAdd(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((forallFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesAdd(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"exists\")){\r\n\t\t\t\tExistsFormula existsFormula = (ExistsFormula)formula;\r\n\t\t\t\tif((existsFormula).getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t\t\tnode.setKind(addElement.getKey());\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t rule.changeContext(contextName, deleElement, addElement);\r\n\t\t\t\t\t nodeRun.setVar(((ExistsFormula)formula).getVariable(),sc);\r\n\t\t\t\t\t boolean result = node.evaluateEcc(rule.getContexts(), nodeRun);\r\n\t\t\t\t\t bfuncValueList.add(result);\r\n\t\t\t\t\t nodeRun.deleteVar(variable);\r\n\t\t\t\t\t /*if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesAdd(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((existsFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t //System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesAdd(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"not\")){\r\n\t\t\t\tUnaryFormula unaryFormula = (UnaryFormula)formula;\r\n\t\t\t\tretBfunValuesAdd(rule, (unaryFormula).getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"and\")){\r\n\t\t\t\tAndFormula andFormula = (AndFormula)formula;\r\n\t\t\t\tretBfunValuesAdd(rule, (andFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesAdd(rule, (andFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"or\")){\r\n\t\t\t\tOrFormula orFormula = (OrFormula)formula;\r\n\t\t\t\tretBfunValuesAdd(rule, (orFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesAdd(rule, (orFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"implies\")){\r\n\t\t\t\tImpliesFormula impliesFormula = (ImpliesFormula)formula;\r\n\t\t\t\tretBfunValuesAdd(rule, (impliesFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesAdd(rule, (impliesFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//System.out.println(\"Bfunc value evaluating...\"+formula.getKind());\r\n\t\t\t\t//System.out.println(nodeRun.getVar().toString());\r\n\t\t\t\t\r\n\t\t\t\t//if(del_add==true)\r\n\t\t\t\t//\tbfuncValueList.add(((BFunc)formula).getValue());\r\n\t\t\t\t//else {\r\n\t\t\t\t\tboolean value = ((BFunc)formula).evaluateEcc(rule.getContexts(), nodeRun);\r\n\t\t\t\t\tbfuncValueList.add(value);\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cacdcdda445f7fea2675543c0318fd50", "score": "0.4543952", "text": "private List<ReferenceNode> buildInBeanReferences(String nodeName, String id)\n\t\t\tthrows UAServerException {\n\t\tfinal List<ReferenceNode> inBeanReferences = new ArrayList<ReferenceNode>();\n\n\t\t/*\n\t\t * the nodemapping contains all information to create a reference for\n\t\t * each property, variable, reference in the bean\n\t\t */\n\t\tfinal NodeMapping nodeMapping = getNodeMapping(nodeName);\n\n\t\t/**\n\t\t * the obj we extract properties and so on from.\n\t\t */\n\t\tfinal Object obj = annoNodeSource.getObjectById(nodeMapping.getClazz(),\n\t\t\t\tid);\n\t\t// only if obj really exists, we build referenced for it. notice we do\n\t\t// not need actual values from it\n\t\tif (obj != null) {\n\t\t\tfor (final ReferenceMapping refMapping : nodeMapping\n\t\t\t\t\t.getReferencesByName().values()) {\n\t\t\t\ttry {\n\t\t\t\t\tfinal String fieldName = refMapping.getFieldName();\n\t\t\t\t\tfinal String fieldId = nodeMapping.getNodeName()\n\t\t\t\t\t\t\t+ ID_SEPARATOR + id + ID_SEPARATOR + fieldName;\n\t\t\t\t\tfinal NodeId nodeId = new NodeId(nsIndex, fieldId);\n\t\t\t\t\t// String displayName = fieldName;\n\t\t\t\t\t/*\n\t\t\t\t\t * //build the reference description Node referencedNode =\n\t\t\t\t\t * NodeFactory.getNodeInstance(fieldId,\n\t\t\t\t\t * refMapping.getDescription(), displayName, locale,\n\t\t\t\t\t * refMapping.getNodeClass(), new NodeId(nsIndex, fieldId));\n\t\t\t\t\t * \n\t\t\t\t\t * //TODO add typedefinition reference. take the one from\n\t\t\t\t\t * the nodeMApping\n\t\t\t\t\t * NodeUtils.addReferenceToNode(referencedNode, new\n\t\t\t\t\t * ReferenceNode(Identifiers.HasTypeDefinition, false, new\n\t\t\t\t\t * ExpandedNodeId(Identifiers.PropertyType)));\n\t\t\t\t\t */\n\t\t\t\t\tfinal ReferenceNode ref = new ReferenceNode(\n\t\t\t\t\t\t\trefMapping.getReferenceType(), false,\n\t\t\t\t\t\t\tNodeUtils.toExpandedNodeId(nodeId));\n\t\t\t\t\tinBeanReferences.add(ref);\n\t\t\t\t} catch (final Exception e) {\n\t\t\t\t\tLOG.error(e.getMessage(), e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn inBeanReferences;\n\t}", "title": "" }, { "docid": "7086b53456c2af51ea9330cdc8de0d10", "score": "0.4540526", "text": "private static void arrayCreator(Operation ptr, boolean rhs) throws Exception\r\n {\r\n ClassType [] c;\r\n MethodType [] m = Find.getMethod(\"JavaArray\", null, null, c = findClass(\"JavaArray\", 0));\r\n String routine = ' ' + Find.buildQualifiedName(m[1].scope.prev.prev, c[0], false, \"\").trim() + \".table \" + (m[1].version & -4) + \" EXECUTE-NEW \";\r\n m = Find.getMethod(\"getElem\", null, null, c);\r\n String getElem = ' ' + Find.buildQualifiedName(m[0].scope, m[0], false, \"SWAP\");\r\n\r\n Type t = new Type(ptr.type);\r\n\r\n for (Operation n = ptr.left; n != null; n = n.right)\r\n {\r\n traverse(n.left, false, false, false, null, false, false);\r\n if (n.left.type.type != Keyword.INTSY &&\r\n n.left.type.type != Keyword.SHORTSY &&\r\n n.left.type.type != Keyword.CHARSY ||\r\n n.left.type.dim != 0)\r\n Find.error(\"index not an integer!\");\r\n\r\n if (n.right != null)\r\n {\r\n n.left.code += \"A:R@ \" + Find.crc(t) + routine + \"R> 0\\nDO\\n\";\r\n n.code = \"OVER I \" + getElem + \" !\\nLOOP\\n\" + n.code;\r\n }\r\n else\r\n n.left.code += Find.crc(t) + routine;\r\n t.dim--;\r\n }\r\n\r\n if (t.dim < 0)\r\n Find.error(\"too many indizes!\");\r\n\r\n if (!rhs)\r\n {\r\n ptr.code += \"DUP TO \" + locals.size() + \"§ \";\r\n locals.add(new Type(ptr.type));\r\n }\r\n }", "title": "" }, { "docid": "667f048b953c767160199795d577caae", "score": "0.45395413", "text": "public static long solve(/* change signature to provide required inputs */) {\n throw new UnsupportedOperationException(\"Problem068 hasn't been solved yet.\");\n }", "title": "" }, { "docid": "8143c99d106b9ba8d303fc37a6eb5d72", "score": "0.45322376", "text": "private Object readResolve() {\n/* 265 */ double d = Double.longBitsToDouble(this.identity);\n/* 266 */ DoubleAccumulator doubleAccumulator = new DoubleAccumulator(this.function, d);\n/* 267 */ doubleAccumulator.base = Double.doubleToRawLongBits(this.value);\n/* 268 */ return doubleAccumulator;\n/* */ }", "title": "" }, { "docid": "9529003924378b562590dd658007f215", "score": "0.45309144", "text": "private void retBfunValuesDel(Rule rule, Formula formula, String contextName,Element deleElement, Element addElement, RuntimeNode nodeRun, boolean del_add) {\n\t\t\tif(formula.getKind().matches(\"forall\")) {\r\n\t\t\t\tForallFormula forallFormula = (ForallFormula)formula;\r\n\t\t\t\tif(forallFormula.getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t boolean value = node.getValue();\r\n\t\t\t\t\t bfuncValueList.add(value);\r\n\t\t\t\t\t /*if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesDel(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (forallFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((forallFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (forallFormula).getVariable();\r\n\t\t\t\t\t ////System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesDel(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"exists\")){\r\n\t\t\t\tExistsFormula existsFormula = (ExistsFormula)formula;\r\n\t\t\t\tif((existsFormula).getContext().equals(contextName)){\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\tHashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(node.getKind().equals(deleElement.getKey())){\r\n\t\t\t\t\t\t\tElement sc;\r\n\t\t\t\t\t\t\tif(del_add == true)//evaluate for deletion change\r\n\t\t\t\t\t\t\t\tsc = map.get(node.getKind());\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tsc = addElement;\r\n\t\t\t\t\t\t\tboolean value = node.getValue();\r\n\t\t\t\t\t bfuncValueList.add(value);\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t \r\n\t\t\t\t\t /*if(sc!=null){\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesDel(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse {\r\n\t\t\t\t\tLinkedList<SubNode> elementList = (existsFormula).getSubnodes();\r\n\t\t\t\t\tfor(int i = 0; i< elementList.size(); i++){\r\n\t\t\t\t\t\tSubNode node = elementList.get(i);\r\n\t\t\t\t\t\t//HashMap<String, Element> map = rule.getContexts().get(contextName).getElements();\r\n\t\t\t\t\t\tElement sc = rule.getContexts().get((existsFormula).getContext()).getElements().get(node.getKind());\r\n\r\n\t\t\t\t\t String variable = (existsFormula).getVariable();\r\n\t\t\t\t\t if(sc!=null){\r\n\t\t\t\t\t\t //System.out.println(\"setVar:\"+variable+\"---\"+sc.toString());\r\n\t\t\t\t\t\t nodeRun.setVar(variable,sc);\r\n\t\t\t\t\t\t retBfunValuesDel(rule, node.getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\t\t\t\tnodeRun.deleteVar(variable);\r\n\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\telse if(formula.getKind().matches(\"not\")){\r\n\t\t\t\tUnaryFormula unaryFormula = (UnaryFormula)formula;\r\n\t\t\t\tretBfunValuesDel(rule, (unaryFormula).getFormula(), contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"and\")){\r\n\t\t\t\tAndFormula andFormula = (AndFormula)formula;\r\n\t\t\t\tretBfunValuesDel(rule, (andFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesDel(rule, (andFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"or\")){\r\n\t\t\t\tOrFormula orFormula = (OrFormula)formula;\r\n\t\t\t\tretBfunValuesDel(rule, (orFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesDel(rule, (orFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t\telse if(formula.getKind().matches(\"implies\")){\r\n\t\t\t\tImpliesFormula impliesFormula = (ImpliesFormula)formula;\r\n\t\t\t\tretBfunValuesDel(rule, (impliesFormula).getFirst(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t\tretBfunValuesDel(rule, (impliesFormula).getSecond(),contextName, deleElement, addElement, nodeRun, del_add);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "7daf501215123eca010013d81bb3593c", "score": "0.45303226", "text": "protected void fillElementsflatArray(EquivalenceSet[] eqGroupArray, Object[] flatVertexArray)\r\n/* */ {\r\n/* 288 */ int flatVertexArrayNextFree = 0;\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 292 */ for (int eqGroupCounter = 0; \r\n/* 293 */ eqGroupCounter < eqGroupArray.length; \r\n/* 294 */ eqGroupCounter++)\r\n/* */ {\r\n/* 296 */ Object[] currGroupArray = eqGroupArray[eqGroupCounter].toArray();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 300 */ System.arraycopy(\r\n/* 301 */ currGroupArray, \r\n/* 302 */ 0, \r\n/* 303 */ flatVertexArray, \r\n/* 304 */ flatVertexArrayNextFree, \r\n/* 305 */ currGroupArray.length);\r\n/* */ \r\n/* 307 */ flatVertexArrayNextFree += currGroupArray.length;\r\n/* */ }\r\n/* */ }", "title": "" }, { "docid": "7b536edbe491f8fd62e9f4887ba418fb", "score": "0.4529203", "text": "private static C5695a[] m24969d() {\n r0 = new C5695a[40];\n int[] iArr = new int[0];\n C5694b[] c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(7, new C5693a(1, 19));\n c5694bArr[1] = new C5694b(10, new C5693a(1, 16));\n c5694bArr[2] = new C5694b(13, new C5693a(1, 13));\n c5694bArr[3] = new C5694b(17, new C5693a(1, 9));\n r0[0] = new C5695a(1, iArr, c5694bArr);\n iArr = new int[]{6, 18};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(10, new C5693a(1, 34));\n c5694bArr[1] = new C5694b(16, new C5693a(1, 28));\n c5694bArr[2] = new C5694b(22, new C5693a(1, 22));\n c5694bArr[3] = new C5694b(28, new C5693a(1, 16));\n r0[1] = new C5695a(2, iArr, c5694bArr);\n iArr = new int[]{6, 22};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(15, new C5693a(1, 55));\n c5694bArr[1] = new C5694b(26, new C5693a(1, 44));\n c5694bArr[2] = new C5694b(18, new C5693a(2, 17));\n c5694bArr[3] = new C5694b(22, new C5693a(2, 13));\n r0[2] = new C5695a(3, iArr, c5694bArr);\n iArr = new int[]{6, 26};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(20, new C5693a(1, 80));\n c5694bArr[1] = new C5694b(18, new C5693a(2, 32));\n c5694bArr[2] = new C5694b(26, new C5693a(2, 24));\n c5694bArr[3] = new C5694b(16, new C5693a(4, 9));\n r0[3] = new C5695a(4, iArr, c5694bArr);\n iArr = new int[]{6, 30};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(26, new C5693a(1, 108));\n c5694bArr[1] = new C5694b(24, new C5693a(2, 43));\n c5694bArr[2] = new C5694b(18, new C5693a(2, 15), new C5693a(2, 16));\n c5694bArr[3] = new C5694b(22, new C5693a(2, 11), new C5693a(2, 12));\n r0[4] = new C5695a(5, iArr, c5694bArr);\n iArr = new int[]{6, 34};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(18, new C5693a(2, 68));\n c5694bArr[1] = new C5694b(16, new C5693a(4, 27));\n c5694bArr[2] = new C5694b(24, new C5693a(4, 19));\n c5694bArr[3] = new C5694b(28, new C5693a(4, 15));\n r0[5] = new C5695a(6, iArr, c5694bArr);\n iArr = new int[]{6, 22, 38};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(20, new C5693a(2, 78));\n c5694bArr[1] = new C5694b(18, new C5693a(4, 31));\n c5694bArr[2] = new C5694b(18, new C5693a(2, 14), new C5693a(4, 15));\n c5694bArr[3] = new C5694b(26, new C5693a(4, 13), new C5693a(1, 14));\n r0[6] = new C5695a(7, iArr, c5694bArr);\n iArr = new int[]{6, 24, 42};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(24, new C5693a(2, 97));\n c5694bArr[1] = new C5694b(22, new C5693a(2, 38), new C5693a(2, 39));\n c5694bArr[2] = new C5694b(22, new C5693a(4, 18), new C5693a(2, 19));\n c5694bArr[3] = new C5694b(26, new C5693a(4, 14), new C5693a(2, 15));\n r0[7] = new C5695a(8, iArr, c5694bArr);\n iArr = new int[]{6, 26, 46};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(30, new C5693a(2, 116));\n c5694bArr[1] = new C5694b(22, new C5693a(3, 36), new C5693a(2, 37));\n c5694bArr[2] = new C5694b(20, new C5693a(4, 16), new C5693a(4, 17));\n c5694bArr[3] = new C5694b(24, new C5693a(4, 12), new C5693a(4, 13));\n r0[8] = new C5695a(9, iArr, c5694bArr);\n iArr = new int[]{6, 28, 50};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(18, new C5693a(2, 68), new C5693a(2, 69));\n c5694bArr[1] = new C5694b(26, new C5693a(4, 43), new C5693a(1, 44));\n c5694bArr[2] = new C5694b(24, new C5693a(6, 19), new C5693a(2, 20));\n c5694bArr[3] = new C5694b(28, new C5693a(6, 15), new C5693a(2, 16));\n r0[9] = new C5695a(10, iArr, c5694bArr);\n iArr = new int[]{6, 30, 54};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(20, new C5693a(4, 81));\n c5694bArr[1] = new C5694b(30, new C5693a(1, 50), new C5693a(4, 51));\n c5694bArr[2] = new C5694b(28, new C5693a(4, 22), new C5693a(4, 23));\n c5694bArr[3] = new C5694b(24, new C5693a(3, 12), new C5693a(8, 13));\n r0[10] = new C5695a(11, iArr, c5694bArr);\n iArr = new int[]{6, 32, 58};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(24, new C5693a(2, 92), new C5693a(2, 93));\n c5694bArr[1] = new C5694b(22, new C5693a(6, 36), new C5693a(2, 37));\n c5694bArr[2] = new C5694b(26, new C5693a(4, 20), new C5693a(6, 21));\n c5694bArr[3] = new C5694b(28, new C5693a(7, 14), new C5693a(4, 15));\n r0[11] = new C5695a(12, iArr, c5694bArr);\n iArr = new int[]{6, 34, 62};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(26, new C5693a(4, 107));\n c5694bArr[1] = new C5694b(22, new C5693a(8, 37), new C5693a(1, 38));\n c5694bArr[2] = new C5694b(24, new C5693a(8, 20), new C5693a(4, 21));\n c5694bArr[3] = new C5694b(22, new C5693a(12, 11), new C5693a(4, 12));\n r0[12] = new C5695a(13, iArr, c5694bArr);\n iArr = new int[]{6, 26, 46, 66};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(30, new C5693a(3, 115), new C5693a(1, 116));\n c5694bArr[1] = new C5694b(24, new C5693a(4, 40), new C5693a(5, 41));\n c5694bArr[2] = new C5694b(20, new C5693a(11, 16), new C5693a(5, 17));\n c5694bArr[3] = new C5694b(24, new C5693a(11, 12), new C5693a(5, 13));\n r0[13] = new C5695a(14, iArr, c5694bArr);\n iArr = new int[]{6, 26, 48, 70};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(22, new C5693a(5, 87), new C5693a(1, 88));\n c5694bArr[1] = new C5694b(24, new C5693a(5, 41), new C5693a(5, 42));\n c5694bArr[2] = new C5694b(30, new C5693a(5, 24), new C5693a(7, 25));\n c5694bArr[3] = new C5694b(24, new C5693a(11, 12), new C5693a(7, 13));\n r0[14] = new C5695a(15, iArr, c5694bArr);\n iArr = new int[]{6, 26, 50, 74};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(24, new C5693a(5, 98), new C5693a(1, 99));\n c5694bArr[1] = new C5694b(28, new C5693a(7, 45), new C5693a(3, 46));\n c5694bArr[2] = new C5694b(24, new C5693a(15, 19), new C5693a(2, 20));\n c5694bArr[3] = new C5694b(30, new C5693a(3, 15), new C5693a(13, 16));\n r0[15] = new C5695a(16, iArr, c5694bArr);\n iArr = new int[]{6, 30, 54, 78};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(28, new C5693a(1, 107), new C5693a(5, 108));\n c5694bArr[1] = new C5694b(28, new C5693a(10, 46), new C5693a(1, 47));\n c5694bArr[2] = new C5694b(28, new C5693a(1, 22), new C5693a(15, 23));\n c5694bArr[3] = new C5694b(28, new C5693a(2, 14), new C5693a(17, 15));\n r0[16] = new C5695a(17, iArr, c5694bArr);\n iArr = new int[]{6, 30, 56, 82};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(30, new C5693a(5, 120), new C5693a(1, 121));\n c5694bArr[1] = new C5694b(26, new C5693a(9, 43), new C5693a(4, 44));\n c5694bArr[2] = new C5694b(28, new C5693a(17, 22), new C5693a(1, 23));\n c5694bArr[3] = new C5694b(28, new C5693a(2, 14), new C5693a(19, 15));\n r0[17] = new C5695a(18, iArr, c5694bArr);\n iArr = new int[]{6, 30, 58, 86};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(28, new C5693a(3, 113), new C5693a(4, 114));\n c5694bArr[1] = new C5694b(26, new C5693a(3, 44), new C5693a(11, 45));\n c5694bArr[2] = new C5694b(26, new C5693a(17, 21), new C5693a(4, 22));\n c5694bArr[3] = new C5694b(26, new C5693a(9, 13), new C5693a(16, 14));\n r0[18] = new C5695a(19, iArr, c5694bArr);\n iArr = new int[]{6, 34, 62, 90};\n c5694bArr = new C5694b[4];\n c5694bArr[0] = new C5694b(28, new C5693a(3, 107), new C5693a(5, 108));\n c5694bArr[1] = new C5694b(26, new C5693a(3, 41), new C5693a(13, 42));\n c5694bArr[2] = new C5694b(30, new C5693a(15, 24), new C5693a(5, 25));\n c5694bArr[3] = new C5694b(28, new C5693a(15, 15), new C5693a(10, 16));\n r0[19] = new C5695a(20, iArr, c5694bArr);\n int[] iArr2 = new int[]{6, 28, 50, 72, 94};\n r3 = new C5694b[4];\n r3[0] = new C5694b(28, new C5693a(4, 116), new C5693a(4, 117));\n r3[1] = new C5694b(26, new C5693a(17, 42));\n r3[2] = new C5694b(28, new C5693a(17, 22), new C5693a(6, 23));\n r3[3] = new C5694b(30, new C5693a(19, 16), new C5693a(6, 17));\n r0[20] = new C5695a(21, iArr2, r3);\n iArr2 = new int[]{6, 26, 50, 74, 98};\n r3 = new C5694b[4];\n r3[0] = new C5694b(28, new C5693a(2, 111), new C5693a(7, 112));\n r3[1] = new C5694b(28, new C5693a(17, 46));\n r3[2] = new C5694b(30, new C5693a(7, 24), new C5693a(16, 25));\n r3[3] = new C5694b(24, new C5693a(34, 13));\n r0[21] = new C5695a(22, iArr2, r3);\n iArr2 = new int[]{6, 30, 54, 78, 102};\n r6 = new C5694b[4];\n r6[0] = new C5694b(30, new C5693a(4, 121), new C5693a(5, 122));\n r6[1] = new C5694b(28, new C5693a(4, 47), new C5693a(14, 48));\n r6[2] = new C5694b(30, new C5693a(11, 24), new C5693a(14, 25));\n r6[3] = new C5694b(30, new C5693a(16, 15), new C5693a(14, 16));\n r0[22] = new C5695a(23, iArr2, r6);\n iArr2 = new int[]{6, 28, 54, 80, 106};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(6, 117), new C5693a(4, 118));\n r3[1] = new C5694b(28, new C5693a(6, 45), new C5693a(14, 46));\n r3[2] = new C5694b(30, new C5693a(11, 24), new C5693a(16, 25));\n r3[3] = new C5694b(30, new C5693a(30, 16), new C5693a(2, 17));\n r0[23] = new C5695a(24, iArr2, r3);\n iArr2 = new int[]{6, 32, 58, 84, 110};\n r3 = new C5694b[4];\n r3[0] = new C5694b(26, new C5693a(8, 106), new C5693a(4, 107));\n r3[1] = new C5694b(28, new C5693a(8, 47), new C5693a(13, 48));\n r3[2] = new C5694b(30, new C5693a(7, 24), new C5693a(22, 25));\n r3[3] = new C5694b(30, new C5693a(22, 15), new C5693a(13, 16));\n r0[24] = new C5695a(25, iArr2, r3);\n iArr2 = new int[]{6, 30, 58, 86, 114};\n r3 = new C5694b[4];\n r3[0] = new C5694b(28, new C5693a(10, 114), new C5693a(2, 115));\n r3[1] = new C5694b(28, new C5693a(19, 46), new C5693a(4, 47));\n r3[2] = new C5694b(28, new C5693a(28, 22), new C5693a(6, 23));\n r3[3] = new C5694b(30, new C5693a(33, 16), new C5693a(4, 17));\n r0[25] = new C5695a(26, iArr2, r3);\n iArr2 = new int[]{6, 34, 62, 90, 118};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(8, 122), new C5693a(4, 123));\n r3[1] = new C5694b(28, new C5693a(22, 45), new C5693a(3, 46));\n r3[2] = new C5694b(30, new C5693a(8, 23), new C5693a(26, 24));\n r3[3] = new C5694b(30, new C5693a(12, 15), new C5693a(28, 16));\n r0[26] = new C5695a(27, iArr2, r3);\n iArr2 = new int[]{6, 26, 50, 74, 98, 122};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(3, 117), new C5693a(10, 118));\n r3[1] = new C5694b(28, new C5693a(3, 45), new C5693a(23, 46));\n r3[2] = new C5694b(30, new C5693a(4, 24), new C5693a(31, 25));\n r3[3] = new C5694b(30, new C5693a(11, 15), new C5693a(31, 16));\n r0[27] = new C5695a(28, iArr2, r3);\n iArr2 = new int[]{6, 30, 54, 78, 102, 126};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(7, 116), new C5693a(7, 117));\n r3[1] = new C5694b(28, new C5693a(21, 45), new C5693a(7, 46));\n r3[2] = new C5694b(30, new C5693a(1, 23), new C5693a(37, 24));\n r3[3] = new C5694b(30, new C5693a(19, 15), new C5693a(26, 16));\n r0[28] = new C5695a(29, iArr2, r3);\n iArr2 = new int[]{6, 26, 52, 78, 104, 130};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(5, 115), new C5693a(10, 116));\n r3[1] = new C5694b(28, new C5693a(19, 47), new C5693a(10, 48));\n r3[2] = new C5694b(30, new C5693a(15, 24), new C5693a(25, 25));\n r3[3] = new C5694b(30, new C5693a(23, 15), new C5693a(25, 16));\n r0[29] = new C5695a(30, iArr2, r3);\n iArr2 = new int[]{6, 30, 56, 82, 108, 134};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(13, 115), new C5693a(3, 116));\n r3[1] = new C5694b(28, new C5693a(2, 46), new C5693a(29, 47));\n r3[2] = new C5694b(30, new C5693a(42, 24), new C5693a(1, 25));\n r3[3] = new C5694b(30, new C5693a(23, 15), new C5693a(28, 16));\n r0[30] = new C5695a(31, iArr2, r3);\n iArr2 = new int[]{6, 34, 60, 86, 112, 138};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(17, 115));\n r3[1] = new C5694b(28, new C5693a(10, 46), new C5693a(23, 47));\n r3[2] = new C5694b(30, new C5693a(10, 24), new C5693a(35, 25));\n r3[3] = new C5694b(30, new C5693a(19, 15), new C5693a(35, 16));\n r0[31] = new C5695a(32, iArr2, r3);\n iArr2 = new int[]{6, 30, 58, 86, 114, 142};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(17, 115), new C5693a(1, 116));\n r3[1] = new C5694b(28, new C5693a(14, 46), new C5693a(21, 47));\n r3[2] = new C5694b(30, new C5693a(29, 24), new C5693a(19, 25));\n r3[3] = new C5694b(30, new C5693a(11, 15), new C5693a(46, 16));\n r0[32] = new C5695a(33, iArr2, r3);\n iArr2 = new int[]{6, 34, 62, 90, 118, 146};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(13, 115), new C5693a(6, 116));\n r3[1] = new C5694b(28, new C5693a(14, 46), new C5693a(23, 47));\n r3[2] = new C5694b(30, new C5693a(44, 24), new C5693a(7, 25));\n r3[3] = new C5694b(30, new C5693a(59, 16), new C5693a(1, 17));\n r0[33] = new C5695a(34, iArr2, r3);\n iArr2 = new int[]{6, 30, 54, 78, 102, 126, 150};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(12, 121), new C5693a(7, 122));\n r3[1] = new C5694b(28, new C5693a(12, 47), new C5693a(26, 48));\n r3[2] = new C5694b(30, new C5693a(39, 24), new C5693a(14, 25));\n r3[3] = new C5694b(30, new C5693a(22, 15), new C5693a(41, 16));\n r0[34] = new C5695a(35, iArr2, r3);\n iArr2 = new int[]{6, 24, 50, 76, 102, ProfileEditingConfig.DEFAULT_MAX_LENGTH, 154};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(6, 121), new C5693a(14, 122));\n r3[1] = new C5694b(28, new C5693a(6, 47), new C5693a(34, 48));\n r3[2] = new C5694b(30, new C5693a(46, 24), new C5693a(10, 25));\n r3[3] = new C5694b(30, new C5693a(2, 15), new C5693a(64, 16));\n r0[35] = new C5695a(36, iArr2, r3);\n iArr2 = new int[]{6, 28, 54, 80, 106, 132, 158};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(17, 122), new C5693a(4, 123));\n r3[1] = new C5694b(28, new C5693a(29, 46), new C5693a(14, 47));\n r3[2] = new C5694b(30, new C5693a(49, 24), new C5693a(10, 25));\n r3[3] = new C5694b(30, new C5693a(24, 15), new C5693a(46, 16));\n r0[36] = new C5695a(37, iArr2, r3);\n iArr2 = new int[]{6, 32, 58, 84, 110, 136, 162};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(4, 122), new C5693a(18, 123));\n r3[1] = new C5694b(28, new C5693a(13, 46), new C5693a(32, 47));\n r3[2] = new C5694b(30, new C5693a(48, 24), new C5693a(14, 25));\n r3[3] = new C5694b(30, new C5693a(42, 15), new C5693a(32, 16));\n r0[37] = new C5695a(38, iArr2, r3);\n iArr2 = new int[]{6, 26, 54, 82, 110, 138, 166};\n r3 = new C5694b[4];\n r3[0] = new C5694b(30, new C5693a(20, 117), new C5693a(4, 118));\n r3[1] = new C5694b(28, new C5693a(40, 47), new C5693a(7, 48));\n r3[2] = new C5694b(30, new C5693a(43, 24), new C5693a(22, 25));\n r3[3] = new C5694b(30, new C5693a(10, 15), new C5693a(67, 16));\n r0[38] = new C5695a(39, iArr2, r3);\n iArr = new int[]{6, 30, 58, 86, 114, 142, 170};\n r4 = new C5694b[4];\n r4[0] = new C5694b(30, new C5693a(19, 118), new C5693a(6, 119));\n r4[1] = new C5694b(28, new C5693a(18, 47), new C5693a(31, 48));\n r4[2] = new C5694b(30, new C5693a(34, 24), new C5693a(34, 25));\n r4[3] = new C5694b(30, new C5693a(20, 15), new C5693a(61, 16));\n r0[39] = new C5695a(40, iArr, r4);\n return r0;\n }", "title": "" }, { "docid": "87953b6cfb5ade0086bcb9f86147d309", "score": "0.45242205", "text": "public void ref(TypeElement e) {\n print(typeTable.find(e));\n }", "title": "" }, { "docid": "bf0d19a021a4d3bbb49d81e811584940", "score": "0.45202038", "text": "public void implSolution2() {\r\n \tdisplayIntArray(convertCollectionIntegerToIntArray(removeDupInIntArrayUsingLambda()));\r\n }", "title": "" }, { "docid": "14eaa01e087f68ee649a0b4710bdfb73", "score": "0.45181635", "text": "void finishInference() {\n if (!needsInference) { return; }\n Set<String> globals = Sets.newHashSet();\n globals.add(\"this\");\n List<Pair<Expression, Fact>> factList = Lists.newArrayList(facts.values());\n for (Pair<Expression, Fact> fe : factList) {\n if (fe.b == Fact.GLOBAL) {\n globals.add(((Reference) fe.a).getIdentifierName());\n }\n }\n if (!globals.isEmpty()) {\n for (Pair<Expression, Fact> fe : factList) {\n if (fe.b == Fact.GLOBAL) { continue; }\n Expression e = fe.a;\n Operator op = null;\n if (Operation.is(e, Operator.TYPEOF)) {\n op = Operator.TYPEOF;\n e = (Expression) e.children().get(0);\n }\n String topRef = topRef(e);\n if (topRef != null) {\n if (!globals.contains(topRef)) {\n for (String globalAlias : globals) {\n Expression newExpr = withTopRef(e, globalAlias);\n if (op != null) {\n newExpr = Operation.create(UNK, op, newExpr);\n }\n addFactInt(newExpr, fe.b);\n }\n } else if (op == null && e instanceof Operation) {\n // Simplify the fact unless it is falsey and not false.\n // E.g. global.foo IS 4\n // -> foo IS 4\n // but global.foo IS undefined\n // !> foo IS undefined\n // because foo could result in an Error.\n if (fe.b.isFalse() || fe.b.isTruthy()) {\n Expression newExpr = withoutTopRef(e);\n addFactInt(newExpr, fe.b);\n }\n }\n }\n }\n }\n needsInference = false;\n }", "title": "" }, { "docid": "38f5bd17ce593bf45fb49bc2525f6f48", "score": "0.4516976", "text": "public void a() {\n abc.a[] arra = (abc.a[])this.a.toArray(b);\n int n2 = arra.length;\n int n3 = 0;\n while (n3 < n2) {\n abc.a a2 = arra[n3];\n a2.a((b)null);\n if (a2.a() == null) {\n if (a2.g()) {\n this.a.remove((Object)a2);\n }\n } else {\n a2.c();\n abq.a(a2, null, ((xf.f)this.d.get(a2.b())).e());\n this.a.remove((Object)a2);\n }\n ++n3;\n }\n }", "title": "" }, { "docid": "53b6dda7dc16b724b4f667bffb32b26e", "score": "0.45144677", "text": "@Converted(kind = Converted.Kind.MANUAL_SEMANTIC,\n source = \"${LLVM_SRC}/llvm/include/llvm/ADT/TinyPtrVector.h\", line = 111,\n FQN=\"llvm::TinyPtrVector::operator ArrayRef<type-parameter-0-0>\", NM=\"_ZNK4llvm13TinyPtrVectorcvNS_8ArrayRefIT_EEEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.adtsupport/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp -nm=_ZNK4llvm13TinyPtrVectorcvNS_8ArrayRefIT_EEEv\")\n //</editor-fold>\n public ArrayRef<EltTy> $ArrayRef() /*const*/ {\n if ($isNull()) {\n return ArrayRef.None();\n }\n if ($isElement()) {\n return new ArrayRef(Native.$star($getAsElement()), true);\n }\n return new ArrayRef(Native.$star($getAsVector()));\n }", "title": "" }, { "docid": "e337bf3ee4c0ed6398abafe30ebace4b", "score": "0.4513638", "text": "public exprInfo visit(ArrayAssignmentStatement n) throws Exception{\n exprInfo id = n.f0.accept(this);\n exprInfo expr = n.f2.accept(this);\n exprInfo expr2 = n.f5.accept(this);\n\n String idType = findTypeOf(id.value);\n\n String type = llvmType(idType);\n int temp,temp2,temp3;\n // load identifier\n if(state.varOrigin.equals(\"local\") || state.varOrigin.equals(\"argument\")){\n // local variable\n temp3 = this.registerCount++;\n emit(\"\\t%_\"+temp3+\" = load i32*, i32** %\"+id.value+\"\\n\");\n }\n else{\n // class field\n VTable vtable = Main.VTables.get(state.classSt.className);\n temp = this.registerCount++;\n temp2 = this.registerCount++;\n temp3 = this.registerCount++;\n\n emit(\"\\t%_\"+ temp + \" = getelementptr i8, i8* %this, i32 \"+(vtable.dataMembers.get(id.value) + 8) +\"\\n\");\n emit(\"\\t%_\"+ temp2 + \" = bitcast i8* %_\" + temp + \" to i32**\\n\");\n emit(\"\\t%_\"+ temp3 + \" = load i32*, i32** %_\"+temp2+\"\\n\");\n }\n\n temp = this.registerCount++;\n temp2 = this.registerCount++;\n\n emit(\"\\t%_\"+temp+\" = load i32, i32* %_\"+temp3+\"\\n\");\n emit(\"\\t%_\"+temp2+\" = icmp ult \"+expr.type+\" \"+expr.value+\", %_\"+temp+\"\\n\");\n\n int label = this.oobCount++;\n int label2 = this.oobCount++;\n int label3 = this.oobCount++;\n\n emit(\"\\tbr i1 %_\"+temp2+\", label %oob\"+label+\", label %oob\"+label2+\"\\n\");\n emit(\"\\noob\"+ label + \":\\n\");\n temp = this.registerCount++;\n temp2 = this.registerCount++;\n emit(\"\\t%_\"+temp+\" = add \"+expr.type+\" \"+expr.value+\", 1\\n\");\n emit(\"\\t%_\"+temp2+\" = getelementptr i32, i32* %_\"+temp3+\", i32 %_\"+temp+\"\\n\");\n emit(\"\\tstore \"+expr2.type+\" \"+expr2.value+\", i32* %_\"+temp2+\"\\n\");\n\n label = this.oobCount++;\n\n emit(\"\\tbr label %oob\"+label3+\"\\n\");\n\n emit(\"oob\"+label2 + \":\\n\");\n\t\temit(\"\\t\" + \"call void @throw_oob()\\n\");\n\t\temit(\"\\t\" + \"br label %oob\" + label3+\"\\n\");\n\n\t\temit(\"oob\"+label3 + \":\\n\"); /* continue other Statements or return */\n return null;\n }", "title": "" }, { "docid": "5dc7ccc24816b3fee8fdbc39b5705e96", "score": "0.4513597", "text": "@Override\r\n public void evaluate(IntegerSolution solution) {\n \r\n \r\n double[] fx = new double[getNumberOfObjectives()];\r\n int[] xValues = new int[getNumberOfVariables()];\r\n \r\n for (int i = 0; i < solution.getNumberOfVariables(); i++) {\r\n \txValues[i] = solution.getVariableValue(i) ;\r\n \tSystem.out.print(xValues[i]+\"-\");\r\n }\r\n \r\n// System.out.println(\"//////////////\");\r\n\r\n fx[0] = 0;\r\n for (int var = 0; var < solution.getNumberOfVariables(); var++) {\r\n// \tSystem.out.println(xValues[var]+\" val \"+ al_infoStructure.get(var).getValue());\r\n \tfx[0] = fx[0] + xValues[var]*al_infoStructure.get(var).getValue();\r\n }\r\n System.out.println(\"Evaluating fx0 \"+fx[0]);\r\n \r\n// System.out.println(\"obj1 \"+fx[0]);\r\n\r\n \r\n\r\n\r\n\r\n\r\n fx[1] = 0;\r\n \r\n double totalFtrCost=0;\r\n double totalBugCost=0;\r\n double totalImpCost=0;\r\n double totalCost=0;\r\n\r\n for (int var = 0; var < solution.getNumberOfVariables(); var++) {\r\n \r\n \tif (al_infoStructure.get(var).getissueType()==1){\r\n \t\ttotalFtrCost=(totalFtrCost+al_infoStructure.get(var).getCost()*xValues[var]); \r\n \t\tSystem.out.println(\"ftr \"+al_infoStructure.get(var).getissueType()+\" \"+al_infoStructure.get(var).getCost() );\r\n \t}\r\n \telse if (al_infoStructure.get(var).getissueType()==2){\r\n \t\ttotalBugCost=(totalBugCost+al_infoStructure.get(var).getCost()*xValues[var]);\r\n \t\tSystem.out.println(\"bug \"+al_infoStructure.get(var).getissueType()+\" \"+al_infoStructure.get(var).getCost() );\r\n \t}\r\n \telse if (al_infoStructure.get(var).getissueType()==3){\r\n \t\ttotalImpCost=(totalImpCost+al_infoStructure.get(var).getCost()*xValues[var]); \r\n \t\tSystem.out.println(\"imp \"+al_infoStructure.get(var).getissueType()+\" \"+al_infoStructure.get(var).getCost() );\r\n \t}\r\n }\r\n \r\n fx[1] = Math.sqrt(Math.pow((totalCapacity*ftrRatio-totalFtrCost),2)+ Math.pow((totalCapacity*bugRatio-totalBugCost),2)+ Math.pow((totalCapacity*impRatio-totalImpCost),2));\r\n System.out.println(\"Evaluating fx1 \"+fx[1]);\r\n// System.out.println(fx[0]+\",\"+fx[1]);\r\n totalCost = totalFtrCost+totalBugCost+totalImpCost; \r\n \r\n System.out.println(\"Total capacity \"+ totalCapacity);\r\n System.out.println(\"Total cost \"+ (totalFtrCost+totalBugCost+totalImpCost));\r\n \r\n if (totalCost>totalCapacity){\r\n fx[1]=fx[1]*3;\r\n fx[1]=999999999;\r\n }\r\n \r\n \r\n \r\n System.out.println(\"Evaluating correction fx0 \"+fx[1]);\r\n// System.out.println(\"Evaluating correction fx1 \"+fx[1]);\r\n\r\n solution.setObjective(0, fx[0]);\r\n solution.setObjective(1, fx[1]);\r\n }", "title": "" }, { "docid": "4faf1d0c783394f5dd221909f3676365", "score": "0.45128426", "text": "@Test\n public void testSolution() {\n Class testClass = Tests.class;\n Method exampleMethod = null;\n Class[] expectedParameters = new Class[0];\n Class expectedReturnType = null;\n\n Class taskClass = Task.class;\n Method solutionMethod = null;\n Class[] parameters = new Class[0];\n Class returnType = null;\n\n boolean exampleFound = false;\n for(Method method : testClass.getMethods()) {\n if(method.getName().equals(\"exampleSolution\")) {\n exampleFound = true;\n expectedParameters = method.getParameterTypes();\n expectedReturnType = method.getReturnType();\n exampleMethod = method;\n }\n }\n Assert.assertTrue(\"Example solution is not defined\", exampleFound);\n\n boolean solutionFound = false;\n for(Method method : taskClass.getMethods()) {\n if(method.getName().equals(\"solution\")) {\n solutionFound = true;\n parameters = method.getParameterTypes();\n returnType = method.getReturnType();\n solutionMethod = method;\n }\n }\n Assert.assertTrue(\"Solution was not found, has it been renamed?\", solutionFound);\n\n Assert.assertArrayEquals(\"The type or number of parameters your solution expects is incorrect\", expectedParameters, parameters);\n Assert.assertEquals(\"The type of variable your solution returns is incorrect\", expectedReturnType, returnType);\n\n for(int i = 0; i < valuesToCheck.length; i++) {\n Object[] inputArr = valuesToCheck[i];\n String testNumber = (i + 1) + \"/\" + valuesToCheck.length;\n System.out.println(\"Test \" + testNumber + \": \" + Arrays.toString(inputArr));\n\n String failMessage = \"Test \" + testNumber + \" failed. The parameters were: \" + Arrays.deepToString(inputArr);\n try {\n if (returnType.isArray()) {\n Assert.assertArrayEquals(\n failMessage,\n objectToArray(exampleMethod.invoke(null, inputArr)),\n objectToArray(solutionMethod.invoke(null, inputArr))\n );\n } else {\n Assert.assertEquals(\n failMessage,\n exampleMethod.invoke(null, deepCloneArr(inputArr)),\n solutionMethod.invoke(null, deepCloneArr(inputArr))\n );\n }\n } catch (IllegalAccessException | InvocationTargetException e) {\n java.lang.StackTraceElement element = null;\n for (java.lang.StackTraceElement el : e.getCause().getStackTrace()) {\n if (el.getClassName().equals(\"Task\")) {\n element = el;\n break;\n }\n }\n if (element == null) {\n Assert.fail(\"Your program threw an exception:\\n\" + e.getCause().toString() + \"\\nbut the line number could not be determined\");\n } else {\n Assert.fail(\"Your program threw an exception:\\n\" + e.getCause().toString() + \"\\non line \" + element.getLineNumber());\n }\n }\n }\n }", "title": "" }, { "docid": "c9c9370100bf9d46ec57d9ab9889c51e", "score": "0.45033738", "text": "public void testSolve() {\n int[][] b = new int[][] \n {{0, 0, 9, 2, 0, 1, 0, 0, 7}, \n {0, 0, 0, 5, 0, 0, 1, 0, 9}, \n {0, 4, 0, 0, 8, 0, 6, 0, 0}, \n {7, 0, 4, 1, 0, 3, 0, 0, 0}, \n {0, 3, 0, 0, 0, 0, 0, 0, 0}, \n {0, 5, 2, 0, 6, 0, 0, 7, 0}, \n {0, 0, 0, 0, 0, 0, 0, 0, 0}, \n {2, 6, 0, 0, 5, 0, 8, 0, 0}, \n {0, 0, 8, 0, 0, 0, 0, 4, 5}\n }; \n Sudoku a = new Sudoku(b);\n a.solve(); \n }", "title": "" }, { "docid": "114caa864eacaf46d7c7d7691b2e1572", "score": "0.4501346", "text": "public void generateAccessors() {\n/* 62 */ JClass jClass = this.fu.type.array();\n/* */ \n/* */ \n/* 65 */ JType exposedType = this.fu.type;\n/* */ \n/* */ \n/* 68 */ JType internalType = (this.primitiveType != null) ? (JType)this.primitiveType.getWrapperClass() : this.fu.type;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 83 */ JMethod $get = this.writer.declareMethod((JType)exposedType.array(), \"get\" + this.fu.name);\n/* 84 */ this.writer.javadoc().appendComment(this.fu.getJavadoc());\n/* 85 */ JBlock body = $get.body();\n/* */ \n/* 87 */ if (this.$defValues != null) {\n/* 88 */ JBlock then = body._if(hasSetValue().not())._then();\n/* 89 */ JVar $r = then.decl((JType)exposedType.array(), \"r\", (JExpression)JExpr.newArray(exposedType, (JExpression)this.$defValues.ref(\"length\")));\n/* */ \n/* */ \n/* */ \n/* 93 */ then.staticInvoke(this.codeModel.ref(System.class), \"arraycopy\").arg((JExpression)this.$defValues).arg(JExpr.lit(0)).arg((JExpression)$r).arg(JExpr.lit(0)).arg((JExpression)this.$defValues.ref(\"length\"));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 107 */ then._return((JExpression)$r);\n/* */ } else {\n/* 109 */ body._if(ref(true).eq(JExpr._null()))._then()._return((JExpression)JExpr.newArray(exposedType, 0));\n/* */ } \n/* */ \n/* */ \n/* 113 */ if (this.primitiveType == null) {\n/* 114 */ body._return((JExpression)JExpr.cast((JType)jClass, (JExpression)ref(true).invoke(\"toArray\").arg((JExpression)JExpr.newArray(this.fu.type, (JExpression)ref(true).invoke(\"size\")))));\n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* 122 */ JVar $r = body.decl((JType)exposedType.array(), \"r\", (JExpression)JExpr.newArray(exposedType, (JExpression)ref(true).invoke(\"size\")));\n/* 123 */ JForLoop loop = body._for();\n/* 124 */ JVar jVar1 = loop.init((JType)this.codeModel.INT, \"__i\", JExpr.lit(0));\n/* 125 */ loop.test(jVar1.lt((JExpression)$r.ref(\"length\")));\n/* 126 */ loop.update(jVar1.incr());\n/* 127 */ loop.body().assign((JAssignmentTarget)$r.component((JExpression)jVar1), this.primitiveType.unwrap((JExpression)JExpr.cast(internalType, (JExpression)ref(true).invoke(\"get\").arg((JExpression)jVar1))));\n/* */ \n/* 129 */ body._return((JExpression)$r);\n/* */ } \n/* */ \n/* 132 */ this.writer.javadoc().addReturn(\"array of\\n\" + JavadocBuilder.listPossibleTypes(this.fu));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 145 */ $get = this.writer.declareMethod(exposedType, \"get\" + this.fu.name);\n/* 146 */ JVar $idx = this.writer.addParameter((JType)this.codeModel.INT, \"idx\");\n/* */ \n/* 148 */ if (this.$defValues != null) {\n/* 149 */ JBlock then = $get.body()._if(hasSetValue().not())._then();\n/* 150 */ then._return((JExpression)this.$defValues.component((JExpression)$idx));\n/* */ } else {\n/* 152 */ $get.body()._if(ref(true).eq(JExpr._null()))._then()._throw((JExpression)JExpr._new(this.codeModel.ref(IndexOutOfBoundsException.class)));\n/* */ } \n/* */ \n/* */ \n/* 156 */ this.writer.javadoc().appendComment(this.fu.getJavadoc());\n/* 157 */ $get.body()._return(unbox((JExpression)JExpr.cast(internalType, (JExpression)ref(true).invoke(\"get\").arg((JExpression)$idx))));\n/* */ \n/* 159 */ this.writer.javadoc().addReturn(\"one of\\n\" + JavadocBuilder.listPossibleTypes(this.fu));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 172 */ JMethod $getLength = this.writer.declareMethod((JType)this.codeModel.INT, \"get\" + this.fu.name + \"Length\");\n/* 173 */ if (this.$defValues != null) {\n/* 174 */ $getLength.body()._if(hasSetValue().not())._then()._return((JExpression)this.$defValues.ref(\"length\"));\n/* */ } else {\n/* */ \n/* 177 */ $getLength.body()._if(ref(true).eq(JExpr._null()))._then()._return(JExpr.lit(0));\n/* */ } \n/* */ \n/* 180 */ $getLength.body()._return((JExpression)ref(true).invoke(\"size\"));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 189 */ JMethod $set = this.writer.declareMethod((JType)this.codeModel.VOID, \"set\" + this.fu.name);\n/* */ \n/* */ \n/* */ \n/* 193 */ this.writer.javadoc().appendComment(this.fu.getJavadoc());\n/* */ \n/* 195 */ JVar $value = this.writer.addParameter((JType)exposedType.array(), \"values\");\n/* 196 */ $set.body().invoke(ref(false), \"clear\");\n/* 197 */ JVar $len = $set.body().decl((JType)this.codeModel.INT, \"len\", (JExpression)$value.ref(\"length\"));\n/* 198 */ JForLoop _for = $set.body()._for();\n/* 199 */ JVar $i = _for.init((JType)this.codeModel.INT, \"i\", JExpr.lit(0));\n/* 200 */ _for.test(JOp.lt((JExpression)$i, (JExpression)$len));\n/* 201 */ _for.update($i.incr());\n/* 202 */ _for.body().invoke(ref(true), \"add\").arg(box((JExpression)$value.component((JExpression)$i)));\n/* */ \n/* 204 */ this.writer.javadoc().addParam($value, \"allowed objects are\\n\" + JavadocBuilder.listPossibleTypes(this.fu));\n/* */ \n/* */ \n/* */ \n/* 208 */ $set = this.writer.declareMethod(exposedType, \"set\" + this.fu.name);\n/* */ \n/* */ \n/* 211 */ $idx = this.writer.addParameter((JType)this.codeModel.INT, \"idx\");\n/* 212 */ $value = this.writer.addParameter(exposedType, \"value\");\n/* */ \n/* 214 */ this.writer.javadoc().appendComment(this.fu.getJavadoc());\n/* */ \n/* 216 */ body = $set.body();\n/* 217 */ body._return(unbox((JExpression)JExpr.cast(internalType, (JExpression)ref(true).invoke(\"set\").arg((JExpression)$idx).arg(box((JExpression)$value)))));\n/* */ \n/* */ \n/* 220 */ this.writer.javadoc().addParam($value, \"allowed object is\\n\" + JavadocBuilder.listPossibleTypes(this.fu));\n/* */ }", "title": "" }, { "docid": "422d3906ed81ad2720dae0b62d875040", "score": "0.44968697", "text": "public UnknownArraySolution(int[][] a) {\n\t\tsuper(a);\n\t}", "title": "" }, { "docid": "f13123026c1cea13ba15f380376dab16", "score": "0.44942352", "text": "public static long calcElementOffset(long index) {\n/* 112 */ return REF_ARRAY_BASE + (index << REF_ELEMENT_SHIFT);\n/* */ }", "title": "" }, { "docid": "2f19a98fed31ba505887d69fc31e1156", "score": "0.4491209", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/BasicAliasAnalysis.cpp\", line = 346,\n FQN=\"llvm::BasicAAResult::DecomposeGEPExpression\", NM=\"_ZN4llvm13BasicAAResult22DecomposeGEPExpressionEPKNS_5ValueERNS0_13DecomposedGEPERKNS_10DataLayoutEPNS_15AssumptionCacheEPNS_13DominatorTreeE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/BasicAliasAnalysis.cpp -nm=_ZN4llvm13BasicAAResult22DecomposeGEPExpressionEPKNS_5ValueERNS0_13DecomposedGEPERKNS_10DataLayoutEPNS_15AssumptionCacheEPNS_13DominatorTreeE\")\n //</editor-fold>\n private static boolean DecomposeGEPExpression(/*const*/ Value /*P*/ V, \n final DecomposedGEP /*&*/ Decomposed, final /*const*/ DataLayout /*&*/ DL, AssumptionCache /*P*/ AC, \n DominatorTree /*P*/ DT) {\n // Limit recursion depth to limit compile time in crazy cases.\n /*uint*/int MaxLookup = MaxLookupSearchDepth;\n SearchTimes.$postInc(0);\n \n Decomposed.StructOffset = 0;\n Decomposed.OtherOffset = 0;\n Decomposed.VarIndices.clear();\n do {\n // See if this is a bitcast or GEP.\n /*const*/ Operator /*P*/ Op = dyn_cast_Operator(V);\n if (!(Op != null)) {\n {\n // The only non-operator case we can handle are GlobalAliases.\n /*const*/ GlobalAlias /*P*/ GA = dyn_cast_GlobalAlias(V);\n if ((GA != null)) {\n if (!GA.isInterposable()) {\n V = GA.getAliasee$Const();\n continue;\n }\n }\n }\n Decomposed.Base = V;\n return false;\n }\n if (Op.getOpcode() == Instruction.CastOps.BitCast\n || Op.getOpcode() == Instruction.CastOps.AddrSpaceCast) {\n V = Op.getOperand(0);\n continue;\n }\n \n /*const*/ GEPOperator /*P*/ GEPOp = dyn_cast_GEPOperator(Op);\n if (!(GEPOp != null)) {\n {\n ImmutableCallSite CS = new ImmutableCallSite(V);\n if (CS.$bool()) {\n {\n /*const*/ Value /*P*/ RV = CS.getReturnedArgOperand();\n if ((RV != null)) {\n V = RV;\n continue;\n }\n }\n }\n }\n {\n \n // If it's not a GEP, hand it off to SimplifyInstruction to see if it\n // can come up with something. This matches what GetUnderlyingObject does.\n /*const*/ Instruction /*P*/ I = dyn_cast_Instruction(V);\n if ((I != null)) {\n {\n // TODO: Get a DominatorTree and AssumptionCache and use them here\n // (these are both now available in this function, but this should be\n // updated when GetUnderlyingObject is updated). TLI should be\n // provided also.\n /*const*/ Value /*P*/ Simplified = InstructionSimplifyLlvmGlobals.SimplifyInstruction(((/*const_cast*/Instruction /*P*/ )(I)), DL);\n if ((Simplified != null)) {\n V = Simplified;\n continue;\n }\n }\n }\n }\n \n Decomposed.Base = V;\n return false;\n }\n \n // Don't attempt to analyze GEPs over unsized objects.\n if (!GEPOp.getSourceElementType().isSized()) {\n Decomposed.Base = V;\n return false;\n }\n \n /*uint*/int AS = GEPOp.getPointerAddressSpace();\n // Walk the indices of the GEP, accumulating them into BaseOff/VarIndices.\n generic_gep_type_iterator GTI = gep_type_begin_User$C$P(GEPOp);\n /*uint*/int PointerSize = DL.getPointerSizeInBits(AS);\n for (type$ptr</*const*/ Use /*P*/ > I = $tryClone(GEPOp.op_begin$Const().$add(1)), /*P*/ E = $tryClone(GEPOp.op_end$Const());\n $noteq_ptr(I, E); I.$preInc()) {\n /*const*/ Value /*P*/ Index = I.$star().$Value$P();\n {\n // Compute the (potentially symbolic) offset in bytes for this index.\n StructType /*P*/ STy = dyn_cast_StructType(GTI.$postInc(0).$star());\n if ((STy != null)) {\n // For a struct, add the member offset.\n /*uint*/int FieldNo = $ulong2uint(cast_ConstantInt(Index).getZExtValue());\n if (FieldNo == 0) {\n continue;\n }\n \n Decomposed.StructOffset += DL.getStructLayout(STy).getElementOffset(FieldNo);\n continue;\n }\n }\n {\n \n // For an array/pointer, add the element offset, explicitly scaled.\n /*const*/ ConstantInt /*P*/ CIdx = dyn_cast_ConstantInt(Index);\n if ((CIdx != null)) {\n if (CIdx.isZero()) {\n continue;\n }\n Decomposed.OtherOffset += DL.getTypeAllocSize(GTI.$star()) * CIdx.getSExtValue();\n continue;\n }\n }\n \n long/*uint64_t*/ Scale = DL.getTypeAllocSize(GTI.$star());\n uint$ref ZExtBits = create_uint$ref(0);\n uint$ref SExtBits = create_uint$ref(0);\n \n // If the integer type is smaller than the pointer size, it is implicitly\n // sign extended to pointer size.\n /*uint*/int Width = Index.getType().getIntegerBitWidth();\n if ($greater_uint(PointerSize, Width)) {\n SExtBits.$set$addassign(PointerSize - Width);\n }\n \n // Use GetLinearExpression to decompose the index into a C1*V+C2 form.\n APInt IndexScale/*J*/= new APInt(JD$UInt_ULong.INSTANCE, Width, $int2ulong(0));\n APInt IndexOffset/*J*/= new APInt(JD$UInt_ULong.INSTANCE, Width, $int2ulong(0));\n bool$ref NSW = create_bool$ref(true);\n bool$ref NUW = create_bool$ref(true);\n Index = GetLinearExpression(Index, IndexScale, IndexOffset, ZExtBits, \n SExtBits, DL, 0, AC, DT, NSW, NUW);\n \n // The GEP index scale (\"Scale\") scales C1*V+C2, yielding (C1*V+C2)*Scale.\n // This gives us an aggregate computation of (C1*Scale)*V + C2*Scale.\n Decomposed.OtherOffset += IndexOffset.getSExtValue() * Scale;\n Scale *= IndexScale.getSExtValue();\n \n // If we already had an occurrence of this index variable, merge this\n // scale into it. For example, we want to handle:\n // A[x][x] -> x*16 + x*4 -> x*20\n // This also ensures that 'x' only appears in the index list once.\n for (/*uint*/int i = 0, e = Decomposed.VarIndices.size(); i != e; ++i) {\n if (Decomposed.VarIndices.$at(i).V == Index\n && Decomposed.VarIndices.$at(i).ZExtBits == ZExtBits.$deref()\n && Decomposed.VarIndices.$at(i).SExtBits == SExtBits.$deref()) {\n Scale += Decomposed.VarIndices.$at(i).Scale;\n Decomposed.VarIndices.erase(Decomposed.VarIndices.begin().$add(i));\n break;\n }\n }\n \n // Make sure that we have a scale that makes sense for this target's\n // pointer size.\n Scale = adjustToPointerSize(Scale, PointerSize);\n if ((Scale != 0)) {\n VariableGEPIndex Entry = new VariableGEPIndex(\n Index, ZExtBits.$deref(), SExtBits.$deref(), \n ((/*static_cast*/long/*int64_t*/)(Scale)));\n Decomposed.VarIndices.push_back(Entry);\n }\n }\n \n // Take care of wrap-arounds\n Decomposed.StructOffset\n = adjustToPointerSize(Decomposed.StructOffset, PointerSize);\n Decomposed.OtherOffset\n = adjustToPointerSize(Decomposed.OtherOffset, PointerSize);\n \n // Analyze the base pointer next.\n V = GEPOp.getOperand(0);\n } while ((--MaxLookup != 0));\n \n // If the chain of expressions is too deep, just return early.\n Decomposed.Base = V;\n SearchLimitReached.$postInc(0);\n return true;\n }", "title": "" }, { "docid": "33d22cc5ecc8f9d5f562f576f09cbc59", "score": "0.4490207", "text": "public DataBlock visit(ArrayLookup n, DataBlock argu) {\n \tDataBlock answer_db;\n \tanswer_db = n.f0.accept(this, argu);\n \tString array_address = answer_db.temp;\n \tanswer_db = n.f2.accept(this, argu);\n \tString index_to_look = answer_db.temp;\n \tString array_size = Utils.getTemp();\n \tString in_bounds_label = Utils.getLabel();\n \tString safe_label = Utils.getLabel();\n \t\n \tbuffer += \"\\tHLOAD \" + array_size + \" \" + array_address + \" 0\\n\";\t// Load array size from index 0\n \tString minus = Utils.getTemp();\n \t\n \t// OutOfBounds Check\n \tbuffer += \"\\tMOVE \" + minus + \" 1\";\n \tString compare = Utils.getTemp();\n \tbuffer += \"\\tMOVE \" + compare + \" LT \" + index_to_look + \" \" + array_size + \"\\n\";\t// index < array_size\n\n \tString reverse = Utils.getTemp();\n \tbuffer += \"\\tMOVE \" + reverse + \" MINUS \" + minus + \" \" + compare + \"\\n\";\n \tbuffer += \"\\tCJUMP \" + reverse + \" \" + in_bounds_label + \"\\n\"; \n \tbuffer += \"\\tERROR\\n\";\n \t\n \tbuffer += in_bounds_label + \"\\tNOOP\\n\";\n \t\n \t// Negative Index Check\n \tString zero = Utils.getTemp();\n \tbuffer += \"\\tMOVE \" + zero + \" 0\\n\";\n \tString negative_compare = Utils.getTemp();\n \tbuffer += \"\\tMOVE \" + negative_compare + \" LT \" + index_to_look + \" \" + zero + \"\\n\";\t// index < 0\n \tbuffer += \"\\tCJUMP \" + negative_compare + \" \" + safe_label + \"\\n\"; \n \tbuffer += \"\\tERROR\\n\";\n \tbuffer += safe_label + \"\\tNOOP\\n\";\n \t\n \t// No Problem :)\n \tString result = Utils.getTemp();\n \tString bytes_off = Utils.getTemp();\n \tbuffer += \"\\tMOVE \" + bytes_off + \" TIMES \" + index_to_look + \" 4\\n\";\n \tbuffer += \"\\tMOVE \" + bytes_off + \" PLUS \" + bytes_off + \" 4\\n\";\n \tbuffer += \"\\tMOVE \" + result + \" PLUS \" + array_address + \" \" + bytes_off + \"\\n\";\n \tbuffer += \"\\tHLOAD \" + result + \" \" + result + \" 0\\n\";\n \t\n \tanswer_db.temp = result;\n \treturn answer_db;\n }", "title": "" }, { "docid": "8abe4f34d00347667a781d5043f1014c", "score": "0.44886875", "text": "public void test0007() throws JavaModelException {\n String contents = \"public class X<T> {\\n\" + \" class Y<R> {\\n\" + \" class Z<Q> {\\n\" + \" }\\n\" + \" }\\n\" + \" String [][][][] o = (@One String[]@Two [][]@Three []) null;\\n\" + \" @java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" + \" @interface Marker {\\n\" + \" }\\n\" + \"}\\n\";\n this.workingCopy = getWorkingCopy(\"/Converter18/src/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(contents, this.workingCopy, false);\n String expectedOutput = \"public class X<T> {\\n\" + \"class Y<R> {\\n\" + \"class Z<Q> {\\n\" + \" }\\n\" + \" }\\n\" + \" String[][][][] o=(@One String[] @Two [][] @Three [])null;\\n\" + \" @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE_USE) @interface Marker {}\\n\" + \"}\\n\";\n assertASTNodeEquals(expectedOutput, node);\n }", "title": "" }, { "docid": "1214419e3ccc70b526f395eb2e5a73b0", "score": "0.44860274", "text": "BasicMatrix solve(Access2D<?> aRHS);", "title": "" }, { "docid": "4b4f6ef0c897028ece7dbe2a4fbdd524", "score": "0.44828197", "text": "private void ConvertAxbInTableux(Fraction Z[], Fraction[][] A, String[] relations, Fraction[] b) {\n int nVars = this.nVars + this.nConstraints;\n this.BInv = new Fraction[this.nConstraints][this.nConstraints];\n for (int i = 0; i < this.nConstraints; i++) {\n for (int j = 0; j < this.nConstraints; j++) {\n if (i == j) {\n\n this.BInv[i][j] = new Fraction(\"1\", \"1\");\n\n if (relations[i].compareTo(\">=\") == 0) {\n this.BInv[i][j] = new Fraction(\"1\", \"1\");\n b[i] = b[i].multip(new Fraction(\"-1\", \"1\"));\n\n for (int k = 0; k < A[0].length; k++) {\n A[i][k] = A[i][k].multip(new Fraction(\"-1\", \"1\"));\n }\n }\n\n } else {\n this.BInv[i][j] = new Fraction(\"0\", \"1\");\n }\n }\n }\n\n CjZj = new Fraction[nVars];\n\n for (int i = 0; i < nVars; i++) {\n if (i < Z.length) {\n if (this.fType.compareTo(\"min\") == 0) {\n CjZj[i] = Z[i].multip(new Fraction(\"-1\", \"1\"));\n } else {\n CjZj[i] = Z[i];\n }\n } else {\n CjZj[i] = new Fraction(\"0\", \"1\");\n }\n }\n\n // basis\n basis = new ArrayList<Integer>();\n for (int i = 0; i < this.nConstraints; i++) {\n basis.add(this.nVars + i);\n }\n\n }", "title": "" }, { "docid": "00c17e6b65d83095f95bb73b25e31976", "score": "0.44811764", "text": "public void m6376c() {\n m6374b();\n if (this.f6188f != null) {\n Iterator it = this.f6186d.iterator();\n while (it.hasNext()) {\n C2763b bVar = (C2763b) it.next();\n try {\n Object[] objArr = new Object[bVar.f6191b.length];\n WeakReference[] a = bVar.f6191b;\n int length = a.length;\n int i = 0;\n int i2 = 0;\n while (i < length) {\n int i3 = i2 + 1;\n objArr[i2] = a[i].get();\n i++;\n i2 = i3;\n }\n bVar.f6193d.invoke(this.f6188f, objArr);\n } catch (Exception e) {\n C2726m.m6274a(e);\n }\n }\n this.f6186d.clear();\n }\n }", "title": "" }, { "docid": "5c8bb9fa215dc059c52be32733385dcf", "score": "0.4479113", "text": "public void testArraysAsListUnresolved() throws SecurityException, NoSuchMethodException {\n Method asList = Arrays.class.getMethod(\"asList\", Object[].class);\n try {\n GenericTypeReflector.getExactReturnType(asList, Arrays.class);\n fail(\"expected UnresolvedTypeVariableException\");\n } catch (UnresolvedTypeVariableException e) {\n assertEquals(asList.getTypeParameters()[0], e.getTypeVariable());\n }\n try {\n GenericTypeReflector.getExactParameterTypes(asList, Arrays.class);\n fail(\"expected UnresolvedTypeVariableException\");\n } catch (UnresolvedTypeVariableException e) {\n assertEquals(asList.getTypeParameters()[0], e.getTypeVariable());\n }\n }", "title": "" }, { "docid": "ef977c5a0c16bd3faf29caf6f130a7b7", "score": "0.4478661", "text": "private void resolveExpressionRefs(String desc, Expression expr, Schema s,\n boolean checkParentQueries) throws SchemaNameException {\n\n // Get the list of column-values in the expression, and resolve each one.\n // (This won't include subquery expressions, since they will reference\n // the subquery's schema.)\n ArrayList<ColumnName> exprColumns = new ArrayList<>();\n expr.getAllSymbols(exprColumns);\n\n for (ColumnName colName : exprColumns) {\n assert !colName.isColumnWildcard();\n resolveColumnRef(desc, expr, colName, s, checkParentQueries);\n }\n }", "title": "" }, { "docid": "227e7fc5cd054b78784fa28edd14506c", "score": "0.44734403", "text": "public interface BasicMatrix extends Access2D<Number>, Access2D.Elements, Access2D.Aggregatable<Number>, NormedVectorSpace<BasicMatrix, Number>,\n Operation.Subtraction<BasicMatrix>, Operation.Multiplication<BasicMatrix>, ScalarOperation.Addition<BasicMatrix, Number>,\n ScalarOperation.Division<BasicMatrix, Number>, ScalarOperation.Subtraction<BasicMatrix, Number> {\n\n public static interface Builder<I extends BasicMatrix> extends Mutate2D, Supplier<I> {\n\n default I build() {\n return this.get();\n }\n\n }\n\n public static interface Factory<I extends BasicMatrix> extends Factory2D<I> {\n\n Builder<I> getBuilder(int count);\n\n Builder<I> getBuilder(int rows, int columns);\n\n }\n\n /**\n * The Frobenius norm is the square root of the sum of the squares of each element, or the square root of\n * the sum of the square of the singular values.\n *\n * @return The matrix' Frobenius norm\n */\n public static double calculateFrobeniusNorm(final BasicMatrix matrix) {\n return matrix.norm();\n }\n\n /**\n * @return The inf-norm or maximum row sum\n */\n public static double calculateInfinityNorm(final BasicMatrix matrix) {\n\n double retVal = PrimitiveMath.ZERO;\n\n final long tmpLimit = matrix.countRows();\n for (long i = 0L; i < tmpLimit; i++) {\n retVal = PrimitiveFunction.MAX.invoke(retVal, matrix.aggregateRow(i, Aggregator.NORM1).doubleValue());\n }\n\n return retVal;\n }\n\n /**\n * @return The 1-norm or maximum column sum\n */\n public static double calculateOneNorm(final BasicMatrix matrix) {\n\n double retVal = PrimitiveMath.ZERO;\n\n final long tmpLimit = matrix.countColumns();\n for (long j = 0L; j < tmpLimit; j++) {\n retVal = PrimitiveFunction.MAX.invoke(retVal, matrix.aggregateColumn(j, Aggregator.NORM1).doubleValue());\n }\n\n return retVal;\n }\n\n /**\n * @param row The row index of where to superimpose the top left element of the addend\n * @param col The column index of where to superimpose the top left element of the addend\n * @param addend A matrix to superimpose\n * @return A new matrix\n */\n BasicMatrix add(int row, int col, Access2D<?> addend);\n\n /**\n * @return A fully mutable matrix builder with the elements initially set to a copy of this matrix.\n */\n Builder<? extends BasicMatrix> copy();\n\n /**\n * Divides the elements of this with the elements of aMtrx. The matrices must have equal dimensions.\n *\n * @param aMtrx The denominator elements.\n * @return A new matrix whos elements are the elements of this divided with the elements of aMtrx.\n */\n BasicMatrix divideElements(Access2D<?> aMtrx);\n\n /**\n * Will enforce this number context on the elements\n *\n * @param context The context\n * @return A new matrix with the elements enforced\n */\n BasicMatrix enforce(NumberContext context);\n\n /**\n * @return true if the frobenius norm of the difference between [this] and [aStore] is zero within the\n * limits of aCntxt.\n */\n boolean equals(Access2D<?> aMtrx, NumberContext aCntxt);\n\n /**\n * BasicMatrix instances are intended to be immutable. If they are it is possible to cache (partial)\n * calculation results. Calling this method should flush any cached calculation results.\n */\n void flushCache();\n\n /**\n * @param first The first column to include.\n * @param limit The limit (exclusive) - the first column not to include.\n * @return A new matrix with only the specified range of columns\n */\n BasicMatrix getColumnsRange(final int first, final int limit);\n\n /**\n * Matrix condition (2-norm)\n *\n * @return ratio of largest to smallest singular value.\n * @deprecated v40 Use {@link SingularValue}\n */\n @Deprecated\n Scalar<?> getCondition();\n\n /**\n * @return The matrix' determinant.\n */\n Scalar<?> getDeterminant();\n\n /**\n * @deprecated v40 Use {@link SingularValue}\n */\n @Deprecated\n List<ComplexNumber> getEigenvalues();\n\n /**\n * The rank of a matrix is the (maximum) number of linearly independent rows or columns it contains. It is\n * also equal to the number of nonzero singular values of the matrix.\n *\n * @return The matrix' rank.\n * @deprecated v40 Use {@link SingularValue}\n */\n @Deprecated\n int getRank();\n\n /**\n * @param first The first row to include.\n * @param kimit The limit (exclusive) - the first row not to include.\n * @return A new matrix with only the specified range of rows\n */\n BasicMatrix getRowsRange(final int first, final int kimit);\n\n /**\n * @deprecated v40 Use {@link SingularValue}\n */\n @Deprecated\n List<? extends Number> getSingularValues();\n\n /**\n * The sum of the diagonal elements.\n *\n * @return The matrix' trace.\n */\n Scalar<?> getTrace();\n\n /**\n * <p>\n * About inverting matrices:\n * </p>\n * <ul>\n * <li>\"right inverse\": [this][right inverse]=[I]. You may calculate it using\n * {@linkplain #solve(Access2D)}.</li>\n * <li>\"left inverse\": [left inverse][this]=[I]. You may calculate it using {@linkplain #solve(Access2D)}\n * and transposing.</li>\n * <li>\"generalised inverse\": [this][generalised inverse][this]=[this]. Note that if [this] is singular or\n * non-square, then [generalised inverse] is not unique.</li>\n * <li>\"pseudoinverse\": The generalised inverse (there are typically/possibly many) with the smallest\n * frobenius norm is called the pseudoinverse. You may calculate it using the {@linkplain QR} or\n * {@linkplain SingularValue} decompositions.</li>\n * <li>\"inverse\":\n * <ul>\n * <li>If [left inverse]=[right inverse] then it is also [inverse].</li>\n * <li>If [this] is square and has full rank then the [generalised inverse] is unique, with the\n * [pseudoinverse] given, and equal to [inverse].</li>\n * </ul>\n * </li>\n * </ul>\n *\n * @return The \"best possible\" inverse....\n */\n BasicMatrix invert();\n\n /**\n * @return true if {@linkplain #getRank()} == min({@linkplain #countRows()}, {@linkplain #countColumns()})\n * @deprecated v40\n */\n @Deprecated\n boolean isFullRank();\n\n boolean isHermitian();\n\n boolean isSymmetric();\n\n /**\n * [belowRows] is appended below [this]. The two matrices must have the same number of columns.\n *\n * @param belowRows The matrix to merge.\n * @return A new matrix with more rows.\n */\n BasicMatrix mergeColumns(Access2D<?> belowRows);\n\n /**\n * [rightColumns] is appended to the right of [this]. The two matrices must have the same number of rows.\n *\n * @param rightColumns The matrix to merge.\n * @return A new matrix with more columns.\n */\n BasicMatrix mergeRows(Access2D<?> rightColumns);\n\n /**\n * @deprecated v42\n */\n @Deprecated\n BasicMatrix modify(UnaryFunction<? extends Number> aFunc);\n\n /**\n * Multiplies the elements of this matrix with the elements of aMtrx. The matrices must have equal\n * dimensions.\n *\n * @param aMtrx The elements to multiply by.\n * @return A new matrix whos elements are the elements of this multiplied with the elements of aMtrx.\n */\n BasicMatrix multiplyElements(Access2D<?> aMtrx);\n\n /**\n * @param someCols An ordered array of column indeces.\n * @return A matrix with a subset of, reordered, columns.\n */\n BasicMatrix selectColumns(int... someCols);\n\n /**\n * @param someRows An ordered array of row indeces.\n * @return A matrix with a subset of, reordered, rows.\n */\n BasicMatrix selectRows(int... someRows);\n\n /**\n * <p>\n * This method solves a system of linear equations: [this][X]=[aRHS]. A combination of columns in [this]\n * should produce a column in [aRHS]. It is ok for [aRHS] to have more than 1 column.\n * </p>\n * <ul>\n * <li>If the problem is over-qualified an approximate solution is returned.</li>\n * <li>If the problem is under-qualified one possible solution is returned.</li>\n * </ul>\n * <p>\n * Remember that: [X][this]=[aRHS] is equivalent to [this]<sup>T</sup>[X]<sup>T</sup>=[aRHS]<sup>T</sup>\n * </p>\n *\n * @param aRHS The right hand side of the equation.\n * @return The solution, [X].\n */\n BasicMatrix solve(Access2D<?> aRHS);\n\n /**\n * Extracts one element of this matrix as a Scalar.\n *\n * @param row A row index.\n * @param col A column index.\n * @return One matrix element\n */\n Scalar<?> toScalar(long row, long col);\n\n /**\n * @deprecated v42\n */\n @Deprecated\n default String toString(final int row, final int col) {\n return this.toScalar(row, col).toString();\n }\n\n /**\n * Transposes this matrix. For complex matrices conjugate() and transpose() are NOT EQUAL.\n *\n * @return A matrix that is the transpose of this matrix.\n * @see org.ojalgo.matrix.BasicMatrix#conjugate()\n */\n BasicMatrix transpose();\n\n}", "title": "" }, { "docid": "b0ba77461155dc951e162f42b986c6fe", "score": "0.44719866", "text": "public IndexedReference<A> makeReference(A obj);", "title": "" }, { "docid": "ab1913d11e47a714975d12dab883d49f", "score": "0.44691843", "text": "void testVisitMt(Tester t) {\n\n MtList<Integer> mtL = new MtList<Integer>();\n MtList<IList<Integer>> mtLL = new MtList<IList<Integer>>();\n\n\n ContainsInt contain3 = new ContainsInt(3);\n OrMap<Integer> Any3 = new OrMap<Integer>(contain3);\n t.checkExpect(Any3.visitMt(mtL), false);\n\n RowLength<Integer> rowLength = new RowLength<Integer>();\n t.checkExpect(rowLength.visitMt(mtLL), 0);\n\n MakeThree makeThree = new MakeThree();\n\n ChangeAtX<Integer> change0 = new ChangeAtX<Integer>(makeThree, 0);\n ChangeAtX<Integer> change1 = new ChangeAtX<Integer>(makeThree, 1);\n ChangeAtX<Integer> change2 = new ChangeAtX<Integer>(makeThree, 2);\n\n t.checkExpect(change0.visitMt(mtL), MT);\n t.checkExpect(change1.visitMt(mtL), MT);\n t.checkExpect(change2.visitMt(mtL), MT);\n\n ChangeAtXY<Integer> change00 = new ChangeAtXY<Integer>(makeThree, 0, 0);\n ChangeAtXY<Integer> change10 = new ChangeAtXY<Integer>(makeThree, 1, 0);\n ChangeAtXY<Integer> change11 = new ChangeAtXY<Integer>(makeThree, 1, 1);\n ChangeAtXY<Integer> change22 = new ChangeAtXY<Integer>(makeThree, 2, 2);\n\n t.checkExpect(change00.visitMt(mtLL), mtLL);\n t.checkExpect(change10.visitMt(mtLL), mtLL);\n t.checkExpect(change11.visitMt(mtLL), mtLL);\n t.checkExpect(change22.visitMt(mtLL), mtLL);\n\n AppendHelper<Integer> appendL33 = new AppendHelper<Integer>(L33);\n AppendHelper<Integer> appendL55 = new AppendHelper<Integer>(L55);\n\n t.checkExpect(appendL33.visitMt(mtL), L33);\n\n t.checkExpect(appendL55.visitMt(mtL), L55);\n\n FirstNElements<Integer> first0Element = new FirstNElements<Integer>(0);\n FirstNElements<Integer> first1Element = new FirstNElements<Integer>(1);\n FirstNElements<Integer> first2Element = new FirstNElements<Integer>(2);\n FirstNElements<Integer> first3Element = new FirstNElements<Integer>(3);\n\n t.checkExpect(first0Element.visitMt(mtL), mtL);\n\n t.checkExpect(first1Element.visitMt(mtL), mtL);\n\n t.checkExpect(first2Element.visitMt(mtL), mtL);\n\n t.checkExpect(first3Element.visitMt(mtL), mtL);\n\n IncrementAboveX aboveX = new IncrementAboveX(3);\n IncrementAllByX allbyX = new IncrementAllByX(2);\n\n t.checkExpect(aboveX.visitMt(mtL), MT);\n\n t.checkExpect(allbyX.visitMt(mtL), MT);\n }", "title": "" }, { "docid": "f209a52552efbc640107a6ae1de32876", "score": "0.44684374", "text": "ComplexType getRef();", "title": "" }, { "docid": "43724a0c37679926a9d0bc5afb0ccc45", "score": "0.44668758", "text": "public java.lang.Object invoke() {\n /*\n r5 = this;\n d.a.a.a.y0.j.b.o r0 = r5.f14778g\n d.a.a.a.y0.j.b.w r0 = r0.f14774k\n java.util.Map<d.a.a.a.y0.f.a, d.a.a.a.y0.e.c> r0 = r0.f14810d\n java.util.Set r0 = r0.keySet()\n java.util.ArrayList r1 = new java.util.ArrayList\n r1.<init>()\n java.util.Iterator r0 = r0.iterator()\n L_0x0013:\n boolean r2 = r0.hasNext()\n if (r2 == 0) goto L_0x0039\n java.lang.Object r2 = r0.next()\n r3 = r2\n d.a.a.a.y0.f.a r3 = (p298d.p299a.p300a.p301a.p303y0.p331f.C6713a) r3\n boolean r4 = r3.mo23860k()\n if (r4 != 0) goto L_0x0032\n d.a.a.a.y0.j.b.h r4 = p298d.p299a.p300a.p301a.p303y0.p400j.p401b.C7376h.f14729c\n java.util.Set<d.a.a.a.y0.f.a> r4 = p298d.p299a.p300a.p301a.p303y0.p400j.p401b.C7376h.f14730d\n boolean r3 = r4.contains(r3)\n if (r3 != 0) goto L_0x0032\n r3 = 1\n goto L_0x0033\n L_0x0032:\n r3 = 0\n L_0x0033:\n if (r3 == 0) goto L_0x0013\n r1.add(r2)\n goto L_0x0013\n L_0x0039:\n java.util.ArrayList r0 = new java.util.ArrayList\n r2 = 10\n int r2 = p005b.p291q.p292a.C5266a.m9892V(r1, r2)\n r0.<init>(r2)\n java.util.Iterator r1 = r1.iterator()\n L_0x0048:\n boolean r2 = r1.hasNext()\n if (r2 == 0) goto L_0x005c\n java.lang.Object r2 = r1.next()\n d.a.a.a.y0.f.a r2 = (p298d.p299a.p300a.p301a.p303y0.p331f.C6713a) r2\n d.a.a.a.y0.f.d r2 = r2.mo23859j()\n r0.add(r2)\n goto L_0x0048\n L_0x005c:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p298d.p299a.p300a.p301a.p303y0.p400j.p401b.C7388o.C7390b.invoke():java.lang.Object\");\n }", "title": "" }, { "docid": "8656a6dcba5797f08da2fddfdb5198d4", "score": "0.44585484", "text": "@SuppressWarnings(\"deprecation\")\n \tpublic void test_typeEquality_126145() {\n \t\tclass EqualsEClass extends EClassImpl {\n \t\t\tprivate int key;\n \t\t\t\n \t\t\tEqualsEClass(int key) {\n \t\t\t\tthis.key = key;\n \t\t\t}\n \t\t\t\n \t\t\t@Override\n public boolean equals(Object o) {\n \t\t\t\treturn (o instanceof EqualsEClass)\n \t\t\t\t\t&& (key == ((EqualsEClass) o).key);\n \t\t\t}\n \t\t}\n \t\t\n \t\tEPackage epackage = EcoreFactory.eINSTANCE.createEPackage();\n \t\tepackage.setName(\"foo\");\n \t\t\n \t\tEClass a = new EqualsEClass(1);\n \t\ta.setName(\"A\");\n \t\tepackage.getEClassifiers().add(a);\n \t\t\n \t\tEClass b = new EqualsEClass(1); // same key as a, so b.equals(a)\n \t\tb.setName(\"B\");\n \t\tepackage.getEClassifiers().add(b);\n \t\t\n \t\tEClass c = new EqualsEClass(2);\n \t\tc.setName(\"C\");\n \t\tepackage.getEClassifiers().add(b);\n \t\t\n \t\tEReference ref = EcoreFactory.eINSTANCE.createEReference();\n \t\tref.setName(\"a\");\n \t\tref.setUpperBound(ETypedElement.UNBOUNDED_MULTIPLICITY);\n \t\tref.setOrdered(false);\n \t\tref.setUnique(true);\n \t\tref.setEType(a);\n \t\tc.getEStructuralFeatures().add(ref);\n \t\tref = EcoreFactory.eINSTANCE.createEReference();\n \t\tref.setName(\"b\");\n \t\tref.setUpperBound(ETypedElement.UNBOUNDED_MULTIPLICITY);\n \t\tref.setOrdered(false);\n \t\tref.setUnique(true);\n \t\tref.setEType(b);\n \t\tc.getEStructuralFeatures().add(ref);\n \t\t\n \t\thelper.setContext(c);\n \t\tOCLExpression<EClassifier> expr = null;\n \t\t\n \t\ttry {\n \t\t\texpr = helper.createQuery(\"a->union(b)\");\n \t\t} catch (Exception e) {\n \t\t\tfail(\"Parse failed: \" + e.getLocalizedMessage());\n \t\t}\n \t\t\n \t\tassertNotNull(expr);\n \t\t\n \t\tEClassifier type = expr.getType();\n \t\t\n \t\tassertTrue(type instanceof CollectionType);\n \t\t\n \t\ttype = ((CollectionType) type).getElementType();\n \t\t\n \t\t// verify that the common supertype is a/b, which are considered by\n \t\t// OCL to be the same type\n \t\tassertEquals(a, type);\n \t\tassertEquals(b, type);\n \t\t\n \t\tEcoreEnvironment env = (EcoreEnvironment) ocl.getEnvironment();\n \t\t\n \t\tassertEquals(UMLReflection.SAME_TYPE, TypeUtil.getRelationship(env, a, b));\n \t\tassertEquals(UMLReflection.SAME_TYPE, TypeUtil.getRelationship(env, b, a));\n \t\t\n \t\ttry {\n \t\t\tassertEquals(a, TypeUtil.commonSuperType(env, a, b));\n \t\t\tassertEquals(b, TypeUtil.commonSuperType(env, a, b));\n \t\t\tassertEquals(a, TypeUtil.commonSuperType(env, b, a));\n \t\t\tassertEquals(b, TypeUtil.commonSuperType(env, b, a));\n \t\t} catch (Exception e) {\n \t\t\tfail(\"No common super type: \" + e.getLocalizedMessage());\n \t\t}\n \t}", "title": "" }, { "docid": "9e3908695d88d33b50217091087f9199", "score": "0.44582975", "text": "public void mo7175a(C1544ab abVar, C1575w wVar) {\n wVar.mo7281d();\n int d = wVar.mo7281d();\n this.f4614a = new C1549b[d];\n for (int i = 0; i < d; i++) {\n C1549b bVar = new C1549b();\n bVar.mo7208a(wVar);\n this.f4614a[i] = bVar;\n }\n for (int i2 = 0; i2 < d; i2++) {\n this.f4614a[i2].mo7207a(this, abVar.mo7201u(), wVar);\n }\n this.f4757b = true;\n }", "title": "" }, { "docid": "a066b0581286a89bd9e9c0b2f50ab67b", "score": "0.4456062", "text": "public static void main(String[] args) {\n\t\t\n\t\tint size =8;\n\t\tint c[] = new int[size];\n\t\t\n\t\tint arr1[][];\n\t\tint[] arr2[] = null;\n\t\tarr2 = new int[4][4];\n\t\tarr2[0][1]= 2323;\n\t\tSystem.out.println(arr2.length);\n\t\t\n\t\tint [][]arr3;\n\t\tfinal int []arr4[] = {{2,3},{4,5},{6,7}};\n\t\tint[] arr5[] = new int[3][4];\n\t\t\n\t\tarr4[1][1] = 5;\n\t\tObject ob = arr4;\n\t\tint value = arr4[1][0]+1;//+1 can use + on values but not on array reference variable\n\t\t//int b1 = ob[1][2]; Cant refer values with object reference\n\t\t//arr5 = arr4; can assign one array to other if both are of same type\n\t\t\n\t\tarr1 = new int[3][2];\n\t\tarr1[1][1] =98;\n\t\tSystem.out.println(arr1[2][1]);\n\t\tSystem.out.println(arr4[1][0]);\n\t\tint arr7[][][];\n\t\tarr7 = new int[][][]{{{3,5,6},{4,6,3}},{{13,15,16},{14,116,13}}};\n\t\t\n\t\tfor(int ar[][]:arr7) {\n\t\t\tfor(int a[]:ar) {\n\t\t\t\t//System.out.println(\"inside enhance for\");\n\t\t\t\tfor(int b:a)\n\t\t\t\tSystem.out.println(b);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "0932ffaa46ba0f4adbc312c20a02d973", "score": "0.4453273", "text": "private void refine()\n\t{\n\t\tfinal LevenbergMarquardtOptimizer lm = new LevenbergMarquardtOptimizer();\n\t\tfinal RealVector start = buildInitialVector();\n\t\tfinal RealVector observed = buildObservedVector();\n\t\tfinal int maxEvaluations = 1000;\n\t\tfinal int maxIterations = 1000;\n\n\t\tfinal MultivariateVectorFunction value = new Value();\n\t\tfinal MultivariateMatrixFunction jacobian = new Jacobian();\n\t\tfinal MultivariateJacobianFunction model = LeastSquaresFactory.model(value, jacobian);\n\n\t\tfinal Optimum result = lm.optimize(LeastSquaresFactory.create(model,\n\t\t\t\tobserved, start, null, maxEvaluations, maxIterations));\n\n\t\tupdateEstimates(result.getPoint());\n\t}", "title": "" }, { "docid": "ddb50e47c300f19607b7acf9f75b8397", "score": "0.44478288", "text": "@Test\n public void test_setArrays() {\n\n dynaTestInvoker(refArraysSetter,\n \"setBoolean\",\n Boolean[].class,\n new Boolean[][] {new Boolean[] {false, true}},\n new Boolean[] {false, true});\n\n dynaTestInvoker(refArraysSetter,\n \"setChar\",\n Character[].class,\n new Character[][] {new Character[] {'A', 'B'}},\n new Character[] {'A', 'B'});\n\n dynaTestInvoker(refArraysSetter, \"setOctet\", Byte[].class, new Byte[][] {new Byte[] {1, 2}}, new Byte[] {1, 2});\n\n dynaTestInvoker(refArraysSetter, \"setShort\", Short[].class, new Short[][] {new Short[] {1, 2}}, new Short[] {1,\n 2});\n\n dynaTestInvoker(refArraysSetter,\n \"setLong\",\n Integer[].class,\n new Integer[][] {new Integer[] {1, 2}},\n new Integer[] {1, 2});\n\n dynaTestInvoker(refArraysSetter,\n \"setLongLong\",\n Long[].class,\n new Long[][] {new Long[] {new Long(1), new Long(2)}},\n new Long[] {new Long(1), new Long(2)});\n\n dynaTestInvoker(refArraysSetter,\n \"setFloat\",\n Float[].class,\n new Float[][] {new Float[] {new Float(1.0), new Float(2.0)}},\n new Float[] {new Float(1.0), new Float(2.0)});\n\n dynaTestInvoker(refArraysSetter,\n \"setDouble\",\n Double[].class,\n new Double[][] {new Double[] {new Double(1.0), new Double(2.0)}},\n new Double[] {new Double(1.0), new Double(2.0)});\n\n dynaTestInvoker(refArraysSetter,\n \"setString\",\n String[].class,\n new String[][] {new String[] {\"A\", \"B\"}},\n new String[] {\"A\", \"B\"});\n\n }", "title": "" } ]
315d56536b6b39ab1c7426e399eecdf9
Sets a new retry drawable with scale type.
[ { "docid": "38578193361330418021a46339607ef4", "score": "0.7781133", "text": "public void setRetryImage(Drawable drawable, ScalingUtils.ScaleType scaleType) {\n setChildDrawableAtIndex(RETRY_IMAGE_INDEX, drawable);\n getScaleTypeDrawableAtIndex(RETRY_IMAGE_INDEX).setScaleType(scaleType);\n }", "title": "" } ]
[ { "docid": "93ed8d56e52d7b9f47ef056a99f5969f", "score": "0.68800676", "text": "public void setRetryImage(int resourceId, ScalingUtils.ScaleType scaleType) {\n setRetryImage(mResources.getDrawable(resourceId), scaleType);\n }", "title": "" }, { "docid": "e3b6fb42b77496f12486d7117ead9af4", "score": "0.6531356", "text": "public void setRetryImage(@Nullable Drawable drawable) {\n setChildDrawableAtIndex(RETRY_IMAGE_INDEX, drawable);\n }", "title": "" }, { "docid": "4116aa31270a0a90770c3c55f7a0637d", "score": "0.60514486", "text": "public void setFailureImage(Drawable drawable, ScalingUtils.ScaleType scaleType) {\n setChildDrawableAtIndex(FAILURE_IMAGE_INDEX, drawable);\n getScaleTypeDrawableAtIndex(FAILURE_IMAGE_INDEX).setScaleType(scaleType);\n }", "title": "" }, { "docid": "99419906fc620cd9378c76b74cbc2bcb", "score": "0.59648955", "text": "public void setRetryImage(int resourceId) {\n setRetryImage(mResources.getDrawable(resourceId));\n }", "title": "" }, { "docid": "9a5cc469fb9136ee4c5c00433a127755", "score": "0.588501", "text": "public void setProgressBarImage(Drawable drawable, ScalingUtils.ScaleType scaleType) {\n setChildDrawableAtIndex(PROGRESS_BAR_IMAGE_INDEX, drawable);\n getScaleTypeDrawableAtIndex(PROGRESS_BAR_IMAGE_INDEX).setScaleType(scaleType);\n }", "title": "" }, { "docid": "648b2eed53ca07fdd1d2334c3acc0529", "score": "0.57685375", "text": "public void setProgressBarImage(int resourceId, ScalingUtils.ScaleType scaleType) {\n setProgressBarImage(mResources.getDrawable(resourceId), scaleType);\n }", "title": "" }, { "docid": "1bf894853d90b2ceffa0ffa49672b40a", "score": "0.565339", "text": "public void setActualImageScaleType(ScalingUtils.ScaleType scaleType) {\n Preconditions.checkNotNull(scaleType);\n getScaleTypeDrawableAtIndex(ACTUAL_IMAGE_INDEX).setScaleType(scaleType);\n }", "title": "" }, { "docid": "7fa43585735195f326486a6c2c0063fc", "score": "0.56052965", "text": "@Override\n public void setScaleType(ScaleType scaleType) {\n }", "title": "" }, { "docid": "dc459fa333353ed98a5e16fdbfd29b2d", "score": "0.55235153", "text": "public void setFailureImage(int resourceId, ScalingUtils.ScaleType scaleType) {\n setFailureImage(mResources.getDrawable(resourceId), scaleType);\n }", "title": "" }, { "docid": "e59f0548ce05dbc2e52826cb4efb32eb", "score": "0.54673076", "text": "public abstract void setDrawable(Drawable drawable);", "title": "" }, { "docid": "ce4776aa0a6aee05b0c247178701dc09", "score": "0.539487", "text": "public void setPlaceholderImage(Drawable drawable, ScalingUtils.ScaleType scaleType) {\n setChildDrawableAtIndex(PLACEHOLDER_IMAGE_INDEX, drawable);\n getScaleTypeDrawableAtIndex(PLACEHOLDER_IMAGE_INDEX).setScaleType(scaleType);\n }", "title": "" }, { "docid": "f7ce92e5b12e6104a69888da48e38311", "score": "0.534", "text": "public void setLoadingDrawable(Drawable drawable);", "title": "" }, { "docid": "cfb2abcf9b638821fe4f950ce6b9f412", "score": "0.52797675", "text": "@Override\n public void setImageDrawable(Drawable drawable) {\n ResetEverything();\n super.setImageDrawable(drawable);\n }", "title": "" }, { "docid": "6f836a6015b96f2208bdb4b2747aff05", "score": "0.52578205", "text": "public void setRetry(Byte retry) {\n this.retry = retry;\n }", "title": "" }, { "docid": "a01b0bd16087706542ab69e310368ad2", "score": "0.5239443", "text": "public void setResource(Drawable resource) {\n setDrawable(resource);\n }", "title": "" }, { "docid": "715136aeac4a9a5236b5e42824e9c1c1", "score": "0.52026707", "text": "private ScaleTypeDrawable getScaleTypeDrawableAtIndex(int index) {\n DrawableParent parent = getParentDrawableAtIndex(index);\n if (parent instanceof ScaleTypeDrawable) {\n return (ScaleTypeDrawable) parent;\n } else {\n return WrappingUtils.wrapChildWithScaleType(parent, ScalingUtils.ScaleType.FIT_XY);\n }\n }", "title": "" }, { "docid": "913828c708c9d697324f5ac0f1b5654a", "score": "0.5156282", "text": "public void setScaleType(ScaleType scaleType) {\n mScaleType = scaleType;\n mRenderer.setScaleType(scaleType);\n mRenderer.deleteImage();\n mCurrentBitmap = null;\n requestRender();\n }", "title": "" }, { "docid": "2d0feb7e56cbc364b5e0ecfe993cb2f4", "score": "0.51335335", "text": "public Builder setAutoScaleTypeValue(int value) {\n \n autoScaleType_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e27687bd17fca3ad010936d2eda447bc", "score": "0.5116054", "text": "public void setPlaceholderImage(int resourceId, ScalingUtils.ScaleType scaleType) {\n setPlaceholderImage(mResources.getDrawable(resourceId), scaleType);\n }", "title": "" }, { "docid": "02e2cfcebfac70dd3e20d52a8fd37162", "score": "0.50934905", "text": "public void updateScale() {\n double sy = (getResources().getDrawable(R.drawable.target_blue).getIntrinsicHeight()) / (getHeight() / 3.0);\n double sx = (getResources().getDrawable(R.drawable.target_blue).getIntrinsicWidth()) / (getWidth() / 3.0);\n double s = Math.max(sy, sx);\n s = 1.0 / s;\n target.setScale(s);\n reticle.setScale(s);\n }", "title": "" }, { "docid": "1ca70e33b49ee1fd60f86da748e4b62b", "score": "0.5090713", "text": "public void setImage(){\r\n\t\tswitch(size){\r\n\t\t\tcase 0: image = ImageResources.rock1;\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1: image = ImageResources.rock2;\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 2: image = ImageResources.rock3;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0a2d042d9e41832c2364969a1fbbdf6e", "score": "0.50661945", "text": "default void setAnimScaleSetting(float scale) {}", "title": "" }, { "docid": "1e7d63065bd66df24bde757bde6963fa", "score": "0.5051111", "text": "@Override\n public void setImageResource(int resId) {\n ResetEverything();\n super.setImageResource(resId);\n }", "title": "" }, { "docid": "ffd6a4142fc8f50bcf93ba93a8433777", "score": "0.5036621", "text": "public void setRetry(int r) {\r\n\t\tretry = r;\r\n\t}", "title": "" }, { "docid": "63c313a402da12740fcd591d91518564", "score": "0.4993996", "text": "public void resetScale()\n {\n scale.set(1.0, 1.0, 1.0);\n }", "title": "" }, { "docid": "835725078f2029db04924a5085070220", "score": "0.49921593", "text": "public static void setThumbnailBackground (ImageView thunmbnailView, String mimeType) {\n if (thunmbnailView == null) {\n return;\n }\n if(isExcelMimeType(mimeType)) {\n thunmbnailView.setImageResource(R.drawable.ic_excel);\n } else if (isWordMimeType(mimeType)) {\n thunmbnailView.setImageResource(R.drawable.ic_word);\n } else if (isPPTMimeType(mimeType)) {\n thunmbnailView.setImageResource(R.drawable.ic_ppt);\n } else if (isPDFMimeType(mimeType)) {\n thunmbnailView.setImageResource(R.drawable.ic_pdf);\n }\n }", "title": "" }, { "docid": "dcaff77ad7921bf8f09b0f94edf5cef6", "score": "0.49908766", "text": "@Override\n\tpublic void rescale(double scale)\n\t{\n\t}", "title": "" }, { "docid": "cb79d945ec6bd062a29200f0a6382072", "score": "0.49906743", "text": "public void setScale(int scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "98e89b0ec20beaa17ab4f5e1c9e519d7", "score": "0.4973261", "text": "private void scaleToPresets() {\n ImageScaler.getInstance().createPresetJob(myImage);\n }", "title": "" }, { "docid": "89a2a8aabf4c7cab25cc31ef618c9cc8", "score": "0.49435616", "text": "public void setScale(double scale){\n for (Polygon p: polygons) p.setScale(scale);\n if (recentParams!=null) {\n recentParams.ROIx *= scale;\n recentParams.ROIy *= scale;\n recentParams.width *= scale;\n recentParams.height *= scale;\n }\n if (base!=null) base.setScale(scale);\n }", "title": "" }, { "docid": "7d91418cd065d743b4c730a59543756a", "score": "0.49380094", "text": "public void setInvalidate(RollImageView.InvalidateView invalidate);", "title": "" }, { "docid": "3ee2c2e1e30bf5d2a92e8376298cf7ef", "score": "0.49240845", "text": "public void setSkullType(int type);", "title": "" }, { "docid": "4682b5ad3600444f231d83b685abedad", "score": "0.49218604", "text": "GeometryBuilder setScale(float scale);", "title": "" }, { "docid": "a15765a2d85b66c091e99c6a533d7c99", "score": "0.4891792", "text": "Scale(Entry ent) {\n\t\tsuper(ent, new SeqRange(1, ent.getLength()));\n\t\tif (ent.tier > 0) { tier = CoordVal.MAXTIERS; }\n\t\telse { tier = - CoordVal.MAXTIERS; }\n\t\tfillColor = Color.black;\n\t\tcanvHeight = 8;\n\t}", "title": "" }, { "docid": "ee9a45ccc3b884aac2afb8c8a10c6e42", "score": "0.4841312", "text": "public Image setRes(int res) {\r\n this.res = res;\r\n return this;\r\n }", "title": "" }, { "docid": "44e173386324bc838461ebcf7728638b", "score": "0.48367184", "text": "private void setPic(ImageButton mImageView) {\n mImageView=profileBtn;\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n //RoundedBitmapDrawable mDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap);\n\n // mDrawable.setCircular(true);\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "title": "" }, { "docid": "2f420a5e9edbd48381534410e41569ba", "score": "0.48291847", "text": "private void setRectSrc() {\n\t\tDrawable d = getResources().getDrawable(R.drawable.standart_cell_size);\n\t\tint w = d.getIntrinsicWidth();\n\t\tint h = d.getIntrinsicHeight();\n\t\trectPictSrc.set(0, 0, w, h);\n\t}", "title": "" }, { "docid": "685ed70133f23ee312403dd9da5865e4", "score": "0.48187605", "text": "public void markRetryable() {\r\n this.setMaxAttempts(2);\r\n }", "title": "" }, { "docid": "a19110dcc72020b4285907336c3dbcd8", "score": "0.48162606", "text": "public void setScale(Scale value) {\n\t\tsetValue(3, value);\n\t}", "title": "" }, { "docid": "cf039ee5e5be9fb56720735932352e3c", "score": "0.48149675", "text": "@Override\n\t\t\tpublic boolean setImageDrawable(Drawable arg0) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "0d007e47dc99a65ed3dec0fa165d1eac", "score": "0.48103675", "text": "public void setFailureImage(@Nullable Drawable drawable) {\n setChildDrawableAtIndex(FAILURE_IMAGE_INDEX, drawable);\n }", "title": "" }, { "docid": "f1cbc4c75cd0487d9c3be3b3307de14d", "score": "0.4804439", "text": "private Bitmap createScaledBitmap(int drawable) \n\t throws FileNotFoundException, IOException, \n\t IllegalArgumentException {\t \n\t\t Bitmap bitmap = BitmapFactory.decodeResource(getResources(), drawable); \n\t return bitmap;\n\t }", "title": "" }, { "docid": "35f7931d52be9ee9844f790aed3ab8ad", "score": "0.47943842", "text": "public void setScale(double scale) {\n myScale = scale;\n }", "title": "" }, { "docid": "e93a798e9a9ae2d41e412934bc78c413", "score": "0.4761545", "text": "public void setRetryBackoffMultiplier(long retryBackoffMultiplier)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETRYBACKOFFMULTIPLIER$14, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RETRYBACKOFFMULTIPLIER$14);\r\n }\r\n target.setLongValue(retryBackoffMultiplier);\r\n }\r\n }", "title": "" }, { "docid": "361531ccf0f078773535dce711ded39d", "score": "0.4760936", "text": "public void setSize(int type)\n\t{\n\t\tDimension s = null;\n\t\tswitch (type) \n\t\t{\n\t\t\tcase 0: // New picture\n\t\t\t\tif (example.getPictureSize() != null)\t\n\t\t\t\t{\n\t\t\t\t\tsize = example.getPictureSize(); \n\t\t\t\t\tthis.setPreferredSize(size);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1: // Rotate\n\t\t\t\ts = example.getPictureSize();\n\t\t\t\tsize.setSize(s.getHeight(),s.getWidth());\n\t\t\t\tthis.setPreferredSize(size);\n\t\t\t\tbreak;\n\t\t\tcase 2: // Zoom\n\t\t\t\ts = new Dimension(example.image.getWidth(null),example.image.getHeight(null));\n\t\t\t\tint newWidth,newHeight;\n\t\t\t\t\n\t\t\t\t// Set size according to the rotate number\n\t\t\t\tint rot = rotateNum;\n\t\t\t\twhile (rot < 0)\n\t\t\t\t\trot += 4;\n\t\t\t\t// If the image is not rotated or rotated 180 degrees\n\t\t\t\tif (rot%4 == 0 || rot%4 == 2)\n\t\t\t\t\tsize.setSize(zoomDegrees[zoomIndex]*s.getWidth(),zoomDegrees[zoomIndex]*s.getHeight());\n\t\t\t\t// If the image is rotated 90 or 270 degrees, the width and height should be changed\n\t\t\t\telse\n\t\t\t\t\tsize.setSize(zoomDegrees[zoomIndex]*s.getHeight(),zoomDegrees[zoomIndex]*s.getWidth());\n\t\t\t\n\t\t\t\tthis.setPreferredSize(size);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "3faa5ab394da885ed006609d3eb45b23", "score": "0.47545603", "text": "public void setScalesNumber(int val) {\n setScalesNumber_0(nativeObj, val);\n }", "title": "" }, { "docid": "5f4cba0156ce0cad8a320cec49cc68ea", "score": "0.4751439", "text": "public scale(){\r\n\t\t\tsuper();\r\n\t\t}", "title": "" }, { "docid": "15ba4de72bf72e250b71d51713eb3c45", "score": "0.4747688", "text": "public void setTint(String tint) {\n this.image.setTint(tint);\n }", "title": "" }, { "docid": "87f606ab5f2f045cc52f763ceb4aa30a", "score": "0.47475508", "text": "public void setProgressBarImage(int resourceId) {\n setProgressBarImage(mResources.getDrawable(resourceId));\n }", "title": "" }, { "docid": "e00cf11e4537bc26e6f7d71300ba369f", "score": "0.47332722", "text": "public void setScale(double scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "07a41f2757b2a556c72b1990d5f063ee", "score": "0.47162816", "text": "public void setScale(float scale) {\n this.planComponent.setScale(scale);\n }", "title": "" }, { "docid": "1a0eff04ddfa3bcbe00bc96f48a15a63", "score": "0.47150078", "text": "public void setDrawable(Drawable d) {\n this.mItem.setIcon(d);\n }", "title": "" }, { "docid": "08cec48aba3777030a55cb5da9c1edb9", "score": "0.47135326", "text": "public void setPictype(Byte pictype) {\r\n\t this.pictype = pictype;\r\n }", "title": "" }, { "docid": "8fc4df4f44d1ec1bba404ecabc0cd335", "score": "0.47048488", "text": "private void setearUrlImagen(String urlImagen) {\n\n ImageRequest imageRequest = new ImageRequest(urlImagen, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap response) {\n\n //To pit the image avator rounded\n\n //creamos el drawable redondeado\n\n\n RoundedBitmapDrawable roundedDrawable =\n RoundedBitmapDrawableFactory.create(getResources(), response);\n\n roundedDrawable.setCornerRadius(response.getHeight());\n\n imageViewUserAvatar.setImageDrawable(roundedDrawable);\n\n //imageViewUserAvatar.setImageBitmap(response);\n\n }\n }, 0, 0, ImageView.ScaleType.CENTER, null, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //Toast.makeText(getApplicationContext(), \"Error al cargar la imagen\", Toast.LENGTH_LONG).show();\n }\n });\n\n request.add(imageRequest);\n return;\n\n\n }", "title": "" }, { "docid": "9ee0a52a568027d01904bf19bdabc06c", "score": "0.4700667", "text": "protected void setImage(Drawable drawable) {\r\n\r\n\t\tthis.drawable = drawable;\r\n\r\n\t\tthis.height = drawable.getIntrinsicHeight();\r\n\t\tthis.width = drawable.getIntrinsicWidth();\r\n\r\n\t}", "title": "" }, { "docid": "ec87051f523b7449b3db5c6252076e81", "score": "0.46922743", "text": "public void setZoomType(ZOOM_TYPE style){\n\t\tAssert.isNotNull(parent, \"Invalid ZoomManager instance: the parent part is null\");\n\t\tAssert.isNotNull(style);\n\t}", "title": "" }, { "docid": "985d2411681e4c08c1305beb2eb33c8f", "score": "0.4681991", "text": "public RoundedImageView(Context context, AttributeSet attrs, int defStyle) {\r\n super(context, attrs, defStyle);\r\n\r\n init(context);\r\n }", "title": "" }, { "docid": "e27e9f96cffa89064179cdce89a11b35", "score": "0.46684268", "text": "@OnClick(R.id.imgBtnChangeRecyclerType)\n public void imgBtnChangeRecyclerType() {\n imgBtnChangeRecyclerType.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n view.setSelected(!view.isSelected());\n type = (type+1) % 2;\n setRecyclerView(getRecyclerItemType(type));\n }\n });\n }", "title": "" }, { "docid": "e5fc00eabcd9f54affd63485770aee4a", "score": "0.4666609", "text": "public void makeImage(int level)\n {\n switch(level)\n {\n case LEVEL_START:\n {\n im.setImageResource(R.drawable.egg);//the start egg\n break;\n }\n case LEVEL_SECOND:\n {\n im.setImageResource(R.drawable.egg2);\n break;\n }\n case LEVEL_THIRD:\n {\n im.setImageResource(R.drawable.egg3);\n break;\n }\n case LEVEL_FINAL:\n {\n if(count==0)\n im.setImageResource(R.drawable.zero_egg);//the final egg\n break;\n }\n default:\n {\n im.setImageResource(R.drawable.egg);\n break;\n }\n }\n }", "title": "" }, { "docid": "46a96c1592ea60973454eedd9ff81d73", "score": "0.46655005", "text": "public RoundedImageView(Context context) {\r\n super(context);\r\n\r\n init(context);\r\n }", "title": "" }, { "docid": "b5861b2bb2fd102b116d90b767e73094", "score": "0.46544054", "text": "protected void init(){\n Drawable drawable;\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n drawable = getResources().getDrawable(R.drawable.ic_thrashcan, null);\n }\n else{\n drawable = getResources().getDrawable(R.drawable.ic_thrashcan);\n }\n setImageDrawable(drawable);\n }", "title": "" }, { "docid": "3d4989ec92ac29a390f371b6f1f5c42e", "score": "0.46514344", "text": "private void setImage () {\n }", "title": "" }, { "docid": "ff5fd47b045d8190438c6d6a9e0b84e9", "score": "0.46391422", "text": "public Builder setAttempt(int value) {\n \n attempt_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ff5fd47b045d8190438c6d6a9e0b84e9", "score": "0.46391422", "text": "public Builder setAttempt(int value) {\n \n attempt_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "26f16c62de9048a474d8e38c43829196", "score": "0.462904", "text": "private static native void setScalesNumber_0(long nativeObj, int val);", "title": "" }, { "docid": "fa38b5f9379e05be613a9f21c9ec27e2", "score": "0.4628629", "text": "public void setScale(double p_76487_1_, double p_76487_3_, double p_76487_5_) {\n\t}", "title": "" }, { "docid": "22a1de9c32aa0a3dd3ec651f7e03f2e0", "score": "0.46283644", "text": "public void xsetRetryBackoffMultiplier(org.apache.xmlbeans.XmlLong retryBackoffMultiplier)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlLong target = null;\r\n target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(RETRYBACKOFFMULTIPLIER$14, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlLong)get_store().add_element_user(RETRYBACKOFFMULTIPLIER$14);\r\n }\r\n target.set(retryBackoffMultiplier);\r\n }\r\n }", "title": "" }, { "docid": "02a65b605c46ccc9ec82cf802230e6a5", "score": "0.46259066", "text": "private Scale(){\n\t\tcreateDefaultScale();\n\t\tcreateAbc4jTrebleScale();\n\t}", "title": "" }, { "docid": "df7316ae42cd099c56ac2b9594a470a4", "score": "0.46222833", "text": "public void setFailureImage(int resourceId) {\n setFailureImage(mResources.getDrawable(resourceId));\n }", "title": "" }, { "docid": "c8f20b6e4e46d1ab6cd67743a858f0d9", "score": "0.46203184", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tdrawableIndex++;\n\t\t\t\t\t\tdrawableIndex %=drawables.length;\n\t\t\t\t\t\tcell.setDrawable(drawables[drawableIndex]);\n\t\t\t\t\t}", "title": "" }, { "docid": "8431111407c79683e6c462c74c8c041f", "score": "0.46184778", "text": "public void setScale(Double scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "cd21d2c7c8244ac8369ff8bca4a20988", "score": "0.46179095", "text": "public NetworkTask<T> setRetryPolicy(RetryPolicy retryPolicy) {\n mRetryPolicy = retryPolicy;\n return this;\n }", "title": "" }, { "docid": "c577168fe843c8cc2abe7afdb3ebc05e", "score": "0.4616455", "text": "public void setScale( String scale ) {\n\t\tthis.scale = scale;\n\t}", "title": "" }, { "docid": "94ac5a7991b6a6ef9e02678d7b962b19", "score": "0.4614132", "text": "public RoundedImageView(Context context, AttributeSet attributeSet) {\r\n super(context, attributeSet);\r\n\r\n init(context);\r\n }", "title": "" }, { "docid": "2c2566691a3532c499ae217d7d87e7fc", "score": "0.45842057", "text": "private void updateMarkerType(Type type) {\n int resourceId = 0;\n switch (type) {\n case ZOMBIE:\n resourceId = R.drawable.zomb;\n break;\n case HUMAN:\n resourceId = R.drawable.person;\n break;\n }\n\n if (resourceId != 0) {\n marker.setVisible(true);\n marker.setIcon(BitmapDescriptorFactory.fromResource(resourceId));\n marker.setTitle(type.name());\n } else {\n marker.setVisible(false);\n }\n\n }", "title": "" }, { "docid": "28e27a8c6211b95f6b601e475d7a0de4", "score": "0.45815098", "text": "public RemoteRenderingClientBuilder retryPolicy(RetryPolicy retryPolicy) {\n builder.retryPolicy(Objects.requireNonNull(retryPolicy, \"'retryPolicy' cannot be null.\"));\n return this;\n }", "title": "" }, { "docid": "92a979dd94208a10e39c6093e1f52fc0", "score": "0.4574803", "text": "public void setScale(int percent) {\r\n\t\tscale = percent / 100;\r\n\t}", "title": "" }, { "docid": "fe2801c0050fd0d3a33e86da96f92ec9", "score": "0.45726147", "text": "private ScalePolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "472af81bb3ac06ba0e4e62e66abd8cc0", "score": "0.4570808", "text": "public void setProgressBarImage(@Nullable Drawable drawable) {\n setChildDrawableAtIndex(PROGRESS_BAR_IMAGE_INDEX, drawable);\n }", "title": "" }, { "docid": "855b5a64a875c75e7e7245d195bb6de0", "score": "0.45668164", "text": "@Override\n public void setBricksBitmap(){\n // Sets the height of each obstacle's bitmap to 200 x 50 pixels\n bitmapDimensions = new BitmapDimensions((int) width, (int) height);\n\n bricksBitmap = BitmapFactory.decodeResource(context.getResources(),\n R.drawable.tileone);\n\n bricksBitmap = Bitmap.createScaledBitmap(bricksBitmap, bitmapDimensions.width,\n bitmapDimensions.height, true);\n }", "title": "" }, { "docid": "fc2b75c7b72f74e80a47524ba0d33c8a", "score": "0.4547129", "text": "public void setImage( T input );", "title": "" }, { "docid": "e715c527e78fecd779f3092b6cb60d92", "score": "0.45445755", "text": "@Nullable\n private Drawable buildBranch(\n @Nullable Drawable drawable, @Nullable ScalingUtils.ScaleType scaleType) {\n drawable = WrappingUtils.maybeApplyLeafRounding(drawable, mRoundingParams, mResources);\n drawable = WrappingUtils.maybeWrapWithScaleType(drawable, scaleType);\n return drawable;\n }", "title": "" }, { "docid": "56235297dbd003e62ac93fbf73cee508", "score": "0.4539951", "text": "private void setImg(){\n\t\tthis.image = ImageRegistry.getImage(this.rank.toString() + \"_\" + this.suit.toString());\n\t}", "title": "" }, { "docid": "72704e9913059277d04465a473cd0495", "score": "0.4538866", "text": "public abstract Drawable createDrawable(T t);", "title": "" }, { "docid": "a104a7023eaaa54365eae5e11fb22fa2", "score": "0.45339102", "text": "@Override\n public void invalidateDrawable(Drawable who) {\n mCircularImageView.setImageDrawable(who);\n }", "title": "" }, { "docid": "86d2a58198e4ad4fa6e53b23ebff0aca", "score": "0.4533763", "text": "void setRadius(int value);", "title": "" }, { "docid": "823bb8cfaf1b66008fcc5473407b7785", "score": "0.45239148", "text": "public Builder onRetry(RetryAction hook)\n {\n this.retryAction = hook;\n return this;\n }", "title": "" }, { "docid": "fcb0b91a0567ec9d8fd341e94011d612", "score": "0.45221362", "text": "private void setScaleFromSize(int size){\n double logpart = Math.log10(Math.E);\n double denomenator = (size + 0.5) * logpart;\n currentScale = 12 / denomenator;\n }", "title": "" }, { "docid": "a0220f3f7b6e7deb8b777acb940d5082", "score": "0.45195308", "text": "public void setScale(String Scale){\n\t\tthis.Scale = Scale;\n\t}", "title": "" }, { "docid": "a853970b65e9f83a117b0f3324b18eb0", "score": "0.45170525", "text": "public void setRetryable(Boolean retryable) {\n this.retryable = retryable;\n }", "title": "" }, { "docid": "7243b8bb300b5c29e45bca52cc7c3fad", "score": "0.45167845", "text": "public void setScaleView(ScaleView scale) {\n scaleView = scale;\n }", "title": "" }, { "docid": "55c6ebe73b67e3d38c49c8a1fc92af58", "score": "0.45161656", "text": "public void setImage(ImagePlus image){\n if(this.image != null){ // reset all\n this.image.close();\n }\n this.image = image;\n // configure scale\n \n showImage(); \n \n // set scalebar\n this.scalebar = new Line(20, 20, 50, 20);\n this.scalebar.setStrokeColor(Color.CYAN);\n this.scalebar.setName(\"Approximate nuclei width\");\n this.scaleinfo = new TextRoi(20, 30, Math.round(this.image.getCalibration().pixelDepth*this.scalebar.getBounds().width * 100 /100.0) + \" \" + this.image.getCalibration().getUnit() + \" (\" + this.scalebar.getBounds().width + \" px)\", new Font(\"Verdana\", Font.PLAIN, 14));\n this.scaleinfo.setStrokeColor(Color.CYAN);\n this.scalebar.setPosition(0);\n this.scaleinfo.setPosition(0);\n this.resetOverlay();\n }", "title": "" }, { "docid": "185e38cc805c1d69ae1d3abd2d8e09e2", "score": "0.45138484", "text": "public ProgressIndicator(){\n setImage(\"ontwijken/progressCar\" + Ontwijken.random + \".png\");\n }", "title": "" }, { "docid": "21d4fd2cfc16dcd704c66ba84955f766", "score": "0.45129734", "text": "public void setVolumeIcon(){\n try {\n Image img = ImageIO.read(getClass().getResource(\"..\\\\images\\\\volume.png\"));\n Image newImage = img.getScaledInstance(60, 60, Image.SCALE_DEFAULT);\n volumeIcone.setIcon(new ImageIcon(newImage));\n }catch (IOException e1){\n System.out.println(\"VolumePanel error:\");\n System.err.println();\n }\n }", "title": "" }, { "docid": "68733e9af6dbf9be727b114c2f3b572d", "score": "0.45028782", "text": "public void setScales( double ... scales);", "title": "" }, { "docid": "ede036ab8a37e308baf9d20da3cc58a6", "score": "0.45004505", "text": "public void zoom(ZoomType type)\n {\n if (type == ZoomType.IN)\n {\n if (length * scaleStep * DEFAUTL_TENSION < 0)\n {\n return;\n }\n length = length * scaleStep;\n\n position = new Dimension(position.width * scaleStep, position.height * scaleStep);\n }\n else\n {\n if (length / scaleStep == 0)\n {\n return;\n }\n position = new Dimension(position.width / scaleStep, position.height / scaleStep);\n length = length / scaleStep;\n }\n updatePicture();\n }", "title": "" }, { "docid": "b7b58c703212db4c9509146bf23b7c8a", "score": "0.44987294", "text": "public void setImage(ImageHolder img){\n super.setImage(img.image);\n }", "title": "" }, { "docid": "91d7566df284817c2608e6214c7611a6", "score": "0.44948635", "text": "public void setFailureImage(int id) {\n if (failure) {\n this.setImageResource(id);\n }\n }", "title": "" }, { "docid": "891e5f54dedd2d6d50bb5c2690c308ef", "score": "0.44945258", "text": "public void setRetryLimit(String retryLimit) {\n this.retryLimit = retryLimit;\n }", "title": "" }, { "docid": "b16df317d6b9618ee557a176e64b85b8", "score": "0.44929102", "text": "public void setImageResource(int resId) {\n if (resId != 0) {\n mIconImageView.setImageResource(resId);\n }\n }", "title": "" } ]
1db53276bc84be56ebf996e4ac1b44ce
Creates new form UserSite
[ { "docid": "058363cb303e272fff45ff2e5904f9ed", "score": "0.0", "text": "public UserSite() {\n initComponents();\n ImageIcon setHomeIcon = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food1.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n ImageIcon setHomeIcon2 = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food2.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n ImageIcon setHomeIcon3 = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food3.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n ImageIcon setHomeIcon4 = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food4.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n ImageIcon setHomeIcon5 = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food5.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n ImageIcon setHomeIcon6 = new ImageIcon(new ImageIcon(getClass().getResource(\"../Images/food6.jpg\")).getImage().getScaledInstance(100, 120, Image.SCALE_SMOOTH));\n this.foodPic1.setText(\"\");\n this.foodPic1.setIcon(setHomeIcon);\n \n this.foodPic2.setText(\"\");\n this.foodPic2.setIcon(setHomeIcon2);\n \n this.foodPic3.setText(\"\");\n this.foodPic3.setIcon(setHomeIcon3);\n \n this.foodPic4.setText(\"\");\n this.foodPic4.setIcon(setHomeIcon4);\n \n this.foodPic5.setText(\"\");\n this.foodPic5.setIcon(setHomeIcon5);\n \n this.foodPic6.setText(\"\");\n this.foodPic6.setIcon(setHomeIcon6);\n }", "title": "" } ]
[ { "docid": "6e83033bf955657164dc21848ebf00da", "score": "0.6649603", "text": "public createNewSite(){\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "title": "" }, { "docid": "21612e5a20d9e89ab94f39060e3ca653", "score": "0.6224094", "text": "@RequestMapping(value = \"/user/create\", method = RequestMethod.GET)\n \tpublic String showCreateuserForm(Model model) {\n \t\tLOGGER.debug(\"Rendering create user form\");\n \n \t\tmodel.addAttribute(MODEL_ATTIRUTE_USER, new User());\n \n \t\treturn USER_ADD_FORM_VIEW;\n \t}", "title": "" }, { "docid": "4a451024684f5ae33986d4cee5dd79cb", "score": "0.5987896", "text": "@RequestMapping(value = {\"/new\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model){\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"registration\";\n }", "title": "" }, { "docid": "4b331b8f94293fa0c5808867ee071ffb", "score": "0.5960768", "text": "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tNewUserModel model=new NewUserModel();\n\t\t\t\tNewUserSlim newSlim=new NewUserSlim();\n\t\t\t\tnewSlim.setName(view.getNameTbx().getText());\n\t\t\t\tnewSlim.setSurName(view.getSurNameTbx().getText());\n\t\t\t\tnewSlim.setCity(view.getCityTbx().getText());\n\t\t\t\tnewSlim.setCountry(view.getCountryTbx().getText());\n\t\t\t\t\n\t\t model.saveDetails(newSlim);\n\t\t\t}", "title": "" }, { "docid": "146cafddcf7ac5e60d1373023dae9917", "score": "0.5909386", "text": "ISite createSite();", "title": "" }, { "docid": "5fc6c0cfc27daf5f571f0fe7269dc69c", "score": "0.59020096", "text": "private void addNewSiteToDatabase() {\n Map<String, Object> siteData = new HashMap<>();\n siteData.put(Constants.FSSite.adminIdField, currentUserDocId);\n siteData.put(Constants.FSSite.siteNameField, siteNameEditText.getText().toString());\n siteData.put(Constants.FSSite.participantsIdField, new ArrayList<>());\n siteData.put(Constants.FSSite.startDateField, startDate);\n siteData.put(Constants.FSSite.endDateField, endDate);\n\n siteData.put(Constants.FSSite.placeIdField, chosenPlace.getId());\n siteData.put(Constants.FSSite.placeName, chosenPlace.getName());\n siteData.put(Constants.FSSite.placeLatitude, chosenPlace.getLatLng().latitude);\n siteData.put(Constants.FSSite.placeLongitude, chosenPlace.getLatLng().longitude);\n siteData.put(Constants.FSSite.placeAddress, chosenPlace.getAddress());\n\n db.collection(Constants.FSSite.siteCollection)\n .add(siteData)\n .addOnCompleteListener(new OnCompleteListener<DocumentReference>() {\n @Override\n public void onComplete(@NonNull Task<DocumentReference> task) {\n if (task.isSuccessful()) {\n DocumentReference docRef = task.getResult();\n updateCurrentUserOwnSites(docRef.getId()); //Add this newly created site to current user's own site list.\n } else {\n\n }\n }\n });\n }", "title": "" }, { "docid": "19a18f906607e4072869b56d96545f92", "score": "0.58962613", "text": "private Site createSite(SiteCommand siteCommand) {\n\n Site site = new Site();\n SiteStatus siteStatus = null;\n\n if (siteCommand.getId() != null) {\n try {\n site = siteService.get(siteCommand.getId());\n } catch (NoSuchEntityException e) {\n e.printStackTrace();\n }\n }\n\n //Set site status as \"Created\"\n try {\n siteStatus = siteStatusService.findByCode(ResourceProperties.SITE_STATUS_CREATED_CODE);\n } catch (NoSuchEntityException e) {\n e.printStackTrace();\n }\n\n //\n User user = UserResource.getCurrentUser();\n site.setMerchant(user.getMerchant());\n site.setIdentity(siteCommand.getIdentity());\n site.setName(siteCommand.getName());\n site.setUrl(siteCommand.getUrl());\n site.setReturnUrl(siteCommand.getReturnUrl());\n site.setSiteStatus(siteStatus);\n site.setActive(true);\n site.setRemark(siteCommand.getRemark());\n\n return site;\n }", "title": "" }, { "docid": "7018c037ff39d63377f8e59d4216ba1e", "score": "0.5887033", "text": "@GetMapping(\"/create-account\")\n\tpublic String showCreateAccountForm( Model theModel ) {\n\t\tUser theUser = new User();\n\t\t\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"create-account\";\n\t}", "title": "" }, { "docid": "5494c4b8eecb4b19ea1b9909ee5a142c", "score": "0.5840061", "text": "@PostMapping(\"/Site1\")\r\n public Site1 createSite( @RequestBody Site1 site) {\r\n return SR.save(site);\r\n }", "title": "" }, { "docid": "d753d1642ce8527696c5a0ebffdb81a1", "score": "0.580042", "text": "@RequestMapping(value = \"sign-up\")\n public String signUpForm(Model model) {\n model.addAttribute(\"title\", \"Sign Up\");\n model.addAttribute(\"blank_error\", \"cannot be left blank\");\n model.addAttribute(\"user\", new User());\n\n return \"user/sign-up\";\n }", "title": "" }, { "docid": "46c955642027baefcc1d9b49fac046d6", "score": "0.579554", "text": "public static Result create() {\n Form<User> userForm = form(User.class);\n return ok(\n userCreateForm.render(userForm)\n );\n }", "title": "" }, { "docid": "54a96b642f9bc4d4a8cb5620dd364b96", "score": "0.578917", "text": "@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }", "title": "" }, { "docid": "a5b30c80db45dbe3bc55aa2ebafa3a99", "score": "0.5743317", "text": "@RequestMapping(value = IRequestMappings.USER_NEW_URL, method = RequestMethod.GET)\n\tpublic ModelAndView addNewEntity() {\n\t\tModelAndView model = new ModelAndView(IRequestMappings.USER_FORM_URL);\n\t\tUser user = new User();\n\t\t\n\t\t// Need to preset the date to avoid form does not valid error\n\t\t// Failed to convert property value of type 'java.lang.String' to required type \n\t\t// 'java.sql.Timestamp' for property 'createdDate'; nested exception is \n\t\t// java.lang.IllegalArgumentException: Could not parse date: Unparseable date: \"\"\n\t\t\n\t\tTimestamp dateCreated = Utility.getCurrentMySQLDate();\n\t\tuser.setCreatedDate(dateCreated);\n\t\tuser.setUpdatedDate(dateCreated);\n\t\t\n\t\tmodel.addObject(\"user\", user);\n\t\treturn model;\t\t\n\t}", "title": "" }, { "docid": "1b7d307d693bad8463247ccb81f044da", "score": "0.57118964", "text": "CreateNetworkSiteResult createNetworkSite(CreateNetworkSiteRequest createNetworkSiteRequest);", "title": "" }, { "docid": "7a99ef04aacc222f4cd9ef1ce2091ced", "score": "0.5708722", "text": "@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\n\tpublic String newUser(ModelMap model, HttpSession session) {\n\t\tUser user = new User();\n\t\tuser.setCreatedAt(LocalDate.now());\n\t\tuser.setAdmin(\"User\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}", "title": "" }, { "docid": "fb7caee1d19215553f20c2da89ee93a4", "score": "0.570315", "text": "private void saveAndRegisterFormData() {\n User user = new User();\n user.setFirstName(mBinding.firstName.getText().toString());\n user.setLastName(mBinding.lastName.getText().toString());\n user.setEmail(mBinding.email.getText().toString());\n user.setPassword(mBinding.ipassword.getText().toString());\n user.setUserRole(mBinding.userRole.getSelectedItem().toString());\n user.setLastUpdate(String.valueOf(System.currentTimeMillis()));\n user.setDateCreated(String.valueOf(System.currentTimeMillis()));\n childTrackViewModel.creatNewUser(user, getActivity());\n }", "title": "" }, { "docid": "4dcc7778dd3ec16c65cde6345df5447b", "score": "0.56848395", "text": "public Post createPost(User newUser){\r\n Post newPost = new Post();\r\n newPost.setUser(newUser);\r\n System.out.println(\"How would you like to title your post?\");\r\n newPost.setUserPostTitle(keyboard.nextLine());\r\n System.out.println(\"What is your post?\");\r\n newPost.setUserPost(keyboard.nextLine());\r\n return newPost;\r\n }", "title": "" }, { "docid": "591c2688b66c2a39604e578efc612ab5", "score": "0.56366044", "text": "void newBlogUser(BlogUser user);", "title": "" }, { "docid": "a05637f1bf71decefd6d5ad844031781", "score": "0.5626178", "text": "@RequestMapping(\"/registration\")\r\n\tpublic String newUser(Model model) {\n\t\treturn \"views-security-registration\";\r\n\t}", "title": "" }, { "docid": "ea0161bc03b50f3b88b783d47495d283", "score": "0.5606021", "text": "WpUser createUser(WpUser.Builder wpUser);", "title": "" }, { "docid": "65f5a27a1b4b16cb0e61696e14323071", "score": "0.55976397", "text": "@POST\n\t@Path(\"/\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Site> createSite(Site site) {\n\t\tentityManager = myFactory.createEntityManager();\n\t\tentityManager.getTransaction().begin();;\n\t\tentityManager.persist(site);\n\t\tQuery selectAll = entityManager.createQuery(\"SELECT s FROM Site s\");\n\t\tList<Site> sites = selectAll.getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn sites;\n\t}", "title": "" }, { "docid": "5cac37e083f10708577088f2a26bd640", "score": "0.55773956", "text": "@Test(priority = 3)\n\tpublic void navigateToNewUser() throws Exception {\n\t\tcreateNewUserPO.clickUsers();\n\t\tString newUserPageTitle = driver.getTitle();\n\t\tAssert.assertEquals(AwsConstants.NEW_USERS_ADMIN_TITLE, newUserPageTitle);\n\t\tcreateNewUserPO = new CreateNewUserPO(driver);\n\t\tcreateNewUserPO.getUserName().sendKeys(username);\n\t\tcreateNewUserPO.getPassword().sendKeys(password);\n\t\tcreateNewUserPO.getEmail().sendKeys(email);\n\t\tcreateNewUserPO.clickCreateUserButton().click();\n\t}", "title": "" }, { "docid": "130258ff5aed35a73994e49cd914d3b1", "score": "0.5566832", "text": "void new_user(String name, String username, String email, String password);", "title": "" }, { "docid": "220fda36c128d9dd17eaff230aa44946", "score": "0.55452937", "text": "void registerAccount(UserForm userForm) throws UserAlreadyExistsException;", "title": "" }, { "docid": "dfb12cba1274e642ec46fe6f255bdbff", "score": "0.5544592", "text": "public void createUser() {\n\n String key = mFirebaseDatabase.push().getKey();\n mFirebaseDatabase.child(\"users\").child(mAuth.getCurrentUser().getUid()).child(key).child(\"name\").setValue(rNameField.getText().toString());\n mFirebaseDatabase.child(\"users\").child(mAuth.getCurrentUser().getUid()).child(key).child(\"email\").setValue(rEmailField.getText().toString());\n }", "title": "" }, { "docid": "7ee0f77d0f66050fa18c5391d999bdd4", "score": "0.5541729", "text": "@GetMapping(\"/user/create\")\n\tpublic String userCreate(Model model) {\n\t\tmodel.addAttribute(new User());\n\t\treturn \"user_create\";\n\t}", "title": "" }, { "docid": "954c22d70c249353c807cbe96a5bab01", "score": "0.5529602", "text": "private User createNewUser() {\r\n User newUser = user;\r\n newUser.setUsername(fldUsername.getText());\r\n newUser.setIdentification(fldIdentification.getText());\r\n newUser.setEmail(fldEmail.getText());\r\n\r\n return newUser;\r\n }", "title": "" }, { "docid": "59484b6532f6e3e12dcd7b12e650c41c", "score": "0.55193657", "text": "@RequestMapping(value = \"/user/create\", method = RequestMethod.POST)\n \tpublic String submitCreateuserForm(\n \t\t\t@Valid @ModelAttribute(MODEL_ATTIRUTE_USER) User created,\n \t\t\tBindingResult bindingResult, RedirectAttributes attributes) {\n \t\tLOGGER.debug(\"Create user form was submitted with information: \"\n \t\t\t\t+ created);\n \n \t\tif (bindingResult.hasErrors()) {\n \t\t\treturn USER_ADD_FORM_VIEW;\n \t\t}\n \n \t\tUser user = userService.create(created);\n \n \t\taddFeedbackMessage(attributes, FEEDBACK_MESSAGE_KEY_USER_CREATED,\n \t\t\t\tuser.getFirstName() + \" \" + user.getLastName());\n \n \t\treturn createRedirectViewPath(REQUEST_MAPPING_LIST);\n \t}", "title": "" }, { "docid": "698bedadbb6fc64c084edd41fc4aec3a", "score": "0.5516453", "text": "public void create(User User) {\n\t\t\r\n\t}", "title": "" }, { "docid": "607398b86435be6a117afc64e3f931a7", "score": "0.5514116", "text": "private void registerUser(){\n \t// save user & user information\n \tif(this.areFieldsValidate()){\n \t\tString salt = UserManagementUtils.getRandomSalt();\n \tUser registeredUser = new User( \n \t\t\tthis.firstNameField.getValue(), \n \t\t\tthis.lastNameField.getValue(), \n \t\t\tthis.emailField.getValue(), \n \t\t\tUserManagementUtils.getHashPassword(this.passwordField.getValue(),salt), \n \t\t\tsalt);\n\t\t\tRole roleSelected = RoleDao.getById(\n\t\t\t\t\t ((UserProfile) this.roleField.getValue()).getId());\n \tregisteredUser.addRole(roleSelected);\n \t\n \tUserDao.persist(registeredUser);\n \tUserInformation informationUserRegistered = new UserInformation(registeredUser);\n \tUserInformationDao.persist(informationUserRegistered);\n \t\n \t// then login\n \tUserManagementUtils.login(this.emailField.getValue(), this.passwordField.getValue());\n \tif(this.originButton != null){\n \tthis.originButton.click();\n \t}\n \telse if(this.originMenuItem != null){\n \t\tthis.originMenuItem.getCommand().menuSelected(this.originMenuItem);\n \t}\n \tthis.close();\n \t}\n \telse{\n \t\tthis.manageValidateButtonError();\n \t}\n }", "title": "" }, { "docid": "e0eca9da00626b523889c33f4b423b38", "score": "0.55126464", "text": "void makeUserPage(User user) {\n new UserPage(primaryStage, user);\n }", "title": "" }, { "docid": "1a07ad88223ba64faddb2d8d7955be84", "score": "0.5510855", "text": "public void createUser(View view) {\n // get the user's name\n EditText field = findViewById(R.id.userNameField);\n String username = field.getText().toString();\n\n // create the user's questlog and put it in an intent\n this.questLog = new QuestLog(username);\n Intent rIntent = new Intent();\n rIntent.putExtra(\"QuestLog\", this.questLog);\n\n // send back the new QuestLog\n setResult(RESULT_OK, rIntent);\n finish();\n }", "title": "" }, { "docid": "48ea30173860fcb1d177d465bc845cf8", "score": "0.5497922", "text": "public void saveNewUser(User user);", "title": "" }, { "docid": "947a2796d1c600e75c2d7f0258c3a485", "score": "0.5480784", "text": "public void createUserActivity(ActionEvent actionEvent) \n { \n \n _launchActivity( \n \"New User\", \n \"/WEB-INF/flows/create-user-taskflow.xml#create-user-taskflow\", \n true); \n }", "title": "" }, { "docid": "3e8d651766806f9256c6dc89cdabc021", "score": "0.5465959", "text": "private void initAddNewItemPage(IUserAccount user) throws Exception {\n\n String addNewItemButtonText = languageRB.getString(\"addNewItemButtonText\");\n\n // setting the frame of the page for adding item\n addNewItemPageFrame = new JFrame();\n addNewItemPageFrame.setTitle(addNewItemButtonText);\n addNewItemPageFrame.setSize(600, 5*50);\n addNewItemPageFrame.setLocationRelativeTo(null);\n addNewItemPageFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n addNewItemPageFrame.setResizable(true);\n\n // adding JPanel\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n\n JPanel titlePanel = new JPanel();\n titlePanel.setLayout(new GridLayout(1, 1));\n JPanel inputPanel = new JPanel();\n inputPanel.setLayout(new GridLayout(2, 2));\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayout(2, 1));\n\n JLabel headerLabel5 = new JLabel(addNewItemButtonText, JLabel.CENTER);\n titlePanel.add(headerLabel5);\n\n addNewItemPageOption(user, inputPanel, buttonPanel);\n mainPanel.add(titlePanel);\n mainPanel.add(inputPanel);\n mainPanel.add(buttonPanel);\n addNewItemPageFrame.add(mainPanel);\n\n }", "title": "" }, { "docid": "6656fdcb852e90ecc55bd91971b526d7", "score": "0.5464817", "text": "public void createUser(LoginModel user)\n\t{\n\t\ttry\n\t\t{\n\t\t\tPreparedStatement ps = conn\n\t\t\t\t\t.prepareStatement(\"insert into TheUser(username,psword,email) values (?,?,?)\");//add user to database\n\t\t\tps.setString(1, user.getUsername());\n\t\t\tps.setString(2, user.getPsword());\n\t\t\tps.setString(3, user.getEmail());\n\t\t\tps.executeUpdate();\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "556ce474886ec0577b86824997e2c8de", "score": "0.5424215", "text": "@FXML\r\n private void saveUser()\r\n {\r\n if(!validateFields(nameInput, addressInput, telephoneInput, dobInput))\r\n {\r\n showError(\"Please fill in all fields.\");\r\n return;\r\n }\r\n UserBuilder builder = BuilderFactory.createUserBuilder().id(editingUser.getId());\r\n builder.name(nameInput.getText());\r\n builder.address(addressInput.getText());\r\n builder.telephone(telephoneInput.getText());\r\n builder.dob(dobInput.getValue());\r\n builder.membership(MembershipGroup.values()[memberInput.getSelectionModel().getSelectedIndex()]);\r\n Database.getSingleton().add(builder.build());\r\n showPage(\"users.fxml\");\r\n }", "title": "" }, { "docid": "7459c39f88b190484314c2cd8fece47a", "score": "0.5410363", "text": "@RequestMapping(\"/new\")\n\tpublic String newUser(@ModelAttribute(\"user\") User user,HttpSession session){\n\t\tus.logout(session);\n\t\treturn \"newUser\";\n\t}", "title": "" }, { "docid": "d335e9e4d3ba62cfdbca30a3bd7a99aa", "score": "0.54073805", "text": "@RequestMapping(value = \"/form\", method = RequestMethod.POST)\n public String submitForm(@RequestParam String name, @RequestParam String address, @RequestParam String username) {\n signupRepository.save(new Signup(name, address, username));\n return \"redirect:/signups\";\n }", "title": "" }, { "docid": "3d3d0f9217f7d3774bfb8ea11d4e9e12", "score": "0.5407321", "text": "void create(User newUser);", "title": "" }, { "docid": "db617e6ef2784be9d251b99d51e87f6c", "score": "0.5403068", "text": "private void create(){\n int id = 0;\n String role = cmbRole.getSelectedItem().toString();\n String name = txtName.getText();\n String username = txtUsername.getText();\n String password = String.valueOf(txtPassword.getPassword());\n String email = txtEmail.getText();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dob;\n try{\n dob = dateFormat.format(dateDob.getDate());\n } catch(Exception e){\n dob = \"\";\n }\n String phone = txtPhone.getText();\n String address = txtAddress.getText();\n \n if(role.equals(\"\") || name.equals(\"\") || username.equals(\"\") || password.equals(\"\") || email.equals(\"\") || dob.equals(\"\") || phone.equals(\"\") || address.equals(\"\")){\n JOptionPane.showMessageDialog(null, \"Please fill the empty field(s)\", \"Insert\", JOptionPane.INFORMATION_MESSAGE);\n }\n else{\n User user = new User(id, role, name, username, password, email, dob, phone, address);\n if(UserRepository.create(user)){\n LogRepository.create(new Log(0, authUser.getId(), \"User\", \"INSERT\"));\n \n JOptionPane.showMessageDialog(null, \"Insert successful\", \"Insert\", JOptionPane.INFORMATION_MESSAGE);\n txtId.setText(\"\");\n txtName.setText(\"\");\n txtUsername.setText(\"\");\n txtPassword.setText(\"\");\n txtEmail.setText(\"\");\n txtPhone.setText(\"\");\n txtAddress.setText(\"\");\n \n getUsers();\n }\n else{\n JOptionPane.showMessageDialog(null, \"Oops, something's wrong\", \"Insert\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "title": "" }, { "docid": "5c8f177eb0414ae5c79bb3da4312309c", "score": "0.5392486", "text": "public void registerNewUser(View v) {\n Intent intent = new Intent(this, com.sniryefet.Dogisitter.RegisterActivity.class);\n finish();\n startActivity(intent);\n }", "title": "" }, { "docid": "fc9b5fe8dab9492eb9d7d4e499a2bc8f", "score": "0.53897154", "text": "public void goAsCreateAccount() {\n btnContinueCreateAccount().click();\n }", "title": "" }, { "docid": "73b99878a506898a1aaf767c1bec690f", "score": "0.5387866", "text": "public boolean createDefault(User user);", "title": "" }, { "docid": "2c3e09c48cfc39247e35a3996ee33f50", "score": "0.5387651", "text": "@RequestMapping(value=\"/create\", method=RequestMethod.POST)\n\tpublic String processFormData(User user) {\n\t\treturn \"result\";\n\t}", "title": "" }, { "docid": "7a69f071241c215a5a98a3a97d6affa8", "score": "0.5371351", "text": "public void getRegisterFormDetails(User user)\n\t{\n\t\tconnectionToDB();\n\t\t\t\n\t\ttry\n\t\t{\t\n\t\t\tString query = \"INSERT INTO User(Nickname, Password, Email, Role) VALUES(?, ?, ?, ?)\";\n\t\t\tPreparedStatement ps = connection.prepareStatement(query);\n\t\t\t\t\n\t\t\tps.setString(1, user.nickname);\n\t\t\tps.setString(2, user.password);\n\t\t\tps.setString(3, user.email);\n\t\t\tps.setString(4, \"User\");\n\t\t\t\t\n\t\t\tps.executeUpdate();\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(connection != null)\n\t\t\t\t{\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t }\n\t\t\tcatch(SQLException e) \n\t\t\t{\n\t\t\t\te.printStackTrace(); \n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "c0cda9ecdbcc9eb9668008bd40b2b39d", "score": "0.53636426", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tnew CreateUser().execute();\t\n\t\t\t}", "title": "" }, { "docid": "b71ebe458f898c6317951f62c84e6bcd", "score": "0.53621334", "text": "public boolean creatNewUser(Users user) {\n\t\treturn um.creatNewUser(user);\r\n\t}", "title": "" }, { "docid": "b662a2bcec4937923d637703140b1a95", "score": "0.5360076", "text": "@RequestMapping(value = \"/createuserm\", method = RequestMethod.GET)\n public ModelAndView createUserModelDisplay() {\n log.info(\"Request for user create view screen\");\n return new ModelAndView(\"createuser\", \"form\", new UserCreateForm());\n }", "title": "" }, { "docid": "a3be799d3fb35bc1e948f2d536566a31", "score": "0.5330732", "text": "private void setCreateSiteBtnHandler() {\n createSiteBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Validate before submitting\n if (!validateSiteDetails()) {\n return;\n }\n submitSiteDetails();\n }\n });\n }", "title": "" }, { "docid": "9f28cdb6ff36b9a208ea11fb1ec25280", "score": "0.5324659", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setContentPane(new CreateNewUser(frame, connector).createNewUserPanel);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "12f1754c31fe9f75b131c9b27cfb9f15", "score": "0.53030026", "text": "@GetMapping(\"/users/add\")\n public String addNewUser(Model model) {\n model.addAttribute(\"user\", new User());\n return \"admin-add-user\";\n }", "title": "" }, { "docid": "f353a7b4f1190418181c2d9c688bbd58", "score": "0.53024197", "text": "@GetMapping(\"/posts/create\")\n public String showCreatePostForm(Model model){\n User user = userDao.getOne(2L);\n System.out.println(user.getEmail());\n System.out.println(\"posts/create method\");\n model.addAttribute(\"post\", new Post());\n return \"posts/create\";\n }", "title": "" }, { "docid": "447180936040446209977033066e3fc1", "score": "0.5301439", "text": "@RequestMapping(value = \"/userReg\", method = RequestMethod.POST)\r\n\tpublic String registerUser(@ModelAttribute(\"formModel\") UserModel userModel, Model model) {\r\n\t\t// Use service\r\n\t\tint count = service.saveUser(userModel);\r\n\t\tif (count != 0) {\r\n\t\t\tmodel.addAttribute(ArConstants.SUCCESS, ArConstants.SUCCESS_MSG);\r\n\t\t} else {\r\n\t\t\tmodel.addAttribute(ArConstants.ERROR, ArConstants.ERROR_MSG);\r\n\t\t}\r\n\t\t//add user roles to userRole of form\r\n\t\t\t\tgetUserRole(model);\r\n\t\t// LVN\r\n\t\treturn \"registration\";\r\n\t}", "title": "" }, { "docid": "3353850f7bebd0bd7b30da882507c96f", "score": "0.5298464", "text": "@RequestMapping(\"/textForm\")\n public String showNameForm(Model model){\n model.addAttribute(\"user\",new User());\n return \"text-form\";\n }", "title": "" }, { "docid": "a9f9e981c7d5280386f2dfa37009b9ef", "score": "0.5292817", "text": "public void submitForm(String emailId, String password, boolean isNewUser) {\r\n\tif (validate()) {\r\n\t if (isNetworkAvailable()) {\r\n\r\n\t\tregisteruser(emailId, password, isNewUser);\r\n\r\n\t } else {\r\n\t\tToast.makeText(RegisterActivity.this, Utils.getCustomeFontStyle(RegisterActivity.this, \"Network Not Available...\"), 1000).show();\r\n\t }\r\n\r\n\t}\r\n }", "title": "" }, { "docid": "b88b136a5aa105a55a7f6ea75bd97a13", "score": "0.5290232", "text": "@RequestMapping(\"/showAddNewUserForm\")\n\tpublic ModelAndView showAddNewUserForm(HttpSession session) {\n\t\tModelAndView mav = new ModelAndView(\"add-company-user\");\n\t\tUserAddForm companyUserFrom = new UserAddForm();\n\t\tcompanyUserFrom.setCompanyId(getCompany(session).getId());\n\t\tmav.addObject(\"roles\", companyUserService.getRoles());\n\t\tmav.addObject(\"companyUserAddForm\", companyUserFrom);\n\t\treturn mav;\n\t}", "title": "" }, { "docid": "ff159fb28eb7f270c0cac8332c49e8c6", "score": "0.52881527", "text": "public static Result save() {\n Form<User> userForm = form(User.class).bindFromRequest();\n if(userForm.hasErrors()) {\n return badRequest(userCreateForm.render(userForm));\n }\n userForm.get().credential.password = DigestUtils.md5Hex(userForm.get().credential.password);\n userForm.get().save();\n flash(\"success\", \"User \" + userForm.get().name + \" has been created\");\n return GO_HOME;\n }", "title": "" }, { "docid": "8ed0446007b5550674242faa3b5c10dc", "score": "0.52867746", "text": "public int createUser() throws XWikiException\n {\n return createUser(false, \"edit\");\n }", "title": "" }, { "docid": "3e38dbf96abf05b30895e8aa7ecda59b", "score": "0.52816314", "text": "private void mnuAddUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuAddUserActionPerformed\n\n // It Will Open AddUser Form\n AddUser addUser = new AddUser();\n addUser.setVisible(true);\n addUser.pack();\n addUser.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "cd149c5007d7db6753ab343dfe39a98b", "score": "0.52747154", "text": "@RequestMapping(\"/new\")\n\tpublic String showNewProductForm(Model model) {\n\t\tProduto produto = new Produto();\n\t\tmodel.addAttribute(\"produto\", produto);\n\t\treturn \"novo_produto\";\n\t}", "title": "" }, { "docid": "46a80a6b6f9276a346d4e917e9f55b6d", "score": "0.5267455", "text": "@RequestMapping(value = \"/createSuperhero\", method = RequestMethod.POST)\r\n public String createSuperhero(HttpServletRequest request) {\n Superhero superhero = new Superhero();\r\n\r\n superhero.setFirstName(request.getParameter(\"firstName\"));\r\n superhero.setLastName(request.getParameter(\"lastName\"));\r\n superhero.setSuperPower(request.getParameter(\"superpower\"));\r\n superhero.setDescription(request.getParameter(\"Description\"));\r\n dao.addSuperhero(superhero);\r\n\r\n // we don't want to forward to a View component - we want to\r\n // redirect to the endpoint that displays the Superhero Page\r\n // so it can display the new Superhero in the table.\r\n return \"redirect:displaySuperhero\";\r\n }", "title": "" }, { "docid": "53171c26ce2e2dbe5753243325445e1a", "score": "0.5263336", "text": "private void displayRegisterForm()\n {\n ECommerce.currentUser = null;\n register = new RegisterPanel();\n }", "title": "" }, { "docid": "09e5e778fb05b7e2478e9571db4b67fa", "score": "0.5251855", "text": "public Site() { }", "title": "" }, { "docid": "7d452d2391bcb9144ff8466cb66a889b", "score": "0.52452564", "text": "@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public String create(Model model) {\n\n List<User> medicalVisitors = userRepository.getMedicalVisitors();\n model.addAttribute(\"medicalVisitors\", medicalVisitors);\n\n return \"groups/create\";\n }", "title": "" }, { "docid": "6bd06aa9de2d11c3d9967574cf35dde3", "score": "0.52377284", "text": "public static registUser newInstance() {\n registUser fragment = new registUser();\n return fragment;\n }", "title": "" }, { "docid": "dc5ab08bfc8c2cdf4b65e8213c7f68dc", "score": "0.5235666", "text": "@Override\n\t\t\t\tpublic void actionPerformed( ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tMainController.GoCreatePanel(id, usr_name, pass, site, link, false);\n\t\t\t\t}", "title": "" }, { "docid": "3daea2602cedd6445bc4ea74885dbbee", "score": "0.5234641", "text": "public static void create(){\n \n reg_user_class reg=null;\n \n reg =DAO_reg.create();\n if(reg==null){\n reg_create.jt_alert.setText(\"ERROR, Any problem to save de user\");\n ok=false;\n }else{\n if(search_reg()!=-1){\n JOptionPane.showMessageDialog(null, \"This Id card already exist\");\n ok=false;\n }else{\n singleton_reg.reg.add(reg);\n R_auto_json.auto_savejson_reg();\n JOptionPane.showMessageDialog(null, \"The user was created succesfuly\"); \n ok=true;\n }\n \n //admin_form.jl_alert.setText(\"The user was created succesfuly\");\n \n }\n }", "title": "" }, { "docid": "4c44089aa9420ad87239bf131fbabff7", "score": "0.5232547", "text": "void saveIfNew(final User user);", "title": "" }, { "docid": "d661edf717df4d0f23e15d8aa2dde443", "score": "0.5229777", "text": "@RequestMapping(\"/newWorkerSystemUsers\")\r\n\tpublic ModelAndView newWorkerSystemUsers(@RequestParam Integer worker_id) {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"worker_id\", worker_id);\r\n\t\tmav.addObject(\"systemuser\", new SystemUser());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setViewName(\"worker/systemusers/editSystemUsers.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "title": "" }, { "docid": "a8a4c537e4226c620c474243e8321e90", "score": "0.52201", "text": "@Test(expected=DataIntegrityViolationException.class)\n\tpublic void checCreateAndSaveUserNegative() {\n\t\tUser result;\n\t\tGroup group = groupService.findOne(8);\n\t\tUserForm userForm = new UserForm();\n\t\tuserForm.setUsername(\"user1\");\n\t\tuserForm.setPassword(\"user1\");\n\t\tuserForm.setConfirmPassword(\"user1\");\n\t\tuserForm.setAcceptTerms(true);\n\t\tuserForm.setGroup(group);\n\t\tuserForm.setName(\"Name\");\n\t\tuserForm.setSurname(\"Surname\");\n\t\tuserForm.setEmailAddress(\"Email@email.com\");\n\t\tuserForm.setId(99);\n\t\tuserForm.setVersion(1);\n\t\tresult = userService.reconstruct(userForm);\n\t\tuserService.save(result);\n\t}", "title": "" }, { "docid": "ea426c6c227c4c3b0910cc018224749f", "score": "0.52162814", "text": "public new_User() {\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "045e9009f1f11aba22beb7de5576452b", "score": "0.5213539", "text": "@RequestMapping(value = {\"/new\"}, method = RequestMethod.POST)\n public String saveUser(@Valid User user, BindingResult result, ModelMap model){\n if(result.hasErrors()){\n return \"registration\";\n }\n service.saveUser(user);\n\n model.addAttribute(\"success\", \"User \" + user.getUsername() + \" registred successfully\");\n return \"success\";\n }", "title": "" }, { "docid": "b0701ea2421bc8fe98dd11cfff0ff4db", "score": "0.52122647", "text": "@Token(save = true, validate = false)\n @Execute\n public HtmlResponse createpage(final FileAuthenticationEditForm form) {\n form.initialize();\n form.crudMode = CrudMode.CREATE;\n return asHtml(path_AdminFileauthentication_EditJsp).renderWith(data -> {\n registerProtocolSchemeItems(data);\n registerFileConfigItems(data);\n });\n }", "title": "" }, { "docid": "02fc6044b333e767fec641871f14470a", "score": "0.52091014", "text": "private void createCuenta() {\n //validadcion de que todos los campos cumplan con las restricciones establecidas\n if (emptyFields() && lenghtRequireed()) {\n\n user = editTextUserName.getText().toString().toLowerCase();\n\n password = editTextUserPassword.getText().toString();\n\n crud = new CrudUser(getApplicationContext(), user, password);\n\n if (crud.getNickName().isEmpty()) {\n if (crud.saveUser()!= 666) showMessage(\"Success.\");\n else{\n showMessage(\"Error al guardar el usuario.\");\n return;\n }\n } else {\n editTextUserName.setError(\"User's already exist.\");\n return;\n }\n }\n }", "title": "" }, { "docid": "d8355980b7b9ecbfba317fc6f3e9ea8a", "score": "0.52068394", "text": "@RequestMapping(value=\"/newprofile\",method=RequestMethod.GET)\n\tpublic String newRegistration(ModelMap model) {\n\t\tCreateProfile createprofile = new CreateProfile();\n\t\tmodel.addAttribute(\"profile\",createprofile);\n\t\treturn \"newprofile\";\n\t}", "title": "" }, { "docid": "2d505f6e92e851668a3cdb6f3bbbed83", "score": "0.51951605", "text": "@RequestMapping(\"/createpage\")\n @AdminPermission\n public ModelAndView createPage(){\n List<SellerModel> sellerModelList = sellerService.selectAll();\n ModelAndView modelAndView = new ModelAndView(\"/admin/seller/create.html\");\n\n modelAndView.addObject(\"data\", sellerModelList);\n modelAndView.addObject(\"CONTROLLER_NAME\", \"seller\");\n modelAndView.addObject(\"ACTION_NAME\", \"create\");\n return modelAndView;\n }", "title": "" }, { "docid": "ff17a3c7600f319b70fb920182a4b575", "score": "0.5186925", "text": "@RequestMapping(\"collaborators/add\")\n public String formNewCollaborator(Model model) {\n if(!model.containsAttribute(\"collaborator\")) {\n model.addAttribute(\"collaborator\",new Collaborator());\n }\n model.addAttribute(\"roles\",roleService.findAll());\n model.addAttribute(\"action\",\"/collaborators\");\n model.addAttribute(\"heading\",\"New Collaborator\");\n model.addAttribute(\"submit\",\"Add\");\n\n return \"collaborator/form\";\n }", "title": "" }, { "docid": "cccc805fbe6a9341edaf5fa18d129738", "score": "0.51843023", "text": "@RequestMapping(value = \"/new\", method = RequestMethod.GET)\n\tpublic String getCreatePersonForm(Model model) {\n\t\tmodel.addAttribute(new Person());\n\t\treturn doGetCreatePersonForm(model);\n\t}", "title": "" }, { "docid": "54b2e47e123f11b9c681cebb4347077e", "score": "0.51807874", "text": "public com.vanban.model.user create(long userId);", "title": "" }, { "docid": "a44e0edda4700d3ac517bbf1c4e49335", "score": "0.5179794", "text": "@RequestMapping(value = \"/userReg\", method = RequestMethod.GET)\r\n\tpublic String userRegister(Model model) {\r\n\t\t//create and return UserMoDel object\r\n\t\tUserModel userModel = new UserModel();\r\n\t\tmodel.addAttribute(\"formModel\", userModel);\r\n\t\t//add user roles to userRole of form\r\n\t\tgetUserRole(model);\r\n\t\t\r\n\t\treturn \"registration\";\r\n\t}", "title": "" }, { "docid": "546e7472db0de9441d421d4f16ad0c58", "score": "0.51746005", "text": "void makeUserAnalyticsPage(User user) {\n new UserAnalyticsPage(secondaryStage, user);\n }", "title": "" }, { "docid": "9860507e103d035b64da8dac14b5edb7", "score": "0.516941", "text": "public ManageProfilesForm() {\n\t\t\n\t}", "title": "" }, { "docid": "2a900624a5633e886a8e26bde3f6996e", "score": "0.51692235", "text": "public void setSite(String site) {\r\n this.site = site;\r\n }", "title": "" }, { "docid": "1d11ebcfca6dfbb7485b667bcc7f623b", "score": "0.51662135", "text": "public new_user_login() {\n initComponents();\n }", "title": "" }, { "docid": "ae9aef36c84f9afa6588ac1e07ab969d", "score": "0.5162662", "text": "private void signUp(){\n User user = new User();\n user.setUsername(((EditText)findViewById(R.id.userIdSignUp)).getText().toString());\n user.setName(((EditText) findViewById(R.id.userNameSignUp)).getText().toString());\n user.setPassword(((EditText) findViewById(R.id.userPasswordSignUp)).getText().toString());\n user.setContact(((EditText) findViewById(R.id.userContactSignUp)).getText().toString());\n user.setDOB(((EditText) findViewById(R.id.userDOBSignUp)).getText().toString());\n\n dataStoreManager.createUser(user);\n Toast.makeText(SignUpActivity.this, \"User successfully registered\", Toast.LENGTH_LONG).show();\n this.finish();\n }", "title": "" }, { "docid": "8569f7d5b6fadffc7f4b1fd2e5029bd8", "score": "0.5155199", "text": "@Token(save = true, validate = false)\n @Execute\n public HtmlResponse createpage(final RoleTypeEditForm form) {\n form.crudMode = CrudMode.CREATE;\n return asHtml(path_AdminRoletype_EditJsp);\n }", "title": "" }, { "docid": "1ff53045769999d3b309cd96d770a159", "score": "0.5151098", "text": "@GetMapping(\"/signup\")\n\tpublic String signup(Model model) {\n\t\tmodel.addAttribute(new User());\n\t\treturn \"signup\";\n\t}", "title": "" }, { "docid": "d930d475a1c6b91ea5fdcf7a86bf7cf5", "score": "0.5148849", "text": "int insert(UserWebsite record);", "title": "" }, { "docid": "536e28c9ca251e6d556657a9921e0967", "score": "0.51465476", "text": "public void createAccount() {\n\t\telementsendText(\"FacebookHome.firstName\", \"akjsbfkj\");\n\t\telementsendText(\"FacebookHome.lastName\", \"sadgbshjdbv\");\n\t\telementsendText(\"FacebookHome.email\", \"ajbgkjbsd@gmail.com\");\n\t\telementsendText(\"FacebookHome.password\", \"sdfv@2019\");\n\t\tselectDropDownbyIndex(\"FacebookHome.birthMM\", 4);\n\t\tselectDropDownbyValue(\"FacebookHome.birthDD\", \"17\");\n\t\tselectDropDownbyVisibleText(\"FacebookHome.birthYY\", \"1989\");\n\t\t//elementClick(\"FacebookHome.gender\");\n\t\t\n\t}", "title": "" }, { "docid": "18acac87302319e970c2b99d28970f07", "score": "0.51356953", "text": "public User createNew(User obj) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "78bdfc0085691552eb6c5413bd22f2ed", "score": "0.51323086", "text": "@Override\n\tpublic int create(Users user) {\n\t\treturn usuariodao.create(user);\n\t}", "title": "" }, { "docid": "c0c9518c5024b426f59e82dea149f424", "score": "0.51317024", "text": "public Result showCreateUserProfile() {\n\t\t\n\t\treturn ok(createUserProfile.render());\n\t}", "title": "" }, { "docid": "298c40e68eea59ce8193ba3620ebf762", "score": "0.51300645", "text": "public String createFromAdmin() {\n try {\n LogInGateway login = new LogInGateway(username, password, admin);\n if (!username.isEmpty()) {\n login.createNewUser(LoginView.con);\n allUsersList.add(username);\n username = \"\";\n }\n RequestContext.getCurrentInstance().addCallbackParam(\"saved\", true); // close dialog\n return \"\";\n } catch (SQLException e) {\n // Error\n FacesContext context = FacesContext.getCurrentInstance();\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"ERROR!!!\", \"\"));\n return \"\";\n }\n }", "title": "" }, { "docid": "9c470a2831d0c2563c2a82d592818cea", "score": "0.5125212", "text": "@PostMapping(\"/user/create\")\n\tpublic String userCreateSave(@ModelAttribute @Valid User user,\n\t\t\tBindingResult result, Model model) {\n\n\t\tif (result.hasErrors()) {\n\t\t\tmodel.addAttribute(\"user\", user);\n\t\t\treturn \"user_create\";\n\t\t} else {\n\t\t\tuserRepo.save(user);\n\t\t\tUserRole ur = new UserRole(user.getId());\n\t\t\tuserRoleRepo.save(ur);\n\t\t\treturn \"redirect:/users\";\n\t\t}\n\n\t}", "title": "" }, { "docid": "bb76b3760521567310b5d634fc662d2c", "score": "0.51170117", "text": "public void createUser(User user) {\n\n user.setCredits(5);\n LoginLog loginLog = new LoginLog();\n loginLog.setUserId(user.getUserId());\n loginLog.setIp(user.getLastIp());\n loginLog.setLoginDate(user.getLastVisit());\n System.out.println(\"xxxxxxxxxxxxxxxxxxx\" + user.getUserId() + \"=============\" + user.getLastIp()\n + user.getLastVisit());\n\n userDao.insertRegisterUserInfo(user);\n loginLogDao.insertLoginLog(loginLog);\n }", "title": "" }, { "docid": "3581145bc669beede65364423b8c34e6", "score": "0.5116405", "text": "OrderId createNewOrder(UserForm userForm);", "title": "" }, { "docid": "9c225d2f23153996b1e21045eb6acb85", "score": "0.5114878", "text": "public ADD_USER() {\n initComponents();\n }", "title": "" }, { "docid": "3f8ae97dce9848834b9b70f47a83464d", "score": "0.51147", "text": "@Override\n public void createUser(User user) {\n sesFact.getCurrentSession().save(user);\n socialLog.info(\"Created a new user in the db\");\n }", "title": "" }, { "docid": "6dca718f86ed0168983308f6125a50a7", "score": "0.5108233", "text": "public void createUserProfile(UserProfile profile);", "title": "" }, { "docid": "097e8297b7ee14f43a8eeb3ae06dead5", "score": "0.51070124", "text": "public String create() {\n try {\n LogInGateway login = new LogInGateway(username, password, admin);\n if (login.createNewUser(LoginView.con)) {\n // User is created\n FacesContext context = FacesContext.getCurrentInstance();\n if (getAdmin()) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Administrator created successfully!!!\", \"\"));\n } else {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"User created successfully!!!\", \"\"));\n }\n\n return \"\";\n } else {\n connectionErrorHandling(login);\n return \"\";\n }\n } catch (SQLException e) {\n // Error\n FacesContext context = FacesContext.getCurrentInstance();\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Please check database server!!!\", \"\"));\n return \"\";\n }\n }", "title": "" } ]
426114fd03edfaf1d5f89c982615b4b9
Perform an HTTP POST request to the URL.
[ { "docid": "fcb7d7fd28165f4141247e026d8e9631", "score": "0.5639238", "text": "public byte[] postBytes(byte[] content) throws IOException {\n\n if (connection == null) {\n if (proxy == null)\n connection = (HttpURLConnection) url.openConnection();\n else\n connection = (HttpURLConnection) url.openConnection(proxy);\n }\n\n prepareConnection(connection);\n\n connection.setDoOutput(true);\n connection.setRequestMethod(\"POST\");\n\n OutputStream os = connection.getOutputStream();\n os.write(content);\n\n readInput(connection);\n os.close();\n return response;\n }", "title": "" } ]
[ { "docid": "36c653c83e05037b93a9317665595ea1", "score": "0.7413118", "text": "public static HttpResponse post(String url) {\n post = new HttpPost(url);\n HttpResponse response;\n try {\n response = client.execute(post);\n } catch (IOException e) {\n throw new RuntimeException(\"IOException occurred during Post: \" + e);\n }\n return response;\n }", "title": "" }, { "docid": "2eb6b7abe4bc05744e9111d30eb8f563", "score": "0.6889036", "text": "public String post(String url, Object o) throws IOException;", "title": "" }, { "docid": "dea07d264020e004fe18c6b5e799dad1", "score": "0.68474233", "text": "public String post(String url, Map<String,String> formParameters) throws ClientProtocolException, IOException { \n\t HttpPost request = new HttpPost(url);\n\t \n\t List <NameValuePair> nvps = new ArrayList <NameValuePair>();\n\t \n\t for (String key : formParameters.keySet()) {\n\t nvps.add(new BasicNameValuePair(key, formParameters.get(key))); \n\t }\n\n\t request.setEntity(new UrlEncodedFormEntity(nvps));\n\t \n\t return execute(request);\n\t \n\t }", "title": "" }, { "docid": "3dd0fd364441d2405e8e1f5bf41c4bb2", "score": "0.67762494", "text": "public String post(String url) {\r\n // Prepare the request\r\n Request request = new Request(Method.POST, url);\r\n request.setReferrerRef(\"http://www.hackystat.org\");\r\n\r\n // Handle it using an HTTP client connector\r\n Client client = new Client(Protocol.HTTP);\r\n Response response = client.handle(request);\r\n\r\n if (response.getStatus().isSuccess()) {\r\n return Boolean.TRUE.toString();\r\n }\r\n else {\r\n return response.getStatus().getDescription();\r\n }\r\n }", "title": "" }, { "docid": "66217a2af63979811b8e771fa5ba88f3", "score": "0.6759384", "text": "public void createPostRequest(String url) throws MalformedURLException, URISyntaxException {\n createRequest(url, POST_METHOD);\n }", "title": "" }, { "docid": "c96f894a475bf9244e3fb65daae22e08", "score": "0.6756781", "text": "public static OkHttpRequest post(final URL url) throws HttpRequestException {\n return post(url.toString());\n }", "title": "" }, { "docid": "32b2fe0a5a51ddc53fc16bafd3f4d5a1", "score": "0.6750881", "text": "public static String postHttpURL(String theURL, String body) throws IOException {\n\n\t\t// initialize the POST method\n\t\tPostMethod post = new PostMethod(theURL);\n\t\tpost.setRequestBody(body);\n\n\t\t// execute the POST\n\t\tHttpClient client = new HttpClient();\n\t\tclient.getState().setCredentials(new AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT, WS.realm), new UsernamePasswordCredentials(WS.username,WS.password));\n\n\t\tint status = client.executeMethod(post); \n\t\tString response = post.getResponseBodyAsString();\n\t\t\n\t\treturn response;\n\t\t\n\t}", "title": "" }, { "docid": "cbc887dd045d0fd07dd7222abad0b4c2", "score": "0.67386216", "text": "public static Web post(String url) {\r\n return new Web(url, \"POST\");\r\n }", "title": "" }, { "docid": "40225f1dccebf1ce5efc46a320b9a11e", "score": "0.67136234", "text": "public static RequestBuilder post(HttpUrl url) {\n return new RequestBuilder(HTTPMethod.POST, url);\n }", "title": "" }, { "docid": "7a7d767f8f36541fb6836dfb943cf6c8", "score": "0.66707456", "text": "public static WebTestClientResponse post(URL url) {\n return given().post(url);\n }", "title": "" }, { "docid": "b3a09857ccab23152a54bc27deca8bfc", "score": "0.6648843", "text": "private String http(String urlString, String mediaType, String post)\n throws IOException, InterruptedException {\n URL url = new URL(urlString);\n if (!NetworkUtil.isTcpPortOpen(url.getHost(), url.getPort(), 25, 100)) {\n throw new IllegalStateException(\"port never opened: \" + url);\n }\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Content-Type\", mediaType);\n conn.setRequestProperty(\"Accept\", mediaType);\n IOUtils.write(post, conn.getOutputStream(), StandardCharsets.UTF_8);\n return response(conn);\n }", "title": "" }, { "docid": "96f3552d3b62e598fd01503a31bda271", "score": "0.6647804", "text": "private Response doPostRequest(String url, String json) throws IOException {\n RequestBody body = RequestBody.create(JSON, json);\n Request request = new Request.Builder()\n .url(url)\n .post(body)\n .addHeader(AUTHORIZATION_HEADER, auth)\n .build();\n\n return client.newCall(request).execute();\n }", "title": "" }, { "docid": "e5ecff6a4d2b72d5e96337fc537bad64", "score": "0.6619473", "text": "private static String doPost(String url, String ... params){\n\t\tString ret = \"\";\n\n\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\tHttpPost req = new HttpPost(url);\n\n\t\ttry{\n\t\t\t// Adding the parameters\n\t\t\tJSONObject json = new JSONObject(params[0]);\n\t\t\tList<NameValuePair> pairs = new ArrayList<NameValuePair>();\n\n\t\t\tIterator<String> keys = json.keys();\n\t\t\twhile(keys.hasNext()){\n\t\t\t\tString key = keys.next();\n\t\t\t\tString val = json.getString(key);\n\t\t\t\tpairs.add(new BasicNameValuePair(key, val));\n\t\t\t}\n\t\t\treq.setEntity(new UrlEncodedFormEntity(pairs));\n\n\t\t} catch(JSONException e){\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Performing the request\n\t\tret = getResponse(httpclient, req);\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "61323724b7ceb5b250eab2d12890d46f", "score": "0.6617448", "text": "public void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n\n // Join the URL's together so we have the correct URL for the endpoint.\n String uri = getCompleteURL(url);\n\n System.out.println(\"Rest Post URL: \" + uri);\n\n // Post the data to the server.\n client.post(uri, params, responseHandler);\n }", "title": "" }, { "docid": "40439d009ba9683f3d5b6f7fb3bec73b", "score": "0.6593732", "text": "public void PerformRequestPost(String addr, RequestParams r, AsyncHttpResponseHandler h);", "title": "" }, { "docid": "aa2e37c852188c71df24eab6ee00d0da", "score": "0.655315", "text": "private void post(String URL, HashMap args){\n\t\tHttpURLConnection hc;\n\t\thc.setDoOutput(true);\n\t\tURL server;\n\t\tInputStream in;\n\t\tOutputStream out;\n\t\ttry {\n\t\t\thc = (HttpURLConnection) server.openConnection();\n\t\t\thc.setChunkedStreamingMode(0);\n\t\t\twriteStream(out);\n\t\t\treadStream(in);\n\t\t\tfinally {\n\t\t\t\thc.disconnect();\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\tSentry.captureException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "0f06f7b91f05b7d2876bc95cf74a953b", "score": "0.64921045", "text": "public static OkHttpRequest post(final String url)\n throws HttpRequestException {\n return new OkHttpRequest(url,METHOD_POST);\n }", "title": "" }, { "docid": "b292f5a4848b7cc42d83954ba21d21e0", "score": "0.6390179", "text": "JSONAware doPostCall(String url, JSONObject toPost) throws RESTException;", "title": "" }, { "docid": "bc3837e4c7920cfd60fd689d2edade51", "score": "0.63375854", "text": "JSONAware doPostCall(String url, JSONObject toPost, HashMap<String, String> headers)\n throws RESTException;", "title": "" }, { "docid": "81a09d28fd56b004af5f87e455d8d231", "score": "0.63310784", "text": "public InputStream post(URL url, Object[] parameters) throws IOException {\n return new HTTPRequest(url).post(parameters);\n }", "title": "" }, { "docid": "3e0b8adf9a1e4a6e17de45e63b51102b", "score": "0.6321027", "text": "public void sendPost(String targetURL, String urlParameters) {\n URL url;\n HttpURLConnection connection = null;\n try {\n //Create connection\n url = new URL(targetURL);\n connection = isHttps ? (HttpsURLConnection)url.openConnection()\n : (HttpURLConnection)url.openConnection();\n initConnection(connection);\n\n String userPass = username + \":\" + password;\n String basicAuth = \"Basic \"\n + DatatypeConverter.printBase64Binary(userPass.getBytes(StandardCharsets.UTF_8));\n connection.setRequestProperty(\"Authorization\", basicAuth);\n\n connection.setRequestProperty(\"Content-Length\",\n \"\" + Integer.toString(urlParameters.getBytes().length));\n connection.setRequestProperty(\"Cookie\", generateCookies());\n \n //Send request\n PrintStream ps = new PrintStream(connection.getOutputStream());\n ps.print(urlParameters);\n ps.close();\n\n if (connection.getResponseCode() == 401) {\n Util.LogText(\"Authentication failed. \" + connection.getResponseMessage());\n System.out.println(\"Authentication failed.\");\n if (connection != null) {\n connection.disconnect();\n }\n return;\n }\n\n } catch (ConnectException e) {\n System.out.println(CONNECTION_ERR_MSG);\n System.exit(ReturnCode.CONNECTION_ERROR);\n } catch (Exception e) {\n System.out.println(\"Got error: \" + e.getMessage());\n Util.LogExceptions(e);\n } finally {\n\n if (connection != null) {\n connection.disconnect();\n }\n }\n }", "title": "" }, { "docid": "54e392e4cdb5c88b2e655f7cf1d0009d", "score": "0.630969", "text": "private void doPost() throws ProtocolException {\n urlConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n urlConnection.setRequestMethod(\"POST\");\n urlConnection.addRequestProperty(\"Cache-Control\", \"no-cache\");\n urlConnection.setConnectTimeout(CONNECTION_TIMEOUT);\n urlConnection.setUseCaches(false);\n urlConnection.setRequestProperty(\"Authorization\", AuthorizationKey);\n\n urlConnection.setDoOutput(true);\n\n Utils.Log(\"URL DATA===\"+urlConnection.toString());\n if (Build.VERSION.SDK != null && Build.VERSION.SDK_INT < 13) {\n urlConnection.setRequestProperty(\"connection\", \"close\");\n }\n }", "title": "" }, { "docid": "a8e89d86b215277ad2ef8c50e9b9633f", "score": "0.6303471", "text": "public static String sendPostRequest(String requestURL, HashMap<String, String> postDataParams) {\n return sendRequest(\"POST\", requestURL, postDataParams);\n }", "title": "" }, { "docid": "03722818c72c63f89a9c5fbf1401680e", "score": "0.6299863", "text": "public static String executePost(String targetURL, String urlParameters) {\n\t\t/*TODO: check that this works\n\t\t * From SO: 1359689 & Oracla java docs with modifs\n\t\t * */\n\t\t HttpURLConnection connection = null;\n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection) url.openConnection();\n\t\t connection.setRequestMethod(\"POST\");\n\t\t //connection.setRequestProperty(\"Content-Type\",\"application/x-www-form-urlencoded\");\n\n\t\t connection.setRequestProperty(\"Content-Length\", \n\t\t Integer.toString(urlParameters.getBytes().length));\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t DataOutputStream wr = new DataOutputStream (\n\t\t connection.getOutputStream());\n\t\t wr.writeBytes(urlParameters);\n\t\t wr.close();\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuffer response = new StringBuffer(); \n\t\t String line;\n\t\t while ((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t return null;\n\t\t } finally {\n\t\t if (connection != null) {\n\t\t connection.disconnect();\n\t\t }\n\t\t }\n}", "title": "" }, { "docid": "c52cde8ba55b04afd1e30162552d4ac2", "score": "0.6298638", "text": "protected String executePost(String targetURL, String urlParameters) {\n HttpURLConnection connection = null;\n String isConnected = \"\";\n try {\n // Create connection with the target URL.\n URL url = new URL(targetURL);\n\n // Open the connection and configure the connection the way a HTTP POST connection\n // that communicates via JSON should be configured.\n // Notice that we didn't specify a timeout. There's a default timeout (idk what it\n // is) but i didn't specify a timeout because who knows how long it'll take Howard's\n // network to send this request.\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Content-Type\",\n \"application/json; charset=UTF-8\");\n connection.setRequestProperty(\"Content-Length\",\n Integer.toString(urlParameters.getBytes().length));\n connection.setRequestProperty(\"Content-Language\", \"en-US\");\n connection.setUseCaches(false);\n\n // Create a stream with the server where data can be sent.\n DataOutputStream wr = new DataOutputStream(\n connection.getOutputStream());\n // Send the url parameters as data.\n wr.writeBytes(urlParameters);\n // Close the stream.\n wr.close();\n\n // Create a stream with the server where data can be received.\n InputStream is;\n // Get the response code of the POST request. 400 is error. 200 is OK.\n int status = connection.getResponseCode();\n if (status >= 400) {\n // This call will block. In other words, the JVM will pause execution of this\n // app until this function finishes returning the error stream.\n is = connection.getErrorStream();\n\n }\n else {\n // This call will block. In other words, the JVM will pause execution of this\n // app until this function finishes returning the input stream.\n is = connection.getInputStream();\n\n }\n\n // Once either an error stream or input stream has been received, it the actual\n // contents of the stream need to be parsed via a BufferedReader.\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\n // StringBuilder will be used to, well, build a string out of the input stream data.\n StringBuilder response = new StringBuilder();\n String line;\n // While the buffered reader is able to read data from the InputStream\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\n');\n }\n // Close BufferedReader.\n rd.close();\n\n // Return the built string.\n return \"Connected\";\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (connection != null) {\n connection.disconnect();\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "d7137b44c43db78de01a888db8d9f3d6", "score": "0.6262219", "text": "public InputStream post(URL url, Map parameters) throws IOException {\n return new HTTPRequest(url).post(parameters);\n }", "title": "" }, { "docid": "ace529858a2482f85c9224a233b6097f", "score": "0.6231215", "text": "public InputStream post(URL url, Map<String, String> cookies, Map parameters) throws IOException {\n return new HTTPRequest(url).post(cookies, parameters);\n }", "title": "" }, { "docid": "b39eb76e9f7f3dd7e70218c6cded4cd7", "score": "0.62203795", "text": "public void postData()\n {\n try {\n DefaultHttpClient client = new DefaultHttpClient();\n HttpPost request = new HttpPost(this.reqUrl);\n //Create Post Data\n List<NameValuePair> postData = new ArrayList<NameValuePair>(1);\n postData = getPostData();\n //Set Post Data\n request.setEntity(new UrlEncodedFormEntity(postData));\n //Send Request\n HttpResponse response = client.execute(request);\n } catch (ClientProtocolException e) {\n //e.printStackTrace();\n this.resultContent = \"Client Error\";\n } catch (IOException e) {\n //e.printStackTrace();\n this.resultContent = \"IO Error\";\n //e.toString();\n } catch (Exception e) {\n this.resultContent = \"Error occurred\";\n }\n }", "title": "" }, { "docid": "866e8a41b44a0800904291d8ae7f0dc6", "score": "0.6203002", "text": "public InputStream post(URL url, String[] cookies, Object[] parameters) throws IOException {\n return new HTTPRequest(url).post(cookies, parameters);\n }", "title": "" }, { "docid": "0d04a9381c9b369a76aa046b26c36c85", "score": "0.6183157", "text": "public static void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n ShowLog.e(TAG, getAbsoluteUrl(url));\n client.post(getAbsoluteUrl(url), params, responseHandler);\n }", "title": "" }, { "docid": "1815e567166a8ebe82d96ae43b348109", "score": "0.616098", "text": "protected String _httpPostRequest(final String url, final String data) {\r\n\t\ttry {\r\n\t\t\tfinal URL u = new URL(url);\r\n\t\t\tfinal HttpURLConnection connection = (HttpURLConnection) u.openConnection();\r\n\t\t\tconnection.setDoOutput(true);\r\n\t\t\tconnection.setDoInput(true);\r\n\t\t\tconnection.setInstanceFollowRedirects(false);\r\n\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\tconnection.setRequestProperty(\"Content-Type\", \"text/plain\");\r\n\t\t\tconnection.setRequestProperty(\"Charset\", \"utf-8\");\r\n\t\t\tconnection.setRequestProperty(\"Content-Length\", \"\" + Integer.toString(data.getBytes().length));\r\n\t\t\tconnection.setUseCaches(false);\r\n\r\n\t\t\t// Write the POST data\r\n\t\t\tfinal BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream(), \"UTF-8\"));\r\n\t\t\twr.write(data);\r\n\t\t\twr.flush();\r\n\t\t\twr.close();\r\n\r\n\t\t\t// Read the output\r\n\t\t\tfinal StringBuffer output = new StringBuffer();\r\n\t\t\tfinal BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), \"UTF-8\"));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\toutput.append(line);\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\tconnection.disconnect();\r\n\r\n\t\t\tfinal String put = output.toString();\r\n\t\t\t// System.err.println(put);\r\n\t\t\treturn put;\r\n\t\t} catch (final Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4041e9fbf810d75986c98bc12f5b3c57", "score": "0.6152289", "text": "public static ResponseObject post(String url, String body) {\n return post(url, body, \"application/json\");\n }", "title": "" }, { "docid": "c47240b57f6dbf00e1f8f0d804dcc83b", "score": "0.6129611", "text": "@When(\"^I send a POST request to the address$\")\n public void SendPOST(String data) throws IOException{\n\n con.setDoOutput(true);\n OutputStreamWriter wr = new OutputStreamWriter(con.getOutputStream());\n wr.write(data);\n wr.flush();\n wr.close();\n }", "title": "" }, { "docid": "fa9134503ad8f13710109f07a19d4e83", "score": "0.60851115", "text": "public static String doPost(String http_url, String post_data) {\n if (post_data == null) {\n post_data = \"\";\n }\n try {\n URLConnection conn = new URL(http_url).openConnection();\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n DataOutputStream out = new DataOutputStream(conn.getOutputStream());\n out.writeBytes(post_data);\n out.flush();\n out.close();\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n StringBuffer buffer = new StringBuffer();\n while ((line = in.readLine()) != null) {\n buffer.append(line);\n buffer.append(\"\\n\");\n }\n return buffer.toString();\n } catch (IOException e) {\n ;\n } catch (ClassCastException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "a7f5bab862c2e8bd95f816361c0fa7e0", "score": "0.60840297", "text": "private static String sendRequest(String verb, String requestURL, HashMap<String, String> postDataParams){\n URL url;\n String response = \"\";\n try {\n url = new URL(requestURL);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(15000);\n conn.setConnectTimeout(15000);\n conn.setRequestMethod(verb);\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n OutputStream os = conn.getOutputStream();\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, \"UTF-8\"));\n writer.write(getRequestString(postDataParams));\n\n writer.flush();\n writer.close();\n os.close();\n int responseCode = conn.getResponseCode();\n\n if (responseCode == HttpsURLConnection.HTTP_OK) {\n String line;\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n while ((line=br.readLine()) != null) {\n response+=line;\n }\n }\n else {\n response=\"\";\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return response;\n }", "title": "" }, { "docid": "c2c9dd4833baa01c0b3315aba018aea4", "score": "0.60769695", "text": "protected InputStream post(final String url, final Map<String, String> params) throws IOException {\n \t\tfinal HttpURLConnection http = (HttpURLConnection) new URL(url).openConnection();\n \t\tinitConnection(http);\n \t\tinitPost(http);\n \t\thttp.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n \t\tinitCookies(http);\n \t\t// URL-encoded data can be written quickly with ISO-8859-1.\n \t\tfinal BufferedWriter out = new BufferedWriter(new OutputStreamWriter(http.getOutputStream(), \"ISO-8859-1\"));\n \t\tout.write(createApiPostData(params));\n \t\tout.flush();\n \t\tout.close();\n \t\thttp.connect();\n \n \t\tif (http.getResponseCode() != 200)\n \t\t\tthrow new MediaWiki.HttpStatusException(http.getResponseCode());\n \n \t\tupdateCookies(http);\n \n \t\tfinal String encoding = http.getHeaderField(\"Content-Encoding\");\n \t\treturn (encoding != null) && encoding.equals(\"gzip\") ? new GZIPInputStream(http.getInputStream()) : http.getInputStream();\n \t}", "title": "" }, { "docid": "d269429d119b89e070a3acac3d9dae43", "score": "0.6052773", "text": "public static HttpResponse httpPost(String url,\r\n\t\t\tList<NameValuePair> nameValuePairs) {\r\n\r\n\t\tHttpPost httppost = new HttpPost(url);\r\n\t\ttry {\r\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\t\tHttpResponse response = getHTTPClient().execute(httppost);\r\n\t\t\treturn response;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new IllegalStateException(\"HTTP Post error.\"+url, e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2f887057fe012a627a36a1b8d52ea9b0", "score": "0.6041124", "text": "public static void post(String url, String method, RequestParams params,\n\t\t\tAsyncHttpResponseHandler responseHandler) {\n\n\t\tparams.put(\"app\", \"api\");\n\t\tparams.put(\"mod\", url);\n\t\tparams.put(\"act\", method);\n\n\t\tclient.setTimeout(TIME_OUT_INTERVAL);\n\t\tclient.getHttpClient().getParams()\n\t\t\t\t.setParameter(\"http.protocol.allow-circular-redirects\", true);\n\t\tVolleyLog.d(\"%s ? %s\", BASE_URL, params.toString());\n\t\tclient.get(BASE_URL, params, responseHandler);\n\t}", "title": "" }, { "docid": "3ac19cbd051157beb99078812efedd30", "score": "0.6016808", "text": "private String post(String endpoint, Map<String, String> params)\n\t\t\tthrows IOException { \n\n\t\tURL url;\n\n\t\tString body=\"\";\n\n\t\tString response = \"\";\n\n\t\tbyte[] bytes;\n\n\t\tLog.i(TAG, \"URL: \" + endpoint);\n\n\t\ttry {\n\n\t\t\turl = new URL(endpoint);\n\n\t\t} catch (MalformedURLException e) {\n\n\t\t\tthrow new IllegalArgumentException(\"invalid url: \" + endpoint);\n\n\t\t}\n\n\t\tStringBuilder bodyBuilder = new StringBuilder();\n\n\t\tIterator<Entry<String, String>> iterator = params.entrySet().iterator();\n\n\t\t// constructs the POST body using the parameters\n\t\twhile (iterator.hasNext()) {\n\n\t\t\tEntry<String, String> param = iterator.next();\n\n\t\t\tbodyBuilder.append(param.getKey()).append('=').append(param.getValue());\n\n\t\t\tif (iterator.hasNext()) {\n\t\t\t\tbodyBuilder.append('&');\n\t\t\t}\n\n\t\t}\n\n\t\tbody=bodyBuilder.toString();\n\n\t\tLog.v(TAG, \"Posting: \" + body + \" to \" + url);\n\n\t\tbytes = body.getBytes();\n\n\t\tHttpURLConnection conn = null;\n\n\t\ttry \n\t\t{\n\n\t\t\tLog.i(TAG, \"URL->\" + url);\n\n\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.setDoOutput(true);\n\t\t\tconn.setUseCaches(false);\n\n\t\t\tconn.setFixedLengthStreamingMode(bytes.length);\n\n\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t//conn.setRequestProperty(\"Content-Type\",\"application/x-www-form-urlencoded;charset=UTF-8\");\n\n\t\t\t// post the request\n\t\t\tOutputStream out = conn.getOutputStream();\n\t\t\tout.write(bytes);\n\t\t\tout.close();\n\n\t\t\t// handle the response\n\t\t\tint status = conn.getResponseCode();\n\n\t\t\tLog.i(TAG, \"RESPONSE from server: \"+status);\n\n\t\t\tLog.i(TAG, \"JSON Response Message: \"+conn.getResponseMessage());\n\n\t\t\tif (status == HttpURLConnection.HTTP_OK) {\n\t\t\t\tString line;\n\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(conn.getInputStream()));\n\t\t\t\twhile ((line=br.readLine()) != null) {\n\t\t\t\t\tresponse+=line;\n\t\t\t\t}\n\t\t\t\tLog.i(TAG, \"RESPONSE STRING: \"+response);\n\t\t\t\t\n\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\tthrow new IOException(\"Post failed with error code \" + status);\n\t\t\t}\n\n\n\t\t} finally {\n\n\t\t\tif (conn != null) {\n\n\t\t\t\tconn.disconnect();\n\n\t\t\t}\n\n\t\t}\n\t\treturn response;\n\t}", "title": "" }, { "docid": "c776b6fb25a366be2e636de18c166889", "score": "0.5992862", "text": "ClientResponse post(URI uri, String body) throws InternalException;", "title": "" }, { "docid": "f3a616abf92591a72df618dc926fd8d3", "score": "0.5985551", "text": "public static String postByHttpURL(String url, Map<String, String> params) {\n\t\treturn postByHttpURL(url,params,null);\n\t}", "title": "" }, { "docid": "774264c335c92f46f2fba2f390af1334", "score": "0.59737796", "text": "public String doPost(String url, Map<String, String> headers, String jsonString)\r\n\t\t\tthrows IOException {\r\n\t\tfinal int TIMEOUT_MILLIS = 0; // infinity.\r\n\t\tString encoding = \"UTF-8\";\r\n\t\treturn doPost(url, encoding, headers, jsonString, TIMEOUT_MILLIS);\r\n\t}", "title": "" }, { "docid": "90bb90978a4072eda5e4a86be637f418", "score": "0.5963715", "text": "public static WebTestClientResponse post() {\n return given().post();\n }", "title": "" }, { "docid": "2f883730fccaad51c1c957d4aa4c327c", "score": "0.59539", "text": "public InputStream post(URL url, String name1, Object value1) throws IOException {\n return new HTTPRequest(url).post(name1, value1);\n }", "title": "" }, { "docid": "ff2df8afc9a1b5534e58e8bbe05de5ba", "score": "0.5947484", "text": "public static String post(final String url, final RequestBody body) {\r\n Request request = new Request.Builder()\r\n .url(url)\r\n .post(body)\r\n .build();\r\n Response response;\r\n String jsonStr = null;\r\n try {\r\n response = client.newCall(request).execute();\r\n jsonStr = response.body().string();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return jsonStr;\r\n }", "title": "" }, { "docid": "6c3665c3d1f6ca2f42f2a9c29132fe19", "score": "0.5924509", "text": "private static InputStream httpPostRequest(String url, Object create,\n\t\t\tString userId) throws ClientProtocolException,\n\t\t\tIOException {\n\n\t\tHttpPost httppost = new HttpPost(url);\n\n\t\thttppost.getParams().setBooleanParameter(\n\t\t\t\tCoreProtocolPNames.USE_EXPECT_CONTINUE, false);\n\n\t\thttppost.setHeader(\"Content-Type\", \"application/json\");\n httppost.setHeader(\"Encoding\", \"utf-8\");\n httppost.setHeader(\"database\", Const.DATABASE);\n\n if(userId != null && userId.length() > 0)\n httppost.setHeader(\"user_id\", userId);\n else{\n String userIdSaved = SpikaApp.getPreferences().getUserId();\n if(userIdSaved != null)\n httppost.setHeader(\"user_id\", userIdSaved);\n }\n \n String token = SpikaApp.getPreferences().getUserToken();\n if(token != null && token.length() > 0)\n httppost.setHeader(\"token\", token);\n\n \n\n\t\tStringEntity stringEntity = new StringEntity(create.toString(),\n\t\t\t\tHTTP.UTF_8);\n\n\t\thttppost.setEntity(stringEntity);\n\n\t\tHttpResponse response = HttpSingleton.getInstance().execute(httppost);\n\t\tHttpEntity entity = response.getEntity();\n\n\t\treturn entity.getContent();\n\t}", "title": "" }, { "docid": "0264e126989406538cf702b4ca4a9abc", "score": "0.59172845", "text": "public String post(String content) throws IOException {\n postBytes(content.getBytes());\n return getResponse();\n }", "title": "" }, { "docid": "0709a47a785d4574cd9ed482dfb7aa6f", "score": "0.5905366", "text": "public InputStream post(URL url, String name1, Object value1, String name2, Object value2) throws IOException {\n return new HTTPRequest(url).post(name1, value1, name2, value2);\n }", "title": "" }, { "docid": "6afc727f399cf61690cad5d06fd856af", "score": "0.59028566", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {}", "title": "" }, { "docid": "cfb9527da59efc2c2f8fa19757ec4940", "score": "0.5898204", "text": "protected HttpURLConnection post(String url, String body, String accessToken) throws IOException {\n\n if (url == null || body == null) {\n throw new IllegalArgumentException(\"arguments cannot be null\");\n }\n\n byte[] bytes = body.getBytes(UTF_8);\n HttpURLConnection conn = getConnection(url);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setFixedLengthStreamingMode(bytes.length);\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Authorization\", \"Bearer \" + accessToken );\n conn.setRequestMethod(\"POST\");\n OutputStream out = null;\n try {\n out = conn.getOutputStream();\n out.write(bytes);\n } finally {\n // in case something blows up, while writing\n // the payload, we wanna close the stream:\n if (out != null) {\n out.close();\n }\n }\n return conn;\n }", "title": "" }, { "docid": "2eb1ad192dd88bef3cd334e89f489273", "score": "0.586944", "text": "private void postStatus() throws IOException {\n URL url = new URL(this.reportURL);\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setRequestMethod(\"POST\");\n httpURLConnection.setRequestProperty(\"User-Agent\", \"PhoneMonitor\");\n httpURLConnection.setDoOutput(true);\n httpURLConnection.setConnectTimeout(5000);//without a timeout, .getOutputStream() hangs forever if server doesn't respond\n httpURLConnection.setReadTimeout(5000);//without a timeout, .getResponseMessage(), .getInputStream() and .getResponseCode() hang forever if server doesn't respond\n\n OutputStream outputstream = httpURLConnection.getOutputStream();\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(\"IMEI\", HelperMethods.getIMEI(context))\n .appendQueryParameter(\"number\", HelperMethods.getNumber(context))\n .appendQueryParameter(\"manufacturer\", Build.MANUFACTURER)\n .appendQueryParameter(\"model\", Build.MODEL)\n .appendQueryParameter(\"uniqueid\", HelperMethods.getDeviceUID(context));\n String POSTQuery = builder.build().getEncodedQuery();\n\n outputstream.write(POSTQuery.getBytes(\"UTF-8\"));\n outputstream.flush();\n outputstream.close();\n String responseMsg = httpURLConnection.getResponseMessage();//dunno why but .getResponseMessage() or .getInputStream() or getResponseCode() _is_ required to actually make the POST request\n httpURLConnection.disconnect();\n }", "title": "" }, { "docid": "5a7d440ac11329d7a1692f6ec6f08041", "score": "0.5865419", "text": "public void sendPost(final String jsonPost) {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"http://192.168.0.164:5000/api\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setDoOutput(true);\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"'text/plain\");\n\n Log.i(\"JSON\", jsonPost);\n DataOutputStream os = new DataOutputStream(conn.getOutputStream());\n\n os.write(jsonPost.getBytes());\n os.flush();\n os.close();\n\n Log.i(\"STATUS\", String.valueOf(conn.getResponseCode()));\n Log.i(\"MSG\", conn.getResponseMessage());\n\n conn.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n thread.start();\n }", "title": "" }, { "docid": "4bb3f15b11d59a41088e09ab9d59a5d7", "score": "0.58579427", "text": "public void doPost(String urlString,\n OutputStream out,\n InputStream xslInputStream,\n Map paramsMap,\n Map headers,\n String postData,\n String postContentType,\n String userName,\n String password) throws IOException, MalformedURLException {\n doProcess(urlString, out, xslInputStream, paramsMap, headers, XmlHttpProxy.POST, postData, postContentType, userName, password);\n }", "title": "" }, { "docid": "a79de31ab1e3e4e200dd60af3c68e38e", "score": "0.58554673", "text": "public void executePost(String targetURL, String urlParameters) {\n URL url;\n HttpURLConnection connection = null;\n try {\n //Create connection\n url = new URL(targetURL);\n connection = isHttps ? (HttpsURLConnection)url.openConnection()\n : (HttpURLConnection)url.openConnection();\n initConnection(connection);\n\n // authentication\n String userPass = username + \":\" + password;\n String basicAuth = \"Basic \"\n + DatatypeConverter.printBase64Binary(userPass.getBytes(StandardCharsets.UTF_8));\n connection.setRequestProperty(\"Authorization\", basicAuth);\n\n connection.setRequestProperty(\"Content-Length\", \"\"\n + Integer.toString(urlParameters.getBytes().length));\n connection.setRequestProperty(\"Cookie\", generateCookies());\n\n //Send request\n PrintStream ps = new PrintStream(connection.getOutputStream());\n ps.print(urlParameters);\n ps.close();\n\n if (connection.getResponseCode() == 401) {\n Util.LogText(\"Authentication failed. \" + connection.getResponseMessage());\n System.out.println(\"Authentication failed.\");\n if (connection != null) {\n connection.disconnect();\n }\n System.exit(ReturnCode.LOGIN_OR_AUTH_ERROR);\n } else if (connection.getResponseCode() != 200) {\n String errMsg = \"Connection Error.\\n\"\n + \"Response Code : \" + connection.getResponseCode() + \"\\n\"\n + URLEncoder.encode(urlParameters, \"UTF-8\") + \"\\n\";\n System.out.println(errMsg);\n if (connection != null) {\n connection.disconnect();\n }\n return;\n }\n\n // Get response and print it.\n InputStream is = connection.getInputStream();\n Scanner sc = new Scanner(is);\n String line;\n String cursorMoveup = \"__GSQL__MOVE__CURSOR___UP__\";\n String cleanLine = \"__GSQL__CLEAN__LINE__\";\n String progressBarPattern = \"\\\\[=*\\\\s*\\\\]\\\\s[0-9]+%.*\";\n String progressBarCompletePattern = \"\\\\[=*\\\\s*\\\\]\\\\s100%[^l]*\";\n\n while (sc.hasNextLine()) {\n line = sc.nextLine();\n if (line.startsWith(\"__GSQL__RETURN__CODE__\")) {\n if (!isShell) {\n String [] words = line.split(\",\", 2);\n try {\n int errCode = Integer.valueOf(words[1]);\n System.exit(errCode);\n } catch (NumberFormatException e) {\n Util.LogText(\"Can't parse return code: \" + words[1]);\n System.out.println(\"Cannot parse the return code\");\n System.exit(ReturnCode.NUM_FORMAT_ERROR);\n }\n }\n } else if (line.startsWith(\"__GSQL__INTERACT__\")) {\n // request an interaction with the user\n dialogBox(line);\n } else if (line.startsWith(\"__GSQL__COOKIES__\")){\n String [] words = line.split(\",\", 2);\n deserializeCookies(words[1]);\n } else if (line.startsWith(cursorMoveup)) {\n String [] tokens = line.split(\",\");\n // print a progress bar\n System.out.print(\"\\u001b[\" + tokens[1] +\"A\");//move up tokens[1] lines\n } else if (line.startsWith(cleanLine)) {\n // print a progress bar\n System.out.print(\"\\u001b[\" + \"2K\");//clean the entire current line\n } else if (line.matches(progressBarPattern)) {\n // print a progress bar\n if (line.matches(progressBarCompletePattern)) {\n line += \"\\n\";\n }\n System.out.print(\"\\r\" + line);\n } else {\n System.out.println(line);\n }\n }\n sc.close();\n is.close();\n\n } catch (ConnectException e) {\n System.out.println(CONNECTION_ERR_MSG);\n System.exit(ReturnCode.CONNECTION_ERROR);\n } catch (Exception e) {\n System.out.println(\"Got error: \" + e.getMessage());\n Util.LogExceptions(e);\n } finally {\n\n if (connection != null) {\n connection.disconnect();\n }\n }\n }", "title": "" }, { "docid": "3ef13a5913937c652e174382accaaef9", "score": "0.5830038", "text": "public static String post(String endpoint, Map<String, String> params)\n\t\t\tthrows IOException {\n\t\tURL url;\n\n\t\tString content = null;\n\t\ttry {\n\t\t\turl = new URL(endpoint);\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new IllegalArgumentException(\"invalid url: \" + endpoint);\n\t\t}\n\t\tStringBuilder bodyBuilder = new StringBuilder();\n\t\tIterator<Entry<String, String>> iterator = params.entrySet().iterator();\n\t\t// constructs the POST body using the parameters\n\t\twhile (iterator.hasNext()) {\n\t\t\tEntry<String, String> param = iterator.next();\n\t\t\tbodyBuilder.append(param.getKey()).append('=')\n\t\t\t\t\t.append(param.getValue());\n\t\t\tif (iterator.hasNext()) {\n\t\t\t\tbodyBuilder.append('&');\n\t\t\t}\n\t\t}\n\t\tString body = bodyBuilder.toString();\n\t\t// Log.v(TAG, \"Posting '\" + body + \"' to \" + url);\n\t\tbyte[] bytes = body.getBytes();\n\t\tHttpURLConnection conn = null;\n\t\ttry {\n\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.setDoOutput(true);\n\t\t\tconn.setUseCaches(false);\n\t\t\tconn.setFixedLengthStreamingMode(bytes.length);\n\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\tconn.setRequestProperty(\"Content-Type\",\n\t\t\t\t\t\"application/x-www-form-urlencoded;charset=UTF-8\");\n\t\t\t// post the request\n\t\t\tOutputStream out = conn.getOutputStream();\n\t\t\tout.write(bytes);\n\t\t\tout.close();\n\t\t\t// handle the response\n\t\t\tint status = conn.getResponseCode();\n\n\t\t\tif (conn.getContentLength() > 0) {\n\t\t\t\tInputStream in = (InputStream) conn.getContent();\n\t\t\t\tbyte[] tmpContent = new byte[conn.getContentLength()];\n\t\t\t\tin.read(tmpContent, 0, conn.getContentLength());\n\t\t\t\tin.close();\n\t\t\t\tcontent = new String(tmpContent);\n\t\t\t}\n\n\t\t\tif (status != HttpStatus.SC_OK) {\n\t\t\t\tthrow new IOException(\"Post failed with error code \" + status);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// e.printStackTrace();\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\n\t\treturn content;\n\t}", "title": "" }, { "docid": "418591f4d26579ac93246e4fee545917", "score": "0.5823789", "text": "protected InputStream postRequest(String address, String data) throws IOException\n\t{\n\t\treturn sendRequest(address, data, \"POST\");\n\t}", "title": "" }, { "docid": "fffab98c0ead48c7cc6fde8fa4b1ae2d", "score": "0.5814906", "text": "public Response post(Request request) throws URISyntaxException, IOException {\n CloseableHttpResponse serverResponse = null;\n Response response = new Response();\n URI uri = null;\n HttpPost httpPost = null;\n\n try {\n uri = buildUri(request.baseUri, request.endpoint, request.queryParams);\n httpPost = new HttpPost(uri.toString());\n } catch (URISyntaxException ex) {\n throw ex;\n }\n\n if (request.headers != null) {\n for (Map.Entry<String, String> entry : request.headers.entrySet()) {\n httpPost.setHeader(entry.getKey(), entry.getValue());\n }\n }\n\n httpPost.setEntity(new StringEntity(request.body, Charset.forName(\"UTF-8\")));\n if (request.body != \"\") {\n httpPost.setHeader(\"Content-Type\", \"application/json\");\n }\n\n try {\n serverResponse = httpClient.execute(httpPost);\n response = getResponse(serverResponse);\n serverResponse.close();\n } catch (IOException ex) {\n throw ex;\n } finally {\n if (serverResponse != null) {\n serverResponse.close();\n }\n }\n\n return response;\n }", "title": "" }, { "docid": "773a9728bb7245f0424cc1ce29ba9f90", "score": "0.5809047", "text": "public synchronized String post(final String endPoint, final String actionId) throws NoSuchAlgorithmException, InvalidKeySpecException, KeyManagementException, IOException{\r\n\t\t\r\n\t\tString responseBody = null;\r\n\t\tBoolean fingerPrintStatus = false;\r\n\t\t\r\n\t\tString completeURL = buildCompleteURL(endPoint);\r\n\t\tLOGGER.config(String.format(\"Constructed complete URL: %s\", completeURL));\r\n\t\t\r\n\t\tCloseableHttpClient httpclient = getHTTPClient();\r\n\t\tLOGGER.config(\"Got HTTP Client Instance\");\r\n\r\n\t\ttry {\r\n\t\t\t//Get instance for HTTP Post\r\n\t\t\tHttpPost httpPost = new HttpPost(completeURL);\r\n\t\t\t\r\n\t\t\t//Prepare body for POST Call\r\n\t\t\tString signedToken = endPoint.equalsIgnoreCase(\"/actions\")?signPayload(actionId):signPayload(endPoint);\r\n\t\t\tPostBodyItem body = new PostBodyItem(signedToken);\r\n\t\t\tString bodyStr = jsonObject.toJson(body);\r\n\t\t\tLOGGER.config(String.format(\"Prepared body contents for POST Call: %s\", bodyStr));\r\n\t\t\tStringEntity entity = new StringEntity(bodyStr);\r\n\t\t\thttpPost.setEntity(entity);\r\n\r\n //Add required HTTP headers\r\n httpPost.addHeader(\"makerID\", keyStore.getMakerId());\r\n httpPost.addHeader(\"deviceID\", keyStore.getDeviceId());\r\n httpPost.addHeader(\"Content-Type\", \"application/json\");\r\n \r\n //Execute HTTP POST\r\n LOGGER.config(String.format(\"Executing request %s\", httpPost.getRequestLine()));\r\n CloseableHttpResponse response = null;\r\n if(https){\r\n \t// create http context where the certificate will be added\r\n HttpContext context = new BasicHttpContext();\r\n response = httpclient.execute(httpPost,context);\r\n fingerPrintStatus = verifyFingerPrint(context);\r\n if(fingerPrintStatus)\r\n \tLOGGER.config(\"SSL Finger Print Verification Succeeded for HTTP POST\");\r\n else {\r\n \tLOGGER.severe(\"SSL Finger Print Verification Failed for HTTP POST\");\r\n \treturn (\"SSL Finger Print Verification Failed for HTTP POST\");\r\n }\r\n }\r\n else\r\n \tresponse = httpclient.execute(httpPost);\r\n \r\n //Extract Response Contents\r\n responseBody = processResponseEntity(response);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.severe(\"Exception caught during performing POST Call with BoT Service\");\r\n\t\t\tLOGGER.severe(ExceptionUtils.getStackTrace(e));\t\t\t\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\thttpclient.close();\r\n\t\t}\r\n\t\treturn responseBody;\r\n\t}", "title": "" }, { "docid": "a90406b3d57cf549b063273eff7d9ce8", "score": "0.57888633", "text": "public HttpServiceResult executePost(HttpRequest request, HttpResponse response) throws HttpException, IOException {\n\t\tthrow new HttpException(HttpStatus.METHOD_NOT_ALLOWED, \"POST method not allowed\");\n\t}", "title": "" }, { "docid": "ac65b650732aa8584a95fcec40a9c7e7", "score": "0.5783884", "text": "private static void post(String endpoint, Map<String, String> params)\n throws IOException {\n URL url;\n try {\n url = new URL(endpoint);\n } catch (MalformedURLException e) {\n throw new IllegalArgumentException(\"invalid url: \" + endpoint);\n }\n \n Iterator<Entry<String, String>> iterator = params.entrySet().iterator();\n \n JSONObject holder = new JSONObject();\n \n // constructs the POST body using the parameters\n while (iterator.hasNext()) {\n Entry<String, String> param = iterator.next();\n try {\n \tholder.put(param.getKey(),param.getValue());\n } catch(JSONException e){\n \tthrow new IllegalArgumentException(e);\t\n } \n }\n \n String body = holder.toString();\n Log.v(TAG, \"Posting '\" + body + \"' to \" + url);\n byte[] bytes = body.getBytes();\n \n HttpURLConnection conn = null;\n try {\n conn = (HttpURLConnection) url.openConnection();\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setFixedLengthStreamingMode(bytes.length);\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Content-Type\",\"application/json\");\n \n OutputStream out = conn.getOutputStream();\n out.write(bytes);\n out.close();\n\n // handle the response.\n for (int i = 1; i <= MAX_ATTEMPTS; i++) {\n try\n {\n \tint status=200;\n \tstatus = conn.getResponseCode();\n if (status != 200) {\n throw new IOException(\"Post failed with error code \" + status);\n }\n break;\n }catch(java.io.EOFException e){}\n }\n \n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "title": "" }, { "docid": "dec52497ec2f846aa0b0c049cd1c8b95", "score": "0.5778605", "text": "@Override\r\n\tpublic void doPost(Request request, Response response) {\n\t\tdoGet(request,response);\r\n\t}", "title": "" }, { "docid": "4218319020c334579fc6c0ad19d03740", "score": "0.57523674", "text": "public void postDataNew()\n {\n try { //Tries to open an HTTP connection\n URL url = new URL(this.reqUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n try { //Work with opened HTTP connection\n conn.setDoOutput(true); //Used for POST requests\n conn.setRequestMethod(\"POST\"); //Not required actually.\n //conn.setDoInput(true);\n //conn.setChunkedStreamingMode(0); //Used when we dont know how long is the request\n String params = getQuery();\n conn.setFixedLengthStreamingMode(params.getBytes().length); //When output length is known in advance, this method is the way to go\n conn.setRequestProperty(\"Content-type\",\"application/x-www-form-urlencoded\");\n // Write params on OutputStream\n PrintWriter out = new PrintWriter(conn.getOutputStream());\n out.print(params);\n out.close();\n //Read Output from InputStream\n Scanner inStream = new Scanner(conn.getInputStream());\n this.resultContent = \"\";\n this.resultCode = conn.getResponseCode();\n while (inStream.hasNextLine())\n {\n this.resultContent += inStream.nextLine();\n }\n inStream.close();\n } finally {\n conn.disconnect();\n }\n } catch (MalformedURLException e)\n {\n this.resultContent = \"Url Error\";\n } catch (ProtocolException e)\n {\n this.resultContent = \"Protocol Error\";\n } catch (IOException e)\n {\n this.resultContent = \"Error while retrieving InputStream or Response Code\";\n }\n }", "title": "" }, { "docid": "705ac53e2a52fe8d43c29002b26c1214", "score": "0.5751161", "text": "public static String executePost(String url, String item) throws Exception {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n httpClient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 5000);\n httpClient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 5000);\n \n // Create new getRequest with below mentioned URL\n HttpPost post = new HttpPost(url);\n post.setEntity(new StringEntity(item));\n \n HttpResponse response = httpClient.execute(post);\n \n return EntityUtils.toString(response.getEntity());\n\t}", "title": "" }, { "docid": "80f87856537343faad2baba6d28275cf", "score": "0.5742183", "text": "private Response post(String uri, String body, String apiKey)\n\t{\n\t\tRequest request = new Request(Request.HTTP_METHOD_POST, uri, apiKey, body);\n\t\treturn executeRequest(request);\n\t}", "title": "" }, { "docid": "fb4c4b666a0e5c6bc6caf4ceb2ea8ce8", "score": "0.5737079", "text": "@Override\r\n public HttpResponse httpPost(URI uri) {\r\n try {\r\n HttpPost request = new HttpPost(uri);\r\n consumer.sign(request);\r\n return httpClient.execute(request);\r\n }catch(OAuthException | IOException e){\r\n throw new RuntimeException(\"post method did not execute successfully\",e);\r\n }\r\n }", "title": "" }, { "docid": "ab8aba5633138292f913d57aafe33900", "score": "0.5735729", "text": "public static String doPost(String url, Map<String, String> params, int connectTimeout, int readTimeout) throws Exception {\n\t\treturn doPost(url, params, DEFAULT_CHARSET, connectTimeout, readTimeout);\n\t}", "title": "" }, { "docid": "5e168a6467701bc3ef99be1a5b20b53e", "score": "0.5723811", "text": "public static String post(String url, Map<String, String> params) throws Exception {\n HttpPost httpPost = new HttpPost(url);\n if (params != null) {\n List<NameValuePair> nvps = new ArrayList<NameValuePair>();\n Set<String> keySet = params.keySet();\n for (String key : keySet) {\n nvps.add(new BasicNameValuePair(key, params.get(key)));\n }\n try {\n httpPost.setEntity(new UrlEncodedFormEntity(nvps, \"UTF-8\"));\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n }\n CloseableHttpResponse response = null;\n try {\n response = (CloseableHttpResponse) httpClient.execute(httpPost);\n if (response.getStatusLine().getStatusCode() == 200) {\n HttpEntity httpEntity = response.getEntity();\n return EntityUtils.toString(httpEntity);\n } else {\n throw new Exception(url + \"响应结果:\" + response.getStatusLine().getStatusCode());\n }\n } finally {\n try {\n if (response != null) {\n response.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "1e08e26fff4ccc256fee361c45cc1ea9", "score": "0.5722739", "text": "public String send(Post post);", "title": "" }, { "docid": "041ef45f858d65506af897a7e8be8b72", "score": "0.5711938", "text": "public void testPost() throws Exception {\n PostMethodWebRequest req =\n new PostMethodWebRequest(APPLICATION_PATH + \"post.jsp\", new ByteArrayInputStream(\n \"myField=%C3%A9\".getBytes(\"UTF-8\")), \"application/x-www-form-urlencoded\");\n WebResponse resp = webConversation.getResponse(req);\n assertEquals(\"Status should be 200\", HttpServletResponse.SC_OK, resp.getResponseCode());\n assertEquals(getResource(\"post.jsp\"), resp.getText());\n }", "title": "" }, { "docid": "500c88e69eb1f6b08693758a93e7ee2b", "score": "0.57086754", "text": "@POST\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Produces(MediaType.TEXT_HTML)\n public Response doPostProxy(@QueryParam(\"url\") String url,\n @HeaderParam(\"Cookie\") String cookies,\n MultivaluedMap<String, String> body) {\n LOGGER.traceEntry(\"doPostProxy({}, {}, {}).\", url, cookies, body);\n\n try {\n Connection.Response response = Jsoup.connect(url)\n .method(Connection.Method.POST)\n .cookies(parseCookies(cookies))\n .data(parseFormData(body))\n .timeout(REQUEST_TIMEOUT_TIME)\n .followRedirects(true)\n .execute();\n\n LOGGER.traceExit(response);\n return createResponse(response);\n } catch (IllegalArgumentException e) {\n LOGGER.info(RESOURCE_MARKER, \"Bad URL: {}\", url);\n LOGGER.traceExit(e);\n return Response.status(Status.BAD_REQUEST).entity(\"400 - Bad Request: Unknown URL\").build();\n } catch (IOException e) {\n LOGGER.info(RESOURCE_MARKER, \"Bad request type: {}\", url);\n LOGGER.traceExit(e);\n return Response.status(Status.BAD_REQUEST).entity(\"400 - Bad Request: Unknown request type\").build();\n }\n }", "title": "" }, { "docid": "2cca2ce175199298b8d7d733f900a410", "score": "0.57085806", "text": "public HttpResponse request(String url, JSONObject request) throws ClientProtocolException, IOException, IllegalStateException, JSONException\n {\n\n DefaultHttpClient client = (DefaultHttpClient) WebClientDevWrapper.getNewHttpClient();\n\n HttpPost post = new HttpPost(url);\n post.setEntity(new StringEntity(request.toString(), \"utf-8\"));\n HttpResponse response = client.execute(post);\n return response;\n }", "title": "" }, { "docid": "9951fa0cdc0f967ba29bf0c4a5715aa8", "score": "0.57052153", "text": "public InputStream post(URL url, String name1, Object value1, String name2, Object value2, String name3, Object value3) throws IOException {\n return new HTTPRequest(url).post(name1, value1, name2, value2, name3, value3);\n }", "title": "" }, { "docid": "b063a818a92c8a56d7ed8e44ba674714", "score": "0.5701563", "text": "public static void postRequest(Context context, Callback callback, String url, JSONObject args) {\n doRequest(context, callback,baseUrl + url, Request.Method.POST, args);\n }", "title": "" }, { "docid": "f7c0669471e92c3379602ce601ac9ff2", "score": "0.5686629", "text": "private String writeParamsAndSendPost(Map<String, Object> params, String url) throws UnsupportedEncodingException,\n ProtocolException, IOException {\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n StringBuilder postData = new StringBuilder();\n params.forEach((key, value) -> {\n try {\n if (postData.length() != 0) {\n postData.append('&');\n }\n postData.append(URLEncoder.encode(key, \"UTF-8\"));\n postData.append('=');\n postData.append(URLEncoder.encode(String.valueOf(value), \"UTF-8\"));\n } catch (UnsupportedEncodingException ex) {\n log.info(\"ERROR\" + ex.getMessage());\n }\n });\n byte[] postDataBytes = postData.toString().getBytes(\"UTF-8\");\n con.setRequestMethod(\"POST\");\n //add request header\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n con.setRequestProperty(\"Content-Length\", String.valueOf(postDataBytes.length));\n con.setDoOutput(true);\n con.getOutputStream().write(postDataBytes);\n\n int responseCode = con.getResponseCode();\n\n log.info(\"\\nSending 'POST' request to URL : \" + url);\n log.info(\"Response Code : \" + responseCode);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n log.info(response.toString());\n return response.toString();\n }", "title": "" }, { "docid": "30421861c580a7c92b371414484ffb00", "score": "0.568071", "text": "public static String postByHttpURL(String url,Map<String, String> params, Map<String,String>header) {\n\t\treturn postByHttpURL(url,DEFAULT_CHARSET, params,header);\n\t}", "title": "" }, { "docid": "7f258896d8af30f44205bf3b14338160", "score": "0.56721807", "text": "@Test\n\tpublic void testPost() throws Exception {\n\t\tString endPoint = \"/post\";\n\t\tString testURL = \"http://localhost:\" + serverPort + endPoint;\n\t\tmockServer.when(request().withMethod(\"POST\").withPath(endPoint)).respond(response().withBody(\"OK\"));\n\n\t\t// If we sent the expected headers we should get a 200\n\t\tEntry<CloseableHttpResponse, String> response = http.execPOST(testURL, null, null, timeout);\n\t\tAssert.assertEquals(200, response.getKey().getStatusLine().getStatusCode());\n\t}", "title": "" }, { "docid": "b545bc546ff21a098f33ed6d070d70f6", "score": "0.5663055", "text": "public static String doPost(String url, Map<String, String> params, String charset, int connectTimeout, int readTimeout) throws Exception {\n\t\tString ctype = DEFAULT_CONTENT_TYPE + charset;\n\t\tString query = buildQuery(params, charset);\n\t\tbyte[] content = {};\n\t\tif (query != null) {\n\t\t\tcontent = query.getBytes(charset);\n\t\t}\n\t\treturn doPost(url, ctype, content, DEFAULT_HEADER, connectTimeout, readTimeout);\n\t}", "title": "" }, { "docid": "5e2d5445605de439dbc6735cfbe3d405", "score": "0.5628645", "text": "public String postHttpRequest(RequestSpecification requestSpec, String resourceURL) throws Exception {\r\n\t\tresponse = requestSpec.when().post(resourceURL)\r\n\t\t\t\t.then().log().all().assertThat().statusCode(200).extract().response().asString();\r\n\t\treturn response;\r\n\r\n\t}", "title": "" }, { "docid": "407495d0e365a6d370a590edfaa4fad9", "score": "0.5594681", "text": "public String httpPost(final String urlToServer, final List<BasicNameValuePair> parameterList) throws IOException {\n\t\tfinal HttpPost request = new HttpPost(urlToServer);\n\t\tfinal ResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\tfinal UrlEncodedFormEntity formParameters = new UrlEncodedFormEntity(parameterList);\n\t\trequest.setEntity(formParameters);\n\t\tfinal String responseBody = client.execute(request, responseHandler);\n\t\treturn responseBody;\n\t}", "title": "" }, { "docid": "1c81ae0d8f96fb0f5485302229ec729f", "score": "0.5587588", "text": "public HttpResponse postData() {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\"http://89.208.84.235:31080/api/v1/invoice/\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\n nameValuePairs.add(new BasicNameValuePair(\"amount\", \"10\"));\n nameValuePairs.add(new BasicNameValuePair(\"currencyCode\", \"810\"));\n nameValuePairs.add(new BasicNameValuePair(\"description\", \"zaprosic\"));\n nameValuePairs.add(new BasicNameValuePair(\"number\", \"123123dsfsdf2\"));\n nameValuePairs.add(new BasicNameValuePair(\"payer\", \"5774e24d8d4e1d6636d769b47fc5a1161cc6133c\"));\n nameValuePairs.add(new BasicNameValuePair(\"recipient\", \"34d63a8494c444dabe650689f194e5e118d2d936\"));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n return response;\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n return null;\n }", "title": "" }, { "docid": "e483c99053a2ffb4ee253b28601fa360", "score": "0.5577545", "text": "public static WebTestClientResponse post(URI uri) {\n return given().post(uri);\n }", "title": "" }, { "docid": "0cbeb9e9c4dfb2391e12b5e5cbbfe214", "score": "0.5569961", "text": "void post(Object requestEntity) throws UniformInterfaceException;", "title": "" }, { "docid": "1a4f2a8ab7470cbc6d7eb646de898321", "score": "0.556047", "text": "private static String sendAndGetPayload(String targetURL, String jsonPost) {\n\t\tSystem.out.println(\"Post:\" + jsonPost); //to see progress\n\t URL url;\n\t HttpURLConnection connection = null; \n\t try {\n\t //Creates the url connection\n\t url = new URL(targetURL);\n\t connection = (HttpURLConnection)url.openConnection();\n\t connection.setRequestMethod(\"POST\");\n\t connection.setRequestProperty(\"Content-Type\", \n\t \"application/json\");\n\t connection.setRequestProperty(\"Content-Length\", \"\" + jsonPost.length());\n\t connection.setDoInput(true);\n\t connection.setDoOutput(true);\n\n\t //Send request\n\t OutputStream wr = connection.getOutputStream();\n\t wr.write(jsonPost.getBytes());\n\t wr.close ();\n\n\t //Get Response after sending\n\t InputStream is = connection.getInputStream();\n\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t String line;\n\t StringBuffer response = new StringBuffer(); \n\t \n\t boolean first = true; //so newline is not put before \n\t while((line = rd.readLine()) != null) {\n\t \tif (!first) response.append('\\n'); //\n \t\tfirst = false;\n\t response.append(line);\n\t }\n\t rd.close();\n\t System.out.println(\"Response: \" + response.toString()); //to see results\n\t return response.toString();\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t } finally {\n\t if(connection != null) connection.disconnect(); //so it always closes connection\n\t }\n\t}", "title": "" }, { "docid": "14634684100a1615afbff84a91320840", "score": "0.5554335", "text": "public static String makePostRequest(String url, String rawPayload, List<NameValuePair> headers) {\n HttpPost httppost;\n HttpClient client;\n InputStream inputStream = null;\n\n //make post request,\n try {\n client = new DefaultHttpClient();\n httppost = new HttpPost(url);\n\n //adding data to post request\n StringEntity entity = new StringEntity(rawPayload);\n entity.setContentType(new BasicHeader(\"Content-Type\",\n \"application/json\"));\n httppost.setEntity(entity);\n\n // add headers to request if needed\n if ((headers != null) && (headers.size() > 0)) {\n for (NameValuePair header : headers) {\n httppost.addHeader(header.getName(), header.getValue());\n }\n }\n\n //execute post request\n HttpResponse response = client.execute(httppost);\n inputStream = response.getEntity().getContent();\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Http connection encountered error.\");\n e.printStackTrace();\n return null;\n }\n\n //convert response to string\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, \"iso-8859-1\"), 8);\n StringBuilder sb = new StringBuilder();\n sb.append(reader.readLine() + \"\\n\");\n\n String line = \"0\";\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n inputStream.close();\n String ret = sb.toString();\n Log.d(\"log_tag\", \"String gotten from post: \" + ret);\n return ret;\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Error converting result to string.\");\n return null;\n }\n }", "title": "" }, { "docid": "28ae38f87fcb7ede27c8862757ebcf06", "score": "0.5549525", "text": "public static String makePostRequest(String url, List<NameValuePair> params) {\n HttpPost httppost;\n HttpClient client;\n InputStream inputStream = null;\n\n //make post request,\n try {\n client = new DefaultHttpClient();\n httppost = new HttpPost(url);\n\n //adding data to post request\n httppost.setEntity(new UrlEncodedFormEntity(params));\n\n //execute post request\n HttpResponse response = client.execute(httppost);\n inputStream = response.getEntity().getContent();\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Http connection encountered error.\");\n e.printStackTrace();\n return null;\n }\n\n //convert response to string\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, \"iso-8859-1\"), 8);\n StringBuilder sb = new StringBuilder();\n sb.append(reader.readLine() + \"\\n\");\n\n String line = \"0\";\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n inputStream.close();\n String ret = sb.toString();\n Log.d(\"log_tag\", \"String gotten from post: \" + ret);\n return ret;\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Error converting result to string.\");\n return null;\n }\n }", "title": "" }, { "docid": "cd723c5fcc9f06ef3e34236db2c60895", "score": "0.55394846", "text": "public InputStream post(URL url, String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) throws IOException {\n return new HTTPRequest(url).post(name1, value1, name2, value2, name3, value3, name4, value4);\n }", "title": "" }, { "docid": "21bd956d798bb81738f553d6885b8874", "score": "0.5532319", "text": "private void makePostRequest(Order Order) {\r\n\r\n\t\t// changing the to xml\r\n\t\tString str = getOrderAsXML(Order);\r\n\r\n\t\ttry {\r\n\t\t\t// Making the connection\r\n\t\t\turl = new URL(resourceBaseURL + \"insertRental\");\r\n\t\t\tcon = (HttpURLConnection) url.openConnection();\r\n\t\t\t// Setting the requested type to POST\r\n\t\t\tcon.setRequestMethod(\"POST\");\r\n\t\t\tcon.setRequestProperty(\"Content-Type\", \"application/xml\");\r\n\r\n\t\t\tcon.setDoOutput(true);\r\n\t\t\tOutputStream output = new BufferedOutputStream(con.getOutputStream());\r\n\t\t\toutput.write(str.getBytes());\r\n\t\t\toutput.flush();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Error\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "03fc3e48dc0960bf3b4bf467c2c1b1e7", "score": "0.55283076", "text": "public JusibeResponse performPostRequest(String relativeUrl, Map<String, String> data) \n throws UnsupportedEncodingException, IOException {\n HttpPost request = new HttpPost(baseURL + relativeUrl);\n\n // add header\n request.setHeader(\"User-Agent\", USER_AGENT);\n request.setHeader(\"Authorization\", \"Basic \" + encoding);\n \n List<NameValuePair> urlParameters = new ArrayList<NameValuePair>();\n urlParameters.add(new BasicNameValuePair(\"to\", data.get(\"to\")));\n urlParameters.add(new BasicNameValuePair(\"from\", data.get(\"from\")));\n urlParameters.add(new BasicNameValuePair(\"message\", data.get(\"message\")));\n request.setEntity(new UrlEncodedFormEntity(urlParameters));\n\n response = client.execute(request);\n responseCode = response.getStatusLine().getStatusCode();\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null)\n result.append(line);\n \n \n return new JusibeResponse(responseCode, result.toString()); \n }", "title": "" }, { "docid": "c3aea21d4b46d44137f4be272b3ac508", "score": "0.5517861", "text": "public void doPost(HttpServletRequest request,HttpServletResponse response)\n throws java.io.IOException\n {\n\tdoGet(request, response);\n }", "title": "" }, { "docid": "9089c57fba76262211d38b2c065b767f", "score": "0.55165", "text": "static void sendPostState() {\n\n\n\n // var values = new HashMap<String, String>() {{\n// put(\"state\", String.valueOf(ActionAgent.getAState()));\n// }};\n//\n// var objectMapper = new ObjectMapper();\n// String requestBody = objectMapper\n// .writeValueAsString(values);\n//\n// HttpClient client = HttpClient.newHttpClient();\n// HttpRequest request = HttpRequest.newBuilder()\n// .uri(URI.create(\"https://httpbin.org/post\"))\n// .POST(HttpRequest.BodyPublishers.ofString(requestBody))\n// .build();\n//\n// HttpResponse<String> response = client.send(request,\n// HttpResponse.BodyHandlers.ofString());\n//\n// System.out.println(response.body());\n\n\n }", "title": "" }, { "docid": "860fbadca766936e670191f9f05952f5", "score": "0.55113316", "text": "private String sendHttpPost(List<NameValuePair> arguments) {\r\n\t\tif (!isOnline())\r\n\t\t\treturn null;\r\n\t\tHttpPost post = new HttpPost();\r\n\t\tString result = null;\r\n\t\ttry{\r\n\t\t\tpost.setURI(new URI(Resources.WBWUrl+\"/index.php\"));\r\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(arguments));\r\n\t\t\tHttpResponse response = client.execute(post);\r\n\t\t\tresult = getResponseBody(response.getEntity());\r\n\t\t\tresponse.getEntity().consumeContent();\r\n\t\t}\r\n\t\tcatch (URISyntaxException e){\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tcatch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "a802127ae13e27c2c25d8dc93084bf7f", "score": "0.55029976", "text": "static private String postCall(String uri) {\n HttpClient client = HttpClients.createDefault();\n\n try {\n //Build Appropriate URI using Apache Utils\n URIBuilder builder = new URIBuilder(uri);\n //Request Params can be added if required.\n //builder.addParameter('paramName', paramString);\n\n //Build URI After adding Parameters\n String builtUri = builder.build().toString();\n //For Post Method: HttpPost\n HttpPost httpPost = new HttpPost(builtUri);\n //Add Headers to Post Request\n //httpPost.addHeader(HttpHeaders.ACCEPT, \"application/json\");\n\n String jsonBody = \"{\\\"name\\\":\\\"Prashant\\\",\\\"salary\\\":\\\"123\\\",\\\"age\\\":\\\"22\\\"}\";\n StringEntity entity = new StringEntity(jsonBody);\n\n //Add body to Post Request\n httpPost.setEntity(entity);\n\n //Execute client for REST Call\n HttpResponse httpResponse;\n httpResponse = client.execute(httpPost);\n\n //Check StatusCode for Success (200)\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode < 200 || statusCode >= 300) {\n //Handle Status Code other than 2XX here\n System.out.println(\"Request Did Not Succeed\");\n return \"Status:\" + statusCode;\n }\n\n //Get Response Body\n //Print/ Return Response\n return EntityUtils.toString(httpResponse.getEntity());\n\n }\n catch (URISyntaxException e) {\n //Trigger when URI Builder Fails\n e.printStackTrace();\n }\n catch (ClientProtocolException e) {\n //Trigger when client Execute Fails\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n return \"Exception Occured\";\n }", "title": "" }, { "docid": "6d5e0ff3e3205270da4196f83b1c9f50", "score": "0.54743886", "text": "public void process() throws HTTPException {\n info.requestMethod = METHOD_POST;\n\n // Get HTTPObject that is addressed by the URI\n object = HTTPObject.getHTTPObject(response, info, uri, bos, bis);\n\n // HTTP/0.9 did not know about POST so we do not need to check the version\n info.status = HTTPStatus.OK;\n response.printStatus(bos, info.serverProtocol, info.status);\n if (object.isHeadersGenerated()) {\n response.printHeaders(bos);\n\n // The headers have been written, now let the object do the rest\n } \n object.retrieve();\n }", "title": "" }, { "docid": "8af89ada0d7cbc74bc61303244d9ca68", "score": "0.5464832", "text": "public static String postByHttpURL(String url,String charset, Map<String, String> params) {\n\t\treturn postByHttpURL(url,charset, params,null);\n\t}", "title": "" }, { "docid": "ba362f997f5f96c11ca01a3e79a10b83", "score": "0.544759", "text": "public void run() {\n\t\t\t\tString urlEncode=\"\";\n\t\t\t\tURLEncodedPostData urlEncoder = new URLEncodedPostData(\"UTF-8\", false);\n\t\t\t\turlEncoder.setData(url);\n\t\t\t\turlEncode = urlEncoder.toString();\n\t\t\t\tsendPostRequestWithCookie(urlEncode, data, method, callback);\n\t\t\t}", "title": "" }, { "docid": "a16c7f7d5598d107eef8447d0dce5b2c", "score": "0.54411906", "text": "public void run() {\n\t\t\t\tString urlEncode=\"\";\n\t\t\t\tURLEncodedPostData urlEncoder = new URLEncodedPostData(\"UTF-8\", false);\n\t\t\t\turlEncoder.setData(url);\n\t\t\t\turlEncode = urlEncoder.toString();\n\t\t\t\tsendPostRequest(urlEncode, data, method, callback);\n\t\t\t}", "title": "" }, { "docid": "c10a674d7701ba8ebaa0687c9f8e61d8", "score": "0.54385006", "text": "public String postResponse() {\n\n String output = \"\";\n try {\n HttpPost httpPost = new HttpPost(PATH);\n httpPost.setEntity(new UrlEncodedFormEntity(PARAMS));\n CloseableHttpClient closeableHttpClient = getSSLClient();\n HttpResponse response = closeableHttpClient.execute(httpPost);\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new RuntimeException(\"Failed : HTTP error code : \" + response.getStatusLine().getStatusCode());\n }\n output = EntityUtils.toString(response.getEntity());\n closeableHttpClient.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return output;\n }", "title": "" }, { "docid": "85c03c372f38906d05e241e9c38f1e03", "score": "0.5434053", "text": "public HttpRes doPost(HttpPost httpPost, String url, UrlEncodedFormEntity entity, String charset){\n try{\n// httpClient = new SSLClient();\n // 创建Httpclient对象\n CloseableHttpClient httpClient = HttpClients.createDefault();\n try {\n //设置参数\n httpPost.setEntity(entity);\n HttpResponse response = httpClient.execute(httpPost);\n return new HttpRes(response);\n } finally {\n HttpClientUtils.closeQuietly(httpClient);\n }\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "09b24676e0b94a6d861dfac80ebc7348", "score": "0.54294384", "text": "private ResponseEntity<String> doPost(Config config) {\n\n RestTemplate restTemplate = new RestTemplate();\n LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<>();\n config.getParams().forEach(innerMap -> innerMap.forEach(params::add));\n\n UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(config.getUrl());\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\n\n HttpEntity<LinkedMultiValueMap<String, String>> requestEntity =\n new HttpEntity<>(params, headers);\n\n return restTemplate.postForEntity(\n builder.build().encode().toUri(),\n requestEntity,\n String.class);\n }", "title": "" }, { "docid": "03323dfd94ddbef6bbe2f9f03004d244", "score": "0.5418382", "text": "public void doPost(\n HttpServletRequest request, HttpServletResponse response, Credential googleCredential)\n throws IOException, ServletException {\n response.sendError(400, \"POST is not supported\");\n }", "title": "" } ]
82632e8f01a42546fcb3bcd23d88bd66
method to run when the button is presseed
[ { "docid": "71742704b0cef4f6cc56132ddb8cf030", "score": "0.0", "text": "public void clickFunction(View view){\n Button button = (Button)findViewById(R.id.guessButton);\n button.setText(\"Guess\"); //sets the button text to Guess every time button is pressed\n\n EditText numInput = (EditText) findViewById(R.id.numText);\n int numEntered = Integer.parseInt(numInput.getText().toString()); //set text entered by user to integer\n\n //conditions set to determine if the number is too high or low\n if(numEntered > rnum) {\n if(numEntered > 20){\n makeToast(\"Invalid: Number is out of range. Enter another number between 1 - 20.\");\n numInput.getText().clear();\n button.setText(\"Guess again\");\n counter++;\n }else {\n Log.i(\"Info:\", \"Too high.\");\n makeToast(\"Too high. Enter another number.\");\n numInput.getText().clear();\n button.setText(\"Guess again\");\n counter++;\n }\n\n Log.i(\"Info:\", \"Too high.\");\n\n }else if(numEntered < rnum){\n if(numEntered < 1){\n makeToast(\"Number is out of range. Enter another number between 1 - 20.\");\n numInput.getText().clear();\n button.setText(\"Guess again\");\n counter++;\n }else {\n makeToast(\"Too low. Enter another number.\");\n numInput.getText().clear();\n button.setText(\"Guess again\");\n counter++;\n }\n\n Log.i(\"Info:\", \"Too low.\");\n\n //sets button text to play again if correct number is selected and displays the number of attempts and generates a new random number\n }else if(numEntered == rnum) {\n makeToast(\"You got it in \" + counter + \" tries! \" + \"The number was: \" + rnum);\n button.setText(\"Play again\");\n numInput.getText().clear();\n rnum = (int) (Math.random() * ((20 - 1) + 1)) + 1;\n\n Log.i(\"Info:\", \"Correct.\");\n }\n }", "title": "" } ]
[ { "docid": "294dd8e59d595534da9c9aab8cc5620a", "score": "0.6960872", "text": "@Override\n public void setOnClickButton() {\n\n exam.paste(newExam);\n ListDB.sortExams(getSubject());\n ListDB.saveData(getActivity());\n }", "title": "" }, { "docid": "736fe82bdefcb60a9130924d9412699a", "score": "0.6944391", "text": "public void onStartButtonClicked() {\r\n\t\t\r\n\t\trounds++;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2281b626cc78b818a7fe506658f58e43", "score": "0.6856093", "text": "protected void _updateButton() {\n }", "title": "" }, { "docid": "2281b626cc78b818a7fe506658f58e43", "score": "0.6856093", "text": "protected void _updateButton() {\n }", "title": "" }, { "docid": "d861b79019796a3905ac63043e625736", "score": "0.6816171", "text": "private void after() {\n startButton.setText(\"Try Again?\");\n startButton.setVisible(true);\n startButton.requestFocus();\n startButton.setOnAction(actionEvent -> before());\n clickArea.setFill(Color.WHITE);\n clickArea.removeEventHandler(KeyEvent.KEY_PRESSED, handleEnterFail);\n clickArea.removeEventHandler(KeyEvent.KEY_PRESSED, handleEnter);\n clickArea.setOnMouseClicked(mouseEvent -> {});\n System.out.println(\"After method called\");\n }", "title": "" }, { "docid": "5200475d360fd36051327d8804f690ea", "score": "0.672638", "text": "@Override\n public void run() {\n btn_enable_flag = 1;\n }", "title": "" }, { "docid": "2467143b46fc57848d979132db1dc34c", "score": "0.67128944", "text": "@Override\n\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\t}", "title": "" }, { "docid": "f90e467e28056a12276809fcae961ebd", "score": "0.6647957", "text": "void onSitumButtonClicked();", "title": "" }, { "docid": "68f2a1567eb69e85c405976b95cf7bda", "score": "0.6629131", "text": "@Override\n public void buttonPressed(Button b) {\n }", "title": "" }, { "docid": "e0be6ebf12529fb216e9eef1776b2625", "score": "0.660891", "text": "@Override\n\tpublic void buttonClick(ClickEvent event) {\n\t\t\n\t}", "title": "" }, { "docid": "e0be6ebf12529fb216e9eef1776b2625", "score": "0.660891", "text": "@Override\n\tpublic void buttonClick(ClickEvent event) {\n\t\t\n\t}", "title": "" }, { "docid": "dcf8eb2970f84810b117a50933ba2892", "score": "0.65868914", "text": "public void onFinish() {\n if (flipper.getDisplayedChild() == 1) {\n buttonDone.performClick();\n } else {\n dsFinishBtn.performClick();\n }\n }", "title": "" }, { "docid": "dcf8eb2970f84810b117a50933ba2892", "score": "0.65868914", "text": "public void onFinish() {\n if (flipper.getDisplayedChild() == 1) {\n buttonDone.performClick();\n } else {\n dsFinishBtn.performClick();\n }\n }", "title": "" }, { "docid": "be83c0832de8626f948bdfaecf0205cc", "score": "0.65813625", "text": "private void initButtonInteractions() {\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (currUser.getStudentId() == selectedUser.getStudentId()) {\n\n student = new Student(\"anonymous\", \"\", \"00000000\", \"BCS\", \"default\");\n status.setText(selectedUser.getStudentName() + \"has been deleted! \"\n + \"\\n You are using temporary account now.\");\n users.deleteUser(selectedUser);\n } else if (selectedUser != null) {\n users.deleteUser(selectedUser);\n status.setText(selectedUser.getStudentName() + \"has been deleted! \"\n + \"\\n You are using temporary account now.\");\n }\n updatePanel();\n }\n });\n }", "title": "" }, { "docid": "46985b1629413c8a44b778477dc5507d", "score": "0.6580472", "text": "public void run() {\n TextView tbtn = getTextViewFromIdString(buttonIdFinal + \"t\");\n tbtn.setText(niveauString);\n }", "title": "" }, { "docid": "05a0e5549c7273283040a4da63f11e89", "score": "0.65603226", "text": "public void tryButton() {\n //add button listener\n //if pressed then all required data are saved\n\n this.run.setOnMouseClicked(button -> {\n try {\n getData();\n fieldsStatOnRun();\n DataScraper dataScraper = new DataScraper(shops);\n // on DataScraper class, fixing DataScraper class so it can scrape only 1 shoptosearch instead of of list\n// if (shops.size() == 1) {\n// if (dataScraper.scrapeKeyword())\n// }\n System.out.println(shops);\n //To be continue\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n this.stop.setOnMouseClicked(button -> {\n fieldsStatOnStop();\n });\n }", "title": "" }, { "docid": "916355899675345408b364aaab99dc58", "score": "0.65416265", "text": "@Override\r\n\tpublic void buttonPushed() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6dfc88f9553827f0c83a5aa2000eecca", "score": "0.6521536", "text": "@Override\n public void buttonClick(ClickEvent event) {\n\n }", "title": "" }, { "docid": "3efc69664d33265515d29d7e05511ec1", "score": "0.6506521", "text": "@Override\n public void run() {\n button.performClick();\n }", "title": "" }, { "docid": "4b5479280381914e36198d7f36a82427", "score": "0.6468569", "text": "private void btnResultActionPerformed(java.awt.event.ActionEvent evt) {\n pressBtnResult();\n }", "title": "" }, { "docid": "a6d12907a9823a7722b0f4b0e52cfeb5", "score": "0.6461006", "text": "private void setButton() {\n buttonCancel.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n\n buttonSave.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if(isNew){\n controller.saveNewUserType();\n }else{\n controller.saveUpdateUserType();\n }\n }\n });\n }", "title": "" }, { "docid": "9285d952bfe4400d2b182ce568cc1983", "score": "0.6450902", "text": "public void button() {\r\n\t\tbtnPlayAgain.setBounds(450, 200, 100, 50);\r\n\t\tbtnPlayAgain.addActionListener(new btnPlayAgain());\r\n\r\n\t\tbtnExit.addActionListener(new btnExit());\r\n\t\tbtnExit.setBounds(450, 300, 100, 50);\r\n\r\n\t\tadd(btnExit);\r\n\t\tadd(btnPlayAgain);\r\n\t}", "title": "" }, { "docid": "16846d4ec95edbeeb353e86ed2ec7445", "score": "0.64300776", "text": "@Override\n public boolean isFinished() {\n return false; //if button is still pressed\n }", "title": "" }, { "docid": "5b362c6e6ee207c2c10f460b5df4e5f4", "score": "0.64293957", "text": "public void okayButton_ActionEvents() {\r\n\r\n ButtonModel selected = buttonGroup.getSelection();\r\n String fileName = selected.getActionCommand();\r\n\r\n GemCutter.getPreferences().put(GemCutter.BACKGROUND_FILE_NAME_PREF_KEY, fileName);\r\n \r\n gemCutter.resetBackground();\r\n }", "title": "" }, { "docid": "5fb39470373bcd4272d7f9bd81fc5ed1", "score": "0.64034283", "text": "abstract protected void _updateButton();", "title": "" }, { "docid": "36654912a2a24a16795b3f9a9c0a06ea", "score": "0.6381987", "text": "public void okayButton_ActionEvents() {\r\n GemCutter.getPreferences().putBoolean(IntellicutManager.INTELLICUT_POPUP_ENABLED_PREF_KEY, getAutomaticPopupCheckBox().isSelected());\r\n GemCutter.getPreferences().putInt(IntellicutManager.INTELLICUT_POPUP_DELAY_PREF_KEY, getPopupDelaySlider().getValue());\r\n }", "title": "" }, { "docid": "bf891344254b2fb6ebc05798a574b35e", "score": "0.63673687", "text": "public void pressed() {\n if (!this.isConfirm) {\n this.isConfirm = true;\n System.out.println(\"\\nAbsent successful...\");\n } else\n System.out.println(\"\\nYou've been absent\");\n }", "title": "" }, { "docid": "90e24f1d5b2f69a32709c4b27e0e5d11", "score": "0.6366191", "text": "public void onButtonPressed() {\n if (mListener != null) {\n mListener.onReservePlace(reservation);\n }\n }", "title": "" }, { "docid": "fa2a9c545fa7360679f41369d5c168c2", "score": "0.63609624", "text": "void onButtonClick(ClickEvent e);", "title": "" }, { "docid": "b7ca3a414d893e1f21782b0ef854bb9f", "score": "0.63583785", "text": "protected abstract void onButtonCreated( Buttons type, Button button );", "title": "" }, { "docid": "bbc69b8d119a9861c8d48afbbc24b39d", "score": "0.63525397", "text": "public void buttonPressed(ActionEvent e);", "title": "" }, { "docid": "de7ccbd9b5c7ab53708c0195368d0129", "score": "0.63524324", "text": "@Override\r\n\tpublic void sequenceButtonPressRequest() {\n\t\t\r\n\t}", "title": "" }, { "docid": "66476c2d8a17307335023af9415c43be", "score": "0.63345265", "text": "private void forfeitGameButton() {\n JButton button = createButton(\"Forfeit Game\");\n button.addActionListener(e -> {\n Board.cleanBoard();\n Board.populateBoard();\n ChessGame.addScoreForEnemyColor(myColor);\n ChessGame.gameRunning = false;\n gameHasStarted = false;\n updateGUI();\n });\n }", "title": "" }, { "docid": "ace7272ea0283f9df4e6453bbaeb041b", "score": "0.63296086", "text": "public void run() {\n TextView tbtn = getTextViewFromIdString(buttonIdFinal + \"t\");\n tbtn.setText(cdrString);\n }", "title": "" }, { "docid": "70e338a7b525fc659417d31df9205214", "score": "0.63224685", "text": "@FXML\r\n\tprivate void onHighscoreButtonAction() {\r\n\t\tbusinessMediator.notifyHighscores();\r\n\t}", "title": "" }, { "docid": "0293421d32cc7430ad399459ce3e91c2", "score": "0.6320871", "text": "public void onStartButtonPressed () {\n\t\t/* Find play/pause button */\n\t\tButton niftyElement = nifty.getCurrentScreen().findNiftyControl(\"StartButton\", Button.class);\n\t\t\n\t\t\n\t\tswitch (engineState) {\n\t\t\n\t\tcase PLAYING: \tthis.pauseAnimations();\n\t\t\t\t\t\tengineState = State.PAUSED;\n\t\t\t\t\t\t// Swap old with new text\n\t\t\t\t\t\tniftyElement.setText(\"Play\");\n\t\t\t\t\t\tbreak;\n\t\t\n\t\tcase PAUSED: \tthis.playAnimations();\n\t\t\t\t\t\tengineState = State.PLAYING;\n\t\t\t\t\t\t// Swap old with new text\n\t\t\t\t\t\tniftyElement.setText(\"Pause\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\tcase STOPPED: \tthis.playAnimations();\n\t\t\t\t\t\tthis.listener.onStart();\n\t\t\t\t\t\tengineState = State.PLAYING;\n\t\t\t\t\t\t// Swap old with new text\n\t\t\t\t\t\tniftyElement.setText(\"Pause\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a85dc733799572f279de11a1c7181286", "score": "0.63052016", "text": "@Override\r\n\tpublic void singleButtonPressRequest() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8110fe9cb5014d309890d5aea4785ae9", "score": "0.62926614", "text": "public final void postShow() {\n this.uiController.setButtonActions(getButtonApplyAction(), getButtonReloadAction());\n this.uiController.setButtonDisableProperties(getButtonApplyDisableProperty(), getButtonReloadDisableProperty());\n this.postShowActivity();\n }", "title": "" }, { "docid": "24209e80dd19490058da9fd38da6f3bd", "score": "0.62859124", "text": "@Override\n public void onClickButtonYes() {\n }", "title": "" }, { "docid": "0e067e953b9bfacecc0cdb3d83fe2ae6", "score": "0.6278503", "text": "private void setUpButton(){\n attempt = 0; //reset attempt to 0\n totalScoreLabel.setText(\"\"); //clear label\n }", "title": "" }, { "docid": "1a3c102ed8600d66c05f8eee8cb84ac3", "score": "0.62776244", "text": "private void handleButton() {\n progressProperty.setValue(progressProperty.get() + 0.1);\n if (!service.showNextWord()) {\n // finish.. clean up\n wordLabel.textProperty().unbind();\n wordWrongButton.visibleProperty().unbind();\n wordCorrectButton.visibleProperty().unbind();\n progress.progressProperty().unbind();\n\n wordLabel.setText(\"Ende\");\n wordCorrectButton.setVisible(false);\n wordWrongButton.setVisible(false);\n }\n }", "title": "" }, { "docid": "2f20aac221c9724c7f6514ec9f4ef62b", "score": "0.62766415", "text": "public void doWithBtnHighScore() {\n\t}", "title": "" }, { "docid": "1bd7be6c9e302d9ee00736fc2575962f", "score": "0.6266429", "text": "public static void setStatus()\n {\n buttonPressed = false;\n }", "title": "" }, { "docid": "0eb2577a2e9d7418b9b5cdcfc2d112bb", "score": "0.62404287", "text": "void unlockButton() {\n super.unlockButton(mainGameButton,personalBoard,buttonPlaceFamiliar);\n submit.setOnAction(event -> doHarvester());\n }", "title": "" }, { "docid": "045f6181186460da8db4cc1f7d7ce73e", "score": "0.6238567", "text": "public void onButtonClick() {\n\t\t\r\n\t\tdouble requestTime = def.js.Date.now();\r\n\t\tObject body = this.newRequestBody();\r\n\t\tObservable<Object> ores = this.http.post(this.url, body);\r\n\r\n\t\tores.toPromise().then((json) -> {\r\n\t\t\tlog.debug(json);\r\n\t\t\tthis.onResponse(requestTime, body, json);\r\n\t\t\tlog.debug(\"post response:\" + json);\r\n\t\t\treturn null;\r\n\t\t})._catch((Object t) -> {\r\n\t\t\tlog.error(\"catched exception\");\r\n\t\t\tlog.error(t);\r\n\t\t\treturn null;\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "51600f7cd967e253f0fac771ebd9d3b1", "score": "0.6234693", "text": "@Override\n\tpublic void onClick() {\n\t\tSystem.out.println(\"전화걸기\");\n\t}", "title": "" }, { "docid": "3452b2375d5558ec5eda1a2b6e33a339", "score": "0.6227295", "text": "public void pressTVButton(){\n state.pressTVButton();\n }", "title": "" }, { "docid": "f970fe8b4e08e3b962b6445b9a9b93aa", "score": "0.62246394", "text": "public void pressMovieButton(){\n state.pressMovieButton();\n }", "title": "" }, { "docid": "856c60297951293005fedd50e9d1c7e2", "score": "0.6222034", "text": "void change( Button button ){}", "title": "" }, { "docid": "87dbe35d2596551003ad5a4db20a1325", "score": "0.62178576", "text": "@Override\n\n public void OnClick(){\n launch();\n }", "title": "" }, { "docid": "0113d846ec87a40080cbfdc7b0f3e1fb", "score": "0.6209421", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Player_step(\"p\");\n\t\t\t\tbutP.setEnabled(false);\n\t\t\t}", "title": "" }, { "docid": "d5ccccb2d052e33168a42c98349b9d71", "score": "0.62054026", "text": "public void mc4()\n {\n if (action == false)\n // draw ----------------------------------------\n {\n this.button.setBounds(Globals.mainPanelWidth / 2 - 60, 0, 120, 50);\n this.text = \"Follow the signal\";\n }\n else\n // action --------------------------------------\n {\n Globals.stats.staticSceneID = 2;\n }\n }", "title": "" }, { "docid": "e37358dd9caa8300d735a579a6ca48cc", "score": "0.61946076", "text": "public void onResetButtonPressed () {\n\t\t\n\t\t/* Find play/pause button */\n\t\tButton niftyElement = nifty.getCurrentScreen().findNiftyControl(\"StartButton\", Button.class);\n\t\t\n\t\tniftyElement.setText(\"Start\");\n\t\t\n\t\tthis.rootNode.detachAllChildren();\n\t\tthis.guiNode.detachAllChildren();\n\t\tthis.inputManager.clearMappings();\n\t\tthis.listener.onReset();\n\t\t\n\t}", "title": "" }, { "docid": "4f21a0867fd35bc1bddbc4657eb9bd5d", "score": "0.61884475", "text": "void enableStayButton();", "title": "" }, { "docid": "e6109bd348a98aa0a47a63336b6be577", "score": "0.61849767", "text": "public void actionPerformed(ActionEvent e)\n {\n newGameButtonPressed(true);\n }", "title": "" }, { "docid": "fe4c769303b3f23a24bf0e380ab7d374", "score": "0.61779505", "text": "@Override\n\t\tpublic void reset() {\n\t\t\t// ??????? do we really wanna do anything when they hit this button?\n\t\t\t// sure seems like it'd just fuck everything up if they hit it in\n\t\t\t// the middle of a program.\n\t\t}", "title": "" }, { "docid": "2c6d10f1dee80a2f7649e6d385c3caac", "score": "0.6157764", "text": "public void completeButton(ActionEvent event) throws IOException {\r\n\t\tGuiBasedApp.completeSelectedTask();\r\n\t\t//changing the scene to the home screen\r\n\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t}", "title": "" }, { "docid": "d1a84dade082cd1f59d257d72c277437", "score": "0.6151908", "text": "@Override\n\tprotected void fireButtonOk() {\n\n\t}", "title": "" }, { "docid": "88036d1684de9daff1f402a8900c327e", "score": "0.6149049", "text": "void enableUncoverButton();", "title": "" }, { "docid": "399dd7d1efbf8f9792ced5044570acc4", "score": "0.61476254", "text": "void onStepIntoButtonClicked();", "title": "" }, { "docid": "f6fdace67a51d53a60a1691d4599fcc2", "score": "0.6146971", "text": "public void mc5()\n {\n if (action == false)\n // draw ----------------------------------------\n {\n this.button.setBounds(Globals.mainPanelWidth / 2 - 60, 0, 120, 50);\n this.text = \"Continue\";\n }\n else\n // action --------------------------------------\n {\n Globals.stats.staticSceneID = 3;\n }\n }", "title": "" }, { "docid": "a6ed61055cd0b7537ec2b0dda7486608", "score": "0.61450946", "text": "public void ButtonBehaviourMethod() {\n\n try {\n PPMinimizeBtn.setOpaque(false);\n PPMinimizeBtn.setContentAreaFilled(false);\n PPMinimizeBtn.setBorderPainted(false);\n\n PPExitBtn.setOpaque(false);\n PPExitBtn.setContentAreaFilled(false);\n PPExitBtn.setBorderPainted(false);\n\n } catch (Exception e) {\n Logger.getLogger(SalesJF.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "title": "" }, { "docid": "7ba9ae0849e68b1d388f5f3c7332e0a2", "score": "0.6130454", "text": "private Node setUpButton() {\n confirmButton = new Button(\"Confirm\");\n buttonBox = new HBox(15);\n buttonBox.setAlignment(Pos.BOTTOM_RIGHT);\n buttonBox.getChildren().add(confirmButton);\n\n confirmButton.setOnAction(event -> {\n updateDatabase();\n getStage().hide();\n });\n\n return buttonBox;\n }", "title": "" }, { "docid": "b517819b017e5792939db240d2ac6068", "score": "0.61256576", "text": "void settingsButtonClicked();", "title": "" }, { "docid": "53c631a04e02cfc5b6f8a2097446f3ab", "score": "0.6119435", "text": "private void setupRecordButton(){\n recordButton = (Button)findViewById(R.id.btnRecord);\n ChangeRecordButtonText();\n //2. Set the click listener to run my code\n recordButton.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v){\n Recording=!Recording;\n ChangeRecordButtonText();\n if(Recording){\n initRecordFile();\n }\n }\n });\n }", "title": "" }, { "docid": "d57dedfd94cb5edcfc694752d454a188", "score": "0.61067885", "text": "public void pressNetflixButton(){\n state.pressNetflixButton();\n }", "title": "" }, { "docid": "8e155a7f8d585b42c596c2c7ea216c38", "score": "0.6100761", "text": "SendButtonPress(){}", "title": "" }, { "docid": "b97c2a97ec01a225bffaec7a94102e02", "score": "0.610014", "text": "@Action\n public final void onButtonChoose() {\n this.setSelectedThemeEntity(this.currentThemeEntity);\n this.userSelected = true;\n this.dispose();\n }", "title": "" }, { "docid": "eb24e0e20f8cab9231f740d208832208", "score": "0.6093587", "text": "public void onClick(View v) {\n\r\n\r\n if (!Paper.book ( ).exist ( \"FirstTimeUser\" )) {\r\n\r\n Paper.book ( ).write ( \"FirstTimeUser\", \"yes\" );\r\n\r\n System.out.println ( \"Inside dont\" );\r\n\r\n sendImei ( );\r\n\r\n // getKmlPointsFromServer ( );\r\n\r\n walk_btn.setEnabled ( false );\r\n pb_progressBar.setVisibility ( View.VISIBLE );\r\n tv_loadingMsg.setVisibility ( View.VISIBLE );\r\n\r\n } else {\r\n\r\n System.out.println ( \"Inside exist\" );\r\n\r\n\r\n walk_btn.setEnabled ( false );\r\n pb_progressBar.setVisibility ( View.VISIBLE );\r\n tv_loadingMsg.setVisibility ( View.VISIBLE );\r\n\r\n Intent i = new Intent ( Home_Activity.this, Walk_Activity.class );\r\n startActivity ( i );\r\n overridePendingTransition ( R.anim.right_in, R.anim.left_out );\r\n\r\n new Handler ( ).postDelayed ( new Runnable ( ) {\r\n @Override\r\n public void run() {\r\n pb_progressBar.setVisibility ( View.GONE );\r\n tv_loadingMsg.setVisibility ( View.GONE );\r\n walk_btn.setEnabled ( true );\r\n\r\n }\r\n }, 2000 );\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "22db405f10a6fa4a553c175b4849ea90", "score": "0.60934424", "text": "@Override\n\tpublic boolean performClick() {\n\t\tsuper.performClick();\n\n\t\tLog.e(\"vortex\",\"Gets here!\");\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "cdf986c28c092813e32124cc8fbf75c2", "score": "0.6093029", "text": "boolean onShutterButtonClick();", "title": "" }, { "docid": "3a4c0bbe1e600b04d96ae932fee7ac1f", "score": "0.6091689", "text": "private void processButtonAction(ActionEvent e) {\r\n switch (e.getActionCommand()) {\r\n case \"addBtn\":\r\n addEntryToCurrentLibrary();\r\n break;\r\n case \"removeBtn\":\r\n removeEntryFromLibrary();\r\n break;\r\n case \"onlineBtn\":\r\n openWithOnlineDatabase();\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "ff4dc6e1225388740d2697decdb20ea6", "score": "0.6077779", "text": "public void done() {\r\n Toolkit.getDefaultToolkit().beep();\r\n // button.setEnabled(true);\r\n setCursor(null); // turn off the wait cursor\r\n taskOutput.append(\"Done!\\n\");\r\n if (CollectionUtils.isNotEmpty(observeredButtonList)) {\r\n for (JButton aJButton : observeredButtonList) {\r\n aJButton.setEnabled(true);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7a51bdcad15954eb8129e4da5106fe52", "score": "0.6070467", "text": "public void click() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10b04cf249c3fdf5ee7a853817dd030a", "score": "0.6068654", "text": "@FXML\n\tprivate void onBurnButtonPressed() {\n\t\t// Burn only if not currently in idle\n\t\tif(idleButton.isSelected()) burnButton.setSelected(false);\n\t\t// If stopping a burn, stop immediately (start is handled in loop which checks burnButton.isSelected())\n\t\tif(!burnButton.isSelected()) TeensySync.sendConfig(new ConfigValue(EcuEnum.BURN, 0));\n\t}", "title": "" }, { "docid": "dd854b589a18da709b90d939aa9d2d72", "score": "0.6067637", "text": "public void mc16()\n {\n if (action == false)\n // draw ----------------------------------------\n {\n this.button.setBounds(Globals.mainPanelWidth / 2 - 60, 0, 120, 50);\n this.text = \"Continue\";\n }\n else\n // action --------------------------------------\n {\n Globals.stats.staticSceneID = 201;\n }\n }", "title": "" }, { "docid": "4c7b702d45c84300246cfc5d6338353c", "score": "0.6064936", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton_1Acction(e);\n\t\t\t}", "title": "" }, { "docid": "cdb72df3dcc906a06673eca19d01deb6", "score": "0.60648245", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tinfoButton.performClick();\n\t\t\t\t}", "title": "" }, { "docid": "15c1297b89baffcb0cc468e2c149e8c8", "score": "0.60646087", "text": "public void postActionEvent() {\r\n\t\tfireActionPerformed();\r\n\t}", "title": "" }, { "docid": "70b280d7e67ac28b1b9194361dbbad5c", "score": "0.6052002", "text": "private void updateButtons()\n {\n exit.setEnabled(true);\n add.setEnabled(true);\n \n }", "title": "" }, { "docid": "8ccab9bc122901862f8e70cbf20949e4", "score": "0.60505956", "text": "public void mc9()\n {\n if (action == false)\n // draw ----------------------------------------\n {\n this.button.setBounds(Globals.mainPanelWidth / 2 - 60, 0, 120, 50);\n this.text = \"Continue\";\n }\n else\n // action --------------------------------------\n {\n Globals.stats.staticSceneID = 5;\n }\n }", "title": "" }, { "docid": "9eda25c877502048944e83f2d0b846fe", "score": "0.60501385", "text": "@Override\n public void run() {\n parentrelative.setVisibility(View.VISIBLE);\n karpooramgif.setVisibility(View.GONE);\n\n lasttool=\"book\";\n\n stop();\n //start();\n ShowPaymentPopup();\n }", "title": "" }, { "docid": "af1c5c9c935a38d86ed5e7dc17d917e6", "score": "0.6048841", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\t\tprepareMedia();\r\n\t\t\t\t\t\t\t\tinvalidateButtons(true);\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "f8361b7dd21adba35b7c4db69eb1abc7", "score": "0.60479736", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Player_step(\"s\");\n\t\t\t\tbutS.setEnabled(false);\n\t\t\t}", "title": "" }, { "docid": "c794ac3b1f1273f5ceab2511b07ec192", "score": "0.6046291", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Player_step(\"u\");\n\t\t\t\tbutU.setEnabled(false);\n\t\t\t}", "title": "" }, { "docid": "72e77e042728bf50245a3c052f4a2bf9", "score": "0.6043528", "text": "public void prescriptionButtonClick(ActionEvent actionEvent) {\n Main.screenController.setScreen(EnumScreenType.PRESCRIPTIONSERVICE);\n }", "title": "" }, { "docid": "0880f0fa5264eec05b76a2c9d0088daf", "score": "0.6041331", "text": "private void initEvent() {\n\t\tbtn_ok.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tclic_ok.onclick_ok();\n\n\n\t\t\t}\n\t\t});\n\t\tbtn_no.setOnClickListener(new View.OnClickListener() {\n\n\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tclic_no.onclick_no();\n\n\t\t\t\tSharedPreferences preferences = context\n\t\t\t\t\t\t.getSharedPreferences(SHAREDPREFERENCES_NAME,\n\t\t\t\t\t\t\t\tContext.MODE_PRIVATE);\n\t\t\t\tEditor editor = preferences.edit();\n\t\t\t\t// 存入数据\n\t\t\t\teditor.putBoolean(\"isFirstIn\", true);\n\t\t\t\t// 提交修改\n\t\t\t\teditor.commit();\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "81b56477cb871698b3156d7f8a479f52", "score": "0.60406035", "text": "public void press()\n\t{\n\t\tpressed = true;\n\t\tSystem.out.println(\"CallButton from floor \" + floor +\n\t\t\t\t\" was pressed.\");\n\t}", "title": "" }, { "docid": "796346418fa6aee6d29d548b8da876ba", "score": "0.60379314", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "796346418fa6aee6d29d548b8da876ba", "score": "0.60379314", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "cd67b49a667c3acd919bdab10b19a7ea", "score": "0.6033958", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Player_step(\"z\");\n\t\t\t\tbutZ.setEnabled(false);\n\t\t\t}", "title": "" }, { "docid": "1285ce70dc6c7fe79d8e366b5ce918e9", "score": "0.60323536", "text": "@Override\n public void onClick(View view) {\n callButtonClicked();\n }", "title": "" }, { "docid": "3bfda472d4bdc5d559d2166b11ff84b0", "score": "0.6031679", "text": "public void giveButtton() {\r\n this.button = true;\r\n }", "title": "" }, { "docid": "b2b3b66c96f765773c4100c7f07c7824", "score": "0.6026776", "text": "public void userPressConnectButton();", "title": "" }, { "docid": "79c99d4337d16e79977c310dc667e7a9", "score": "0.6026618", "text": "public void click() {\n\t\t_clicked = true;\n\t}", "title": "" }, { "docid": "00dd2e966533dafe4270821c815a1b7d", "score": "0.6023591", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton_4Action(e);\n\t\t\t}", "title": "" }, { "docid": "9902e78d38e8dba7f187195eff06e1d1", "score": "0.6023468", "text": "protected void btnNewButtonActionPerforme() {\n\t}", "title": "" }, { "docid": "d78fb18d4e9956ef4a3ad8eb53de7f51", "score": "0.6020114", "text": "private void singleplayerListener() {\r\n singleplayerBtn.addListener(new ClickListener() {\r\n @Override\r\n public void touchUp(InputEvent e, float x, float y, int point, int button) {\r\n screenPreferences();\r\n singleplayerListener();\r\n }\r\n });\r\n }", "title": "" }, { "docid": "18db3e6bda4b64671a914a3ed71c1355", "score": "0.6016088", "text": "@FXML\r\n\tprivate void onTakeButtonAction() {\r\n\t\tbusinessMediator.notifyTake(roomContentDropDown.getValue());\r\n\t}", "title": "" }, { "docid": "f3b02ffb5409941523251994d8ae63bc", "score": "0.6015926", "text": "public void buttonPressed(String button) {\n\t\tcommands.get(button).execute();\r\n\t}", "title": "" }, { "docid": "9bc48d75b30e31fbaf624c228761147c", "score": "0.6015354", "text": "private void addevents() {\n\t\tbtn_timkiem.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\txuLiTimKiem();\n\t\t\t}\n\t\t});\n\t\t\n\t\tsearchTextField.setOnKeyPressed(new EventHandler<KeyEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(event.getCode()==KeyCode.ENTER) {\n\t\t\t\t\txuLiTimKiem();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtn_refresh.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tpaneHistory.getChildren().clear();\n\t\t\t\tloadThongTin(null);\n\t\t\t}\n\t\t});\n\t}", "title": "" } ]
5d2c9668679dc37f870e36f6f11a0cd1
Optional. Gets a value that indicates whether the database copy is interlink connected.
[ { "docid": "e2b74361c41feeb94fa4ad19fd4c27e9", "score": "0.75162864", "text": "public boolean isInterlinkConnected() {\n return this.isInterlinkConnected;\n }", "title": "" } ]
[ { "docid": "9bec05531dc08ac24e1ffe5f9e88e9c4", "score": "0.66213167", "text": "boolean isConnectedOnly();", "title": "" }, { "docid": "e28a06731550b9a21897cdf7c14fd86e", "score": "0.65758944", "text": "public boolean is_connected() {\r\n\t\treturn is_connected_;\r\n\t}", "title": "" }, { "docid": "a13a64ef87c1dd089dd6e18202ae715c", "score": "0.6524289", "text": "public boolean isConnected() {\r\n\t\treturn is_connected;\r\n\t}", "title": "" }, { "docid": "da5a53e0b90caf00faff1cd5b8bb0b98", "score": "0.64750004", "text": "public boolean isConnected() {\n return (null != dis_);\n }", "title": "" }, { "docid": "212276b13aa0d7be768582c12c035796", "score": "0.6391426", "text": "public boolean isConnected();", "title": "" }, { "docid": "212276b13aa0d7be768582c12c035796", "score": "0.6391426", "text": "public boolean isConnected();", "title": "" }, { "docid": "212276b13aa0d7be768582c12c035796", "score": "0.6391426", "text": "public boolean isConnected();", "title": "" }, { "docid": "212276b13aa0d7be768582c12c035796", "score": "0.6391426", "text": "public boolean isConnected();", "title": "" }, { "docid": "9efdb3563cd82c5608d65f64900d4561", "score": "0.63509774", "text": "public boolean isConnected() {\n\t\treturn connected;\n\t}", "title": "" }, { "docid": "9efdb3563cd82c5608d65f64900d4561", "score": "0.63509774", "text": "public boolean isConnected() {\n\t\treturn connected;\n\t}", "title": "" }, { "docid": "d8e43d386cb707c0987064f3647b2c93", "score": "0.6350109", "text": "public boolean isConnected() {\n\t\treturn isConnected;\n\t}", "title": "" }, { "docid": "5477b2243c59897f333d52f650f45a8b", "score": "0.6349397", "text": "public boolean isConnected() {\r\n\t\treturn connected;\r\n\t}", "title": "" }, { "docid": "5477b2243c59897f333d52f650f45a8b", "score": "0.6349397", "text": "public boolean isConnected() {\r\n\t\treturn connected;\r\n\t}", "title": "" }, { "docid": "9e1f20ee5040dfe464e3fa2d85dff883", "score": "0.63468295", "text": "public boolean isConnectionInfoSaveable() {\n return this.connectionInfoSaveable;\n }", "title": "" }, { "docid": "6b75671cd6b52f4ca2d62b3266729ee3", "score": "0.6333717", "text": "protected boolean isConnected() {\n // WARN: Classes other than TopicIF and AssociationIF\n // must override this method.\n return parent != null;\n }", "title": "" }, { "docid": "81485e1e858114b30428af5b6bcb6733", "score": "0.63290817", "text": "public boolean isCurrentlyConnected() {\n-\t\treturn wasConnectionSupplied ? connection != null : !isClosed;\n+\t\tif ( connection != null ) {\n+\t\t\tif ( connection.isUserSuppliedConnection() ) {\n+\t\t\t\treturn connection.isPhysicallyConnected();\n+\t\t\t}\n+\t\t\telse {\n+\t\t\t\treturn connection.isOpen();\n+\t\t\t}\n+\t\t}\n+\t\telse {\n+\t\t\treturn false;\n+\t\t}", "title": "" }, { "docid": "1c284fd6439ac202a41a2fe7a4f720c1", "score": "0.6319105", "text": "public boolean isConnected() {\n return connected;\n }", "title": "" }, { "docid": "8c06171c44b01b35e5e3d501e6f9a079", "score": "0.6300479", "text": "public boolean isLinked() {\n return mDBApi != null && mDBApi.getSession().isLinked();\n }", "title": "" }, { "docid": "75dd198ba6ce8534a082cf046fc36382", "score": "0.6283966", "text": "public boolean isConnected()\n\t{\n\t\treturn isConnected;\n\t}", "title": "" }, { "docid": "afbbbb7cdd97f50c1f0ddf6652b81caa", "score": "0.62633157", "text": "public boolean isConnected() {\n return master.isConnected();\n }", "title": "" }, { "docid": "e234b23e838409f6a1744d29b5af47c0", "score": "0.62292016", "text": "public void setIsInterlinkConnected(final boolean isInterlinkConnectedValue) {\n this.isInterlinkConnected = isInterlinkConnectedValue;\n }", "title": "" }, { "docid": "c9d112391387b8286f64131e4d1073ea", "score": "0.62287784", "text": "public abstract boolean isConnected() ;", "title": "" }, { "docid": "59f16664aacf363dc71bfebd59aeb0c5", "score": "0.62229913", "text": "public final boolean isConnected() {\n return connected;\n }", "title": "" }, { "docid": "ec30a9e0eb33a65ee198269567bbbbb5", "score": "0.6221796", "text": "public abstract boolean isConnected();", "title": "" }, { "docid": "ec30a9e0eb33a65ee198269567bbbbb5", "score": "0.6221796", "text": "public abstract boolean isConnected();", "title": "" }, { "docid": "ec30a9e0eb33a65ee198269567bbbbb5", "score": "0.6221796", "text": "public abstract boolean isConnected();", "title": "" }, { "docid": "ec30a9e0eb33a65ee198269567bbbbb5", "score": "0.6221796", "text": "public abstract boolean isConnected();", "title": "" }, { "docid": "c06d21e6224f62c3c76baceea8fad541", "score": "0.6182679", "text": "public boolean isConnected() {\r\n\t\treturn reader.isConnected();\r\n\t}", "title": "" }, { "docid": "a86e34cef3251ad8cfd7b148e867c19d", "score": "0.61639434", "text": "public synchronized boolean isConnected() {\n return (mConnected);\n }", "title": "" }, { "docid": "64d8fd3c8682363055607264b0ca1ac9", "score": "0.61603874", "text": "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "64d8fd3c8682363055607264b0ca1ac9", "score": "0.61603874", "text": "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "72b8f2ad15faaed6aa0ecd15cd94d243", "score": "0.61599344", "text": "public boolean isConnected(){\n return connectionStatus == CONNECTION_STATUS.CONNECTED;\n }", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.6146351", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.6146351", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.6146351", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.6146351", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.6146351", "text": "boolean isConnected();", "title": "" }, { "docid": "0440d535fc917fdf18c3be6c227ec498", "score": "0.61392194", "text": "public boolean isConnected() {\n return myConnection != null;\n }", "title": "" }, { "docid": "89cd3c59cf0e9e15222b66fb3933488b", "score": "0.61305493", "text": "@Contract(pure = true)\n private boolean isConnected() {\n for (Link port : this.ports) {\n if (port != null && port.router1.status == RouterStatus.TWO_WAY) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "ef0b81e524ac0d934f31942b661eb68d", "score": "0.6130028", "text": "public boolean isOpen(){\n\t\treturn connectionIsOpen;\n\t}", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "16a4c1cd4dd7aae1ccb5f6e60458b8c3", "score": "0.6125099", "text": "public boolean isSetConnect() {\n return this.connect != null;\n }", "title": "" }, { "docid": "58edb03b78ea603b1d2150d8e817a120", "score": "0.6123014", "text": "public boolean isConnecting(){\n\t\treturn (isConnecting || waitingToReconnect);\n\t}", "title": "" }, { "docid": "adaff12e0765195cc0d3afdff3e9ea8e", "score": "0.6092216", "text": "@Override\n public boolean isConnected() {\n return super.isConnected();\n }", "title": "" }, { "docid": "f868073a2e522851e91609c80d12f81c", "score": "0.5996386", "text": "void isConnect();", "title": "" }, { "docid": "663c0320b6ef53b680ff7081b2e5a23b", "score": "0.59844255", "text": "public boolean isConnected() {\n\t\treturn (declaredIn instanceof ConnectionBlock);\n\t}", "title": "" }, { "docid": "7d94194a8567a31d926c8851e2729324", "score": "0.59823024", "text": "public boolean hasConnectiontype() {\n return fieldSetFlags()[18];\n }", "title": "" }, { "docid": "5335121de24d559e86bf65c40b86d8d9", "score": "0.5968874", "text": "boolean isMarkedReconnect();", "title": "" }, { "docid": "96889a53aa88bb125ca1ce770fcfd24d", "score": "0.5950121", "text": "public boolean isConnectionOpen() {\n\t\treturn connection != null;\n\t}", "title": "" }, { "docid": "a1dfdc7772b464846634a7c4273b0617", "score": "0.5941822", "text": "public boolean isConnected() {\n System.err.println(\"isConnected() not implemented by \" + this);\n throw new RuntimeException(\"isConnected() not implemented by \" + this);\n }", "title": "" }, { "docid": "589a2947235cd785b904a34875e17942", "score": "0.59380877", "text": "public boolean isLeafConnection();", "title": "" }, { "docid": "6a23f4597a5884db27fbb2b99e62ada1", "score": "0.59376675", "text": "public boolean isConnected()\n\t{\n\t\treturn this.pipeline.isConnected();\n\t}", "title": "" }, { "docid": "029b26aea8794ce09e8650945d76c22d", "score": "0.59360456", "text": "@Override\n public boolean isConnected() {\n return state == State.CONNECTED;\n }", "title": "" }, { "docid": "a4f811b25867e8f4e544bef690a9078a", "score": "0.5935203", "text": "boolean getConnectionControl();", "title": "" }, { "docid": "bf487a8595d2692b6922fea7623e2037", "score": "0.59335667", "text": "boolean hasConnectionProfile();", "title": "" }, { "docid": "dc0b75012a2f99df863c027cbbb8e346", "score": "0.592775", "text": "public synchronized boolean connected() {\n return connected;\n }", "title": "" }, { "docid": "6444e7b0f77f1c75f45393f13dfadf53", "score": "0.5924165", "text": "public synchronized boolean connected() {\n\t\treturn connected;\n\t}", "title": "" }, { "docid": "627ce152d0f6ea26b36caff336af9cf8", "score": "0.59077305", "text": "@Override\n public boolean getConnectionIsDirected() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.CONNECTION_IS_DIRECTED_);\n return ((Boolean)retnValue).booleanValue ();\n }", "title": "" }, { "docid": "de8cfaad32a2e92eece1891a8723f78d", "score": "0.59034944", "text": "public boolean getStatus() {\r\n\t\treturn INTERCOM;\r\n\t}", "title": "" }, { "docid": "f7b45488c5270605284af310de037ab0", "score": "0.5867799", "text": "public boolean isConnected() {\n return status == ConnectionStatus.CONNECTED;\n }", "title": "" }, { "docid": "b3b363ea5f6422a07f58492d5202e1d6", "score": "0.5866665", "text": "public boolean isConnected() {\n return (this.commPort != null);\n }", "title": "" }, { "docid": "0c30bfb8fee81cd5905f4a51dcdf689f", "score": "0.5854173", "text": "@Override\r\n public final boolean inConnectionProgress(){\r\n return this.inProgress;\r\n }", "title": "" }, { "docid": "0c30bfb8fee81cd5905f4a51dcdf689f", "score": "0.5854173", "text": "@Override\r\n public final boolean inConnectionProgress(){\r\n return this.inProgress;\r\n }", "title": "" }, { "docid": "28a3c0f05b16480fedd151f7a7e82094", "score": "0.5838636", "text": "public boolean isConnected() {\n return theCommunicator.isConnected();\n }", "title": "" }, { "docid": "df32f71dc94f268b2a6b0678335e3b4e", "score": "0.5816886", "text": "public boolean isConnectionBased() {\n return true;\n }", "title": "" }, { "docid": "82c6b4207bc3c68bf72d162698211b40", "score": "0.58041483", "text": "public boolean isConnectedOrConnecting() {\n return (status == ConnectionStatus.CONNECTED) || (status == ConnectionStatus.CONNECTING);\n }", "title": "" }, { "docid": "6de9f38d5545f66ec31573e6b7e4df73", "score": "0.57972145", "text": "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\n @VTID(7)\n int isConnect();", "title": "" }, { "docid": "1450507f6d92d5b2b3d8f0b74b8354d2", "score": "0.57869023", "text": "public boolean isClientSupernodeConnection();", "title": "" }, { "docid": "eb9d2fa9eeb748ec958d069689c92fe8", "score": "0.57753235", "text": "public boolean isConnectedOrConnecting() {\n return (status == ConnectionStatus.CONNECTED) || (status == ConnectionStatus.CONNECTING);\n }", "title": "" }, { "docid": "59ac285e23f8d210cdc38863e935290b", "score": "0.57685274", "text": "public boolean isSupernodeConnection();", "title": "" }, { "docid": "f7c780ad9a8fa10584d19622fe14f2c1", "score": "0.5734543", "text": "public boolean isConnected() throws SQLException {\n\t\treturn !instance.getConnection().isClosed();\n\t}", "title": "" }, { "docid": "8be882dbdba6c5aad4eeee73acbf6104", "score": "0.57289237", "text": "@JsonIgnore\n public boolean isPrimaryControlChannel()\n {\n return mUse != null && mUse.equals(\"d\");\n }", "title": "" }, { "docid": "2c251f209d96e56de74446a5820a48a5", "score": "0.5724314", "text": "public boolean isSupernodeClientConnection();", "title": "" }, { "docid": "2277cf19bf69d316f36d439037aaaab9", "score": "0.57090366", "text": "@JsonIgnore\n public boolean isAlternateControlChannel()\n {\n return mUse != null && mUse.equals(\"a\");\n }", "title": "" }, { "docid": "7c5dd4e82c05f6f45428d71db6e8944f", "score": "0.56943595", "text": "@Override\n\tpublic boolean isNetConnected() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3ec17e15122c19d92837c19900b24a13", "score": "0.5683413", "text": "@Override\n\tpublic boolean isConnected() {\n\t\tif (_isConnected) {\n\t\t\tboolean connected;\n\t\t\t//Call a remote method, if it throws a RemoteException then it is no longer connected\n\t\t\ttry {\n\t\t\t\t_jmiWrapper.checkConnection();\n\t\t\t\tconnected = true;\n\t\t\t} catch (RemoteException e) {\n\t\t\t\tconnected = false;\n\t\t\t}\n\n\t\t\t_isConnected = connected;\n\t\t}\n\n\t\treturn _isConnected;\n\t}", "title": "" }, { "docid": "8f649eb4b6ef2b491365da3d500c8bbe", "score": "0.56577086", "text": "public boolean isConnected() {\n return client != null && client.isConnected();\n }", "title": "" }, { "docid": "4e6402c8cbc039bab124f7a25aafd947", "score": "0.56572604", "text": "public boolean isConnected ( ) {\n\t\ttry {\n\t\t\treturn this.connection != null && !this.connection.isClosed ( );\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7d5a8d9016566396a6a2df1476d21baa", "score": "0.5655166", "text": "public boolean isConnectedToSM();", "title": "" }, { "docid": "2f2c1d1456c78625e85ba0ff3a369a62", "score": "0.5633136", "text": "@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\tboolean connected();", "title": "" }, { "docid": "fd72113aae523ca4d1eada8896cc7394", "score": "0.56094575", "text": "@Override\n public boolean isConnected()\n {\n return false;\n }", "title": "" }, { "docid": "e3271cf2067abff0a4d8e335aad0f9a9", "score": "0.5606307", "text": "public boolean isConnected(){\n\t\ttry{\n\t\t\tif (peer.isConnected() && !peer.isClosed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "79fce1ed7f41872d4c4ade719cd357e3", "score": "0.5593854", "text": "public boolean getInsideNetwork(){\n\t\treturn this.insideNetwork;\n\t}", "title": "" }, { "docid": "d31e5d174e6bb9e57da7858160314e74", "score": "0.5590732", "text": "public boolean isOnline() {\r\n return this.ip != null;\r\n }", "title": "" }, { "docid": "a58f6b9f25c5acb1b96ec4391ffe01d8", "score": "0.55870485", "text": "public boolean isLastConnection() {\r\n return this.lastConnection;\r\n }", "title": "" }, { "docid": "eab83180488ec7f69e4e93057d009c28", "score": "0.55863833", "text": "public String getConnectionStatus() {\n return this.connectionStatus;\n }", "title": "" }, { "docid": "3d6f807f24b72ceeab77f6fd8a859a28", "score": "0.5565144", "text": "public boolean isConnected() throws SQLException\n {\n return !this.connection.isClosed();\n }", "title": "" }, { "docid": "3f9477167d2175fe135b9db6b2dd4dc7", "score": "0.55616707", "text": "public boolean isConnected() {\n return getState() == STATE_READY;\n }", "title": "" }, { "docid": "0d0053022e7ebe15d2245af61b578e0a", "score": "0.5559647", "text": "public boolean isConnected() {\n return (this.bluetoothSocket != null);\n }", "title": "" }, { "docid": "433a8efe30de26cb41e9ac0095824662", "score": "0.55553865", "text": "public Boolean isBridgeEnable() {\n\t\treturn bridgeEnable;\n\t}", "title": "" }, { "docid": "5dc6729fac935e084fb1d78b48669162", "score": "0.554312", "text": "public static boolean isConnectedToDatabase() { return connectedToDatabase; }", "title": "" }, { "docid": "7b8f4f62fb1e05647ca85e6f992fa40f", "score": "0.55402553", "text": "private boolean isConnected() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean connected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n return connected;\n }", "title": "" }, { "docid": "195dc5ab7d6be572058148f4a83b7666", "score": "0.5539777", "text": "public boolean areConnected() \n\t{\n\t\t\n\t\tif(firstUser.getListOfConnections().contains(secondUser) || secondUser.getListOfConnections().contains(firstUser))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "6235a93d54e1ae002090250a7c0b9912", "score": "0.5537325", "text": "public boolean isPriorityConnection() {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "dfa7847d8fdc6cdd68c27710e266a80f", "score": "0.54984224", "text": "public boolean getInternship() {\n return internship;\n }", "title": "" }, { "docid": "8e583b900cea968b0e68fbf21dd3ae7b", "score": "0.54871184", "text": "public static boolean getIsOn() {\n return isOn;\n }", "title": "" } ]
d64b6c823126e66f4c1504e7630fe18b
todo: SpringSecurity+Jwt 8.4 doFilterInternal PAssoaPasso explicando nos comments
[ { "docid": "e96349f9e1eed9b9e1ea244f603002c5", "score": "0.6347128", "text": "@Override\n protected void doFilterInternal(\n HttpServletRequest request ,\n HttpServletResponse response ,\n FilterChain chain)\n throws ServletException, IOException {\n\n // 1 - GETTA A key 'AUTHORIZATION' DO HEADER\n String token = request.getHeader(AUTH_HEADER);\n\n // 2 - CHECA SE A key 'AUTHORIZATION' E NULA OU INICIA COM 'BEARER'\n if (token != null && token.startsWith(BEARER_PREFIX)) {\n\n // 3 - EXTRAI O TOKEN, EXCLUINDO A PALAVRA 'BEARER'\n token = token.substring(7);\n }\n\n // 4 - PARSEIA O JWT, CAPTURANDO O 'USERNAME'\n String username = jwtTokenUtil.getUsernameFromToken(token);\n\n // 5 - AVANCA SE:\n // a) O 'USERNAME' NAO FOR NULO;\n // b) SE 'JA' NAO EXISTE CONTEXTO-DE-AUTENTICACAO\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n\n // 6 - BUSCA O OBJETO USUARIO - PARTINdO DO USERNAME ENCONTRADO NO TOKEN\n UserDetails userDetails = this.userDetailsService.loadUserByUsername(username);\n\n // 7 - CHECA EXPIRACAO/EXISTENCIA DO TOKEN\n if (jwtTokenUtil.validToken(token)) {\n\n // 8 - SETA CONTEXTO-DE-AUTENTICACAO, COMO AUTENTICADO\n UsernamePasswordAuthenticationToken authentication =\n new UsernamePasswordAuthenticationToken(\n userDetails ,\n null ,\n userDetails.getAuthorities());\n\n authentication.setDetails(\n new WebAuthenticationDetailsSource()\n .buildDetails(request));\n\n SecurityContextHolder.getContext().setAuthentication(authentication);\n }\n }\n\n // 9 - REQUEST PROSSEGUE AUTENTICADO, NO CONTEXTO-DE-AUTENTICACAO\n chain.doFilter(request ,response);\n }", "title": "" } ]
[ { "docid": "f9c3008c51d57c2c41005da797753860", "score": "0.64573467", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n try {\n String jwt = getJwtRequest(request);\n if (StringUtils.hasText(jwt) && jwtToken.validateToken(jwt)) {\n Long id = jwtToken.getUserIdFromJWT(jwt);\n UserDetails details = myUserDetailsService.loadUserById(id);\n UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(details, null, details.getAuthorities());\n authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n SecurityContextHolder.getContext().setAuthentication(authentication);\n }\n } \n catch (Exception e) {\n \tthrow (new ApiError(\"Filter Internal\"));\n }\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "19fbedde318f3ab736e73fd7bd0c0272", "score": "0.6389435", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n String authorizationHeader = request.getHeader(\"Authorization\");\n// Luego verifica que si exista y que inicie con Bearer\n if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer\")) {\n// Extraemos el token unicamente sin el bearer\n String jwt = authorizationHeader.substring(7);\n// Luego extraemos el username usando la clase jwutil\n String username = jwtUtil.extractUsername(jwt);\n\n// Valida si de la extraccion hay username y que en el Contexto de la app no este autenticado un usuario ya\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n// crea el usuario de acuerdo al username extraido\n UserDetails userDetails = userDetailService.loadUserByUsername(username);\n// Luego valida que ese username que envian sea el mismo que esta en DB\n if (jwtUtil.validateToken(jwt, userDetails)) {\n// userDetails.getAuthorities() = es para enviar los roles de ese usuario\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());\n// Esto es para obtener datos extra de la peticion (navegador, hora, ubicacion, OS)\n authToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n// Finalmente, una vez validado, se agrega al contexto con la finalidad de que no\n// haya necesidad de que cuando haga una peticion nueva, no valide todo de nuevo\n SecurityContextHolder.getContext().setAuthentication(authToken);\n }\n }\n }\n\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "c6d934e64950efbe2bc2c496e23e8ec9", "score": "0.6183703", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n\n final String authHeader = request.getHeader(\"Authorization\");\n String username = null;\n String jwt = null;\n\n if(authHeader != null && authHeader.startsWith(\"Bearer \")){\n jwt = authHeader.substring(7);\n username = jwtUtil.extractUsername(jwt);\n }\n\n if(username != null && SecurityContextHolder.getContext().getAuthentication() == null){\n\n AuthUserDetails userDetails = this.userDetailsService.loadUserByUsername(username);\n\n if(jwtUtil.validateToken(jwt, userDetails)){\n\n // the lines below are what would have happened by default. But, we are just making them happen under the condition that the token is valid. Before, the lines below would be the default behaviour for all requests. Since we are overriding, we are doing it (only in case of a valid jwt)\n\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n userDetails,\n null,\n userDetails.getAuthorities()\n );\n usernamePasswordAuthenticationToken\n .setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n }\n }\n filterChain.doFilter(request, response); // handing off the control to the next filter in the control chain\n }", "title": "" }, { "docid": "5105d38d6ffa763bba4964284c3b6734", "score": "0.6172341", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n throws ServletException, IOException {\n String authorizationHeader = request.getHeader(\"Authorization\");\n\n // si el header de la autorizacion NO es nulo y comienza con el prefijo Bearer, es porque dentro de el\n // viene un JWT y debe ser capturado desde la posicion del string 7 para no capturar la palabra Bearer\n if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer\")){\n String jwt = authorizationHeader.substring(7);\n String username = jwtUtil.extractUsername(jwt);\n\n // Comprobamos que aun no exista ninguna autenticacion para este usuario\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null){\n UserDetails userDetails = platziUserDetailsService.loadUserByUsername(username);\n\n if (jwtUtil.validateToken(jwt, userDetails)){\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());\n authToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n\n SecurityContextHolder.getContext().setAuthentication(authToken);\n }\n }\n }\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "e0368e4e8fbd64fa2f94d6c49e159b4f", "score": "0.6162541", "text": "@Bean\n\tpublic FilterRegistrationBean jwtFilter() {\n final FilterRegistrationBean registrationBean = new FilterRegistrationBean();\n // Set the filter on this bean\n registrationBean.setFilter(new JwtFilter(\"supersecret\"));\n // Set the relevant URL pattern\n registrationBean.addUrlPatterns(\"/api/v1/order/*\", \"/api/v1/user/*\");\n return registrationBean;\n\t}", "title": "" }, { "docid": "ca4a885f29504e8e82c196d8ac13c00f", "score": "0.6013006", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n final String authorizationHeader = request.getHeader(\"Authorization\");\n\n String username = null;\n String jwt = null;\n\n /* Ignore these */\n String path = ((HttpServletRequest) request).getRequestURI();\n if (!(path.startsWith(\"/rider\") || path.startsWith(\"/driver\") || path.startsWith(\"/admin\"))) {\n filterChain.doFilter(request, response);\n return;\n }\n\n if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\n jwt = authorizationHeader.substring(7);\n username = jwtUtil.extractUsername(jwt);\n }\n\n if (username != null) {\n UserDetails userDetails = this.userDetailsService.loadUserByUsername(username);\n\n System.out.println(\"We're in this OPT1\");\n\n if (jwtUtil.validateToken(jwt, userDetails)) {\n System.out.println(\"We're in this OPT2\");\n\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n userDetails, null, userDetails.getAuthorities()\n );\n usernamePasswordAuthenticationToken\n .setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n\n // Hand off control to next filter\n filterChain.doFilter(request, response);\n }\n }\n else {\n System.out.println(\"We're in this else block\");\n }\n }", "title": "" }, { "docid": "a4680da4eb04199dc846bd28c39e9268", "score": "0.59789973", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n String authorizationHeader = request.getHeader(\"Authorization\");\n\n String username = null;\n String jwt= null;\n //looks for a Bearer authorization header\n if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\n //substring of 7 because \"Bearer \" is 7 indexes long\n jwt = authorizationHeader.substring(7);\n username = jwtUtil.extractUsername(jwt);\n }\n\n //Checking that authentication manager is not null\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n\n UserDetails userDetails = this.magUserDetailsService.loadUserByUsername(username);\n\n if (jwtUtil.validateToken(jwt, userDetails)) {\n\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n userDetails, null, userDetails.getAuthorities());\n usernamePasswordAuthenticationToken\n .setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n }\n }\n filterChain.doFilter(request, response);\n\n }", "title": "" }, { "docid": "35c61f246ee5e6c8bffced780ccea613", "score": "0.5946197", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request,\n HttpServletResponse response,\n FilterChain filterChain) throws ServletException, IOException {\n String autorizationheader = request.getHeader(jwtConfig.getTokenHeaderName());\n\n //Check header is null or not starts with Bearer\n if (Strings.isNullOrEmpty(autorizationheader) || !autorizationheader.startsWith(jwtConfig.getTokenPrefix())) {\n filterChain.doFilter(request, response); //pass request and response to next filter in the chain\n return; //Will reject the request\n }\n\n String token = autorizationheader.replace(jwtConfig.getTokenPrefix(), \"\");\n try {\n Jws<Claims> claimsJws = Jwts.parserBuilder()\n .setSigningKey(Keys.hmacShaKeyFor(jwtConfig.getSecureKey().getBytes()))\n .build()\n .parseClaimsJws(token);// From Documentation: compacting it into its final String form. A signed JWT is called a 'JWS'.\n\n Claims body = claimsJws.getBody();\n String userName = body.getSubject(); // Subject is username, while creation of token set subject as username\n List<HashMap<String, String>> authorities = (List<HashMap<String, String>>) body.get(jwtConfig.getClaimHeaderName());//Key that We have set while token generation\n\n //Create list of Type which extends GrantedAuthority\n Set<SimpleGrantedAuthority> grantedAuthorities = authorities.stream()\n .map(m -> {\n return new SimpleGrantedAuthority(m.get(authority));\n }) //key is \"authority\", because jwt payload contains data with key as \"authority\"\n .collect(Collectors.toSet());\n\n\n //if We reach here, means it authenticated successfully\n Authentication authentication = new UsernamePasswordAuthenticationToken(\n userName,\n null,\n grantedAuthorities\n );\n SecurityContextHolder.getContext().setAuthentication(authentication);\n\n } catch (JwtException e) {\n logger.error(\"Exception occurred:\" + e);\n response.getWriter().println(String.format(\"Token %s can not be trusted\", token));\n throw new IllegalStateException(String.format(\"Token %s can not be trusted\", token), e);\n } catch (Exception ex) {\n logger.error(\"Exception occurred:\" + ex);\n }\n //once everything is done, pass request and response to next filter in the chain\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "e847e68f2d3cdd66319c459c26eae579", "score": "0.5834863", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request,\n HttpServletResponse response,\n FilterChain chain)\n throws ServletException, IOException {\n\n final String authorizationHeader = request.getHeader(\"Authorization\");\n\n String username = null;\n String jwt = null;\n\n if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\n jwt = authorizationHeader.substring(7);\n username = jwtUtil.extractUsername(jwt);\n }\n\n\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n UserDetails userDetails;\n userDetails = this.authorizationService.loadUserByUsername(username);\n if (jwtUtil.validateToken(jwt, userDetails)) {\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken =\n new UsernamePasswordAuthenticationToken(userDetails, null, null);\n usernamePasswordAuthenticationToken\n .setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n }\n }\n chain.doFilter(request, response);\n }", "title": "" }, { "docid": "45006153ff3df7ea3f891078c19e474a", "score": "0.5806866", "text": "public interface SecuredService {\n\n\n List<Book> getAllBooks();\n\n List<Movie> getAllMovies();\n\n List<Book> getChildAllowedBooks();\n\n List<Movie> getChildAllowedMovies();\n\n\n @PostAuthorize(\"returnObject.size() > 0\")\n List<Book> getPornBooks();\n\n @PostFilter(\"filterObject.name == 'm7'\")\n List<Movie> getPornMovies();\n\n @PreFilter(value = \"filterObject == 'a7'\", filterTarget = \"authors\")\n List<Book> getMyBooks(List<Cathegory> cathegories, List<String> authors);\n}", "title": "" }, { "docid": "2ff3e50208149c253ef1111d13be23ed", "score": "0.57785857", "text": "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authorizationHeader = requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n if (authorizationHeader != null) {\n\n // Extract the token from the HTTP Authorization header\n String token = authorizationHeader.substring(\"Bearer\".length()).trim();\n\n try {\n // Validate the token\n Key key = KeyGenerator.generateKey();\n Jwts.parser().setSigningKey(key).parseClaimsJws(token);\n System.out.println(\"valid token : \" + token);\n\n } catch (ExpiredJwtException | MalformedJwtException | SignatureException | UnsupportedJwtException | IllegalArgumentException e) {\n System.out.println(\"invalid token : \" + token);\n requestContext.abortWith(Response.status(Response.Status.UNAUTHORIZED).build());\n }\n } else {\n System.out.println(\"No Token\");\n requestContext.abortWith(Response.status(Response.Status.UNAUTHORIZED).build());\n }\n }", "title": "" }, { "docid": "c7034434fb97b13115c2a7875c1760a1", "score": "0.56491494", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request,\n HttpServletResponse response,\n FilterChain filterChain) throws ServletException, IOException {\n final String bearerHeader = request.getHeader(HttpHeaders.AUTHORIZATION);\n if (bearerHeader == null || bearerHeader.isEmpty() || !bearerHeader.startsWith(\"Bearer \")) {\n filterChain.doFilter(request, response);\n return;\n }\n\n // get jwt token and validate\n final String token = bearerHeader.split(\" \")[1].trim();\n if (!jwtTokenUtil.validate(token)) {\n filterChain.doFilter(request, response);\n return;\n }\n\n // Get user identity and set it on spring security context\n UserDetails userDetails = this.myUserDetailsService.loadUserByUsername(jwtTokenUtil.getEmail(token));\n\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(\n userDetails, null,\n userDetails == null ? List.of() : userDetails.getAuthorities());\n\n authToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n\n SecurityContextHolder.getContext().setAuthentication(authToken);\n\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "560c9534d030f0e74998e8f31a2b5e37", "score": "0.56330085", "text": "@Override\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t\tUriInfo info = requestContext.getUriInfo();\n\t\t//System.out.println(info.getAbsolutePath());\n\t\t//System.out.println(\"Request Filters\");\n\t\t//System.out.println(\"Headers \" + requestContext.getHeaders());\n\t\t\n\t\tString reqPath = info.getAbsolutePath().toString().trim();\n\t\t\n\t\tInit();\n\t\t\n\t\tif (urlSkipper[0].equals(reqPath)) {\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\tString authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n\t\t\n\t\tif (authorizationHeader == null) {\n\t\t\tabortWithUnauthorized(requestContext,GMessage.addToken);\n\t\t}\n\t\telse {\n\t\t\tString token = authorizationHeader\n\t .substring(AUTHENTICATION_SCHEME.length()).trim();\n\t\t\t\n\t\t\tSystem.out.println(token);\n\t\t\tthis.authChecker(token,requestContext);\n\t\t}\n\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "a74af64eb3478130cfc912c1eb538690", "score": "0.561205", "text": "@Override\r\n\tprotected void configure(HttpSecurity http) throws Exception {\r\n\t\thttp.csrf().disable()\r\n\t\t\r\n\t\t.authorizeRequests()\r\n\t\t.antMatchers(\"/api/admin\").hasRole(\"/ROLE_ADMIN\")\r\n\t\t.antMatchers(\"/api/user\").hasAnyRole(\"/ROLE_ADMIN\",\"/ROLE_USER\")\r\n\t\t.antMatchers(\"/api/authenticate\").permitAll()\r\n\t\t.anyRequest().authenticated()\r\n\t\t.and().sessionManagement()\r\n\t\t.sessionCreationPolicy(SessionCreationPolicy.STATELESS)\r\n\t\t.and().formLogin();\r\n\t\t\r\n\t\thttp.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);\r\n\t}", "title": "" }, { "docid": "f8d1977aa5d3e2b98ff6e4ef75389215", "score": "0.5587555", "text": "@Override\n protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain)\n throws ServletException, IOException {\n final String authorizationRequestHeader = httpServletRequest.getHeader(\"Authorization\");\n String username = null;\n String jwtToken = null;\n // JWT Token is in the form \"Bearer token\". Remove Bearer word and get\n // only the Token\n if (authorizationRequestHeader != null && authorizationRequestHeader.startsWith(\"Bearer \")) {\n jwtToken = authorizationRequestHeader.substring(7);\n try {\n username = jwtTokenUtil.extractUserName(jwtToken);\n }\n catch (IllegalArgumentException e) {\n throw new ServletException(\"Unable to get JWT Token\", e);\n }\n catch (ExpiredJwtException e) {\n throw new ServletException(\"Jwt Token has expired\", e);\n }\n }\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n UserDetails userDetails = userDetailsService.loadUserByUsername(username);\n if (jwtTokenUtil.validateToken(jwtToken, userDetails)) {\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n userDetails, null, userDetails.getAuthorities());\n usernamePasswordAuthenticationToken\n .setDetails(new WebAuthenticationDetailsSource().buildDetails(httpServletRequest));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n }\n }\n filterChain.doFilter(httpServletRequest, httpServletResponse);\n }", "title": "" }, { "docid": "fdc7a720815b9d9267c567211865b7a1", "score": "0.55527204", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.authorizeRequests()\n .antMatchers(HttpMethod.POST, \"/joboffer\").authenticated()\n .antMatchers(\"/company\",\"/hire/id/**\", \"/joboffer/self\", \"/messages\", \"/messages/id/**\", \"/login\", \"/profile\", \"/favourite/**\").authenticated()\n .antMatchers(HttpMethod.GET, \"/joboffer\").permitAll()\n .anyRequest().permitAll()\n .and().httpBasic()\n .and().logout().logoutUrl(\"/logout\").deleteCookies(\"JSESSIONID\")\n .and().csrf().disable();\n }", "title": "" }, { "docid": "f5d6c3cebd7d761f500d104b8a4bd4ff", "score": "0.55201054", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n }", "title": "" }, { "docid": "340cf823b46112739d7a1473df5900d6", "score": "0.55016404", "text": "public JwtAuthenticationTokenFilter() {\n\t\tsuper(\"/rest/**\");\n\t}", "title": "" }, { "docid": "38bc65ead1a959f969c5f588adfb0678", "score": "0.54854906", "text": "@Override\r\n protected void afterSpringSecurityFilterChain(ServletContext servletContext) {\r\n // insertFilters(servletContext, new HiddenHttpMethodFilter(), new MultipartFilter() , new OpenEntityManagerInViewFilter());\r\n }", "title": "" }, { "docid": "872a392acc7810a37c5a90876132930b", "score": "0.5479463", "text": "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\t\n\t\tHttpServletRequest httprequest = (HttpServletRequest) request;\n\t\tHttpServletResponse httpresponse = (HttpServletResponse) response;\n\t\t\n\t\thttpresponse.setHeader(\"Access-Control-Allow-Origin\", httprequest.getHeader(\"origin\"));\n\t\thttpresponse.setHeader(\"Access-Control-Allow-Method\", \"POST,GET,DELETE,PUT,OPTIONS\");\n\t\thttpresponse.setHeader(\"Access-Control-Allow-Credential\",\"true\");\n\t\t\n\t\tString authheader = httprequest.getHeader(\"Authorization\");\n\t\t\n\t\tSystem.out.println(authheader);\n\t\t\n\t\tif(authheader == null || (!authheader.startsWith(\"Bearer\"))) {\n\t\t\t//Here you can create user defined exception also\n\t\t\tthrow new ServletException(\"JWT token exception\");\n\t\t}\n\t\t\n\t\tString token = authheader.substring(7);\n\t\t\n\t\t//Checking validity\n\t\ttry {\n\t\t\t//Here ibmfsd is the key that we have provided in usercontroller.\n\t\t\tJwtParser jparser = Jwts.parser().setSigningKey(\"ibmfsd\");\n\t\t\tJwt jwtobj =jparser.parse(token);\n\t\t\tClaims claim = (Claims) jwtobj.getBody();\n\t\t\tSystem.out.println(\"user logged in is: \"+ claim.getSubject());\n\t\t}catch(SignatureException e) {\n\t\t\tthrow new ServletException(\"signature mismatch\");\n\t\t\t//System.out.println(\"Signature error\" +e);\n\t\t}\n\t\tcatch(MalformedJwtException e) {\n\t\t\tSystem.out.println(\"Invalid token \" +e );\n\t\t}\n\t\t//For doing this activity continuously\n\t\tchain.doFilter(httprequest, httpresponse);\n}", "title": "" }, { "docid": "970385c59515206076777073a4ee78b1", "score": "0.54608613", "text": "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n Class<?> resourceClass = resourceInfo.getResourceClass();\n List<Role> classRoles = extractRoles(resourceClass);\n\n // Get the resource method which matches with the requested URL\n // Extract the roles declared by it\n Method resourceMethod = resourceInfo.getResourceMethod();\n List<Role> methodRoles = extractRoles(resourceMethod);\n\n Claims claims = null;\n\n try {\n\n claims = new TokenParser(requestContext).verify().getClaims();\n\n // Check if the user is allowed to execute the method\n // The method annotations override the class annotations\n checkPermissions( methodRoles.isEmpty() ? classRoles : methodRoles, claims);\n\n } catch (Exception e) {\n\n if(e instanceof AuthorizationException)\n requestContext.abortWith(Response.status(Response.Status.FORBIDDEN).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build());\n else\n requestContext.abortWith(Response.status(Response.Status.FORBIDDEN).entity(e).type(MediaType.APPLICATION_JSON).build());\n\n }\n }", "title": "" }, { "docid": "49a36626543b5b709c1db9fc8cd907e2", "score": "0.5457521", "text": "@Override\n public void filter(ContainerRequestContext ctx) throws IOException {\n String token = ctx.getHeaderString(\"Authorization\");\n //Check if the Authorization header is bound.\n if (token != null) {\n //Validate the public key of JWT with the server private key\n if (JWTUtil.validateToken(token)) {\n //Check if the user is logged in (In case of re-use JWT after logged out).\n String username = JWTUtil.getUsernameFromJWT(token);\n if (dao.isLoggedIn(username)) {\n return;\n }\n }\n } else {\n //If Authorization is not found and user want to login.\n if (uriInfo.getRequestUri().getPath().contains(USER_WS_END_POINT)) {\n return;\n }\n }\n ctx.abortWith(Response.status(Response.Status.UNAUTHORIZED).build());\n }", "title": "" }, { "docid": "af3639f7c0c8df47d34d58900ea91d00", "score": "0.5445535", "text": "public static void main(String[] args) {\n\t String password = \"123123\";\n BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n System.out.println(passwordEncoder.encode(password));\n \n UsernamePasswordAuthenticationFilter asl;\n\t}", "title": "" }, { "docid": "fdf38a8716651ec32bc9051089cd15de", "score": "0.5430576", "text": "@Override\r\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\r\n\t\t\tthrows IOException, ServletException {\n\t\tHttpServletRequest req = (HttpServletRequest) request;\r\n\t\tString token = getBearerToken(req);\r\n\t\tif (token != null && !token.trim().equals(\"\")) {\r\n\r\n\t\t\tif (!Authenticate.verifyToken(token)) {\r\n\t\t\t\tHttpServletResponse resp = (HttpServletResponse) response;\r\n\t\t\t\tresp.sendRedirect(request.getServletContext().getContextPath() + \"/api/auth/failed\");\r\n\t\t\t\treturn;\r\n\t\t\t} else if (!Authenticate.verfiyTimeout(token)) {\r\n\t\t\t\tHttpServletResponse resp = (HttpServletResponse) response;\r\n\t\t\t\tresp.sendRedirect(request.getServletContext().getContextPath() + \"/api/auth/timeout\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tchain.doFilter(request, response);\r\n\t\t} else {\r\n\t\t\tHttpServletResponse resp = (HttpServletResponse) response;\r\n\t\t\tresp.sendRedirect(request.getServletContext().getContextPath() + \"/api/auth/failed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d6e80c99736b6c444406b92543a60f70", "score": "0.54276145", "text": "@Bean\n FilterRegistrationBean authenticatedRequestFilter() {\n val frb = new FilterRegistrationBean(new AuthenticatedRequestFilter(true));\n frb.setOrder(Ordered.LOWEST_PRECEDENCE);\n return frb;\n }", "title": "" }, { "docid": "2404c899c7bf87c31d7c4264cc5795c3", "score": "0.5427568", "text": "@Override\n protected void doFilterInternal(HttpServletRequest req, HttpServletResponse res, FilterChain chain) throws IOException, ServletException {\n String header = req.getHeader(TOKEN_HEADER);\n String authToken = null;\n\n // validate the header and check the prefix. If there's no header,\n // pass to next filter. It may be signup or login request.\n if(header == null) {\n chain.doFilter(req, res);\n return;\n }\n\n\n authToken = header;\n logger.debug(\"checking authentication for user\");\n if (authToken != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n logger.debug(\"security context was null, so authorizing user\");\n TokenObject tokenObject = userTokenCache.getTokenByKey(authToken);\n InstaUserDetails instaUserDetails;\n if(tokenObject==null){\n logger.error(\"token not found in cache\");\n HttpServletResponse httpServletResponse = (HttpServletResponse) res;\n res.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Authorization Failed, token invalid\");\n res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n res.setContentType(\"application/json\");\n throw new ServletException(\"Auth Failed\");\n// return;\n }\n\n try {\n instaUserDetails = (InstaUserDetails) userDetailsService.loadUserById(tokenObject.getId());\n }catch (Exception e){\n res.sendError(HttpServletResponse.SC_UNAUTHORIZED,e.getMessage());\n return;\n }\n\n if(!tokenObject.getExpiresAt().before(new Date())){\n List<Pair<Long,String>> roleList = tokenObject.getRoles();\n Collection<SimpleGrantedAuthority> authorities = new ArrayList<>();\n String roleStrList = null;\n\n /* I've put provision of roles also in cache.\n So that if we want to support multiple roles in future, we can do it */\n\n if(!CollectionUtils.isEmpty(roleList)){\n authorities = roleList.stream().map(s->new SimpleGrantedAuthority(s.getValue1())).filter(Objects::nonNull).collect(Collectors.toList());\n roleStrList = roleList.stream().map(s->s.getValue1()).collect(Collectors.joining(\",\"));\n }\n\n\n //Create auth object\n // UsernamePasswordAuthenticationToken: A built-in object, used by spring to represent the current authenticated / being authenticated user.\n // It needs a list of authorities, which has type of GrantedAuthority interface, where SimpleGrantedAuthority is an implementation of that interface\n UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(instaUserDetails, null,authorities);\n authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(req));\n logger.info(\"authenticated user with id \" + tokenObject.getId() + \", setting security context\");\n SecurityContextHolder.getContext().setAuthentication(authentication);\n res.setHeader(\n Constants.ROLES_HEADER, roleStrList);\n res.setHeader(Constants.USER_ID_HEADER, tokenObject.getId().toString());\n }\n else {\n logger.error(\"token expired, re-login\");\n userTokenCache.deleteToken(authToken);\n SecurityContextHolder.clearContext();\n HttpServletResponse httpServletResponse = (HttpServletResponse) res;\n httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Authorization Failed, token expired\");\n httpServletResponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n httpServletResponse.setContentType(\"application/json\");\n return;\n }\n }\n if(res.isCommitted()){\n throw new ServletException(\"Auth Failed\");\n }\n chain.doFilter(req, res);\n }", "title": "" }, { "docid": "9aee973410dd40ba0048d5eb310bd3d9", "score": "0.54274374", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n .headers().frameOptions().sameOrigin()\n .and()\n .csrf().disable()\n .addFilterAfter(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class)\n .authorizeRequests()\n .antMatchers(\"/abs/**\").authenticated();\n }", "title": "" }, { "docid": "04f8ab65989a9e6f19cb8640a0598d5c", "score": "0.54257035", "text": "@PreAuthorize(\"hasRole('ADMIN')\")\n @GetMapping(\"/adminping\")\n public String adminPing() {\n return \"Only Admin Can Read This\";\n }", "title": "" }, { "docid": "d75ac95b010e41ac741083540b27a5f5", "score": "0.53851795", "text": "private void TokenFilterFactory() {\n\t}", "title": "" }, { "docid": "9ad784623cf0bbb6792a1ee1f758a9d4", "score": "0.53850263", "text": "@Override\n public void configure(WebSecurity web) throws Exception {\n web.ignoring().antMatchers(\"/resources/**\", \"/static/**\", \"/public/**\", \"/webui/**\", \"/h2-console/**\"\n , \"/configuration/**\", \"/swagger-ui/**\", \"/swagger-resources/**\", \"/api-docs\", \"/api-docs/**\", \"/v2/api-docs/**\"\n , \"/*.html\", \"/**/*.html\" ,\"/**/*.css\",\"/**/*.js\",\"/**/*.png\",\"/**/*.jpg\", \"/**/*.gif\", \"/**/*.svg\", \"/**/*.ico\", \"/**/*.ttf\",\"/**/*.woff\",\"/documentation\");\n }", "title": "" }, { "docid": "5e786e6055ccfcd7b34716b04e67a8cb", "score": "0.53785825", "text": "public void havingAuthorization() {\n\n\n }", "title": "" }, { "docid": "f377f8764481f0703a551ef6429076e9", "score": "0.5378565", "text": "@Override\n\tpublic void configure(WebSecurity web) throws Exception {\n\t}", "title": "" }, { "docid": "790b6d55c11029fcc24ea409ba8d1d8e", "score": "0.53779465", "text": "@Override\n public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n throws IOException, ServletException {\n final HttpServletRequest req = (HttpServletRequest) request;\n final HttpServletResponse res = (HttpServletResponse) response;\n\n final String authentication = req.getHeader(CommonUtil.AUTH_HEADER);\n\n log.debug(\"custom header value : {}\", authentication);\n\n try {\n\n if (authentication != null) {\n final String[] auth = decodeHeader(authentication);\n\n final String principal = auth[0];\n final String credential = auth[1];\n // check is user is exist or not by username\n if (userService.checkUserByPrincipal(principal)) {\n\n final User user = userService.findUserByPrincipal(principal);\n\n if (bcryptEncoder.matches(credential, user.getPassword())) {\n\n request.setAttribute(\"user\", user.getUsername());\n\n request.setAttribute(\"role\", roleService.findRoleByUser(user));\n\n chain.doFilter(request, response);\n\n } else {\n printResponse(res, HttpServletResponse.SC_FORBIDDEN, new StringBuilder(\"user : \")\n .append(principal).append(\" username and password is not matched\").toString());\n }\n\n } else {\n printResponse(res, HttpServletResponse.SC_FORBIDDEN, \"email is not valid or registered\");\n }\n\n } else {\n printResponse(res, HttpServletResponse.SC_FORBIDDEN, \"Forbidden\");\n }\n\n } catch (final Exception exception) {\n exception.printStackTrace();\n log.error(\"exception occured : {}\", exception.getMessage());\n final String message =\n exception.getMessage() != null && !exception.getMessage().equals(\"null\")\n ? exception.getMessage() : \"Forbidden\";\n printResponse(res, HttpServletResponse.SC_FORBIDDEN, message);\n }\n }", "title": "" }, { "docid": "1b9deeb8042af95988bd9dfbf856dcbb", "score": "0.536077", "text": "@Override\n public void configure(HttpSecurity http) throws Exception {\n http\n .authorizeRequests()\n .antMatchers(\"/login\").permitAll()\n .antMatchers(\"/sysParam/findByKey\").permitAll()\n .antMatchers(\"/meterDeal/testConfigAddr\").permitAll()\n .antMatchers(\"/meterDeal/testConfigVal\").permitAll()\n .antMatchers(\"/meterDeal/testConfigPulse\").permitAll()\n .antMatchers(\"/meterDeal/testConfigCodeVal\").permitAll()\n .antMatchers(\"/meterDeal/testReadSingle\").permitAll()\n .antMatchers(\"/loginout\").permitAll()\n .antMatchers(\"/wxBind\").permitAll()\n .antMatchers(\"/refreshToken\").permitAll()\n .antMatchers(\"/oauth/*\").permitAll()\n .antMatchers(\"/dist/**\").permitAll()\n .antMatchers(\"/swagger-ui.html\").permitAll()\n .antMatchers(\"/swagger-resources\").permitAll()\n .antMatchers(\"/swagger-resources/**\").permitAll()\n .antMatchers(\"/v2/api-docs\").permitAll()\n .antMatchers(\"/webjars/springfox-swagger-ui/**\").permitAll()\n .antMatchers(\"/wmms/tools/**\").permitAll()\n .antMatchers(HttpMethod.OPTIONS).permitAll() // 对option不校验\n //.antMatchers(ignoreResources).permitAll()\n .anyRequest().authenticated();\n }", "title": "" }, { "docid": "44b4a293afc31817ef788f0855f6dbd8", "score": "0.53374845", "text": "public Authorizer() {}", "title": "" }, { "docid": "aa947185f3fd23d2dad0db83c8bb3447", "score": "0.5335441", "text": "@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp.httpBasic().and().csrf().disable().authorizeRequests().antMatchers(\"/auth\").permitAll().antMatchers(\"/hotels/**\").authenticated()\n\n\t\t.antMatchers(HttpMethod.POST, \"/users\").permitAll().antMatchers(\"/users/**\").authenticated()\n\t\t.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n\t\n\t//\thttp.authorizeRequests().antMatchers(HttpMethod.POST, \"/users\").permitAll();\n\t\t//http.addFilter(jwtokn);\n\t\thttp.addFilterBefore(jwtokn, UsernamePasswordAuthenticationFilter.class);\n\t}", "title": "" }, { "docid": "dd70435175aa35e9f33fd035c2fd2f73", "score": "0.5314417", "text": "@Override\n public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n\n // Gets the \"Authorization\" header from the HTTP request.\n HttpServletRequest httpServletRequest = (HttpServletRequest) request;\n String header = httpServletRequest.getHeader(HEADER_STRING);\n\n // If the header is null or isn't a bearer token, passes the request and response to the next filter in the chain.\n if (header == null || !header.startsWith(TOKEN_PREFIX)) {\n chain.doFilter(request, response);\n return;\n }\n\n // Passes the Authentication object to the SecurityContext and passes the request and response to the next filter.\n UsernamePasswordAuthenticationToken authentication = getAuthentication(httpServletRequest);\n SecurityContextHolder.getContext().setAuthentication(authentication);\n chain.doFilter(request, response);\n }", "title": "" }, { "docid": "60678537e4b64c9ba74dba8f87b82381", "score": "0.5313934", "text": "@PreAuthorize(\"hasRole('USER')\")\n @GetMapping(\"/userping\")\n public String userPing() {\n return \"Any User Can Read This\";\n }", "title": "" }, { "docid": "9f3c0428f724f82f199511adc1106359", "score": "0.5305302", "text": "@Override\r\n protected void configure(HttpSecurity http) throws Exception {\r\n // TODO in the future only allow unauthorized people to log back in\r\n // TODO check if allowing all options is ok\r\n// TODO factor out the OPTIONS\r\n http.csrf()\r\n .disable()\r\n .authorizeRequests()\r\n .antMatchers(HttpMethod.OPTIONS, \"*\")\r\n .permitAll()\r\n .antMatchers(HttpMethod.OPTIONS, \"/*\")\r\n .permitAll()\r\n .antMatchers(\"/products/admin\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.OPTIONS, \"*\")\r\n .permitAll()\r\n .antMatchers(HttpMethod.POST, \"/products/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.DELETE, \"/products/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.POST, \"/categories/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.DELETE, \"/categories/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.POST, \"/banner/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.DELETE, \"/banner/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.GET, \"/banner/*\")\r\n .permitAll()\r\n .antMatchers(HttpMethod.PUT, \"/categories/*\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(HttpMethod.GET, \"/products/all\")\r\n .hasRole(\"ADMIN\")\r\n .antMatchers(\"/order/*\")\r\n .authenticated()\r\n // TODO check if this is nesc later\r\n .antMatchers(HttpMethod.GET, \"/users\")\r\n .permitAll()\r\n .antMatchers(HttpMethod.OPTIONS, \"/users\")\r\n .permitAll()\r\n .antMatchers(\"/users\")\r\n .authenticated()\r\n .antMatchers(HttpMethod.OPTIONS, \"/users/*\")\r\n .permitAll()\r\n .antMatchers(\"/users/*\")\r\n .authenticated()\r\n .antMatchers(\"/authenticate\")\r\n .permitAll()\r\n .antMatchers(\"/*\")\r\n .permitAll()\r\n .and()\r\n .sessionManagement()\r\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS);\r\n http.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);\r\n }", "title": "" }, { "docid": "4341ee34307a2d3a10bc164ecfb6c3ec", "score": "0.52976125", "text": "@RequestMapping(path = \"database\", method = RequestMethod.GET)\n @PreAuthorize(\"hasPermission('coffeelink.Country', 'READ')\")\n public String saveSomethingToDB() {\n }", "title": "" }, { "docid": "53d3d6b40059e9b290b14189621c54bc", "score": "0.52975255", "text": "@PreAuthorize(value = \"hasAuthority('ADMIN')\")\n User getUserById(Integer id);", "title": "" }, { "docid": "37c5a88c0a11af11efaddac04b01ab89", "score": "0.5281838", "text": "@Override\n public void configure(HttpSecurity http) throws Exception {\n }", "title": "" }, { "docid": "49a98ce035aa3b9c43b8a9f5fcd0c7af", "score": "0.5280314", "text": "@Override\r\n protected void configure(HttpSecurity http) throws Exception {\r\n http\r\n .httpBasic().disable()\r\n .csrf().disable()\r\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)\r\n .and()\r\n .authorizeRequests()\r\n .antMatchers(\"/admin/role/update\").hasRole(\"ADMIN\")\r\n .antMatchers(\"/user/get\").hasAnyRole(\"USER\", \"ADMIN\")\r\n .antMatchers(\"/secretary/get\").hasAnyRole(\"SECRETARY\", \"ADMIN\")\r\n .antMatchers(\"/register\", \"/authenticate\").permitAll()\r\n .and()\r\n .addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);\r\n }", "title": "" }, { "docid": "e528936dfad9debe1603bd1ce6c64aa1", "score": "0.52752966", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.antMatcher(\"/**\").addFilterBefore(applicationSecurityFilter, ChannelProcessingFilter.class)\n .authorizeRequests()\n .anyRequest().authenticated().and().httpBasic();\n \n }", "title": "" }, { "docid": "90b64719b8c4c651c064593f09c2dc98", "score": "0.526012", "text": "void secure(Route route);", "title": "" }, { "docid": "d4e85b8794b1360d791685d428c2aed6", "score": "0.5258518", "text": "@Bean\n public FilterRegistrationBean<JwtAuthenticationFilter> adminRoutesFilterRegistration(\n @Autowired JwtParser jwtParser){\n FilterRegistrationBean<JwtAuthenticationFilter> registrationBean = new FilterRegistrationBean<>();\n registrationBean.setFilter(new JwtAuthenticationFilter(jwtParser, \"admin\"));\n registrationBean.setName(\"adminRoutesJwtFilter\");\n registrationBean.addUrlPatterns(\"/admin/*\");\n return registrationBean;\n }", "title": "" }, { "docid": "0d0359719642576dd91dd439cdb3bfe6", "score": "0.5238687", "text": "public SiteminderAuthenticationProcessingFilter() {\n super();\n }", "title": "" }, { "docid": "d1caec3f600a1df028acd81c66aff14a", "score": "0.5236824", "text": "@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tString headerToken = request.getHeader(\"Authorization\");\n\n\t\tif (!requiresAuthentication(headerToken)) {\n\t\t\tchain.doFilter(request, response);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tUsernamePasswordAuthenticationToken authentication = null;\n\t\t\n\t\tif(this.jwtService.validateToken(headerToken)) {\n\t\t\t//Doing authentication with token generated in the start authentication\n\t\t\t\n\t\t\tauthentication = new UsernamePasswordAuthenticationToken(this.jwtService.getUsername(headerToken), null, this.jwtService.getRoles(headerToken));\n\t\t\t\n\t\t}\n\t\t//assigning the authentication to context the session\n\t\tSecurityContextHolder.getContext().setAuthentication(authentication);\n\t\tchain.doFilter(request, response);\n\t}", "title": "" }, { "docid": "f451edfe5d4f70d880c9c1a5c13c8b4a", "score": "0.52231544", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n \n http.csrf().disable();//csrf found in default forms not in app form /disable crsf in order for third party apps to send data\n //http.formLogin();//besoin du formulaire d'authentication spring par defaut add \n //http.formLogin().loginPage('/login') use to define login page path\n \n /*Il faut desactiver les session coter serveur par defaut*/\n http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n \n //donne access a n'importe kel requete sur login et register sans authentification\n http.authorizeRequests().antMatchers(\"/login/**\", \"/register/**\").permitAll();\n\n //permet de specifier que rien que les admin on access pour ajouter une tache a /tasks\n// http.authorizeRequests().antMatchers(HttpMethod.POST, \"/user/**\").hasAuthority(\"ADMIN\");\n// http.authorizeRequests().antMatchers(HttpMethod.POST, \"/bundle/**\").hasAuthority(\"ADMIN\");\n\n http.authorizeRequests().antMatchers(HttpMethod.POST, \"/register/student/**\").permitAll();\n http.authorizeRequests().antMatchers(\"/bundle/**\").permitAll();\n\n\n http.authorizeRequests().antMatchers(HttpMethod.POST, \"/register/monitor/**\").permitAll();\n http.authorizeRequests().antMatchers(HttpMethod.POST, \"/coursematerial/monitor/**\").permitAll();\n\n\n http.authorizeRequests().anyRequest().authenticated();//donne l'access a toute les resources pour les utilisateur authentifier\n\n //ajout du filtre JWTAuthenticationManager\n \n http.addFilter(new JWTAuthenticationFilter(authenticationManager()));\n\n //ajout du filtre d'authorization qui traite toute les requete avant le filtre d'authentication\n http.addFilterBefore(new JWTAuthorizationFilter(), UsernamePasswordAuthenticationFilter.class);\n }", "title": "" }, { "docid": "a64bd3146ef9296350190a0276ac6387", "score": "0.520821", "text": "@Test\n\tpublic void testDoFilterInternal_2()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "ef9e9f382b4ca7eaff6f70c3ada969cc", "score": "0.5206966", "text": "@Override\n protected void configure(HttpSecurity httpSecurity) throws Exception {\n log.info(\"Entering WebSecurityConfig.configure with parameter httpSecurity {}.\", httpSecurity);\n httpSecurity.csrf().disable().authorizeRequests()\n .antMatchers(\"/v1/authenticate\", \"/v1/user\").permitAll().anyRequest()\n .authenticated().and().exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint).and()\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n\n /*\n * Adds the filter before the position of the specified class\n */\n httpSecurity.addFilterBefore(authRequestFilter, UsernamePasswordAuthenticationFilter.class);\n }", "title": "" }, { "docid": "5dceb6f28328a038c3fb1e645b3f064a", "score": "0.51887065", "text": "@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp\n\t\t.csrf().disable()\n\t\t\t\t .sessionManagement() \n\t\t\t\t .sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n\t\t\t\t .and() \n\t\t\t\t .addFilter(new JwtUsernameAndPasswordAuthenticationFilter(authenticationManager(),jwtConfig,secretKey))\n\t\t\t\t .addFilterAfter(new JwtTokenVerifierFilter(jwtConfig,secretKey), JwtUsernameAndPasswordAuthenticationFilter.class)\n\t\t\t\t \n\t\t.authorizeRequests()\n\t\t.antMatchers(\"/\",\"index\",\"/css/*\",\"/js/*\").permitAll()\n\t\t\n\t\t//Below disable codes are used for Role based Authentication\n\t //.antMatchers(\"/api/**\").hasRole(ADMIN.name())\n\t\t\n\t\t//Below codes are for the Permission based Authentication\n\t\t.antMatchers(HttpMethod.GET,\"/api/cutomer/customer-by-Customer_id/{customerId}\").hasAuthority(CUSTOMER_READ.getPermission())\n\t\t.antMatchers(HttpMethod.GET,\"/api/cutomer/all-customers\").hasAuthority(CUSTOMER_READ.getPermission())\n\t\t.antMatchers(HttpMethod.GET,\"/api/bill/all-bills\").hasAuthority(SHOAPKEEPER_READ.getPermission())\n\t\t.antMatchers(HttpMethod.GET,\"/api/bill/bill-by-bill_id/{billId}\").hasAuthority(SHOAPKEEPER_READ.getPermission())\n\t\t.antMatchers(HttpMethod.POST,\"/api/customer/save-customer\").hasAuthority(CUSTOMER_WRITE.getPermission())\n\t\t.antMatchers(HttpMethod.POST,\"/api/bill/save-bill\").hasAuthority(SHOAPKEEPER_WRITE.getPermission())\n\t\t.anyRequest()\n\t\t.authenticated();\n\t\t\n\t\t//Below commentted all the codes in the method has been only used without jwt \n\t\t//.and()\n\t\t\n\t\t//Codes for the login Event when occures\n\t\t/*.formLogin()\n\t\t .loginPage(\"/login\").permitAll();*/\n\t\t // .passwordParameter(\"password\")\n\t\t // .usernameParameter(\"username\")\n\t\t //.defaultSuccessUrl(\"/logoutform\")\n\t\t /*\n\t\t\t *.defaultSuccessUrl(\"/logoutform\",true)\n\t\t\t\t .failureUrl(\"/error\")\n\t\t\t\t */\n\t\t//.and()\n\t\t\n\t\t//Logout related Events when occures\n\t\t/*.logout()\n\t\t .logoutUrl(\"/logout\")\n\t\t .clearAuthentication(true)\n\t\t .invalidateHttpSession(true)\n\t\t .deleteCookies(\"JSESSIONID\",\"remember-me\")\n\t\t .logoutSuccessUrl(\"/login\");*/\n\t\t\n\t\t\n\t\t// This is for making the remember-me token for long time validity\n\t\t//default time 2 weeks\n\t\t/*\n\t\t * .and()\n\t\t * .rememberMe()\n\t\t * .rememberMeParameter(\"remember-me\");\n\t\t * .tokenValiditySeconds((int) TimeUnit.DAYS.toSeconds(21))\n\t\t * .key(\"BillGenerationTools\");\n\t\t */\n\t\t\n\t\t\n\t\t// for the Basic Authentication\n\t\t//.httpBasic();\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "fa472264654ffc1481a7991e08e65741", "score": "0.5186737", "text": "@Bean\n public ShiroFilterFactoryBean setShiroFilterFactoryBean(SecurityManager securityManager){\n //Create the ShiroFilterFactoryBean factory\n ShiroFilterFactoryBean shiroFilterFactoryBean=new ShiroFilterFactoryBean();\n //set SecurityManager\n shiroFilterFactoryBean.setSecurityManager(securityManager);\n //Create a collection of filter conditions\n Map<String,String> filters=new HashMap<String,String>();\n\n //Configuring static resources\n filters.put(\"/code/**\",\"anon\");\n filters.put(\"/css/**\",\"anon\");\n filters.put(\"/font/**\",\"anon\");\n filters.put(\"/images/**\",\"anon\");\n filters.put(\"/img/**\",\"anon\");\n filters.put(\"/js/**\",\"anon\");\n filters.put(\"/lay/**\",\"anon\");\n filters.put(\"/style/**\",\"anon\");\n filters.put(\"/scripts/**\",\"anon\");\n filters.put(\"/templates/**\",\"anon\");\n filters.put(\"/codefile/**\",\"anon\");\n filters.put(\"/admin/**\",\"anon\");\n filters.put(\"/*.do\",\"anon\");\n filters.put(\"/PhysicalPersonInfo.xlsx\",\"anon\");\n filters.put(\"/Thebackend-page/guideList.html\",\"anon\");\n filters.put(\"/Thebackend-page/DanWeiGuide.html\",\"anon\");\n filters.put(\"/Thebackend-page/thewaylist.html\",\"anon\");\n filters.put(\"/check.html\",\"anon\");\n filters.put(\"/login.html\",\"anon\");\n filters.put(\"/booking.html\",\"anon\");\n\n\n //admin permissions configuration\n filters.put(\"/index.html\",\"roles[admin],perms[index.html]\");\n filters.put(\"/Thebackend-page/keshiweihu.html\",\"roles[admin],perms[Thebackend-page/keshiweihu.html]\");\n filters.put(\"/Thebackend-page/tjx.html\",\"roles[admin],perms[Thebackend-page/tjx.html]\");\n filters.put(\"/Thebackend-page/zhx.html\",\"roles[admin],perms[Thebackend-page/zhx.html]\");\n filters.put(\"/Thebackend-page/tc.html\",\"roles[admin],perms[Thebackend-page/tc.html]\");\n filters.put(\"/Thebackend-page/jy.html\",\"roles[admin],perms[Thebackend-page/jy.html]\");\n filters.put(\"/Thebackend-page/jieguojianyi.html\",\"roles[admin],perms[Thebackend-page/jieguojianyi.html]\");\n filters.put(\"/Thebackend-page/unit.html\",\"roles[admin],perms[Thebackend-page/unit.html]\");\n filters.put(\"/Thebackend-page/danweifenuzu.html\",\"roles[admin],perms[Thebackend-page/danweifenuzu.html]\");\n filters.put(\"/Thebackend-page/GroupInfos.html\",\"roles[admin],perms[Thebackend-page/GroupInfos.html]\");\n\n //check department permissions configuration\n filters.put(\"/Thebackend-page/department.html\",\"roles[wk],perms[Thebackend-page/department.html]\");\n\n //Inspection department permissions configuration\n filters.put(\"/Thebackend-page/Laboratory.html\",\"roles[nk],perms[Thebackend-page/Laboratory.html]\");\n\n //Always check permissions configuration\n filters.put(\"/AlwaysCheckIndex.html\",\"roles[zzys],perms[AlwaysCheckIndex.html]\");\n filters.put(\"/Thebackend-page/total.html\",\"roles[zzys],perms[Thebackend-page/total.html]\");\n filters.put(\"/Thebackend-page/AlwaysCheck.html\",\"roles[zzys],perms[Thebackend-page/AlwaysCheck.html]\");\n\n //cost permissions configuration\n filters.put(\"/CashiersIndex.html\",\"roles[fyc],perms[CashiersIndex.html]\");\n filters.put(\"/Thebackend-page/refund.html\",\"roles[fyc],perms[Thebackend-page/refund.html]\");\n filters.put(\"/Thebackend-page/Cashiers.html\",\"roles[fyc],perms[Thebackend-page/Cashiers.html]\");\n\n //Warning: intercepts all unauthenticated requests, and this configuration item must be last\n //filters.put(\"/**\",\"authc\");\n\n //set login page\n shiroFilterFactoryBean.setLoginUrl(\"/login.html\");\n\n //Set access insufficient jump path\n shiroFilterFactoryBean.setUnauthorizedUrl(\"/logout.do\");\n shiroFilterFactoryBean.setFilterChainDefinitionMap(filters);\n return shiroFilterFactoryBean;\n }", "title": "" }, { "docid": "a70522fb21f5032732e023c62c406d84", "score": "0.51737374", "text": "@Test\n\tpublic void testDoFilterInternal_4()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "22993bd22ac76c4860308564589c1bc3", "score": "0.51552826", "text": "@PreAuthorize(value = \"hasAuthority('ADMIN')\")\n void addUser(UserDTO userDTO);", "title": "" }, { "docid": "59e2ee1c21d6f796f5f788d2c1344909", "score": "0.51548797", "text": "@Override\r\n protected void configure(HttpSecurity http) throws Exception {\n http = http.cors().and().csrf().disable(); \r\n\r\n // Set session management to stateless\r\n http = http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and();\r\n\r\n // Set unauthorized requests exception handler\r\n http = http.exceptionHandling().authenticationEntryPoint((request, response, ex) -> {\r\n logger.error(\"Unauthorized request - {}\", ex.getMessage());\r\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED, ex.getMessage());\r\n }).and();\r\n\r\n // Set permissions on endpoints\r\n http.authorizeRequests()\r\n // for static files in /resources/static\r\n .antMatchers(\"/**\").permitAll()\r\n // Swagger endpoints must be publicly accessible\r\n .antMatchers(String.format(\"%s/**\", restApiDocPath)).permitAll()\r\n .antMatchers(String.format(\"%s/**\", swaggerPath)).permitAll()\r\n // Our public endpoints\r\n // .antMatchers(\"/api/accounts/**\").permitAll()\r\n // Our private endpoints\r\n .anyRequest().authenticated()\r\n ;\r\n\r\n // Add JWT token filter\r\n http.addFilterBefore(jwtTokenFilter, UsernamePasswordAuthenticationFilter.class);\r\n }", "title": "" }, { "docid": "f895e187044cde223f696bfceea31e4a", "score": "0.5150597", "text": "@Override\n\t protected void configure(HttpSecurity httpSecurity) throws Exception {\n\t final String secret = \"ksfdlkvopiurutueijflkdsvf,cjnjnxjnvsoifoiropiezaropioezkvf,k,c kv,ckvdkfjgvorieoigfopziefpozepfiezikfozkfldsmvflkvdldvl,fdvk,fdkv,dkfgkjfdgkjvicooiviuzieopiztpoirpotimldkflg,vlkfckjshayauiueruergregierpogipdfogiklxvcjnxvjnfvjdsmkfmslfklgkfgoirgjitrooritjg\";\n\t \n\t httpSecurity\n\t /*\n\t Filters are added just after the ExceptionTranslationFilter so that Exceptions are catch by the exceptionHandling()\n\t Further information about the order of filters, see FilterComparator\n\t */\n\t .addFilterAfter(jwtTokenAuthenticationFilter(\"/**\", secret), ExceptionTranslationFilter.class)\n\t //.addFilterAfter(ExceptionTranslationFilter.class)\n\t /*\n\t Exception management is handled by the authenticationEntryPoint (for exceptions related to authentications)\n\t and by the AccessDeniedHandler (for exceptions related to access rights)\n\t */\n\t .exceptionHandling()\n\t .authenticationEntryPoint(new SecurityAuthenticationEntryPoint())\n\t .accessDeniedHandler(new RestAccessDeniedHandler())\n\t .and()\n\t /*\n\t anonymous() consider no authentication as being anonymous instead of null in the security context.\n\t */\n\t .anonymous()\n\t .and()\n\t /* No Http session is used to get the security context */\n\t .sessionManagement().sessionCreationPolicy(STATELESS)\n\t .and()\n\t .authorizeRequests()\n\t /* All access to the authentication service are permitted without authentication (actually as anonymous) */\n\t .antMatchers(\"/auth/**\").permitAll()\n\t /* All the other requests need an authentication.\n\t Role access is done on Methods using annotations like @PreAuthorize\n\t */\n\t .anyRequest().authenticated();\n\t }", "title": "" }, { "docid": "292e6c2be4acbce2bb21127d6080d464", "score": "0.5139603", "text": "private void restrictAccess(RoutingContext routingContext){\n\n // System.out.println(\"RESTRICT\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n // Session session = routingContext.session();\n String authHeader = request.getHeader(HttpHeaders.AUTHORIZATION);\n System.out.println(authHeader);\n if(authHeader!=null && authHeader.length()>0){\n // all good\n try {\n response.sendFile(\"webroot/home.html\").end();\n }\n catch(IllegalStateException err){\n System.out.println(err);\n }\n }\n else{\n response.setStatusCode(401).end(\"Access denied.\"); // Unauthorized\n }\n }", "title": "" }, { "docid": "9877aeaf2a42002eec71c6f937b6e91a", "score": "0.5135484", "text": "public interface AssessorCountSummaryService {\n\n @PreAuthorize(\"hasAnyAuthority('comp_admin')\")\n @SecuredBySpring(value = \"READ\", description = \"Comp Admins can see all Assessor Summary counts across the whole system\", securedType = AssessorCountSummaryResource.class)\n ServiceResult<AssessorCountSummaryPageResource> getAssessorCountSummariesByCompetitionIdAndAssessmentPeriodId(long competitionId, long assessmentPeriodId, String assessorNameFilter, int pageIndex, int pageSize);\n\n}", "title": "" }, { "docid": "e3629540905207803499a84d07cb2956", "score": "0.51282233", "text": "@Bean\n public FilterRegistrationBean jwtAuthenticationFilterRegistration(final JwtFilter filter) {\n final FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();\n filterRegistrationBean.setFilter(filter);\n filterRegistrationBean.setEnabled(false);\n return filterRegistrationBean;\n }", "title": "" }, { "docid": "f66ef77fd7248a7f032cb907216e9ac0", "score": "0.51272416", "text": "@Override\n\tpublic void configure(AuthorizationServerSecurityConfigurer security) throws Exception {\n\t\tsecurity.tokenKeyAccess(\"permitAll()\")\n\t\t.checkTokenAccess(\"isAuthenticated()\");\n\t}", "title": "" }, { "docid": "1cc8d14ad0a75a4fc17eb0c4dd204122", "score": "0.51260275", "text": "@RequestMapping(path = \"/protected-local\", method = RequestMethod.GET)\r\n @PreAuthorize(\"hasRole('ADMIN')\")\r\n public ResponseEntity<?> getProtectedGreetingLocal() {\r\n return ResponseEntity.ok(\"Greetings from admin protected method in sample 1!\");\r\n }", "title": "" }, { "docid": "46c8673b1546af4a478a70243bbb4c7f", "score": "0.5118723", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n\n http\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)\t//ovo je iz demo-a (komunikacija izmedju klijenta i servera je stateless)\n .and()\n .exceptionHandling().authenticationEntryPoint(restAuthenticationEntryPoint)\n .and()\n .authorizeRequests()\n\n .antMatchers(\"/\").permitAll()\n .antMatchers(\"/auth/login\").permitAll()\n .antMatchers(\"/auth/register\").permitAll()\n .antMatchers(\"/api/users/getrole/**\").permitAll()\n .antMatchers(\"/api/patients/confirm-account/**\").permitAll()\n .antMatchers(\"/api/appointments/saverequesttoappointment/**\").permitAll()\n .antMatchers(\"/api/appointments/declinerequesttoappointment/**\").permitAll()\n\n\n\n\n /*\n .antMatchers(\"/api/hotels\").hasAnyRole(\"USER\")\n .antMatchers(\"/api/users\").hasAnyRole(\"USER\", \"SYSTEM_ADMIN\")\n .antMatchers(\"/api/rentACars\").hasAnyRole(\"SYSTEM_ADMIN\")\n */\n\n .anyRequest().authenticated()\n .and()\n .cors().and()\n .addFilterBefore(new TokenAuthenticationFilter(tokenUtils, jwtUserService), BasicAuthenticationFilter.class);\n\t\t\t/*\n\t\t\t.and()\n\t\t\t.formLogin().loginPage(\"auth/login\").permitAll()\n\t\t\t.and()\n\t\t\t.logout().permitAll();\n\t\t\t*/\n\n\n\n\n http.csrf().disable();\n }", "title": "" }, { "docid": "23b551380852354947fd538cc3c8b68a", "score": "0.51170814", "text": "@Test\n\tpublic void testDoFilterInternal_6()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "6a651e3205fac8f6b09d5e6872d4372e", "score": "0.51160187", "text": "public BasicSecurityFilter getSecurityFilter(){\r\n return securityFilter;\r\n }", "title": "" }, { "docid": "0312436fb6a98f7bdc7226913c3ee779", "score": "0.5115262", "text": "@Test\n\tpublic void testDoFilterInternal_1()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "c8b8317a48fac664ed922bb10b76ecef", "score": "0.5108275", "text": "private void authentication() {\n\n }", "title": "" }, { "docid": "002d3de63d82a4e95f29ea9e2a9429ad", "score": "0.5094075", "text": "@Override\n\tpublic boolean isAuthorized(String pathInfo, ServletRequest req) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb4e707d572f652b7b7861b93c5f706d", "score": "0.5088794", "text": "public String addUserFilter();", "title": "" }, { "docid": "2a04dd43c971f5c58379653825626878", "score": "0.5082344", "text": "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException\n {\n Cookie session = requestContext.getCookies().get(cookieName);\n String csrf = Strings.nullToEmpty(requestContext.getHeaderString(csrfHeader));\n\n AuthCreds credentials = new AuthCreds(session, csrf);\n\n if(!authenticate(requestContext, credentials, SecurityContext.FORM_AUTH))\n {\n throw new WebApplicationException(unauthorizedHandler.buildResponse(prefix, realm));\n }\n }", "title": "" }, { "docid": "c1be4ac60206d8afbdf48e47d650944d", "score": "0.50699544", "text": "@Autowired\r\n protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(servicioSecurity);\r\n \r\n }", "title": "" }, { "docid": "039e35e7b12f5fca08f6ffb9ad326af8", "score": "0.50654113", "text": "@Override\n public void configure(WebSecurity web) throws Exception {\n web.ignoring().antMatchers(HttpMethod.OPTIONS, \"/**\");\n }", "title": "" }, { "docid": "1e6466b7c0a65dd086d5ba27b05b6315", "score": "0.5057958", "text": "@Override\r\n public boolean isAuthorized(HashMap<String, String> security, String serviceName, String method) {\n return false;\r\n }", "title": "" }, { "docid": "b3a2c980eddb8ad9a6a7ddd5ef865eeb", "score": "0.5057034", "text": "@Test(expected = java.lang.Exception.class)\n\tpublic void testDoFilterInternal_13()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "dce9d1e5a366a294b1dee3ffc0a46962", "score": "0.50555474", "text": "public interface BaseUserService {\n\n @NotSecured(value = \"This UID method is needed prior to being able to put a User on the SecurityContext, and so it cannot be secured itself\", mustBeSecuredByOtherServices = false)\n ServiceResult<UserResource> getUserResourceByUid(final String uid);\n\n @PostAuthorize(\"hasPermission(returnObject, 'READ')\")\n ServiceResult<UserResource> getUserById(final Long id);\n\n @PostFilter(\"hasPermission(filterObject, 'READ')\")\n ServiceResult<List<UserResource>> findAll();\n\n @PostFilter(\"hasPermission(filterObject, 'READ')\")\n ServiceResult<List<UserResource>> findByProcessRole(Role roleType);\n\n @PostFilter(\"hasPermission(filterObject, 'READ')\")\n ServiceResult<List<UserResource>> findByProcessRoleAndUserStatus(Role roleType, UserStatus userStatus);\n}", "title": "" }, { "docid": "bbdad0d5b22349d198ade6728fe14ce2", "score": "0.50543356", "text": "@Override\n public boolean preHandle(HttpServletRequest httpServletRequest,\n HttpServletResponse httpServletResponse, Object object) throws Exception {\n String token = httpServletRequest.getHeader(Magic.TOKEN);\n\n if (!(object instanceof HandlerMethod)) {\n return true;\n }\n HandlerMethod handlerMethod = (HandlerMethod) object;\n Method method = handlerMethod.getMethod();\n\n // Check NoAuth annotations.\n if (method.isAnnotationPresent(NoAuth.class)) {\n NoAuth noAuth = method.getAnnotation(NoAuth.class);\n if (noAuth.required()) {\n return true;\n }\n }\n\n // Check DoAuth annotations.\n if (method.isAnnotationPresent(DoAuth.class)) {\n DoAuth doAuth = method.getAnnotation(DoAuth.class);\n if (doAuth.required()) {\n if (token == null) {\n throw new RuntimeException(\"Authentication failed. Need a valid token\");\n }\n\n String username;\n try {\n username = JwtUtil.getUsername(token);\n } catch (JWTDecodeException j) {\n throw new RuntimeException(\"Token decode failed.\");\n }\n\n User user = userService.getUserByUsername(username);\n if (user == null) {\n throw new RuntimeException(\"Token is invalid. Unknown user\");\n }\n\n // Check token is valid.\n if (!JwtUtil.verify(token, username, user.getPassword())) {\n throw new RuntimeException(\"Invalid token\");\n }\n return true;\n }\n }\n return true;\n }", "title": "" }, { "docid": "2c94c78de26b22f9f02f7cc14f81c86c", "score": "0.5052507", "text": "@Override\n public void filter(ContainerRequestContext context) {\n }", "title": "" }, { "docid": "d87bad8a66e6d0fff29bf420805cd21d", "score": "0.5050529", "text": "@Test\n\tpublic void testDoFilterInternal_8()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "7b152a6b4dcd12c31d0771ee37f86c36", "score": "0.50498796", "text": "@Test(expected = javax.servlet.ServletException.class)\n\tpublic void testDoFilterInternal_12()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "558515ce02a9a1a3a9ee8a6706044de3", "score": "0.50472075", "text": "@Override\r\n\tpublic void doFilter(ServletRequest req, ServletResponse res,\r\n\t\t\tFilterChain chain) throws IOException, ServletException {\n\t\tHttpServletRequest r = (HttpServletRequest) req;\r\n\t\tHttpServletResponse resp = (HttpServletResponse) res;\r\n\t\tr.setCharacterEncoding(\"utf-8\");\r\n\t\tresp.setCharacterEncoding(\"utf-8\");\r\n\t\tString url = r.getRequestURL().toString() +\"?\"+ r.getQueryString();\r\n\t\t//filterNoLoginUser(r, resp);\r\n\t\t//放过不用登陆就可以访问的方法。\r\n\t\tboolean allowGo = allowPath(r);\r\n\t\tif(!allowGo){\r\n\t\t\tfilterNoLoginUser(r, resp);\r\n\t\t}\r\n\t\tchain.doFilter(req, resp);\r\n\t}", "title": "" }, { "docid": "6f56d2ec2827d5d81dff40224afcb7ef", "score": "0.5046652", "text": "@Test\n\tpublic void testDoFilterInternal_7()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "29565fd4ab952535d7ea64782f711771", "score": "0.50273824", "text": "void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException;", "title": "" }, { "docid": "e99ed913f0b52fa2609f8d0718287f78", "score": "0.50244755", "text": "@Override\n protected boolean shouldNotFilter(HttpServletRequest request) {\n return \"/auth\".equals(request.getServletPath())\n || (\"/users\".equals(request.getServletPath()) && \"POST\".equals(request.getMethod()));\n }", "title": "" }, { "docid": "ac8680fb4ab078a04df1d0611303efff", "score": "0.50157243", "text": "@Override\n public void configure(HttpSecurity http) throws Exception {\n http.authorizeRequests()\n .antMatchers(\"/oauth/token\").permitAll()\n .antMatchers(\"/\").permitAll()\n .antMatchers(\"/api/posts\").permitAll()\n .antMatchers(\"/api/accounts\").permitAll()\n .antMatchers(\"/api/register\").permitAll()\n .antMatchers(\"/api/accounts/{username}\").permitAll()\n .antMatchers(\"/api/posts/{id}\").permitAll()\n .antMatchers(\"/api/posts/{id}/comments\").permitAll()\n .antMatchers(\"/api/accounts/{username}/posts\").permitAll()\n .antMatchers(\"/api/publish\").hasAuthority(\"ROLE_USER\")\n .antMatchers(\"/api/posts/{postId}/comment\").hasAuthority(\"ROLE_USER\")\n .antMatchers(\"/api/posts/{postId}/comment/{id}\").hasAuthority(\"ROLE_USER\")\n .and().csrf().disable();\n }", "title": "" }, { "docid": "6c637780f1e51a94a9698b1a3db56985", "score": "0.50046885", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t\twac = (WebApplicationContext) filterConfig.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);\n\n\t\t// 不验证放行 url\n\t\t patterns.add(\"/hs\");\n\t\t patterns.add(\"/token/apply\");\n\t\t patterns.add(\"/token/check\");\n\t\t patterns.add(\"/token/refresh\");\n\n\t}", "title": "" }, { "docid": "e1129374c9b6a2dd031a8162af33defe", "score": "0.5001897", "text": "@Override\n public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n throws IOException, ServletException {\n /**\n * Obtain the JWT from the Authorization Header.\n */\n HttpServletRequest httpRequest = (HttpServletRequest) request;\n String authToken = YourMicroserviceSecurityConstants.obtainAuthorizationBearerToken(httpRequest);\n /**\n * Now Verify the Token and then, obtain the Subject Claim.\n * Validate we have a username from an extracted token and we are not authenticated,\n * then determine if the Token can be fully validated and has not Expired.\n */\n if (authToken != null) {\n try {\n JWTClaimsSet jwtClaimsSet = yourMicroserviceToken.verifyToken(authToken);\n if (jwtClaimsSet != null) {\n /**\n * Obtain our Subject from the Claims Set, which is our UserName, aka Your Microservice Person's\n * Primary Email.\n */\n String username = jwtClaimsSet.getSubject();\n if (username != null && !username.isEmpty() &&\n SecurityContextHolder.getContext().getAuthentication() == null) {\n UserDetails userDetails = userDetailsService.loadUserByUsername(username);\n UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());\n authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(httpRequest));\n SecurityContextHolder.getContext().setAuthentication(authentication);\n /**\n * Perform Statistical Metric of a Token being Used.\n */\n Integer countUpdated =\n identityProviderEntityManager.incrementTokenHistoryUsage(jwtClaimsSet.getJWTID());\n if (countUpdated == null || countUpdated != 1) {\n /**\n * We did not update the Usage Counter, this indicates that either the\n * Token has Expired, Revoked or in some other state other than Active,\n * so, immediately fail this token.\n */\n SecurityContextHolder.getContext().setAuthentication(null);\n }\n }\n }\n } catch (YourMicroserviceInvalidTokenException iste) {\n /**\n * Do Nothing, as the attempt of the failed Token will be Denied...\n */\n SecurityContextHolder.getContext().setAuthentication(null);\n YourMicroserviceToken.LOGGER.warn(\"{}Invalid Token Denying Access.\", YourMicroserviceToken.LOGGING_HEADER);\n }\n }\n /**\n * Continue filter chain.\n */\n chain.doFilter(request, response);\n }", "title": "" }, { "docid": "3e8c3c1cf0753acec37af2121d0c35be", "score": "0.49954367", "text": "@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp.addFilterAt(customUsernamePasswordAuthFilter(), BasicAuthenticationFilter.class);\n\t\thttp.addFilterAt(authorizationTokenAuthFilter(), BasicAuthenticationFilter.class);\n\t}", "title": "" }, { "docid": "d181ca012c48b89374b3361e2f60b780", "score": "0.49950612", "text": "@Test\n\tpublic void testDoFilterInternal_3()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "8d90c12bfe597aa3d1e10767942bb3e6", "score": "0.49850774", "text": "public LoginFilter() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "85d12adb2cb23d5141cf8ad3d43817a4", "score": "0.49835786", "text": "public interface AuthenticationStrategy {\n\n /**\n * Will be invoked by the incoming request, which allows to set the authentication for further use\n */\n void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException;\n\n /**\n * Should be called when a successful authentication, gives the ability to save\n * the necessary attributes for use in the following requests (if provided)\n *\n * @param user the user details\n */\n default void saveAuthentication(User user, HttpServletRequest request, HttpServletResponse response) {}\n\n /**\n * Should be called when user logout\n */\n default void removeAuthentication(HttpServletRequest request, HttpServletResponse response) {}\n}", "title": "" }, { "docid": "a065c766d3d58da70ca23ff828c3fded", "score": "0.49755314", "text": "@Test\n @WithUserDetails(\"funcionario\") // username\n void saveContaTestForbiden() throws Exception {\n\n ResultActions result = mockMvc.perform(MockMvcRequestBuilders.post(\"/conta/save\")\n .param(\"saldo\", \"120.d\")\n .param(\"numero\", \"123456\")\n .param(\"nome\", \"Teste\")\n )\n // the method send a redirect to login\n .andExpect(MockMvcResultMatchers.status().isForbidden())\n .andDo(MockMvcResultHandlers.print());\n\n Query query = testEntityManager.getEntityManager().createQuery(\"SELECT c FROM Conta c\");\n\n @SuppressWarnings(\"unchecked\")\n List<Conta> contas = query.getResultList();\n Assertions.assertEquals(0, contas.size());\n\n }", "title": "" }, { "docid": "95160ba23c35ef917861a4a433d0a645", "score": "0.4969131", "text": "@Override\n\tpublic void configure(WebSecurity web) throws Exception\n\t{\n\n\t\tboolean isRole = false;\n\n\n\t\tMap<String, String> mapRole = commonService.mapRole(isRole);\n\n\t\tList<String> list =new ArrayList<String>();\n\n\n\t\tfor (Map.Entry<String, String> entry : mapRole.entrySet())\n\t\t{\n\n\t\t\tString mAccessTo = entry.getKey();\n\t\t\tlist.add(mAccessTo);\n\t\t}\n\t\tweb.debug(false).ignoring().antMatchers(list.toArray(new String[list.size()]));\n//\t\tweb.debug(false).ignoring().antMatchers(\"/**\");\n\n\n\t}", "title": "" }, { "docid": "bcab0121410ba9ae8424cf0e4296a946", "score": "0.4967107", "text": "@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) // Handle HTTP request and start the chain\n\t\t\tthrows ServletException, IOException {\n\t\ttry {\n\t\t\tString jwt = parseJwt(request); // Assign JSON WebToken to variable jwt\n\t\t\tif (jwt != null && jwtUtils.validateJwtToken(jwt)) { // If JWT provided, start validation\n\t\t\t\tString username = jwtUtils.getUserNameFromJwtToken(jwt); // Get username provided with JWT\n\n\t\t\t\tUserDetails userDetails = userDetailsService.loadUserByUsername(username); // Load username\n\t\t\t\tUsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken( // Authenticate username and password\n\t\t\t\t\t\tuserDetails, null, userDetails.getAuthorities()); // Get user authorities\n\t\t\t\tauthentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); // Authenticate details from request\n\n\t\t\t\tSecurityContextHolder.getContext().setAuthentication(authentication); // Authenticate\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Cannot set user authentication: {}\", e); // Authentication failed error\n\t\t}\n\n\t\tfilterChain.doFilter(request, response); // Continue the filter chain\n\t}", "title": "" }, { "docid": "1bf34611f0de759041987f7bf691a146", "score": "0.4949985", "text": "@CrossOrigin(origins = {\"http://localhost:3000\"})\n @PostMapping(\"/changePassword\")\n @PreAuthorize(\"hasRole('ROLE_ADMIN') or hasRole('ROLE_CLIENT')\")\n public ResponseEntity<String> changePassword(@RequestParam(\"password\") String password) {\n RegexData regexData = validatePassword(password);\n if(regexData.isValid())\n {\n accountService.changePassword(null,password);\n return ResponseEntity.ok(\"The password was changed correctly\");\n }else{\n return ResponseEntity.badRequest().body(regexData.getError());\n }\n\n }", "title": "" }, { "docid": "6ff65e09bc91b5335540855ff7e5a1e4", "score": "0.4947607", "text": "@Override\n public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) servletRequest;\n String auth_key = request.getHeader(\"auth_key\");\n\n //create Authentication Object\n CustomAuthentication customAuthentication = new CustomAuthentication(auth_key, null);\n\n //delegate the request to Authentication Provider\n Authentication authentication = authenticationManager.authenticate(customAuthentication);\n\n // Saving the Authentication Object In Context\n if (authentication.isAuthenticated()) {\n SecurityContextHolder.getContext().setAuthentication(authentication);\n filterChain.doFilter(servletRequest, servletResponse);\n }\n }", "title": "" }, { "docid": "05f76485de520491d9539b8b7e11320e", "score": "0.49415132", "text": "@Test\n\tpublic void testDoFilterInternal_5()\n\t\tthrows Exception {\n\t\tBasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter();\n\t\tfixture.filterConfig = null;\n\t\tServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tFilterChain chain = new ProxiedFilterChain((FilterChain) null, new Vector());\n\n\t\tfixture.doFilterInternal(request, response, chain);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "fc210cb13c1e31acfbf4e3651d1ec61d", "score": "0.4932622", "text": "void authenticate(){\n }", "title": "" }, { "docid": "610a0e1bb9576c94e4d48e2e78553184", "score": "0.49234128", "text": "@PreAuthorize(value = \"hasAuthority('ADMIN')\")\n List<User> getAllUsers();", "title": "" }, { "docid": "2521b243fbda1a6c1a1c0f77cd8db8f7", "score": "0.49233514", "text": "@Override\r\n\tpublic void doFilter(ServletRequest request, \r\n\t\t\tServletResponse response,\r\n\t\t\tFilterChain chain)\r\n\t\t\tthrows IOException, ServletException {\n\t\tSystem.out.println(\"AdminFilter!!\");\r\n\t\tString user = request.getParameter(\"user\");\r\n\t\t//檢查是否可進入\r\n\t\tif (AuthTable.canAdmin(user)) {\r\n\t\t\tchain.doFilter(request, response);\r\n\t\t}else {\r\n\t\tHttpServletResponse httpResp = (HttpServletResponse)response;\r\n\t\thttpResp.sendRedirect(\"../index.html\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b3986ec6639e9313be8ee9dfa58bf4de", "score": "0.49137136", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n http\n .authorizeRequests()\n .antMatchers(\"/home\").authenticated()\n .antMatchers(HttpMethod.POST, \"/product\").authenticated()\n .anyRequest().permitAll()\n .and()\n .formLogin()\n .and()\n .httpBasic();\n\n\n// .formLogin().loginPage(\"/login.html\").permitAll().usernameParameter(\"j_username\")\n// .passwordParameter(\"j_password\").loginProcessingUrl(\"/j_spring_security_check\").failureUrl(\"/login.html?error=true\")\n// .and()\n// .httpBasic()\n// .and()\n// .authorizeRequests().antMatchers(\"/security/**\").hasRole(\"ADMIN\")\n// .antMatchers(\"/user/**\").hasRole(\"USER\")\n// .and()\n// .logout().logoutUrl(\"/j_spring_security_logout\").logoutSuccessUrl(\"/\")\n// .and()\n// .rememberMe().key(\"myKey\").tokenValiditySeconds(300)\n// .and()\n// .csrf().disable();\n }", "title": "" } ]
9180d56436995e968b82c3dc9ce870e2
Encode caractere en format UTF8
[ { "docid": "514df91999c5fab48213b12a57a293c0", "score": "0.62898654", "text": "public String encodeUtf8Format(String stringToEncode) {\r\n byte[] utf8Data = null;\r\n String strUtf8 = stringToEncode;\r\n try {\r\n utf8Data = stringToEncode.getBytes(FORMAT_UTF_8);\r\n strUtf8 = new String(utf8Data, FORMAT_UTF_8);\r\n } catch (UnsupportedEncodingException e) {\r\n }\r\n return strUtf8;\r\n }", "title": "" } ]
[ { "docid": "808cfd5bb7c3b002b7c3ecae9349ae84", "score": "0.72440046", "text": "public abstract String encode();", "title": "" }, { "docid": "dba89a7f6c01833db0a92bc4a7f5a27c", "score": "0.7041811", "text": "public static String encodeUtf8( String value ) {\n try {\n return URLEncoder.encode( value, \"UTF-8\" ).replace( \"+\", \"%20\" );\n } catch ( UnsupportedEncodingException e ) {\n throw new RuntimeException( \"UTF-8 encoding isn't supported on this system\", e ); // unrecoverable\n }\n }", "title": "" }, { "docid": "e1eb81e5c9f818fcfae73659451758b2", "score": "0.70298654", "text": "public static String encodeUTF8(String c) {\n StringBuilder r=new StringBuilder();\n for(int i=0;i<c.length();i++) {\n r.append(encodeUTF8(c.charAt(i)));\n } \n return(r.toString());\n }", "title": "" }, { "docid": "97651007c6894bc14929eaa5068596bf", "score": "0.68481284", "text": "private static String urlEncodeUTF8(String toEncode) {\n try {\n return URLEncoder.encode(toEncode, CHAR_ENCODING);\n } catch(UnsupportedEncodingException uee) {\n // Won't happen, encoding is hardcoded to a known working value.\n System.err.println(\"Unable to encode, charset \" + CHAR_ENCODING + \" is unsupported.\");\n return toEncode;\n }\n }", "title": "" }, { "docid": "289ae7331b01b2f8e4852ca3291d44eb", "score": "0.68419707", "text": "public static String encodeUTF8(int c) {\n if(c<=0x7F) return(\"\"+(char)c);\n if(c<=0x7FF) return( \"\"+(char)(0xC0+((c>>6)&0x1F))+\n (char)(0x80+(c&0x3F)));\n if(c<=0xFFFF) return( \"\"+(char)(0xE0+((c>>12)&0x0F))+\n (char)(0x80+((c>>6)&0x3F))+ \n (char)(0x80+(c&0x3F)));\n return(\"\"+c);\n }", "title": "" }, { "docid": "02e6cc764d7de20b920908ce77e3b86b", "score": "0.6781633", "text": "public abstract String encode(String s);", "title": "" }, { "docid": "a5f6cd959cf2fee3ef64415e43efee8c", "score": "0.6779864", "text": "public String encodeUtf8() {\n return encodeCharset(StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "149b7251e7bca64835d68d14105c4ec0", "score": "0.64802736", "text": "private String encode(String str) {\n int strlen = str.length();\n StringBuilder buf = new StringBuilder(2 * strlen);\n for (int i = 0; i < strlen; i++) {\n char c = str.charAt(i);\n switch (c) {\n case '%':\n buf.append(\"%25\");\n break;\n case '\\n':\n buf.append(\"%0A\");\n break;\n default:\n buf.append(c);\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "c2f7314948d053925e00f19700eb2ce0", "score": "0.6374348", "text": "public void encode(String encoding, String key) {this.encoded = true;}", "title": "" }, { "docid": "ad22ba894b67df960b31e08f2cb53b8d", "score": "0.6333681", "text": "private synchronized void encode(String name, String value) {\n\t\ttry { \n\t\t\tquery.append(URLEncoder.encode(name, \"UTF-8\")); \n\t\t\tquery.append('='); \n\t\t\tquery.append(URLEncoder.encode(value, \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException ex) { \n\t\t\tthrow new RuntimeException(\"Broken VM does not support UTF-8\"); \n\t\t}\n\t}", "title": "" }, { "docid": "d5956c0c066578e77d92c0006e2d03ae", "score": "0.6324954", "text": "@Test\n public void testEncode() {\n assertEquals(\"Capital A is ASCII/ANSEL 0x41\", 0x41, AnselMapping.encode('A'));\n assertEquals(\"Lowercase z is ASCII/ANSEL 0x7A\", 0x7A, AnselMapping.encode('z'));\n assertEquals(\"The unicode character for a capital L with a slash through it (U+0141, or \\u0141) is ANSEL A1\", 0xA1,\n AnselMapping.encode('\\u0141'));\n assertEquals(\"The unicode character for a musical flat (U+266D, or \\u266D) is ANSEL A9\", 0xA9, AnselMapping.encode(\n '\\u266D'));\n }", "title": "" }, { "docid": "26ba1b283ce54df427846fa54af3b562", "score": "0.6314312", "text": "public static String uEncode (String value)\n {\n\tif (value == null) { return null; }\n\tStringBuffer buf = null;\n\tboolean escaped = false;\n\tfor (int i = 0, len = value.length(); i < len; i++)\n\t{\n\t char ch = value.charAt(i);\n\t //if (ch == '\\\\' || ch > 0x7E) //QAI 46896\n\t if (ch > 0x7E)\n\t {\n\t\t// Not simple ASCII.\n\t\tif (! escaped)\n\t\t{\n\t\t // First time we found non-ASCII.\n\t\t buf = new StringBuffer(value.length());\n\t\t buf.append(value.substring(0, i));\n\t\t escaped = true;\n\t\t}\n\t\tbuf.append('\\\\');\n\t\tbuf.append('u');\n\t\tfor (int n = 12; n >= 0; n -= 4)\n\t\t buf.append(\"0123456789ABCDEF\".charAt((ch >> n) & 0xF));\n\t }\n\t else\n\t {\n\t\t// Simple ASCII, don't escape.\n\t\tif (escaped) { buf.append(ch); }\n\t }\n\t}\n\treturn (escaped ? buf.toString() : value);\n }", "title": "" }, { "docid": "0bf1a5a796c6f9bfefe31e04904a22da", "score": "0.62661505", "text": "public String encode(String s)\n {\n if (s == null)\n {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n int len = s.length();\n for (int i = 0; i < len; i++)\n {\n char c = s.charAt(i);\n if (c == _encodingChar || _reservedChars.contains(c))\n {\n sb.append(_encodingChar);\n int asciiVal = (int) c;\n if (asciiVal < 16) // <= 'F'\n {\n sb.append('0');\n }\n sb.append(Integer.toHexString(asciiVal).toUpperCase());\n }\n else\n {\n sb.append(c);\n }\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "e991d98719786ae283616b4409e943c7", "score": "0.62433594", "text": "private static String encodeUnicode(final String input) {\r\n String output = input;\r\n output = output.replace(\":\", \";\");\r\n output = output.replace(\"|\", \"¦\");\r\n output = output.replace(\"<\", \"[\");\r\n output = output.replace(\">\", \"]\");\r\n output = output.replace(\"/\", \"⁄\");\r\n output = output.replace(\"\\\\\", \"∖\");\r\n output = output.replace(\"*\", \"#\");\r\n output = output.replace(\"?\", \"¿\");\r\n output = output.replace(\"!\", \"¡\");\r\n output = output.replace(\"\\\"\", \"'\");\r\n return output;\r\n }", "title": "" }, { "docid": "8c32b568287745882b949ddecf232d16", "score": "0.6169925", "text": "@Override\r\n\tpublic String encode(String content) \r\n\t{\n\t\treturn content;\r\n\t}", "title": "" }, { "docid": "8bcfed39136b561688c5e4243ece98af", "score": "0.6085575", "text": "public void writeUTF(String value);", "title": "" }, { "docid": "6c06cab02600c59ba117b96362bbfae4", "score": "0.60773444", "text": "public static String encode(String raw) {\n StringBuilder sb = new StringBuilder((raw.length() * 3) / 2);\n Escaping.escapeXml(raw, false, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "055dc7a8d544cd06b5cf4f66f45764c1", "score": "0.60150045", "text": "private static String encode(String s)\r\n\t{\r\n\t\tStringBuffer sbuf = new StringBuffer();\r\n\t\tint len = s.length();\r\n\t\tfor (int i = 0; i < len; i++)\r\n\t\t{\r\n\t\t\tint ch = s.charAt(i);\r\n\t\t\tif ('A' <= ch && ch <= 'Z')\r\n\t\t\t{ // 'A'..'Z'\r\n\t\t\t\tsbuf.append((char) ch);\r\n\t\t\t}\r\n\t\t\telse if ('a' <= ch && ch <= 'z')\r\n\t\t\t{ // 'a'..'z'\r\n\t\t\t\tsbuf.append((char) ch);\r\n\t\t\t}\r\n\t\t\telse if ('0' <= ch && ch <= '9')\r\n\t\t\t{ // '0'..'9'\r\n\t\t\t\tsbuf.append((char) ch);\r\n\t\t\t}\r\n\t\t\telse if (ch == ' ')\r\n\t\t\t{ // space\r\n\t\t\t\tsbuf.append('+');\r\n\t\t\t}\r\n\t\t\telse if (ch == '-' || ch == '_' // unreserved\r\n\t\t\t\t\t|| ch == '.' || ch == '!' || ch == '~' || ch == '*' || ch == '\\'' || ch == '(' || ch == ')')\r\n\t\t\t{\r\n\t\t\t\tsbuf.append((char) ch);\r\n\t\t\t}\r\n\t\t\telse if (ch <= 0x007f)\r\n\t\t\t{ // other ASCII\r\n\t\t\t\tsbuf.append(String.valueOf(hex[ch]).toUpperCase());\r\n\t\t\t}\r\n\t\t\telse if (ch <= 0x07FF)\r\n\t\t\t{ // non-ASCII <= 0x7FF\r\n\t\t\t\tsbuf.append(String.valueOf(hex[0xc0 | (ch >> 6)]).toUpperCase());\r\n\t\t\t\tsbuf.append(String.valueOf(hex[0x80 | (ch & 0x3F)]).toUpperCase());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{ // 0x7FF < ch <= 0xFFFF\r\n\t\t\t\tsbuf.append(String.valueOf(hex[0xe0 | (ch >> 12)]).toUpperCase());\r\n\t\t\t\tsbuf.append(String.valueOf(hex[0x80 | ((ch >> 6) & 0x3F)]).toUpperCase());\r\n\t\t\t\tsbuf.append(String.valueOf(hex[0x80 | (ch & 0x3F)]).toUpperCase());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sbuf.toString();\r\n\t}", "title": "" }, { "docid": "2d13cc9cacd8487f5b3cf5f22ddeae7a", "score": "0.5975118", "text": "protected abstract void encode(Encoder encoder);", "title": "" }, { "docid": "c343a038fa4397012afcf85464650120", "score": "0.5963945", "text": "public static String encode(String s)\r\n\t{\r\n\t\tSB sb = new SB(s);\r\n\t\t\r\n\t\tsb.replace(\"\\\\\", \"\\\\\\\\\");\r\n\t\tsb.replace(\"\\n\", \"\\\\n\");\r\n\t\tsb.replace(\"\\r\", \"\\\\r\");\r\n\t\tsb.replace(\"\\t\", \"\\\\t\");\r\n\t\tsb.replace(\"\\f\", \"\\\\f\");\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "d7d35f6ea029fec3196ed4b535465a24", "score": "0.5962296", "text": "public static void encode()\n {\n String s = BinaryStdIn.readString();\n char[] input = s.toCharArray();\n encode(input);\n }", "title": "" }, { "docid": "37a0ae853d39517790d837e4c5a935b9", "score": "0.595268", "text": "public static void encode() {\n LinkedList<Character> ascii = new LinkedList<Character>();\n for (int i = 0; i < R; i++) {\n ascii.add((char) i);\n }\n while (!BinaryStdIn.isEmpty()) {\n char c = BinaryStdIn.readChar();\n int index = ascii.indexOf(c);\n BinaryStdOut.write(index, 8);\n ascii.remove(index);\n ascii.addFirst(c);\n }\n BinaryStdOut.flush();\n }", "title": "" }, { "docid": "86c7e055ea49de30859e495f9bd6fc0f", "score": "0.5951851", "text": "public static String encodeString(String str) {\n if (str==null) {\n return \"\";\n }\n String encodedStr=\"\";\n for(int i=0;i<str.length();i++) {\n char c=str.charAt(i);\n if (\n // Checks for unreserved characters that RFC 3986 defines that shouldn't be encoded\n ((c>='a') && (c<='z')) || ((c>='A') && (c<='Z')) ||\n ((c>='0') && (c<='9')) ||\n (c=='-') || (c=='.') || (c=='_') || (c=='~'))\n\n {\n encodedStr+=c;\n } else if ((c>=0x80) && (c<=0xffff)) { // UTF encoding - See http://en.wikipedia.org/wiki/UTF-8\n int firstLiteral = c/256;\n int secLiteral = c%256;\n if (c<=0x07ff) { // 2 literals unicode\n firstLiteral=192+(firstLiteral<<2)+(secLiteral>>6);\n secLiteral=128+(secLiteral & 63);\n encodedStr+=\"%\"+Integer.toHexString(firstLiteral).toUpperCase()+\"%\"+Integer.toHexString(secLiteral).toUpperCase();\n } else { // 3 literals unicode\n int thirdLiteral=128+(secLiteral & 63);\n secLiteral=128+((firstLiteral%16)<<2)+(secLiteral>>6);\n firstLiteral=224+(firstLiteral>>4);\n encodedStr+=\"%\"+Integer.toHexString(firstLiteral).toUpperCase()+\"%\"+Integer.toHexString(secLiteral).toUpperCase()\n +\"%\"+Integer.toHexString(thirdLiteral).toUpperCase();\n }\n// The max value of a char is 0xffff, so though URL encoding supports values bigger than that, we can't provide for it\n /*} else if (c>0xffff) { // 4 literals unicode (CJK upper ranges and others)\n int z=c/65536;\n int y=c%65536;\n int x=y%256;\n y=y/256;\n int[] literal=new int[4];\n literal[0]=240+(z>>2);\n literal[1]=128+((z%4)<<4)+(y>>4);\n literal[2]=128+((y%16)<<2)+(x>>6);\n literal[3]=128+(x & 63);\n for(int l=0;l<literal.length;l++) {\n encodedStr+=\"%\"+Integer.toHexString(literal[l]).toUpperCase();\n }*/\n } else {\n String prefix=\"%\";\n if (c<16) {\n prefix+=\"0\"; //For a value lesser than 16, we'd like to get %0F and not %F\n }\n encodedStr+=prefix+Integer.toHexString((int)c).toUpperCase();\n\n }\n }\n return encodedStr;\n }", "title": "" }, { "docid": "0fa0fa18273225ea7c1d0beeb650d6cb", "score": "0.5942608", "text": "public String encode(String str){\r\n\t\tString rv = \"\";\r\n\t\t\r\n\t\tfor(int i = 0; i < str.length(); i++){\r\n\t\t\trv += encoder.get(str.charAt(i));\r\n\t\t}\r\n\t\t\r\n\t\treturn rv;\r\n\t}", "title": "" }, { "docid": "522f4d3254c58d3f84b84f6da5242179", "score": "0.592092", "text": "public static String utf8Encode(String str, String defultReturn) {\r\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\r\n try {\r\n return URLEncoder.encode(str, \"UTF-8\");\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n return defultReturn;\r\n }\r\n }\r\n return str;\r\n }", "title": "" }, { "docid": "9b072722e4edde590e8356ce5d14d131", "score": "0.59198517", "text": "public final String encode(String chars) {\n// try {\n// // XXX Java 1.4 only\n// // return URLEncoder.encode(chars, \"UTF-8\");\n// } catch (UnsupportedEncodingException ex) {\n// return chars;\n// }\n //return URLEncoder.encode(chars);\n return null;\n }", "title": "" }, { "docid": "42328b6af019926d4498acdb9ea92ddb", "score": "0.59178245", "text": "public static String encodeURL(String url) {\n if (url == null) {\n return null;\n }\n StringBuffer sb = new StringBuffer(url.length());\n\n for (int i = 0; i < url.length(); i++) {\n char c = url.charAt(i);\n if (!isAlowedChar(c)) {\n sb.append('%'); // NOI18N\n sb.append(Integer.toHexString(c).toUpperCase());\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "cf94789e5daed601ef221b9cb846b9e1", "score": "0.5912867", "text": "public abstract HttpEncoding encoding();", "title": "" }, { "docid": "f6a80639e25221b9d1cf2193934d53d8", "score": "0.59083885", "text": "public static String encode(String name) {\n return encode(name, false);\n }", "title": "" }, { "docid": "bd95a25032e5342d78a18d65c137d6dc", "score": "0.58801806", "text": "String encodeForURL(String input) throws EncodingException;", "title": "" }, { "docid": "b81b27b25f8b43dce90f5c84aaa137d7", "score": "0.5864608", "text": "@Extension\n public static String encode( String urlPart )\n {\n try\n {\n return URLEncoder.encode( urlPart, \"UTF-8\" );\n }\n catch( UnsupportedEncodingException e )\n {\n throw new RuntimeException( e );\n }\n }", "title": "" }, { "docid": "1a47dc2b10d9d74d0f1a4fe4d2c3dc04", "score": "0.5853591", "text": "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "title": "" }, { "docid": "9ffb1a60dd034ad1528b6ec5892e27d2", "score": "0.5844355", "text": "void encodeByteArrayAsEscape(byte[] input, StringBuffer sql) {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < input.length; i++) {\n byte b = input[i];\n if(b == 0) {\n sb.append(\"\\\\\\\\000\");\n } else if(b == 39) {\n sb.append(\"\\\\'\");\n } else if(b == 92) {\n sb.append(\"\\\\\\\\134'\");\n } else if(b < 31 || b >= 127) {\n sb.append(\"\\\\\\\\\");\n String octal = Integer.toOctalString(b);\n if(octal.length() == 1) {\n sb.append(\"00\");\n } else if(octal.length() == 2) {\n sb.append(\"0\");\n }\n sb.append(octal);\n } else {\n sb.append((char) b);\n }\n }\n super.encodeValue(sb.toString(), String.class, sql);\n }", "title": "" }, { "docid": "7fe5bd6c4ad952da05e4842a940af3c1", "score": "0.5840885", "text": "private static String contentEncode(String content, String charset) {\r\n\t\ttry {\r\n\t\t\treturn URLEncoder.encode(content, charset);\r\n\t\t} catch(Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "261233562660cdf8ac9d0f8db841f5ac", "score": "0.5838624", "text": "public void writeUTFBytes(String value);", "title": "" }, { "docid": "7efc2ec34b5e071e606c1c7ef6936d68", "score": "0.5820633", "text": "public static String encode(String input) {\n return encode(input.getBytes());\n }", "title": "" }, { "docid": "8070be8637abdfa9adcce4d491deb3d6", "score": "0.580798", "text": "public static String encodeURIComponent(String s) {\n String result;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "title": "" }, { "docid": "24f30be4ca6df485f4a1dd7a2d928a04", "score": "0.5806452", "text": "@Override\n public String encode(CharSequence charSequence) {\n return passwordEncoder.encode(charSequence);\n }", "title": "" }, { "docid": "28cff97564c6e1d07f81e8b8f548ec7a", "score": "0.57735616", "text": "private String encode()\n\t{\n\t\tString zipCode = \"\";\n\t\t// Validating the zip code\n\t\tif (isValidZipCode(myZipCode)) \n\t\t{\n\t\t // Assigning the starting frame bar to the empty string\n\t\t\tzipCode += '|';\n\t\t \n\t\t // Converts each digit char of myZipCode to its code equivalent\n\t\t for (int i = 0; i < myZipCode.length(); i++) \n\t\t {\n\t\t \tzipCode += digitToCode(myZipCode.charAt(i));\n\t\t }\n\n\t\t // Assigns the encoded check digit to the encoded zipcode\n\t\t int checkDigit = getCheckDigit(myZipCode);\n\t\t zipCode += digitToCode(Character.forDigit(checkDigit, 0));\n\n\t\t // Add the ending frame bar to the end of the zip Code String\n\t\t zipCode += '|';\n\n\t\t // Returns the zipcode encoded in a String format\n\t\t return zipCode.toString();\n\t\t} \n\t\telse\n\t\t // Returns an empty string when myZipCode is invalid\n\t\t return \"\";\n\t\t\n\t}", "title": "" }, { "docid": "36142bd6562c2a44ce75b858fd8d48e6", "score": "0.5770763", "text": "private static void encode() {\n\t\tencodedMessage = \"\";\n\t\t// convert text input string to uppercase char array (uc because encodingMap hash keys are uc)\n\t\tString preMessageString = text.toUpperCase();\n\t\tchar[] preMessageArray = preMessageString.toCharArray();\n\t\t\n\t\t// current character to be encoded\n\t\tchar currentChar;\n\t\t\n\t\t// loop through char array\n\t\tfor (int i = 0; i < preMessageArray.length; i++) {\n\t\t\tif ((int) preMessageArray[i] != 0) {\n\t\t\tcurrentChar = preMessageArray[i];\n\t\t\t// append code for character, retrieved from hashmap\n\t\t\tencodedMessage += encodingMap.get(currentChar);\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"ENCODING TABLE: \");\n\t\t// see method description\n\t\tdisplayEncodingMap(encodingMap);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"NOTE: Any characters besides a-z, A-Z, space, \");\n\t\tSystem.out.println(\"and newline will be encoded as null values.\");\n\t\tSystem.out.println(\"THE ENCODED MESSAGE IS: \");\n\t\t\n\t\tfor (int i = 0; i < encodedMessage.length(); i++) {\n\t\t\t// keep the width of the console output at 60\n\t\t\tif (i%60 == 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n System.out.print(encodedMessage.charAt(i));\n\t\t\t\n\t\t} System.out.println();\n\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "53238274c9a61156622c903a27e8d7a2", "score": "0.5743714", "text": "protected native String encodeURIComponent(String text) /*-{\n return encodeURIComponent(text);\n }-*/;", "title": "" }, { "docid": "84f3afa08d7ac363e78c8230b39191a6", "score": "0.5736772", "text": "public String encodeString(String s) {\n String result;\n result = new String(s.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);\n return result;\n }", "title": "" }, { "docid": "65161c81cdf69249d459c5402f0df711", "score": "0.5727135", "text": "@Override\r\n\tpublic String encode(CharSequence rawPassword) {\n\t\treturn rawPassword.toString();\r\n\t}", "title": "" }, { "docid": "809ecda8271d1e32a3509fe2988ff1f9", "score": "0.57248133", "text": "@Override\n public String encode(String message) {\n StringBuilder aux = new StringBuilder(message);\n return aux.reverse().toString();\n }", "title": "" }, { "docid": "8bc21dbcddb65936573c6446cc419dba", "score": "0.5717601", "text": "public String asEncodedString() {\n return isEmpty() ? \"NULL\" : utf8Encoded;\n }", "title": "" }, { "docid": "e9856e307056b9be2c5f35449754e294", "score": "0.5712062", "text": "public final static\n\tString UTF8_encode(String source) {\n\t\tbyte[] bArray = source.getBytes(StandardCharsets.UTF_8);\n\t\treturn new String(bArray);\n\t}", "title": "" }, { "docid": "f28511e32ffc0749774aea342e8fa538", "score": "0.57071227", "text": "public static String encodeBackslash(char c) {\n if(isAlphanumeric(c) || c==' ') return(\"\"+c);\n String hex=Integer.toHexString(c);\n while(hex.length()<4) hex=\"0\"+hex;\n return(\"\\\\u\"+hex);\n }", "title": "" }, { "docid": "64f44650fd95f32923e84e055f483f7f", "score": "0.57032216", "text": "public static String encode(String paramString1, String paramString2) throws UnsupportedEncodingException {\n/* */ Charset charset;\n/* 203 */ boolean bool = false;\n/* 204 */ StringBuffer stringBuffer = new StringBuffer(paramString1.length());\n/* */ \n/* 206 */ CharArrayWriter charArrayWriter = new CharArrayWriter();\n/* */ \n/* 208 */ if (paramString2 == null) {\n/* 209 */ throw new NullPointerException(\"charsetName\");\n/* */ }\n/* */ try {\n/* 212 */ charset = Charset.forName(paramString2);\n/* 213 */ } catch (IllegalCharsetNameException illegalCharsetNameException) {\n/* 214 */ throw new UnsupportedEncodingException(paramString2);\n/* 215 */ } catch (UnsupportedCharsetException unsupportedCharsetException) {\n/* 216 */ throw new UnsupportedEncodingException(paramString2);\n/* */ } \n/* */ \n/* 219 */ for (byte b = 0; b < paramString1.length(); ) {\n/* 220 */ char c = paramString1.charAt(b);\n/* */ \n/* 222 */ if (dontNeedEncoding.get(c)) {\n/* 223 */ if (c == ' ') {\n/* 224 */ c = '+';\n/* 225 */ bool = true;\n/* */ } \n/* */ \n/* 228 */ stringBuffer.append((char)c);\n/* 229 */ b++;\n/* */ continue;\n/* */ } \n/* */ do {\n/* 233 */ charArrayWriter.write(c);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 242 */ if (c < '?' || c > '?') {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 247 */ if (b + 1 >= paramString1.length())\n/* 248 */ continue; char c1 = paramString1.charAt(b + 1);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 253 */ if (c1 < '?' || c1 > '?') {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 259 */ charArrayWriter.write(c1);\n/* 260 */ b++;\n/* */ \n/* */ \n/* */ \n/* 264 */ ++b;\n/* 265 */ } while (b < paramString1.length() && !dontNeedEncoding.get(c = paramString1.charAt(b)));\n/* */ \n/* 267 */ charArrayWriter.flush();\n/* 268 */ String str = new String(charArrayWriter.toCharArray());\n/* 269 */ byte[] arrayOfByte = str.getBytes(charset);\n/* 270 */ for (byte b1 = 0; b1 < arrayOfByte.length; b1++) {\n/* 271 */ stringBuffer.append('%');\n/* 272 */ char c1 = Character.forDigit(arrayOfByte[b1] >> 4 & 0xF, 16);\n/* */ \n/* */ \n/* 275 */ if (Character.isLetter(c1)) {\n/* 276 */ c1 = (char)(c1 - 32);\n/* */ }\n/* 278 */ stringBuffer.append(c1);\n/* 279 */ c1 = Character.forDigit(arrayOfByte[b1] & 0xF, 16);\n/* 280 */ if (Character.isLetter(c1)) {\n/* 281 */ c1 = (char)(c1 - 32);\n/* */ }\n/* 283 */ stringBuffer.append(c1);\n/* */ } \n/* 285 */ charArrayWriter.reset();\n/* 286 */ bool = true;\n/* */ } \n/* */ \n/* */ \n/* 290 */ return bool ? stringBuffer.toString() : paramString1;\n/* */ }", "title": "" }, { "docid": "516891ab305ec91b1242dbf01879b1c7", "score": "0.570071", "text": "private String encodeURL(String url) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (char c : url.toCharArray()) {\r\n\t\t\tif (c != ':' && c != '/') {\r\n\t\t\t\tsb.append(URLEncoder.encode(String.valueOf(c)));\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "bb982e4f30aa292d1ee41ddeddaa207f", "score": "0.56896824", "text": "protected void addCharacterEncoding(int code, String name) {\n/* 48 */ this.codeToName.put(Integer.valueOf(code), name);\n/* 49 */ this.nameToCode.put(name, Integer.valueOf(code));\n/* */ }", "title": "" }, { "docid": "9f65b96a3e681893846cada1fa51141a", "score": "0.5687655", "text": "private static String encodeEventLabelPart(String input) {\n\t\treturn input.replace(\"%\", \"%25\").replace(\"/\", \"%2F\").replace(\"#\", \"%23\");\n\t}", "title": "" }, { "docid": "06d1fe317870e28d920caa5db38f5da3", "score": "0.5687555", "text": "protected String encode(byte[] input) {\n return ByteString.of(input).base64();\n }", "title": "" }, { "docid": "0acee0d898a59e8a9a2469235f756b5c", "score": "0.56770366", "text": "public static String encode(byte[] input) {\n char[] lookupTable = {\n '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', // 0-15\n 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', // 16-31\n 'V', 'W', 'X', 'Y', 'Z', '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', // 32-47\n 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' // 48-63\n }; // 1 char = 6 bits, 4 chars = 3 bytes (24 bits)\n\n int inLen = input.length;\n int outLen = inLen + ((inLen + 2) / 3), outPos = 0;\n char output[] = new char[outLen];\n int bytePosition = 0, buffer = 0, bitLength = 0, bitShift;\n while (bytePosition < inLen) {\n if (bitLength < 6) { // load more bits if needed\n buffer = (buffer << 8) | (input[bytePosition++] & 0xff);\n bitLength += 8;\n }\n bitShift = bitLength - 6; // number of bits to shift the mask\n output[outPos++] = lookupTable[((0x3f << bitShift) & buffer) >> bitShift]; // append the character to the output\n bitLength -= 6;\n }\n if (bitLength > 0) { // append any remaining bits\n buffer <<= 6 - bitLength; // if <bit position> is less than 6, append zeros\n output[outPos] = lookupTable[buffer & 0x3f];\n }\n return new String(output);\n }", "title": "" }, { "docid": "bd3408273a0afe05a71f09adc9024702", "score": "0.567534", "text": "@org.junit.Test\r\n public void testEncode_utf16F4WithString() {\r\n String param0 = null;\r\n String stringResult = TextUtils.encode_utf16F4(param0);\r\n \r\n // Add assertions\r\n \r\n }", "title": "" }, { "docid": "55f950227adc8aa646a3fa9e1f43f125", "score": "0.5663085", "text": "public String encode(char c) throws ElementNotFoundException {\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < encodingList.size(); i++) {\r\n\t\t\tEncodingData node = encodingList.removeFirst();\r\n\t\t\tif (node.getSymbol() == c) {\r\n\t\t\t\tresult = node.getEncoding();\r\n\t\t\t\tencodingList.addToRear(node);\r\n\t\t\t} else\r\n\t\t\t\tencodingList.addToRear(node);\r\n\t\t}\r\n\t\tif (result.equals(\"\"))\r\n\t\t\tthrow new ElementNotFoundException(\"Element not found\");\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "57a80bf94e561b8be4c66514e18803db", "score": "0.5650263", "text": "public abstract String getEncoding();", "title": "" }, { "docid": "6a893cf5830b26b1e193d1c153ff5503", "score": "0.56469977", "text": "public static String encode(byte[] a) {\n\t// check input\n\tif (a == null || a.length == 0) {\n\t // bogus shift, no data\n\t return \"x\";\n\t}\n\t// determine count\n\tint[] cnt = new int[256];\n\tfor (int i = 0 ; i < a.length; i++) {\n\t cnt[a[i] & 0xff]++;\n\t}\n\t// determine shift for minimum number of escapes\n\tint shift = 1;\n\tint nEscapes = a.length;\n\tfor (int i = 1; i < 256; i++) {\n\t if (i == '\\'') {\n\t\tcontinue;\n\t }\n\t int sum = cnt[i] + cnt[(i + 1) & 0xff] + cnt[(i + '\\'') & 0xff];\n\t if (sum < nEscapes) {\n\t\tnEscapes = sum;\n\t\tshift = i;\n\t\tif (nEscapes == 0) {\n\t\t // cannot become smaller\n\t\t break;\n\t\t}\n\t }\n\t}\n\t// construct encoded output\n\tint outLen = a.length + nEscapes + 1;\n\tStringBuffer out = new StringBuffer(outLen);\n\tout.append((char)shift);\n\tfor (int i = 0; i < a.length; i++) {\n\t // apply shift\n\t char c = (char)((a[i] - shift)&0xff);\n\t // insert escapes\n\t if (c == 0) { // forbidden\n\t\tout.append((char)1);\n\t\tout.append((char)1);\n\t } else if (c == 1) { // escape character\n\t\tout.append((char)1);\n\t\tout.append((char)2);\n\t } else if (c == '\\'') { // forbidden\n\t\tout.append((char)1);\n\t\tout.append((char)3);\n\t } else {\n\t\tout.append(c);\n\t }\n\t}\n\treturn out.toString();\n }", "title": "" }, { "docid": "642d937194682e3a51c5b6eea1115cec", "score": "0.56455773", "text": "@Override\r\n public void setCharacterEncoding(String value) throws UnsupportedEncodingException {\r\n resourceRequest.setCharacterEncoding(value);\r\n }", "title": "" }, { "docid": "88cbdea7d1234a71a8a63935b9082f91", "score": "0.5643744", "text": "public static String getEncodedString(String in) throws Exception{\r\n\t\tif (in == null) return \"\";\r\n\t\ttry {\r\n\t\t\treturn java.net.URLEncoder.encode(in,\"UTF-8\"); \r\n\t\t}catch (Exception ex){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e238e86a4bcf34eb9ea7bbaa71f118ff", "score": "0.56336015", "text": "@Override\n public void encode(final String val) {\n try {\n byteBuffer.clear();\n byteBuffer.putInt(val.length());\n os.write(byteBuffer.array());\n os.write(val.getBytes());\n } catch (IOException e) {\n throw new RuntimeIOException(e);\n }\n }", "title": "" }, { "docid": "5c68982eeb18f91d76f8c9d09e65ea50", "score": "0.5631978", "text": "public static final String encodeString(CharSequence s) {\n int n = s.length();\n StringBuilder sb = new StringBuilder(n + 18);\n sb.append('\"');\n for (int i = 0, cc; i < n; i += cc) {\n int cp = Character.codePointAt(s, i);\n cc = Character.charCount(cp);\n encodeCodepointOnto(cp, sb);\n }\n return sb.append('\"').toString();\n }", "title": "" }, { "docid": "a2602926dcf3c0bde29e0e37b85d8ae1", "score": "0.56142265", "text": "@NonNull\n private String urlEncode(@SuppressWarnings(\"SameParameterValue\") @NonNull String input) {\n try {\n return URLEncoder.encode(input, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return \"\";\n }\n }", "title": "" }, { "docid": "f556c15e36d1a635fef1d8313a7df379", "score": "0.5613086", "text": "public String encode () {\n String courseEncode = \";\";\n return String.join(courseEncode, courses);\n }", "title": "" }, { "docid": "efc48a991f68424f3dfc0e3831b8d76d", "score": "0.5612587", "text": "private static String encodeHex(byte data[]) {\r\n\t\tint datalength = data.length;\r\n\t\t// multiply by 2 as every byte will be represented by two characters\r\n\t\tchar out[] = new char[datalength * 2];\r\n\t\tint j = 0;\r\n\t\tfor(int i = 0; i < datalength; i++) {\r\n\t\t\tout[j++] = HEX[(0xf0 & data[i]) >>> HEX_CHAR_LENGTH];\r\n\t\t\tout[j++] = HEX[0xf & data[i]];\r\n\t\t}\r\n\t\treturn new String(out);\r\n\t}", "title": "" }, { "docid": "b91c47a798373806a9bbb9483bb2c3a6", "score": "0.56025517", "text": "public static String encodePath(String path) {\n return encodePath(path, true);\n }", "title": "" }, { "docid": "de10e9c09b141747f4c4b8508b201f96", "score": "0.55992514", "text": "protected static void encodeRFC2231(StringBuilder sb, String value) {\n int originalLength = sb.length();\n sb.append(\"*=UTF-8''\"); // no language\n byte[] bytes = value.getBytes(UTF_8);\n boolean encoded = false;\n for (int i = 0; i < bytes.length; i++) {\n int c = bytes[i] & 0xff;\n if (c <= 32 || c >= 127 || RFC2231_SPECIALS.indexOf(c) != -1) {\n sb.append('%');\n sb.append(HEX_DIGITS[c >> 4]);\n sb.append(HEX_DIGITS[c & 0xf]);\n encoded = true;\n } else {\n sb.append((char) c);\n }\n }\n if (!encoded) {\n // undo and use basic format\n sb.setLength(originalLength);\n sb.append('=');\n sb.append(value);\n }\n }", "title": "" }, { "docid": "a8b7768e0b18f5ad5cf3d33d7c57db16", "score": "0.5582104", "text": "String encodeForOS(Codec codec, String input);", "title": "" }, { "docid": "f85313ac54de5260211dcf69c113ac84", "score": "0.55810857", "text": "public static String getUTF8XMLString(String xml) {\n // A StringBuffer Object\n StringBuffer sb = new StringBuffer();\n sb.append(xml);\n String xmString = \"\";\n String xmlUTF8=\"\";\n try {\n xmString = new String(sb.toString().getBytes(\"UTF-8\"));\n xmlUTF8 = URLEncoder.encode(xmString, \"UTF-8\");\n System.out.println(\"utf-8 编码:\" + xmlUTF8) ;\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // return to String Formed\n return xmlUTF8;\n }", "title": "" }, { "docid": "8912afea14123fef370b52cb0fec98d3", "score": "0.5580298", "text": "public static String encodeX(byte[] a) {\n\t// check input\n\tif (a == null || a.length == 0) {\n\t return \"X''\";\n\t}\n\tchar[] out = new char[a.length * 2 + 3];\n\tint i = 2;\n\tfor (int j = 0; j < a.length; j++) {\n\t out[i++] = xdigits[(a[j] >> 4) & 0x0F];\n\t out[i++] = xdigits[a[j] & 0x0F];\n\t}\n\tout[0] = 'X';\n\tout[1] = '\\'';\n\tout[i] = '\\'';\n\treturn new String(out);\n }", "title": "" }, { "docid": "741af48a6b25391c6557b090e25bfd55", "score": "0.55723715", "text": "private static String htmlEncode(String s, boolean encodeSpecialChars) {\n s = noNull(s, \"\");\n\n StringBuilder str = new StringBuilder();\n\n for (int j = 0; j < s.length(); j++) {\n char c = s.charAt(j);\n\n // encode standard ASCII characters into HTML entities where needed\n if (c < '\\200') {\n switch (c) {\n case '\"':\n str.append(\"&quot;\");\n\n break;\n\n case '&':\n str.append(\"&amp;\");\n\n break;\n\n case '<':\n str.append(\"&lt;\");\n\n break;\n\n case '>':\n str.append(\"&gt;\");\n\n break;\n\n default:\n str.append(c);\n }\n }\n // encode 'ugly' characters (ie Word \"curvy\" quotes etc)\n else if (encodeSpecialChars && (c < '\\377')) {\n String hexChars = \"0123456789ABCDEF\";\n int a = c % 16;\n int b = (c - a) / 16;\n str.append(\"&#x\")\n .append(hexChars.charAt(b))\n .append(hexChars.charAt(a))\n .append(';');\n }\n //add other characters back in - to handle charactersets\n //other than ascii\n else {\n str.append(c);\n }\n }\n\n return str.toString();\n }", "title": "" }, { "docid": "3279bf0b48d2d0f4a7ee68997fae8592", "score": "0.5572179", "text": "public String encodeHex() {\n return encodeHex(false);\n }", "title": "" }, { "docid": "6c0b253ffa108f9c5d56eb5bf0d468e3", "score": "0.5568455", "text": "@Override\r\n\tpublic void setCharacterEncoding(String arg0) {\n\r\n\t}", "title": "" }, { "docid": "df630849e4d3c41e0d38cbf99ad8b7e8", "score": "0.5563738", "text": "@Override\r\n\tpublic String encode(CharSequence arg0) {\n\t\treturn (String) arg0;\r\n\t}", "title": "" }, { "docid": "ce1f7b5c93de2b8d1164915acc9c9c28", "score": "0.5563266", "text": "static public void encode(String text, StringBuffer buf)\n {\n buf.append(encode(text));\n }", "title": "" }, { "docid": "345afe07b1ce8b5c8287f2828de1d47a", "score": "0.55631727", "text": "int putStringUtf8(int offset, String value, ByteOrder byteOrder);", "title": "" }, { "docid": "6a85736664c8c4a53b62dfa2fc8d5e6c", "score": "0.55456495", "text": "@Override\r\n\tpublic String getCharacterEncoding() {\n\t\treturn \"ISO-8859-1\";\r\n\t}", "title": "" }, { "docid": "c3f76d8f320c6fd84720a97566d3398c", "score": "0.5533288", "text": "String encodeForJavaScript(String input);", "title": "" }, { "docid": "b6dba7d3a4a77c51c421ce6c53ee461d", "score": "0.5520498", "text": "public static String encodeAmpersand(char c) {\n String s;\n if(null!=(s=charToAmpersand.get(c))) return(s);\n if(c<128 && c>=32) return(\"\"+c);\n else return(\"&#\"+((int)c)+\";\");\n }", "title": "" }, { "docid": "cbbd4eb7e69d38d2a1d74f4db5337412", "score": "0.55182946", "text": "@Override\n\t\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2866ed4184ec37243dcec2e488fb71de", "score": "0.5514934", "text": "public static String encodeBackslash(String c) {\n StringBuilder r=new StringBuilder();\n for(int i=0;i<c.length();i++) {\n r.append(encodeBackslash(c.charAt(i)));\n } \n return(r.toString());\n }", "title": "" }, { "docid": "6af426ba1c6e43880150570b7e47248c", "score": "0.5506028", "text": "int putStringUtf8(int offset, String value, ByteOrder byteOrder, int maxEncodedSize);", "title": "" }, { "docid": "0cb100725e58a67d1876e35efbb5f2c5", "score": "0.5502318", "text": "@Override\n public String getContentEncoding() { return \"UTF-8\"; }", "title": "" }, { "docid": "36a6b7c44efb375afeedc6e575f565c2", "score": "0.5494119", "text": "String encode(String input, CsvContext context, CsvPreference preference);", "title": "" }, { "docid": "c74f798cfaedc7925794bfa9bbd764a5", "score": "0.5491356", "text": "public interface IEncoding {\n String encode(byte[] bytes);\n\n\n byte[] decode(String string);\n\n\n}", "title": "" }, { "docid": "5b325f31282fc384e79a8a9284848b2d", "score": "0.54821837", "text": "public String encodeIsoFormat(String stringToEncode) {\r\n byte[] iso88591Data = null;\r\n try {\r\n iso88591Data = stringToEncode.getBytes(FORMAT_ISO_8859_1);\r\n } catch (UnsupportedEncodingException e) {\r\n }\r\n return new String(iso88591Data);\r\n }", "title": "" }, { "docid": "1f2babde8fb070a20593efb24ea8755c", "score": "0.54772645", "text": "protected final static String urlEncode(String string)\r\n {\r\n try\r\n {\r\n return URLEncoder.encode(string,\"UTF-8\");\r\n }\r\n catch (UnsupportedEncodingException e)\r\n {\r\n e.printStackTrace();\r\n return string;\r\n }\r\n }", "title": "" }, { "docid": "95cce6294005eeca171d1c03d2c3c518", "score": "0.5472668", "text": "@Override\n public String encode(String text) {\n String result = \"\";\n\n for (int i = 0; i < text.length(); i++) {\n char ch = text.charAt(i);\n int res = (key.charAt(i%key.length())) ^ ch;\n\n result += (char) res;\n }\n return result;\n }", "title": "" }, { "docid": "d7fdec7b314ab248fe35beaeb5c7cede", "score": "0.5472365", "text": "private String encoded( byte[] values)\n {\n return Base64Domain.encoded( values);\n }", "title": "" }, { "docid": "de5c2cb138dd2c80f81e5b26ddd7be82", "score": "0.54718465", "text": "java.lang.String getEncoding();", "title": "" }, { "docid": "c4a0d936a2570c29cd62576f6b3e821f", "score": "0.5459973", "text": "public String encode(String p_str)\n {\n return p_str;\n }", "title": "" }, { "docid": "53d1deb05777ed6929ceb2e0cd503529", "score": "0.5457627", "text": "public static char[] encode(byte[] in) {\r\n return encode(in, 0, in.length);\r\n }", "title": "" }, { "docid": "c41bb7cfee5d416934f2b0b4b6ce91ec", "score": "0.545064", "text": "public interface Encoder {\r\n\r\n\t/** Standard character sets */\r\n\tpublic final static char[] CHAR_LOWERS = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\r\n\tpublic final static char[] CHAR_UPPERS = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };\r\n\tpublic final static char[] CHAR_DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };\r\n\tpublic final static char[] CHAR_SPECIALS = { '.', '-', '_', '!', '@', '$', '^', '*', '=', '~', '|', '+', '?' };\r\n\tpublic final static char[] CHAR_LETTERS = StringUtilities.union(CHAR_LOWERS, CHAR_UPPERS);\r\n\tpublic final static char[] CHAR_ALPHANUMERICS = StringUtilities.union(CHAR_LETTERS, CHAR_DIGITS);\r\n\t\r\n\t\r\n\t/**\r\n\t * Password character set, is alphanumerics (without l, i, I, o, O, and 0)\r\n\t * selected specials like + (bad for URL encoding, | is like i and 1,\r\n\t * etc...)\r\n\t */\r\n\tpublic final static char[] CHAR_PASSWORD_LOWERS = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\r\n\tpublic final static char[] CHAR_PASSWORD_UPPERS = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };\r\n\tpublic final static char[] CHAR_PASSWORD_DIGITS = { '2', '3', '4', '5', '6', '7', '8', '9' };\r\n\tpublic final static char[] CHAR_PASSWORD_SPECIALS = { '_', '.', '!', '@', '$', '*', '=', '-', '?' };\r\n\tpublic final static char[] CHAR_PASSWORD_LETTERS = StringUtilities.union( CHAR_PASSWORD_LOWERS, CHAR_PASSWORD_UPPERS );\r\n\r\n\r\n\t/**\r\n\t * This method performs canonicalization on data received to ensure that it\r\n\t * has been reduced to its most basic form before validation. For example,\r\n\t * URL-encoded data received from ordinary \"application/x-www-url-encoded\"\r\n\t * forms so that it may be validated properly.\r\n\t * <p>\r\n\t * Canonicalization is simply the operation of reducing a possibly encoded\r\n\t * string down to its simplest form. This is important, because attackers\r\n\t * frequently use encoding to change their input in a way that will bypass\r\n\t * validation filters, but still be interpreted properly by the target of\r\n\t * the attack. Note that data encoded more than once is not something that a\r\n\t * normal user would generate and should be regarded as an attack.\r\n\t * <P>\r\n\t * For input that comes from an HTTP servlet request, there are generally\r\n\t * two types of encoding to be concerned with. The first is\r\n\t * \"applicaton/x-www-url-encoded\" which is what is typically used in most\r\n\t * forms and URI's where characters are encoded in a %xy format. The other\r\n\t * type of common character encoding is HTML entity encoding, which uses\r\n\t * several formats:\r\n\t * <P>\r\n\t * <PRE>&lt;</PRE>,\r\n\t * <PRE>&#117;</PRE>, and\r\n\t * <PRE>&#x3a;</PRE>.\r\n\t * <P>\r\n\t * Note that all of these formats may possibly render properly in a\r\n\t * browser without the trailing semicolon.\r\n\t * <P>\r\n\t * Double-encoding is a particularly thorny problem, as applying ordinary decoders\r\n\t * may introduce encoded characters, even characters encoded with a different\r\n\t * encoding scheme. For example %26lt; is a < character which has been entity encoded\r\n\t * and then the first character has been url-encoded. Implementations should\r\n\t * throw an IntrusionException when double-encoded characters are detected.\r\n\t * <P>\r\n\t * Note that there is also \"multipart/form\" encoding, which allows files and\r\n\t * other binary data to be transmitted. Each part of a multipart form can\r\n\t * itself be encoded according to a \"Content-Transfer-Encoding\" header. See\r\n\t * the HTTPUtilties.getSafeFileUploads() method.\r\n\t * <P>\r\n\t * For more information on form encoding, please refer to the <a\r\n\t * href=\"http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4\">W3C\r\n\t * specifications</a>.\r\n\t * <p>\r\n\t * This method is equivalent to calling <pre>Encoder.canonicalize(input, true);</pre>\r\n\t * \r\n\t * @see <a href=\"http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4\">W3C specifications</a>\r\n\t * \r\n\t * @param input the text to canonicalize\r\n\t * @return a String containing the canonicalized text\r\n\t * @throws EncodingException if canonicalization fails\r\n\t */\r\n\tString canonicalize(String input) throws EncodingException;\r\n\t\r\n\t/**\r\n\t * This method performs canonicalization on data received to ensure that it\r\n\t * has been reduced to its most basic form before validation. For example,\r\n\t * URL-encoded data received from ordinary \"application/x-www-url-encoded\"\r\n\t * forms so that it may be validated properly.\r\n\t * <p>\r\n\t * Canonicalization is simply the operation of reducing a possibly encoded\r\n\t * string down to its simplest form. This is important, because attackers\r\n\t * frequently use encoding to change their input in a way that will bypass\r\n\t * validation filters, but still be interpreted properly by the target of\r\n\t * the attack. Note that data encoded more than once is not something that a\r\n\t * normal user would generate and should be regarded as an attack.\r\n\t * <P>\r\n\t * For input that comes from an HTTP servlet request, there are generally\r\n\t * two types of encoding to be concerned with. The first is\r\n\t * \"applicaton/x-www-url-encoded\" which is what is typically used in most\r\n\t * forms and URI's where characters are encoded in a %xy format. The other\r\n\t * type of common character encoding is HTML entity encoding, which uses\r\n\t * several formats:\r\n\t * <P>\r\n\t * <PRE>&lt;</PRE>,\r\n\t * <PRE>&#117;</PRE>, and\r\n\t * <PRE>&#x3a;</PRE>.\r\n\t * <P>\r\n\t * Note that all of these formats may possibly render properly in a\r\n\t * browser without the trailing semicolon.\r\n\t * <P>\r\n\t * Double-encoding is a particularly thorny problem, as applying ordinary decoders\r\n\t * may introduce encoded characters, even characters encoded with a different\r\n\t * encoding scheme. For example %26lt; is a < character which has been entity encoded\r\n\t * and then the first character has been url-encoded. Implementations should\r\n\t * throw an IntrusionException when double-encoded characters are detected.\r\n\t * <P>\r\n\t * Note that there is also \"multipart/form\" encoding, which allows files and\r\n\t * other binary data to be transmitted. Each part of a multipart form can\r\n\t * itself be encoded according to a \"Content-Transfer-Encoding\" header. See\r\n\t * the HTTPUtilties.getSafeFileUploads() method.\r\n\t * <P>\r\n\t * For more information on form encoding, please refer to the \r\n\t * <a href=\"http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4\">W3C specifications</a>.\r\n\t * \r\n\t * @see <a href=\"http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4\">W3C specifications</a>\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to canonicalize\r\n\t * @param strict \r\n\t * \t\ttrue if checking for double encoding is desired, false otherwise\r\n\t * \r\n\t * @return a String containing the canonicalized text\r\n\t * \r\n\t * @throws EncodingException \r\n\t * \t\tif canonicalization fails\r\n\t */\r\n\tString canonicalize(String input, boolean strict) throws EncodingException;\r\n\r\n\t/**\r\n\t * Reduce all non-ascii characters to their ASCII form so that simpler\r\n\t * validation rules can be applied. For example, an accented-e character\r\n\t * will be changed into a regular ASCII e character.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to normalize\r\n\t * \r\n\t * @return a normalized String\r\n\t */\r\n\tString normalize(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in Cascading Style Sheets (CSS) content.\r\n\t * \r\n\t * @see <a href=\"http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\">CSS Syntax [w3.org]</a>\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for CSS\r\n\t * \r\n\t * @return input encoded for CSS\r\n\t */\r\n\tString encodeForCSS(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in HTML using HTML entity encoding\r\n\t * <p> \r\n\t * Note that the following characters:\r\n\t * 00–08, 0B–0C, 0E–1F, and 7F–9F \r\n\t * <p>cannot be used in HTML. \r\n\t * \r\n\t * @see <a href=\"http://en.wikipedia.org/wiki/Character_encodings_in_HTML\">HTML Encodings [wikipedia.org]</a> \r\n\t * @see <a href=\"http://www.w3.org/TR/html4/sgml/sgmldecl.html\">SGML Specification [w3.org]</a>\r\n * @see <a href=\"http://www.w3.org/TR/REC-xml/#charsets\">XML Specification [w3.org]</a>\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for HTML\r\n\t * \r\n\t * @return input encoded for HTML\r\n\t */\r\n\tString encodeForHTML(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in HTML attributes.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for an HTML attribute\r\n\t * \r\n\t * @return input encoded for use as an HTML attribute\r\n\t */\r\n\tString encodeForHTMLAttribute(String input);\r\n\r\n\t/**\r\n\t * Encode data for insertion inside a data value in JavaScript. Putting user data directly\r\n\t * inside a script is quite dangerous. Great care must be taken to prevent putting user data\r\n\t * directly into script code itself, as no amount of encoding will prevent attacks there.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for JavaScript\r\n\t * \r\n\t * @return input encoded for use in JavaScript\r\n\t */\r\n\tString encodeForJavaScript(String input);\r\n\r\n\t/**\r\n\t * Encode data for insertion inside a data value in a Visual Basic script. Putting user data directly\r\n\t * inside a script is quite dangerous. Great care must be taken to prevent putting user data\r\n\t * directly into script code itself, as no amount of encoding will prevent attacks there.\r\n\t * \r\n\t * This method is not recommended as VBScript is only supported by Internet Explorer\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for VBScript\r\n\t * \r\n\t * @return input encoded for use in VBScript\r\n\t */\r\n\tString encodeForVBScript(String input);\r\n\r\n\r\n\t/**\r\n\t * Encode input for use in a SQL query, according to the selected codec \r\n\t * (appropriate codecs include the MySQLCodec and OracleCodec).\r\n\t * \r\n\t * This method is not recommended. The use of the PreparedStatement \r\n\t * interface is the preferred approach. However, if for some reason \r\n\t * this is impossible, then this method is provided as a weaker \r\n\t * alternative. \r\n\t * \r\n\t * The best approach is to make sure any single-quotes are double-quoted.\r\n\t * Another possible approach is to use the {escape} syntax described in the\r\n\t * JDBC specification in section 1.5.6.\r\n\t * \r\n\t * However, this syntax does not work with all drivers, and requires\r\n\t * modification of all queries.\r\n\t * \r\n\t * @see <a href=\"http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/statement.html\">JDBC Specification</a>\r\n\t * \r\n\t * @param codec \r\n\t * \t\ta Codec that declares which database 'input' is being encoded for (ie. MySQL, Oracle, etc.)\r\n\t * @param input \r\n\t * \t\tthe text to encode for SQL\r\n\t * \r\n\t * @return input encoded for use in SQL\r\n\t */\r\n\tString encodeForSQL(Codec codec, String input);\r\n\r\n\t/**\r\n\t * Encode for an operating system command shell according to the selected codec (appropriate codecs include\r\n\t * the WindowsCodec and UnixCodec).\r\n\t * \r\n\t * @param codec \r\n\t * \t\ta Codec that declares which operating system 'input' is being encoded for (ie. Windows, Unix, etc.)\r\n\t * @param input \r\n\t * \t\tthe text to encode for the command shell\r\n\t * \r\n\t * @return input encoded for use in command shell\r\n\t */\r\n\tString encodeForOS(Codec codec, String input);\r\n\r\n\t/**\r\n\t * Encode data for use in LDAP queries.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for LDAP\r\n\t * \r\n\t * @return input encoded for use in LDAP\r\n\t */\r\n\tString encodeForLDAP(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in an LDAP distinguished name.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for an LDAP distinguished name\r\n\t * \r\n\t * @return input encoded for use in an LDAP distinguished name\r\n\t */\r\n\tString encodeForDN(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in an XPath query.\r\n\t * \r\n\t * NB: The reference implementation encodes almost everything and may over-encode. \r\n\t * \r\n\t * The difficulty with XPath encoding is that XPath has no built in mechanism for escaping\r\n\t * characters. It is possible to use XQuery in a parameterized way to\r\n\t * prevent injection. \r\n\t * \r\n\t * For more information, refer to <a\r\n\t * href=\"http://www.ibm.com/developerworks/xml/library/x-xpathinjection.html\">this\r\n\t * article</a> which specifies the following list of characters as the most\r\n\t * dangerous: ^&\"*';<>(). <a\r\n\t * href=\"http://www.packetstormsecurity.org/papers/bypass/Blind_XPath_Injection_20040518.pdf\">This\r\n\t * paper</a> suggests disallowing ' and \" in queries.\r\n\t * \r\n\t * @see <a href=\"http://www.ibm.com/developerworks/xml/library/x-xpathinjection.html\">XPath Injection [ibm.com]</a>\r\n\t * @see <a href=\"http://www.packetstormsecurity.org/papers/bypass/Blind_XPath_Injection_20040518.pdf\">Blind XPath Injection [packetstormsecurity.org]</a>\r\n\t * \r\n\t * @param input\r\n\t * the text to encode for XPath\r\n\t * @return \r\n\t * \t\tinput encoded for use in XPath\r\n\t */\r\n\tString encodeForXPath(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in an XML element. The implementation should follow the <a\r\n\t * href=\"http://www.w3schools.com/xml/xml_encoding.asp\">XML Encoding\r\n\t * Standard</a> from the W3C.\r\n\t * <p>\r\n\t * The use of a real XML parser is strongly encouraged. However, in the\r\n\t * hopefully rare case that you need to make sure that data is safe for\r\n\t * inclusion in an XML document and cannot use a parse, this method provides\r\n\t * a safe mechanism to do so.\r\n\t * \r\n\t * @see <a href=\"http://www.w3schools.com/xml/xml_encoding.asp\">XML Encoding Standard</a>\r\n\t * \r\n\t * @param input\r\n\t * \t\t\tthe text to encode for XML\r\n\t * \r\n\t * @return\r\n\t *\t\t\tinput encoded for use in XML\r\n\t */\r\n\tString encodeForXML(String input);\r\n\r\n\t/**\r\n\t * Encode data for use in an XML attribute. The implementation should follow\r\n\t * the <a href=\"http://www.w3schools.com/xml/xml_encoding.asp\">XML Encoding\r\n\t * Standard</a> from the W3C.\r\n\t * <p>\r\n\t * The use of a real XML parser is highly encouraged. However, in the\r\n\t * hopefully rare case that you need to make sure that data is safe for\r\n\t * inclusion in an XML document and cannot use a parse, this method provides\r\n\t * a safe mechanism to do so.\r\n\t * \r\n\t * @see <a href=\"http://www.w3schools.com/xml/xml_encoding.asp\">XML Encoding Standard</a>\r\n\t * \r\n\t * @param input\r\n\t * \t\t\tthe text to encode for use as an XML attribute\r\n\t * \r\n\t * @return \r\n\t * \t\t\tinput encoded for use in an XML attribute\r\n\t */\r\n\tString encodeForXMLAttribute(String input);\r\n\r\n\t/**\r\n\t * Encode for use in a URL. This method performs <a\r\n\t * href=\"http://en.wikipedia.org/wiki/Percent-encoding\">URL encoding</a>\r\n\t * on the entire string.\r\n\t * \r\n\t * @see <a href=\"http://en.wikipedia.org/wiki/Percent-encoding\">URL encoding</a>\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for use in a URL\r\n\t * \r\n\t * @return input \r\n\t * \t\tencoded for use in a URL\r\n\t * \r\n\t * @throws EncodingException \r\n\t * \t\tif encoding fails\r\n\t */\r\n\tString encodeForURL(String input) throws EncodingException;\r\n\r\n\t/**\r\n\t * Decode from URL. Implementations should first canonicalize and\r\n\t * detect any double-encoding. If this check passes, then the data is decoded using URL\r\n\t * decoding.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to decode from an encoded URL\r\n\t * \r\n\t * @return \r\n\t * \t\tthe decoded URL value\r\n\t * \r\n\t * @throws EncodingException \r\n\t * \t\tif decoding fails\r\n\t */\r\n\tString decodeFromURL(String input) throws EncodingException;\r\n\r\n\t/**\r\n\t * Encode for Base64.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe text to encode for Base64\r\n\t * @param wrap\r\n\t * \t\tthe encoder will wrap lines every 64 characters of output\r\n\t * \r\n\t * @return input encoded for Base64\r\n\t */\r\n\tString encodeForBase64(byte[] input, boolean wrap);\r\n\r\n\t/**\r\n\t * Decode data encoded with BASE-64 encoding.\r\n\t * \r\n\t * @param input \r\n\t * \t\tthe Base64 text to decode\r\n\t * \r\n\t * @return input \r\n\t * \t\tdecoded from Base64\r\n\t * \r\n\t * @throws IOException\r\n\t */\r\n\tbyte[] decodeFromBase64(String input) throws IOException;\r\n\r\n}", "title": "" }, { "docid": "8f365e2186020105f429da900931768f", "score": "0.5449994", "text": "public static String escapeURI(String uri) {\n uri = getURL(uri);\n StringBuffer sb = new StringBuffer();\n for (int i = 0, c = uri.length(); i < c; i++) {\n char ch = uri.charAt(i);\n if (ch == '%') {\n if (i < c - 3 && isHexDigit(uri.charAt(i + 1)) && isHexDigit(uri.charAt(i + 2))) {\n sb.append(ch);\n continue;\n }\n }\n if (isReserved(ch) || isUnreserved(ch)) {\n //Note: this may not be accurate for some very special cases.\n sb.append(ch);\n } else {\n try {\n byte[] utf8 = Character.toString(ch).getBytes(\"UTF-8\");\n for (byte anUtf8 : utf8) {\n appendEscape(sb, anUtf8);\n }\n } catch (UnsupportedEncodingException e) {\n throw new Error(\"Incompatible JVM. UTF-8 not supported.\");\n }\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "1144ba4366f56f304ba9237480b88c3b", "score": "0.54477453", "text": "public static String encodeAmpersand(String c) {\n StringBuilder r=new StringBuilder();\n for(int i=0;i<c.length();i++) {\n r.append(encodeAmpersand(c.charAt(i)));\n } \n return(r.toString());\n }", "title": "" }, { "docid": "24d8b787929eed6ee5a6c5d72c87640d", "score": "0.5443815", "text": "static void encode(CharSequence key, CharSequence value, ByteBuf buf)\r\n/* 648: */ {\r\n/* 649:1365 */ encodeAscii(key, buf);\r\n/* 650:1366 */ buf.writeBytes(HEADER_SEPERATOR);\r\n/* 651:1367 */ encodeAscii(value, buf);\r\n/* 652:1368 */ buf.writeBytes(CRLF);\r\n/* 653: */ }", "title": "" }, { "docid": "c1147cfac6bb562b0f172b41c5820ef0", "score": "0.5437361", "text": "public String encode(String url) {\n if (res == null)\n return \"encoding failed! no response object!\";\n\n if (url.indexOf(\"javascript:\") != -1)\n return url;\n\n return res.encodeURL(url);\n }", "title": "" }, { "docid": "d8c6de4aa43329e6ebf2b544b70be2d1", "score": "0.5432113", "text": "public void writeAsEncodedUnicode(Writer w)\n throws XMLStreamException\n {\n try {\n w.write(\"<!ENTITY \");\n w.write(mName);\n String pubId = getPublicId();\n if (pubId == null) {\n w.write(\"PUBLIC \\\"\");\n w.write(pubId);\n w.write(\"\\\" \");\n } else {\n w.write(\"SYSTEM \");\n }\n w.write('\"');\n w.write(getSystemId());\n w.write(\"\\\" NDATA \");\n w.write(mNotationId);\n w.write('>');\n } catch (IOException ie) {\n throw new XMLStreamException(ie);\n }\n }", "title": "" }, { "docid": "fc193333f8df6f2ae036cbff14bbb3cb", "score": "0.5421747", "text": "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n StringBuilder sb = new StringBuilder();\n int id = nextid;\n for (int i = 0; i < 6; i ++) {\n int j = id % 62;\n id = id / 62;\n sb.insert(0, seed.charAt(j));\n }\n String res = sb.toString();\n shortToLong.put(res, longUrl);\n longToShort.put(longUrl, res);\n nextid ++;\n return res;\n }", "title": "" }, { "docid": "8945c44d78bf423c08309ccd6227333e", "score": "0.541919", "text": "public static String urlEncode(String strIn) {\r\n // Null begets null.\r\n if (strIn == null) {\r\n return null;\r\n }\r\n\r\n try {\r\n return URLEncoder.encode(strIn, \"UTF-8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // This should never happen since UTF-8 always exists.\r\n throw new IllegalArgumentException(\"UTF-8\");\r\n }\r\n }", "title": "" }, { "docid": "acdc5514b0971ed612210776f30477b5", "score": "0.541668", "text": "public static CharSequence encodeUTFDoubleByteCharsAsEntities(final CharSequence str) {\n \tif (str == null) return null;\n StringBuilder outResp = new StringBuilder(str.length());\n\n for (int i = 0; i < str.length(); i++) {\n int code = str.charAt(i);\n if (StringXMLEncodeUtils.isLegalChar(code)) {\n if (code >= 127) {\n outResp.append(\"&#\");\n outResp.append(code);\n outResp.append(\";\");\n } else {\n outResp.append(str.charAt(i));\n }\n }\n }\n return outResp.toString();\n }", "title": "" } ]
fbc6f63e51278845332eb495a5b4219b
MdTags Junit Test Cases
[ { "docid": "804e2ba99533f16222a10a36725275d2", "score": "0.5614345", "text": "@Test\r\n\tpublic void addMemberMdTagsAlreadyExistingTest() throws JSONException, ParseException {\r\n\t\tList<String> tags = new ArrayList<String>();\r\n\t\ttags.add(\"SPGMS523600153010\");\r\n\t\t//tags.add(\"CETVS823600153010\");\r\n\t\t\r\n\t\tDBCursor cursor = memberMDTagsWithDatesColl.find(new BasicDBObject(\"l_id\",\r\n\t\t\t\t\"OccassionTopologyTestingl_id\"));\r\n\t\tDBObject obj = cursor.next();\r\n\t\tBasicDBList list = (BasicDBList) obj.get(\"rtsTags\");\r\n\t\tBasicDBList tagList = (BasicDBList) obj.get(\"tags\");\r\n\t\t//System.out.println(\"Initial RTS Tags : \" + list.toString());\r\n\t\t//System.out.println(\"Initial Md Tags : \" + tagList.toString());\r\n\t\t\r\n\t\tmemberMDTags2Dao.addMemberMDTags(\"OccassionTopologyTestingl_id\", tags, occasionDurationMap, occasionPriorityMap);\r\n\t\tcursor = memberMDTagsWithDatesColl.find(new BasicDBObject(\"l_id\",\r\n\t\t\t\t\"OccassionTopologyTestingl_id\"));\r\n\t\tobj = cursor.next();\r\n\t\tlist = (BasicDBList) obj.get(\"rtsTags\");\r\n\t\ttagList = (BasicDBList) obj.get(\"tags\");\r\n\t\t//System.out.println(\"Organized RTS Tags : \" + list.toString());\r\n\t\t//System.out.println(\"Organized Md Tags : \" + tagList.toString()+\"\\n\");\r\n\r\n\t\t//Assert.assertEquals((new org.codehaus.jettison.json.JSONObject(list.get(1).toString()).get(\"t\")).equals(\"SPGMS5\"), true);\r\n\t\tAssert.assertEquals(list.size(), 1);\r\n\t\tAssert.assertTrue(list.toString().contains(\"SPFTS823600153010\"));\r\n\t\t\r\n\t\tAssert.assertEquals(tagList.size(), 1);\r\n\t\tAssert.assertTrue(tagList.toString().contains(\"SPGMS523600153010\"));\r\n\t}", "title": "" } ]
[ { "docid": "6c1ae9af056b9d232739b5b1684b8e65", "score": "0.66511244", "text": "@Test\n public void testITest() {\n assertEquals(\"<i>test</i>\",tag.makeTags(\"i\", \"test\"));\n }", "title": "" }, { "docid": "489bae343fdc990ab8ef841e695d6a82", "score": "0.6242959", "text": "@Test\n\tpublic void testAddTag() {\n\t\t\n\t\t\n\t\t//try to add no tags to the image\n\t\tImage actual = TagHandler.getInstance().addTag(img, tagsToAdd);\n\t\tassertEquals(img, actual);\n\t\tassertEquals(img.getName(), actual.getName()); //there should be no change to image name\n\t\t\n\t\ttagsToAdd.add(\"amir\"); //try to add the tag amir to the image\n\t\tTagHandler.getInstance().addTag(img, tagsToAdd); \n\t\tassertEquals(\"a @amir.jpg\", img.getName()); // test to see if the names match for image\n\t\t//assertEquals(\"a @amir.jpg\", img.getFile().getName());\n\t\t// test to see if the name changed in system\n\n\t\t\n\t}", "title": "" }, { "docid": "a1715cbd8cf113855b80ccd249a7fec3", "score": "0.6158187", "text": "public void testTag_1()\n throws Exception {\n String category = \"\";\n String name = \"\";\n\n Tag result = new Tag(category, name);\n\n // add additional test code here\n assertNotNull(result);\n assertEquals(\"\", result.getName());\n assertEquals(false, result.isSelected());\n assertEquals(\"\", result.getCategory());\n }", "title": "" }, { "docid": "6d79bd94937dbecef813be79c2ea03d5", "score": "0.6097936", "text": "public void testMissingTagsDefaults() {\n runConformTest(MISSING_TAGS);\n }", "title": "" }, { "docid": "d0c1cdbc54f3f2226b409b93198559af", "score": "0.6095474", "text": "@Test\n\tpublic void testGetTagsNonEmpty() {\n\t\t\n\t\tArrayList<String> expected = new ArrayList<String>();\n\t\t//have to do this way since\n\t\t//timestamps are different so only look tagName\n\t\tArrayList<String> actual = new ArrayList<String>();\n\n\t\texpected.add(\"amir\");\n\t\texpected.add(\"alex\");\n\t\t\n\t\tTagHandler.getInstance().tags.add(new Tag(\"amir\"));\n\t\tTagHandler.getInstance().tags.add(new Tag(\"alex\"));\n\t\tfor (Tag element : TagHandler.getInstance().tags){\n\t\t\tactual.add(element.getName());\n\t\t}\n\n\t\tassertEquals(expected, actual);\n\t}", "title": "" }, { "docid": "6bd573d30ecdf0b703a2b3d7eaf8fb33", "score": "0.60737437", "text": "@Test(dependsOnGroups = \"constructor\")\n\tpublic void testCreateImgTag6() {\n\t\tfactory.createImgTag(new BigInteger(\"1\"), null, new Properties());\n\t}", "title": "" }, { "docid": "def60d0a93cfe4b279968f329fddb432", "score": "0.60325086", "text": "@Test\n public void testGetTagMap() {\n System.out.println(\"Test of getTagMap method\");\n /* GitParameterDefinition instance = new GitParameterDefinition(\"name\",\"PT_TAG\",\"defaultValue\",\"description\",\"branch\");\n \n Map<String,String> result = instance.getTagMap();\n //assertEquals(expResult, result);\n if(!result.isEmpty()) {\n fail();\n }*/\n }", "title": "" }, { "docid": "9c26fc72310b02166c2c64c43955135c", "score": "0.60242224", "text": "public TagDAOTest() {\n tag = new Tag();\n tag.setName(TAG_NAME);\n }", "title": "" }, { "docid": "58732051f42202c5eec28f38dc5307e0", "score": "0.60036874", "text": "@Test(dependsOnGroups = \"constructor\")\n\tpublic void testCreateTag10() {\n\t\tfactory.createTag(new BigInteger(\"1\"), \"string\", null, new Properties());\n\t}", "title": "" }, { "docid": "ebd8d058b6e148365574b245a73eacbf", "score": "0.59960634", "text": "public void testTag_2()\n throws Exception {\n String category = \"\";\n String name = \"\";\n boolean selected = true;\n\n Tag result = new Tag(category, name, selected);\n\n // add additional test code here\n assertNotNull(result);\n assertEquals(\"\", result.getName());\n assertEquals(true, result.isSelected());\n assertEquals(\"\", result.getCategory());\n }", "title": "" }, { "docid": "90ede60c6742e2b67df2cb22956171a6", "score": "0.59924144", "text": "@Test\n\tpublic void getTaggedEntityTest() {\n\t\tString[] result = entityTagger.getTaggedEntity(TEXT);\n\t\tassertArrayEquals(result, TAG_ENTITY);\n\t}", "title": "" }, { "docid": "6f38a2aecb5b926354f19daeda6b2efd", "score": "0.5949383", "text": "public void testGetCategory_1()\n throws Exception {\n Tag fixture = new Tag(\"\", \"\", true);\n\n String result = fixture.getCategory();\n\n // add additional test code here\n assertEquals(\"\", result);\n }", "title": "" }, { "docid": "2638d8dac081ad7ae9a8670e32607dc1", "score": "0.59328", "text": "@Test\n\tpublic void testCreateTag() {\n\t\t\n\t\tboolean expected = true; //true since tags is empty, so no tags exists\n\t\tboolean actual = TagHandler.getInstance().createTag(\"amir\");\n\t\tassertEquals(expected, actual);\n\t\t\n\t\texpected = false; //try to see to add amir, but it already exists\n\t\tactual = TagHandler.getInstance().createTag(\"amir\");\n\t\tassertEquals(expected, actual);\n\n\t}", "title": "" }, { "docid": "16d59b12afef2f3845c764d940a04d93", "score": "0.5928988", "text": "@Test\n\tpublic void addingTagToMasterListTest1()\n\t{\n\t\ttagList.addTag(\"Test 3\");\n\t\t\n\t\tArrayList<String> readFile = tagList.readFile();\n\t\n\t\tassertTrue(readFile.contains(\"@Test 3\"));\n\t}", "title": "" }, { "docid": "838ae22675696ebe4f6b20c554bd3a4d", "score": "0.5924962", "text": "@Test\r\n\tpublic void tagPluginAddInputHtml(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9e9b4b0d6458623f7165ddfc81c0505a", "score": "0.5895863", "text": "@Test\n\tpublic void runSpleenTagsTest() throws InvalidModelException, IOException, URISyntaxException {\n\t\t// Run simulation\n\t\tDriver.main(new String[]{ \n\t\t\t\t\"--hours\", \"0\",\n\t\t\t\t\"--hours-before-print\", \"1\",\n\t\t\t\t\"--model-file\", getModelFilePath(\"spleenV2.mdsl\"),\n\t\t\t\t\"--print\", \"all\",\n\t\t\t\t\"--log-level\", LogType.PRINTED_SPECIES.name(),\n\t\t});\n\t\t// Check we got some tags.\n\t\tString[] lines = readLogFile(LogType.TAGS).split(\"\\n\");\n\t\tassertThat(\"Didn't print out tags file\", lines.length, greaterThan(100));\n\t}", "title": "" }, { "docid": "85eae7bfb65f04a82b99ab2f86d36b8c", "score": "0.5891431", "text": "@Test\n\tpublic void testRemoveTag() {\n\t\t\n\t\t//tagsToRemove empty at this point\n\t\t//try to remove no tags from the image\n\t\tImage actual = TagHandler.getInstance().removeTag(img, tagsToRemove);\n\t\tassertEquals(img, actual);\n\t\tassertEquals(img.getName(), actual.getName());\n\t\t\n\t\ttagsToRemove.add(\"amir\"); //try to remove the tag amir, but image has no tags yet\n\t\tactual = TagHandler.getInstance().removeTag(img, tagsToRemove); \n\t\tassertEquals(\"a.jpg\", actual.getName()); // test to see if the names match for image\n\t\tassertEquals(\"a.jpg\", file.getName()); // test to see if the name changed in system\n\t\t\n\t\t//add tags \"amir\" and \"alex\" to the image\n\t\ttagsToAdd.add(\"amir\");\n\t\ttagsToAdd.add(\"alex\");\n\t\tactual = TagHandler.getInstance().addTag(img, tagsToAdd);\n\t\t//image name should have \"@amir\" and \"@alex\" now, let's check\n\t\tassertEquals(\"a @amir @alex.jpg\", img.getName());\n\t\t\n\t\t//now let's delete the tag \"amir\" from the image\n\t\tactual = TagHandler.getInstance().removeTag(img, tagsToRemove);\n\t\tassertEquals(\"a @alex.jpg\", img.getName());\n\t\tassertEquals(\"a @alex.jpg\", img.getFile().getName());\n\t\t// test to see if the name changed in system\n\n\t}", "title": "" }, { "docid": "a3f3cca1a87fefc34203795556b93ec4", "score": "0.5888751", "text": "@Test\n\tpublic void testDeleteTag() {\n\t\tArrayList<Tag> expected = new ArrayList<Tag>(); //try to delete a tag from an empty tags list\n\t\tTagHandler.getInstance().deleteTag(\"non-existant\");\n\t\tArrayList<Tag> actual = TagHandler.getInstance().tags;\n\t\tassertEquals(expected, actual);\n\t\t\n\t\tArrayList<String> newExpected = new ArrayList<String>(); //have to do this way since\n\t\t//timestamps are different so only look tagName\n\t\tArrayList<String> newActual = new ArrayList<String>();\n\t\tnewExpected.add(\"amir\"); //populate the expeceted\n\t\tnewExpected.add(\"alex\");\n\t\tTagHandler.getInstance().tags.add(new Tag(\"amir\"));\n\t\tTagHandler.getInstance().tags.add(new Tag(\"alex\"));\n\t\tfor (Tag element : TagHandler.getInstance().tags){\n\t\t\tnewActual.add(element.getName());\n\t\t}\n\t\t\n\t\tTagHandler.getInstance().deleteTag(\"notAmirorAlex\"); \n\t\t//try to delete a tag that doen't exist\n\t\t//from a non-empty tags list\n\t\tactual = TagHandler.getInstance().tags;\n\t\tassertEquals(newExpected, newActual);\t\t\n\t\t\n\t\tArrayList<String> newActual2 = new ArrayList<String>();\n\n\t\tnewExpected.remove(0); //try to delete \"amir\" from tags list and see if result is \"alex\" only\n\t\tTagHandler.getInstance().deleteTag(\"amir\"); \n\t\tfor (Tag element : TagHandler.getInstance().tags){\n\t\t\tnewActual2.add(element.getName());\n\t\t}\n\t\tassertEquals(newExpected, newActual2);\n\t\n\t}", "title": "" }, { "docid": "6c796e6ef74eb212fcb2d3e4764b15c1", "score": "0.58782786", "text": "@Test\n public void testTags() {\n for (Tag t : tagList) {\n onView(allOf(withId(R.id.tag_textview), withText(t.getName())))\n .inRoot(withDecorView(equalTo(mActivity.getWindow().getDecorView())))\n .check(matches(isDisplayed()));\n }\n }", "title": "" }, { "docid": "eed52224007acbdb57c4355fafeb8808", "score": "0.5809249", "text": "@Test\n public void testExtractMetatags() {\n logger.info(\"extractMetatags\");\n String text = \"<html><head> <meta name = \\\"description\\\" content = \\\"Some description.\\\" />\\n\" +\n \" < meta name = 'keywords' content = 'Some keywords.' >\";\n Map<String, String> expResult = new HashMap<>();\n expResult.put(\"description\", \"Some description.\");\n expResult.put(\"keywords\", \"Some keywords.\");\n Map<String, String> result = HTMLParser.extractMetatags(text);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "42c17ba0eb97a39514899dc28068fd47", "score": "0.58013785", "text": "@Test\n\tpublic void removeTagFromMasterListTest3()\n\t{\n\t\tTagList tagList = new TagList();\n\t\ttagList.removeTag(\"Test 4\");\n\t\tArrayList<String> readFile = tagList.readFile();\n\t\tassertFalse(readFile.contains(\"@Test 4\"));\n\t}", "title": "" }, { "docid": "8270500cc82fb899e91f0aaf146edfd0", "score": "0.5778633", "text": "public void testTag() {\n assertEquals(mParsedMessages.get(1).getTag(), \"etag\"); //$NON-NLS-1$\n }", "title": "" }, { "docid": "7367249db88b17989f8adcf52d177d61", "score": "0.57666427", "text": "@Test\n\tpublic void testGetTagsEmpty() {\n\t\t\n\t\tArrayList<Tag> expected = new ArrayList<Tag>();\n\t\tArrayList<Tag> actual = TagHandler.getTags();\n\t\tassertEquals(expected, actual);\n\t\t\n\t}", "title": "" }, { "docid": "0b3c975c8b1efe572346ae965781d309", "score": "0.5710757", "text": "@Test\n public void articleIdListTest() {\n // TODO: test articleIdList\n }", "title": "" }, { "docid": "592e07ce02892810e6804695dccb896a", "score": "0.57072455", "text": "@Test\r\n\tpublic void testGetTagsUnannotated() throws Exception {\n\t\ttry (IVCSLockedWorkingCopy lwc = localVCSRepo.getVCSLockedWorkingCopyTemp()) {\r\n\t\t\tIVCSWorkspace tempWS = new VCSWorkspace(lwc.getFolder().toString());\r\n\t\t\tIVCSRepositoryWorkspace tempRWS = tempWS.getVCSRepositoryWorkspace(vcs.getRepoUrl());\r\n\t\t\tGitVCS tempVCS = new GitVCS(tempRWS);\r\n\t\t\ttempVCS.createUnannotatedTag(null, TAG_NAME_1, null);\r\n\t\t}\r\n\t\tList<VCSTag> tags = vcs.getTags();\r\n\t\tassertTrue(tags.size() == 1);\r\n\t\tVCSTag tag = tags.get(0);\r\n\t\tassertNull(tag.getAuthor());\r\n\t\tassertNull(tag.getTagMessage());\r\n\t\tassertEquals(tag.getTagName(), TAG_NAME_1);\r\n\t\tassertEquals(tag.getRelatedCommit(), vcs.getHeadCommit(null));\r\n\t}", "title": "" }, { "docid": "4a5e429cf595c4897e1d3b8e9099574e", "score": "0.56916815", "text": "@Test\n\tpublic void removeAndAddTagFromMasterListTest2()\n\t{\n\t\ttagList.addTag(\"Test 3\");\n\t\ttagList.removeTag(\"Test 3\");\n\t\t\n\t\tArrayList<String> readFile = tagList.readFile();\n\t\n\t\tassertFalse(readFile.contains(\"@Test 3\"));\n\t}", "title": "" }, { "docid": "aab390f634ac73586d366a6e8171d75a", "score": "0.56809455", "text": "@Test\n public void shouldHaveCorrectTag() {\n onView(withRecyclerView(R.id.rv_movie_list).atPosition(1))\n .check(matches(hasDescendant(withTagValue(is((Object)\"/fw02ONlDhrYjTSZV8XO6hhU3ds3.jpg\")))));\n }", "title": "" }, { "docid": "a62c098b693b90c08d3393ded66ace05", "score": "0.5672818", "text": "@Test\n\tpublic void testIfDeletedTagsRemains() {\n\t\trenamer.addTag(\"a\");\n\t\trenamer.addTag(\"b\");\n\t\trenamer.addTag(\"c\");\n\t\trenamer.addTag(\"d\");\n\t\trenamer.deleteTag(\"a\");\n\t\trenamer.deleteTag(\"b\");\n\t\trenamer.deleteTag(\"c\");\n\t\trenamer.deleteTag(\"d\");\n\t\t// All ever added tags are supposed to be saved in the tag list,\n\t\t// even if they are deleted from the image file.\n\t\ttry {\n\t\t\ttagsKeeper.readFromFile(tagListFile.getAbsolutePath());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<String> actual = tagsKeeper.listOfAllTags;\n\t\tList<String> expected = new ArrayList<String>();\n\t\texpected.add(\"a\");\n\t\texpected.add(\"b\");\n\t\texpected.add(\"c\");\n\t\texpected.add(\"d\");\n\t\tassertEquals(\"All ever added tags must be saved in the tag list file.\", expected, actual);\n\t}", "title": "" }, { "docid": "8c65eac596f1a542e65f30e0a893ef3b", "score": "0.5648051", "text": "public StringTagsTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "title": "" }, { "docid": "e558f3b1025332f5e10197030da577af", "score": "0.5636285", "text": "@Test\n public void testAddTagsToCluster() throws GenieException {\n final String newTag1 = UUID.randomUUID().toString();\n final String newTag2 = UUID.randomUUID().toString();\n final String newTag3 = UUID.randomUUID().toString();\n\n final Set<String> newTags = Sets.newHashSet(newTag1, newTag2, newTag3);\n\n Assert.assertEquals(3, this.service.getTagsForCluster(CLUSTER_1_ID).size());\n this.service.addTagsForCluster(CLUSTER_1_ID, newTags);\n final Set<String> finalTags = this.service.getTagsForCluster(CLUSTER_1_ID);\n Assert.assertEquals(6, finalTags.size());\n Assert.assertTrue(finalTags.contains(newTag1));\n Assert.assertTrue(finalTags.contains(newTag2));\n Assert.assertTrue(finalTags.contains(newTag3));\n }", "title": "" }, { "docid": "c832c17a6b8afa70b5a3a486ed7ec6c9", "score": "0.56246984", "text": "@BeforeEach\n void createTagInDb() {\n tagDAO.save(tag);\n }", "title": "" }, { "docid": "048aaa9b113059889e71bb8c226853ec", "score": "0.5623727", "text": "@Test\n\tpublic void testFindTag() {\n\t\tint actual = -1; //TESTING ON AN EMPTY TAGS LIST\n\t\tint expected = TagHandler.getInstance().findTag(\"NOTHING\");\n\t\tassertEquals(expected, actual);\n\t\t\n\t\tTagHandler.getInstance().tags.add(new Tag(\"amir\"));\n\t\tTagHandler.getInstance().tags.add(new Tag(\"alex\"));\n\t\texpected = TagHandler.getInstance().findTag(\"SOMETHING THAT DOESN'T EXIST IN NON-EMPTY TAGS\");\n\t\tassertEquals(expected, actual);\n\t\t\n\t\tactual = 1; //testing a tag that actually exists in tags\n\t\texpected = TagHandler.getInstance().findTag(\"alex\");\n\t\tassertEquals(expected, actual);\n\n\t}", "title": "" }, { "docid": "b3ca5352c81e0c2acadfbc3d3f340895", "score": "0.5588967", "text": "@Test\n public void testGetTagsForCluster() throws GenieException {\n Assert.assertEquals(3, this.service.getTagsForCluster(CLUSTER_1_ID).size());\n }", "title": "" }, { "docid": "c0e6295ee3d82830259f2502d916c4d6", "score": "0.5584929", "text": "@Test\n public void categoryIdListTest() {\n // TODO: test categoryIdList\n }", "title": "" }, { "docid": "c06ca41755691cacc11dfbcf552f0c6b", "score": "0.5573247", "text": "@Test\r\n\tpublic void testGetTags() throws Exception {\r\n\t\tprepopulate.prepopulate();\r\n\r\n\t\tHttpHeaders headers = restClient.authenticate();\r\n\r\n\t\tHttpEntity<String> entity = new HttpEntity<>(headers);\r\n\t\tResponseEntity<String> responseEntity = restClient.getRestTemplate().exchange(\"https://localhost:8443/service/analytics/tags\", HttpMethod.GET, entity, String.class);\r\n\t\tassertEquals(HttpStatus.OK, responseEntity.getStatusCode());\r\n\r\n\t\tjsonExpectationhelper.assertJsonEqual(\"[\\\"\\\",\\\"hello\\\",\\\"world\\\",\\\"magic\\\"]\", responseEntity.getBody());\r\n\t}", "title": "" }, { "docid": "1de9d6d4332cc8ecb7147041d4ac1006", "score": "0.5567878", "text": "@Test\n public void sampleRoomImageTest() {\n // TODO: test sampleRoomImage\n }", "title": "" }, { "docid": "75203db049d9bc828b5d428f8eac6113", "score": "0.5552099", "text": "@Test\n\tpublic void getTextWithTagTest() {\n\t\tString result = entityTagger.getTextWithTag(TEXT);\n\t\tassertTrue(result.equals(TAG_TEXT));\n\t}", "title": "" }, { "docid": "14840e62c68c6374978cb4a203cedae9", "score": "0.5541885", "text": "@Override\n\tpublic String getTag() {\n\t\treturn \"4TEST\";\n\t}", "title": "" }, { "docid": "697505d251a7b3dc5532071de4b94b71", "score": "0.55393827", "text": "public static void main(String[] args) throws IOException {\n\t\t/*\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Usage: \" + Tag.class.getCanonicalName() + \" <model file> <test file>\");\n\t\t\tSystem.exit(1);\n\t\t}*/\n\t\tString modelFile = \"E:/sample_crfsuite_model\";\n\t\tString testFile = \"C:/Users/TSO2492/Desktop/test_feats_crfsuiteNew.txt\";\n\t\t\n\t\tCrfTagger crfTagger = new CrfTagger(modelFile);\n\t\tMap<List<Pair<String, Double>>, Double> tagProbLists = crfTagger.tagWithSequenceProbability(testFile);\n\t\t\n\t\t\n\t\t// POS tag\n\t\t// Compute accuracy\n\t\tSystem.out.println(\"Gold\\tPredict\\tProbability\");\n\t\t\n\t}", "title": "" }, { "docid": "c3790b6a8ad491ddf93029e8b9256843", "score": "0.55011326", "text": "@Test(dependsOnGroups = \"constructor\")\n\tpublic void testCreateTableTag6() {\n\t\tfactory.createTableTag(new BigInteger(\"1\"), null, new Properties());\n\t}", "title": "" }, { "docid": "9027d010ebd01ced076843d10e6ba8b6", "score": "0.54886913", "text": "@Test\n public void testFirmwareMetadata() {\n // TODO: test FirmwareMetadata\n }", "title": "" }, { "docid": "963649efa8ee341bcdd8f81797b1da23", "score": "0.54771906", "text": "private MifosTagUtils() {\n }", "title": "" }, { "docid": "59ac282d8e035d54035493f26204c313", "score": "0.54745275", "text": "public void testGetName_1()\n throws Exception {\n Tag fixture = new Tag(\"\", \"\", true);\n\n String result = fixture.getName();\n\n // add additional test code here\n assertEquals(\"\", result);\n }", "title": "" }, { "docid": "60b7da3d0ce45dd48f6ac52557659303", "score": "0.54544216", "text": "@Test\n public void testRemoveTagForCluster() throws GenieException {\n Assert.assertTrue(this.service.getTagsForCluster(CLUSTER_1_ID).contains(\"prod\"));\n this.service.removeTagForCluster(CLUSTER_1_ID, \"prod\");\n Assert.assertFalse(this.service.getTagsForCluster(CLUSTER_1_ID).contains(\"prod\"));\n }", "title": "" }, { "docid": "34422fe3775cdaddc360e43841d671ad", "score": "0.5454389", "text": "private static TagsCatalog getCatalog() {\n\t\treturn catalog = TagsCatalog.getInstance(\"tagsTest.txt\");\n\t}", "title": "" }, { "docid": "d306038bdb10e509a61a0afd8989b4ca", "score": "0.5453039", "text": "@Test\n public void labelsTest() {\n // TODO: test labels\n }", "title": "" }, { "docid": "33862b09d25f1fab8485fb147dd432a3", "score": "0.54487187", "text": "@Test\n public void testTagObjectReplacesExistingTags() throws IOException {\n Tag currentTag = new Tag(\"ck\", \"cv\");\n mockGetExistingTags(currentTag);\n final String tagKey = \"nk\";\n final String tagVal = \"nv\";\n runner.setProperty(REGION, \"us-west-2\");\n runner.setProperty(BUCKET, \"test-bucket\");\n runner.setProperty(TAG_KEY, tagKey);\n runner.setProperty(TAG_VALUE, tagVal);\n runner.setProperty(APPEND_TAG, \"false\");\n final Map<String, String> attrs = new HashMap<>();\n attrs.put(\"filename\", \"object-key\");\n attrs.put((\"s3.tag.\" + (currentTag.getKey())), currentTag.getValue());\n runner.enqueue(new byte[0], attrs);\n runner.run(1);\n runner.assertAllFlowFilesTransferred(REL_SUCCESS, 1);\n ArgumentCaptor<SetObjectTaggingRequest> captureRequest = ArgumentCaptor.forClass(SetObjectTaggingRequest.class);\n Mockito.verify(mockS3Client, Mockito.times(1)).setObjectTagging(captureRequest.capture());\n SetObjectTaggingRequest request = captureRequest.getValue();\n Assert.assertEquals(\"test-bucket\", request.getBucketName());\n Assert.assertEquals(\"object-key\", request.getKey());\n Assert.assertTrue(\"New tag not found in request\", request.getTagging().getTagSet().contains(new Tag(tagKey, tagVal)));\n Assert.assertFalse(\"Existing tag should be excluded from request\", request.getTagging().getTagSet().contains(currentTag));\n List<MockFlowFile> flowFiles = runner.getFlowFilesForRelationship(ListS3.REL_SUCCESS);\n MockFlowFile ff0 = flowFiles.get(0);\n ff0.assertAttributeEquals((\"s3.tag.\" + tagKey), tagVal);\n ff0.assertAttributeNotExists((\"s3.tag.\" + (currentTag.getKey())));\n }", "title": "" }, { "docid": "74c52618aa31b9b9012007399a642432", "score": "0.54409754", "text": "public void testMissingTagsErrorPackage() {\n this.reportMissingJavadocTags = CompilerOptions.ERROR;\n this.reportMissingJavadocTagsVisibility = CompilerOptions.DEFAULT;\n this.reportMissingJavadocTagsOverriding = CompilerOptions.DISABLED;\n runNegativeTest(MISSING_TAGS, resultForMissingTags(this.DEFAULT_VISIBILITY), JavacTestOptions.Excuse.EclipseWarningConfiguredAsError);\n }", "title": "" }, { "docid": "7805dfdc60ebec018d29858ed8556407", "score": "0.5424795", "text": "@Test\n public void testTikaMetadata() throws Exception {\n InputStream in = EngineEnhancementRequestTest.class.getClassLoader().getResourceAsStream(\"testJPEG_EXIF.jpg\");\n Assert.assertNotNull(\"Unable to find test resource 'testJPEG_EXIF.jpg'\",in);\n executor.execute(\n builder.buildPostRequest(getEndpoint()+\"/engine/tika\")\n .withHeader(\"Accept\",\"text/rdf+nt\")\n .withEntity(new InputStreamEntity(in, -1))\n )\n .assertStatus(200)\n .assertContentRegexp( //we need not test the extraction results here\n //only that the Enhancer REST API works also with engines!\n \"<http://purl.org/dc/terms/format> \\\"image/jpeg\\\"\",\n \"<http://www.w3.org/ns/ma-ont#hasKeyword> \\\"serbor\\\" .\",\n \"<http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#isoSpeedRatings> \\\"400\\\"\"\n );\n }", "title": "" }, { "docid": "d6f0f6cf07070b57c630cbf772799a23", "score": "0.54239506", "text": "@Test\n public void testLoadModuleFromMetaData() {\n // not sure if we need this since it will be calling another tested\n // function.\n // TODO\n fail( \"Test not complete\" );\n }", "title": "" }, { "docid": "5462393312406990eb505a93203c66a8", "score": "0.53992677", "text": "public void testCreateKeywordsAndDocuments() throws Exception {\n }", "title": "" }, { "docid": "e3bb00517c743ed33852e561553aa2ea", "score": "0.5388785", "text": "@Test\n public void testUpdateTagsForCluster() throws GenieException {\n final String newTag1 = UUID.randomUUID().toString();\n final String newTag2 = UUID.randomUUID().toString();\n final String newTag3 = UUID.randomUUID().toString();\n\n final Set<String> newTags = Sets.newHashSet(newTag1, newTag2, newTag3);\n\n Assert.assertEquals(3, this.service.getTagsForCluster(CLUSTER_1_ID).size());\n this.service.updateTagsForCluster(CLUSTER_1_ID, newTags);\n final Set<String> finalTags = this.service.getTagsForCluster(CLUSTER_1_ID);\n Assert.assertEquals(3, finalTags.size());\n Assert.assertTrue(finalTags.contains(newTag1));\n Assert.assertTrue(finalTags.contains(newTag2));\n Assert.assertTrue(finalTags.contains(newTag3));\n }", "title": "" }, { "docid": "a93c946d808732aa380834f066725e7a", "score": "0.53858805", "text": "@Test\n public void testTagObjectAppendToExistingTags() throws IOException {\n Tag currentTag = new Tag(\"ck\", \"cv\");\n mockGetExistingTags(currentTag);\n final String tagKey = \"nk\";\n final String tagVal = \"nv\";\n runner.setProperty(REGION, \"us-west-2\");\n runner.setProperty(BUCKET, \"test-bucket\");\n runner.setProperty(TAG_KEY, tagKey);\n runner.setProperty(TAG_VALUE, tagVal);\n final Map<String, String> attrs = new HashMap<>();\n attrs.put(\"filename\", \"object-key\");\n attrs.put((\"s3.tag.\" + (currentTag.getKey())), currentTag.getValue());\n runner.enqueue(new byte[0], attrs);\n runner.run(1);\n runner.assertAllFlowFilesTransferred(REL_SUCCESS, 1);\n ArgumentCaptor<SetObjectTaggingRequest> captureRequest = ArgumentCaptor.forClass(SetObjectTaggingRequest.class);\n Mockito.verify(mockS3Client, Mockito.times(1)).setObjectTagging(captureRequest.capture());\n SetObjectTaggingRequest request = captureRequest.getValue();\n Assert.assertEquals(\"test-bucket\", request.getBucketName());\n Assert.assertEquals(\"object-key\", request.getKey());\n Assert.assertTrue(\"New tag not found in request\", request.getTagging().getTagSet().contains(new Tag(tagKey, tagVal)));\n Assert.assertTrue(\"Existing tag not found in request\", request.getTagging().getTagSet().contains(currentTag));\n List<MockFlowFile> flowFiles = runner.getFlowFilesForRelationship(ListS3.REL_SUCCESS);\n MockFlowFile ff0 = flowFiles.get(0);\n ff0.assertAttributeEquals((\"s3.tag.\" + tagKey), tagVal);\n ff0.assertAttributeEquals((\"s3.tag.\" + (currentTag.getKey())), currentTag.getValue());\n }", "title": "" }, { "docid": "a7811ba02b0a501d44445800d0ae7ba5", "score": "0.53841895", "text": "public String getTagName()\n {\n return TEST_TAG;\n }", "title": "" }, { "docid": "ae296607588cdcf999f2acb078fa5af8", "score": "0.5375176", "text": "public void testGetCategorys() throws Exception {\n\t}", "title": "" }, { "docid": "3f3e599ad03e9cdf373f6fd876cd707e", "score": "0.5362761", "text": "@Test\n public void testGetClustersByTags() {\n final Set<String> tags = Sets.newHashSet(\"prod\");\n Page<Cluster> clusters = this.service.getClusters(null, null, tags, null, null, PAGE);\n Assert.assertEquals(1, clusters.getNumberOfElements());\n Assert.assertEquals(CLUSTER_1_ID, clusters.getContent().get(0).getId());\n\n tags.clear();\n tags.add(\"hive\");\n clusters = this.service.getClusters(null, null, tags, null, null, PAGE);\n Assert.assertEquals(2, clusters.getNumberOfElements());\n Assert.assertEquals(CLUSTER_2_ID, clusters.getContent().get(0).getId());\n Assert.assertEquals(CLUSTER_1_ID, clusters.getContent().get(1).getId());\n\n tags.add(\"somethingThatWouldNeverReallyExist\");\n clusters = this.service.getClusters(null, null, tags, null, null, PAGE);\n Assert.assertTrue(clusters.getContent().isEmpty());\n\n tags.clear();\n clusters = this.service.getClusters(null, null, tags, null, null, PAGE);\n Assert.assertEquals(2, clusters.getNumberOfElements());\n Assert.assertEquals(CLUSTER_2_ID, clusters.getContent().get(0).getId());\n Assert.assertEquals(CLUSTER_1_ID, clusters.getContent().get(1).getId());\n }", "title": "" }, { "docid": "26256f36cdd62625589cfc2c7bde5821", "score": "0.535477", "text": "public Tags() {\n }", "title": "" }, { "docid": "3281b774e816346cb76631f970604f9f", "score": "0.5331716", "text": "@Test\n public void categoryTest() {\n // TODO: test category\n }", "title": "" }, { "docid": "a35ea807e75bde920032cae79303d705", "score": "0.5331348", "text": "@Test\n public void descriptionTest() {\n // TODO: test description\n }", "title": "" }, { "docid": "a35ea807e75bde920032cae79303d705", "score": "0.5331348", "text": "@Test\n public void descriptionTest() {\n // TODO: test description\n }", "title": "" }, { "docid": "179506bd420541b0f5a57a5f53c6a0c0", "score": "0.5329073", "text": "int countByExample(TagLinkExample example);", "title": "" }, { "docid": "daae43434eac668d2b13f217398afc57", "score": "0.5327208", "text": "@Test(priority = 3, groups = {\"wso2.esb\"}, description = \"tumblr {getTaggedPosts} integration positive test\")\n public void testTumblrGetTaggedPosts() throws IOException, JSONException {\n\n String consumerKey = connectorProperties.getProperty(TumblrTestConstants.PROPERTY_CONSUMER_KEY);\n log.info(\"consumerKey : \" + consumerKey);\n\n String tag = connectorProperties.getProperty(\"postTag\");\n\n //Get Direct response from tumblr\n String requestUrl = \"http://api.tumblr.com/v2/tagged?api_key=\" + consumerKey + \"&tag=\" + tag;\n log.info(\"requestUrl : \" + requestUrl);\n\n String directResponse = ConnectorIntegrationUtil.DirectHttpGET(requestUrl);\n\n JSONObject directResponseJObj = new JSONObject(directResponse);\n log.info(\"ESB:\" + directResponseJObj.get(\"meta\").toString());\n\n //Get response using the connector\n RestResponse<JSONObject> esbRestResponse = sendJsonRestRequest(getProxyServiceURL(\"tumblr\"),\n \"POST\", esbRequestHeadersMap, \"getTaggedPosts.json\");\n log.info(\"ESB:\" + esbRestResponse.getBody().get(\"meta\").toString());\n //response not compared since tumblr may return different tagged post\n log.debug(\"ESB:\" + esbRestResponse.getBody().get(\"response\").toString());\n //check response status\n Assert.assertEquals(esbRestResponse.getBody().get(\"meta\").toString(),\n directResponseJObj.get(\"meta\").toString());\n\n }", "title": "" }, { "docid": "7bddfa0bea94156a19e98ff7ba448563", "score": "0.5323094", "text": "@Test\n\tpublic void testAddLongTagMixedWithAtSignAndRepeatedTags() {\n\t\trenamer.addTag(\"a#$%I@@DFgdfg@vw87u65\");\n\t\trenamer.addTag(\"1weijh\");\n\t\trenamer.addTag(\"ijh\");\n\t\trenamer.addTag(\"1we@@@ijh\");\n\t\ttry {\n\t\t\ttagsKeeper.readFromFile(tagListFile.getAbsolutePath());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<String> actual = tagsKeeper.listOfAllTags;\n\t\tList<String> expected = new ArrayList<String>();\n\t\texpected.add(\"a#$%IDFgdfgvw87u65\");\n\t\texpected.add(\"1weijh\");\n\t\texpected.add(\"ijh\");\n\n\t\tassertEquals(\"'@' and repeted tags are not supposed to be added.\", expected, actual);\n\t}", "title": "" }, { "docid": "cf2dd9f075d23957c0ef18af4642be3f", "score": "0.53094083", "text": "public void metadataExtractorExample() {\n\t\tFile imgFile = new File(testFilePath);\n\t\tmetadataExtractorOutputMetadata(imgFile);\n\t}", "title": "" }, { "docid": "2fea4f844ac7a9213e7f19175e4407da", "score": "0.5299206", "text": "@Test\n\tpublic void testIfEmptyStringIsAdded() {\n\t\trenamer.addTag(\"a\");\n\t\trenamer.addTag(\"1\");\n\t\trenamer.addTag(\"\");\n\t\ttry {\n\t\t\ttagsKeeper.readFromFile(tagListFile.getAbsolutePath());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<String> actual = tagsKeeper.listOfAllTags;\n\t\tList<String> expected = new ArrayList<String>();\n\t\texpected.add(\"a\");\n\t\texpected.add(\"1\");\n\t\tassertEquals(\"Empty string is not supposed to be added.\", expected, actual);\n\t}", "title": "" }, { "docid": "c236e5177fd9c1af51ccd06c75474c9f", "score": "0.529808", "text": "@Test\n\tpublic void removeTagFromEmptyMasterListTest4()\n\t{\n\t\tArrayList<String> readFile = tagList.readFile();\n\t\tif (readFile.size() == 0)\n\t\t{\n\t\t\ttagList.removeTag(\"Test 2\");\n\t\t\tassertEquals(readFile.size(), 0);\n\t\t}\n\t\tassertNotEquals(readFile.size(), 0);\n\t}", "title": "" }, { "docid": "6ab467d0b828025be0de5e0606d81cf4", "score": "0.526079", "text": "@BeforeAll\n public static void initAll() throws DukeException {\n // Load duke.txt with correct seed data\n tasks.addTask(new ToDo(\"Todo 1\", new ArrayList<Tag>()));\n tasks.addTask(new Deadline(\"Deadline 1\", LocalDate.parse(\"2020-02-03\"), new ArrayList<Tag>()));\n tasks.addTask(new Event(\"Event 1\", LocalDate.parse(\"2020-05-01\"), new ArrayList<Tag>()));\n tags = new TagList(tasks);\n }", "title": "" }, { "docid": "59470999e2dbf56ee2cccbb8e74fba52", "score": "0.5251598", "text": "@Before\n\tpublic void setUp() throws IOException, ClassNotFoundException {\n\t\ttagListFile = new File(ChoosePathButtonListener.saveAP + File.separator + \"taglist.txt\");\n\t\ttagsKeeper = new TagsKeeper(tagListFile.getAbsolutePath());\n\t}", "title": "" }, { "docid": "700ae823ae982eab68ac9ebd605c3ab8", "score": "0.52465653", "text": "@Test\n public void testGetfeaturedItems() {\n }", "title": "" }, { "docid": "b3cb7f3d6452101faa6f8d0006b0de20", "score": "0.52457434", "text": "@Test(priority = 4, groups = {\"wso2.esb\"}, description = \"tumblr {getTaggedPosts} integration positive test\")\n public void optionalTestTumblrGetTaggedPosts() throws IOException, JSONException {\n\n String consumerKey = connectorProperties.getProperty(TumblrTestConstants.PROPERTY_CONSUMER_KEY);\n log.info(\"consumerKey : \" + consumerKey);\n\n String tag = connectorProperties.getProperty(\"postTag\");\n\n //Get Direct response from tumblr\n String requestUrl = \"http://api.tumblr.com/v2/tagged?api_key=\" + consumerKey + \"&tag=\" + tag\n + \"&limit=2&offset=2\";\n log.info(\"requestUrl : \" + requestUrl);\n\n String directResponse = ConnectorIntegrationUtil.DirectHttpGET(requestUrl);\n\n JSONObject directResponseJObj = new JSONObject(directResponse);\n log.info(\"ESB:\" + directResponseJObj.get(\"meta\").toString());\n\n\n //Get response using the connector\n RestResponse<JSONObject> esbRestResponse = sendJsonRestRequest(getProxyServiceURL(\"tumblr\"),\n \"POST\", esbRequestHeadersMap, \"optional/getTaggedPosts.json\");\n\n log.info(\"ESB:\" + esbRestResponse.getBody().get(\"meta\").toString());\n log.debug(\"ESB:\" + esbRestResponse.getBody().get(\"response\").toString());\n\n Assert.assertEquals(esbRestResponse.getBody().get(\"meta\").toString(),\n directResponseJObj.get(\"meta\").toString());\n //response not compared since tumblr may return different tagged post\n }", "title": "" }, { "docid": "72979dd45037f2f5687ba1b62adbdd87", "score": "0.52374923", "text": "@Test\r\n public void testAvtalavseendeITdriftExamples(){\r\n try {\r\n\r\n new ClassificationTester(\"iv) EHM har, från och med tidpunkten för\"+\r\n \" Felet/avtalsbrottet, rätt till avdrag p\"+\r\n \"å ersättning för de åtaganden som berörs\"+\r\n \" av Felet/avtalsbrottet i den utsträckni\"+\r\n \"ng som svarar mot Felet/avtalsbrottet al\"+\r\n \"ternativt i Avtalet särskilt angivet bel\"+\r\n \"opp;\")\r\n .withParser(swedishParser)\r\n .withHeadline(\"iv) EHM har, från och med tidpunkten för Felet/avtalsbrottet, rätt till avdrag på ersättning för de åtaganden som berörs av Felet/avtalsbrottet i den utsträckning som svarar mot Felet/avtalsbrottet alternativt i Avtalet särskilt angivet belopp;\")\r\n .withProject(mockProject, mockDocument)\r\n .withClassifier(new NumberClassifierSV())\r\n .withClassifier(new DefinitionUsageClassifierSV())\r\n .withClassifier(new LiquidatedDamagesClassifierSV())\r\n .expectingClassification(new ClassificationAssertion(FeatureTypeTree.LIQUIDATED_DAMAGES, 1)\r\n .withTag(\"prisavdrag\")\r\n )\r\n .test();\r\n\r\n\r\n new ClassificationTester(\"i) Leverantören ska betala Förseningsvit\"+\r\n \"e vid försening av Övertagandeprojektet \"+\r\n \"enligt vad som framgår av punkt 14.3. Ti\"+\r\n \"ll förtydligande anges att Förseningsvit\"+\r\n \"e även kan utgå i annat fall om så uttry\"+\r\n \"ckligen anges i Avtalet;\")\r\n .withParser(swedishParser)\r\n .withHeadline(\"i) Leverantören ska betala Förseningsvite vid försening av Övertagandeprojektet enligt vad som framgår av punkt 14.3. Till förtydligande anges att Förseningsvite även kan utgå i annat fall om så uttryckligen anges i Avtalet;\")\r\n .withProject(mockProject, mockDocument)\r\n .withClassifier(new NumberClassifierSV())\r\n .withClassifier(new DefinitionUsageClassifierSV())\r\n .withClassifier(new LiquidatedDamagesClassifierSV())\r\n .expectingClassification(new ClassificationAssertion(FeatureTypeTree.LIQUIDATED_DAMAGES, 1)\r\n .withTag(\"vite\")\r\n )\r\n .test();\r\n\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n assertTrue(false);\r\n }\r\n }", "title": "" }, { "docid": "2fc67611a085f191c5dc66d255eb721e", "score": "0.52373326", "text": "@Test\n public void disscussPostTest() {\n\n }", "title": "" }, { "docid": "6b634f97a184bb769db2dcc034e52a07", "score": "0.5227613", "text": "@Repeat(5)\n public void testgetCloud() throws ServletException, IOException{\n createHashTag(\"DELL\", 500L, 10L);\n createHashTag(\"Spain\", 2345L, 23L);\n createHashTag(\"Pozuelo de Alarcon\", 2434L, 43L);\n createHashTag(\"Pozuelo\", 432432L, 23L);\n createHashTag(\"Condega\", 2L, 23L);\n createHashTag(\"Esteli\", 4L, 23L);\n flushIndexes();\n Assert.assertEquals(testCloudHashTags(\"10\").intValue(), 5);\n createHashTag(\"Esteli\", 4L, 0L);\n Assert.assertEquals(testCloudHashTags(\"10\").intValue(), 5);\n createHashTag(\"Jota\", 44L, 10L);\n Assert.assertEquals(testCloudHashTags(\"4\").intValue(), 4);\n Assert.assertEquals(testCloudHashTags(\"2\").intValue(), 2);\n Assert.assertEquals(testCloudHashTags(\"1\").intValue(), 1);\n Assert.assertEquals(testCloudHashTags(\"0\").intValue(), 5);\n }", "title": "" }, { "docid": "fb63490a03dfa0d4ef5bc57792c1fea9", "score": "0.52268404", "text": "public void testInvalidTagsClassDefaults() {\n runConformTest(CLASSES_INVALID_COMMENT);\n }", "title": "" }, { "docid": "01fb16355095f7d54d88f0be7744b5d7", "score": "0.521052", "text": "@SearchWorkflowTest\n @Test\n public void searchForTips() {\n\n }", "title": "" }, { "docid": "1f902c38704cbe3d20fd9922a19c8dfa", "score": "0.5200016", "text": "UMLTestCase createUMLTestCase();", "title": "" }, { "docid": "306cb339e53b1abaa5bb2cd1d7daadcf", "score": "0.519145", "text": "@Test\n public void manufacturerTest() {\n // TODO: test manufacturer\n }", "title": "" }, { "docid": "282fcff66877d0a41a606424a7873013", "score": "0.51877344", "text": "public void testInvalidTagsClassErrorTagsPackage() {\n this.reportInvalidJavadoc = CompilerOptions.ERROR;\n this.reportInvalidJavadocTags = CompilerOptions.ENABLED;\n this.reportInvalidJavadocTagsVisibility = CompilerOptions.DEFAULT;\n runNegativeTest(CLASSES_INVALID_COMMENT, resultForInvalidTagsClassOrField(this.DEFAULT_VISIBILITY), JavacTestOptions.Excuse.EclipseWarningConfiguredAsError);\n }", "title": "" }, { "docid": "c16d1dd445ebf07fed3bc152ecea48c1", "score": "0.51818377", "text": "@Ignore\n\t@Test\n\tpublic void TC_EP_04_DetMAxApp() {\n\t}", "title": "" }, { "docid": "a50609186a3857998f27306580312e88", "score": "0.51785576", "text": "@Test\n public void testCountWordFromStr1() throws Exception {\n//TODO: Test goes here...\n }", "title": "" }, { "docid": "f76589e02396043f1f311d1060408da6", "score": "0.5166267", "text": "@Test\n void getWordCount() {\n txtCat.categorize();\n assertEquals(8,txtCat.getWordCount());\n }", "title": "" }, { "docid": "c3427b6b2398ad4adbe43b93481ff2d3", "score": "0.51560295", "text": "public static void main(String[] args) {\n\t\tMaxentTagger tagger = new MaxentTagger(\"models/english-bidirectional-distsim.tagger\");\n\t\tString taggedString = tagger.tagString(\"Library issues books to students.\");\n\t\tSystem.out.println(taggedString);\n\t}", "title": "" }, { "docid": "b7dda2f5a0970618c6107641eed87bbb", "score": "0.5152865", "text": "@Test\n\tpublic void addTagTwiceToMasterListTest2()\n\t{\n\t\tArrayList<String> readFile = tagList.readFile();\n\t\t\n\t\ttagList.addTag(\"Test 1\");\n\t\ttagList.addTag(\"Test 1\");\n\t\t\n\t\tArrayList<String> readUpdatedFile = tagList.readFile();\n\t\t\n\t\tassertEquals(readUpdatedFile.size() - readFile.size(), 1);\n\t}", "title": "" }, { "docid": "0b89956c390ad52552dc8ca54340cab9", "score": "0.51482975", "text": "@Test\n void categorize() { //all other tests also help confirm that this works\n assertEquals(0,txtCat.getWordCount());\n txtCat.categorize();\n assertEquals(8,txtCat.getWordCount());\n assertTrue(txtCat.hasCategories());\n }", "title": "" }, { "docid": "766bf8c321b6123dd30fd3c8b89425a6", "score": "0.5147776", "text": "@Test\n @Ignore\n public void testIngestAndMint() throws RepositoryException {\n }", "title": "" }, { "docid": "d3bed6c14cbe653f0f62a82fbcd14e7f", "score": "0.5144916", "text": "@Test\n public void testArticle() {\n // TODO: test Article\n }", "title": "" }, { "docid": "ed9ad0e055fbcbc56001bd452b61553e", "score": "0.51415724", "text": "@Test\n public void testGenerateContents() {\n \n// System.out.println(\"generateContents\");\n // String contenttype = \"\";\n // GitParameterDefinition instance = null;\n // instance.generateContents(contenttype);\n\n\n }", "title": "" }, { "docid": "a95c7f91844bca2a25a650f8ad8e4b1e", "score": "0.5137339", "text": "@Test\n public void testRemoveAllTagsForCluster() throws GenieException {\n Assert.assertEquals(3, this.service.getTagsForCluster(CLUSTER_1_ID).size());\n this.service.removeAllTagsForCluster(CLUSTER_1_ID);\n Assert.assertEquals(0, this.service.getTagsForCluster(CLUSTER_1_ID).size());\n }", "title": "" }, { "docid": "9a4ca37902ac8aca10715ef6f983758d", "score": "0.51284367", "text": "@Test\n public void authorsTest() {\n // TODO: test authors\n }", "title": "" }, { "docid": "627b97b0e5cd73fb19b04ce71a9bfe0d", "score": "0.5101526", "text": "@Test\r\n public void testRetrieveMdRecord() throws Exception {\r\n retrieveMdRecord(true, \"escidoc\");\r\n }", "title": "" }, { "docid": "d6041cafae97dd960ad6dad6eae3ff9c", "score": "0.5098554", "text": "@Test\n void canAlsoAddTagsWithTheLongFormBuilder() {\n MeterRegistry registry = new SimpleMeterRegistry();\n Counter.builder(\"counter\")\n .tag(\"key\", \"value\")\n .description(\"some kind of counter\")\n .baseUnit(\"things\")\n .register(registry);\n }", "title": "" }, { "docid": "2da5c9e5c7535b44678af30435f35b11", "score": "0.50933063", "text": "@Test\n\tpublic void testAddManyTagsWithManyCurrentlyExistingTags() {\n\t\trenamer.addTag(\"a\");\n\t\trenamer.addTag(\"b\");\n\t\trenamer.addTag(\"c\");\n\t\trenamer.addTag(\"d\");\n\t\trenamer.addTag(\"a\");\n\t\trenamer.addTag(\"c\");\n\t\trenamer.addTag(\"d\");\n\t\trenamer.addTag(\"a\");\n\t\ttry {\n\t\t\ttagsKeeper.readFromFile(tagListFile.getAbsolutePath());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<String> actual = tagsKeeper.listOfAllTags;\n\t\tList<String> expected = new ArrayList<String>();\n\t\texpected.add(\"a\");\n\t\texpected.add(\"b\");\n\t\texpected.add(\"c\");\n\t\texpected.add(\"d\");\n\t\tassertEquals(\"A currently existing tag shouldn't be added again.\", expected, actual);\n\t}", "title": "" }, { "docid": "79bffa798474474c631457972c2aaa72", "score": "0.5090487", "text": "public void testTagFiltering() throws Exception {\n String filteredHtml =\n \"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\"> \"\n + \"<html lang=\\\"en\\\"> <head> <body> \"\n + \"</body> </html> \";\n \n // html for block tags\n String blockHtml =\n \"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\\n\"\n + \"<html lang=\\\"en\\\">\\n<head>\\n<body>\\n\"\n + \"<%s %s=\\\"%s\\\">\\n\"\n + \"chicken chicken chicken...\\n\"\n + \"</%s>\\n\"\n + \"</body>\\n</html>\\n\\n\\n\";\n\n // test block tag ID filtering\n for (String[] id : blockIds) {\n InputStream htmlIn = fact.createFilteredInputStream(mau,\n new StringInputStream(String.format(blockHtml, id[0],id[1],id[2],id[0])),\n Constants.DEFAULT_ENCODING);\n assertEquals(filteredHtml, StringUtil.fromInputStream(htmlIn));\n }\n\n // html for single tags\n String tagHtml =\n \"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\\n\"\n + \"<html lang=\\\"en\\\">\\n<head>\\n<body>\\n\"\n + \"<%s %s=\\\"%s\\\">\\n\"\n + \"</body>\\n</html>\\n\\n\\n\";\n\n // test single tag ID filtering\n for (String[] id : tagIds) {\n InputStream htmlIn = fact.createFilteredInputStream(mau,\n new StringInputStream(String.format(tagHtml, id[0],id[1],id[2])),\n Constants.DEFAULT_ENCODING);\n assertEquals(filteredHtml, StringUtil.fromInputStream(htmlIn));\n }\n }", "title": "" }, { "docid": "c6bf60c5347e938a3cb689c58d342b73", "score": "0.50854087", "text": "@Test\r\n public void testOM_MdRecords() throws Exception {\r\n \r\n Class<?> ec = XmlSchemaValidationException.class;\r\n \r\n String nameWS = \"MD-Records Descriptor Name with whitespaces\";\r\n \r\n Document context = EscidocAbstractTest.getTemplateAsDocument(this.path, \"create_container.xml\");\r\n substitute(context, \"/container/md-records/md-record[2]/@name\", nameWS);\r\n String template = toString(context, false);\r\n \r\n try {\r\n create(template);\r\n fail(ec + \" expected but no error occurred!\");\r\n }\r\n catch (final Exception e) {\r\n EscidocAbstractTest.assertExceptionType(ec.getName() + \" expected.\", ec, e);\r\n }\r\n }", "title": "" }, { "docid": "567a74cdb5ff63e789a87acc786b37ef", "score": "0.5076619", "text": "@Test\r\n\tpublic void addMemberRtsTagsAlreadyExistingTest() throws JSONException, ParseException {\r\n\t\tList<String> tags = new ArrayList<String>();\r\n\t\ttags.add(\"SPGMS5\");\r\n\t\t\r\n\t\tDBCursor cursor = memberMDTagsWithDatesColl.find(new BasicDBObject(\"l_id\",\r\n\t\t\t\t\"OccassionTopologyTestingl_id\"));\r\n\t\tDBObject obj = cursor.next();\r\n\t\tBasicDBList list = (BasicDBList) obj.get(\"rtsTags\");\r\n\t\tBasicDBList tagList = (BasicDBList) obj.get(\"tags\");\r\n\t\t//System.out.println(\"Initial RTS Tags : \" + list.toString());\r\n\t\t//System.out.println(\"Initial Md Tags : \" + tagList.toString());\r\n\t\t\r\n\t\tmemberMDTags2Dao.addRtsMemberTags(\"OccassionTopologyTestingl_id\", tags, occasionDurationMap, occasionPriorityMap);\r\n\t\tcursor = memberMDTagsWithDatesColl.find(new BasicDBObject(\"l_id\",\r\n\t\t\t\t\"OccassionTopologyTestingl_id\"));\r\n\t\tobj = cursor.next();\r\n\t\tlist = (BasicDBList) obj.get(\"rtsTags\");\r\n\t\ttagList = (BasicDBList) obj.get(\"tags\");\r\n\t\t\r\n\t\t//System.out.println(\"Organized RTS Tags : \" + list.toString());\r\n\t\t//System.out.println(\"Organized Md Tags : \" + tagList.toString()+\"\\n\");\r\n\r\n\t\tAssert.assertEquals((new org.codehaus.jettison.json.JSONObject(list.get(1).toString()).get(\"t\")).equals(\"SPGMS5\"), true);\r\n\t\tAssert.assertEquals(list.size(), 2);\r\n\t\tAssert.assertTrue(list.toString().contains(\"SPFTS823600153010\") && list.toString().contains(ft.format(eighthDay)));\r\n\t\t\r\n\t\tAssert.assertEquals(tagList.size(), 2);\r\n\t\tAssert.assertTrue(tagList.toString().contains(\"SPLAS823600153010\") && tagList.toString().contains(\"SPFTK823600153010\"));\r\n\t}", "title": "" }, { "docid": "65fb6348ae96ae6f60e350ccfef81009", "score": "0.5072899", "text": "@Test\n public void getNumberOfCats(){\n\n\n }", "title": "" }, { "docid": "0d5829f6c8150406f4ce701df0c29121", "score": "0.5070115", "text": "@AfterEach\n void deleteTagInDb() {\n if (tagDAO.existsById(tag.getId())) {\n tagDAO.deleteById(tag.getId());\n }\n }", "title": "" }, { "docid": "1c55afbc59d8602c42b24ef8cee5c849", "score": "0.5069895", "text": "private void invokeTag() throws JellyTagException\n {\n XMLOutput output = new XMLOutput();\n tag.doTag(output);\n }", "title": "" }, { "docid": "7e6664f787367d94b215346215971754", "score": "0.505993", "text": "public void testTagFilter(){\t\t\n\t\t//add a tag to two of our claims so we can test the tag filtering functionality\n\t\tClaim claim = new Claim();\n\t\tClaimListController.setCurrentClaim(claim);\n\t\t\n\t\t\n\t\t\n\t\tString claim2Info=claim.toString();\n\t\t\n\t\tassertTrue(\"Incorrect items displayed by tag filter,claim2Info\",claimListView.getCount()==2);\n\t\tString viewText1=claimListView.getItemAtPosition(0).toString();\n\t\tString viewText2=claimListView.getItemAtPosition(1).toString();\n\t\t\n\t\t//if our filter works the only two items in the listview should be \n\t\t//claim2 and claim4, still in sorted oder so the following should hold\n\t\tassertTrue(\"Incorrect items displayed by tag filter,claim2Info\",claim2Info==viewText1);\n\t\t\n\t\t\n\t\tassertTrue(\"Incorrect items displayed by tag filter,claim2Info\",claimListView.getCount()==2);\n\t\t\n\t\t//we want claims to show up if they have AT LEAST on of the selected filter tags\n\t\t//so despite the addition of the extra tag the sam two claims should be displayed\n\t\t//claim2 and claim4, still in sorted oder so the following should hold\n\t\tassertTrue(\"Incorrect items displayed by tag filter,claim2Info\",claim2Info==viewText1);\n\t\t\n\t\t\n\t\t\n\t\t//now there should be no claims in the list since none have the single selected tag\n\t\tassertTrue(\"Incorrect items displayed by tag filter,claim2Info\",claimListView.getCount()==0);\n\t}", "title": "" }, { "docid": "5e0088d1a93895542868a871e9cd59f8", "score": "0.50592923", "text": "@Test\n public void testTagObjectAppendUpdatesExistingTagValue() throws IOException {\n Tag currentTag1 = new Tag(\"ck\", \"cv\");\n Tag currentTag2 = new Tag(\"nk\", \"ov\");\n mockGetExistingTags(currentTag1, currentTag2);\n final String tagKey = \"nk\";\n final String tagVal = \"nv\";\n runner.setProperty(REGION, \"us-west-2\");\n runner.setProperty(BUCKET, \"test-bucket\");\n runner.setProperty(TAG_KEY, tagKey);\n runner.setProperty(TAG_VALUE, tagVal);\n final Map<String, String> attrs = new HashMap<>();\n attrs.put(\"filename\", \"object-key\");\n runner.enqueue(new byte[0], attrs);\n runner.run(1);\n runner.assertAllFlowFilesTransferred(REL_SUCCESS, 1);\n ArgumentCaptor<SetObjectTaggingRequest> captureRequest = ArgumentCaptor.forClass(SetObjectTaggingRequest.class);\n Mockito.verify(mockS3Client, Mockito.times(1)).setObjectTagging(captureRequest.capture());\n SetObjectTaggingRequest request = captureRequest.getValue();\n Assert.assertEquals(\"test-bucket\", request.getBucketName());\n Assert.assertEquals(\"object-key\", request.getKey());\n Assert.assertTrue(\"New tag not found in request\", request.getTagging().getTagSet().contains(new Tag(tagKey, tagVal)));\n Assert.assertTrue(\"Existing tag not found in request\", request.getTagging().getTagSet().contains(currentTag1));\n Assert.assertFalse(\"Existing tag should be excluded from request\", request.getTagging().getTagSet().contains(currentTag2));\n }", "title": "" } ]
950de31397c1aabdabd63ce1af03cf93
You are in charge of the cake for a child's birthday. You have decided the cake will have one candle for each year of their total age. They will only be able to blow out the tallest of the candles. Count how many candles are tallest. Constraints: 1 <= n <= 10^5 1 <= candles[i] <= 10^7
[ { "docid": "b218ca2bb2829305abe2b23fc4d6f14e", "score": "0.7150442", "text": "public int birthdayCakeCandles(List<Integer> candles) {\n candles.sort(Collections.reverseOrder());\n int max = candles.get(0);\n int count = 0;\n for (Integer candle : candles) {\n if (candle == max) {\n count++;\n } else {\n break;\n }\n }\n return count;\n }", "title": "" } ]
[ { "docid": "d57e18a00b40f03bca45fa4f962c9759", "score": "0.7101889", "text": "public static int birthdayCakeCandles(List<Integer> candles) {\n int highest = Collections.max(candles);\n int occurrences = Collections.frequency(candles,highest);\n return occurrences;\n\n }", "title": "" }, { "docid": "04737279d69182befbc650c9983bd165", "score": "0.6703038", "text": "public int birthdayCakeCandles2(List<Integer> candles) {\n return Collections.frequency(candles, Collections.max(candles));\n }", "title": "" }, { "docid": "0e2b07053709e2590eac5b21de12495f", "score": "0.6560644", "text": "static int birthdayCakeCandles(int[] ar) {\r\n int n = ar.length;\r\n int max = 0;\r\n for (int i = 0; i < n; i++) {\r\n if (ar[i] > max) max = ar[i];\r\n }\r\n int countHighest = 0;\r\n for (int i = 0; i < n; i++) {\r\n if (ar[i] == max) countHighest++;\r\n }\r\n\r\n return countHighest;\r\n }", "title": "" }, { "docid": "bb75dab4bc36a199bc6654ca0b3491e1", "score": "0.6165729", "text": "int getCandlesCount();", "title": "" }, { "docid": "7dd85297c48c2c7ee84cfd55dcfc2ae2", "score": "0.61211133", "text": "public static int[] fewestCoins(int amount) {\n \t\t\n \t\tint wot = 2;\n \t\tint eater = 7;\n \t\tint stickpair = 11;\n \t\tint deck = 54;\n \t\tint testNum = 0;\n \t\tint currentMin = -1;\n \t\tint maxWot = amount/wot;\n \t\tint maxEater = amount/eater;\n \t\tint maxStickpair = amount/stickpair;\n \t\tint maxDeck = amount/deck;\n \t\tint[] coinCount = new int[4];\n \t\tint currentCount;\n \t\t\n \t\t//loop through all the permutations and if their sum = amount\n \t\t// then check if the number of coins used is less than previous \n \t\t// possibilities\n \t\t\n \t\tfor(int i = 0; i <= maxWot; i++) {\n \t\t\ttestNum += wot*i;\n \t\t\tfor(int j = 0; j <= maxEater; j++) {\n \t\t\t\ttestNum += eater*j;\n \t\t\t\tfor(int k = 0; k <= maxStickpair; k++) {\n \t\t\t\t\ttestNum += stickpair*k;\n \t\t\t\t\tfor(int p = 0; p <= maxDeck; p++) {\n \t\t\t\t\t\ttestNum += deck*p;\n \t\t\t\t\t\tif(testNum == amount) {\n \t\t\t\t\t\t\tcurrentCount = i +j + k + p;\n \t\t\t\t\t\t\tif(currentCount < currentMin || currentMin == -1) {\n \t\t\t\t\t\t\t\t//set coinCount to current coin values\n \t\t\t\t\t\t\t\tcoinCount[0] = wot*i;\n \t\t\t\t\t\t\t\tcoinCount[1] = eater*j;\n \t\t\t\t\t\t\t\tcoinCount[2] = stickpair*k;\n \t\t\t\t\t\t\t\tcoinCount[3] = deck*p;\n \t\t\t\t\t\t\t\tcurrentMin = currentCount;\n \t\t\t\t\t\t\t}//if(i+j+k+p....)\n \t\t\t\t\t\t}//if(test=amount)\n \t\t\t\t\t\ttestNum -= deck*p;\t\t\n \t\t\t\t\t}//for(p)\n \t\t\t\t\ttestNum -= stickpair*k;\n \t\t\t\t}//for(k)\n \t\t\t\ttestNum -= eater*j;\n \t\t\t}//for(j)\n \t\t\ttestNum -= wot*i;\n \t\t}//for(i)\n \t\treturn coinCount;\t\n \t}", "title": "" }, { "docid": "6d0ea679eb2172bd41c1299ce6bcdfa0", "score": "0.5892654", "text": "private int calculateKind(List<Dice> dices) {\n for (int i = 1; i <= 6; i++) {\n int count = countOf(dices, i);\n if (count >= 3) {\n return calculateSum(dices);\n }\n }\n return 0;\n }", "title": "" }, { "docid": "8a7a6bf0f77557355eb7018ef72bc00e", "score": "0.566705", "text": "public int distributeCandies(int[] candies) {\n\t\tHashSet < Integer > set = new HashSet < > ();\n for (int candy: candies) {\n set.add(candy);\n }\n return Math.min(set.size(), candies.length / 2);\n\t}", "title": "" }, { "docid": "74df1a903dcae15fdf2a0d772a4a59cd", "score": "0.5645841", "text": "static long getWays(long n, long[] c) { \n Arrays.sort(c);\n long m=c.length;\n \n long []res=new long[(int)n+1];\n res[0]=1;\n for(long i=0;i<m;i++) {\n \tfor(long j=c[(int) i];j<=n;j++) {\n \t\tres[(int) j]+=res[(int) (j-c[(int) i])]; \t\t\n \t}\n }\n \n /*\n for(long kk: res) {\n \tSystem.out.print(kk+\" \" );\n }\n */\n System.out.println(\"kk\");\n return res[(int) n];\n }", "title": "" }, { "docid": "820bc2d630dd08473df23b17dad02ef6", "score": "0.55897343", "text": "public static int countWays(int n){\n return coinChange(coinValues, coinValues.length, n);\n }", "title": "" }, { "docid": "2d7ce2a4d4e882ae8311ce0539de8c5f", "score": "0.558712", "text": "public static void main(String[] args){\n int correct = 0;\n for (int i = 0; i < 1000; i++){//this does the bday paradox 1000 times\n int[] array = new int[23];\n array = dates(23);\n if (hasDupes(array)){\n correct++;\n }\n }\n double Answer = (double)correct/10; //this makes the number into a percent\n System.out.println(\"The percent of times there were duplicate birthdays is \" + Answer + \"%.\");\n }", "title": "" }, { "docid": "e2fc4631b5dec785567cebfe8accc1e3", "score": "0.55795383", "text": "public int getCandlesCount() {\n return candles.countTomorrow;\n }", "title": "" }, { "docid": "27ffaeda77c183caf61303d1defb0848", "score": "0.5570673", "text": "public List<Boolean> kidsWithCandies(int[] candies, int extraCandies) { \n List<Boolean> ans = new ArrayList();\n // int max = Arrays.stream(candies).max().getAsInt();\n int max = candies[0];\n for (int i = 1; i<candies.length; i++){\n if(candies[i] >max)\n max = candies[i];\n }\n for (int i = 0; i<candies.length; i++){\n if (candies[i] + extraCandies >= max){\n ans.add(true);\n }\n else {\n ans.add(false);\n }\n }\n return ans;\n }", "title": "" }, { "docid": "85fb2b11b6f802d438da607a8771c858", "score": "0.5548083", "text": "@java.lang.Override\n public int getCandlesCount() {\n return candles_.size();\n }", "title": "" }, { "docid": "ef898e9ef0351ea3086435b736123c45", "score": "0.5529898", "text": "static int cutRod(int price[], int n) {\n int val[] = new int[n + 1];\n val[0] = 0;\n\n // Build the table val[] in bottom up manner and return\n // the last entry from the table\n for (int i = 1; i <= n; i++) {\n int max_val = Integer.MIN_VALUE;\n for (int j = 0; j < i; j++)\n max_val = Math.max(max_val, price[j] + val[i - j - 1]);\n val[i] = max_val;\n }\n\n return val[n];\n }", "title": "" }, { "docid": "bf146ca41b426adce3f65222e1bacced", "score": "0.55029154", "text": "public static long maximumAmount(List<Integer> a, long k) {\n TreeMap<Integer, Integer> pq = new TreeMap<>(Collections.reverseOrder());\r\n for (int element : a) {\r\n if (pq.containsKey(element)) {\r\n pq.put(element, pq.get(element) + 1);\r\n } else {\r\n pq.put(element, 1);\r\n }\r\n }\r\n\r\n long i = k;\r\n long profit = 0;\r\n\r\n while (i > 0 && !pq.isEmpty()) {\r\n Map.Entry<Integer, Integer> first = pq.pollFirstEntry();\r\n\r\n int price = first.getKey();\r\n int count = first.getValue();\r\n if (i - count > 0) {\r\n profit += ((long) price * (long) count);\r\n i -= count;\r\n price--;\r\n if (pq.containsKey(price)) {\r\n pq.put(price, pq.get(price) + count);\r\n } else {\r\n pq.put(price, count);\r\n }\r\n\r\n\r\n } else {\r\n //i <= count\r\n profit += (price * i);\r\n i -= count;\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n// PriorityQueue<Integer> pq = new PriorityQueue<>(a.size(), Collections.reverseOrder());\r\n// pq.addAll(a);\r\n// int i = 0;\r\n// long profit = 0;\r\n//\r\n// while (i < k && pq.peek() > 0) {\r\n//\r\n// int temp = pq.poll();\r\n// profit += temp;\r\n// temp--;\r\n//\r\n// System.out.println(\"i: \" + i);\r\n// System.out.println(\"temp: \" + temp);\r\n// if (temp > 0) {\r\n// pq.add(temp);\r\n// }\r\n// i++;\r\n// }\r\n\r\n return profit;\r\n }", "title": "" }, { "docid": "6b9c315a77911d320fe96b48c76a8cbb", "score": "0.5500877", "text": "public static void k_happy(Couple[] couples, int n, int k)\n\t{\n\t\tint[] done = new int[200];\n\t\tint maxHappyIndex = 0; //The function finds out the k-happiest couples and then prints them in order.\n\t\tint i;\n\t\tint j;\n\t\tfor (i = 0;i < k;i++)\n\t\t{\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{\n\t\t\t\tif (done[j] == 0)\n\t\t\t\t{\n\t\t\t\t\tmaxHappyIndex = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{\n\t\t\t\tif (done[j] == 0 && couples[j].happiness > couples[maxHappyIndex].happiness)\n\t\t\t\t{\n\t\t\t\t\tmaxHappyIndex = j;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(couples[maxHappyIndex].boy.name);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(couples[maxHappyIndex].girl.name);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(couples[maxHappyIndex].happiness);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\tdone[maxHappyIndex] = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "19228ce915bf93af90aef3201c568f2f", "score": "0.54948175", "text": "static long countWays(int S[], int m, int n)\n {\n long[] table = new long[n+1];\n \n // Initialize all table values as 0\n Arrays.fill(table, 0); //O(n)\n \n // Base case (If given value is 0)\n table[0] = 1;\n \n // Pick all coins one by one and update the table[]\n // values after the index greater than or equal to\n // the value of the picked coin\n for (int i=0; i<m; i++)\n for (int j=S[i]; j<=n; j++)\n table[j] += table[j-S[i]];\n \n return table[n];\n }", "title": "" }, { "docid": "6249f6a225f1904d17deb0fdc469657a", "score": "0.5443542", "text": "public int findCelebrity(int n) {\n int celebrity = 0;\n for (int i = 1; i < n; i++) {\n if (knows(celebrity, i)) {\n celebrity = i;\n }\n }\n\n for (int i = 0; i < n; i++) {\n if (i == celebrity) {\n continue;\n }\n if (knows(celebrity, i) || !knows(i, celebrity)) {\n return -1;\n }\n }\n\n return celebrity;\n }", "title": "" }, { "docid": "ac1b67f30ba9e671912beb3ae31c83ad", "score": "0.5424492", "text": "public int getCandlesCount() {\n if (candlesBuilder_ == null) {\n return candles_.size();\n } else {\n return candlesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "5cb2fc8cd1e5a8cd13aa46f2143fe249", "score": "0.5387618", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tint n = in.nextInt();\r\n\t\tint k = in.nextInt();\r\n\t\tdouble array[] = new double[n];\r\n\t\tSet<Double> s = new TreeSet<Double>();\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tarray[i] = in.nextInt();\r\n\t\t\ts.add(array[i]);\r\n\t\t}\r\n\t\t\r\n\t\tint count= 0;\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tif(s.contains(array[i]+ k))\r\n\t\t\t\tcount++;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n//\t\t\tMap<Integer, Integer> m1 = new HashMap<Integer,Integer>(); \r\n//\t\t\tfor (int j = i+1; j < n; j++) {\r\n//\t\t\t\tif(Math.abs(array[i] - array[j]) == k){\r\n////\t\t\t\t\tSystem.out.println(array[i]+\" \"+array[j]);\r\n//\t\t\t\t\tcount++;\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\tSystem.out.println(count);\r\n\t\t\r\n\t\tin.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "f548e19101ea29c81d2f1db8b0f8fff0", "score": "0.5357667", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] prices = new int[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tprices[i] = in.nextInt();\n\t\t}\n\t\tfor(int i=2; i<=10000; i++){\n\t\t\tTreeSet<Integer> tset = new TreeSet<>();\n\t\t\tfor(int j=0; j<n; j++){\n\t\t\t\tif(prices[j]%i == 0){\n\t\t\t\t\ttset.add(j);\n\t\t\t\t}\n\t\t\t}\n\t\t\thmap.put(i, tset);\n\t\t}\n\t\t\n\t\tint q = in.nextInt();\n\t\t\n\t\twhile(q-- >0){\n\t\t\tint l = in.nextInt()-1;\n\t\t\tint r = in.nextInt()-1;\n\t\t\tint k = in.nextInt();\n\t\t\tif(k==1){\n\t\t\t\tint res = r-l+1;\n\t\t\t\tSystem.out.println(res);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tTreeSet<Integer> ktset = hmap.get(k);\n\t\t\t//printset(ktset);\n\t\t\tInteger high = ktset.floor(new Integer(r));\n\t\t\tInteger low = ktset.ceiling(new Integer(l));\n\t\t\tif(high == null || low == null){\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint res = ktset.headSet(high).size() - ktset.headSet(low).size() + 1;\n\t\t\tSystem.out.println(res);\n\t\t}\n\n\t}", "title": "" }, { "docid": "ebf173dcd2b91a042f30fef1d26ff997", "score": "0.535678", "text": "public int findCelebrity(int n) {\n int candidate = 0;\n for (int i = 1; i < n; i++) {\n if (knows(candidate, i)) {\n candidate = i;\n }\n }\n for (int i = 0; i < candidate; i++) {\n if (knows(candidate, i)) {\n return -1;\n }\n }\n for (int i = candidate + 1; i < n; i++) {\n if (!knows(i, candidate)) {\n return -1;\n }\n }\n return candidate;\n }", "title": "" }, { "docid": "c54d682712fd320d09c354f68db28bbb", "score": "0.53566647", "text": "private int calculateFh(List<Dice> dices) {\n Map<Integer, Integer> map = new HashMap<>();\n int maxCount = 0;\n for (Dice dice : dices) {\n int count = map.getOrDefault(dice.getValue(), 0) + 1;\n map.put(dice.getValue(), count);\n maxCount = Math.max(maxCount, count);\n if (map.size() > 2) {\n return 0;\n }\n }\n return maxCount <= 3 ? 25 : 0;\n }", "title": "" }, { "docid": "626a6bc676b98da2a4cb36a490fc6201", "score": "0.53246176", "text": "public int findCelebrity(int n) {\n int candidate = 0;\n for (int i = 1; i < n; i++) {\n if (knows(candidate, i)) candidate = i;\n }\n for (int i = 0; i < n; i++) {\n if (i < candidate) {\n if (knows(candidate, i)) return -1;\n if (!knows(i, candidate)) return -1;\n }\n if (i > candidate) {\n if (!knows(i, candidate)) return -1;\n }\n }\n return candidate;\n\n }", "title": "" }, { "docid": "c53d9e97922de91f5221dc25ce498ad3", "score": "0.5300037", "text": "public int countClumps(int[] array){\r\n\t\tint clump=0;\r\n\t\tif(array.length==0){\r\n\t\t\tthrow new AssertionError(\"Empty Array\");\r\n\t\t}\r\n\t\tfor(int i=0;i<(array.length-1);i++){\r\n\t\t\tif(array[i]==array[i+1]){\r\n\t\t\t\tif((i-1)==-1){\r\n\t\t\t\t\tclump++;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tif(array[i-1]!=array[i]){\r\n\t\t\t\t\tclump++;\r\n\t\t\t\t\t\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}\r\n\t\treturn clump;\r\n\t}", "title": "" }, { "docid": "a00689444499a81053407ac44cda04cc", "score": "0.5289248", "text": "static int factcount(int n) {\n\tHashSet<Integer> facts = new HashSet<Integer>();\n\tfor (int a = 1; a <= Math.sqrt(n); a++) {\n\t if (n % a == 0) {\n\t\tfacts.add(a);\n\t\tfacts.add(n /a);\n\t }\n\t}\n\tint count = 0;\n\tfor (Integer i : facts) {\n\t if (primes.contains(i)) {\n\t\tcount++;\n\t }\n\t}\n\treturn count;\n }", "title": "" }, { "docid": "afc2243f1dde4bb3db27032efcac43af", "score": "0.52744746", "text": "private static void makeChangeDP(int amount) {\n int count[] = new int[amount + 1];\n int index[] = new int[amount + 1];\n for(int p = 1; p <= amount; p++) {\n int denomIndex = 0;\n int min = Integer.MAX_VALUE;\n for(int i = 0; i < d.length; i++) {\n if(d[i] <= p) {\n if(count[p-d[i]] < min) {\n min = 1 + count[p-d[i]];\n denomIndex = i;\n }\n }\n }\n count[p] = min;\n index[p] = denomIndex;\n\n }\n System.out.println(\"# coins val: \" + count[amount]);\n\n while (amount > 0) {\n System.out.print(d[index[amount]]);\n amount = amount - d[index[amount]];\n }\n\n\n }", "title": "" }, { "docid": "6f5c0c8b4123873066ed8a7000d85133", "score": "0.52478784", "text": "private static int getCountOfGoodCards() {\n int count = 0;\n\n for (int i = 0; i < cards.size(); i++) {\n if (cards.get(i).getValue() >= 7 && cards.get(i).getValue() <= 10) count++;\n }\n\n return count;\n }", "title": "" }, { "docid": "bbe3a4a4d38bd4f4cf76e2646cb072fa", "score": "0.5242001", "text": "int[] JobScheduling(Job arr[], int n){\n Arrays.sort(arr,(a,b)-> b.profit -a.profit );\n int max = 0;\n int count = 0;\n HashSet<Integer> set = new HashSet<>();\n for( int i =0; i< n ; i++){\n Job j = arr[i];\n \n for( int s = j.deadline ;s >=1; s--){\n if( !set.contains(s) ) {\n set.add(s);\n count++;\n max += j.profit;\n break;\n }\n }\n }\n \n return new int[]{count, max};\n}", "title": "" }, { "docid": "f75aece06e865a07dfe79b71e173d6a4", "score": "0.5232582", "text": "static int cutRod(int price[], int n) \n { \n if (n <= 0) \n return 0; \n int max_val = Integer.MIN_VALUE; \n \n // Recursively cut the rod in different pieces and \n // compare different configurations \n for (int i = 0; i<n; i++) \n max_val = Math.max(max_val, \n price[i] + cutRod(price, n-i-1)); \n \n return max_val; \n }", "title": "" }, { "docid": "48b23a99cce1a80fe4285291ec12b3a4", "score": "0.52257866", "text": "static int migratoryBirds(List<Integer> arr) {\r\n \tint[] birds = new int[5];\r\n \tint commonBird=0;\r\n \tfor(int i=1;i<=birds.length;i++) {\r\n\r\n \t\tbirds[i-1]=Collections.frequency(arr,i);\r\n //Assign birds if count is strictly more than common bird(1-5)\r\n if(birds[i-1]>Collections.frequency(arr,commonBird)) commonBird=i;\r\n \t}\r\n \treturn commonBird;\r\n \t\r\n }", "title": "" }, { "docid": "41f1f76cfb22edbc8bc4a67c48fb6078", "score": "0.5220334", "text": "public int totalClumps(int array[]) throws AssertionError{\n\t\t\n\t\tif(array.length == 0) {\n\t\t\tthrow new AssertionError(\"Array is Empty\");\n\t\t}\n\t\t\n\t\tint numberOfClumps = 0;\n\t\tboolean sameElement = false;\n\t\t\n\t\tfor(int i=1; i<array.length; i++) {\n\t\t\tif(array[i] == array[i-1]) {\n\t\t\t\tif( !sameElement ) {\n\t\t\t\t\tsameElement = true;\n\t\t\t\t\tnumberOfClumps ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsameElement = false;\n\t\t\t}\n\t\t}\n\t\treturn numberOfClumps;\n\t}", "title": "" }, { "docid": "be84fba09c9ffd6f686dd52227e79169", "score": "0.5217319", "text": "static long countWays(int n)\n\t{\n\t\tlong count[] = new long[n+1];\n\t\tArrays.fill(count, -1);\n\t\treturn printCountRec(n, count);\n\t}", "title": "" }, { "docid": "9016661b5e2b25ecf7cbec9e778cf3fc", "score": "0.52136344", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong();\n long m = sc.nextLong();\n long k = sc.nextLong();\n\n long lampposts = n * m;\n\n Map<Long, Set<Track>> map = new HashMap<>();\n for (long i = 0; i < k; i++) {\n long r = sc.nextLong();\n\n Track track = new Track();\n track.c1 = sc.nextLong();\n track.c2 = sc.nextLong();\n\n Set<Track> list = map.get(r);\n if (null == list) {\n list = new HashSet<>();\n map.put(r, list);\n }\n\n list.add(track);\n }\n sc.close();\n\n long s = lampposts;\n Set<Entry<Long, Set<Track>>> entrySet = map.entrySet();\n for (Entry<Long, Set<Track>> entry : entrySet) {\n Track[] array = entry.getValue().toArray(new Track[entry.getValue().size()]);\n lampposts -= len(array); // there is a bug inside but i could not found it\n s -= len2(array);\n }\n System.out.println(lampposts);\n System.out.println(s);\n }", "title": "" }, { "docid": "491186d4f379938543ed0813aab39ea5", "score": "0.520459", "text": "public int countHeads(){\r\n int count = 0;\r\n for(int index=0; index < coins.length; index++){\r\n if(coins[index]){\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "title": "" }, { "docid": "580128950eb9f5b62097d037ef26f568", "score": "0.51690376", "text": "private static int[] HowmanyCandy(int candy, int man) {\n\t\tint[] NumCandy = new int[man];\n\t\tint give = 0;\n\t\tint sum = 0;\n\t\tint p =0 ;\n\t\tint left = candy;\n\t\t\n\t\twhile(left > 0) {\n\t\t\t\n\t\t\tfor(int i = 0; i < man; i++) {\n\t\t\t\tif(left <= 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNumCandy[i] += 1;\n\t\t\t\tgive++;\n\t\t\t\tSystem.out.println(\"total give in for loop \" + give);\n\t\t\t\tleft = candy - give;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"left \" + left);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn NumCandy;\n\t}", "title": "" }, { "docid": "084ecb21a8264a1e4a31af8175fed0ef", "score": "0.5151355", "text": "public static int maximumToys(List<Integer> prices, int k) {\n\t\t// Write your code here\n\n\t\t// #1\n\t\tCollections.sort(prices);\n\t\tint count = 0;\n\t\t// #2\n\t\tfor (Integer i : prices) {\n\t\t\t// #3\n\t\t\tif (i <= k) {\n\t\t\t\tcount++;\n\t\t\t\tk -= i;\n\t\t\t} else { // #4\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "dd07a9a9db99a7456a83ba5946ea2e6b", "score": "0.514221", "text": "private static long calc1(int max) {\n\t\tint[] res = { 2, 5 };\n\t\tfor (int n = 1; n < max; n++) {\n\t\t\tint d0 = 7 * n / 3;\n\t\t\tfor (int d = d0; d <= max; d++) {\n\t\t\t\t// count++;\n\t\t\t\t// we ignore fractions > 3/7\n\t\t\t\tif (isSmallerThan37(n, d)) {\n\t\t\t\t\tif (isLargerThanX(n, d, res)) {\n\t\t\t\t\t\tif (isHCFEqualTo1(n, d)) {\n\t\t\t\t\t\t\tres[0] = n;\n\t\t\t\t\t\t\tres[1] = d;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// we stop the second loop if we are too \"low\"\n\t\t\t\t\telse {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// System.out.println(count + \": \" + res[0] + \"/\" + res[1]);\n\t\treturn res[0];\n\t}", "title": "" }, { "docid": "c19dfbe92a3975e55bab805915e3ae9e", "score": "0.51369935", "text": "public static void main(String[] args) {\n\t\tint i,num=0,ctr=1;\n int a[]=new int[5];\n\n Scanner ins= new Scanner(System.in);\n\n\n\t\t\tdo\n\t\t\t{\n\t\t\t {\n\t\t\t System.out.print(\"Enter candidate no. \");\n\t\t\t num= ins.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t \t\tfor(i=0;i<5;i++)\n\t\t\t \t\t{\n\t\t\t \t\t\tif(num==(i+1))\n\t\t\t \t\t\t\ta[i]++;\n\t\t\t \t\t}\n\t\t\t\n\t\t\t \t\tctr++;\n\t\t\t\t\t} while(ctr<=10);\n\t\t\t\n\t\t\t\tSystem.out.println(\" \"); \n\t\t\t\n\t\t\t\tfor(i=0;i<5;i++)\n\t\t\t\t\tSystem.out.println(\"The no. of votes for canadidate \"+(i+1)+\" are: \"+a[i]);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0430d62e8c7409cb963b2f2505a9ade1", "score": "0.51308584", "text": "public int coinChangeGreedyAlgorithm(int[] coins, int amount) {\n int count = 0;\n \n while(amount != 0)\n {\n int max = 0;\n for(int i = 0; i < coins.length; i++)\n {\n if(coins[i] <= amount)\n {\n max = coins[i];\n }\n }\n if(max == 0)\n {\n return -1;\n }\n amount = amount - max;\n count++;\n }\n if(count > 0)\n {\n return count;\n }\n\n return -1;\n \n }", "title": "" }, { "docid": "66d6cbee43ca760e55e76532bdb5a0a0", "score": "0.5115136", "text": "static int migratoryBirds(List<Integer> arr) {\n\n int l=arr.size();\n int max=0;\n Map<Integer,Integer> mp=new HashMap<>();\n for(int i=0;i<l;i++)\n {\n \n \n if(mp.containsKey(arr.get(i)))\n {\n mp.put(arr.get(i),mp.get(arr.get(i))+1);//get is only to fetch key\n // from list\n }\n else\n {\n mp.put(arr.get(i),1);\n }\n }\n int value=0;\n for(Map.Entry<Integer,Integer> e: mp.entrySet())\n {\n if(value<e.getValue())\n {\n value=e.getValue();\n max=(e.getKey()).intValue();\n }\n }\n return max;\n \n }", "title": "" }, { "docid": "eece2a2e0388582ec97e77db970290b6", "score": "0.51074004", "text": "public int coinChange(int[] coins, int amount) {\n int n = coins.length;\n int dp[] = new int[amount + 1];\n dp[0] = 0;\n Arrays.sort(coins);\n for(int i = 1; i < amount + 1; i ++)\n {\n \tdp[i] = Integer.MAX_VALUE;\n for(int j = 0; j < n && coins[j] <= i; j ++)\n {\n if(dp[i - coins[j]] != Integer.MAX_VALUE)\n dp[i] = Math.min(dp[i], dp[i - coins[j]] + 1);\n }\n System.out.println(dp[i]);\n }\n return dp[amount] == Integer.MAX_VALUE ? -1 : dp[amount];\n }", "title": "" }, { "docid": "a8a3a2710fbac84bc7ee0c4343e7dc91", "score": "0.5103757", "text": "public int reckon(int input) {\n\n\t\tint dx[] = {1, 0, 1, 1};\n\t\tint dy[] = {0, 1, 1, -1};\n\t\tint ans = 0;\n\n\t\tfor(int x=0; x<size; x++) {\n\t\t\tfor (int y = 0; y < size; y++) {\n\t\t\t\tif (board[x][y].owner != input)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tint num[][] = new int[2][100];\n\n\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\tint sum = 1;\n\t\t\t\t\tint flag1 = 0, flag2 = 0;\n\n\t\t\t\t\tint tx = x + dx[i];\n\t\t\t\t\tint ty = y + dy[i];\n\t\t\t\t\twhile (tx >= 0 && tx < size\n\t\t\t\t\t\t\t&& ty >= 0 && ty < size\n\t\t\t\t\t\t\t&& board[tx][ty].owner == input) {\n\t\t\t\t\t\ttx += dx[i];\n\t\t\t\t\t\tty += dy[i];\n\t\t\t\t\t\t++sum;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tx >= 0 && tx < size\n\t\t\t\t\t\t\t&& ty >= 0 && ty < size\n\t\t\t\t\t\t\t&& board[tx][ty].owner == 0)\n\t\t\t\t\t\tflag1 = 1;\n\n\t\t\t\t\ttx = x - dx[i];\n\t\t\t\t\tty = y - dy[i];\n\t\t\t\t\twhile (tx >= 0 && tx < size\n\t\t\t\t\t\t\t&& ty >= 0 && ty < size\n\t\t\t\t\t\t\t&& board[tx][ty].owner == input) {\n\t\t\t\t\t\ttx -= dx[i];\n\t\t\t\t\t\tty -= dy[i];\n\t\t\t\t\t\t++sum;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tx >= 0 && tx < size\n\t\t\t\t\t\t\t&& ty >= 0 && ty < size\n\t\t\t\t\t\t\t&& board[tx][ty].owner == 0)\n\t\t\t\t\t\tflag2 = 1;\n\n\t\t\t\t\tif(flag1 + flag2 > 0)\n\t\t\t\t\t\t++num[flag1 + flag2 - 1][sum];\n\t\t\t\t}\n\n\t\t\t\t//case 5\n\t\t\t\tif(num[0][5] + num[1][5] > 0)\n\t\t\t\t\tans = Math.max(ans, 100000);\n\t\t\t\t//case: 4\n\t\t\t\telse if(num[1][4] > 0\n\t\t\t\t\t\t|| num[0][4] > 1\n\t\t\t\t\t\t|| (num[0][4] > 0 && num[1][3] > 0))\n\t\t\t\t\tans = Math.max(ans, 10000);\n\t\t\t\t//case double 3\n\t\t\t\telse if(num[1][3] > 1)\n\t\t\t\t\tans = Math.max(ans, 5000);\n\t\t\t\t//case single 3 and dead 3\n\t\t\t\telse if(num[1][3] > 0 && num[0][3] > 0)\n\t\t\t\t\tans = Math.max(ans, 1000);\n\t\t\t\t//case dead 4\n\t\t\t\telse if(num[0][4] > 0)\n\t\t\t\t\tans = Math.max(ans, 500);\n\t\t\t\t//case single 3\n\t\t\t\telse if(num[1][3] > 0)\n\t\t\t\t\tans = Math.max(ans, 200);\n\t\t\t\t//case double 2\n\t\t\t\telse if(num[1][2] > 1)\n\t\t\t\t\tans = Math.max(ans, 100);\n\t\t\t\t//case dead 3\n\t\t\t\telse if(num[0][3] > 0)\n\t\t\t\t\tans = Math.max(ans, 50);\n\t\t\t\t//case double 2\n\t\t\t\telse if(num[1][2] > 1)\n\t\t\t\t\tans = Math.max(ans, 10);\n\t\t\t\t//case single 2\n\t\t\t\telse if(num[1][2] > 0)\n\t\t\t\t\tans = Math.max(ans, 5);\n\t\t\t\t//case dead 2\n\t\t\t\telse if(num[0][2] > 0)\n\t\t\t\t\tans = Math.max(ans, 1);\n\n\t\t\t}\n\t\t}\n\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "da690b99a9dd16e355a833e68d8e6a18", "score": "0.5102526", "text": "private int sumOfAKind(int[] dice, int xKind) {\n\t\tint[] diceCounts = {0, 0, 0, 0, 0, 0}; // keeps track of amount of 1s, 2s, 3s, 4s, 5s, 6s\n\t\tfor (int i = 0; i < dice.length; i++) {\n\t\t\tint curr = dice[i];\n\t\t\tdiceCounts[curr-1] = diceCounts[curr-1] + 1;\n\t\t}\n\t\tfor (int i = 0; i < diceCounts.length; i++) {\n\t\t\tif (diceCounts[i] >= xKind) {\n\t\t\t\treturn xKind * (i+1);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a7c9db2606d44f7cd3587b7994d9744c", "score": "0.50796443", "text": "public int getHandSum(){\n \n int handSum = 0;\n int cardNum;\n int numAces = 0;\n \n for(int c = 0; c < this.numCards; c++){\n \n cardNum = this.hand[c].getNumber(Card.Rank.rankValue);\n \n if (cardNum == 1){\n numAces++;\n handSum += 1;\n }\n else if (cardNum > 10){\n handSum += 10;\n }\n else{\n handSum += cardNum;\n }\n }\n \n while (handSum > 21 && numAces > 0){\n handSum -= 10;\n numAces--;\n }\n return handSum;\n \n }", "title": "" }, { "docid": "4895eeb3bf423390c8a8a6e4eeeb7d13", "score": "0.50669926", "text": "int nHouses();", "title": "" }, { "docid": "660c3f66be7fee13d67f2a73cd648e65", "score": "0.5060168", "text": "public static long nthHardyNumber(int n) {\r\n\t\t// TODO: If you have any fields that are arrays or collections,\r\n\t\t// You must clear them at the beginning of each call to this method.\r\n\t\t// This is so that values calculated by previous calls do not speed up\r\n\t\t// subsequent calls.\r\n\r\n\t\t// TODO: replace the following dummy statement by real code that\r\n\t\t// calculates\r\n\t\t// and returns the nth Hardy number.\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tlong i = 0;\r\n\t\tcubesum prev = new cubesum(0,0);\r\n\t\tPriorityQueue pd = new PriorityQueue<cubesum>();\r\n\t\tPriorityQueue tempd = new PriorityQueue<cubesum>();\r\n\t\tHashSet<Long> set = new HashSet<Long>();\r\n\t\ti = increasePQsize(i, pd, tempd);\r\n\t\twhile (count <n){\r\n\t\t\tcubesum s = (cubesum) pd.remove();\r\n\t\t\t\r\n\t\t\tif (prev.getSum() == s.getSum()){\r\n\t\t\t\tif(!set.contains(prev.getSum())){\r\n\t\t\t\t\tset.add(prev.getSum());\r\n\t\t\t\t\tcount += 1;\r\n\t\t\t\t}\r\n//\t\t\t\tSystem.out.println(\"prev \"+prev.x+\",\"+prev.y);\r\n//\t\t\t\tSystem.out.println(\"s \"+s.x+\",\"+s.y);\r\n//\t\t\t\tSystem.out.println(\"sum \"+prev.getSum());\r\n//\t\t\t\tcount = count +1;\r\n\t\t\t}else{\r\n\t\t\t\t// nothing to do for now\r\n\t\t\t}\r\n\t\t\tprev = s;\r\n\t\t\tif (pd.size()<5){\r\n\t\t\t\ti= increasePQsize(i,pd,tempd);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn prev.getSum();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "f3800ff4b04a147296db5c3a8988f984", "score": "0.50505203", "text": "public static void main(String[] args) {\n\n int coupons = 0;\n\n Scanner scan= new Scanner(System.in);\n System.out.println(\"Enter number of coupons:\");\n coupons = scan.nextInt();\n\n if (coupons<3) {\n\n System.out.println(\"Not enough coupons\");\n }else {\n\n int noOfCandies = coupons/10 ;\n int remainder = coupons - noOfCandies*10;\n int noOfGumballs = remainder/3 ;\n\n System.out.println(\"Number of Candies: \" + noOfCandies);\n System.out.println(\"Number of Gumballs: \" + noOfGumballs);\n\n\n }\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "49ff60ee37900471bdb5bbc86e428bcb", "score": "0.50418293", "text": "public static void main(String s[]) {\n\t\t\n\t\tint input[] = {1, 2, 3};\n\t\t\n\t\tint total = 5;\n\t\t\n\t\t\n\t\tCoinChangeWays ccw = new CoinChangeWays();\n\t\tint numOfWays = ccw.getCoinChangeWays(input, total);\n\t\t\n\t\tSystem.out.println(numOfWays);\n\t\t\n\t\tSystem.out.println(\"Efficient Way -->\"+ccw.numberOfSolutionsOnSpace(total, input));\n\t}", "title": "" }, { "docid": "6a7157397fbeaf0f6ca90fcf12747fb8", "score": "0.50372416", "text": "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n N = Integer.parseInt(st.nextToken());\n K = Integer.parseInt(st.nextToken());\n ArrayList<Diamond> diamonds = new ArrayList<>();\n\n for (int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n diamonds.add(new Diamond(Integer.parseInt(st.nextToken()), Long.parseLong(st.nextToken())));\n }\n ArrayList<Integer> bags = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n bags.add(Integer.parseInt(br.readLine()));\n }\n Collections.sort(diamonds, new Comparator<Diamond>() {\n @Override\n public int compare(Diamond o1, Diamond o2) {\n if(o1.weight < o2.weight) return -1;\n else if(o1.weight == o2.weight) return 0;\n else return 1;\n }\n });\n Collections.sort(bags);\n long sum = 0;\n PriorityQueue<Diamond> priorityQueue = new PriorityQueue<>(new Comparator<Diamond>() {\n @Override\n public int compare(Diamond o1, Diamond o2) {\n if(o1.value > o2.value) return -1;\n else if(o1.value == o2.value) return 0;\n else return 1;\n }\n });\n for (int i = 0, j = 0; i < K; i++) {\n while (j < N && bags.get(i) >= diamonds.get(j).weight){//담을수있는 보석이 있는가?\n priorityQueue.offer(diamonds.get(j));\n j += 1;\n }\n if(!priorityQueue.isEmpty()){\n sum += priorityQueue.poll().value;\n }\n }\n System.out.println(sum);\n }", "title": "" }, { "docid": "904ec42364a42dbf72b0cdec4ea86ec8", "score": "0.50180596", "text": "static int countWays(int n) {\n int dp[] = new int[n + 1];\n\n // base cases\n dp[0] = dp[1] = dp[2] = 1;\n dp[3] = 2;\n\n // iterate for all values from 4 to n\n for (int i = 4; i <= n; i++) {\n dp[i] = dp[i - 1] + dp[i - 3] + dp[i - 4];\n }\n\n return dp[n];\n }", "title": "" }, { "docid": "dd886a9ad999a587336d2955f80914ec", "score": "0.5009981", "text": "public static void main(String[] args) {\n\t\tfinal int no = 1000000;\r\n\t\tlong noBeingChecked = 0;\r\n\t\tlong maxLngth = 0;\r\n\t\tlong initial = 0;\r\n\t\tfor(int i = 2; i <= no; i++)\r\n\t\t{\r\n\t\t\tint len = 1;\r\n\t\t\tnoBeingChecked = i;\r\n\t\t\twhile(noBeingChecked!=1)\r\n\t\t\t{\r\n\t\t\t\tif(noBeingChecked%2 == 0)\r\n\t\t\t\t\tnoBeingChecked/=2;\r\n\t\t\t\telse\r\n\t\t\t\t\tnoBeingChecked = noBeingChecked*3+1;\r\n\t\t\t\tlen++;\r\n\t\t\t}\r\n\t\t\tif(len > maxLngth)\r\n\t\t\t{\r\n\t\t\t\tmaxLngth = len;\r\n\t\t\t\tinitial = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(initial);\r\n\t}", "title": "" }, { "docid": "ca4069875e533c1e1cc00d9547eaf53a", "score": "0.5001965", "text": "public static int maxCoins2(int[] nums) {\n int[] newNums = new int[nums.length+2];\n \n //to save time we only put non-zero num to newNums[] since zero num will not contribute to max coins\n //n is pointer in newNums \n int n = 1;\n for(int num : nums) if(num != 0) newNums[n++] = num;\n //set nums[-1] and nums[n], now n becomes the size of new array\n newNums[0] = newNums[n++] = 1;\n \n //dp[i][j] means the max coins we can get by bursting balloons from i to j\n //But we will not burst the leftmost and rightmost balloon which is i and j, so actually it considers the range between i+1 and j-1\n //so actually now we have considered -1 and len balloon into consideration\n //Now dp has length with len +2, so dp[0][len+1] will give us the correct solution\n //but now we use \"n\" to avoid 0s, and n = len + 2, so finally we use dp[0][n-1] to get correct solution\n int[][] dp = new int[n][n];\n \n //we fill the dp table from base case to normal case\n //for each dp cell, we will look for the last balloon to burst\n //Since once last balloon is fixed, we can safely get max coin values from left and right side as well\n //len help us get the right index after left index. ex: len =2, left = 0, then right index will be 0 +2 = 2, i.e. the 3rd balloon\n //we choose start len to be 2 because we need at least 3 balloons to get coins and len2 can help us get the 3rd balloon at index left + 2 \n //we choose n -1 to be end len because index issue (the most right index is at n -1)\n for(int len = 2; len < n; len++){\n //exclude nums[-1] and nums[n] from left and right\n //we need 3 balloons to calculate coin so left cannot >= n - len\n \t//assume left = 0, then n + maxLen should < n, since the max index in dp[][] is n-1\n for(int left = 0; left < n - len; left++){\n \t//Based on the rule above, we can use left + len to get the right index directly\n int right = left + len;\n //try each balloon in the (left, right) to be the last balloon to burst\n //choose the one that gives max coin sum\n for(int i = left + 1; i < right; i++){\n \t//dp[left][i] is max coins we can get from left -> i, but we still have balloon left and i not bursted yet\n \t//dp[i][right] is max coins we can get from i -> right, but we still have balloon i and right not bursted yet\n \t//by picking balloon i, we can connect two parts together and add a new coin amount: newNums[left] * newNums[i] * newNums[right]\n \t//so dp[left][right] would be the sum of above values\n dp[left][right] = Math.max(dp[left][right], newNums[left] * newNums[i] * newNums[right] + dp[left][i] + dp[i][right]);\n }\n }\n }\n\n return dp[0][n-1];\n }", "title": "" }, { "docid": "ee3b237a799a8228fc378edd224a680f", "score": "0.49990934", "text": "public int nthUglyNumber(int n) {\n if(n == 0) return 0;\n List<Integer> uglys = new ArrayList<>();\n uglys.add(1);\n int L2 = 0;\n int L3 = 0;\n int L5 = 0;\n int nextUgly = 1;\n for(int i = 1; i < n; i++){\n \n if(uglys.get(L2)*2 < uglys.get(L3)*3 && uglys.get(L2)*2 < uglys.get(L5)*5){\n nextUgly = uglys.get(L2)*2;\n L2++;\n } \n else if(uglys.get(L2)*2 == uglys.get(L3)*3 && uglys.get(L2)*2 < uglys.get(L5)*5){\n nextUgly = uglys.get(L2)*2;\n L2++;\n L3++;\n }\n else if(uglys.get(L2)*2 == uglys.get(L5)*5 && uglys.get(L2)*2 < uglys.get(L3)*3){\n nextUgly = uglys.get(L2)*2;\n L2++;\n L5++;\n }\n else if(uglys.get(L3)*3 < uglys.get(L2)*2 && uglys.get(L3)*3 < uglys.get(L5)*5){\n nextUgly = uglys.get(L3)*3;\n L3++; \n } \n else if(uglys.get(L3)*3 == uglys.get(L5)*5 && uglys.get(L3)*3 < uglys.get(L2)*2) {\n nextUgly = uglys.get(L3)*3;\n L3++;\n L5++;\n }\n else if(uglys.get(L5)*5 < uglys.get(L3)*3 && uglys.get(L5)*5 < uglys.get(L3)*3){\n nextUgly = uglys.get(L5)*5;\n L5++;\n } \n else if(uglys.get(L2)*2 == uglys.get(L3)*3 && uglys.get(L2)*2 == uglys.get(L5)*5){\n nextUgly = uglys.get(L5)*5;\n L2++;\n L3++;\n L5++;\n }\n uglys.add(nextUgly);\n }\n for(int i = 0; i < uglys.size(); i++){\n System.out.print(uglys.get(i)+\" \");\n }\n return nextUgly;\n }", "title": "" }, { "docid": "e8f42f3662bdcb6513849813dbe4ff5f", "score": "0.49967906", "text": "static int flatlandSpaceStations(int n, int[] c) {\n if(c.length==1){\n return Math.max(c[0],n-c[0]-1);\n }\n Arrays.sort(c);\n int max_distace = c[0];\n int check = max_distace;\n //if()\n for(int i=1;i<c.length;i++){\n if(max_distace<(c[i]-c[i-1])) max_distace=c[i]-c[i-1];\n }\n if(check==max_distace || ((max_distace/2)+1<(n-c[c.length-1]))) return Math.max(check,n-1-c[c.length-1]);\n //return n-1-c[c.length-1];\n if(max_distace==1) return 0;\n else{\n double x = max_distace/2;\n if(max_distace%2==0) return max_distace/2;\n \n else return (int)Math.ceil(x);\n }\n }", "title": "" }, { "docid": "ff8a031239a1bc1b996ac96558556c74", "score": "0.49959928", "text": "static int birthday(List<Integer> s, int d, int m) {\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tList<List<Integer>> lists = new ArrayList<>();\r\n\t\tfor (int i = 0; i < s.size(); i++) {\r\n\t\t\tif ((i+m) <= s.size()) {\r\n\t\t\t\tlists.add(s.subList(i, i+m));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (List<Integer> list : lists) {\r\n\t\t\tint sum = list.stream().reduce(0, (a, b) -> a + b);\r\n\t\t\tif (sum == d)\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "8ce0b3d7ed3c37e9630364aafa2a02c8", "score": "0.49947652", "text": "public static void main(String[] args) {\r\n Scanner in = new Scanner(System.in);\r\n int n = in.nextInt();\r\n int m = in.nextInt();\r\n int[] a = new int[n];\r\n for(int a_i=0; a_i < n; a_i++){\r\n a[a_i] = in.nextInt();\r\n }\r\n int[] b = new int[m];\r\n int maximumFactor = 101;\r\n for(int b_i=0; b_i < m; b_i++){\r\n b[b_i] = in.nextInt();\r\n if(b[b_i] < maximumFactor){\r\n \tmaximumFactor = b[b_i]; \r\n }\r\n }\r\n \r\n Set<Integer> factorSet = getFactorSet(maximumFactor, b);\r\n int result = factorSet.size();\r\n \r\n Iterator<Integer> iter = factorSet.iterator();\r\n while(iter.hasNext()){\r\n \tint factor = iter.next();\r\n \tfor(int i = 0; i < n; i++){\r\n \t\tif(factor % a[i] != 0 ){\r\n \t\t\tresult --;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n }\r\n \r\n System.out.println(result);\r\n \r\n }", "title": "" }, { "docid": "0601dbd411fb2ed3d4d4a61a4c1e4fa0", "score": "0.49929535", "text": "static long bricksGame(int[] arr) {\n \tint n = arr.length + 1;\n \tfor(int i = 0; i < arr.length/2 ; i++) {\n \t\tint temp=arr[i];\n \t\tarr[i] = arr[arr.length - i - 1];\t\t\n \t\tarr[arr.length - i - 1] = temp;\n\t\t}\n \tlong[] sums = new long[n];\n \tfor (int i = 1; i < n; i++) {\n \t sums[i] = sums[i - 1] + arr[i - 1];\n \t}\n \t\n \tlong[] dp = new long[n];\n dp[1] = sums[1];\n dp[2] = sums[2];\n dp[3] = sums[3];\n \n for (int i = 4; i < n; i++) {\n dp[i] = Math.max(\n sums[i] - dp[i - 1],\n Math.max(\n sums[i] - dp[i - 2],\n sums[i] - dp[i - 3]\n )\n );\n }\n return dp[n - 1]; \t \n }", "title": "" }, { "docid": "f26078cc37626c049ebd15bfc99c8e0b", "score": "0.49907884", "text": "static int migratoryBirds(List<Integer> arr) {\n \n int[] count = {0,0,0,0,0};\n int max_idx=0 ;\n \n \n for (int i=0 ; i< arr.size() ; i++) {\n count[arr.get(i)-1] += 1;\n } \n \n int max = count[0];\n \n for(int i=1 ; i < count.length ;i++ ){\n if (count[i] > max) {\n max_idx= i;\n max = count[i];\n }\n else if (count[i] == max){\n if (i < max_idx) {\n max_idx = i;\n }\n }\n } \n return max_idx+1;\n \n }", "title": "" }, { "docid": "bfcf66c97cee31f6229d9b40896ab9a0", "score": "0.49759114", "text": "@Test\r\n\tpublic void nHighCard() {\r\n\t\tint NbrOfJokers = 0;\r\n\t\t\r\n\t\tDeck d = new Deck(NbrOfJokers);\r\n\t\tHand h = new Hand();\r\n\t\t\r\n\t\th.AddCardToHand(new Card(eSuit.HEARTS, eRank.KING, 0));\r\n\t\th.AddCardToHand(new Card(eSuit.DIAMONDS, eRank.TEN, 0));\r\n\t\th.AddCardToHand(new Card(eSuit.HEARTS, eRank.ACE, 0));\r\n\t\th.AddCardToHand(new Card(eSuit.CLUBS, eRank.TWO, 0));\r\n\r\n\t\th.AddCardToHand(new Card(eSuit.HEARTS, eRank.NINE, 0));\r\n\t\th = Hand.EvalHand(h);\r\n\t\tassertTrue(h.getHandStrength() == eHandStrength.HighCard.getHandStrength());\r\n\t\tassertTrue(h.getHighPairStrength() == eRank.ACE.getRank());\r\n\t\tassertTrue(h.getLowPairStrength() == 0);\r\n\r\n\t\tassertTrue(h.getKicker().get(0).getRank() == eRank.KING);\r\n\t\tassertTrue(h.getKicker().get(1).getRank() == eRank.TEN);\r\n\t\tassertTrue(h.getKicker().get(2).getRank() == eRank.NINE);\r\n\t\tassertTrue(h.getKicker().get(3).getRank() == eRank.TWO);\r\n\t}", "title": "" }, { "docid": "724a8452689e4b64333c17a2b75b4872", "score": "0.49724948", "text": "private static int calculate(int[] array)\n\t{\n\t\tint NrOfHighNr = 0;\n\t\tfor (int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tif (array[i] > 175)\n\t\t\t\tNrOfHighNr++;\n\t\t}\n\n\t\treturn NrOfHighNr;\n\t}", "title": "" }, { "docid": "d1552d1b3cfd99bfe14388d1e819488b", "score": "0.49692276", "text": "static int hurdleRace(int k, int[] height) {\n//Find Max height\n int max=0;\n for (int i = 0; i < height.length; i++) {\n Math.max(height[i], max);\n System.out.println(max);\n }\nreturn max>k?max-k:0;\n }", "title": "" }, { "docid": "4b53839de847597e9d490128e3418df1", "score": "0.49676037", "text": "static long solve(int n, int k) {\n long sum = 0;\n int different = 0;\n int ave = 0;\n int limit = 2*n-1;\n for(int i=k; i<=limit;i+=k){\n if(i-n>0){\n sum += i%2 == 0 ? i/2-(i-n) : i/2 + 1 -(i-n);\n }else{\n sum += i%2 == 0 ? i/2-1 : i/2;\n }\n }\n return sum;\n\n }", "title": "" }, { "docid": "158b6212423804f5155fd4efb7e98de1", "score": "0.49626043", "text": "private void calcularProfundidad(ArrayList<Nodo> arbol){\r\n profundidadMaxima = 0;\r\n for(int i=0; i<arbol.size();i++){\r\n Nodo nodo = arbol.get(i); \r\n if(nodo.getProfundidad() > profundidadMaxima){\r\n profundidadMaxima = nodo.getProfundidad();\r\n }\r\n }\r\n profundidadMaxima++;\r\n }", "title": "" }, { "docid": "2dd1f6ace95f5c68c22b2aeaaccbcc3e", "score": "0.49593908", "text": "private static void solution(int index, int count, boolean[] open) {\n\t\tif(count>=M) return;\n\t\tif(index>=open.length) return;\n\t\topen[index] = true;\n\t\tint home_d;\n\t\tint city_d = 0;\n\t\tfor(int i=0;i<home.size();i++) {\n\t\t\thome_d = Integer.MAX_VALUE;\n\t\t\tfor(int j=0;j<open.length;j++) {\n\t\t\t\tif(open[j]) {\n\t\t\t\t\tint k = Math.abs(home.get(i).x-chicken.get(j).x) + Math.abs(home.get(i).y-chicken.get(j).y);\n\t\t\t\t\t\n\t\t\t\t\tif(home_d>k) {\n\t\t\t\t\t\n\t\t\t\t\t\thome_d = k;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tcity_d += home_d;\n\t\t}\n\t\t\n\t\t\n\t\tif(city_d!=0 && answer>city_d) {\n\t\t\t\n\t\t\tanswer = city_d;\n\t\t}\n\t\t\n\t\tsolution(index+1, count+1, open);\n\t\topen[index] = false;\n\t\tsolution(index+1, count, open);\n\t}", "title": "" }, { "docid": "e5041aaf7c3ae8e27aa8a323f6fbadf7", "score": "0.49561295", "text": "public int distributeCookies(int[] cookies, int k) {\n int[] distribution = new int[k];\n\n //initially no of candidates with zero cookie bags are same as k\n return distribute(0, distribution, cookies, k, k);\n }", "title": "" }, { "docid": "cf8fe85c57ef762f499f50a596154e04", "score": "0.49560088", "text": "private static int countPoints( Card[] playerHand )\r\n\t{\r\n\t\t\r\n\t\tint totalPoints = 0;\r\n\t\t\r\n\t\t/*\r\n\t\t * evaluate highest card in the hand\r\n\t\t */\r\n\t\t\r\n\t\tint highestCardValue = 0;\r\n\t\t\r\n\t\t// for use in four of a kind\r\n\t\tint secondHighestCardValue = 0;\r\n\t\t\r\n\t\t\r\n\t\tfor( int i = 0; i < 5; i++){\r\n\t\t\tif ( playerHand[i].pointValue > highestCardValue) \r\n\t\t\t{\t\r\n\t\t\t\tsecondHighestCardValue = highestCardValue;\r\n\t\t\t\thighestCardValue = playerHand[i].pointValue;\r\n\t\t\t\ttotalPoints = highestCardValue;\r\n\t\t\t} \r\n\t\t\telse if ( playerHand[i].pointValue > secondHighestCardValue )\r\n\t\t\t{\t\r\n\t\t\t\tsecondHighestCardValue = playerHand[i].pointValue;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for one pair\r\n\t\t */\r\n\t\t\r\n\r\n\t\t//for two pair point evaluation\r\n\t\tint otherPairValue = 0;\r\n\t\t\r\n\t\t//used in full house evaluation\r\n\t\tboolean hasOnePair = false;\r\n\t\t\r\n\t\t//for use in full house evaluation\r\n\t\tint pairValue = 0;\r\n\t\t\r\n\t\t// if this equals 4, (i.e. two increments for each pair), there are two pairs. If one pair it'll only increase to 2.0\r\n\t\tint hasTwoPair = 0;\r\n\t\t\r\n\t\tfor( int i = 0; i < 5; i++)\r\n\t\t{\r\n\t\t\tfor( int j = 0; j < 5; j++)\r\n\t\t\t{\r\n\t\t\t\tif ( playerHand[i].pointValue == playerHand[j].pointValue && i != j ) \r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\ttotalPoints = 14 + highestCardValue;\r\n\t\t\t\t\t\r\n\t\t\t\t\thasOnePair = true;\r\n\t\t\t\t\tpairValue = playerHand[i].pointValue;\r\n\t\t\t\t\t\r\n\t\t\t\t\thasTwoPair++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//check for second pair\r\n\t\t\t\t\tif ( hasTwoPair == 4 ) \r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\totherPairValue = playerHand[j].pointValue;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//determine which pair is higher\r\n\t\t\t\t\t\tif (pairValue > otherPairValue)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttotalPoints = 28 + 20 * pairValue + otherPairValue;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttotalPoints = 28 + 20 * otherPairValue + pairValue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for three of a kind\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\t//for use in full house evaluation\r\n\t\tboolean hasThreeOfAKind = false;\r\n\t\tint threeOfAKindValue = 0;\r\n\t\t\r\n\t\tfor( int n = 0; n < 5; n++)\r\n\t\t{\r\n\t\t\tfor( int j = 0; j < 5; j++)\r\n\t\t\t{\r\n\t\t\t\tfor( int k = 0; k < 5; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( playerHand[n].pointValue == playerHand[j].pointValue && \r\n\t\t\t\t\t\t playerHand[n].pointValue == playerHand[k].pointValue && \r\n\t\t\t\t\t\t n != j && n != k && j != k ) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttotalPoints = 321 + highestCardValue;\r\n\t\t\t\t\t\thasThreeOfAKind = true;\r\n\t\t\t\t\t\tthreeOfAKindValue = playerHand[n].pointValue;\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\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for straight\r\n\t\t */\r\n\t\t\r\n\t\tboolean isStraight = false;\r\n\t\tint temporary;\r\n\t\t\r\n\t\t// sort hand in ascending order\r\n\t\tfor (int i = 0; i < 5; i++) \r\n\t\t{\r\n for (int j = i + 1; j < 5; j++) \r\n {\r\n if (playerHand[i].cardID > playerHand[j].cardID) \r\n {\r\n \t\r\n \ttemporary = playerHand[i].cardID;\r\n playerHand[i].cardID = playerHand[j].cardID;\r\n playerHand[j].cardID = temporary;\r\n \r\n }\r\n }\r\n }\r\n\t\t\r\n\t\t// check if hand is straight\r\n\t\tif ( playerHand[0].pointValue == playerHand[1].pointValue - 1 && \r\n\t\t\t playerHand[0].pointValue == playerHand[2].pointValue - 2 &&\r\n\t\t\t playerHand[0].pointValue == playerHand[3].pointValue - 3 && \r\n\t\t\t playerHand[0].pointValue == playerHand[4].pointValue - 4 )\r\n\t\t{\r\n\t\t\t\r\n\t\t\tisStraight = true;\r\n\t\t\ttotalPoints = 335 + highestCardValue;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for flush\r\n\t\t */\r\n\t\t\r\n\t\tboolean isFlush = false;\r\n\t\t\r\n\t\tif ( playerHand[0].suitValue == playerHand[1].suitValue && \r\n\t\t\t playerHand[1].suitValue == playerHand[2].suitValue &&\r\n\t\t\t playerHand[2].suitValue == playerHand[3].suitValue && \r\n\t\t\t playerHand[3].suitValue == playerHand[4].suitValue )\r\n\t\t{\r\n\t\t\tisFlush = true;\r\n\t\t\ttotalPoints = 349 + highestCardValue;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for full house\r\n\t\t */\r\n\t\t\r\n\t\tif ( hasThreeOfAKind && hasOnePair ) \r\n\t\t{\r\n\t\t\ttotalPoints = 363 + 20 * threeOfAKindValue + pairValue;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for four of a kind\r\n\t\t */\r\n\t\t\r\n\t\tfor( int n = 0; n < 5; n++)\r\n\t\t{\r\n\t\t\tfor( int j = 0; j < 5; j++)\r\n\t\t\t{\r\n\t\t\t\tfor( int k = 0; k < 5; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor( int m = 0; m < 5; m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ( playerHand[n].pointValue == playerHand[j].pointValue && \r\n\t\t\t\t\t\t\t playerHand[n].pointValue == playerHand[k].pointValue && \r\n\t\t\t\t\t\t\t playerHand[n].pointValue == playerHand[m].pointValue &&\r\n\t\t\t\t\t\t\t n != j && n != k && j != k && n != m && j!= m && k != m ) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint fourOfAKindValue = 0;\r\n\t\t\t\t\t\t\tint remainingCardValue = 0;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfourOfAKindValue = playerHand[n].pointValue;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif ( fourOfAKindValue > secondHighestCardValue )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tremainingCardValue = secondHighestCardValue;\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tremainingCardValue = highestCardValue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttotalPoints = 656 + 20 * fourOfAKindValue + remainingCardValue;\r\n\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}\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * check for straight flush\r\n\t\t */\r\n\t\t\r\n\t\tif ( isStraight && isFlush )\r\n\t\t{\r\n\t\t\ttotalPoints = 949 + highestCardValue;\r\n\t\t}\r\n\r\n\t\treturn totalPoints;\r\n\t}", "title": "" }, { "docid": "78b5e826f187826f97f3064c9d64e281", "score": "0.49457783", "text": "public int maxOfAKind() {\n\t\tint maxCount = 0;\n\t int currentCount ;\n\t for (int dieValue = 0; dieValue <= 5; dieValue++)\n\t {\n\t currentCount = 0;\n\t for (int diePosition = 0; diePosition < currentHand.getDice(); diePosition++)\n\t {\n\t if (currentHand.intAt(diePosition).equals(dieValue))\n\t currentCount++;\n\t }\n\t if (currentCount > maxCount)\n\t maxCount = currentCount;\n\t }\n\t return maxCount;\n\t}", "title": "" }, { "docid": "253c36a3b75714728d0df2cba98f6770", "score": "0.49409375", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int nost = sc.nextInt();\n int noc = sc.nextInt();\n int[] stalls = new int[nost];\n for (int i = 0; i < stalls.length; i++) {\n stalls[i] = sc.nextInt();\n }\n\n Arrays.sort(stalls);\n System.out.println(AggressiveCows(stalls, noc));\n\n }", "title": "" }, { "docid": "7cffa2c0ac1b178d9765bc8bf792ae0e", "score": "0.49398348", "text": "public int getSoldCds()\n {\n int soldCDs = 0;\n for(CD cd: cds)\n {\n soldCDs += cd.getSold(); \n \n }\n \n return soldCDs;\n }", "title": "" }, { "docid": "914aa94a3a89fb4b9fffae5a69a910c7", "score": "0.4934939", "text": "private int[] calcCounts() {\n\t\tint[] counts = new int[7];\n\n\t\tfor (int faceValue : this.values)\n\t\t\tcounts[faceValue]++;\n\n\t\treturn counts;\n\t}", "title": "" }, { "docid": "f22375cf47ccf70a90a78818beb51afd", "score": "0.49231243", "text": "public int maxProfitWithCharge(int[] prices, int charge) {\n int profit = 0;\n int localProfit = 0;\n boolean yesterdaySold = false;\n for (int i = 1; i < prices.length; i++) {\n if (prices[i] > prices[i - 1]) {\n localProfit += prices[i] - prices[i - 1];\n if (!yesterdaySold) {\n localProfit -= charge;\n }\n yesterdaySold = true;\n }\n else if (yesterdaySold) {\n profit += localProfit > 0 ? localProfit : 0;\n localProfit = 0;\n yesterdaySold = false;\n }\n }\n if (localProfit > 0) {\n profit += localProfit;\n }\n return profit;\n}", "title": "" }, { "docid": "5ebfbff3b0c66dee143b09e3fbd3d399", "score": "0.49124882", "text": "public static void main(String[] args) {\n\n int year = 1;\n int treeSize =0;\n while(year<=10){\n int growth =0 ;\n if(year<=3){\n growth =1;\n treeSize += growth;\n } else if(year <=10){\n growth =2 ;\n treeSize += growth;\n }\n System.out.println(\"year \" +year+ \" - growth \"+ growth +\"cm\");\n System.out.println(\"tree size: \" + treeSize + \" cm\");\n year++;\n\n }\n }", "title": "" }, { "docid": "f14f2baa67d16adee8d115f65a23f210", "score": "0.49122086", "text": "private int distribute(int cookieIndex, int[] distribution, int[] cookies, int k, int zeroCount) {\n if (cookies.length - cookieIndex < zeroCount) {\n return Integer.MAX_VALUE;\n }\n\n //if all cookie bag have been allocated\n if (cookieIndex == cookies.length) {\n return Arrays.stream(distribution).max().orElse(0);\n }\n\n int answer = Integer.MAX_VALUE;\n\n //allocate the current cookie bag to each candidate and recursively call the method with next index.\n for (int i = 0; i < k; i++) {\n if (distribution[i] == 0) { //if this candidate has zero cookies before allocation, decrease the zero count\n zeroCount--;\n }\n distribution[i] += cookies[cookieIndex];\n\n //recursively call the method with next index\n answer = Math.min(answer, distribute(cookieIndex+1, distribution, cookies, k, zeroCount));\n\n //back tacking : remove the cookies allocated and increase the zero count if required. This is required because if we want to\n // allocate the cookie bag to next candidate, it can't be with previous candidate, so decrease the no. of cookies frm\n // previous candidate.\n distribution[i] -= cookies[cookieIndex];\n if (distribution[i] == 0) {\n zeroCount++;\n }\n }\n return answer;\n }", "title": "" }, { "docid": "54e1e86e9655842cdb08ac840aaefa90", "score": "0.49107715", "text": "public int calculateFrequentPoints() {\n int frequentRenterPoints = 1;\n\n // add bonus for a two day new release rental\n if ((this.getMovie().getPriceCode() == Movie.NEW_RELEASE) && this.getDaysRented() > 1) {\n frequentRenterPoints++;\n }\n\n return frequentRenterPoints;\n }", "title": "" }, { "docid": "fc789adeee09258151bc240d308a8de8", "score": "0.49087745", "text": "public static int cookies(int k, List<Integer> A) {\n // Write your code here\n List<Integer> A1 = new ArrayList<Integer>();\n A1 = A;\n int numberOfOperations = 0;\n long counter = A1.stream().filter(a->a<k).count();\n if(counter == 0){\n numberOfOperations = -1;\n }else{\n\n for(int i=0;i<A1.size();i++){\n long count = A1.stream().filter(a->a<k).count();\n if(count > 0){\n numberOfOperations++;\n Collections.sort(A1);\n int newSweetness = (1 * A1.get(0)) + 2 * (A1.get(1));\n A1.set(0,newSweetness);\n A1.remove(1);\n\n\n }\n\n }\n }\n return numberOfOperations;\n\n }", "title": "" }, { "docid": "2d2c02cd137f1e0957ce51f00e336764", "score": "0.49060896", "text": "public int coinChange(int[] coins, int amount) {\n\n int[] minCoinRequired = new int[amount+1];\n Arrays.fill(minCoinRequired,9999);\n minCoinRequired[0]=0;\n\n\n for (int i=1;i<=amount;i++)\n {\n\n for (int j=0;j<coins.length;j++)\n {\n if (i>=coins[j])\n minCoinRequired[i]= Math.min(minCoinRequired[i],1+minCoinRequired[i-coins[j]]);\n\n\n\n }\n\n\n\n }\n\n return minCoinRequired[minCoinRequired.length-1]==9999? -1:minCoinRequired[minCoinRequired.length-1];\n }", "title": "" }, { "docid": "cc946b67500481bf269a6774021834fc", "score": "0.49054587", "text": "public static void main(String[] args){\n\t\tint[] array = new int[20];\n\n\t\t//Generating random numbers\n\t\tRandom rand = new Random();\n\n\t\tfor(int index = 0; index < array.length; index++){\n\t\t\t//Maximum 50 Minimum 1\n\t\t\tarray[index] = rand.nextInt(50) + 1;\n\t\t}\n\n\t\t//Display array\n\t\tfor(int n: array){\n\t\t\tSystem.out.print(n + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t\t//Bucket Sort\n\t\t//Time Complexity:\n\t\t//Best: Ω(n+k)\n\t\t//Average: ϴ(n+k)\n\t\t//Worst: O(n^2) \n\t\tBucket[] buckets = new Bucket[10];\n\t\tfor(int index = 0; index < buckets.length; index++){\n\t\t\tbuckets[index] = new Bucket();\n\t\t}\n\n\t\t//Put numbers into buckets \n\t\tfor(int n: array){ \n\t\t\tint bucketIndex = n*10/51; \n\t\t\tbuckets[bucketIndex].bucket.add(n);\n\t\t}\n\n\t\t//Display numbers in each bucket\n\t\tfor(Bucket n: buckets){\n\t\t\tSystem.out.print(\"Bucket \");\n\t\t\tfor(int num: n.bucket){\n\n\t\t\t\tSystem.out.print(num + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println();\n\n\t\tint index = 0;\n\t\t//Sort each of the buckets using insertion sort\n\t\tfor(Bucket n: buckets){\n\t\t\tinsertionSort(n.bucket);\n\n\t\t\t//put sorted number to the new array\n\t\t\tfor(int num: n.bucket){\n\t\t\t\tarray[index] = num;\n\t\t\t\tindex++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println();\n\t\t//Display numbers in each bucket\n\t\tfor(Bucket n: buckets){\n\t\t\tSystem.out.print(\"Bucket \");\n\t\t\tfor(int num: n.bucket){\n\n\t\t\t\tSystem.out.print(num + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//Display array\n\n\t\tSystem.out.println();\n\t\tfor(int n: array){\n\t\t\tSystem.out.print(n + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t}", "title": "" }, { "docid": "ed32be4117cd86c9301c61f76dfd9488", "score": "0.49051064", "text": "public static void main(String[] args) {\n\t\tint n = in.nextInt();\n long k = in.nextInt();\n \n long[] arr = new long[n];\n for(int i = 0;i<n;i++){\n arr[i]=in.nextLong();\n }\n\t\tlong[] a1 = new long[n];\n long[] a2 = new long[n];\n for(int i = 0;i<n;i++){\n a1[i] = arr[i]+k;\n a2[i] = arr[i]-k;\n }\n Arrays.sort(a1);\n Arrays.sort(a2);\n long ans1 = a1[n-1]-a2[0];\n long ans2 = a2[n-1]-a2[0];\n long ans3 = a2[n-1]-a1[0];\n \n long a = Math.min(ans3,Math.min(ans1,ans1));\n \n System.out.println(a);\n\t}", "title": "" }, { "docid": "359b50587b1c628dc34b649e53625c5f", "score": "0.4903507", "text": "public static void main(String[] args) {\n\t\t Scanner scn = new Scanner(System.in);\n\t\t int N = scn.nextInt();\n\t\t // 55 is the fibonacci of 10,i.e.55 is the 10th fibonacci as 0 is the 0th fibonacci,but total no of fibonacci less than 55 will be 10(write and see) \n\t\t int one=0;\n\t\t int two=1;\n\t\t int three=1;\n\t\t int count =1;\n\t\t while(three<N)\n\t\t { count++;\n\t\t three=one+two;\n\t\t one=two;\n\t\t two=three;\n\t\t }\n\t\t System.out.println(count);\n\t}", "title": "" }, { "docid": "7005ce0add196a03699d891fe03b768f", "score": "0.4897558", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<Integer> ai=new ArrayList<Integer>();\n\t\tint n=sc.nextInt();\n\t\tArrayList<Long> maxai=new ArrayList<>();\n\t\tArrayList<Long> countai=new ArrayList<>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong size=sc.nextLong();\n\t\t\t\n\t\t\tlong max=0;\n\t\t\tlong count=0;\n\t\t\tfor(int j=0;j<size;j++) {\n\t\t\t\tfor(int k=0;k<size;k++) {\n\t\t\t\t\tint temp=j^k;\n\t\t\t\t\tif(temp>max) {\n\t\t\t\t\t\tmax=temp;\n\t\t\t\t\t\tcount=0;\n\t\t\t\t\t}\n\t\t\t\t\tif(temp==max) {\n\t\t\t\t\t\tcount=count+1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\tmaxai.add(max);\n\t\t\tcountai.add(count);\n\t\t}\n\t\tfor(int i=0;i<maxai.size();i++) {\n\t\t\tSystem.out.println(maxai.get(i)+\" \"+countai.get(i));\n\t\t}\n\t}", "title": "" }, { "docid": "1be247a02a1589c455ec5150a26baa85", "score": "0.4896373", "text": "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt(); // choco size\n int s = in.nextInt(); // num of students\n\n ChocoBar chocoBars[] = new ChocoBar[n];\n chocoBars[0] = new ChocoBar(0, 1);\n for (int i = 1; i < n - 1; i++)\n chocoBars[i] = new ChocoBar(i - 1, i + 1);\n chocoBars[n - 1] = new ChocoBar(n - 1, n);\n\n for (int a0 = 0; a0 < s; a0++) { // student sequence\n int l = in.nextInt(); // from\n int r = in.nextInt(); // to\n\n // lef closest available block\n ChocoBar chocoBarLeft = chocoBars[l];\n int left = chocoBarLeft.left;\n int sweetness = left;\n\n // student takes blocks\n int k = l - 1;\n sweetness += (r * (r + 1) / 2 - k * (k + 1) / 2);\n\n // right closest available\n ChocoBar chocoBarRight = chocoBars[r];\n sweetness += chocoBarRight.right;\n\n if (left - 1 > 0 && chocoBarRight.right + 1 < chocoBars.length) {\n chocoBars[chocoBarRight.right + 1].left = left - 1;\n chocoBars[left - 1].right = chocoBarRight.right + 1;\n }\n\n System.out.println(sweetness);\n }\n in.close();\n }", "title": "" }, { "docid": "cdc956d34ba3ad92841a7e0f563bddb8", "score": "0.4895076", "text": "public int minDays2(int n) {\n Queue<Integer> q = new LinkedList<>();\n q.offer(n);\n int res = 0;\n Set<Integer> set = new HashSet<>();\n while (!q.isEmpty()) {\n res++;\n int size = q.size();\n for (int i = 0; i < size; i++) {\n int cur = q.poll();\n if (cur == 0) {\n return res - 1;\n }\n\n if (set.contains(cur)) {\n continue;\n } else {\n set.add(cur);\n }\n\n if (cur % 3 == 0) {\n q.offer(cur / 3);\n }\n if (cur % 2 == 0) {\n q.offer(cur / 2);\n }\n q.offer(cur - 1);\n }\n }\n\n return res;\n\n }", "title": "" }, { "docid": "fe49c0b6154977d369e7734e5d8c4ed7", "score": "0.48916912", "text": "List<Recipe> findBynumberOfPeople(Integer numberOfPeople);", "title": "" }, { "docid": "b3f48900b8fd5b119bf8763046d41555", "score": "0.48897153", "text": "private int calcuateGrowthForecast() {\n\t\treturn 9;\n\t}", "title": "" }, { "docid": "60f41bf319313802de47996e6f137c23", "score": "0.4888185", "text": "static int stat(int n,int k,int m){\n\t/* On prend une pièce equilibrée */\n \tint nbBonnePartie = 0 ; \n \tfor(int i=1; i<=m ; i++){\n \t\tint nbCotePile = sequence(n);\n \t\tif(nbCotePile <= k){\n \t\t\tnbBonnePartie ++;\n \t\t}\n \t}\n \treturn nbBonnePartie;\n }", "title": "" }, { "docid": "e03ba8860278fc2bdffefac7f921495f", "score": "0.48864344", "text": "public static void main(String[] args) {\n\t\tfor(int n = 1; n <= 40; n++) {\n\t\t\tD = new long[n+1];\n\t\t\tlong answer = compute(n);\n\n\t\t\tSystem.out.println(String.format(\n\t\t\t \"D[%d] = %d\", n, answer));\n\t\t}\n\t}", "title": "" }, { "docid": "e1d6dd05b99c9bf8c171d3ce24b307ab", "score": "0.48849055", "text": "public static int getMoneyAmount(int n) {\n if(n < 2) return 0;\n int[][] dp = new int[n+1][n+1];\n for(int i = 1; i < n; i++){\n dp[i][i+1] = i;\n }\n for(int i = n-1; i >= 1; i--){\n for(int j = i+1; j <= n; j++){\n for(int k = i+1; k < j; k++){\n int tmp = k + Math.max(dp[i][k-1], dp[k+1][j]);\n dp[i][j] = k == i+1 ? tmp : Math.min(dp[i][j], tmp);\n }\n }\n }\n return dp[1][n];\n }", "title": "" }, { "docid": "fbaa20b29a93e79abc6efcb9a6e63322", "score": "0.48832762", "text": "public static void main(String[] args){\n int N=1000000000;\n int j= (int) Math.sqrt(N);\n // System.out.println(j);\n \n int x=j*(j+1)/2;\n int k=j+1;\n \n while(true)\n {\n x=x+k;\n \n if(x>N)\n {\n \n break;\n }\n \n k++;\n \n }\n k=k-1;\n System.out.println(k);\n // return k;\n \n \n \n \n \n }", "title": "" }, { "docid": "7e19fd60d22ebd53875f8423e2a7d65d", "score": "0.4880264", "text": "static int uglyNumber(int n) \n{ \n\t// To store ugly numbers \n\tint []ugly = new int[n]; \n\tint i2 = 0, i3 = 0, i5 = 0; \n\tint next_multiple_of_2 = 2; \n\tint next_multiple_of_3 = 3; \n\tint next_multiple_of_5 = 5; \n\tint next_ugly_no = 1; \n\n\tugly[0] = 1; \n\tfor (int i = 1; i < n; i++) \n\t{ \n\t\tnext_ugly_no = Math.min(next_multiple_of_2, \n\t\t\t\t\tMath.min(next_multiple_of_3, \n\t\t\t\t\t\t\t\tnext_multiple_of_5)); \n\t\tugly[i] = next_ugly_no; \n\t\tif (next_ugly_no == next_multiple_of_2) \n\t\t{ \n\t\t\ti2 = i2 + 1; \n\t\t\tnext_multiple_of_2 = ugly[i2] * 2; \n\t\t} \n\t\tif (next_ugly_no == next_multiple_of_3) \n\t\t{ \n\t\t\ti3 = i3 + 1; \n\t\t\tnext_multiple_of_3 = ugly[i3] * 3; \n\t\t} \n\t\tif (next_ugly_no == next_multiple_of_5) \n\t\t{ \n\t\t\ti5 = i5 + 1; \n\t\t\tnext_multiple_of_5 = ugly[i5] * 5; \n\t\t} \n\t} \n\treturn next_ugly_no; \n}", "title": "" }, { "docid": "085ac2d44134015bad35906db07005a1", "score": "0.4879679", "text": "private int buildDeck() {\n\t\t\n\t\tfor(int i=0;i<52;i++) {\n\t\t\tCard newcard = new Card(suits[i/13],ranks[i%13]);\n\t\t\tdeck.add(newcard);\n\t\t}\n\t\t\n\t\tHashSet<Object> hashSet = new HashSet<>(deck);\n\t\t\n\t\tif(hashSet.size()==deck.size()) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "ed7529da8c837e9a180a917c0f8115e7", "score": "0.48784837", "text": "public static void main(String[] args) {\n\n System.out.println(\"od 1 do 1000 \" + countPrimes(1,1000)+ \" liczb pierwszych\");\n\n System.out.println(\"od 1001 do 2000 \" + countPrimes(1001,2000)+ \" liczb pierwszych\");\n System.out.println(\"od 2001 do 3000 \" + countPrimes(2001,3000)+ \" liczb pierwszych\");\n System.out.println(\"od 3001 do 4000 \" + countPrimes(3001,4000)+ \" liczb pierwszych\");\n System.out.println(\"od 4001 do 5000 \" + countPrimes(4001,5000)+ \" liczb pierwszych\");\n\n int n = 10;\n int rangeSize = 10_000;\n for (int i = 0; i < n ; i++) {\n int begin = rangeSize*i +1;\n int end = rangeSize *(i +1);\n System.out.println(\"From \" + begin + \" to \" + end + \" is \" + countPrimes(begin,end) +\" primes number\");\n }\n\n\n }", "title": "" }, { "docid": "0fa118db5910fceb18e38baf0cda518e", "score": "0.4876128", "text": "public int getMaxTotal() {\r\n int total = 0;\r\n int numOfAces = 0;\r\n for(Card c : cards) {\r\n if(c.getFace() != Card.Face.ACE) {\r\n total += getCardValue(c);\r\n } else {\r\n ++numOfAces;\r\n }\r\n }\r\n\r\n // Calculate the aces that count as either 1 or 11\r\n int max = 21 - total;\r\n int elevenAces = numOfAces;\r\n for(; (numOfAces - elevenAces) + elevenAces*11 > max; --elevenAces);\r\n\r\n return total + (numOfAces - elevenAces) + elevenAces*11;\r\n }", "title": "" }, { "docid": "de04f2891697885d12f4a8c031b62014", "score": "0.48731256", "text": "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint tc = Integer.parseInt(br.readLine().trim());\n\t\tfor(int t=1;t<=tc;t++) {\n\t\t\tn = Integer.parseInt(br.readLine().trim());\n\t\t\tsticker = new int[n+1][2];\n\t\t\td = new int[n+1][3];\n\t\t\tline = br.readLine().split(\" \");\n\t\t\tfor(int i=1;i<=n;i++) {\n\t\t\t\tsticker[i][0] = Integer.parseInt(line[i-1]);\n\t\t\t}\n\t\t\tline = br.readLine().split(\" \");\n\t\t\tfor(int i=1;i<=n;i++) {\n\t\t\t\tsticker[i][1] = Integer.parseInt(line[i-1]);\n\t\t\t}\n\t\t\t//\n\t\t\tfor(int i=1;i<=n;i++) {\n\t\t\t\td[i][0] = Math.max(d[i-1][1], d[i-1][2]) + sticker[i][0];\n\t\t\t\td[i][1] = Math.max(d[i-1][0], d[i-1][2]) + sticker[i][1];\n\t\t\t\td[i][2] = Math.max(Math.max(d[i-1][0], d[i-1][1]), d[i-1][2]);\n\t\t\t}\n\t\t\tint ans = Math.max(Math.max(d[n][0], d[n][1]), d[n][2]);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "title": "" }, { "docid": "b91a0edeeff6426c7d304d5b98d1a3dc", "score": "0.48719662", "text": "static int getCatalan(int n){\n\t\tint k = n/2;\n\t\tif(k > n-k){\n\t\t\tk = n-k;\n\t\t}\n\t\tint res = 1;\n\t\tfor(int i=0;i<k;i++){\n\t\t\tres *= (n-i);\n\t\t\tres /= (i+1);\n\t\t}\n\t\treturn res/(n/2+1);\n\t}", "title": "" }, { "docid": "5e24bfe7b28c0e07d8f2a82e9290f0d8", "score": "0.487059", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList <Integer> flowerPriceList = new ArrayList<Integer>();\n int numFlowers = sc.nextInt();\n int numFriends = sc.nextInt();\n for(int i = 0; i<numFlowers;i++){\n flowerPriceList.add(sc.nextInt());\n }\n\t\t// Sort the ArrayList in reverse order to start bying flowers from most expensive\n Collections.sort(flowerPriceList,Collections.reverseOrder());\n int flowersBought = 0;\n int friendNum = 0;\n int total = 0;\n for(int price:flowerPriceList){\n\t\t\t//itterate throught all the flower prices and calculate the total\n total +=(flowersBought+1)*price;\n friendNum++;\n if(friendNum == numFriends){\n\t\t\t\t//if all friends bought flowers reset the friend counter and restart the cycle\n friendNum = 0;\n flowersBought++;\n }\n }\n System.out.println(total);\n }", "title": "" }, { "docid": "80b3132550f76fc627e877e95c132c2e", "score": "0.48593137", "text": "public int getNumBirdsPlaced() { return birds.size(); }", "title": "" }, { "docid": "5ad3da67b3e8adc6984df79252d913e6", "score": "0.4858934", "text": "public static int whoIsElected(int n, int k) {\n // todo: implement here\n int[] a= new int[n];\n for(int i=1;i<=n;i++)\n a[i-1]=i;\n\n int index=0;\n while(n>1){\n index= ((index+k)-1)%n;\n for(int j=index; j<n-1;j++){\n if(j+1==n)\n break;\n a[j]=a[j+1];\n }\n n--;\n }\n System.out.println(\"-->\"+a[0]);\n return a[0];\n }", "title": "" }, { "docid": "99b9c8445c29e8d2cada795cce65d109", "score": "0.48547775", "text": "static int budgetShopping(int n, int[] bundleQuantities, int[] bundleCosts) {\n\tint maxAmt = n;\n\tint maxBooks = 0;\n\n\tint currQty = 0;\n\tint currCost = 0;\n\tint currBooks = 0;\n\tfor (int i = 0; i < bundleQuantities.length; i++) {\n\t currQty = bundleQuantities[i];\n\t currCost = bundleCosts[i];\n\t if (n % currCost < maxAmt) {\n\t\tcurrBooks = (n / currCost) * currQty;\n\t\tif (currBooks > maxBooks) {\n\t\t maxBooks = currBooks;\n\t\t}\n\t }\n\t}\n\treturn maxBooks;\n }", "title": "" }, { "docid": "ce2d0e3acba10f848ef5b849086e333a", "score": "0.48505852", "text": "public int askTiqs(int howMany, Clock clock){\n \n int count=0;\n for(int i=0;i<howMany;++i){\n \n count=clock.getClockTick();\n }\n \n return count;\n }", "title": "" } ]
1bf89447b80ec86ff401a389c9f91f7d
/ access modifiers changed from: protected
[ { "docid": "34c4538feb394a3926d2c1e8511efaec", "score": "0.0", "text": "public void subscribeActual(final CompletableObserver s) {\n this.source.subscribe(new CompletableObserver() {\n /* class dji.thirdparty.io.reactivex.internal.operators.completable.CompletablePeek.AnonymousClass1 */\n\n public void onComplete() {\n try {\n CompletablePeek.this.onComplete.run();\n CompletablePeek.this.onTerminate.run();\n s.onComplete();\n doAfter();\n } catch (Throwable e) {\n Exceptions.throwIfFatal(e);\n s.onError(e);\n }\n }\n\n public void onError(Throwable e) {\n try {\n CompletablePeek.this.onError.accept(e);\n CompletablePeek.this.onTerminate.run();\n } catch (Throwable ex) {\n Exceptions.throwIfFatal(ex);\n e = new CompositeException(e, ex);\n }\n s.onError(e);\n doAfter();\n }\n\n public void onSubscribe(final Disposable d) {\n try {\n CompletablePeek.this.onSubscribe.accept(d);\n s.onSubscribe(Disposables.fromRunnable(new Runnable() {\n /* class dji.thirdparty.io.reactivex.internal.operators.completable.CompletablePeek.AnonymousClass1.AnonymousClass1 */\n\n public void run() {\n try {\n CompletablePeek.this.onDispose.run();\n } catch (Throwable e) {\n Exceptions.throwIfFatal(e);\n RxJavaPlugins.onError(e);\n }\n d.dispose();\n }\n }));\n } catch (Throwable ex) {\n Exceptions.throwIfFatal(ex);\n d.dispose();\n EmptyDisposable.error(ex, s);\n }\n }\n\n /* access modifiers changed from: package-private */\n public void doAfter() {\n try {\n CompletablePeek.this.onAfterTerminate.run();\n } catch (Throwable ex) {\n Exceptions.throwIfFatal(ex);\n RxJavaPlugins.onError(ex);\n }\n }\n });\n }", "title": "" } ]
[ { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.7004436", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6881562", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6733893", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "0c9a671bc5d5d5d4ac8cef41f8584cd4", "score": "0.66747963", "text": "private void combustible(){\n }", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.6656223", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.6616407", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6609077", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.65411127", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "9ac044e4cfea7cf27e6cfa2228a83588", "score": "0.65082693", "text": "public abstract void mo4741aD();", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.65026665", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "c51225498a6fc814478a1ac3d94d3e00", "score": "0.64623076", "text": "private void method_3829() {\r\n super();\r\n }", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6449461", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.6445718", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cedbebf11d27c2dae772141acaf870df", "score": "0.64393365", "text": "private void method_3728() {\r\n super();\r\n }", "title": "" }, { "docid": "0b54567211035ff78f6d8b8cd7808016", "score": "0.6410838", "text": "private Methods() {\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.63599837", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.63416106", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.6327005", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.6324575", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "eb42ad591b603bc73d6780d13981b90d", "score": "0.6301183", "text": "private CatalogReaderAccess() {\n\t}", "title": "" }, { "docid": "083f643ca300aa9160bd6e23caeb13da", "score": "0.627676", "text": "@Override\n\tpublic void embarcar() {\n\n\t}", "title": "" }, { "docid": "af1adf614eadb1a9afa77804d2ed4e42", "score": "0.62746066", "text": "@Override\r\n\tpublic void sub() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdc4ef2b5e906714a82a75f33f832724", "score": "0.6268596", "text": "@Override\n\tpublic void cheer() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6263023", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6262852", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "73b8b8eec1e17eae8b8035336277ea1b", "score": "0.62413436", "text": "@Override\n\tpublic void sub() {\n\t\t\n\t}", "title": "" }, { "docid": "8fb6f70fd376004aa86400a44bb8dae7", "score": "0.62313604", "text": "@Override\r\n\tvoid dibujar() {\n\r\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.6229458", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "47db28280f8e4a282d65a28016cf1185", "score": "0.62279266", "text": "public abstract void mo131149d();", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.62210995", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "99edd4e3b4a1e74ee38567b94d3dbd3d", "score": "0.62090945", "text": "@Override // com.baidu.mobads.production.AbstractC2493a\n /* renamed from: d */\n public void mo20055d() {\n }", "title": "" }, { "docid": "01084478d2aaee960e0f17c9424b4491", "score": "0.6204694", "text": "@Override\n\t\t\tpublic void a() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.61957127", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.619354", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "bdb3c3f50df9e5b7e4195b700c5e12e0", "score": "0.61907464", "text": "public abstract void mo1626d();", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.6184823", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "36c3ed9624887f59492ae385d7df9b95", "score": "0.6170371", "text": "private Manche(){\n\t\tsuper();\n\t}", "title": "" }, { "docid": "ec65747f9bc49d9729d8cd9d959dd4eb", "score": "0.6163698", "text": "@Override\n\tpublic void specialDoing() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.61617017", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "b39a7a767faaa619bf330f5ce3780eb5", "score": "0.6140396", "text": "@Override\r\n\tpublic void buscar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29f7ab8769a3b88dc7f03c11eff6146e", "score": "0.61365587", "text": "@Override\n protected void readImpl() {\n }", "title": "" }, { "docid": "19b3e42a0d7a8b781dc08a451430f973", "score": "0.61209", "text": "public void method_9554() {\r\n super();\r\n }", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.61102134", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "da6d5893e6e1b9f16f6943da24f47288", "score": "0.6096935", "text": "@Override\r\n\t\t\tpublic void inMethod() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.6090108", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.6089586", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86873ab379d889d031cbc486bf7ee4a4", "score": "0.60703486", "text": "private void cierrecontable(){\n }", "title": "" }, { "docid": "2a550f8458794d16824f204804d00e1c", "score": "0.6066639", "text": "@Override\n public void visitClassContext(ClassContext classContext) {\n }", "title": "" }, { "docid": "04406d4ba9e4f0a873ba42c460640d7b", "score": "0.60572696", "text": "private Conversion() {\n\t\t// Nothing to do\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.60538375", "text": "protected void init() {}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.60538375", "text": "protected void init() {}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.60519016", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9b8bff01309bc941d59b284fda4a097c", "score": "0.6049644", "text": "@Override\r\n\t\tpublic void protect() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.6046094", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "9f789add365a4d92ff33638a80fdf063", "score": "0.6039184", "text": "protected void carBack() {\n\n\t}", "title": "" }, { "docid": "5178d61c88699ad13f78cb117955c3a5", "score": "0.60373116", "text": "@Override\n\tpublic void sing2() {\n\t\t\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.60343075", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d370a9943b8e2259c9e3e0d231de95d", "score": "0.60338914", "text": "public abstract void dibujar();", "title": "" }, { "docid": "d346e8c329fedfb15f1ec5170c497e0f", "score": "0.6018888", "text": "protected void init() {\n \t}", "title": "" }, { "docid": "9490d7b915bd1185fbfb38a6968f0217", "score": "0.60154855", "text": "public void getsalary() {\n\t\t\t\tSystem.out.println(\"overridden method getsalary()\");\n\t\t\t}", "title": "" }, { "docid": "7a75aac081b1c9341a1cabd9e7ca7bdf", "score": "0.6007454", "text": "@Override\n public int getModifiers() {\n return 1;\n }", "title": "" }, { "docid": "36e3d999f0a64b90e6ffd4338ec3e383", "score": "0.600509", "text": "public void method_8142() {\r\n super();\r\n }", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5997991", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "56f31c4e44948c101e20720bc677fd6c", "score": "0.59957165", "text": "@Override\n\tpublic void Buscar() {\n\t\t\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.59918505", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.59749186", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "485cd8808f9184d783b86c07fdb7191f", "score": "0.59745246", "text": "private I000091(){\r\n\t\r\n\t}", "title": "" }, { "docid": "92f9e4b4155fb0727a4a89b2a5fc74e0", "score": "0.59742504", "text": "public abstract void mo1627e();", "title": "" }, { "docid": "4a365ed88d1124dd307aa9cf6fab2c17", "score": "0.5973933", "text": "public abstract void mo37691e();", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5970353", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "3988c8e9cb4fc7ffeafdf51358afc77f", "score": "0.5969868", "text": "protected abstract Object getTestObject();", "title": "" }, { "docid": "4f273ae9f3e4c6b384dcd4c43325ebdf", "score": "0.59673816", "text": "private AclTransformation() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.5963384", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.59616375", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abd0bfc29e4d2a51f46ce3311f857b50", "score": "0.5960965", "text": "@Override\npublic void cafeteria() {\n\t\n}", "title": "" }, { "docid": "7f99df009e43709ac8aaed6198d8cc5e", "score": "0.5957423", "text": "public abstract void mo37681a();", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5948107", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "357c93acebff5fb9aaa93ecafc141112", "score": "0.59459627", "text": "public abstract void deplacerPersonnage();", "title": "" }, { "docid": "278770d3faa6f9997df871559b735807", "score": "0.59431934", "text": "public abstract void mo23871k();", "title": "" }, { "docid": "702057af1e4f459d1a47603bdcebdf34", "score": "0.59421", "text": "public NotProtectedControl() {\n }", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.5929475", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.5927919", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "94eea42405a03238c5c952f64b6941e0", "score": "0.5927596", "text": "private Base(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a0fb1b7eb35ce3f0bc9779dabd4aeb26", "score": "0.5927247", "text": "private BaseUtils() {}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.592709", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "d50c2e3543e584680a0a7842e005c6cd", "score": "0.5923461", "text": "private Examiner() {\r\n\t}", "title": "" }, { "docid": "6941e7d39c3ffe6c8c8c8b983e3e9234", "score": "0.591341", "text": "@Override\n void init() {\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.59126604", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.58974683", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.58924127", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.58924127", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5889856", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "35a5baa75906e681596a6db630b9374d", "score": "0.58863306", "text": "@Override\n\t\t\tpublic void b() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "83f62a4165d3a7756990f2cc550c6327", "score": "0.58793646", "text": "abstract protected String initializeThis();", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.587659", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8bfea442d9df43a8639213bfc6653f88", "score": "0.5876419", "text": "@Override\n\tpublic void test4() {\n\t\t\n\t}", "title": "" } ]
eb95bdbdb2a26bd20e94e612c577eb80
Divides the file into multiple file each containing the number of files defined in the parameter.
[ { "docid": "f0f6c7f2dfbcd85b414a2f2c0ee4e814", "score": "0.5128523", "text": "public void split(String inFilename, int maxLineCount, String outFilename) {\n\t\tArrayList<String> lines = null;\n\t\ttry {\n\t\t\tlines = readFileToVector(inFilename);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tStringBuffer str = new StringBuffer();\n\t\tint lineCount = 0;\n\t\tint fileInd = 1;\n\t\tfor(String line : lines) {\n\t\t\tif(line.length() > 0) {\n\t\t\t\tstr.append(line + \"\\n\");\n\t\t\t\tlineCount++;\n\t\t\t\tif(lineCount == maxLineCount) {\n\t\t\t\t\tString filename = outFilename + \"_\" + fileInd++ + \".txt\";\n\t\t\t\t\twriteToFile(filename, str.toString());\n\t\t\t\t\tlineCount = 0;\t\t\t\t\t\n\t\t\t\t\tstr = new StringBuffer();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString filename = outFilename + \"_\" + fileInd++ + \".txt\";\n\t\twriteToFile(filename, str.toString());\n\t}", "title": "" } ]
[ { "docid": "7f031052291070c9bd2013111a82bdb4", "score": "0.71684265", "text": "public static void FileSplitS() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t\n\t\t try{ \n\t\t\t \n\t\t\t File dir = new File(FileStore.filePath+\"/\");\n\t\t\t\tString[] extensions = new String[] { \"queries\" };\n\t\t\t\t//System.out.println(\"Getting all .txt and .jsp files in \" + dir.getCanonicalPath()\n\t\t\t\t\t//\t+ \" including those in subdirectories\");\n\t\t\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, extensions, true);\n\t\t\t\tfor (File file : files) {\n\t\t\t\t\t//System.out.println(\"file: \" + file.getCanonicalPath());\n\t\t\t\t\t\n\t\t\t\t\tString fnamespath=file.getCanonicalPath();\n\t\t\t\t\tString filename=file.getName();\n\t\t\t\t\tRealSplit(fnamespath,filename);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t /*\n\t\t\t // Reading file and getting no. of files to be generated \n\t\t\t String inputfile = file.getName();// Source File Name. \n\t\t\t System.out.println(inputfile);\n\t\t\t double nol = 3.0; // No. of lines to be split and saved in each output file. \n\t\t\t File Infile = new File(inputfile); \n\t\t\t Scanner scanner = new Scanner(Infile); \n\t\t\t int count = 0; \n\t\t\t while (scanner.hasNextLine()) \n\t\t\t { \n\t\t\t scanner.nextLine(); \n\t\t\t count++; \n\t\t\t } \n\t\t\t System.out.println(\"Lines in the file: \" + count); // Displays no. of lines in the input file. \n\n\t\t\t double temp = (count/nol); \n\t\t\t int temp1=(int)temp; \n\t\t\t int nof=0; \n\t\t\t if(temp1==temp) \n\t\t\t { \n\t\t\t nof=temp1; \n\t\t\t } \n\t\t\t else \n\t\t\t { \n\t\t\t nof=temp1+1; \n\t\t\t } \n\t\t\t System.out.println(\"No. of files to be generated :\"+nof); \n\t\t\t\t// Displays no. of files to be generated. \n\n\t\t\t //-----------------------------------------------------------------------\n\n\t\n\t\t \n\t\t // Actual splitting of file into smaller files \n\n\t\t FileInputStream fstream = new FileInputStream(inputfile); DataInputStream in = new DataInputStream(fstream); \n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; \n\n\t\t for (int j=1;j<=nof;j++) \n\t\t { \n\t\t FileWriter fstream1 = new FileWriter(\"/katta/CanalIN/\"+\"_\"+j+\".txt\"); // Destination File Location \n\t\t BufferedWriter out = new BufferedWriter(fstream1); \n\t\t for (int i=1;i<=nol;i++) \n\t\t { \n\t\t strLine = br.readLine(); \n\t\t if (strLine!= null) \n\t\t { \n\t\t out.write(strLine); \n\t\t if(i!=nol) \n\t\t { \n\t\t out.newLine(); \n\t\t } \n\t\t } \n\t\t } \n\t\t out.close(); \n\t\t } \n\n\t\t in.close(); \n\t\t */\n\t\t \n\t\t }\n\t\t\t\t\n\t\t catch (Exception e) \n\t\t { \n\t\t System.err.println(\"Error: \" + e.getMessage()); \n\t\t } \n\t\t \n\t\t \n\n\t\t}", "title": "" }, { "docid": "545592c8b59ecb570cbec2924cc5dfe8", "score": "0.68151814", "text": "public static int splitFile(File file) {\n\t\tint numofPartFiles = 1;\n int sizeofPartFiles = 1024 * 100;\n byte[] buffer = new byte[sizeofPartFiles];\n try {\n \tBufferedInputStream bufferedinputstream = new BufferedInputStream(new FileInputStream(file));\n \tString filename = file.getName();\n int num = 0;\n while ((num = bufferedinputstream.read(buffer)) > 0) {\n \tFile newFile = new File(file.getParent(), filename + \".\" + numofPartFiles);\n \tnumofPartFiles++;\n \ttry {\n \t\tFileOutputStream fileoutputstream = new FileOutputStream(newFile);\n \t\tfileoutputstream.write(buffer, 0, num);\n \t} catch(IOException io) {\n \t\tio.printStackTrace();\n \t}\n }\n } catch(IOException io) {\n \tio.printStackTrace();\n }\n return (numofPartFiles-1);\n }", "title": "" }, { "docid": "11782f0040eddeaa15d264b6e64dbeb0", "score": "0.6322379", "text": "private void splitFiles(String inputFolderPath, String outputFolderPath, String rootElement, String splitElement, int sizeInMb) throws ETLGenericException{\n for(File file : new File(inputFolderPath).listFiles()){\n try{\n log.info(\"Split resource with filename \"+file.getName());\n new Splitter(file, rootElement, splitElement, sizeInMb).split(new File(outputFolderPath));\n }catch(IOException | ParserConfigurationException | SAXException | TransformerException | XPathExpressionException ex){\n log.error(\"An error occured while splitting large input file\",ex);\n throw new ETLGenericException(\"An error occured while splitting large input file\",ex);\n }\n }\n }", "title": "" }, { "docid": "47641d99a4e37637542a276da8d1186d", "score": "0.5944121", "text": "public static void readFiles() {\r\n\t\t\r\n\t\t// for loop is initialized at 8 and is multiplied by two successively \r\n\t\tfor (int i = 8; i < 20000; i = 2*i) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tFileInputStream fstream = new FileInputStream(\"Num\" + i + \".txt\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the input fileName is found, it is passed to the storeToArray method\r\n\t\t\t\tif (i == 8) {\r\n\t\t\t\t\tstoreToArray(fstream, Num8);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 16) {\r\n\t\t\t\t\tstoreToArray(fstream, Num16);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 32) {\r\n\t\t\t\t\tstoreToArray(fstream, Num32);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 64) {\r\n\t\t\t\t\tstoreToArray(fstream, Num64);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 128) {\r\n\t\t\t\t\tstoreToArray(fstream, Num128);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 256) {\r\n\t\t\t\t\tstoreToArray(fstream, Num256);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 512) {\r\n\t\t\t\t\tstoreToArray(fstream, Num512);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 1024) {\r\n\t\t\t\t\tstoreToArray(fstream, Num1024);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 2048) {\r\n\t\t\t\t\tstoreToArray(fstream, Num2048);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 4096) {\r\n\t\t\t\t\tstoreToArray(fstream, Num4096);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 8192) {\r\n\t\t\t\t\tstoreToArray(fstream, Num8192);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (i == 16384) {\r\n\t\t\t\t\tstoreToArray(fstream, Num16384);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t} // end of for loop\r\n\t\t\r\n\t}", "title": "" }, { "docid": "51cde3dcc3a5d7f6feb45092759a6851", "score": "0.5680663", "text": "public static List<String> splitLargeFile(String file) {\n List<String> filesToMap = new ArrayList<String>();\n File inputFile = new File(file);\n FileInputStream inputStream;\n FileOutputStream filePart;\n long fileSize = inputFile.length();\n int nbFile = 0;\n int read = 0;\n int readLength = Constant.BLOC_SIZE_MIN;\n byte[] byteChunkPart;\n\n try {\n inputStream = new FileInputStream(inputFile);\n\n while (fileSize > 0) {\n if (Constant.BLOC_SIZE_MIN > fileSize) {\n readLength = (int) fileSize;\n }\n\n byteChunkPart = new byte[readLength];\n read = inputStream.read(byteChunkPart, 0, readLength);\n fileSize -= read;\n assert (read == byteChunkPart.length);\n\n nbFile++;\n String fileToMap = Constant.PATH_F_SPLITING + nbFile;\n filePart = new FileOutputStream(new File(fileToMap));\n filesToMap.add(fileToMap);\n filePart.write(byteChunkPart);\n filePart.flush();\n filePart.close();\n byteChunkPart = null;\n filePart = null;\n }\n\n inputStream.close();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return filesToMap;\n }", "title": "" }, { "docid": "b791e609c9cd4c8bdf1db095f23d198f", "score": "0.56648684", "text": "public void split(File file) throws IOException {\n FileInputStream fi = new FileInputStream(file);\n BufferedInputStream bi = new BufferedInputStream(fi);\n\n int chunkNum = (int) file.length() / 10240 + 1;\n int chunkSize = 1024 * 10;\n int readCnt;\n\n fileChunks = new byte[chunkNum][];\n byte[] tempBuffer = new byte[chunkSize];\n\n for (int i = 0; i < fileChunks.length; i++) {\n readCnt = bi.read(tempBuffer, 0, chunkSize);\n fileChunks[i] = new byte[readCnt];\n fileChunks[i] = Arrays.copyOf(tempBuffer, readCnt);\n chunkMap += '1';\n }\n\n bi.close();\n fi.close();\n }", "title": "" }, { "docid": "f298f0b1c70e53b7d70737190a4e9c50", "score": "0.5585939", "text": "protected abstract void calculateChunksToGenerate();", "title": "" }, { "docid": "b76489b791ace857f41a3876e5ad3b1c", "score": "0.55749875", "text": "List<File> mo43282a(int i);", "title": "" }, { "docid": "4ae9fe6f6595c9731d70b97a3bfe82b1", "score": "0.552747", "text": "public void gen() { \n \t\n\t\tString[] fnames = new String[101];\n\t\t\n\t\tFile dir = new File(\"WordDocs/\");\n\t\tFile[] files = dir.listFiles();\n\t\t\n\t\tint counter = 0;\n\t\t\n\t\t//reading all the files from the splits folder\n\t\tfor ( File f : files) {\n\t\t\t\n\t\t\tfnames[counter++] = f.getName();\n\t\t}\n\t\t\n\t\tint N = fnames.length; \n \n In[] streams = new In[N]; \n \n for (int i = 0; i < N; i++) {\n streams[i] = new In(fnames[i]); \n System.out.println(fnames[i]);\n }\n \n merge(streams); \n }", "title": "" }, { "docid": "5f35b1ecffc85be6d0bc4a77911cb321", "score": "0.5515657", "text": "private void createDataFiles() throws BlockingException {\n\t\ttry {\n\t\t\t// list of rows files to handle. The rows files is already sorted.\n\t\t\tIChunkRecordIdSource[] crSources =\n\t\t\t\tnew IChunkRecordIdSource[numChunks];\n\n\t\t\t// record sinks for the stage file we are handling, one per chunk\n\t\t\tRecordSink[] stageRecordSinks = new RecordSink[numChunks];\n\n\t\t\t// record sinks for the master file we are handling, one per chunk\n\t\t\tRecordSink[] masterRecordSinks = new RecordSink[numChunks];\n\n\t\t\t// the current record id of the chunk file\n\t\t\tlong[] ind = new long[numChunks];\n\n\t\t\t// set up\n\t\t\tfor (int i = 0; i < numChunks; i++) {\n\t\t\t\tIChunkRecordIdSink recSink =\n\t\t\t\t\t(IChunkRecordIdSink) recIDSinks.get(i);\n\n\t\t\t\t// read in rows file.\n\t\t\t\tcrSources[i] = recIDFactory.getSource(recSink);\n\n\t\t\t\tstageRecordSinks[i] = stageSinkFactory.getNextSink();\n\n\t\t\t\tmasterRecordSinks[i] = masterSinkFactory.getNextSink();\n\t\t\t} // end for\n\n\t\t\tint start = 0;\n\t\t\tint end = maxFiles;\n\n\t\t\tif (numChunks <= maxFiles) {\n\t\t\t\tend = numChunks;\n\t\t\t\tcreateDataFiles(start, end, crSources, stageRecordSinks, 0,\n\t\t\t\t\t\tind, stage, model);\n\n\t\t\t\tif (master != null) {\n\t\t\t\t\tcreateDataFiles(start, end, crSources, masterRecordSinks,\n\t\t\t\t\t\t\tsplitIndex, ind, master, model);\n\t\t\t\t} else {\n\t\t\t\t\topenMaster(masterRecordSinks);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\twhile (start < numChunks) {\n\t\t\t\t\tcreateDataFiles(start, end, crSources, stageRecordSinks, 0,\n\t\t\t\t\t\t\tind, stage, model);\n\n\t\t\t\t\tif (master != null) {\n\t\t\t\t\t\tcreateDataFiles(start, end, crSources,\n\t\t\t\t\t\t\t\tmasterRecordSinks, splitIndex, ind, master,\n\t\t\t\t\t\t\t\tmodel);\n\t\t\t\t\t} else {\n\t\t\t\t\t\topenMaster(masterRecordSinks);\n\t\t\t\t\t}\n\n\t\t\t\t\tstart = end;\n\t\t\t\t\tend = end + maxFiles;\n\t\t\t\t\tif (end > numChunks)\n\t\t\t\t\t\tend = numChunks;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!stop) {\n\t\t\t\tString temp =\n\t\t\t\t\tInteger.toString(numChunks) + DELIM\n\t\t\t\t\t\t\t+ Integer.toString(numRegularChunks);\n\t\t\t\tstatus.setCurrentProcessingEvent(OabaProcessingEvent.DONE_CREATE_CHUNK_DATA,\n\t\t\t\t\t\ttemp);\n\n\t\t\t\tif (!keepFiles) {\n\t\t\t\t\t// remove all the chunk record id files\n\t\t\t\t\tfor (int i = 0; i < numChunks; i++) {\n\t\t\t\t\t\tIChunkRecordIdSink recIDSink =\n\t\t\t\t\t\t\t(IChunkRecordIdSink) recIDSinks.get(i);\n\t\t\t\t\t\trecIDSink.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trecIDSinks = null;\n\t\t\t}\n\n\t\t} catch (IOException ex) {\n\t\t\tthrow new BlockingException(ex.toString());\n\t\t}\n\n\t}", "title": "" }, { "docid": "b6c8775c859e748b08f0ef89e269027f", "score": "0.5493853", "text": "public static void makeFiles(int size_) {\n\t\t// makes files \n\t\tfor(int i=0; i<size_; i++){\n\t\t\t// making qwerty\n\t\t\tif (files[i].endsWith(\".kb\")){\n\t\t\t\tqwerty = new File(files[i]);\n\t\t\t}\n\t\t\t// making wordlist\n\t\t\tif(files[i].endsWith(\".wl\")){\n\t\t\t\twordlist = new File(files[i]);\n\t\t\t}\n\t\t\t// making textFile\n\t\t\tif(files[i].endsWith(\".txt\")){\n\t\t\t\ttextFile = new File(files[i]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "402959aeda4629b19f1a0a18170d6eaa", "score": "0.5491714", "text": "public static void calculateChunks() throws IOException {\n int fileSize = commonConfigData.getFileSize(), chunkSize = commonConfigData.getChunkSize();\n\n double chunks = fileSize * 1.0 / chunkSize;\n int roundOffChunks = (int) (Math.ceil(chunks));\n currentFileChunks = initializeFileChunks(roundOffChunks);\n\n // Will signify number of chuncks currently received in the file.\n int[] chunkMarker = new int[roundOffChunks];\n\n // Check if this peer, already has a file.\n boolean isCompleted = currentNode.hasFile();\n if (!isCompleted) {\n for (int i = 0; i < chunkMarker.length; i++) {\n chunkMarker[i] = 0;\n }\n currentNode.setChunkMarker(chunkMarker);\n } else {\n peersWithCompleteFiles++;\n // mark all chunks to 1, because we have the entire file.\n for (int i = 0; i < chunkMarker.length; i++) {\n chunkMarker[i] = 1;\n }\n currentNode.setChunkMarker(chunkMarker);\n // main part remaining\n // ----> start from here.\n writeFileChunks();\n\n }\n }", "title": "" }, { "docid": "f2f3159b217e9f4f70edfa6c88925d22", "score": "0.54901415", "text": "@Parameterized.Parameters\n public static Collection<Object[]> testFiles() {\n //!>\n return Arrays.asList(new Object[][] { \n { \"testData_75.dat\", 1 },\n { \"testData_75.dat\", 3 },\n { \"testData_75.dat\", 5 },\n { \"testData_75.dat\", 9 },\n { \"testData_75.dat\", 15 },\n\n { \"testData_125.dat\", 1 },\n { \"testData_125.dat\", 3 },\n { \"testData_125.dat\", 5 },\n { \"testData_125.dat\", 9 },\n { \"testData_125.dat\", 15 },\n\n { \"testData_137.dat\", 1 },\n { \"testData_137.dat\", 3 },\n { \"testData_137.dat\", 5 },\n { \"testData_137.dat\", 9 },\n { \"testData_137.dat\", 15 },\n\n { \"testData_1.dat\", 1 },\n { \"testData_1.dat\", 3 },\n { \"testData_1.dat\", 5 },\n { \"testData_1.dat\", 9 },\n { \"testData_1.dat\", 15 }, });\n //!<\n }", "title": "" }, { "docid": "179816cdb13f19da8a474640c8148291", "score": "0.5482508", "text": "Builder perChunk(VariableAmount count);", "title": "" }, { "docid": "179816cdb13f19da8a474640c8148291", "score": "0.5482508", "text": "Builder perChunk(VariableAmount count);", "title": "" }, { "docid": "f5b2550c10bfe15680dc01bfc707d6e0", "score": "0.54402614", "text": "private void setFileInfo() {\n long maxSizeChunk = 64 * 1000;\n String path = \"./TestFiles/\" + fileName;\n File file = new File(path);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n this.fileId = createHash(fileName + sdf.format(file.lastModified()));\n RandomAccessFile fileRaf;\n try {\n fileRaf = new RandomAccessFile(file, \"r\");\n long fileLength = fileRaf.length();\n this.numberOfChunks = (int) Math.floor(fileLength / maxSizeChunk) + 1;\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Number of chunks: \" + this.numberOfChunks);\n }", "title": "" }, { "docid": "95dc4e2c0f0f824feec17d19b323e6f2", "score": "0.54312825", "text": "@Override\n\tpublic void splitFile(String file) {\n\t\t\n\t}", "title": "" }, { "docid": "5b1aadfe1b2174bf8cd76f02ac6f2760", "score": "0.5415019", "text": "public abstract int getTotalFileIncludedCount(int file);", "title": "" }, { "docid": "9c363329247ce79e5e1f58394f41267e", "score": "0.5410469", "text": "protected abstract void ReadNumbersFromFile(String filename, int N);", "title": "" }, { "docid": "7688915b1b38f4e58b7a3d5670521d94", "score": "0.5404075", "text": "int getFilesCount();", "title": "" }, { "docid": "4b47950ddcf3550a2e75a761e47b19d5", "score": "0.53627294", "text": "public static void main(String[] args) throws IOException {\n\t\tFile file = new File(\"C:\\\\Users\\\\Adriana\\\\Desktop\\\\SoftUni\\\\Advanced - Java\\\\04. Java-Advanced-Streams-Files-and-Directories-Resources\\\\04. Java-Advanced-Files-and-Streams-Lab-Resources\");\r\n\t\t\r\n\t\tArrayDeque<File> queue = new ArrayDeque<>();\r\n\t\tqueue.offer(file);\r\n\t\tint count = 0;\r\n\t\t\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tFile[] files = queue.poll().listFiles();\r\n\t\t\t\r\n\t\t\tfor (File f: files) {\r\n\t\t\t\tif (f.isDirectory()) {\r\n\t\t\t\t\tqueue.offer(f);\r\n\t\t\t\t\tSystem.out.println(f.getName());\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t}", "title": "" }, { "docid": "e1587018ad82dc8804786de6be98e0db", "score": "0.53599095", "text": "public void increaseNumOfChunks(){ numOfChunks++;}", "title": "" }, { "docid": "51ca3a3bcd2ef95eb51a150ee3302ef1", "score": "0.53437996", "text": "private static void inputFileNames(int start, int end){\n while(start <= end){\n FILENAMES.add(FILE_DIR + \"/sf\"+start+\".csv\");\n start++;\n }\n }", "title": "" }, { "docid": "1382f073f073606eb041e733a2ecd49d", "score": "0.5343539", "text": "public WrapperStatus get_num_files(String id, IntByReference numFiles);", "title": "" }, { "docid": "22fc337870b757201092050da80750f7", "score": "0.5331053", "text": "public static void main(String[] args)\r\n {\n Scanner sc = new Scanner(System.in);\r\n \r\n System.out.println(\"Enter a path: \");\r\n String path = sc.nextLine();\r\n \r\n // denote the path using file class\r\n File f = new File(path);\r\n \r\n // take some string variables to store some data\r\n String javaFileNames = \"\", mpegFileNames = \"\", jpegFileNames = \"\",\r\n txtFileNames = \"\";\r\n \r\n // take some int variables to store number of files\r\n int javaFiles = 0, mpegFiles = 0, jpegFiles = 0,\r\n txtFiles = 0;\r\n \r\n // fetch list of all the resources from the path\r\n File[] fa = f.listFiles();\r\n \r\n // fetch data (bole to resources of path) from the array using for loop\r\n for (int i = 0; i < fa.length; i++)\r\n {\r\n // check if resource is a file\r\n // if isFile() method returns true then resource is a file (remember..)\r\n if(fa[i].isFile())\r\n {\r\n // fetch the file name from the i'th element of array\r\n String fileName = fa[i].getName();\r\n \r\n // check the extension of files using endsWith() method of string class\r\n\r\n if(fileName.endsWith(\".java\")) // means its a java file\r\n {\r\n // concatenate the fileName in javaFileNames and also a new line\r\n javaFileNames = javaFileNames + fileName + \"\\n\";\r\n \r\n // increment the counter for java files\r\n javaFiles++;\r\n }\r\n\r\n else if(fileName.endsWith(\".txt\")) // means its a text file\r\n {\r\n // concatenate the fileName in txtFileNames and also a new line\r\n txtFileNames = \">> \" +txtFileNames + fileName + \"\\n\";\r\n \r\n // increment the counter for text files\r\n txtFiles++;\r\n }\r\n\r\n else if(fileName.endsWith(\".jpeg\")\r\n || fileName.endsWith(\".jpg\")) // means its a image file\r\n {\r\n // concatenate the fileName in jpegFileNames and also a new line\r\n jpegFileNames = jpegFileNames + fileName + \"\\n\";\r\n \r\n // increment the counter for image files\r\n jpegFiles++;\r\n }\r\n\r\n else if(fileName.endsWith(\".mpeg\")\r\n || fileName.endsWith(\".mpg\")) // means its a movie file\r\n {\r\n // concatenate the fileName in mpegFileNames and also a new line\r\n mpegFileNames = \">> \" +mpegFileNames + fileName + \"\\n\";\r\n \r\n // increment the counter for movie files\r\n mpegFiles++;\r\n }\r\n \r\n } // end of if\r\n \r\n } // end of for loop\r\n \r\n System.out.println(\"# Report of path \"+path+\" is given below #\");\r\n \r\n System.out.println(\"\\njava files ->\");\r\n System.out.print(javaFileNames);\r\n System.out.println(\"** Total java file are \"+javaFiles+\" **\");\r\n\r\n System.out.println(\"\\ntext files ->\");\r\n System.out.print(txtFileNames);\r\n System.out.println(\"** Total text file are \"+txtFiles);\r\n\r\n System.out.println(\"\\njpeg or jpg files ->\");\r\n System.out.print(jpegFileNames);\r\n System.out.println(\"** Total jpeg file are \"+jpegFiles+\" **\");\r\n\r\n System.out.println(\"\\nmpeg or mpg files ->\");\r\n System.out.print(mpegFileNames);\r\n System.out.println(\"** Total mpeg file are \"+mpegFiles+\" **\");\r\n \r\n // calculate total number of files in this path\r\n int totalFiles = javaFiles + txtFiles + jpegFiles + mpegFiles;\r\n \r\n System.out.println(\"\\n**Total files in this path are \"+totalFiles+\" **\");\r\n \r\n }", "title": "" }, { "docid": "45c81e2d5442e6a4fb85434e318da914", "score": "0.5319101", "text": "private void doGenerateClassFilesPerScenario(){\n\t\t//number of Java class files per scenario\n\t\tFile[] scenarioFolders = new File(GreenfootRipper.PROJECT_DIRECTORY, \"EmptyFiles/\").listFiles(new FilenameFilter() {\n\t\t\t@Override\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\treturn dir.isDirectory() && !name.startsWith(\".\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(File folder : scenarioFolders){\n\t\t\tprojectFilesMap.merge(folder.getName(), CodeParser.filterForJavaFiles(folder).size(), Integer::sum);\n\t\t}\n\t\t\n\t\tQuery q = new Query(\"INSERT IGNORE INTO project_total_files_count VALUES (?, ?)\", Util.mcon);\n\t\tps = q.getPS();\n\t\t\n\t\tprojectFilesMap.forEach(this::insert);\n\t\t\n\t\tq.disconnect();\n\t}", "title": "" }, { "docid": "f591500cb64001159d97da10a01f4c01", "score": "0.5268615", "text": "private int getNumberParts(String baseName) {\n\t\t// List all files in the same directory\n\t\tFile directory = new File(baseName).getAbsoluteFile().getParentFile();\n\t\tfinal String justFileName = new File(baseName).getName();\n\t\tString[] matchingFiles = directory.list(new FilenameFilter() {\n\t\t\t\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\treturn name.startsWith(justFileName) && \n\t\t\t\t\t\tname.substring(justFileName.length()).matches(\"^\\\\.\\\\d+$\");\n\t\t\t}\n\t\t\t\n\t\t});\n\t\treturn matchingFiles.length;\n\t}", "title": "" }, { "docid": "270faf1aaaac31070b30d3693c36ea69", "score": "0.5266332", "text": "public void process() throws FileNotFoundException {\n\t\tlong startTime , endTime;\r\n\t\t\r\n\t\tfor (int i = 0; i < getSizes().length ; i++ , setCount(0)) {\r\n\t\t\tgetSetWithSize(getSizes()[i]); // Getting data set with given size.\r\n\t\t\tstartTime = System.nanoTime(); // Starting time.\r\n\t\t\tsort();\r\n\t\t\tendTime = System.nanoTime(); // Ending time.\r\n\t\t\tSystem.out.println(this.getClass().getName() + \" -> \" + getTheCase() +\" -> Size \" + getSizes()[i]+ \" -> \" + (endTime - startTime) + \" nanoseconds -> Count -> \" + getCount());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "cd7074555ad863ab6eebbc2823b5057e", "score": "0.5247474", "text": "public static List<String> saveImages(MultipartFile[] files, Integer integer) {\n\t\tString fileName = null;\n\t\tString url =\"\";\n\t\tList<String> imageList = new ArrayList<String>();\n\t\tif (files != null && files.length > IConstant.ZERO) {\n\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif (files[i].getSize() > IConstant.ZERO) {\n\t\t\t\t\t\tfileName = files[i].getOriginalFilename();\n\t\t\t\t\t\tbyte[] bytes = files[i].getBytes();\n\t\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\t\tBufferedOutputStream buffStream = new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\tnew FileOutputStream(new File(IConstant.IMAGE_PATH +url+integer+\"_\"+fileName)));\n\t\t\t\t\t\t\tbuffStream.write(bytes);\n\t\t\t\t\t\t\tbuffStream.close();\n\t\t\t\t\t\t\timageList.add(IConstant.IMAGE_URL +integer+\"_\"+fileName);\n\t\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\t\tBufferedOutputStream buffStream = new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\tnew FileOutputStream(new File(IConstant.IMAGE_PATH +url+integer+\"_\"+fileName)));\n\t\t\t\t\t\t\tbuffStream.write(bytes);\n\t\t\t\t\t\t\tbuffStream.close();\n\t\t\t\t\t\t\timageList.add(IConstant.IMAGE_URL +integer+\"_\"+fileName);\n\t\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\t\tBufferedOutputStream buffStream = new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\tnew FileOutputStream(new File(IConstant.IMAGE_PATH +url+ integer+\"_\"+fileName)));\n\t\t\t\t\t\t\tbuffStream.write(bytes);\n\t\t\t\t\t\t\tbuffStream.close();\n\t\t\t\t\t\t\timageList.add(IConstant.IMAGE_URL +integer+\"_\"+fileName);\n\t\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\t\tBufferedOutputStream buffStream = new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\tnew FileOutputStream(new File(IConstant.IMAGE_PATH +url+ integer+\"_\"+fileName)));\n\t\t\t\t\t\t\tbuffStream.write(bytes);\n\t\t\t\t\t\t\tbuffStream.close();\n\t\t\t\t\t\t\timageList.add(IConstant.IMAGE_URL +integer+\"_\"+fileName);\n\t\t\t\t\t\t} else if (i == 4) {\n\t\t\t\t\t\t\tBufferedOutputStream buffStream = new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\tnew FileOutputStream(new File(IConstant.IMAGE_PATH +url+ integer+\"_\"+fileName)));\n\t\t\t\t\t\t\tbuffStream.write(bytes);\n\t\t\t\t\t\t\tbuffStream.close();\n\t\t\t\t\t\t\timageList.add(IConstant.IMAGE_URL +integer+\"_\"+fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn imageList;\n\t}", "title": "" }, { "docid": "b11b8feccef9afe7e977eda5104cc711", "score": "0.5227312", "text": "public void setFileNumber(int value) { fileNumber = value; }", "title": "" }, { "docid": "28ad92bd95bc32071cd80d12d050ec1d", "score": "0.5187401", "text": "public abstract Integer[] getFilesIncludedBy(int fileId);", "title": "" }, { "docid": "3a0aae8e8f8190d86255c398de2e7623", "score": "0.5167298", "text": "public abstract int getFileIncludesCount(int file1, int file2);", "title": "" }, { "docid": "fb079cc93a73babb70a7fb18167735cd", "score": "0.51554596", "text": "public static void main(String args[]) throws Exception {\n String filename;\n filename = scan.nextLine();\n\n List<String> lines =Files.readAllLines(Paths.get(filename));\n long bytes =0, count =0;\n for(String line:lines ){\n line = line.trim();\n String words[] = line.split(\"\\\\s\");\n if(Long.parseLong(words[words.length-1]) > 5000l){\n count++;\n bytes += Long.parseLong(words[words.length-1]);\n }\n } \n Files.write(Paths.get(\"bytes_\"+filename), (count+\"\\n\"+bytes+\"\\n\").getBytes());\n }", "title": "" }, { "docid": "b32e324a9041f810c193ff86460c6020", "score": "0.5153683", "text": "public static List<String> splitByLineFile(String file, int nbLineByHost, int restLineByHost, int nbWorkerMappers) {\n List<String> filesToMap = new ArrayList<String>();\n\n try {\n String line = null;\n int nbFile = 0;\n\n // content of the file\n List<String> content = new ArrayList<String>();\n FileReader fic = new FileReader(new File(file));\n BufferedReader read = new BufferedReader(fic);\n\n while ((line = read.readLine()) != null) {\n // add line by line to the content file\n content.add(line);\n // write the complete file by block or if it's the end of the file\n if ((content.size() == nbLineByHost && nbFile < nbWorkerMappers - 1) || (content.size() == nbLineByHost + restLineByHost && nbFile == nbWorkerMappers - 1)) {\n // for each group of line, we write a new file\n ++nbFile;\n String fileToMap = Constant.PATH_F_SPLITING + nbFile;\n Util.writeFile(fileToMap, content);\n\n if (Constant.MODE_DEBUG)\n System.out.println(\"Input file splited in : \" + fileToMap);\n\n // we save names of theses files in a list\n filesToMap.add(fileToMap);\n // reset\n content = new ArrayList<String>();\n }\n }\n read.close();\n fic.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return filesToMap;\n }", "title": "" }, { "docid": "e16c66f145eaf9e2b34d1f9975593cb0", "score": "0.5145328", "text": "static void findLargeReponse(String inputFileName) throws IOException\n\t{\n\t\tScanner sc = null;\n\t\tBufferedWriter writer = null;\n\t\ttry {\n\t\t\t Path p = Paths.get(inputFileName);\n\t\t\t String fileName = p.getFileName().toString();\n\t\t\t String directory = p.getParent().toString();\n\t\t\t \n\t\t\t //Define the name output file\n\t\t\t String outputFileName = \"bytes_\"+fileName;\n\t\t\t \n\t\t\t sc = new Scanner(new File(inputFileName));\n\t\t\t int count=0;\n\t\t\t long bytesTotal = 0;\n\t\t\t \n\t\t\t //Read lines from the files\n\t\t\t while (sc.hasNextLine()) {\n\t\t String line = sc.nextLine();\n\t\t long bytes = Integer.parseInt((line.substring(line.lastIndexOf(\" \"))).trim());\n\t\t if(bytes>5000)\n\t\t {\n\t\t \tcount ++;\n\t\t \tbytesTotal = bytesTotal+bytes;\n\t\t }\n\t\t }\n\t\t\t //Write into o a file\n\t\t\t writer = new BufferedWriter(new FileWriter(directory+\"\\\\\"+outputFileName));\n\t\t\t writer.write(String.valueOf(count));\n\t\t\t writer.newLine();\n\t\t\t writer.write(String.valueOf(bytesTotal));\t\t \n\t\t\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(sc!=null) sc.close();\n\t\t\tif(writer!=null) writer.close();\n\t\t}\n\t}", "title": "" }, { "docid": "4a87c91d2a8e573501701832d08b6a64", "score": "0.5145117", "text": "private static void writeToConsolidatedFiles(int baseSize, List<String> imageUrls, int inAcross, int inDown) {\n\n int imageCount = 0;\n int size = imageUrls.size();\n int pages = size / (inAcross * inDown) + 1;\n\n for (int j = 1; j <= pages; j++) {\n BufferedImage newImage = new BufferedImage(baseSize * inAcross, baseSize * inDown, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = newImage.createGraphics();\n\n try {\n for (int y = 0; y < inDown; y++) {\n for (int x = 0; x < inAcross; x++) {\n\n if (imageCount < size) {\n System.out.println(\"writing image \" + (imageCount+1) + \"/\" + imageUrls.size());\n String imageUrl = imageUrls.get(imageCount++);\n URL url = new URL(imageUrl);\n Image image = ImageIO.read(url);\n Image scaledInstance = null;\n\n if (image.getHeight(null) < image.getWidth(null)) {\n scaledInstance = image.getScaledInstance(baseSize, -1, Image.SCALE_SMOOTH);\n } else {\n scaledInstance = image.getScaledInstance(-1, baseSize, Image.SCALE_SMOOTH);\n }\n\n int horizontalPadding = (baseSize - scaledInstance.getWidth(null)) / 2;\n int verticalPadding = (baseSize - scaledInstance.getHeight(null)) / 2;\n\n g.drawImage(scaledInstance, x * baseSize+ horizontalPadding, y * baseSize+ verticalPadding, null);\n }\n }\n }\n g.dispose();\n\n\n ImageIO.write(newImage, \"png\", new File(\"fullImage\" + j + \".png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }", "title": "" }, { "docid": "68f6711c2bfaf91a6ed02d23ed320af0", "score": "0.513693", "text": "private void divideFileBytesAndStoreThemInFilePackages(DownloadRequest down){\n\t\tArrayList <byte[]> byteArrays=standard500kbSegmentation(down.getOriginalByteArray());\r\n\t\tcreateLUANObjectPackage(down,byteArrays);\r\n\t}", "title": "" }, { "docid": "b2b4a7637ecbdaf1ffbfc8ce3506cfac", "score": "0.51333517", "text": "public void setCustomPoolSize(int numberOfFiles ) {\r\n int threads = numberOfFiles > 0 ? numberOfFiles * 8 : 4;\r\n\r\n pool = new ForkJoinPool( threads );\r\n }", "title": "" }, { "docid": "c68a9f2f1e72caa606f0c1f175587c74", "score": "0.512363", "text": "private void groupFilesByProblem() throws IOException {\n\t\tfor (File file : resultsFiles) {\n\t\t\tString filePath = getFilePath(file);\n\t\t\tboolean isGA = true;\n\t\t\ttry {\n\t\t\t\t// Read problem name.\n\t\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\n\t\t\t\tString problemName = getProblemName(bufferedReader.readLine());\n\t\t\t\t// Let buffered reader proceed until we reach the desired line.\n\t\t\t\tfor (int i = 2; i < LineNumber.ALGORITHM_SETTING.getNumVal(); i++) {\n\t\t\t\t\tbufferedReader.readLine();\n\t\t\t\t}\n\t\t\t\tString algorithm = bufferedReader.readLine();\n\t\t\t\tisGA = algorithm.endsWith(\"GA\") ? true : false;\n\t\t\t\tbufferedReader.close();\n\t\t\t\t\n\t\t\t\tHashMap<String, ArrayList<String>> listOfProblems = isGA ? \n\t\t\t\t\t\tfilesGroupedByProblem_GA : filesGroupedByProblem_PBIL; \n\t\t\t\tArrayList<String> listOfFiles;\n\t\t\t\tif (listOfProblems.containsKey(problemName)) {\n\t\t\t\t\tlistOfFiles = listOfProblems.get(problemName);\n\t\t\t\t} else {\n\t\t\t\t\tlistOfFiles = new ArrayList<String>();\n\t\t\t\t}\n\t\t\t\t// Push to map.\n\t\t\t\tlistOfFiles.add(filePath);\n\t\t\t\t// Only push if this problem is used by both GA and PBIL.\n\t\t\t\tif (Arrays.asList(MAXSATProblems).contains(problemName)) {\n\t\t\t\t\tlistOfProblems.put(problemName, listOfFiles);\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tprintFileNotFound(filePath);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1c4c7ab620f822aa58253afb4be89a9f", "score": "0.511414", "text": "public void setCntFiles(Integer cntFiles) {\n mCntFiles = cntFiles;\n }", "title": "" }, { "docid": "6544a4aaec54194f6a88915fd1b9868b", "score": "0.5111551", "text": "int sizeOfFileArray();", "title": "" }, { "docid": "a4b5f8531fae9a214f17668b13dedc9c", "score": "0.51059645", "text": "protected File[] getFiles(String pattern) {\n File[] files = new File[partitionCount];\n for (int i = 0; i < partitionCount; i++) {\n files[i] = new File(String.format(pattern, i));\n }\n return files;\n }", "title": "" }, { "docid": "1e9eb946e7991ac47b81b7007a413da9", "score": "0.5089338", "text": "@Test\r\n\tpublic void testFileWithIdIsBigger() {\r\n\t\tFile directory = outputDirectoryPath.toFile();\r\n\t\tFile directory2 = outputDirectoryPath2.toFile();\r\n\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"addDigitToBarcode.dot\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"clearBarcode.dot\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"enterCashAmount.dot\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"resetSale.dot\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"scanBarcode.dot\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"startCashPayment.dot\");\r\n\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"addDigitToBarcode.pdf\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"clearBarcode.pdf\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"enterCashAmount.pdf\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"resetSale.pdf\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"scanBarcode.pdf\");\r\n\t\ttestFilesSizesDiffer(directory, directory2, \"startCashPayment.pdf\");\r\n\t}", "title": "" }, { "docid": "92a9bc078709fa824a4b40d891f7d6ba", "score": "0.50883543", "text": "private long generateChunkSize(long fileSize) {\n\t\t\n\t\t/* less than 50mb implies split in three parts */\n\t\tif (fileSize <= 52428800) {\n\t\t\treturn (fileSize / 2) - 100;\n\t\t}\n\t\t\n\t\t/* less than 250mb implies split in five parts */\n\t\tif (fileSize <= 262144000) {\n\t\t\treturn (fileSize / 4) - 100;\n\t\t}\n\t\t\n\t\t/* less than 1gb implies split in nine parts */\n\t\tif (fileSize <= 1073741824) {\n\t\t\treturn (fileSize / 8) - 100;\n\t\t}\n\t\t\n\t\t/* Default */\n\t\treturn (fileSize / 16) - 100;\n\t}", "title": "" }, { "docid": "aac590aa6d94b98e24e5a5897f73484c", "score": "0.5088193", "text": "public Response createFile(MultipartFile file, String fileType, String idOp, String fileConsecutive);", "title": "" }, { "docid": "ac6e1aa097ceaa43515c49dcf6e590f3", "score": "0.5079039", "text": "void mo43284a(List<File> list);", "title": "" }, { "docid": "98423a59698950415cf6326fa0630782", "score": "0.5065862", "text": "public void sortBySize(){\n List<MyFile> tmpListFile = new ArrayList<>();\n MyFile[] tmpFiles = null;\n if(files !=null){\n for(MyFile myFile : files){\n if(myFile.getName().toLowerCase().endsWith(\".txt\")) tmpListFile.add(myFile);\n \n }\n Collections.sort(tmpListFile,new MyFileSortSize());\n tmpFiles = tmpListFile.stream().toArray(MyFile[]::new); \n }\n list(tmpFiles);\n }", "title": "" }, { "docid": "476753e571367102989c3e6395b74897", "score": "0.5064112", "text": "static void deleteNumberedFiles(File baseFile, String pattern) throws IOException {\n deleteNumberedFiles(baseFile, pattern, 0);\n }", "title": "" }, { "docid": "8c7be194a928bed6b8776b596d3847ec", "score": "0.506317", "text": "public static int countFiles(){\n\t\tCounterVisitor v = new CounterVisitor();\n\t\ttraverse(v);\n\t\treturn v.getFileCounter();\n\t}", "title": "" }, { "docid": "8788847842a84de8d6ee52a5e6dd89ab", "score": "0.50488734", "text": "static void deleteNumberedFiles(File baseFile, String pattern, long min) throws IOException {\n String prefix = baseFile.getName() + pattern;\n for (File file : baseFile.getParentFile().listFiles()) {\n String name = file.getName();\n if (name.startsWith(prefix)) {\n String suffix = name.substring(prefix.length());\n long num;\n try {\n num = Long.parseLong(suffix);\n } catch (NumberFormatException e) {\n continue;\n }\n if (num >= min) {\n file.delete();\n }\n }\n }\n }", "title": "" }, { "docid": "64ae7b1f1739faf183f6f3a1490eba87", "score": "0.50475055", "text": "public static void main(String[] args) {\n FileManip.file_prefix = \"/tmp/\";\n \n String final_sorted_data = \"sorted_data\";\n String starting_file = \"data-file\";\n \n try {\n System.out.print(\"Generating random data...\");\n StringList sl = FileManip.generateRandomNumberFileGroup(\n starting_file, // seed for filename generation \n 5, // 5 separate files\n 100000000); // 20000000 ints/file (~80MB/file)\n System.out.println(\"DONE\");\n \n // pre-sort each file, individually\n System.out.print(\"Sorting separate smaller files...\");\n for(int i = 0; i < sl.getSize(); i++) {\n String filename = sl.at(i);\n \n // in this way, the working set is NEVER larger than the contents of a single file\n int[] arr = FileManip.getArray(filename); \n QuickSort.Sort(arr); // sort a chunk of random data\n FileManip.writeBinaryToFile(filename, arr); // write sorted data back to file\n }\n System.out.println(\"DONE\");\n \n // data is now organized as a series of smaller sorted data files\n // this data will be combined later\n // verify that all of the smaller files have been sorted correctly\n for(int i = 0; i < sl.getSize(); i++) {\n System.out.print(\"Verifying \" + sl.at(i) + \"...\");\n if(verifyOrderingOfFile(sl.at(i))) \n System.out.println(\"PASS\");\n else \n System.out.println(\"FAIL\");\n }\n \n File final_data = new File(FileManip.file_prefix + final_sorted_data);\n final_data.createNewFile();\n final_data.delete();\n final_data.createNewFile(); // guarantees that there is now an EMPTY file here\n \n // combine all the files\n System.out.print(\"Combining data files...\");\n for(int i = 0; i < sl.getSize(); i++)\n combineSortedFiles(sl.at(i), final_sorted_data);\n System.out.println(\"DONE\");\n \n System.out.print(\"Verifying final data file...\");\n if(verifyOrderingOfFile(final_sorted_data))\n System.out.println(\"SUCCESS!\");\n else {\n System.out.println(\"FAILURE\");\n return; // no point in creating ASCII files if the data is wrong\n }\n \n System.out.print(\"Generating ASCII file from final data file...\");\n FileManip.convertBinaryToAscii(final_sorted_data);\n System.out.println(\"DONE\");\n \n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "949f1fd5b4e0fd576c23998aca16646a", "score": "0.5020427", "text": "public int postFiles(File[] files, int startIndexInArgs, OutputStream out, String type) {\n reset();\n int filesPosted = 0;\n for (File srcFile : files) {\n filesPosted = getFilesPosted(out, type, srcFile);\n }\n return filesPosted;\n }", "title": "" }, { "docid": "4ba7b09e793da863715d3aecb7bd8934", "score": "0.5014754", "text": "public static void splitSprites(File inputDir) throws IOException {\n\t\tFile[] files = inputDir.listFiles();\n\t\tFile outDir = new File(inputDir.getAbsolutePath() + File.separator + \"splitOut\");\n\t\tFile smallOutputDir = new File(inputDir.getAbsolutePath() + File.separator + \"splitOut_small\");\n\t\tFile largeOutputDir = new File(inputDir.getAbsolutePath() + File.separator + \"splitOut_big\");\n\t\toutDir.mkdir();\n\t\tsmallOutputDir.mkdir();\n\t\tlargeOutputDir.mkdir();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.getName().endsWith(\"png\")) {\n\t\t\t\tsplitSpriteFile(file, outDir.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "38274c80692c8465ef1107da055c5e05", "score": "0.5006327", "text": "public void processFolder(String folderPath, int nThreads) {\n\n try {\n\n // Make a pool of sequence processors\n ExecutorService pool = Executors.newFixedThreadPool(nThreads);\n for (int chr = 1; chr <= 22; chr++) {\n String vepName = \"chr\" + chr + \".txt\";\n String outputName = \"chr\" + chr + \"_processed.txt\";\n File vepFile = new File(folderPath, vepName);\n File outputFile = new File(folderPath, outputName);\n FileProcessor fileProcessor = new FileProcessor(vepFile, outputFile);\n pool.submit(fileProcessor);\n }\n\n // Execute\n pool.shutdown();\n if (!pool.awaitTermination(Integer.MAX_VALUE, TimeUnit.DAYS)) {\n throw new TimeoutException(\"Conversion timed out.\");\n }\n\n } catch (Exception e) {\n\n }\n\n }", "title": "" }, { "docid": "2657a0de571642f41e8859c82d9952b7", "score": "0.499144", "text": "public abstract Integer[] getFilesThatInclude(int fileId);", "title": "" }, { "docid": "b57abf730f2385c60264ace720b2554a", "score": "0.49880704", "text": "@Test\n void countFromMultipleFileShowOnlyLineTest() throws Exception {\n String expectedOutput = String.format(ONE_ARG_FORMAT, ALL_CHAR_LC, ALL_CHAR_NAME)\n + NEWLINE_CHAR + String.format(ONE_ARG_FORMAT, ALPHA_WS_LC, ALPHA_WS_NAME)\n + NEWLINE_CHAR + String.format(ONE_ARG_FORMAT, NUM_WS_LC, NUM_WS_NAME)\n + NEWLINE_CHAR + String.format(ONE_ARG_FORMAT, calculateTotal(ALL_CHAR_LC,\n ALPHA_WS_LC, NUM_WS_LC), MULP_FILE_TOTAL);\n\n String actualOutput = wcApplication.countFromFiles(false, true, false,\n ALL_CHAR_NAME, ALPHA_WS_NAME, NUM_WS_NAME);\n\n assertEquals(expectedOutput, actualOutput);\n }", "title": "" }, { "docid": "c19ac7b2068eef23b47119b75ae58f9c", "score": "0.49860436", "text": "@Test\r\n\tpublic void main() {\r\n\r\n\t\tdouble a[] = readFile(new double[10], \"numbers10.txt\");\r\n\t\tdouble b[] = readFile(new double[100], \"numbers100.txt\");\r\n\t\tdouble c[] = readFile(new double[1000], \"numbers1000.txt\");\r\n\t\tdouble d[] = readFile(new double[1000], \"numbers1000Duplicates.txt\");\r\n\t\tdouble e[] = readFile(new double[1000], \"numbersNearlyOrdered1000.txt\");\r\n\t\tdouble f[] = readFile(new double[1000], \"numbersReverse1000.txt\");\r\n\t\tdouble g[] = readFile(new double[1000], \"numbersSorted1000.txt\");\r\n\r\n\t\ttestTextFiles(a, \"numbers10.txt\");\r\n\t\ttestTextFiles(b, \"numbers100.txt\");\r\n\t\ttestTextFiles(c, \"numbers1000.txt\");\r\n\t\ttestTextFiles(d, \"numbers1000Duplicates.txt\");\r\n\t\ttestTextFiles(e, \"numbersNearlyOrdered1000.txt\");\r\n\t\ttestTextFiles(f, \"numbersReverse1000.txt\");\r\n\t\ttestTextFiles(g, \"numbersSorted1000.txt\");\r\n\r\n\t}", "title": "" }, { "docid": "d22da598adaa5bca512eeb6b56c11f88", "score": "0.4983528", "text": "protected void initFile(String id) throws FormatException, IOException {\n Location l = new Location(id).getAbsoluteFile();\n Location parent = l.getParentFile();\n String[] list = parent.list();\n \n boolean isXML = checkSuffix(id, XML_SUFFIX);\n \n if (list != null) {\n for (String file : list) {\n if (checkSuffix(file, XML_SUFFIX) && !isXML && isGroupFiles()) {\n xmlFile = new Location(parent, file).getAbsolutePath();\n break;\n }\n else if (checkSuffix(file, TiffReader.TIFF_SUFFIXES) && isXML) {\n initFile(new Location(parent, file).getAbsolutePath());\n return;\n }\n }\n }\n \n if (isXML) xmlFile = l.getAbsolutePath();\n \n super.initFile(id);\n \n MetadataStore store = makeFilterMetadata();\n \n in = new RandomAccessInputStream(id);\n tiffParser = new TiffParser(in);\n tiffs = new Vector<String>();\n \n IFDList ifds = tiffParser.getIFDs();\n String date = ifds.get(0).getIFDStringValue(IFD.DATE_TIME);\n if (date != null) {\n datestamp = DateTools.getTime(date, \"yyyy:MM:dd HH:mm:ss\");\n }\n \n groupFiles();\n addGlobalMeta(\"Number of image files\", tiffs.size());\n tiffReaders = new TiffReader[tiffs.size()];\n \n for (int i=0; i<tiffReaders.length; i++) {\n tiffReaders[i] = new TiffReader();\n tiffReaders[i].setId(tiffs.get(i));\n }\n \n int[] ch = new int[ifds.size()];\n int[] idx = new int[ifds.size()];\n long[] stamp = new long[ifds.size()];\n \n int channelCount = 0;\n \n core[0].sizeZ = 1;\n core[0].sizeC = tiffReaders[0].getSizeC();\n core[0].dimensionOrder = isRGB() ? \"XYC\" : \"XY\";\n \n if (isGroupFiles()) {\n FilePattern fp =\n new FilePattern(new Location(currentId).getAbsoluteFile());\n AxisGuesser guesser =\n new AxisGuesser(fp, \"XYTZC\", 1, ifds.size(), 1, true);\n \n int[] axisTypes = guesser.getAxisTypes();\n int[] count = fp.getCount();\n \n for (int i=axisTypes.length-1; i>=0; i--) {\n if (axisTypes[i] == AxisGuesser.Z_AXIS) {\n if (getDimensionOrder().indexOf(\"Z\") == -1) {\n core[0].dimensionOrder += \"Z\";\n }\n core[0].sizeZ *= count[i];\n }\n else if (axisTypes[i] == AxisGuesser.C_AXIS) {\n if (getDimensionOrder().indexOf(\"C\") == -1) {\n core[0].dimensionOrder += \"C\";\n }\n core[0].sizeC *= count[i];\n }\n }\n }\n \n for (int i=0; i<ifds.size(); i++) {\n String document = ifds.get(i).getIFDStringValue(IFD.DOCUMENT_NAME);\n if (document == null) continue;\n \n int index = document.indexOf(\"INDEX\");\n String s = document.substring(8, index).trim();\n ch[i] = Integer.parseInt(s);\n if (ch[i] > channelCount) channelCount = ch[i];\n \n int space = document.indexOf(\" \", index + 6);\n if (space < 0) continue;\n String n = document.substring(index + 6, space).trim();\n idx[i] = Integer.parseInt(n);\n \n date = document.substring(space, document.indexOf(\"FORMAT\")).trim();\n stamp[i] = DateTools.getTime(date, DATE_FORMAT);\n addGlobalMeta(\"Timestamp for plane #\" + i, stamp[i]);\n }\n \n core[0].sizeT = 0;\n \n // determine the axis sizes and ordering\n boolean unique = true;\n for (int i=0; i<stamp.length; i++) {\n for (int j=i+1; j<stamp.length; j++) {\n if (stamp[j] == stamp[i]) {\n unique = false;\n break;\n }\n }\n if (unique) {\n core[0].sizeT++;\n if (getDimensionOrder().indexOf(\"T\") < 0) {\n core[0].dimensionOrder += \"T\";\n }\n }\n else if (i > 0) {\n if ((ch[i] != ch[i - 1]) && getDimensionOrder().indexOf(\"C\") < 0) {\n core[0].dimensionOrder += \"C\";\n }\n else if (getDimensionOrder().indexOf(\"Z\") < 0) {\n core[0].dimensionOrder += \"Z\";\n }\n }\n unique = true;\n }\n \n if (getDimensionOrder().indexOf(\"Z\") < 0) core[0].dimensionOrder += \"Z\";\n if (getDimensionOrder().indexOf(\"C\") < 0) core[0].dimensionOrder += \"C\";\n if (getDimensionOrder().indexOf(\"T\") < 0) core[0].dimensionOrder += \"T\";\n \n if (getSizeC() == 0) core[0].sizeC = 1;\n if (getSizeT() == 0) core[0].sizeT = 1;\n if (channelCount == 0) channelCount = 1;\n if (getSizeZ() <= 1) {\n core[0].sizeZ = ifds.size() / (getSizeT() * channelCount);\n }\n core[0].sizeC *= channelCount;\n core[0].imageCount = getSizeZ() * getSizeT() * getSizeC();\n \n // cut up comment\n \n String comment = ifds.get(0).getComment();\n if (comment != null && comment.startsWith(\"[\") &&\n getMetadataOptions().getMetadataLevel() != MetadataLevel.MINIMUM)\n {\n String[] lines = comment.split(\"\\n\");\n for (String line : lines) {\n if (!line.startsWith(\"[\")) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) continue;\n String key = line.substring(0, eq).trim();\n String value = line.substring(eq + 1).trim();\n \n if (key.equals(\"VoxelSizeX\")) {\n try {\n voxelX = Double.parseDouble(value);\n }\n catch (NumberFormatException e) { }\n }\n else if (key.equals(\"VoxelSizeY\")) {\n try {\n voxelY = Double.parseDouble(value);\n }\n catch (NumberFormatException e) { }\n }\n else if (key.equals(\"VoxelSizeZ\")) {\n try {\n voxelZ = Double.parseDouble(value);\n }\n catch (NumberFormatException e) { }\n }\n \n addGlobalMeta(key, value);\n }\n }\n metadata.remove(\"Comment\");\n }\n core[0].sizeX = tiffReaders[0].getSizeX();\n core[0].sizeY = tiffReaders[0].getSizeY();\n core[0].rgb = tiffReaders[0].isRGB();\n core[0].pixelType = tiffReaders[0].getPixelType();\n core[0].littleEndian = tiffReaders[0].isLittleEndian();\n core[0].interleaved = tiffReaders[0].isInterleaved();\n core[0].falseColor = true;\n core[0].indexed = tiffReaders[0].isIndexed();\n \n if (isRGB()) core[0].imageCount /= (getSizeC() / channelCount);\n if (getSizeZ() * getSizeT() * getEffectiveSizeC() !=\n (ifds.size() * tiffReaders.length))\n {\n core[0].sizeZ = 1;\n int c = getEffectiveSizeC();\n if (c == 0) c = 1;\n core[0].sizeT = (ifds.size() * tiffReaders.length) / c;\n core[0].imageCount = getSizeT() * c;\n if (getSizeT() == 0) {\n core[0].sizeT = 1;\n core[0].imageCount = ifds.size() * tiffReaders.length;\n }\n }\n \n if (getImageCount() == ifds.size() * getSizeZ() * getSizeT() &&\n ifds.size() > 1)\n {\n if (getSizeZ() == 1) {\n core[0].sizeZ = ifds.size();\n }\n else if (getSizeT() == 1) {\n core[0].sizeT = ifds.size();\n }\n else core[0].sizeZ *= ifds.size();\n }\n \n if (xmlFile != null) {\n // parse XML metadata\n \n String xml = DataTools.readFile(xmlFile);\n xml = XMLTools.sanitizeXML(PREFIX + xml + SUFFIX);\n \n LeicaHandler handler =\n new LeicaHandler(store, getMetadataOptions().getMetadataLevel());\n XMLTools.parseXML(xml, handler);\n \n metadata = handler.getGlobalMetadata();\n MetadataTools.merge(handler.getGlobalMetadata(), metadata, \"\");\n \n core = handler.getCoreMetadata().toArray(new CoreMetadata[0]);\n \n for (int i=0; i<getSeriesCount(); i++) {\n if (tiffs.size() < core[i].imageCount) {\n int div = core[i].imageCount / core[i].sizeC;\n core[i].imageCount = tiffs.size();\n if (div >= core[i].sizeZ) core[i].sizeZ /= div;\n else if (div >= core[i].sizeT) core[i].sizeT /= div;\n }\n core[i].dimensionOrder = getSizeZ() > getSizeT() ? \"XYCZT\" : \"XYCTZ\";\n core[i].rgb = false;\n core[i].interleaved = false;\n core[i].indexed = tiffReaders[0].isIndexed();\n }\n }\n \n MetadataTools.populatePixels(store, this, true);\n \n for (int i=0; i<getSeriesCount(); i++) {\n MetadataTools.setDefaultCreationDate(store, id, i);\n }\n \n store.setPixelsPhysicalSizeX(voxelX, 0);\n store.setPixelsPhysicalSizeY(voxelY, 0);\n store.setPixelsPhysicalSizeZ(voxelZ, 0);\n }", "title": "" }, { "docid": "87370ef3fbcfd52287fec5076b716073", "score": "0.49741492", "text": "private void validateNumberFiles(final int expected) {\n assertThat(numberOfFiles(this.dir)).as(\"Unexpected files: \" + listFiles(this.dir))\n .isEqualTo(expected);\n }", "title": "" }, { "docid": "aeaae665f74acbcb8a0028ca6e6aaa76", "score": "0.4963836", "text": "int postFiles(File[] files, OutputStream out, String type) {\n int filesPosted = 0;\n for (File srcFile : files) {\n try {\n if (!srcFile.isFile() || srcFile.isHidden()) {\n continue;\n }\n postFile(srcFile, out, type);\n Thread.sleep(delay * 1000L);\n filesPosted++;\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n return filesPosted;\n }", "title": "" }, { "docid": "ebb3a6625647355a1e6a23df68c03b94", "score": "0.4949217", "text": "protected abstract void WriteOutputsToFile(String outputFile, int N);", "title": "" }, { "docid": "6a8cab1321ca398494090b30b00fe348", "score": "0.4947804", "text": "public int postFiles(String[] args, int startIndexInArgs, OutputStream out, String type) {\n reset();\n int filesPosted = 0;\n for (int j = startIndexInArgs; j < args.length; j++) {\n File srcFile = new File(args[j]);\n filesPosted = getFilesPosted(out, type, srcFile);\n }\n return filesPosted;\n }", "title": "" }, { "docid": "e30e55eae3f86840097199d6c8b04dc2", "score": "0.49426273", "text": "public Map<ArrayList<String>, Integer> parseFile(String filename, int n);", "title": "" }, { "docid": "a1a2c0745263c261bf169e5973f97791", "score": "0.49371836", "text": "public static void writeAllChunks(ArrayList<Record[]> allChunks, String outPutPath){\r\n\t\tDocument dom;\r\n\t Element e = null;\r\n\r\n\t // instance of a DocumentBuilderFactory\r\n\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t try {\r\n\t \tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t dom = builder.newDocument();\r\n\t\t\r\n\t // create the root element\r\n\t Element outFile = dom.createElement(\"outfile\");\r\n\t\t\r\n\t\t\t// pick each Record out in order\r\n\t\t\tint[] indexes = new int[allChunks.size()];\r\n\t\t\tint min = 0;\r\n\t\t\tint full = 0;\r\n\t\t\twhile(true){\t\r\n\t\t\t\tfor(int i=0; i<indexes.length; i++){\r\n\t\t\t\t\t// make sure we don't go out of bounds\r\n\t\t\t\t\tif(indexes[i] < allChunks.get(i).length){\r\n\t\t\t\t\t\t// comparing strings and numbers isn't quite the same\r\n\t\t\t\t\t\tString minRecordNumber = allChunks.get(min)[indexes[min]].getRecordNumber();\r\n\t\t\t\t\t\tlong longMinRecordNumber = Long.parseLong(minRecordNumber);\t\t\t\t\t\r\n\t\t\t\t\t\tString recordNumber = allChunks.get(i)[indexes[i]].getRecordNumber();\r\n\t\t\t\t\t\tlong longRecordNumber = Long.parseLong(recordNumber);\r\n\t\t\t\t\t\t// update min if necessary\r\n\t\t\t\t\t\tif(longRecordNumber < longMinRecordNumber){\r\n\t\t\t\t\t\t\tmin = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else if(min == i){\r\n\t\t\t\t\t\tmin++;\r\n\t\t\t\t\t\tfull++;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// we've come to the end of a chunk, increment full\r\n\t\t\t\t\t\tfull++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// if full equals the number of chunks we're done.\r\n\t\t\t\tif(full == indexes.length){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// build up the xml elements for all applicable Record fields\t\t\t\t\r\n\t\t\t\tElement lineItem = dom.createElement(\"lineItem\");\r\n\t\t\t\t\r\n\t\t\t\t// the record number\r\n\t\t\t\te = dom.createElement(\"numValidated\");\r\n\t\t e.appendChild(dom.createTextNode(allChunks.get(min)[indexes[min]].getRecordNumber()));\r\n\t\t lineItem.appendChild(e);\r\n\r\n\t\t // the validation algorithm\r\n\t\t e = dom.createElement(\"algorithm\");\r\n\t\t e.appendChild(dom.createTextNode(allChunks.get(min)[indexes[min]].getValidationFunction()));\r\n\t\t lineItem.appendChild(e);\r\n\t\t \r\n\t\t // whether or not the number was valid\r\n\t\t e = dom.createElement(\"status\");\r\n\t\t e.setAttribute(\"valid\", allChunks.get(min)[indexes[min]].getStatus());\r\n\t\t lineItem.appendChild(e);\r\n\t\t \r\n\t\t // any parameters which may have been included\r\n\t\t String[] args = allChunks.get(min)[indexes[min]].getFunctionArguments();\r\n\t\t Element parameters = dom.createElement(\"Parameters\");\r\n\t\t for(String arg: args){\t\t\t \r\n\t\t\t e = dom.createElement(\"param\");\r\n\t\t\t e.appendChild(dom.createTextNode(arg));\r\n\t\t\t parameters.appendChild(e);\t\r\n\t\t }\r\n\t\t lineItem.appendChild(parameters);\r\n\r\n\t\t // write the line to the root element and start again\r\n\t\t outFile.appendChild(lineItem);\r\n\t\t\t\tindexes[min]++;\r\n\t\t\t\tmin = 0;\r\n\t\t\t\tfull = 0;\r\n\t\t\t}\r\n\t\t\t// write the root element to dom\r\n\t dom.appendChild(outFile);\r\n\t try {\r\n\t Transformer tr = TransformerFactory.newInstance().newTransformer();\r\n\t tr.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t tr.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t tr.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t tr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"./src/cfg/processedNumbers.dtd\");\r\n\t tr.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\r\n\t // send DOM to file\r\n\t tr.transform(new DOMSource(dom), \r\n\t new StreamResult(new FileOutputStream(outPutPath)));\r\n\r\n\t } catch (TransformerException te) {\r\n\t System.out.println(te.getMessage());\r\n\t } catch (IOException ioe) {\r\n\t System.out.println(ioe.getMessage());\r\n\t }\t\t\r\n\t } catch (ParserConfigurationException pce) {\r\n\t System.out.println(\"UsersXML: Error trying to instantiate DocumentBuilder \" + pce);\r\n\t }\r\n\t}", "title": "" }, { "docid": "e7bdaffd7f46f5cd96de69b54e118d71", "score": "0.49260688", "text": "long getTotalPageFile();", "title": "" }, { "docid": "e36aaa24875c5df4492c68e89a53c776", "score": "0.49089214", "text": "public void segmentDataSet(int numSegments) throws IOException {\r\n\r\n\t// Calculate number of rows per segement\r\n\tint rowsPerSegment = calcRowsPerSegment(numSegments);\r\n\r\n\t// Determin file name\r\n\tint fileNameIndex = fileName.lastIndexOf('/');\r\n\tString shortFileName = fileName.substring(fileNameIndex+1,\r\n\t\t\t\tfileName.length());\r\n\r\n\t// Open input data file\r\n\topenFileName(shortFileName);\r\n\r\n\t// Loop through input data for N-1 segments\r\n\tint startRecord=0;\r\n\tint endRecord=rowsPerSegment;\r\n\tfor (int segIndex=1;segIndex<numSegments;segIndex++) {\r\n\t String outputFileName = shortFileName + segIndex;\r\n\t // Step through input data file\r\n\t ouputSegmentToFile(outputFileName,startRecord,endRecord);\r\n\t // Increment counters\r\n\t startRecord=endRecord;\r\n\t endRecord=endRecord+rowsPerSegment;\r\n\t }\r\n\r\n\t// Process last segment (may have slightly more records than previous\r\n\t// segments)\r\n\tString outputFileName = shortFileName + numSegments;\r\n\touputSegmentToFile(outputFileName,startRecord,numRows);\r\n\r\n\t// Close input file\r\n\tfileInput.close();\r\n\t}", "title": "" }, { "docid": "897b97afa44f8ec8d7fa60e0a920884e", "score": "0.49004555", "text": "List<File> mo43287b();", "title": "" }, { "docid": "eaaffebc51807c0baf04636268d8058d", "score": "0.48978108", "text": "private Map<Integer,String> getFileFragments(int fileCount, File rootFolder, int bucketId, int renderingId) throws BucketFolderNotFoundException, RenderingFolderNotFoundException{\r\n\t\t\r\n\t\tif(fileCount == 1){\r\n\t\t\tFile file = ContentFragmentRetriever.getFragmentByBucketIdAndRenderingId(rootFolder, bucketId, renderingId);\r\n\t\t\treturn readFileFragment(file);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tFile[] files = ContentFragmentRetriever.getFragmentsByBucketIdAndRenderingId(rootFolder, bucketId, renderingId);\r\n\t\t\treturn readFileFragments(files);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1e4b2ee696ba51e7c15ceb659656767d", "score": "0.48955742", "text": "private static void processFileList (String fileList) throws IOException {\n\t\tBufferedReader reader = new BufferedReader (new FileReader(fileList));\n\t\tint docCount = 0;\n\t\tString currentDoc;\n\t\twhile ((currentDoc = reader.readLine()) != null) {\n\t\t\t// process file 'currentDoc'\n\t\t\tdocCount++;\n\t\t\tSystem.out.println (\"\\nProcessing document \" + docCount + \": \" + currentDoc);\n\t\t\tString textFileName = dataDir + currentDoc;\n\t\t\tExternalDocument doc = new ExternalDocument(\"sgml\", textFileName);\n\t\t\tdoc.setAllTags(true);\n\t\t\tdoc.open();\n\t\t\t// check document case\n\t\t\tAce.monocase = Ace.allLowerCase(doc);\n\t\t\tControl.processDocument (doc, null, false, docCount);\n\t\t\tfor (String type : types)\n\t\t\t\tdoc.shrink(type);\n\t\t\tString sentFileName = outputDir + currentDoc + \".nesent\";\n\t\t\tPrintWriter writer = new PrintWriter (new FileWriter (sentFileName));\n\t\t\twriteSents (doc, currentDoc, writer);\n\t\t\twriter.close();\n\t\t}\n\t}", "title": "" }, { "docid": "4c3aba01c8e7cb4992ab7f786714735e", "score": "0.4889819", "text": "public void splitData(String filePath) throws IOException{\n\t\tFile theFile = new File(filePath);\n\t\tScanner fileScanner = new Scanner(theFile); // fileScanner.\n\t\tint fileIterator = 0;\n\t\twhile(fileScanner.hasNextLine()){\n\t\t\tfileAsArray.add(fileScanner.nextLine().split(\",\")); // add dataInstance to ArrayList.\n\t\t}\n\t\t\n\t\tfileAsArray.trimToSize(); //trim file size\n\t\tsetClassCounts(fileAsArray); // count unique classes.\n\t\t \n\t\twhile(fileIterator < fileAsArray.size()){\n\t\t\tint testDataIterator = 0;//iterator for testSet.\n\t\t\tString currentClass = fileAsArray.get(fileIterator)[fileAsArray.get(fileIterator).length-1];\n\t\t\twhile(fileIterator < fileAsArray.size() && currentClass.equals(fileAsArray.get(fileIterator)[fileAsArray.get(fileIterator).length-1])){\n\t\t\t\tif(testDataIterator < classCounts.get(currentClass)/3){ // test set is only 1/3 of data.\n\t\t\t\t\ttestData.add(fileAsArray.get(fileIterator));\n\t\t\t\t\ttestDataIterator++;\n\t\t\t\t\tfileIterator++;\n\t\t\t\t}else{//training set is 2/3 data.\n\t\t\t\t\ttrainingData.add(fileAsArray.get(fileIterator));\n\t\t\t\t\tfileIterator++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twriteFiles(); // write data to files\n\t\tfileScanner.close();\n\t}", "title": "" }, { "docid": "3fc953b6276a7688c1b838aa8536eac0", "score": "0.48820308", "text": "public static void generateFinalFiles()\n { \n String line = null;\n \n try{\n FileDefs fileDefs = null;\n \n Set<String> set = hFileNameAnnotation.keySet();\n Iterator<String> iterator = set.iterator();\n boolean errorFile = false;\n ArrayList<File> generatedFiles = new ArrayList<File>();\n \n while (iterator.hasNext()) {\n String fileName = iterator.next();\n File file = new File(fileName);\n FileReader fr = new FileReader(file);\n BufferedReader br1 = new BufferedReader(fr);\n String targetPath = \"\";\n String targetDirectory = \"\";\n String delimiter = null;\n String delimiter_aux = null;\n String listdelimiter = \"#\";\n String listdelimiter_aux = null;\n \n HashMap<String,ArrayList<String>> aMap = null;\n if((fileDefs = hFileNameAnnotation.get(fileName))==null)\n ElaborationError.elaborationError(\"Unable to get annotations related to file '\"+targetpath+file.getName()+\"'.\");\n \n aMap = fileDefs.annotationMap;\n delimiter = fileDefs.delimiter;\n \n // Decompose Delimiter in order to create a Pattern for regex\n delimiter_aux = \"\";\n\t\t\t\tfor(int i=0; i < (delimiter.length()) ; i++)\n\t\t\t\t{\n\t\t\t\t\tdelimiter_aux = delimiter_aux + \"[\" + delimiter.charAt(i) + \"]\";\n\t\t\t\t}\t\t \n \n // Decompose LIST Delimiter in order to create a Pattern for regex\n listdelimiter_aux = \"\";\n for(int i=0; i < (listdelimiter.length()) ; i++)\n {\n\t \tlistdelimiter_aux = listdelimiter_aux + \"[\" + listdelimiter.charAt(i) + \"]\";\n }\n \n if(fileDefs.targetpath!=null){\n targetDirectory = targetpath+fileDefs.targetpath+String.valueOf(File.separator);\n targetPath = targetpath+fileDefs.targetpath+String.valueOf(File.separator)+fileDefs.targetname;\n }\n else {\n targetDirectory = targetpath;\n targetPath = targetpath+fileDefs.targetname;\n }\n \n File fileChecker = new File(targetDirectory);\n if(!fileChecker.exists()){\n fileChecker.mkdirs();\n }\n \n FileOutputStream fos = new FileOutputStream(targetPath);\n \n String aux= null;\n String aux2 = null;\n String pattern = null;\n String patternArray = null;\n String separator = null;\n String pattern_aux_Separator = null;\n String pattern_aux_Initial = null;\n String pattern_aux_Final = null;\n String pattern_aux_Annot = null;\n \n // Regex auxiliar variables \n String initialChar \t\t= null;\t\t// Inicial character\n String separatorChar \t= null;\t\t// Separator character\n String finalChar \t\t= null; \t// Final character\n // Inicial\n\t String regexGroup2 \t\t= null; \t// Group which represents the Inicial character\n\t String regexGroup3 \t\t= null; \t// Regex Inicial character\n // Separator\n\t String regexGroup8 \t\t= null; \t// Group which represents the Separator character\n\t String regexGroup10\t\t= null; \t// Regex Separator character\n\t // Final\n\t String regexGroup11 \t= null; \t// Group which represents the Final character\n\t String regexGroup13 \t= null; \t// Regex Final character\n \n \n //Replace loop\n while ((line = br1.readLine()) != null) {\n for(HashMap.Entry<String, ArrayList<String>> entry : aMap.entrySet())\n {\n pattern = \"\";\n \n // Pattern and Mather for the ArrayList - Multiple Annotation\n pattern_aux_Initial = \"(.*?)\" + \"(\"+listdelimiter+\")\";\n pattern_aux_Separator = \"(\"+listdelimiter+\")\" + \"(.*?)\";\n pattern_aux_Final = \"(\"+listdelimiter+\")\" + \"(.*?)\";\n pattern_aux_Annot = \"(\"+entry.getKey()+\")\";\n \t\t \n // Pattern and Mather for the ArrayList - Multiple Annotation\n patternArray = \"(\"+delimiter_aux+\")\" + \n \t\t\t\t\t\"(\" + pattern_aux_Initial + \")?\" +\n \t\t\t\t\t\"([ ])*\" + \n \t\t\t\t\tpattern_aux_Annot +\n \t\t\t\t\t\"([ ])*\" +\n\t \t\t\t\t\"(\" + pattern_aux_Separator + \")\" +\n\t \t\t\t\t\"(\" + pattern_aux_Final + \")?\" +\n \t\t\t\t\"(\"+delimiter_aux+\")\";\t\t \n \n Pattern pArray = Pattern.compile(patternArray);\n Matcher mArray = pArray.matcher(line);\n \n if(mArray.find())\n {\n if (line.contains(entry.getKey()))\n {\n\t \tregexGroup2 = mArray.group(2);\n\t \tregexGroup3 = mArray.group(3);\n\t \tregexGroup8 = mArray.group(8);\n\t \tregexGroup10 = mArray.group(10);\n\t \tregexGroup11 = mArray.group(11);\n\t \tregexGroup13 = mArray.group(13);\t\n\t \t \t\n\t \t// Verify if Initial character exists\n\t \tif(regexGroup2 != null && regexGroup3 != null) \n\t \t{\n\t \t\tif (regexGroup3.length() == 0) initialChar = \"\";\n\t \t\telse initialChar = regexGroup3;\n\t \t}\n\t\t else { initialChar = \"\"; }\n\t\t \n\t \t// Verify if Separator character exists\n\t \tif(regexGroup8 != null && regexGroup10 != null) \n\t \t{\n\t \t\tif (regexGroup10.length() == 0) separatorChar = \"\\n\";\n\t \t\telse separatorChar = regexGroup10;\n\t \t}\n\t\t else { separatorChar = \"\\n\"; }\n\t\t \n\t \t// Verify if Final character exists\n\t \tif(regexGroup11 != null && regexGroup13 != null) \n\t \t{\n\t \t\tif (regexGroup13.length() == 0) finalChar = \"\\n\";\n\t \t\telse finalChar = regexGroup13;\n\t \t}\n\t\t else { finalChar = \"\\n\"; }\t\t\t\t \t\t\t\t \n \t\n ArrayList<String> list = entry.getValue(); \n aux = \"\";\n for(int i=0;i<list.size();i++)\n {\n\t\t aux2 = list.get(i);\n\t\t if (i == 0) aux += initialChar + aux2;\n\t\t else if(i == (list.size() - 1) ) aux += separatorChar + aux2 + finalChar;\n\t\t else if(i != (list.size() - 1) && i != 0) aux += separatorChar + aux2;\n\t\t \n }\n line = mArray.replaceAll(aux);\n }\n }\n else if(line.contains(entry.getKey()))\n {\n \t// Pattern and Mather for the Array - Single Annotation\n pattern = \"(\" + delimiter_aux + \")\" + \"([ ])*\" + \"(\" + entry.getKey() + \")\" + \"([ ])*\" + \"(\" + delimiter_aux + \")\";\n ArrayList<String> list = entry.getValue();\n Pattern pttern = Pattern.compile(pattern);\n Matcher match = pttern.matcher(line);\n line = match.replaceAll(list.get(0));\n } \n }\n line+=\"\\n\";\n fos.write(line.getBytes());\n }\n br1.close();\n fr.close();\n fos.close();\n \n //Verification loop\n File fileVerification = new File(targetPath);\n generatedFiles.add(fileVerification);\n FileReader frVerification = new FileReader(fileVerification);\n BufferedReader brVerification = new BufferedReader(frVerification);\n String errorLine=null;\n \n int lineNumber=0;\n \n String rewriteText = \"\";\n boolean rewriteFile = false;\n line = null;\n \n while (((line = brVerification.readLine()) != null)&& errorFile!=true) {\n for(HashMap.Entry<String, ArrayList<String>> entry2 : aMap.entrySet())\n {\n if(line.contains(delimiter) && !entry2.getKey().contains(listdelimiter))\n {\n errorFile = true;\n errorLine = line;\n break;\n }\n else if(line.contains(entry2.getKey()) && entry2.getKey().contains(listdelimiter))\n {\n rewriteFile=true;\n line = line.replace(entry2.getKey(),\"\"); \n }\n }\n rewriteText = rewriteText + line + \"\\n\";\n lineNumber++;\n } \n \n if(rewriteFile){\n brVerification.close();\n frVerification.close();\n FileOutputStream fosVerification = new FileOutputStream(targetPath);\n fosVerification.write(rewriteText.getBytes());\n fosVerification.close();\n rewriteFile = false;\n } \n else{\n brVerification.close();\n frVerification.close();\n }\n \n if(errorFile)\n {\n brVerification.close();\n frVerification.close();\n \n for(int i=0; i<generatedFiles.size(); i++){\n generatedFiles.get(i).delete();\n }\n \n ElaborationError.elaborationError(\"Fail to generate final files. File \"+fileName+\" with error at line \"+String.valueOf(lineNumber)+\":'\"+errorLine+\"'. All files deleted!\");\n return;\n }\n }\n if(!errorFile)\n System.out.println(\"All final files successfully generated!\");\n\n }\n catch (Exception e) {\n \te.printStackTrace();\n ElaborationError.elaborationError(\"Error generating final file: Unresolved annotations!\");\t\t \n }\n \n FileInputStream fis = null;\n FileOutputStream fos = null;\n \n\t\tfor(String sourceFile : binaryFiles.keySet()){\n\n\t\t\tString destFile = binaryFiles.get(sourceFile);\n\t\t\t\n\t\t\tFile inputfile = new File(sourceFile);\n\t\t\tFile outputfile = new File(destFile);\n\t\t\toutputfile.mkdirs();\n\t\t\toutputfile = new File(outputfile.getAbsolutePath() + String.valueOf(File.separator) + inputfile.getName());\n \t\n\t\ttry {\n\t\t\t\tfis = new FileInputStream(inputfile);\n\t\t\t\tfos = new FileOutputStream(outputfile);\n\t\t\n\t\t\t\tbyte[]buffer = new byte[1024];\n\t\t\t\tint noOfBytes = 0;\n\t\t\n\t\t\t\twhile ((noOfBytes = fis.read(buffer)) != -1) {\n\t\t\t\t\tfos.write(buffer, 0, noOfBytes);\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tElaborationError.elaborationError(\"File not found: \" + e);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tElaborationError.elaborationError(\"Exception while copying file \" + ioe);\n\t\t\t\t} finally {\n\t\t\t\t\t// close the streams using close method\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (fis != null) {\n\t\t\t\t\t\t\tfis.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (fos != null) {\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tElaborationError.elaborationError(\"Error while closing stream: \" + ioe);\n\t\t\t}\n\t\t}\n\t\t}\n \n }", "title": "" }, { "docid": "873fb1a4e1d2cbe003b8b7c90fd43f04", "score": "0.48666447", "text": "private static long getSize(File f) {\n if (f.isFile()) {\n return f.length();\n }\n\n File[] files = f.listFiles();\n if (files == null) {\n return 0;\n }\n\n long size = 0;\n for (File file : files) {\n size += getSize(file);\n }\n return size;\n }", "title": "" }, { "docid": "202d45a1b183a2b6aa838f2268732226", "score": "0.48574975", "text": "public static void main(String[] args) {\n\n StringBuilder S = new StringBuilder();\n S.append(\"my.song.mp3 11b\");\n S.append(\"\\n\" + \"greatSong.flac 1000b\");\n S.append(\"\\n\" + \"not3.txt 5b\");\n S.append(\"\\n\" + \"video.mp4 200b\");\n S.append(\"\\n\" + \"game.exe 100b\");\n S.append(\"\\n\" + \"mov!e.mkv 10000b\");\n String x = S.toString();\n List<String> music = Arrays.asList(\"mp3\", \"aac\", \"flac\");\n List<String> image = Arrays.asList(\"jpg\", \"bmp\", \"gif\");\n List<String> movie = Arrays.asList(\"mp4\", \"avi\", \"mkv\");\n\n\n int musicSize = 0;\n int imageSize = 0;\n int movieSize = 0;\n int othersSize = 0;\n System.out.println(\"Input: \\n\" + x);\n\n List<String> myList = new ArrayList<>(Arrays.asList(x.split(\"\\n\")));\n\n for (String var : myList) {\n String contents[] = var.split(\"\\\\s+\");\n int i = contents[0].lastIndexOf(\".\");\n String fileType = contents[0].substring(i + 1);\n if (music.contains(fileType)) {\n musicSize = musicSize + Integer.parseInt(contents[1].substring(0, contents[1].indexOf(\"b\")));\n } else if (image.contains(fileType)) {\n imageSize = imageSize + Integer.parseInt(contents[1].substring(0, contents[1].indexOf(\"b\")));\n } else if (movie.contains(fileType)) {\n movieSize = movieSize + Integer.parseInt(contents[1].substring(0, contents[1].indexOf(\"b\")));\n } else othersSize = othersSize + Integer.parseInt(contents[1].substring(0, contents[1].indexOf(\"b\")));\n\n }\n\n String output = (\"music \" + musicSize) +\n \"\\n\" + \"image \" + imageSize +\n \"\\n\" + \"movie \" + movieSize +\n \"\\n\" + \"others \" + othersSize;\n System.out.println(\"Output: \\n\" + output);\n\n }", "title": "" }, { "docid": "56872cb1485a952b0a5f91f32e42cecb", "score": "0.48521498", "text": "public FileList() {\n\t\t\n\t\tthis(\"file\"+fileNum+\".txt\");\n\t\tfileNum++;\n\n\t\t\n\t}", "title": "" }, { "docid": "3978fdab5bc5d9c60eb0753546da8253", "score": "0.48418397", "text": "public static void prepareSelectionFile5(String output_file_name, double sel_per, long num_lines) throws IOException{\n\t\tPrintWriter output_file=new PrintWriter(new BufferedWriter(new FileWriter(output_file_name)));\n//\t\tList<Long> list=DataCreator.makeUpdateList(sel_per, num_lines);\n//\t\tfor(long oid:list){\n//\t\t\toutput_file.println(oid+\"\");\n//\t\t}\n\t\tlong sel_num_lines=(long)(sel_per*num_lines);//total selection number\n\t\tlong total_selected=0;\n\t\tlong current_line=1;\n\t\tRandom rand=new Random();\n\t\tdouble p;//random probability\n\t\twhile(total_selected < sel_num_lines){\n\t\t\tp=rand.nextDouble();\n\t\t\tif(p<=sel_per){\n\t\t\t\toutput_file.format(\"%d\\n\",current_line);\n\t\t\t\ttotal_selected++;\n\t\t\t}\n\t\t\tif(current_line++>=num_lines)\n\t\t\t\tcurrent_line=1;\n\t\t}\n\t\toutput_file.close();\n\t}", "title": "" }, { "docid": "4368b69c110ea12b8173d1ee0bf259f5", "score": "0.4834507", "text": "public GenericBean dispatchFiles(File[] FilesIn) {\r\n\t\tArrayList<String> headers = new ArrayList<String>(Arrays.asList(\"container\", \"fileName\", \"type\", \"etat\", \"rapport\", \"v_container\"));\r\n\t\tArrayList<String> types = new ArrayList<String>(Arrays.asList(\"text\", \"text\", \"text\", \"text\", \"text\", \"text\"));\r\n\t\tArrayList<ArrayList<String>> content = new ArrayList<ArrayList<String>>();\r\n\t\tArrayList<ArrayList<String>> contentTemp = new ArrayList<ArrayList<String>>();\r\n\t\tArrayList<String> l;\r\n\t\tfor (File f : FilesIn) {\r\n\t\t\tString entrepot = ManipString.substringBeforeFirst(f.getName(), \"_\") + \"_\";\r\n\t\t\tif (f.getName().endsWith(\".tar.gz\") || f.getName().endsWith(\".tgz\")) {\r\n\t\t\t\t// Inscription des fichier au contgenu de l'archive\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t\tInteger erreur = 0;\r\n\t\t\t\tString rapport = null;\r\n\t\t\t\tString etat = null;\r\n\t\t\t\t// vérifier si l'archive est illisible dans son ensemble\r\n\t\t\t\ttry {\r\n\t\t\t\t\tBufferedInputStream fis = new BufferedInputStream(new FileInputStream(f), READ_BUFFER_SIZE);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tGZIPInputStream gzis = new GZIPInputStream(fis);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tTarInputStream tarInput = new TarInputStream(gzis);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\t\t\tTarEntry currentEntry = tarInput.getNextEntry();\r\n\t\t\t\t\t\t\t\t// boucle sur les entries\r\n\t\t\t\t\t\t\t\twhile (currentEntry != null) {\r\n\t\t\t\t\t\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tl.add(f.getName());\r\n\t\t\t\t\t\t\t\t\tl.add(entrepot + currentEntry.getName());\r\n\t\t\t\t\t\t\t\t\tl.add(TraitementTypeFichier.DA.toString());\r\n\t\t\t\t\t\t\t\t\t// vérifier si l'entry est lisible (on\r\n\t\t\t\t\t\t\t\t\t// appelle nextEntry)\r\n\t\t\t\t\t\t\t\t\terreur = 0;\r\n\t\t\t\t\t\t\t\t\tetat = TraitementEtat.OK.toString();\r\n\t\t\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tcurrentEntry = tarInput.getNextEntry();\r\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t\t\terreur = 2;\r\n\t\t\t\t\t\t\t\t\t\tetat = TraitementEtat.KO.toString();\r\n\t\t\t\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ENTRY.toString();\r\n\t\t\t\t\t\t\t\t\t\tcurrentEntry = null;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tl.add(etat);\r\n\t\t\t\t\t\t\t\t\tl.add(rapport);\r\n\t\t\t\t\t\t\t\t\tl.add(null);\r\n\t\t\t\t\t\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\ttarInput.close();\r\n\t\t\t\t\t\t\t\tgzis.close();\r\n\t\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\t\tgzis.close();\r\n\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\tgzis.close();\r\n\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t finally {\r\n\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\terreur = 1;\r\n\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Inscription de l'archive\r\n\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\tl.add(f.getName());\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tif (erreur == 1) {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.AC.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.A.toString());\r\n\t\t\t\t}\r\n\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\tl.add(TraitementEtat.KO.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementEtat.OK.toString());\r\n\t\t\t\t}\r\n\t\t\t\tl.add(rapport);\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t// Mise à jour du code etat : si erreur vaut true : on met tout\r\n\t\t\t\t// en erreur sinon, tout en ok\r\n\t\t\t\tfor (ArrayList<String> z : contentTemp) {\r\n\t\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.KO.toString());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.OK.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcontent.addAll(contentTemp);\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t}\r\n\t\t\t// enveloppe zip\r\n\t\t\telse if (f.getName().endsWith(\".zip\")) {\r\n\t\t\t\t// Inscription des fichier au contgenu de l'archive\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t\tInteger erreur = 0;\r\n\t\t\t\tString rapport = null;\r\n\t\t\t\tString etat = null;\r\n\t\t\t\t// vérifier si l'archive est illisible dans son ensemble\r\n\t\t\t\ttry {\r\n\t\t\t\t\tBufferedInputStream fis = new BufferedInputStream(new FileInputStream(f), READ_BUFFER_SIZE);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tZipArchiveInputStream tarInput = new ZipArchiveInputStream(fis);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// boucle sur les entries\r\n\t\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\t\tZipArchiveEntry currentEntry = tarInput.getNextZipEntry();\r\n\t\t\t\t\t\t\twhile (currentEntry != null) {\r\n\t\t\t\t\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\tl.add(f.getName());\r\n\t\t\t\t\t\t\t\tl.add(entrepot + currentEntry.getName());\r\n\t\t\t\t\t\t\t\tl.add(TraitementTypeFichier.DA.toString());\r\n\t\t\t\t\t\t\t\t// vérifier si l'entry est lisible (on appelle\r\n\t\t\t\t\t\t\t\t\t\t// nextEntry)\r\n\t\t\t\t\t\t\t\t\t\terreur = 0;\r\n\t\t\t\t\t\t\t\tetat = TraitementEtat.OK.toString();\r\n\t\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tcurrentEntry = tarInput.getNextZipEntry();\r\n\t\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t\terreur = 2;\r\n\t\t\t\t\t\t\t\t\tetat = TraitementEtat.KO.toString();\r\n\t\t\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ENTRY.toString();\r\n\t\t\t\t\t\t\t\t\tcurrentEntry = null;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// vérifier si l'entry suivante est accessible;\r\n\t\t\t\t\t\t\t\t// sinon on met\r\n\t\t\t\t\t\t\t\t// à vide pour arreter la boucle\r\n\t\t\t\t\t\t\t\tl.add(etat);\r\n\t\t\t\t\t\t\t\tl.add(rapport);\r\n\t\t\t\t\t\t\t\tl.add(null);\r\n\t\t\t\t\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\ttarInput.close();\r\n\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\terreur = 1;\r\n\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t}\r\n\t\t\t\t// Inscription de l'archive\r\n\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\tl.add(f.getName());\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tif (erreur == 1) {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.AC.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.A.toString());\r\n\t\t\t\t}\r\n\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\tl.add(TraitementEtat.KO.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementEtat.OK.toString());\r\n\t\t\t\t}\r\n\t\t\t\tl.add(rapport);\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t// Mise à jour du code etat : si erreur vaut true : on met tout\r\n\t\t\t\t// en erreur sinon, tout en ok\r\n\t\t\t\tfor (ArrayList<String> z : contentTemp) {\r\n\t\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.KO.toString());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.OK.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcontent.addAll(contentTemp);\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t} else if (f.getName().endsWith(\".gz\")) {\r\n\t\t\t\t// Inscription des fichier au contgenu de l'archive\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t\tInteger erreur = 0;\r\n\t\t\t\tString rapport = null;\r\n\t\t\t\tString etat = null;\r\n\t\t\t\t// vérifier si l'archive est illisible dans son ensemble\r\n\t\t\t\ttry {\r\n\t\t\t\t\tBufferedInputStream fis = new BufferedInputStream(new FileInputStream(f), READ_BUFFER_SIZE);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tGZIPInputStream tarInput = new GZIPInputStream(fis);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\t\t\t\tl.add(f.getName());\r\n\t\t\t\t\t\t\tl.add(ManipString.substringBeforeLast(f.getName(), \".gz\"));\r\n\t\t\t\t\t\t\tl.add(TraitementTypeFichier.DA.toString());\r\n\t\t\t\t\t\t\t// vérifier si l'entry est lisible\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\ttarInput.read();\r\n\t\t\t\t\t\t\t\t// for (int c = tarInput.read(); c != -1; c =\r\n\t\t\t\t\t\t\t\t// tarInput.read()) {}\r\n\t\t\t\t\t\t\t\terreur = 0;\r\n\t\t\t\t\t\t\t\tetat = TraitementEtat.OK.toString();\r\n\t\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\terreur = 2;\r\n\t\t\t\t\t\t\t\tetat = TraitementEtat.KO.toString();\r\n\t\t\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ENTRY.toString();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tl.add(etat);\r\n\t\t\t\t\t\t\tl.add(rapport);\r\n\t\t\t\t\t\t\tl.add(null);\r\n\t\t\t\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t\t\t\trapport = null;\r\n\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\ttarInput.close();\r\n\t\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\terreur = 1;\r\n\t\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t\t\tfis.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\terreur = 1;\r\n\t\t\t\t\trapport = TraitementRapport.INITIALISATION_CORRUPTED_ARCHIVE.toString();\r\n\t\t\t\t}\r\n\t\t\t\t// Inscription de l'archive\r\n\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\tl.add(f.getName());\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tif (erreur == 1) {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.AC.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementTypeFichier.A.toString());\r\n\t\t\t\t}\r\n\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\tl.add(TraitementEtat.KO.toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tl.add(TraitementEtat.OK.toString());\r\n\t\t\t\t}\r\n\t\t\t\tl.add(rapport);\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tcontentTemp.add(l);\r\n\t\t\t\t// Mise à jour du code etat : si erreur vaut true : on met tout\r\n\t\t\t\t// en erreur sinon, tout en ok\r\n\t\t\t\tfor (ArrayList<String> z : contentTemp) {\r\n\t\t\t\t\tif (erreur > 0) {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.KO.toString());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tz.set(headers.indexOf(\"etat\"), TraitementEtat.OK.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcontent.addAll(contentTemp);\r\n\t\t\t\tcontentTemp.clear();\r\n\t\t\t} else {// cas rebus, hors tar.gz, zip et gz\r\n\t\t\t\tl = new ArrayList<String>();\r\n\t\t\t\tl.add(f.getName() + \".tar.gz\");\r\n\t\t\t\tl.add(f.getName());\r\n\t\t\t\tl.add(TraitementTypeFichier.D.toString());\r\n\t\t\t\tl.add(TraitementEtat.OK.toString());\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tl.add(null);\r\n\t\t\t\tStaticLoggerDispatcher.info(\"Insertion du cas rebus : \" + l.toString(), LOGGER);\r\n\t\t\t\tcontent.add(l);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn new GenericBean(headers, types, content);\r\n\t}", "title": "" }, { "docid": "7acf1be80f47e720a2d0d313161bcd38", "score": "0.4828745", "text": "public static void main(String[] args) throws FileNotFoundException {\n\t\tseer = new Scanner(new File(filename));\r\n\t\tT = seer.nextInt();\r\n\t\tfor(i = 0; i < T; i++){\r\n\t\t\tn = seer.nextInt();\r\n\t\t\tint sumdifs = 0;\r\n\t\t\tint maxdif = 0;\r\n\t\t\tint last = 0;\r\n\t\t\tint curr = 0;\r\n\t\t\tnumlist = new ArrayList<Integer>();\r\n\t\t\tfor(int j = 0; j < n; j++){\r\n\t\t\t\tcurr = seer.nextInt();\r\n\t\t\t\tnumlist.add(curr);\r\n\t\t\t\tif(last > curr){\r\n\t\t\t\t\tint currdif = last-curr;\r\n\t\t\t\t\tsumdifs += last-curr;\r\n\t\t\t\t\tif(maxdif < currdif)\r\n\t\t\t\t\t\tmaxdif = currdif;\r\n\t\t\t\t}\r\n\t\t\t\tlast = curr;\r\n\t\t\t}\r\n\t\t\tint sum2 = 0;\r\n\t\t\tfor(int ind = 0; ind < n-1; ind++){\r\n\t\t\t\tsum2 += (int) Math.min(numlist.get(ind), maxdif);\r\n\t\t\t}\r\n\t\t\tSystem.out.printf(\"Case #%d: %d %d\\n\",i+1,sumdifs,sum2);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "70e55c1f81cc1900f68a2c5116a085ae", "score": "0.48266384", "text": "default Builder perChunk(int count) {\n return perChunk(VariableAmount.fixed(count));\n }", "title": "" }, { "docid": "70e55c1f81cc1900f68a2c5116a085ae", "score": "0.48266384", "text": "default Builder perChunk(int count) {\n return perChunk(VariableAmount.fixed(count));\n }", "title": "" }, { "docid": "f7873e0619c1da48d6fb07f032f8edf1", "score": "0.48191458", "text": "private void constructFile() {\n\n FileOutputStream fop = null;\n File file;\n File dir;\n try {\n dir = new File(\"./\" + peer.getPeerId() + \"/Restored Files\");\n dir.mkdir();\n file = new File(\"./\" + peer.getPeerId() + \"/Restored Files/\" + fileName);\n fop = new FileOutputStream(file, true);\n for (int i = 0; i < chunks.size(); i++) {\n System.out.println((chunks.get(Integer.toString(i))).length);\n fop.write(chunks.get(Integer.toString(i)));\n }\n fop.flush();\n fop.close();\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n try {\n if (fop != null) {\n fop.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }\n }", "title": "" }, { "docid": "5593b4c263b99016a642a918f682ac67", "score": "0.48113227", "text": "public static File createFile()\r\n{\r\n File f= null;\r\n final int MAX = 10;\r\n\r\n List<Integer> list = new ArrayList<Integer>();\r\n for (int i = 1; i < 10; i++) {\r\n list.add(i);\r\n }\r\n Collections.shuffle(list);\r\n try {\r\n for (int i = 1; i < 10; i++) {\r\n // create files here\r\n String temp = Integer.toString(i)+\".txt\";\r\n f= new File(temp);\r\n String fileContent = \"Hello this is my\" + i + \"file\";\r\n FileWriter fileWriter = new FileWriter(f);\r\n fileWriter.write(fileContent);\r\n fileWriter.close();\r\n return f;\r\n }\r\n } catch(IOException e) {e.printStackTrace();}\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "4a6833b889c8e373d872445f769f712f", "score": "0.48074305", "text": "int getChunks();", "title": "" }, { "docid": "05124f6581974e4f6d1236d7ff35252f", "score": "0.4805687", "text": "public long NewFileNumber() {\n\t\treturn next_file_number_++;\n\t}", "title": "" }, { "docid": "dd29d666586ad0768968d118df26b8ec", "score": "0.48048064", "text": "public static List<String> getFiles() {\n List<String> files = new ArrayList<>();\n for(int i = 0; i < 50; i++) {\n files.add(\"text1.txt\");\n files.add(\"text2.txt\");\n }\n return files;\n }", "title": "" }, { "docid": "eba8694045f924a36077f05d646353c7", "score": "0.48042956", "text": "ProjectFilesSplitJob createProjectFilesSplitJob(String user, Project project, CaArrayFileSet fileSet,\n DataImportOptions dataImportOptions, FileManagementJobSubmitter submitter);", "title": "" }, { "docid": "207fea22294fc6c605d3b0ac8d5f3f2c", "score": "0.47947842", "text": "public static void readFilesIntoArrayLists(String file, ArrayList<ArrayList<String>> array, int numCheck) throws IOException {\r\n \r\n String filename1 = file;\r\n String fileElements[];\r\n File inputFile1 = new File(filename1);\r\n Scanner in = new Scanner(inputFile1);\r\n \r\n for(int i = 0; i < numCheck; i++) {\r\n \r\n array.add(new ArrayList<>());\r\n \r\n }\r\n \r\n if (inputFile1.exists()) {\r\n\r\n while(in.hasNext()) {\r\n\r\n fileElements = (in.nextLine()).split(\",\");\r\n\r\n for (int g = 0; g < numCheck; g++) {\r\n\r\n array.get(g).add(fileElements[g]);\r\n\r\n }\r\n\r\n } \r\n\r\n in.close();\r\n\r\n }\r\n \r\n }", "title": "" }, { "docid": "a4e80360b3de13d3a2f070605603568f", "score": "0.47907457", "text": "public Task<Integer> createTask(IntStream nidList, Path file) throws FileNotFoundException;", "title": "" }, { "docid": "24cc1178f28367970151f1e358c2cc4d", "score": "0.47792992", "text": "static File[] xmlFiles(File directory,String baseName,int thresh){\n File[] ret = new File[2];\n String s = Integer.toString(thresh);\n String microClusterFileName = cleanName(baseName +s + \"_Clusters.xml\");\n \n ret[0] = new File(directory,microClusterFileName);\n String BHCTreeFileName = cleanName(baseName + s +\"_BHCTree.xml\");\n ret[1] = new File(directory,BHCTreeFileName);\n \n \n return ret;\n }", "title": "" }, { "docid": "09a9c490832f4ffa248422ee729b90a1", "score": "0.4776944", "text": "private void doGenerateNonEmptyClassFilesPerScenario(){\n\t\tFile[] scenarioFolders = CodeParser.SCENARIOS_DIRECTORY.listFiles(new FilenameFilter() {\n\t\t\t@Override\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\treturn dir.isDirectory() && !name.startsWith(\".\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(File folder : scenarioFolders){\n\t\t\tprojectFilesMap.put(folder.getName(), CodeParser.filterForJavaFiles(folder).size());\n\t\t}\n\t\t\n\t\tQuery q = new Query(\"INSERT IGNORE INTO project_no_empty_files_count VALUES (?, ?)\", Util.mcon);\n\t\tps = q.getPS();\n\t\t\n\t\tprojectFilesMap.forEach(this::insert);\n\t\t\n\t\tq.disconnect();\n\t}", "title": "" }, { "docid": "9849dacdab53a1466cd0439e8acd31d9", "score": "0.47744432", "text": "public WordCount(int workerNum, String[] filenames) throws IOException {\n this.num_workers = workerNum;\n this.num_files = filenames.length;\n\n this.pending_queue = new ConcurrentLinkedQueue<>();\n for(String name : filenames){ // fill queue\n pending_queue.add(name);\n }\n this.pID_setter = Helpers.range_iterator(5,5 + 100); // just need to be a large range. actual parameters not important\n\n //thread safe data structures\n this.pID_file_map = new ConcurrentHashMap<>();\n this.pID_list = Collections.synchronizedList(new ArrayList<String>());\n this.processlist = Collections.synchronizedList(new ArrayList<Process>());\n this.output_files = Collections.synchronizedList(new ArrayList<String>());\n }", "title": "" }, { "docid": "d2ec02ea401c596184f4c1b4db54989f", "score": "0.47734204", "text": "public int numOfFilesToWrite(){\n return filesPath.size();\n }", "title": "" }, { "docid": "8da329c0b8026e898664c702149e8c77", "score": "0.4770097", "text": "private void printFiles() {\r\n if (dirFileCount > 0) {\r\n for (int i = 0; i < dirFileCount; i++) {\r\n File file = files[i];\r\n printIndent(dirFileCount == (i + 1));\r\n println(file.getName());\r\n }\r\n totalFileCount += dirFileCount;\r\n }\r\n }", "title": "" }, { "docid": "f1028a25ff8004d4a5736d2b20af2a6a", "score": "0.47690123", "text": "private static Collection<String> getUsers(String dataFile, int numberOfUsers) throws IOException {\n\n\t\tDirectoryStream<Path> directoryStream = Files.newDirectoryStream(Paths.get(dataFile).toAbsolutePath());\n\n\t\treturn StreamSupport.stream(directoryStream.spliterator(), false)\n\t\t\t\t.limit(numberOfUsers)\n\t\t\t\t.parallel()\n\t\t\t\t.map((path) -> {\n\n\t\t\t\t\treturn path.getFileName().toString();\n\n\t\t\t\t}).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "354374a0125a0e58507d04a54de91c20", "score": "0.47675398", "text": "com.wolf.javabean.SystemNet.Files getFiles(int index);", "title": "" }, { "docid": "71e51b6baa57364d6fc6bd920cf07afd", "score": "0.47656736", "text": "public void createFiles(String input) throws IOException{\n Scanner scanner;\n String en_list = \"\", bn_list = \"\", hi_list = \"\", ta_list = \"\";\n String acro_list = \"\", univ_list = \"\", undef_list = \"\", ne_list = \"\";\n int count = 0;\n int flag1, flag2, flag3, flag4; \n flag1 = flag2 = flag3 = flag4 =1;\n scanner = new Scanner(input);\n while(scanner.hasNextLine()){\n String newline = scanner.nextLine();\n if(newline.length()!=0){\n String arr[] = newline.split(\"\\t\");\n if(arr.length==3)\n {\n count+=1;\n String word = arr[0];\n String lang = arr[1];\n String post = arr[2];\n if(lang.equalsIgnoreCase(\"en\")||lang.equalsIgnoreCase(\"en+bn_suffix\")||lang.equalsIgnoreCase(\"E\")){\n en_list+= word+\"\\t\"+post+\"\\n\";\n flag1 = 0;\n }\n else if(lang.equalsIgnoreCase(\"bn\")){\n bn_list+= word+\"\\t\"+post+\"\\n\";\n flag2 = 0;\n }\n else if(lang.equalsIgnoreCase(\"hi\")){\n hi_list+= word+\"\\t\"+post+\"\\n\";\n flag3 = 0;\n }\n else if(lang.equalsIgnoreCase(\"T\")){\n ta_list+= word+\"\\t\"+post+\"\\n\";\n flag4 = 0;\n }\n else {\n }\n }\n }\n else{\n if (flag1==0){\n en_list +=\"\\n\";\n flag1 = 1;\n }\n if (flag2==0){\n bn_list +=\"\\n\";\n flag2 = 1;\n }\n if (flag3==0){\n hi_list +=\"\\n\";\n flag3 = 1;\n }\n if (flag4==0){\n ta_list +=\"\\n\";\n flag4 = 1;\n }\n }\n } \n ReaderWriter rw = new ReaderWriter();\n \n //System.out.println(en_list);\n RemoveExtraLines rel = new RemoveExtraLines();\n \n rw.appendToFile(rel.removeBlankLines(en_list), \"English_forCRF1\", \"txt\");\n rw.appendToFile(rel.removeBlankLines(bn_list), \"Bengali_forCRF1\", \"txt\");\n rw.appendToFile(rel.removeBlankLines(hi_list), \"Hindi_forCRF1\", \"txt\");\n rw.appendToFile(rel.removeBlankLines(ta_list), \"Tamil_forCRF1\", \"txt\");\n \n //rw.appendToFile(rel.removestartingBlanks(rel.removeBlankLines(en_list)), \"English_forCRF\", \"txt\");\n //rw.appendToFile(rel.removestartingBlanks(rel.removeBlankLines(bn_list)), \"Bengali_forCRF\", \"txt\");\n //rw.appendToFile(rel.removestartingBlanks(rel.removeBlankLines(hi_list)), \"Hindi_forCRF\", \"txt\");\n //rw.appendToFile(rel.removestartingBlanks(rel.removeBlankLines(ta_list)), \"Tamil_forCRF\", \"txt\");\n }", "title": "" }, { "docid": "dd72172818d5cb40e3480af4bf4d9e7a", "score": "0.4760524", "text": "public void processData() throws IOException {\n\t\ttry {\n\t\t\tfor(int i = 0; i < dataSets.length; i++){\n\t\t\t\tsplitData(unProcessedFiles[i]);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "f42c12192be27c96eba7af40c47c48ff", "score": "0.47549593", "text": "public BufferedImage[] getImageChunks()\n\t{\n\t\tFile file = new File(filePath); \n FileInputStream fileIn;\n BufferedImage image = null;\n \n\t\ttry {\n\t\t\t\n\t\t\tfileIn = new FileInputStream(file);\n\t\t\timage = ImageIO.read(fileIn); //reading the image file\n\t\t\timage = resizeImage(image); //resize for large images\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n int rows = 4; //The values for rows and cols variables\n int cols = 4;\n int chunks = rows * cols;\n\n int chunkWidth = image.getWidth() / cols; // determines the chunk width and height\n int chunkHeight = image.getHeight() / rows;\n int count = 0;\n BufferedImage imgs[] = new BufferedImage[chunks]; //Image array to hold image chunks\n for (int x = 0; x < rows; x++) {\n for (int y = 0; y < cols; y++) {\n \t\n //Initialize the image array with image chunks (in order)\n imgs[count] = new BufferedImage(chunkWidth, chunkHeight, image.getType());\n\n // draws the image chunk \n Graphics2D gr = imgs[count++].createGraphics();\n gr.drawImage(image, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n gr.dispose();\n }\n }\n \n return imgs;\n\t}", "title": "" }, { "docid": "6a964ab90b3da7687c6611a4087b43b5", "score": "0.47497934", "text": "void processFile(Long id, MultipartFile file);", "title": "" }, { "docid": "56e517a1fc3a3b89e631474e52cc97fc", "score": "0.47328848", "text": "public static void main(String[] args) {\n mulitEnFile(args[0],args[1]);\n\n\n\n }", "title": "" }, { "docid": "8ddbb1cffbf8f779bed00a1eafbf5d39", "score": "0.4725639", "text": "private static List<Integer> fetchWordCounts() throws Exception {\n\t\t//Fetch sorted list of all the file in the input directory\n\t\tString[] sortedFileList = fetchAllFiles();\n\t\tList<Integer> wordCountPerline = new ArrayList<Integer>();\n\t\t//Iterating through the file one by one in sorted order\n\t\tfor (String file : sortedFileList) {\n\t\t\ttry {\n\t\t\t\t//Reading first line of the file and storing the count of words per line\n\t\t\t\tFileInputStream fis = new FileInputStream(inputDirectory+\"/\"+file);\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fis));\n\t\t\t\tString line = null;\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tString[] wordCount = line.split(\" \");\n\t\t\t\t\twordCountPerline.add(wordCount.length);\n\t\t\t\t}\n\t\t\tbr.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Excetion while reading file \" + file);\n\t\t\t}\n\t\t}\n\n\t\t//Calculating the median\n\t\treturn wordCountPerline;\n\t}", "title": "" } ]
d5cbf5a0084689aadc2980a528c02d66
Multiply this matrix by the tuple t and and place the result into the tuple "result". This function is equivalent to: result = this [ t.x ] [ t.y ] [ 1 ]
[ { "docid": "add761fd32427b4fd439bf79cd352e11", "score": "0.6693641", "text": "public void transform(Tuple2D<?> tuple, Tuple2D<?> result) {\n\t\tassert tuple != null : AssertMessages.notNullParameter(0);\n\t\tassert result != null : AssertMessages.notNullParameter(1);\n\t\tresult.set(\n\t\t\t\tthis.m00 * tuple.getX() + this.m01 * tuple.getY() + this.m02,\n\t\t\t\tthis.m10 * tuple.getX() + this.m11 * tuple.getY() + this.m12);\n\t}", "title": "" } ]
[ { "docid": "5779b0b366f3d613215bc749116853a3", "score": "0.60367066", "text": "public void multiplyBy(Matrix multiplyByThis) {\n\t\tMatrix out = null;\n\t\tout = Matrix.Multiply(multiplyByThis, this);\t\n\n\t\tthis.row = out.row;\n\t\tthis.column = out.column;\n\t\tthis.rowIndex = out.rowIndex;\n\t\tthis.isSparse = out.isSparse;\n\t\tthis.isComplex = out.isComplex;\n\t\tthis.reMatrix = out.reMatrix;\n\t\tthis.imMatrix = out.imMatrix;\n\t}", "title": "" }, { "docid": "e5b40732997a4493a2c83f9b98eaf2db", "score": "0.5804038", "text": "public void transform(Tuple2D<?> tuple) {\n\t\tassert tuple != null : AssertMessages.notNullParameter();\n\t\tfinal double x = this.m00 * tuple.getX() + this.m01 * tuple.getY() + this.m02;\n\t\tfinal double y = this.m10 * tuple.getX() + this.m11 * tuple.getY() + this.m12;\n\t\ttuple.set(x, y);\n\t}", "title": "" }, { "docid": "b3e9f3786071adfb63652347a0083bfb", "score": "0.5778585", "text": "public Matrix multiplyTranspose() {\r\n\t\tdouble[][] matrix = new double[numElements][numElements];\r\n\t\tfor (int x = 0; x < numElements; x++)\r\n\t\t\tfor (int y = 0; y < numElements; y++) {\r\n\t\t\t\tmatrix[x][y] = getElement(x) * getElement(y);\r\n\t\t\t}\r\n\t\treturn Matrix.dToMatrix(matrix);\r\n\t}", "title": "" }, { "docid": "952e7fa188a68032e0c5ef50fc9037a4", "score": "0.57461786", "text": "public void apply(Matrix m) {\n\t\tgetFromMatrix(CMatrix.mul(m, this)); // assigns result of product (it's a matrix) to self vector.\n\t}", "title": "" }, { "docid": "94f6f66933b5967ec2b3e874ff9c3348", "score": "0.57163507", "text": "Matrix multiply(Matrix other);", "title": "" }, { "docid": "34272c18af622d8272d5513a6e0a2574", "score": "0.55913574", "text": "private Vector matMulLayer(Vector prevResult){\n Vector out=new Vector(this.shape[1]);\n for(int i=0;i<this.shape[1];i++){\n double sum=0;\n for(int j=0;j<this.shape[0];j++){\n sum+=this.weights.data[i][j]*prevResult.data[j];\n }\n sum+=this.bias.data[i];\n out.set(i,sum);\n }\n return out;\n }", "title": "" }, { "docid": "6fb8b816fb9783ef9edcd144a58159d7", "score": "0.558101", "text": "private float[] matrixMultiply(float[] input, float[][] rotationMatrix) {\n\t\tfloat[] result = new float[3];\n\t\tfor (int spalte = 0; spalte < 3; spalte++) {\n\t\t\tint sum = 0;\n\t\t\tfor (int zeile = 0; zeile < 3; zeile++) {\n\t\t\t\tsum += input[zeile] * rotationMatrix[zeile][spalte];\n\t\t\t}\n\t\t\t\n\t\t\tresult[spalte] = sum;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e965d360b45432b2c3234a54d4ffda77", "score": "0.55498004", "text": "public static Point Multiply(Point point, Matrix matrix) \r\n { \r\n return matrix.Transform(point);\r\n }", "title": "" }, { "docid": "721797410cd8842a2f8b29d75f0e66c3", "score": "0.554911", "text": "Matrix scalarMult(double x) {\n Matrix M = this.copy();\n for(int i = 1; i <= M.getSize(); i++) {\n M.row[i].moveFront();\n while(M.row[i].index() >= 0) {\n Entry temp = (Entry) M.row[i].get();\n M.changeEntry(i, temp.column, (x * temp.value));\n M.row[i].moveNext();\n }\n }\n return M;\n }", "title": "" }, { "docid": "8b53300b413675b4bde13abcf54ffd3c", "score": "0.5544281", "text": "public void mult() {\n if (xm != yn) {\n System.err.println(\"Multiplication is not possible for these two matrices\");\n return;\n }\n resN = xn;\n resM = ym;\n for (int i = 0; i < resN; i++) {\n for (int j = 0; j < resM; j++) {\n res[i][j] = 0;\n }\n }\n for (int i = 0; i < resN; i++) {\n for (int j = 0; j < resM; j++) {\n for (int k = 0; k < xm; k++) {\n res[i][j] += x[i][k] * y[k][j];\n }\n }\n }\n printMatrix(res,resN,resM);\n }", "title": "" }, { "docid": "e5868a19c6324e52ac92f4fde18cb126", "score": "0.5503257", "text": "public static Point operator * (Point point, Matrix matrix) \r\n {\r\n return matrix.Transform(point); \r\n }", "title": "" }, { "docid": "e0145133639725d186c845f4e870b269", "score": "0.5455354", "text": "public Vector multiply(Vector B){\r\n///=====> TO COMPLETE <===========///\r\n\t//The multiply routine should be optimal involving only non-zero elements in the multiplication.\r\n\tVector vector = new Vector(size);\r\n\tdouble num = 0.0;\r\n\tRowNode currentRow = top;\r\n\twhile(currentRow != null){\r\n\t\t\r\n\t\tColNode jcurrent = currentRow.col;\r\n\t\twhile (jcurrent!=null) {\r\n\t\t\t\r\n\t\t\tnum += jcurrent.entry*B.get(jcurrent.colindex);//if get(i,j) is not found then it returns 0\r\n\t\t\tjcurrent = jcurrent.next;\r\n\t\t}\r\n\tvector.set(currentRow.rowindex, num);\r\n\tnum = 0.0;\r\n\tcurrentRow = currentRow.next;\r\n\t}\r\n\treturn vector;\r\n}", "title": "" }, { "docid": "845ddd8078e755c6d9f912b4d7302572", "score": "0.5433335", "text": "public static void product(Matrix first, Matrix other, Matrix result) {\n\t\tif (first.height != other.width) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tfor (int n = 0; n < first.width*other.height; n++) {\n\t\t\tint i = n/other.height;\n\t\t\tint j = n - i*other.height;\n\t\t\t\n\t\t\tdouble sum = 0;\n\t\t\tfor (int k = 0; k < first.height; k++) {\n\t\t\t\tsum += first.matrix[i][k] * other.matrix[k][j];\n\t\t\t}\n\t\t\tresult.matrix[i][j] = sum;\n\t\t}\n\t}", "title": "" }, { "docid": "9204172023b530c4b8d369f248e157ff", "score": "0.53899264", "text": "public void matrixMult( Matrix n ) {\n\n\tdouble[][] tmp = new double[4][1];\n\n\tfor (int c=0; c<m[0].length; c++) {\n\t for (int r=0; r<4; r++) \n\t\ttmp[r][0] = m[r][c];\n\n\t for (int r=0; r<4; r++)\n\t\tm[r][c] = n.m[r][0] * tmp[0][0] +\n\t\t n.m[r][1] * tmp[1][0] +\n\t\t n.m[r][2] * tmp[2][0] +\n\t\t n.m[r][3] * tmp[3][0];\n\t}\n }", "title": "" }, { "docid": "1dd3ccd3950b200d4a38b4246a76181d", "score": "0.537562", "text": "public void multiplyBy(int scalar)\n {\n \t\t// Add your code here\n // Gets each row\n for(int i = 0; i < entries.size(); i++)\n { \n int size1 = 0;\n int size2 = 0;\n\n ArrayList<Entry> tempRow = new ArrayList<Entry>();\n // Saves row for each matrix\n ArrayList<Entry> currentRow1 = entries.get(i);\n\n int currentCol = -1;\n\n if(currentRow1 != null && (!currentRow1.isEmpty())) {\n size1 = currentRow1.size();\n }\n \n\n // Loads matrix 1 values into temp matrix\n for(int j = 0; j < size1; j++) {\n int value1 = 0;\n int colValue1 = 0;\n colValue1 = currentRow1.get(j).getColumn();\n value1 = currentRow1.get(j).getValue() * scalar;\n //System.out.println(value1);\n Entry newValue = new Entry(colValue1, value1);\n tempRow.add(newValue);\n }\n entries.set(i,tempRow);\n // end\n }\n\n }", "title": "" }, { "docid": "98be1090794ebbb807cac376dd3dbd87", "score": "0.5372663", "text": "public Matrix multiply(double x) {\n\t\tMatrix multMatrix = new Matrix(this.m, this.n);\n\t\tfor (int i = 0; i < this.m; i++) {\n\t\t\tfor (int j = 0; j < this.n; j++) {\n\t\t\t\t// multiplies each value by given scalar\n\t\t\t\tmultMatrix.matrix[i][j] = this.matrix[i][j] * x;\n\t\t\t}\n\t\t}\n\t\treturn multMatrix;\n\t}", "title": "" }, { "docid": "eea1864cba0f66977f600bc4849206b6", "score": "0.5372102", "text": "public void multiply(Matrix toMultiply) {\r\n\r\n // a should equal b in dimension\r\n if (!isSameSize(toMultiply)) {\r\n System.out.println(\"Columns and Rows of A must match \"\r\n + \"Columns and Rows of B.\");\r\n return;\r\n }\r\n\r\n for (int y = 0; y < rows; y++) {\r\n for (int x = 0; x < cols; x++) {\r\n data[y][x] *= toMultiply.data[y][x];\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e9bf5b301687bc136eb30ca640424a59", "score": "0.53657395", "text": "Matrix mult(Matrix M)\n\t{\n\t\tif (size != M.getSize()) \n\t\t{\n\t\t\tthrow new RuntimeException(\"Matrix Error: mult() called on matrices with different sizes\");\n\t\t}\n\n\t\tMatrix m = new Matrix(size);\n\t\tMatrix t = M.transpose();\n\t\tdouble sum;\n\n\t\tfor (int i = 1; i <= size; i++)\n\t\t{\n\t\t\tif (row[i].length() > 0)\n\t\t\t{\n\t\t\t\tfor (int j = 1; j <= size; j++)\n\t\t\t\t{\n\t\t\t\t\tif (t.row[j].length() > 0)\n\t\t\t\t\t{\t\n\t\t\t\t\t\tsum = dot(row[i], t.row[j]);\n\t\t\t\t\t\tm.changeEntry(i, j, sum);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn m;\n\t}", "title": "" }, { "docid": "e453b71d7a2b84a16795149eb8a214e7", "score": "0.5329581", "text": "public void mult (double a) {\r\n coord[0]*=a; coord[1]*=a;\r\n }", "title": "" }, { "docid": "09b780e887a8ab740c635581269debd1", "score": "0.5323316", "text": "public Matrix multiplyMatrix(Matrix other){\r\n Matrix ret = Matrix.duplicate(new Matrix(new double[this.numberOfRows][other.numberOfColumns]));\r\n if(ret.numberOfColumns != this.numberOfRows){\r\n System.out.println(\"Cannot multiply two Matrix like this\");\r\n return null;\r\n }\r\n int n = other.numberOfRows;\r\n for (int i = 0; i < ret.numberOfRows; i++){\r\n for(int j = 0; j < ret.numberOfColumns; j++){\r\n for(int k = 0; k < n; k++){\r\n ret.rows[i].assignAt(j, this.rows[i].valueAt(k) * other.rows[k].valueAt(j));\r\n }\r\n }\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "b85231c2993119de3f65145496d9cd96", "score": "0.5278419", "text": "Matrix mult(Matrix M) {\r\n\t\tif (getSize() != M.getSize()) {\r\n\t\t\tthrow new RuntimeException(\"\\\"Matrix Error: Cannot call mult() on matrices of different sizes\\\"\");\r\n\t\t}\r\n\t\tMatrix X = new Matrix(getSize());\r\n\t\tMatrix TransM = M.transpose();\r\n\r\n\t\tfor (int i = 0; i < this.getSize(); i++) { // multiplying two matrices\r\n\t\t\tList A = this.rowArray[i];\r\n\r\n\t\t\tList L = new List();\r\n\t\t\tfor (int j = 0; j < this.getSize(); j++) {\r\n\t\t\t\tList B = TransM.rowArray[j];\r\n\r\n\t\t\t\tif (!(A.length() == 0) && !(B.length() == 0)) { // if neither List is empty\r\n\t\t\t\t\tdouble product = dotProduct(A, B);\r\n\r\n\t\t\t\t\tif (!(product == 0.0)) { // if the product is non-zero\r\n\t\t\t\t\t\tL.append(new Entry(j + 1, product));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tX.rowArray[i] = L;\r\n\t\t\tX.NNZ += L.length();\r\n\t\t}\r\n\t\treturn X;\r\n\t}", "title": "" }, { "docid": "18670b76027f7e244fc9d6c30fbe2a00", "score": "0.52753156", "text": "public Matrix2d mult(Matrix2d a) {\n\t\treturn Matrix2d.mult(this,a);\n\t}", "title": "" }, { "docid": "bd4ca3845db07d3fb980f112c6e29a72", "score": "0.52586186", "text": "public static Matrix mult(Matrix a, Matrix b) {\r\n\t\treturn a.times(b);\r\n\t}", "title": "" }, { "docid": "b7bcddd391ce5f6766287d7fc81f5bd9", "score": "0.5257629", "text": "public static Matrix mult(Matrix a, Matrix b) {\r\n if(a.columns != b.rows) {\r\n return null;\r\n } else {\r\n\r\n Matrix c = new Matrix(a.rows, b.columns);\r\n\r\n\r\n for(int i = 0; i < c.rows; i++) {\r\n for(int j = 0; j < c.columns; j++) {\r\n float sum = 0;\r\n\r\n for(int k = 0; k < a.columns; k++) {\r\n sum += a.matrix[i][k] * b.matrix[k][j];\r\n }\r\n\r\n c.matrix[i][j] = sum;\r\n }\r\n }\r\n\r\n return c;\r\n }\r\n }", "title": "" }, { "docid": "47043bed31e28d2005ee8852b7fd0bff", "score": "0.5246237", "text": "public Matrix2d mult(double x) {\n\t\treturn Matrix2d.mult(this,x);\n\t}", "title": "" }, { "docid": "901d25d9bf43675a7c0988e69d5fb909", "score": "0.5230027", "text": "public static ElliottMatrix mult(ElliottMatrix one, ElliottMatrix two) throws MatrixException {\r\n if (one == null || two == null || one.width != two.height) {\r\n throw new MatrixException(\"Cannot multiply matrices, either null parameters or incompatible matrices\");\r\n }\r\n //Determine size of product matrix\r\n int correctHeight = one.height - 1;\r\n int correctWidth = two.width - 1;\r\n ElliottMatrix productMatrix = new ElliottMatrix(correctWidth, correctHeight);\r\n\r\n for (int i = 1; i < one.height; i++) {\r\n for (int j = 1; j < two.width; j++) {\r\n double newVal = 0;\r\n for (int k = 1; k < one.width; k++) {\r\n newVal += one.get(i, k) * two.get(k, j);\r\n }\r\n productMatrix.set(i, j, newVal);\r\n }\r\n }\r\n return productMatrix;\r\n }", "title": "" }, { "docid": "cb03b0a8ee67170e7658ed52635657dc", "score": "0.52132285", "text": "public Matrix multiply (double scalar) {\n\t\tMatrix temp = new Matrix (matrix);\n\t\tfor (int i=0; i < matrix.length; i++) {\n\t\t\tfor (int j=0; j < matrix[i].length; j++) {\n\t\t\t\ttemp.matrix[i][j] *= scalar;\n\t\t\t}\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "4dffc29e119d060f002a6f7c7f3aac5c", "score": "0.52053654", "text": "public static Matrix2d mult(Matrix2d a, double x) {\n\t\tMatrix2d c = new Matrix2d(a.m,a.n);\n\t\tfor (int i = 0; i < a.m; i++) {\n\t\t\tfor (int j = 0; j < a.n; j++) {\n\t\t\t\tc.d[i][j] = a.d[i][j] * x; \n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "title": "" }, { "docid": "36ef65e5c72fae2f3af9005f0eba3006", "score": "0.51761943", "text": "BetaMatrix multiplyBy(double q) {\n\tfor(Vector<Coef> v: matrix) {\n\t if (v!=null) {\n\t\tfor(Coef c: v) c.value *= q;\n\t }\n\t}\n\treturn this;\n }", "title": "" }, { "docid": "66e4c083976ab4fdb8bb73ea3cffc8ad", "score": "0.5167054", "text": "public Matrix scalarMult(double x) {\n\t\tMatrix product = new Matrix(n);\n\t\tfor (int i = 1; i < getSize() + 1; i++) {\n\t\t\tmatrixArray[i].moveFront();\n\t\t\twhile (matrixArray[i].index() >= 0) {\n\t\t\t\tEntry E = (Entry) matrixArray[i].get();\n\t\t\t\tproduct.changeEntry(i, E.position, E.value * x);\n\t\t\t\tmatrixArray[i].moveNext();\n\t\t\t}\n\t\t}\n\t\treturn product;\n\t}", "title": "" }, { "docid": "50a793ba8f1c452e07291719cef46f70", "score": "0.51654625", "text": "public Matrix mult(Matrix M)\n\t{\n\t\tif(M.getSize() != this.n)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Error: Multiply called on two arrays of different sizes.\");\n\t\t}\n\t\tMatrix product = new Matrix(n);\n\t\tM = M.transpose();\n\t\t\n\t\tfor(int i = 1; i < n + 1; i++)\n\t\t{\n\t\t\tfor(int j = 1; j < n + 1; j++)\n\t\t\t{\n\t\t\t\tproduct.changeEntry(i, j, dot(M.matrixArray[j],matrixArray[i]));\n\t\t\t}\n\t\t}\n\t\treturn product;\n\t}", "title": "" }, { "docid": "77718bdfee270db386337e68e34fd87b", "score": "0.5157486", "text": "public void multiply(double value) {\n\t\t\n\t\tfor (int n = 0; n < this.width*this.height; n++) {\n\t\t\tint i = n/this.height;\n\t\t\tint j = n - i*this.height;\n\t\t\tmatrix[i][j] *= value;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "060837aa67a999674a5553ea12eaebfe", "score": "0.5156499", "text": "default Matrix transpose() {\n // Answer \n int numRowsT = this.getNumRows();\n int numColumnsT = this.getNumColumns();\n Matrix MatrixT = Matrix.create(numColumnsT, numRowsT);\n for(int r=0; r<numRowsT; r++){\n for(int c=0; c< numColumnsT; c++){ \n MatrixT.set(c, r, this.get(r,c));\n }\n } \n return MatrixT;\n }", "title": "" }, { "docid": "3543047c0ac27dce0339a8af9c2cd5da", "score": "0.51504195", "text": "public A6Row setAmultV(A6Row A, double V) {\r\n // mult each member set of 2 rows each A by corresponding B\r\n for (int m : d01) {\r\n for (int n : ASECS) {\r\n // separate each operation to localize null object errors\r\n set(m, n,\r\n A.get(m, n)\r\n * V);\r\n set(m + 2, n, A.get(m + 2, n) * V);\r\n set(m + 4, n, A.get(m + 4, n) * V);\r\n }\r\n }\r\n return this;\r\n }", "title": "" }, { "docid": "d8cddfc5be0f343117a8d6facf992d34", "score": "0.510926", "text": "public Complex mul(Complex that) {\n return new Complex(this.x * that.x - this.y * that.y, this.x * that.y + this.y * that.x);\n }", "title": "" }, { "docid": "9732acb0df6e3a70f6b5a1f9af009ad0", "score": "0.5104003", "text": "public void multiply(android.renderscript.Matrix4f rhs) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "d84e75bb5f14bfb73265d1579ad71a8a", "score": "0.50833064", "text": "public Polynomial multiply(Polynomial p){\r\n\t\tPolynomial a =new Polynomial();\r\n\r\n\t\tfor(int i=0;i<this.coefficient.length/2;i++){\r\n\t\t\tfor(int j=0;j<p.coefficient.length/2;j++){\r\n\r\n\t\t\t\ta.coefficient[(i+j)]+=this.coefficient[i]*p.coefficient[j];\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn a;\r\n\t}", "title": "" }, { "docid": "3a2df59a553064bef971fe1c8af3bf55", "score": "0.508033", "text": "public LLInt es_multiply(LLInt y) {\n\t\tif(y.size == 0 || this.size == 0){\n\t\t\treturn new LLInt();\n\t\t}\n\t\tLLInt res = this.multi_single_node(y.firstNode);\n\t\tint i = 1;\n\t\tfor(Node node = y.firstNode.next; node != null; node = node.next){\n\t\t\tres = res.add((this.multi_single_node(node)).leftMove(i));\n\t\t\ti++;\n\t\t}\n\t\tif(y.isNegative){\n\t\t\tres.isNegative = !res.isNegative;\n\t\t}\n\t\treturn res;\n\t\t\n\t}", "title": "" }, { "docid": "de2531061865109e0fdb4cdb80b63945", "score": "0.5073953", "text": "public MathMatrix getTranspose(){\n \t\n \t//Take a row and switch i and j values into new matrix. Take Col and switch i and j values into new matrix.\n \tMathMatrix matrix = new MathMatrix(this.numCols(), this.numRows(), 0);\n \tfor(int i = 0; i < values.length; i++)\n \t{\n \t\tfor(int j = 0; j < values[0].length; j++)\n \t\tmatrix.changeElement(j,i,values[i][j]);\n \t}\n return matrix; //this return can be altered\n }", "title": "" }, { "docid": "f97d2b5f9fe3f1be5cb20eb1f3a7fa5b", "score": "0.50724643", "text": "private static Matrix multiply(Matrix matrix2, double i) {\n\t\tfor(int k = 0; k<matrix2.matrix.length; k++) {\n\t\t\tfor(int j = 0; j<matrix2.matrix[k].length; j++) {\n\t\t\t\tmatrix2.matrix[k][j] *= i;\n\t\t\t}\n\t\t}\n\t\treturn matrix2;\n\t}", "title": "" }, { "docid": "34bd375b7c020e5f5e197d5291ce1947", "score": "0.50674206", "text": "public Matrice mult(Matrice m2) {\r\n if (this.getNbrCol() != m2.getNbrLig()) {\r\n throw new Error(\"tailles incompatibles pour mult\");\r\n }\r\n Matrice res = new Matrice(this.getNbrLig(), m2.getNbrCol());\r\n for (int i = 0; i < res.getNbrLig(); i++) {\r\n for (int j = 0; j < res.getNbrCol(); j++) {\r\n double cur = 0;\r\n for (int k = 0; k < this.getNbrCol(); k++) {\r\n cur = cur + this.getMij(i, k) * m2.getMij(k, j);\r\n }\r\n res.setMij(i, j, cur);\r\n }\r\n }\r\n return res;\r\n }", "title": "" }, { "docid": "91a1b840bab775387532b80bf5ea1adc", "score": "0.5048938", "text": "public Matrix multiply(Matrix m) {\n\t\tMatrix multMatrix = new Matrix(this.m, m.n);\n\t\tif (this.n == m.m) {\n\t\t\t// 1st matrix needs as many rows as 2nd matrix has columns\n\t\t\tfor (int i = 0; i < this.m; i++) {\n\t\t\t\tfor (int j = 0; j < m.n; j++) {\n\t\t\t\t\tfor (int k = 0; k < m.m; k++) {\n\t\t\t\t\t\tmultMatrix.matrix[i][j] += this.matrix[i][k] * m.matrix[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Error, matrices cannot be multiplied due to mismatched sizes\");\n\t\t}\n\t\treturn multMatrix;\n\t}", "title": "" }, { "docid": "f7a654fa04ca22016711965d3f37846d", "score": "0.50417095", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic Integer apply(Map<String, Object> t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInteger i = (Integer) t.get(\"x\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i * i;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "a68f97767df722b871b68b9e03317d0e", "score": "0.5032885", "text": "public MatrixMultiplication(double[][] matrix) {\n super(matrix);\n }", "title": "" }, { "docid": "6a0f9ef8467b6dd35c2b16562613ea57", "score": "0.5023931", "text": "@Override\r\n public Matrix multiply(MatrixADT other) throws MatrixDimensionsMismatchException {\r\n multipicationCheck(other);\r\n Matrix answer = new Matrix(this.getNumberOfRow(), other.getNumberOfColumn());\r\n for (int i = 0; i < this.getNumberOfRow(); i++)\r\n for (int j = 0; j < other.getNumberOfColumn(); j++)\r\n for (int k = 0; k < this.getNumberOfColumn(); k++)\r\n answer.entry[i][j] =\r\n answer.entry[i][j].add(this.getEntry(i, k).multiply(other.getEntry(k, j)));\r\n return answer;\r\n }", "title": "" }, { "docid": "c59d7f9061b943afa8f3187ae1dc5c58", "score": "0.50147283", "text": "Matrix mult(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: mult() called on Matrices of different sizes!\");\n }\n Matrix A = new Matrix(getSize());\n // Use transpose to make mult. simpler\n Matrix Mtr = M.transpose();\n for(int i = 1; i <= getSize(); ++i) {\n if(row[i].length() == 0) continue;\n for(int j = 1; j <= getSize(); ++j) {\n if(Mtr.row[j].length() == 0) continue;\n A.changeEntry(i, j, dot(row[i], Mtr.row[j]));\n }\n }\n return A; \n }", "title": "" }, { "docid": "2044cf0abae6b2244f3437322a92692b", "score": "0.49998486", "text": "public Vector3D multiply(double value) {\n // copy vector\n Vector3D product = new Vector3D(this.x, this.y, this.z);\n \n // multiply copied components \n product.x *= value;\n product.y *= value;\n product.z *= value;\n \n // return product\n return product;\n }", "title": "" }, { "docid": "a73552b4a22f5aa40fdbb0fcfd95aa23", "score": "0.4985311", "text": "Matrix scalarMult(double x) {\r\n\t\tMatrix M = new Matrix(this.getSize());\r\n\r\n\t\tif (x == 0.0) { // if scalar multiplying by zero\r\n\t\t\treturn M;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < this.getSize(); i++) { // scalar multiplication by double\r\n\t\t\tList A = this.rowArray[i];\r\n\t\t\tif (!(A.length() == 0)) { // if row is not empty\r\n\t\t\t\tList L = scalarMultRow(A, x);\r\n\t\t\t\tM.rowArray[i] = L;\r\n\t\t\t}\r\n\t\t}\r\n\t\tM.NNZ = this.getNNZ();\r\n\t\treturn M;\r\n\t}", "title": "" }, { "docid": "2ee30afe7ff43e869846d646c66c7e94", "score": "0.49801242", "text": "public double multiplication() {\n\t\tint a=10;\n\t\tdouble b=12.3434;\n\t\tdouble c=a*b;\n\t\treturn c;\n\t}", "title": "" }, { "docid": "9d6a2904d4934c57b7098b1e4ca0d27f", "score": "0.49691024", "text": "public DenseVector multiplies(SparseVector x) {\n\t\tDenseVector y = new DenseVector(this.numRows());\n\t\tBLAS.gemv(1.0, this, false, x, 0.0, y);\n\t\treturn y;\n\t}", "title": "" }, { "docid": "dc14d7e53f0e91d0ee70d59036c4a22e", "score": "0.4938355", "text": "private Object get( int r, int c )\n{\n return matrix[r][c];\n}", "title": "" }, { "docid": "6e94924205fe451207c965853ec756e7", "score": "0.49369392", "text": "public static void interp5(double result[],\n double p0[], double p1[],\n double v0[], double v1[],\n double a0[], double a1[],\n double t)\n {\n /*\n Same logic as for cerp.\n M is the inverse of:\n [1 0 0 0 0 0]\n [1 1 1 1 1 1]\n [0 1 0 0 0 0]\n [0 1 2 3 4 5]\n [0 0 2 0 0 0]\n [0 0 2 6 12 20]\n So M is:\n [ 1 0 0 0 0 0]\n [ 0 0 1 0 0 0]\n [ 0 0 0 0 .5 0]\n [-10 10 -6 -4 -1.5 .5]\n [ 15 -15 8 7 1.5 -1]\n [ -6 6 -3 -3 -.5 .5]\n */\n // XXX inefficient\n double t2 = t*t, t3 = t2*t, t4 = t3*t, t5 = t4*t;\n double tVec[] = {1,t,t2,t3,t4,t5};\n final double M[][] = {\n { 1, 0, 0, 0, 0 , 0},\n { 0, 0, 1, 0, 0 , 0},\n { 0, 0, 0, 0, .5 , 0},\n {-10, 10, -6, -4, -1.5, .5},\n { 15, -15, 8, 7, 1.5, -1},\n { -6, 6, -3, -3, -.5 , .5},\n };\n double pva[][] = {p0,p1,v0,v1,a0,a1};\n // result = tVec * M * pva\n // do it from left to right, to avoid full matrix multiply\n double coeffs[] = vxm(tVec, M); // XXX more allocation-- argh!\n vxm(result, coeffs, pva);\n/*\nPRINTMAT(M);\n// make sure t=0 gives out p0 and t=1 give out p1...\nPRINTVEC(p0);\nPRINTVEC(vxmxm(new double[]{1,0,0,0,0,0},M,pva));\nPRINTVEC(p1);\nPRINTVEC(vxmxm(new double[]{1,1,1,1,1,1},M,pva));\n*/\n/*\nPRINTMAT(M);\nPRINTVEC(v0);\nPRINTVEC(vxmxm(new double[]{0,1,0,0,0,0},M,pva));\nPRINTVEC(v1);\nPRINTVEC(vxmxm(new double[]{0,1,2,3,4,5},M,pva));\n*/\n\n // XXX also, for fixed t, tVec*M is same for all pva; could precompute\n // XXX note, M*pva is same for all t on path; could precompute.\n }", "title": "" }, { "docid": "57d227734fdb6bdcf27cd5d1b47414e2", "score": "0.4934849", "text": "@Override\r\n\tpublic Point2 transform(Point2 p) {\r\n\t\tVector2 v = new Vector2(this.mat.get(0, 2), this.mat.get(1, 2));\r\n\t\tp.add(v);\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "f390d29f8783b7ec26a9c73e0875f85f", "score": "0.4932369", "text": "public static <T extends Tuple3f> void mult(CSRMatrix m, HalfEdgeStructure s, ArrayList<T> res){\r\n \t\tArrayList<Float> x = new ArrayList<>(), b = new ArrayList<>(s.getVertices().size());\r\n \t\tx.ensureCapacity(s.getVertices().size());\r\n \t\t\r\n \t\tres.clear();\r\n \t\tres.ensureCapacity(s.getVertices().size());\r\n \t\tfor(Vertex v : s.getVertices()){\r\n \t\t\tx.add(0.f);\r\n \t\t\tres.add((T) new Vector3f());\r\n \t\t}\r\n \t\t\r\n \t\tfor(int i = 0; i < 3; i++){\r\n \t\t\t\r\n \t\t\t//setup x\r\n \t\t\tfor(Vertex v : s.getVertices()){\r\n \t\t\t\tswitch (i) {\r\n \t\t\t\tcase 0:\r\n \t\t\t\t\tx.set(v.index, v.getPos().x);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 1:\r\n \t\t\t\t\tx.set(v.index, v.getPos().y);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 2:\r\n \t\t\t\t\tx.set(v.index, v.getPos().z);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tm.mult(x, b);\r\n \t\t\t\r\n \t\t\tfor(Vertex v : s.getVertices()){\r\n \t\t\t\tswitch (i) {\r\n \t\t\t\tcase 0:\r\n \t\t\t\t\tres.get(v.index).x = b.get(v.index);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 1:\r\n \t\t\t\t\tres.get(v.index).y = b.get(v.index);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 2:\r\n \t\t\t\t\tres.get(v.index).z = b.get(v.index);\t\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "98e56a4a5bdcdaf795cea897988e51ac", "score": "0.49172646", "text": "public static double[] xytMultiply(double a[], double b[])\n {\n return xytMultiply(a, b, null);\n }", "title": "" }, { "docid": "8bd2144a430d371b86e2540c7052568f", "score": "0.49107417", "text": "public static Matrix Multiply(Matrix a, Matrix b){\n\t\tMatrix out = null;\n\n\t\tif(a.isGate){\n\t\t\tif(b.isComplex){\n\t\t\t\tif(b.column==1){\n\t\t\t\t\t//optimised method only for gate-complex-vector\n\t\t\t\t\treturn MatrixMultiply.GCMultiply(a,b);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn MatrixMultiply.Multiply(a, b);\n\t}", "title": "" }, { "docid": "4478d5b5866b6a811515c964e7842341", "score": "0.4902185", "text": "public Vector2 mul(double s) {\n x *= s;\n y *= s;\n return this;\n }", "title": "" }, { "docid": "6306e0c8653da15d03ba3ef9e1c3f533", "score": "0.48976544", "text": "public void scalarMult( int s ) {\n\n\tfor (int i=0; i<m.length; i++) \n\t for (int j=0; j<m[i].length; j++) \n\t\tm[i][j] = m[i][j] * s;\n }", "title": "" }, { "docid": "c373a9588eac2c884df790a357a4b069", "score": "0.48924375", "text": "public DenseVector multiplies(DenseVector x) {\n\t\tDenseVector y = new DenseVector(this.numRows());\n\t\tBLAS.gemv(1.0, this, false, x, 0.0, y);\n\t\treturn y;\n\t}", "title": "" }, { "docid": "65b7c7a4c8f88fe8765877f46821b28c", "score": "0.48873025", "text": "public void multiply(double first, double second) {\n this.result = first * second;\n }", "title": "" }, { "docid": "28ad43f3ccb3d94ffacd2e07893570f4", "score": "0.48516366", "text": "public Matrix multiply(double coefficent) {\n double[][] matrix = new double[rows][columns];\n double[][] values = this.getValues();\n \n for (int i = 0; i < rows; i++) {\n for (int a = 0; a < columns; a++) {\n matrix[i][a] = values[i][a] * coefficent;\n }\n }\n\n return new Matrix(matrix);\n }", "title": "" }, { "docid": "23dfc8db1caa3f8759d4d279e5fb3033", "score": "0.4846616", "text": "public static double[][] multiply(double[][] p, double[][] q) {\n\n double[][] m = new double[4][4];\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n m[i][j] = 0;\n for (int k = 0; k < 4; k++) {\n m[i][j] += p[i][k] * q[k][j];\n }\n }\n }\n\n return m;\n }", "title": "" }, { "docid": "c421eea325333c41cbb498f39438d288", "score": "0.48459357", "text": "public static void mxv(int result[], int m[][], int v[])\n {\n assumpt(result != v);\n int nRows = m.length;\n if (nRows == 0)\n return;\n int nCols = m[0].length;\n CHECK(v.length <= nCols);\n int i, j;\n FOR (i, nRows)\n {\n int m_i[] = m[i];\n int sum = /*(int)*/0;\n FOR (j, v.length)\n {\n sum += m_i[j] * v[j];\n }\n // if v is short, pretend it's padded with 1's\n for (; j < nCols; ++j)\n {\n sum += m_i[j];\n }\n result[i] = sum;\n }\n }", "title": "" }, { "docid": "458582652fedbead6d99d79b9214eb77", "score": "0.48442623", "text": "Matrix scalarMult(double x) \n\t{\n\t\tMatrix scaled = new Matrix(size);\n\t\tEntry current;\n\n\t\tfor (int i = 1; i <= size; i++)\n\t\t{\n\t\t\tif (!row[i].isEmpty())\n\t\t\t{\n\t\t\t\trow[i].moveFront();\n\n\t\t\t\twhile (row[i].index() != -1)\n\t\t\t\t{\n\t\t\t\t\tcurrent = ((Entry)row[i].get());\n\t\t\t\t\tscaled.changeEntry(i, current.column, current.value*x);\n\t\t\t\t\trow[i].moveNext();\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn scaled;\n\t}", "title": "" }, { "docid": "f15e7dccb3a7b25eb80ac8bf152e5e6c", "score": "0.48418057", "text": "public static void productTranslate(Matrix first, Matrix other, Vector translate, Matrix result) {\n\t\tif (first.height != other.width) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tfor (int n = 0; n < first.width*other.height; n++) {\n\t\t\tint i = n/other.height;\n\t\t\tint j = n - i*other.height;\n\t\t\t\n\t\t\tdouble sum = 0;\n\t\t\tfor (int k = 0; k < first.height; k++) {\n\t\t\t\tsum += (first.matrix[i][k] - translate.matrix[0][k]) * other.matrix[k][j];\n\t\t\t}\n\t\t\tresult.matrix[i][j] = sum;\n\t\t}\n\t}", "title": "" }, { "docid": "e53d9478eeacc9ec64b50e85f78a43bb", "score": "0.483032", "text": "public Vector4 multiply(Vector4 v) {\n float[] r = new float[4];\n for (int y = 0; y < 4; y++) {\n r[y] = getRow(y).dotp(v);\n }\n return new Vector4(r);\n }", "title": "" }, { "docid": "9f30cb728d08119b212adc0082866d03", "score": "0.48249757", "text": "public static void vxtransposem(double result[], double v[], double m[][])\n {\n CHECK_EQ(result.length, m.length);\n FORIDOWN(iCol, result.length)\n {\n CHECK_EQ(v.length, m[iCol].length);\n result[iCol] = dot(v, m[iCol]);\n }\n }", "title": "" }, { "docid": "123f7da0d07965772052c0d2d072f958", "score": "0.48206756", "text": "public static void mmv(Object result, Object m, double v[])\n {\n double resultFlat[][] = (double[][])Arrays.flatten(result, 0, Arrays.getDim(result)-1);\n double mFlat[][] = (double[][])Arrays.flatten(m, 0, Arrays.getDim(m)-1);\n mmv(resultFlat, mFlat, v);\n }", "title": "" }, { "docid": "a161b629e964645051e38a3194d43e72", "score": "0.48133725", "text": "public static double[] xytMultiply(double a[], double b[], double r[])\n {\n assert(a.length==3 && b.length==3);\n\n double s = Math.sin(a[2]), c = Math.cos(a[2]);\n if (r==null)\n r = new double[3];\n assert(r.length == 3);\n\n r[0] = c*b[0] - s*b[1] + a[0];\n r[1] = s*b[0] + c*b[1] + a[1];\n r[2] = a[2] + b[2];\n\n return r;\n }", "title": "" }, { "docid": "33d743f232f8e57d1f316cf693e683b8", "score": "0.48109207", "text": "public abstract IDatum Multiply(IDatum rightValue);", "title": "" }, { "docid": "aed13a8fbfa501a5947c130881422074", "score": "0.480955", "text": "@Override\n public void MUL() {\n\n }", "title": "" }, { "docid": "7dc498398e201359cfbafda0b4276183", "score": "0.48018524", "text": "private void matMulTrans(Vector currentGrad){\n double[] tmpGrad=new double[this.shape[0]];\n for(int i=0;i<this.shape[0];i++){\n double sum=0;\n for(int j=0;j<this.shape[1];j++){\n sum+=currentGrad.data[j]*weights.data[j][i];\n }\n tmpGrad[i]=sum;\n }\n currentGrad.shape=new int[]{this.shape[0]};\n currentGrad.data=tmpGrad;\n }", "title": "" }, { "docid": "0c988ac9568afefd8554acae10d92c11", "score": "0.47998542", "text": "public static void mpouterProduct(double result[][], double m[][], double v0[], double v1[])\n {\n FORIDOWN (i, result.length)\n vpsxv(result[i], m[i], v0[i], v1);\n }", "title": "" }, { "docid": "2943fa55c15d513bf7f0536b8d9e8ac7", "score": "0.4799667", "text": "public final Tuple3f mulX(float v) {\n\t\tthis.mulValue(0, v);\n\n\t\treturn (this);\n\t}", "title": "" }, { "docid": "a3fbed4e057b74dc8b27949b10cebc2f", "score": "0.4797623", "text": "public static Matrix product(Matrix first, Matrix other) {\n\t\tMatrix newMatrix = new Matrix(first.width, other.height);\n\t\tproduct(first, other, newMatrix);\n\t\treturn newMatrix;\n\t}", "title": "" }, { "docid": "56892430fec8bbfa60bbaab5b0740364", "score": "0.4796576", "text": "static void crossProductRightHand(\n\t\t\tdouble x1, double y1, double z1,\n\t\t\tdouble x2, double y2, double z2, Vector3D<?, ?> result) {\n final double x = y1 * z2 - z1 * y2;\n final double y = z1 * x2 - x1 * z2;\n final double z = x1 * y2 - y1 * x2;\n\t\tresult.set(x, y, z);\n\t}", "title": "" }, { "docid": "bf19de9d045d49fc9854046e8444d94e", "score": "0.47956112", "text": "public double getResult(){\n double[][] d = table.getTable();\n// compute(d);\n return value();\n }", "title": "" }, { "docid": "6166ff4092423a661212a0dff3d7ad46", "score": "0.4794472", "text": "public ComplexNumber multiply(ComplexNumber z) {\nComplexNumber m= new ComplexNumber((rectangle_re *z.getReal()) -(rectangle_im *z.getImaginary()),\n ((rectangle_re* z.getImaginary()) + (rectangle_im *z.getReal())));\nreturn m;\n}", "title": "" }, { "docid": "8cd7f88c865fbf4493574defa7240f30", "score": "0.47917423", "text": "@Override\n\tpublic BigDecimal transposeMultiplyToNumber(Matrix B)\n\t{\n\t\tBigDecimal sum = BigDecimal.ZERO;\n\t\tfor (int i = 0; i < elements.length; i++)\n\t\t\tsum = sum.add(this.getEii(i).multiply(B.getEii(i), super.getMathContext()), super.getMathContext());\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "1c610e5ef907991fa4c087bc56adb207", "score": "0.47878215", "text": "public int getProduct()\n {\n int product = first*second;\n return product;\n }", "title": "" }, { "docid": "e9aba1d59c6efe77ea5f0065c1723632", "score": "0.4786192", "text": "public VecCUDA mul (VecCUDA x) {\n return mul(1, x);\n }", "title": "" }, { "docid": "9995ad5a872130d32267a444dd16e22c", "score": "0.4780295", "text": "public Polynomial multiply(Polynomial p) {\n\t\tPolynomial temp = new Polynomial();\n\t\tfor(Monom m1 : this.elements) {\n\t\t\tfor(Monom m2 : p.elements) {\n\t\t\t\ttemp.addMonom(m1.multiply(m2));\n\t\t\t}\n\t\t}\n\t\t\n\t\tPolynomial result = new Polynomial();\n\t\tboolean changedCoeff = false;\n\t\t\n\t\t//Add every element to an empty polynomial, so equal exponents are checked.\n\t\tfor (Monom m1 : temp.elements) {\n\t\t\tchangedCoeff = false;\n\t\t\tfor(Monom m2 : result.elements) {\n\t\t\t\tif (m1.getExp() == m2.getExp()) {\n\t\t\t\t\tint index = result.elements.indexOf(m2);\n\t\t\t\t\tm2 = m2.add(m1);\n\t\t\t\t\tresult.elements.set(index, m2);\n\t\t\t\t\tchangedCoeff = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!changedCoeff) {\n\t\t\t\tresult.addMonom(m1);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "d2862b9e884ee68e050f7efdf06e728e", "score": "0.4778835", "text": "public static double[] multiply(double[][] m, double[] v) {\n\n double[] u = new double[4];\n\n for (int i = 0; i < 4; i++) {\n u[i] = 0;\n for (int j = 0; j < 4; j++) {\n u[i] += m[i][j] * v[j];\n }\n }\n\n return u;\n }", "title": "" }, { "docid": "e585b93dcbacd12e0c85b977d552d750", "score": "0.47761977", "text": "public static int[][] mult(int a[][],int b[][])\r\n\t{\n\r\n\t\t\r\n\t\tint x[][] = new int[a.length][b[0].length];\r\n\t\t//creates array\r\n\t\t\r\n\t\t\r\n\t\tfor(int row = 0; row < a.length; row++)\r\n\t\t{\r\n\t\t\tfor(int col = 0; col< b[0].length; col++)\r\n\t\t\t{\r\n\t\t\t\t//start of 2d array loop\r\n\t\t\t\t\r\n\t\t\t\tint test = 0;\r\n\t\t\t\t//creates a variable of the int\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tfor(int matrix = 0; matrix < b.length; matrix++)\r\n\t\t\t\t\t\t{//adds the different multiplications to variable\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttest = test + a[row][matrix]*b[matrix][col];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tx[row][col] = test;\r\n\t\t\t\t//assigns variable to spot in array\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn x;\r\n\t}", "title": "" }, { "docid": "3c901bb696536e3b27b69dc48bb346e8", "score": "0.47756347", "text": "public T Multiply(T thisValue, T other, EContext ctx) {\n T ret = this.CheckNotANumber2(thisValue, other, ctx);\n if ((Object)ret != (Object)null) {\n return ret;\n }\n EContext ctx2 = GetContextWithFlags(ctx);\n thisValue = this.RoundBeforeOp(thisValue, ctx2);\n other = this.RoundBeforeOp(other, ctx2);\n thisValue = this.wrapper.Multiply(thisValue, other, ctx2);\n return this.PostProcess(thisValue, ctx, ctx2);\n }", "title": "" }, { "docid": "ea7d43f3c3049d852af694d01e3c4e8a", "score": "0.4755889", "text": "public Vecteur multiply(double a){\n return new Vecteur (a*x , a*y);\n }", "title": "" }, { "docid": "5548d89539744981150c09719849dfb0", "score": "0.4755313", "text": "@Override\n public double product(){\n return super.product() * z;\n }", "title": "" }, { "docid": "b91cd804280e4fd6b554ce18d644a628", "score": "0.4751392", "text": "public static float[] mul(float[] p, float[] q)\n\t{\n\t\tfloat r = p[0] * q[0];\n\t\tfloat t = p[1] + q[1];\n\t\treturn new float[] {r,t};\n\t}", "title": "" }, { "docid": "40a5cb3a4917087072f5398f9015d2ba", "score": "0.47428775", "text": "public void multiply(myLong other){\r\n int[][] matrix = new int[maxIndex+1][maxIndex+1]; //new 2d array of size (maxIndex+1)^2\r\n int zeros1 = countZeros(this); //This provides the # of zeros before the number actually begins\r\n int zeros2 = countZeros(other);\r\n\r\n int counter1 = maxIndex-zeros1; // maxIndex minus this above number provides the length of the number\r\n int counter2 = maxIndex-zeros2;\r\n System.out.println(zeros1+\" \"+zeros2);\r\n System.out.println(counter1+\" \"+counter2);\r\n int start1 = maxIndex-counter1;\r\n int start2 = maxIndex-counter2;\r\n\r\n for(int i = start1; i<=maxIndex; i++){\r\n for(int j = start2; j<=maxIndex; j++){\r\n if((this.number[i] * other.number[j]) > 9) {\r\n matrix[i][(maxIndex-1) - (counter1+counter2)] += (this.number[i] * other.number[j])/10;\r\n }\r\n matrix[i][(maxIndex) - (counter1+counter2)] += (this.number[i] * other.number[j])%10;\r\n System.out.println(\"frst = \"+(this.number[i] * other.number[j])%10);\r\n counter2--;\r\n }\r\n counter2 = maxIndex-zeros2;\r\n counter1--;\r\n }\r\n\r\n //Make all 2 digit numbers back into 1 digit numbers;\r\n myLong ans = new myLong();\r\n myLong matrixColumnAdd = new myLong();\r\n\r\n //go one by one through the rows of the matrix adding downward into\r\n for(int col = 0; col<=maxIndex; col++){\r\n matrixColumnAdd.number = matrix[col];\r\n ans.add(matrixColumnAdd);\r\n }\r\n this.number = ans.number;\r\n }", "title": "" }, { "docid": "4dbd6c3162f89828d4ba494848742e5a", "score": "0.47418067", "text": "public A6Row setAmultB(A6Row A, A6Row B) {\r\n // mult each member set of 2 rows each A by corresponding B\r\n for (int m : d01) {\r\n for (int n : ASECS) {\r\n // separate each operation to localize null object errors\r\n set(m, n,\r\n A.get(m, n)\r\n * B.get(m, n));\r\n set(m + 2, n, A.get(m + 2, n) * B.get(m + 2, n));\r\n set(m + 4, n, A.get(m + 4, n) * B.get(m + 4, n));\r\n }\r\n }\r\n return this;\r\n }", "title": "" }, { "docid": "320216c2fb75dc7f3322dfd706332aa6", "score": "0.47359747", "text": "static void crossProductLeftHand(\n\t\t\tdouble x1, double y1, double z1,\n\t\t\tdouble x2, double y2, double z2, Vector3D<?, ?> result) {\n final double x = y2 * z1 - z2 * y1;\n final double y = z2 * x1 - x2 * z1;\n final double z = x2 * y1 - y2 * x1;\n\t\tresult.set(x, y, z);\n\t}", "title": "" }, { "docid": "507db2ceec20c58c15fd69af7a168250", "score": "0.47348273", "text": "public static void aTxPy(double[][] a, double[] x, double[] y) {\r\n\t\t\tif (a.length != x.length) {\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\tString.format(\"Array dimensions do not match for matrix multiplication: 1 x %d vs %d x %d\",\r\n\t\t\t\t\t\t\t\tx.length, a.length, a[0].length));\r\n\t\t\t}\r\n\r\n\t\t\tif (a[0].length != y.length) {\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"Array dimensions do not match\"));\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < y.length; i++) {\r\n\t\t\t\tfor (int k = 0; k < x.length; k++) {\r\n\t\t\t\t\ty[i] += x[k] * a[k][i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cfdf9fb0b704a7fe774673e3525cb516", "score": "0.47340307", "text": "@Override\r\n public Matrix transpose() {\r\n Numeric[][] newEntiry = new Numeric[getNumberOfColumn()][getNumberOfRow()];\r\n for (int i = 0; i < entry.length; i++)\r\n for (int j = 0; j < entry[i].length; j++)\r\n newEntiry[j][i] = entry[i][j];\r\n return new Matrix(newEntiry);\r\n }", "title": "" }, { "docid": "1eea0acffdf0f279a6f067f76551c988", "score": "0.47340193", "text": "public MathMatrix multiply(MathMatrix rightHandSide){\n assert(this.numCols() == rightHandSide.numRows()): \n \t\"Violation of precondition: # of Columns of calling MathMatrix \" +\n \t\"doesn't equal parameter matrix's # of rows\";\n \n int sum = 0;\n int rowIndex = 0;\n int colIndex = 0;\n MathMatrix matrix = new MathMatrix(this.numRows(), rightHandSide.numCols(), 0);\n for(int i = 0; i < matrix.numRows(); i++)\n {\n \tfor(int j = 0; j < matrix.numCols(); j++)\n \t{\n \t\tsum = 0;\n \t\trowIndex = 0;\n \t\tcolIndex = 0;\n \t\twhile(rowIndex < rightHandSide.numRows() && colIndex < values[0].length)\n \t\t{\n \t\t\tsum += values[i][colIndex] * rightHandSide.getVal(rowIndex, j);\n \t\t\trowIndex++;\n \t\t\tcolIndex++;\n \t\t}\n \t\tmatrix.changeElement(i,j,sum);\n// \t\tfor(int m = 0; m < rightHandSide.numCols(); m++)\n// \t\t{\n//\t \t\tsum += values[i][colIndex] * rightHandSide.getVal(rowIndex,j);\n//\t \t\tcolIndex++;\n//\t \t\trowIndex++;\n// \t\t}\n \t}\n }\n \n return matrix;\n }", "title": "" }, { "docid": "1dff076a13a2ea7365d8a90da2a7d91e", "score": "0.47287557", "text": "public static double[][] mertrixMul(double[][] a, double[][] b) {\n int m = a.length;\n int k = b.length;\n int n = b[0].length;\n double[][] result = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n for (int l = 0; l < k; l++) {\n result[i][j] += a[i][l] * b[l][j];\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "45c03aba700114fca1b7b30b18880d61", "score": "0.47216675", "text": "protected abstract Object multiply(Object o1, Object o2);", "title": "" }, { "docid": "98676dbb5916d0039bcb3d411b2a6b5c", "score": "0.4718848", "text": "public static void mxv(double result[], double m[][], double v[])\n {\n assumpt(result != v);\n int nRows = m.length;\n if (nRows == 0)\n return;\n int nCols = m[0].length;\n CHECK(v.length <= nCols);\n int i, j;\n FOR (i, result.length)\n {\n double m_i[] = m[i];\n double sum = (double)0;\n FOR (j, v.length)\n {\n sum += m_i[j] * v[j];\n }\n // if v is short, pretend it's padded with 1's\n for (; j < nCols; ++j)\n {\n sum += m_i[j];\n }\n result[i] = sum;\n }\n }", "title": "" }, { "docid": "3bc45557faf291a3c0d2108847cb8375", "score": "0.47174758", "text": "@Override\n public IComplexNumber mul(IComplexNumber c) {\n return dup().muli(c);\n }", "title": "" }, { "docid": "c1f1b7d4f75afeaf7854d6d2d75d1454", "score": "0.47167006", "text": "public Target(double[][] T){\r\n\r\n\t\thomMatrix = new double[4][4];\r\n\t\t\r\n\t\tposition = new double[3];\r\n\t\t\r\n\t\trotation = new double[3][3];\r\n\r\n\t\tif (T.length == 4 && T[0].length == 4) {\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < T.length; i++)\r\n\t\t\t\t\r\n\t\t\t\tfor (int j = 0; j < T[0].length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\thomMatrix[i][j] = T[i][j];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (i != 3 && j == 3)\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tposition[i] = T[i][j];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (i != 3 && j != 3)\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\trotation[i][j] = T[i][j];\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} else\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Wrong dimensions. Homogeneus matrix must be 4x4.\");\r\n\r\n\t}", "title": "" }, { "docid": "d24aea8e00dac417988853db0866d748", "score": "0.47080377", "text": "private long performMult() {\r\n\r\n\t\tlogHandle.trace(\"Entering \" + Thread.currentThread().getStackTrace()[1].getMethodName());\r\n\r\n\t\t// Extracting the operands for the mult operation\r\n\t\t// by incrementing the position pos.\r\n\t\tpos++;\r\n\t\tlong v1 = processToken();\r\n\t\tpos++;\r\n\t\tlong v2 = processToken();\r\n\t\tlong value = v1 * v2;\r\n\r\n\t\tlogHandle.info(\"Evaluated Mult resulting in the value: \" + value);\r\n\r\n\t\tlogHandle.trace(\"Exiting \" + Thread.currentThread().getStackTrace()[1].getMethodName());\r\n\r\n\t\treturn value;\r\n\t}", "title": "" } ]
294d6fb79cb4d7dadf9e85129c5b3ee8
getNext retrieves and returns the next of a given node
[ { "docid": "4ca214d097ec4b48776d7b7647a60a2e", "score": "0.7802292", "text": "public MyNode<E> getNext() {\n\t\treturn next;\n\t}", "title": "" } ]
[ { "docid": "06eaaad3775333b4b574099cfb3beb22", "score": "0.8790507", "text": "Node getNext();", "title": "" }, { "docid": "6418e571120367835d0647aba3ecec53", "score": "0.8377953", "text": "public Node<T> getNext();", "title": "" }, { "docid": "540f82e928bf70e30f11d48f8acefe9f", "score": "0.8240521", "text": "public Node getNext () { return next; }", "title": "" }, { "docid": "29bf485f66704f3a22ff702f4d294718", "score": "0.8126157", "text": "public Node getNext(){\n \treturn next;\n }", "title": "" }, { "docid": "38b14f0bcd121525f584379648732827", "score": "0.81181717", "text": "private Node getNextNode(){\r\n\t\t\treturn next;\r\n\t\t}", "title": "" }, { "docid": "a954c3785d665501bd941919280107d5", "score": "0.80378145", "text": "public Node getNext(){\n\t\treturn next;\n\t}", "title": "" }, { "docid": "68a99e62da205d47472977005c2556a7", "score": "0.7957654", "text": "public Node<E> getNext(){\n\t\t\treturn next;\n\t\t}", "title": "" }, { "docid": "41aacae2ad22cb0b484c98cf5fce0242", "score": "0.7942015", "text": "public Node<T> getNext() {return this.next;}", "title": "" }, { "docid": "1029214d48f74b4d70cd1b43365ba735", "score": "0.78594387", "text": "public Node getNext() {\r\n\t\t return next;\r\n\t}", "title": "" }, { "docid": "845c03798d49a3f5bf5e5aa2eef0549c", "score": "0.7837612", "text": "public Node getNext() {\n\n return next;\n\t}", "title": "" }, { "docid": "14efd3514560bc32ad5caac3972839f0", "score": "0.78285295", "text": "public Node getNext() {\r\n\t\treturn next;\r\n\t}", "title": "" }, { "docid": "7468924e48d5b2984624155cf70ae0a5", "score": "0.7808904", "text": "public Node<T> getNext()\n\t\t{\n\t\t\treturn next;\n\t\t}", "title": "" }, { "docid": "ba5adaf88073bcdc378a8bf79719e8ee", "score": "0.7755132", "text": "public Node<T> getNext(){\n return next;\n }", "title": "" }, { "docid": "4dda9b6a8c00f3d6593872a34b4d5366", "score": "0.77518237", "text": "public Node getNext()\n\t\t{\n return (Node)this.next;\n\t\t}", "title": "" }, { "docid": "fb6306b73f56299079b300f3f195f3a3", "score": "0.7734856", "text": "public Node<E> getNext() {\r\n\t\t\treturn next;\r\n\t\t}", "title": "" }, { "docid": "2d937f17f6f13a091caca74a690489d1", "score": "0.77221394", "text": "public Listnode<T> getNext() {\n return next;\n }", "title": "" }, { "docid": "79bf729c6908a83c915e5d2a7f05f858", "score": "0.77027726", "text": "public Node getNext()\n {\n return this.next ;\n }", "title": "" }, { "docid": "45bf99d86efcaf05f9c25b1b41d5d5ad", "score": "0.76910746", "text": "public LinkedListNode getNext()\n\t{\n return next;\n\t}", "title": "" }, { "docid": "9728abe3a49ccd2e761a08bd66f407c1", "score": "0.7684692", "text": "public ImmutableListNode getNext();", "title": "" }, { "docid": "479ab18ac1a35b9814c2920b4823b598", "score": "0.76779777", "text": "public ListNode getNext() {\r\n return next;\r\n }", "title": "" }, { "docid": "bf78d0c49f6598e9966ec4341bca6558", "score": "0.7646937", "text": "public Node getNext()\n\t\t{\n\t\t\treturn this.next;\n\t\t}", "title": "" }, { "docid": "9584ac61b76d845eaa37402a55654fe6", "score": "0.7638453", "text": "public Node<T> getNext() {\r\n return next;\r\n }", "title": "" }, { "docid": "a31fbd403274725fb096437f2a27b8d8", "score": "0.7617631", "text": "public Node<T> getNext(){\n return this.nextNode;\n }", "title": "" }, { "docid": "419874f3418aaa6af4f49ce1219c624b", "score": "0.7607714", "text": "public Node<E> getNext() {\r\n return next;\r\n }", "title": "" }, { "docid": "d65e18f32020fa1f0e1be14d1b5f348f", "score": "0.7592247", "text": "public Node<T> getNextNode() {\n return next;\n }", "title": "" }, { "docid": "2092b1ba6c17761869dea13d0d20b679", "score": "0.759004", "text": "public FTListNodeRec getNext() {\n return next;\n }", "title": "" }, { "docid": "f7adaca53a88a865c097698c5fcbc1c9", "score": "0.7569374", "text": "public LinkNode GetNext(){\r\n\t\treturn next;\r\n\t}", "title": "" }, { "docid": "4d812ab8f083e947b7e78cb1b5023d37", "score": "0.75431937", "text": "public Node getNext() {\n return this.next;\n }", "title": "" }, { "docid": "34732efed547b708218ee039acbb826b", "score": "0.75213575", "text": "public NodeD getNext() {\n return next;\n }", "title": "" }, { "docid": "0dfbbceea75ea6aa311621b09318ffd2", "score": "0.7496219", "text": "public ListNode<E> getNext()\n {\n\n return nextNode;\n\n }", "title": "" }, { "docid": "b703f7e1150f9db8948894d8aed121de", "score": "0.7452957", "text": "public DoubleNode getNext(){\n\t\treturn this.next;\n\t}", "title": "" }, { "docid": "b0e16eed3a3deb16014b4f479fca06dc", "score": "0.74511105", "text": "public NodeStack getNext() {\n\t\t\t\n\t\treturn next;\n\t}", "title": "" }, { "docid": "f7da04590d7282a2e5f81e370e1adb1d", "score": "0.73890007", "text": "E getNext();", "title": "" }, { "docid": "e2bc2d1165f770a0eb8f97aa7b6e4cda", "score": "0.73872477", "text": "ImmutableListNode getNext();", "title": "" }, { "docid": "14e8492424ace0999e76ed39dfa83e52", "score": "0.7371488", "text": "@Override\n public Link<T> getNext() {\n logger.debug(\"Getting the next\");\n return next;\n }", "title": "" }, { "docid": "a0da8cd6c6d15332454e7cf57c350f94", "score": "0.7360155", "text": "public TrainCarNode getNext(){\n return next;\n\t}", "title": "" }, { "docid": "b7da64c59658e9a556540d676d23c983", "score": "0.7348136", "text": "public HeapNode getNext(){\r\n \t\treturn next;\r\n \t}", "title": "" }, { "docid": "e332f0e55bbafa46e43d2584973a3ba5", "score": "0.7327877", "text": "T getNext();", "title": "" }, { "docid": "e332f0e55bbafa46e43d2584973a3ba5", "score": "0.7327877", "text": "T getNext();", "title": "" }, { "docid": "950976fd149252e0fb6172804aacb2ac", "score": "0.73115486", "text": "public NodoDoble<E> getNext();", "title": "" }, { "docid": "531211eceefca1390ddc46601a7bcd79", "score": "0.7309001", "text": "@Override\r\n public INode getNext() {\r\n return this.next;\r\n }", "title": "" }, { "docid": "693873d00bb43956dac241c7d1ee9b03", "score": "0.7281166", "text": "@Override\n\tpublic INode<K> getNext() {\n\t\treturn this.next;\n\t}", "title": "" }, { "docid": "7417c608cf01694adfdc072baceed3e4", "score": "0.7266303", "text": "public LinkedListItem getNext() {\r\n return next;\r\n }", "title": "" }, { "docid": "f248b48f8105a9f9d03b488aca24af52", "score": "0.72580844", "text": "public ImageNode getNext() {\n return next;\n }", "title": "" }, { "docid": "5f8ae8d87bff4f31d5ba4caa4f1c7ba4", "score": "0.72217107", "text": "ANode<T> getNext() {\r\n return this.next;\r\n }", "title": "" }, { "docid": "d36ee0626b74d6707bfc44af470b63be", "score": "0.7201153", "text": "public Node next(){\n return next;\n }", "title": "" }, { "docid": "969cc25e8a4dd5ee59db33573a460a6f", "score": "0.71608895", "text": "Field getNext();", "title": "" }, { "docid": "466fb3341f7b794dd5d9e6f147b2b76f", "score": "0.7154219", "text": "public LinkedListNode getNextNode() {\n return nextNode;\n }", "title": "" }, { "docid": "f4545725dd7b9b9601c67cd7d015192b", "score": "0.7147746", "text": "@Override\n public StringNode getNext(){ return next; }", "title": "" }, { "docid": "48c59efef976a0fa9a1147aabc96bea2", "score": "0.71269584", "text": "public CarListNode getNext() {\n\t\treturn next;\n\t}", "title": "" }, { "docid": "bea051a629927677f2456562b6029f99", "score": "0.70889616", "text": "public ObjectListNode getNext() {\n return next;\n }", "title": "" }, { "docid": "44d35089713f14184186dbd748b285dd", "score": "0.7018047", "text": "public Node getNextNode()\n {\n if (!this.isTheLastNode)\n return this.nextNode;\n\n return null;\n }", "title": "" }, { "docid": "9a18860ec1ff640450aeb599530c92d1", "score": "0.70059735", "text": "public abstract S getNext();", "title": "" }, { "docid": "d799ef555ada7f7de0ed5b489664ab55", "score": "0.6992045", "text": "FieldElement getNext();", "title": "" }, { "docid": "0e1197d8e78e359f53024f6de2e458bb", "score": "0.6942706", "text": "public Order_LLL getNext()\n\t\t{\n\t\t\treturn this.next;\n\t\t}", "title": "" }, { "docid": "a1bc678cc7c2eba1af238e18a8830273", "score": "0.69177765", "text": "public Node next() {\r\n\t\t\treturn next;\r\n\t\t}", "title": "" }, { "docid": "66f44109ad36815bffce7274ab86a9ab", "score": "0.691712", "text": "public Node getNext(Node currentNode) {\n return currentNode.getNext();\n }", "title": "" }, { "docid": "91e4194e71ee2dda3995a168230f9b53", "score": "0.6912289", "text": "public SkipListNode<TData> getNext()\r\n\t{\r\n\t\treturn (SkipListNode<TData>)m_next;\r\n\t}", "title": "" }, { "docid": "e56b56eb0b98d899ab9e3f13d4aba928", "score": "0.691075", "text": "public Node next() {\r\n\t\treturn (Node)getNextNode();\r\n\t}", "title": "" }, { "docid": "4b6af7b2bda6318493ded1298cafcd02", "score": "0.6901111", "text": "@Override\n\tpublic Node nextNode(Node node){\n\t\treturn node;\n\t}", "title": "" }, { "docid": "d60c0fb2f85d4522ae010c197f9d071b", "score": "0.68857384", "text": "public abstract E getNext();", "title": "" }, { "docid": "99fb65ab09f32643fe8fa64c7e4e12d0", "score": "0.6861119", "text": "public EARMARKChildNode getNextSibling();", "title": "" }, { "docid": "b3f7373453375ba6fd21c7793a188119", "score": "0.6841002", "text": "public Item getNext() {\n return next;\n }", "title": "" }, { "docid": "feaadf6956c4b1268ffbcdab93043c48", "score": "0.68296593", "text": "@Override\n\tpublic T getNext ()\n\t{\n\t\treturn iterator.getNext();\n\t}", "title": "" }, { "docid": "01c158e8f10a48b8783b9734a43b019c", "score": "0.6829422", "text": "public Element getNext() {\r\n return this.next;\r\n }", "title": "" }, { "docid": "0cef87b3b5efdd267ffadd7f7568192c", "score": "0.679975", "text": "private Node getNextNode()\n {\n Node n0 = m_graph.getNode(m_pathToClosest.m_points.get(0));\n\n //If only one node in the path, return it.\n if(m_pathToClosest.m_points.size() == 1)\n return n0;\n\n //Heuristic: Otherwise, take the closest one to the destination\n Node n1 = m_graph.getNode(m_pathToClosest.m_points.get(1));\n Node destination = m_graph.getNode(m_pathToClosest.m_destinationID);\n\n if(n0.euclideanDistanceTo(destination) < n1.euclideanDistanceTo(destination))\n return n0;\n else return n1;\n }", "title": "" }, { "docid": "aff7e88828c3110aa4e44f46c45e7e92", "score": "0.67995983", "text": "public Edge getNext() {\n\t\treturn next;\n\t}", "title": "" }, { "docid": "233a50a44ecf0433932c88952ec8a339", "score": "0.6786127", "text": "public Node next() {\r\n return next;\r\n }", "title": "" }, { "docid": "8b3abc39dba3874fe4577b4edf222191", "score": "0.6767758", "text": "public MNode next ()\n {\n key = iterator.next ();\n return getChild (key);\n }", "title": "" }, { "docid": "2304c9d456b381d8751577183b3b74df", "score": "0.67635715", "text": "private Node getNext(Node node, char[] syms) {\n\t\t// If next node is straight ahead, use it\n\t\tNode anode = getQuickNode(node,syms);\n\t\t\n\t\tif(anode != null)\n\t\t\treturn anode;\n\t\t\n\t\t// Otherwise check adjacent tiles\n\t\tfor (int j = 0; j < xyOffsets.length; j++) {\n\t\t\tint x = xyOffsets[j][0] + node.getCol();\n\t\t\tint y = xyOffsets[j][1] + node.getRow();\n\n\t\t\t// Check next inbounds\n\t\t\t// tileMap[0].length means number of columns\n\t\t\t// tileMap.lenth means the number of rows\n\t\t\tif (!isInbounds(x,y))\n\t\t\t\tcontinue;\n\n\t\t\t// Check next already on the path\n\t\t\tif (onPath(x, y))\n\t\t\t\tcontinue;\n\n\t\t\t// Check next one of our symbols\n\t\t\tchar tileSym = tileMap[y][x];\n\t\t\tif(isSymbol(tileSym,syms))\n\t\t\t\treturn new Node(x, y, node);\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ff71f6d5403bf4441b7e9ad869d21966", "score": "0.67548555", "text": "@Override\n public NodeInfo next() {\n NodeInfo n = active.next();\n if (n == null && active == first) {\n active = second;\n n = second.next();\n }\n return n;\n }", "title": "" }, { "docid": "6abae6d98c980aa12a0f4b91a40a2dc8", "score": "0.67475694", "text": "public Node next() {\n return next;\n }", "title": "" }, { "docid": "92642a60ee96d165f8923471078363e0", "score": "0.67280704", "text": "public Nodo<T> getNext(){\n return this.siguiente;\n }", "title": "" }, { "docid": "b223a6da221ba8580a306f716b079f3e", "score": "0.6722032", "text": "public String getNext() {\n return next;\n }", "title": "" }, { "docid": "ffc9a05f76a3c44c4cc8297f9d96ce56", "score": "0.67042077", "text": "protected GraphicsNode getNextGraphicsNode(GraphicsNode node) {\n/* 186 */ if (node == null) {\n/* 187 */ return null;\n/* */ }\n/* */ \n/* 190 */ GraphicsNode n = getFirstChild(node);\n/* 191 */ if (n != null) {\n/* 192 */ return n;\n/* */ }\n/* */ \n/* */ \n/* 196 */ n = getNextSibling(node);\n/* 197 */ if (n != null) {\n/* 198 */ return n;\n/* */ }\n/* */ \n/* */ \n/* 202 */ n = node;\n/* 203 */ while ((n = n.getParent()) != null && n != this.treeRoot) {\n/* 204 */ GraphicsNode t = getNextSibling(n);\n/* 205 */ if (t != null) {\n/* 206 */ return t;\n/* */ }\n/* */ } \n/* 209 */ return null;\n/* */ }", "title": "" }, { "docid": "57b31c470fdfc1c68b4ccf4819d3d151", "score": "0.6693327", "text": "public T getNextSibling() {\n return getSibling(1);\n }", "title": "" }, { "docid": "5d16d0eb8511a1fd34879dcea8a0d1cd", "score": "0.6680323", "text": "public final OMNode getNextSibling() {\n \t\tNode nextSibling = ot.getNextSibling();\n \t\treturn (nextSibling != null) ? convert(nextSibling) : null;\n \t}", "title": "" }, { "docid": "f16e6d40f4f4a2af8c1930356007206f", "score": "0.666346", "text": "public GraphicsNode getNextSibling() {\n/* 135 */ GraphicsNode result = getNextSibling(this.currentNode);\n/* 136 */ if (result != null) {\n/* 137 */ this.currentNode = result;\n/* */ }\n/* 139 */ return result;\n/* */ }", "title": "" }, { "docid": "155baf232b286fa32e6850a8c2487d11", "score": "0.66624916", "text": "public int getNext() {\n return next;\n }", "title": "" }, { "docid": "d068bc3ee070d673c34c046c2ff4ebc9", "score": "0.6644712", "text": "@Override\n public Node next() {\n Node tempNode = nodeList.get(nextIndex);\n nextIndex++;\n return tempNode;\n }", "title": "" }, { "docid": "a8ad4187c90e331a10d86ff4a0a8cb91", "score": "0.6643192", "text": "LinkedRangeDifference getNext() {\n return fNext;\n }", "title": "" }, { "docid": "61e30cff32116d88df75a4fa72f4cbbe", "score": "0.6619261", "text": "@Override\r\n public T next() {\n if (hasNext()) {\r\n T returnData = currentNode.data;\r\n currentNode = currentNode.next;\r\n return returnData;\r\n }\r\n else{\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "12ebf9bf9296c8e12e06ea63ad230c58", "score": "0.6619079", "text": "public T next() {\n T save = nodeptr.getElement();\n nodeptr = nodeptr.getNext();\n return save;\n }", "title": "" }, { "docid": "c0f857ccd48b6ced8153ffbae66491eb", "score": "0.66105825", "text": "public Action getNext() { return next; }", "title": "" }, { "docid": "aeb0fadb86b46b1b38e516bad6029bc9", "score": "0.65785897", "text": "public Node gNext()\n\t\t{\n\t\t\treturn this.next;\n\t\t}", "title": "" }, { "docid": "2137785d9145d4428ec8fc46d9a1ba10", "score": "0.6573899", "text": "@Override\r\n\t\tpublic T next() {\n\t\t\tif(!hasNext())return null;//Should throw NoSuchElementException\r\n\t\t\tT obj = nextNode.data;\r\n\t\t\tnextNode = nextNode.nextNode;\r\n\t\t\treturn obj;\r\n\t\t}", "title": "" }, { "docid": "26b0398b36d639d62ee50cf6683877ca", "score": "0.6568712", "text": "public Train getNext(){ return this.next; }", "title": "" }, { "docid": "410173f6a4a2c1c84eb66bd592ab4a89", "score": "0.65537816", "text": "public Node nextNode() {\n\t\t\treturn nextNode;\n\t\t}", "title": "" }, { "docid": "d07ff523847c1c72400af8ac3b298a1f", "score": "0.6535109", "text": "public DynamicField getNext() {\n return next;\n }", "title": "" }, { "docid": "55268a69693b91c6753d5ab6cb99909e", "score": "0.6518681", "text": "public Node<E> next() {\r\n return next;\r\n }", "title": "" }, { "docid": "58a894c7b55d11dfbe3990c0d84172d7", "score": "0.6510237", "text": "public Tuple getNext() {\r\n if (false == foundNext) { \r\n findNext();\r\n }\r\n if (false == foundNext) throw new IllegalStateException();\r\n foundNext = false;\r\n return next;\r\n }", "title": "" }, { "docid": "89cff3301d94aef93216855cb6c5dac2", "score": "0.65087545", "text": "@Override\n public E next() {\n return nxt.value;\n }", "title": "" }, { "docid": "4d0c6f8fcf93063dd34533f4da1d490b", "score": "0.6502408", "text": "@Override\r\n\t\tpublic Object next() {\n\t\t\tint i = nextIndex++;\r\n\t\t\tif (i > size - 1)\r\n\t\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t\treturn getNodeByIndex(i).data;\r\n\t\t}", "title": "" }, { "docid": "7aab1bbe2f1328dc58ec4e8788dc3f9a", "score": "0.6487324", "text": "public Node next() {\n return this.nextNode();\n }", "title": "" }, { "docid": "e499d332529f8547fc7fd7e5b7c78b42", "score": "0.64870906", "text": "public Node<E> next() {\n return next;\n }", "title": "" }, { "docid": "96bc996eb2b668ffd0094bd5c22a4e46", "score": "0.64734155", "text": "private Node<E> nextNode(Node<E> p) {\n for (;;) {\n Node<E> s = p.next;\n if (s == p) {\n return head.next;\n }\n if (s == null || s.item != null) {\n return s;\n }\n p = s;\n }\n }", "title": "" }, { "docid": "e1f129aeb503fc3447cd00386564276e", "score": "0.64611024", "text": "@Override\n\t\t\tpublic Node next() {\n\t\t\t\treturn nodeArray[currentIndex++];\n\t\t\t}", "title": "" }, { "docid": "88cfe35f578291cc6258a05376a7a51f", "score": "0.64270747", "text": "public Object next() { // get next list element\r\n\t\t\tif (p == null){\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tObject element = p.getElement();\t\r\n\t\t\tp = p.getNextNode();\r\n\t\t\t\t\r\n\t\t\treturn element;\r\n\t\t}", "title": "" }, { "docid": "a8eee7d4faedb6efdb58f338d1dbb01f", "score": "0.6426404", "text": "public Node getNextNode() {\r\n Node n = null;\r\n if (!ptr.equals(lastNode)) {\r\n n = ptr;\r\n int lvl = level;\r\n\r\n // Upward move\r\n // While n is the most right child ...\r\n while (n.equals(n.parent.getMostRightChild())) {\r\n n = n.parent;\r\n lvl--;\r\n }\r\n int idx = n.getIndex() + 1;\r\n while (n.parent.getChild(idx) == null) {\r\n idx++;\r\n }\r\n n = n.parent.getChild(idx);\r\n // Now we're in the next branch\r\n\r\n while (lvl != level) {\r\n\r\n // Downward move\r\n if (!n.isLeaf()) {\r\n n = n.getMostLeftChild();\r\n lvl++;\r\n } // Upward move \r\n else {\r\n while (n.equals(n.parent.getMostRightChild())) {\r\n n = n.parent;\r\n lvl--;\r\n }\r\n idx = n.getIndex() + 1;\r\n while (n.parent.getChild(idx) == null) {\r\n idx++;\r\n }\r\n n = n.parent.getChild(idx);\r\n }\r\n }\r\n }\r\n return n;\r\n }", "title": "" }, { "docid": "f0e2611e5eb0a8f234b177d8a8459697", "score": "0.64180225", "text": "public DLLNode<Object> getLinkNext() {\n\t\treturn next;\n\t}", "title": "" } ]
57921e8892f5a10d22e81b8449201952
Compute the sample size as a function of minSideLength and maxNumOfPixels. minSideLength is used to specify that minimal width or height of a bitmap. maxNumOfPixels is used to specify the maximal size in pixels that is tolerable in terms of memory usage. The function returns a sample size based on the constraints. Both size and minSideLength can be passed in as IImage.UNCONSTRAINED, which indicates no care of the corresponding constraint. The functions prefers returning a sample size that generates a smaller bitmap, unless minSideLength = IImage.UNCONSTRAINED. Also, the function rounds up the sample size to a power of 2 or multiple of 8 because BitmapFactory only honors sample size this way. For example, BitmapFactory downsamples an image by 2 even though the request is 3. So we round up the sample size to avoid OOM.
[ { "docid": "462278148aef064a4cc391c77e18d9e7", "score": "0.5710457", "text": "int getSampleSize(BitmapFactory.Options options);", "title": "" } ]
[ { "docid": "f6186b419ddb0fca6c5c60c8f65d136e", "score": "0.7959884", "text": "private static int computeSampleSize(BitmapFactory.Options options,\n int minSideLength, int maxNumOfPixels) {\n int initialSize = computeInitialSampleSize(options, minSideLength,\n maxNumOfPixels);\n\n int roundedSize;\n if (initialSize <= 8 ) {\n roundedSize = 1;\n while (roundedSize < initialSize) {\n roundedSize <<= 1;\n }\n } else {\n roundedSize = (initialSize + 7) / 8 * 8;\n }\n\n return roundedSize;\n }", "title": "" }, { "docid": "1c4938298f8816c660cd40aa9b75b744", "score": "0.7024299", "text": "private static int calculateInSampleSize(\n\t\t\tBitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\tfinal int halfHeight = height / 2;\n\t\t\tfinal int halfWidth = width / 2;\n\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and keeps both\n\t\t\t// height and width larger than the requested height and width.\n\t\t\twhile ((halfHeight / inSampleSize) > reqHeight\n\t\t\t\t\t&& (halfWidth / inSampleSize) > reqWidth) {\n\t\t\t\tinSampleSize *= 2;\n\t\t\t}//while()....\n\t\t}\n\t\tLog.d(\"Bitmaps\", \"calculateInSampleSize()::\"+inSampleSize);\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "96803b2bc1ee5abb895ac5513f9c0288", "score": "0.69767123", "text": "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) \n\t{\n\t final int height = options.outHeight;\n\t final int width = options.outWidth;\n\t int inSampleSize = 1;\n\t\n\t if (height > reqHeight || width > reqWidth) \n\t {\n\t\n\t final int halfHeight = height / 2;\n\t final int halfWidth = width / 2;\n\t\n\t // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n\t // height and width larger than the requested height and width.\n\t while ((halfHeight / inSampleSize) > reqHeight\n\t && (halfWidth / inSampleSize) > reqWidth) \n\t {\n\t inSampleSize *= 2;\n\t }\n\t }\n\n\t return inSampleSize;\n\t}", "title": "" }, { "docid": "4d35b89879d2093a367f5729cc3561d5", "score": "0.69528043", "text": "int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "15c2b69346fc95ed72c20eb5fe530219", "score": "0.69380534", "text": "private int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "44826c2db4c71b39f199952d9657a3cf", "score": "0.6921449", "text": "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "e090fd54b1f7882e68ac413cda8b5d65", "score": "0.6917922", "text": "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "387e3068266d0a612eb301d1d7c16c48", "score": "0.6907508", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, \n int reqWidth, int reqHeight) {\n final int height = options.outHeight; \n final int width = options.outWidth; \n int inSampleSize = 1; \n \n if (height > reqHeight || width > reqWidth) { \n if (width > height) { \n inSampleSize = Math.round((float) height / (float) reqHeight); \n } else { \n inSampleSize = Math.round((float) width / (float) reqWidth); \n } \n }\n return inSampleSize; \n }", "title": "" }, { "docid": "aeb8341cd1b048d7dd0248b4ff777aae", "score": "0.69056857", "text": "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "43daa4b3d08d605211a7c6dbc8277ba2", "score": "0.68554354", "text": "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "43daa4b3d08d605211a7c6dbc8277ba2", "score": "0.68554354", "text": "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "b71de991b4fc69131880b257872855cb", "score": "0.68543637", "text": "private int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\t\t\tif (width > height) {\n\t\t\t\tinSampleSize = Math.round((float)height / (float)reqHeight); \n\t\t\t} else {\n\t\t\t\tinSampleSize = Math.round((float)width / (float)reqWidth); \n\t\t\t} \n\t\t}\n\n\t\treturn inSampleSize; \n\t}", "title": "" }, { "docid": "199452889295d2b21eab6e2ee32b9908", "score": "0.68429613", "text": "private static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee a final image\n // with both dimensions larger than or equal to the requested height and width.\n inSampleSize = Math.min(heightRatio, widthRatio);\n\n // This offers some additional logic in case the image has a strange\n // aspect ratio. For example, a panorama may have a much larger\n // width than height. In these cases the total pixels might still\n // end up being too large to fit comfortably in memory, so we should\n // be more aggressive with sample down the image (=larger inSampleSize).\n\n final float totalPixels = width * height;\n\n // Anything more than 2x the requested pixels we'll sample down further\n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "bfaba1a45cc3d26a537e1c76298c2fe5", "score": "0.68412447", "text": "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth,\n\t int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\tfinal int halfHeight = height / 2;\n\t\t\tfinal int halfWidth = width / 2;\n\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and keeps both\n\t\t\t// height and width larger than the requested height and width.\n\t\t\twhile ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) {\n\t\t\t\tinSampleSize *= 2;\n\t\t\t}\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "3f98d06e918c295e6f288ea75f1656e5", "score": "0.6839367", "text": "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "dbf29d4192397623d6e6ebd799df37bb", "score": "0.6823619", "text": "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n if (reqWidth != 0) {\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "39133db4f5199ed53cce99c4fc48dfaf", "score": "0.6816879", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\r\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\r\n final int width = options.outWidth;\r\n int inSampleSize = 1;\r\n\r\n if (height > reqHeight || width > reqWidth) {\r\n\r\n final int halfHeight = height / 2;\r\n final int halfWidth = width / 2;\r\n\r\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\r\n // height and width larger than the requested height and width.\r\n while ((halfHeight / inSampleSize) > reqHeight\r\n && (halfWidth / inSampleSize) > reqWidth) {\r\n inSampleSize *= 2;\r\n }\r\n\r\n // This offers some additional logic in case the image has a strange\r\n // aspect ratio. For example, a panorama may have a much larger\r\n // width than height. In these cases the total pixels might still\r\n // end up being too large to fit comfortably in memory, so we should\r\n // be more aggressive with sample down the image (=larger inSampleSize).\r\n\r\n long totalPixels = width * height / inSampleSize;\r\n\r\n // Anything more than 2x the requested pixels we'll sample down further\r\n final long totalReqPixelsCap = reqWidth * reqHeight * 2;\r\n\r\n while (totalPixels > totalReqPixelsCap) {\r\n inSampleSize *= 2;\r\n totalPixels /= 2;\r\n }\r\n }\r\n return inSampleSize;\r\n// END_INCLUDE (calculate_sample_size)\r\n }", "title": "" }, { "docid": "70337ee493fe847cebb0d49b8205920b", "score": "0.6816572", "text": "private static int calculateInSampleSize(\n\t\t\tBitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\tfinal int halfHeight = height / 2;\n\t\t\tfinal int halfWidth = width / 2;\n\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and keeps both\n\t\t\t// height and width larger than the requested height and width.\n\t\t\twhile ((halfHeight / inSampleSize) >= reqHeight\n\t\t\t\t\t&& (halfWidth / inSampleSize) >= reqWidth) {\n\t\t\t\tinSampleSize *= 2;\n\t\t\t}\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "46014448a426bf1ab05966e334d2e986", "score": "0.6787475", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of the image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "ab096f85c4da0ca3840bd4a8019f2ceb", "score": "0.6781447", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n Log.d(LOGTAG, \"sample size was \" + inSampleSize);\n return inSampleSize;\n }", "title": "" }, { "docid": "5df09786f9f27b4e89012f9755da44ad", "score": "0.6775782", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n if (height > reqHeight || width > reqWidth) {\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((height / inSampleSize) >= reqHeight && (width / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "16992e077521af28ba9131c029630b40", "score": "0.67752063", "text": "public int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "title": "" }, { "docid": "da2f75d7aac9b675fb1263b7e1c43de4", "score": "0.6769733", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "da2f75d7aac9b675fb1263b7e1c43de4", "score": "0.6769733", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "97125bd8d868b665699b3b665b06fe80", "score": "0.67655647", "text": "private int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\t// Calculate ratios of height and width to requested height and\n\t\t\t// width\n\t\t\tfinal int heightRatio = Math.round((float) height / (float) reqHeight);\n\t\t\tfinal int widthRatio = Math.round((float) width / (float) reqWidth);\n\n\t\t\t// Choose the smallest ratio as inSampleSize value, this will\n\t\t\t// guarantee\n\t\t\t// a final image with both dimensions larger than or equal to the\n\t\t\t// requested height and width.\n\t\t\tinSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "67a12a53d6ae699d93b27198c2ae33cf", "score": "0.6760588", "text": "public int calculateInSampleSize(\n\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height\n / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "055e8bbbd137d37d3c8dc1f8db9bd776", "score": "0.6751952", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and\n // keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "205bd482b4b66aab96527b48a651cfa6", "score": "0.67477244", "text": "public int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t // Raw height and width of image\n\t final int height = options.outHeight;\n\t final int width = options.outWidth;\n\t int inSampleSize = 1;\n\t\n\t if (height > reqHeight || width > reqWidth) {\n\t\n\t final int halfHeight = height / 2;\n\t final int halfWidth = width / 2;\n\t\n\t // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n\t // height and width larger than the requested height and width.\n\t while ((halfHeight / inSampleSize) > reqHeight\n\t && (halfWidth / inSampleSize) > reqWidth) {\n\t inSampleSize *= 2;\n\t }\n\t }\n\t\n\t return inSampleSize;\n\t}", "title": "" }, { "docid": "231b073f12e2f86dd21c9064ee33c0a4", "score": "0.6744617", "text": "public int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "3164a5672d17deff819bd905b1134a35", "score": "0.6737781", "text": "static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n PhotoAnimation.smallPhoto = false;\n PhotoDoubleTouchAnimation.smallPhoto = false;\n\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n else {\n PhotoAnimation.smallPhoto = true; /**pokud je fotka moc mala tak nep;jde pribliyovat*/\n PhotoDoubleTouchAnimation.smallPhoto = false;\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "49b80b43a54c5f3c675f81e9e7ac0a58", "score": "0.67216593", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "1716061b5dc6ad5437d00e5bc4a9a9be", "score": "0.67102826", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "1716061b5dc6ad5437d00e5bc4a9a9be", "score": "0.67102826", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "9474a15bdbe314f076e1a92f97412709", "score": "0.669963", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n Log.i(\"inSampleSize \",\"\"+inSampleSize);\n return inSampleSize;\n }", "title": "" }, { "docid": "072102cf769d4a52ab795288d067a1e7", "score": "0.669962", "text": "public int calculateInSampleSize(BitmapFactory.Options options,\n\t\t\tint reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\t\tif (height > reqHeight || width > reqWidth) {\n\t\t\tif (width > height) {\n\t\t\t\tinSampleSize = Math.round((float) height / (float) reqHeight);\n\t\t\t} else {\n\t\t\t\tinSampleSize = Math.round((float) width / (float) reqWidth);\n\t\t\t}\n\t\t}\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e5ad22dca9531ce39d0e2035e14c82b4", "score": "0.6698731", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "763dfb3df3500edcd9dff506804a2612", "score": "0.66981655", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 1;\n final int halfWidth = width / 1;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "e3df25cbc2ef75ded477dc4ae75deb68", "score": "0.6693337", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, \n\t int reqWidth, int reqHeight) {\n\t final int height = options.outHeight; \n\t final int width = options.outWidth; \n\t int inSampleSize = 1; \n\t \n\t //先根据宽度进行缩小 \n\t while (width / inSampleSize > reqWidth) { \n\t inSampleSize++; \n\t } \n\t //然后根据高度进行缩小 \n\t while (height / inSampleSize > reqHeight) { \n\t inSampleSize++; \n\t } \n\t return inSampleSize; \n\t}", "title": "" }, { "docid": "7f4ed06f0779cf49af2f07dc9c2f2b00", "score": "0.66926515", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\tfinal int halfHeight = height / 2;\n\t\t\tfinal int halfWidth = width / 2;\n\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and\n\t\t\t// keeps both\n\t\t\t// height and width larger than the requested height and width.\n\t\t\twhile ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) {\n\t\t\t\tinSampleSize *= 2;\n\t\t\t}\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "13e5527c9299c6f9139b55024ef31318", "score": "0.66732526", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "60ebe9291b0d9c821c52ae6c57631fec", "score": "0.66609377", "text": "public int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n final int heightRatio = Math.round((float) height/ (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio; } final float totalPixels = width * height; final float totalReqPixelsCap = reqWidth * reqHeight * 2; while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "a4294e156966e48f04db404a497ca489", "score": "0.6655297", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n return inSampleSize + 1;\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "93b1b2ba9489729a44c22f9db4954b83", "score": "0.6653001", "text": "protected int calcInSampleSize(Options options) {\n // load raw image width and height\n final int width = options.outWidth;\n final int height = options.outHeight;\n\n int inSampleSize = 1;\n if (height > reqHeight || width > reqWidth) {\n final int halfWidth = width / 2;\n final int halfHeight = height / 2;\n while ((halfWidth / inSampleSize) > reqWidth &&\n (halfHeight / inSampleSize) > reqHeight\n ) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "66816dcf17016add3e1d897747bfe3e6", "score": "0.66515994", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "8a64dea35b518c7de751ac2820676a61", "score": "0.6634713", "text": "public int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\r\n\t\t// Raw height and width of image\r\n\t\tfinal int height = options.outHeight;\r\n\t\tfinal int width = options.outWidth;\r\n\t\tint inSampleSize = 1;\r\n\r\n\t\tif (height > reqHeight || width > reqWidth) {\r\n\r\n\t\t\t// Calculate ratios of height and width to requested height and width\r\n\t\t\tfinal int heightRatio = Math.round((float) height / (float) reqHeight);\r\n\t\t\tfinal int widthRatio = Math.round((float) width / (float) reqWidth);\r\n\r\n\t\t\t// Choose the smallest ratio as inSampleSize value, this will guarantee\r\n\t\t\t// a final image with both dimensions larger than or equal to the\r\n\t\t\t// requested height and width.\r\n\t\t\tinSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\r\n\t\t}\r\n\r\n\t\treturn inSampleSize;\r\n\t}", "title": "" }, { "docid": "121266008b15e94adf40b9b08d6f5916", "score": "0.66261065", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\r\n\t\t\tint reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\r\n\t\tfinal int width = options.outWidth;\r\n\t\tint inSampleSize = 1;\r\n\r\n\t\tif (height > reqHeight || width > reqWidth) {\r\n\r\n\t\t\tfinal int halfHeight = height / 2;\r\n\t\t\tfinal int halfWidth = width / 2;\r\n\r\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and\r\n\t\t\t// keeps both\r\n\t\t\t// height and width larger than the requested height and width.\r\n\t\t\twhile ((halfHeight / inSampleSize) > reqHeight\r\n\t\t\t\t\t&& (halfWidth / inSampleSize) > reqWidth) {\r\n\t\t\t\tinSampleSize *= 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn inSampleSize;\r\n\t}", "title": "" }, { "docid": "9a4f5de49eb03eeba52a25956c816ae4", "score": "0.6625009", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and\n // width\n final int heightRatio = Math.round((float) height\n / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will\n // guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n }\n\n return inSampleSize;\n }", "title": "" }, { "docid": "5a3f2290f30032c62a9a5a010fa98f25", "score": "0.65771997", "text": "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n }\n\n return inSampleSize;\n}", "title": "" }, { "docid": "ee3a81a23073bbdba61197fdbd53483d", "score": "0.65628237", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int reqHeight, int reqWidth) {\n int outHeight = options.outHeight;\n int outWidth = options.outWidth;\n\n int inSampleSize = 1;\n\n if (outHeight > reqHeight && outWidth > reqWidth) {\n int halfHeight = outHeight / 2;\n int halfWidth = outWidth / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n //设置inSampleSize为2的幂是因为解码器最终还是会对非2的幂的数进行向下处理,获取到最靠近2的幂的数。详情参考inSampleSize的文档。\n while (halfHeight / inSampleSize > reqHeight &&\n halfWidth / inSampleSize > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "2ff6b1569acbe6b7354dd2e0e69323dc", "score": "0.65389925", "text": "private static int calculateInSampleSize(final BitmapFactory.Options options,\n final int maxWidth,\n final int maxHeight) {\n int height = options.outHeight;\n int width = options.outWidth;\n int inSampleSize = 1;\n while ((width >>= 1) >= maxWidth && (height >>= 1) >= maxHeight) {\n inSampleSize <<= 1;\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "5ff643451305b574daee2182c393496f", "score": "0.6508872", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\n\t\t\tint reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\t// Calculate ratios of height and width to requested height and\n\t\t\t// width\n\t\t\tfinal int heightRatio = Math.round((float) height\n\t\t\t\t\t/ (float) reqHeight);\n\t\t\tfinal int widthRatio = Math.round((float) width / (float) reqWidth);\n\n\t\t\t// Choose the smallest ratio as inSampleSize value, this will\n\t\t\t// guarantee\n\t\t\t// a final image with both dimensions larger than or equal to the\n\t\t\t// requested height and width.\n\t\t\tinSampleSize = heightRatio < widthRatio ? widthRatio : heightRatio;\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "ab948fbc1339e4494ed24c4b964371c7", "score": "0.64951736", "text": "public static int calculateInSampleSize(Options options,\n\t\t\tint reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\tfinal int halfHeight = height / 2;\n\t\t\tfinal int halfWidth = width / 2;\n\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and\n\t\t\t// keeps both\n\t\t\t// height and width larger than the requested height and width.\n\t\t\twhile ((halfHeight / inSampleSize) > reqHeight\n\t\t\t\t\t&& (halfWidth / inSampleSize) > reqWidth) {\n\t\t\t\tinSampleSize *= 2;\n\t\t\t}\n\t\t}\n\n\t\treturn inSampleSize;\n\t}", "title": "" }, { "docid": "7ea3df7fe486c629666c281a0d3ab0ef", "score": "0.6399729", "text": "public static int calculateInSampleSize(BitmapFactory.Options options,\n int targetW, int targetH) {\n final int photoH = options.outHeight;\n final int photoW = options.outWidth;\n int scaleFactor = 1;\n\n /*if (height > reqHeight || width > reqWidth) {\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n\n while ((halfHeight / inSampleSize) > reqHeight &&\n (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }*/\n\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n return scaleFactor;\n }", "title": "" }, { "docid": "41f6523445966444ff8a0cb173d7f643", "score": "0.6370156", "text": "public @UInt32 int getSampleSize();", "title": "" }, { "docid": "425671e0be42e3db6d2b5a272a9c2de9", "score": "0.62416154", "text": "public static int calculateInSampleSize(BitmapFactory.Options options, int rqsW, int rqsH) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n if (rqsW == 0 || rqsH == 0) return 1;\n if (height > rqsH || width > rqsW) {\n final int heightRatio = Math.round((float) height / (float) rqsH);\n final int widthRatio = Math.round((float) width / (float) rqsW);\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n }\n return inSampleSize;\n }", "title": "" }, { "docid": "f73c5602d4e88af12b05b12d75e1ef7c", "score": "0.5875545", "text": "public abstract int[] getSampleSize();", "title": "" }, { "docid": "6a5aefea3c8112894a5c3f4a802e3392", "score": "0.5769796", "text": "public int getSampleSize()\r\n/* 85: */ {\r\n/* 86:161 */ return this.sampleSize;\r\n/* 87: */ }", "title": "" }, { "docid": "16cb0c2e77f4d5df25ad1c59ac6c162f", "score": "0.57674956", "text": "public abstract int getSampleSize(int band);", "title": "" }, { "docid": "11cc35493332b768c5da27e27fe1a9af", "score": "0.54753155", "text": "public int sampleSize() {\n return sampleSize;\n }", "title": "" }, { "docid": "67ac39bed73e4e2a47f905182686d2d3", "score": "0.5335053", "text": "private static int getImageScale(String imagePath, int maxWidth,\n int maxHeight) {\n BitmapFactory.Options option = new BitmapFactory.Options();\n // set inJustDecodeBounds to true, allowing the caller to query the\n // bitmap info without having to allocate the\n // memory for its pixels.\n option.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, option);\n// float ratioW = option.outWidth / maxWidth;\n// float ratiH = option.outHeight / maxHeight;\n //float sampleScale = ratioW>ratiH?ratioW:ratiH;\n //int scale = ratioW<=1?1:(int)ratioW;\n int scale = 1;\n while (option.outWidth / scale > maxWidth\n || option.outHeight / scale > maxHeight) {\n scale++;\n }\n return scale;\n }", "title": "" }, { "docid": "e108cacdfc6aebcf30cc783f62c0c54f", "score": "0.5197872", "text": "public static int findScaleFactor(int targetW, int targetH, InputStream is) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, bmOptions);\n int actualW = bmOptions.outWidth;\n int actualH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n return Math.min(actualW / targetW, actualH / targetH);\n }", "title": "" }, { "docid": "011eb339c90cd1edcf96900d0e7b664c", "score": "0.51648945", "text": "public static native int GetSampleSize(long format);", "title": "" }, { "docid": "668135aa1a71e5718dc350a4d18f7384", "score": "0.50854397", "text": "public int samplingSize() {\n return 0;\n }", "title": "" }, { "docid": "ff46d7e15da0f6f8fc0ce3312a165e71", "score": "0.50502497", "text": "int getSquareSize();", "title": "" }, { "docid": "299ca84310ff5f29316f72834cbaa11c", "score": "0.5048367", "text": "private Bitmap createScaledBitmapKeepingAspectRatio(Bitmap bitmap,\r\n\t\t\tint maxSide) {\r\n\t\tint orgHeight = bitmap.getHeight();\r\n\t\tint orgWidth = bitmap.getWidth();\r\n\r\n\t\t// scale to no longer any either side than 75px\r\n\t\tint scaledWidth = (orgWidth >= orgHeight) ? maxSide\r\n\t\t\t\t: (int) (maxSide * ((float) orgWidth / (float) orgHeight));\r\n\t\tint scaledHeight = (orgHeight >= orgWidth) ? maxSide\r\n\t\t\t\t: (int) (maxSide * ((float) orgHeight / (float) orgWidth));\r\n\r\n\t\t// create the scaled bitmap\r\n\t\tBitmap scaledGalleryPic = Bitmap.createScaledBitmap(bitmap,\r\n\t\t\t\tscaledWidth, scaledHeight, true);\r\n\t\treturn scaledGalleryPic;\r\n\t}", "title": "" }, { "docid": "95f9d749313da025d2e4b398ad3e0bcd", "score": "0.49711445", "text": "public static int scaleWidth(BitmapFactory.Options options, int reqWidth) {\n // Raw height and width of image\n int actualWidth = options.outWidth;\n\n while (actualWidth > reqWidth) {\n\n actualWidth = actualWidth / 2;\n\n }\n\n return actualWidth;\n }", "title": "" }, { "docid": "6fecc0f69ba7ca17df0155bb249bbbdf", "score": "0.49238908", "text": "public static Bitmap reducedBitmap(String path, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n options.inSampleSize = inSampleSize;\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "title": "" }, { "docid": "b9dc2129657840997eb3bac0e81b8ffb", "score": "0.48971742", "text": "public int getTileSizePixels();", "title": "" }, { "docid": "644eb62e94f9325f13e0dab6f9936730", "score": "0.4891437", "text": "private static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "title": "" }, { "docid": "644eb62e94f9325f13e0dab6f9936730", "score": "0.4891437", "text": "private static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "title": "" }, { "docid": "e792e42035b6dc5daa042fc714ffe093", "score": "0.4881537", "text": "private Bitmap decodeSampledBitmap(InputSupplier input) throws IOException {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n InputStream is = input.getInput();\n try {\n BitmapFactory.decodeStream(is, null, options);\n } finally {\n is.close();\n }\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n is = input.getInput();\n try {\n return BitmapFactory.decodeStream(is, null, options);\n } finally {\n is.close();\n }\n }", "title": "" }, { "docid": "417a584b89b6983e6e6f1bb362d310d6", "score": "0.48731706", "text": "public\tint\t\t\tgetMaximumWidthInBytes();", "title": "" }, { "docid": "7e3bdcc624fab4672e6ac81494dc746f", "score": "0.48696724", "text": "public static int getMaxImageSizeBounds() {\n final long availMem = Runtime.getRuntime().totalMemory() / (1024 * 1024);\n final int bounds = availMem > 15 ? 2048 : availMem > 5 ? 1024 : 512;\n return bounds;\n }", "title": "" }, { "docid": "d35cfc51de42a568251cdccb174e4e4b", "score": "0.4862026", "text": "protected abstract int getImageSize();", "title": "" }, { "docid": "23955af932bd29322e2e89d5fffd267a", "score": "0.48166123", "text": "int getDesiredSize(Dimension dimension);", "title": "" }, { "docid": "a868fa4c34e9d137fb026ca01b4e94cf", "score": "0.48092553", "text": "protected int chooseShrinkCapacity(int size, double minLoad, double maxLoad) {\n return nextPrime(Math.max(size + 1, (int) ((4 * size / (minLoad + 3 * maxLoad)))));\n }", "title": "" }, { "docid": "3638a4a4d682bd66ca6e8ed826a85a60", "score": "0.47932303", "text": "public static Bitmap readImageWithSampling(String imagePath, int targetWidth, Bitmap.Config bmConfig) {\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\r\n\t\t//이미지를 메모리에 올려놓지 않고 해상도만 알아냄\r\n\t\tbmOptions.inJustDecodeBounds = true; \r\n\t\tBitmapFactory.decodeFile(imagePath, bmOptions);\r\n\r\n\t\tMylog.v(\"sss path : \" + imagePath);\r\n\t\tint photoWidth = bmOptions.outWidth;\r\n\t\t//int photoHeight = bmOptions.outHeight;\r\n\r\n\t\t// Determine how much to scale down the image\r\n\t\t\r\n\t\t//이미지 축소비율 설정\r\n\t\t//int scaleFactor = Math.min(photoWidth / targetWidth, photoHeight / targetHeight);\r\n\r\n\t\tint scaleFactor = photoWidth / targetWidth;\r\n//\t\tif(scaleFactor>0){\r\n//\t\t\tscaleFactor--;\r\n//\t\t}\r\n\t\t\t\r\n\t\tMylog.v(\"====scaleFactor : \"+scaleFactor);\r\n\t\t// Decode the image file into a Bitmap sized to fill the View\r\n\t\tbmOptions.inPreferredConfig = bmConfig;\r\n\t\tbmOptions.inJustDecodeBounds = false;\r\n\t\tbmOptions.inSampleSize = scaleFactor;\r\n\t\tbmOptions.inPurgeable = true;\r\n\t\tbmOptions.inDither = false;\r\n\r\n\t\tBitmap orgImage = BitmapFactory.decodeFile(imagePath, bmOptions);\r\n\r\n\t\tMylog.v(\"orgImage : \" + orgImage);\r\n\t\treturn orgImage;\r\n\t}", "title": "" }, { "docid": "1976ce3fbc439a8be16915d7e9a9f7e9", "score": "0.47869584", "text": "@SdkSuppress(minSdkVersion = Build.VERSION_CODES.KITKAT)\n private void scaledBitmapAndAssertQuality(int scaledWidth, int scaledHeight,\n boolean scaleInLinearSpace,\n float expectedMeanValue, float expectedVariance, Bitmap.Config inputConfig) {\n int width = 500;\n int height = 500;\n Bitmap bm = Bitmap.createBitmap(width, height, inputConfig);\n fillStripes(bm);\n\n int numOut = scaledWidth * scaledHeight;\n Bitmap output = BitmapCompat.createScaledBitmap(bm, scaledWidth, scaledHeight, null,\n scaleInLinearSpace);\n\n // assert correct metadata\n assertEquals(scaledWidth, output.getWidth());\n assertEquals(scaledHeight, output.getHeight());\n assertEquals(bm.getConfig(), output.getConfig());\n\n // measure the variance of the red channel in the result\n int[] pixelsOut = new int[numOut];\n output.getPixels(pixelsOut, 0, scaledWidth, 0, 0, scaledWidth, scaledHeight);\n float totalRed = 0;\n for (int i = 0; i < numOut; i++) {\n totalRed += Color.red(pixelsOut[i]);\n }\n totalRed /= numOut;\n assertTrue(Math.abs(totalRed - expectedMeanValue) < Math.sqrt(expectedVariance));\n float variance = 0;\n for (int i = 0; i < numOut; i++) {\n variance += Math.pow(Color.red(pixelsOut[i]) - totalRed, 2);\n }\n variance /= numOut;\n assertTrue(variance < expectedVariance);\n\n bm.recycle();\n output.recycle();\n }", "title": "" }, { "docid": "508619374842466e2465e3f3e148ab6e", "score": "0.47607365", "text": "ImageSize getPictureSize();", "title": "" }, { "docid": "3ea15d5ce08faaca637fa8c1df6ec125", "score": "0.47563508", "text": "public static Bitmap getSample(Bitmap input, int width){\n if(input.getWidth()<=width) return input;\n else{\n //ratio\n float ratio = (float)input.getHeight()/(float)input.getWidth();\n int height = Math.round(ratio*width);\n return Bitmap.createScaledBitmap(input, width, height,false);\n }\n }", "title": "" }, { "docid": "8086257fe7f85fab3c26686222a2f915", "score": "0.474989", "text": "public static Bitmap decodeSampledBitmapFromFile(String filePath,int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filePath, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\n\n //Bitmap image = BitmapFactory.decodeFile(filePath, options);\n\n Log.d(\"options.outWidth\", \"\"+options.outWidth);\n Log.d(\"options.outHeight\", \"\"+options.outHeight);\n\n\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n Bitmap image = BitmapFactory.decodeFile(filePath, options);\n try\n {\n return Bitmap.createScaledBitmap(image,reqWidth,reqHeight,true);\n }\n catch (Exception e)\n {\n //Log.e(\"error\",e.getMessage());\n return image;\n }\n\n }", "title": "" }, { "docid": "e6f00b6a63aa93409bfa911e6a14e5dc", "score": "0.4747032", "text": "public static int getBitsSize() {\n if (bitSizeIsDefined())\n return Integer.parseInt(System.getProperty(BIT_SIZE_PROPERTY_NAME)) / 2;\n\n return DEFAULT_BITS_SIZE;\n }", "title": "" }, { "docid": "4e06ee7dc971a5a66458b44df51dc062", "score": "0.4739754", "text": "Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "title": "" }, { "docid": "dcc3080392b10f9887f216852479148d", "score": "0.47224525", "text": "public static synchronized Bitmap decodeSampledBitmapFromStream( \n\t InputStream in, int reqWidth, int reqHeight) {\n\t final BitmapFactory.Options options = new BitmapFactory.Options(); \n\t options.inJustDecodeBounds = true; \n\t BitmapFactory.decodeStream(in, null, options); \n\t \n\t // Calculate inSampleSize \n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, \n\t reqHeight); \n\t \n\t // Decode bitmap with inSampleSize set \n\t options.inJustDecodeBounds = false; \n\t return BitmapFactory.decodeStream(in, null, options); \n\t}", "title": "" }, { "docid": "7381528f4a05d857b17f901712e24fc6", "score": "0.47136092", "text": "public static int getScale(int originalWidth,int originalHeight, final int requiredWidth,final int requiredHeight)\n\t\t {\n\t\t\t int scale=1;\n\t\t\t \n\t\t\t //calculate scale only if the height or width of\n\t\t\t //the image exceeds the required value.\n\t\t if((originalWidth>requiredWidth) || (originalHeight>requiredHeight))\n\t\t {\n\t\t //calculate scale with respect to\n\t\t\t //the smaller dimension\n\t\t\t if(originalWidth<originalHeight)\n\t\t\t \tscale=Math.round((float)originalWidth/requiredWidth);\n\t\t\t else\n\t\t\t \tscale=Math.round((float)originalHeight/requiredHeight);\n\t\t \n\t\t }\n\t\t\t \n\t\t\t return scale;\n\t\t }", "title": "" }, { "docid": "77d7293ce2e61bec9dc9c8751142330a", "score": "0.4706288", "text": "private int[] getThumbsize(int width, int height, int maxWidth, int maxHeight) {\n\t\tif (width == height) {\n\t\t\treturn new int[] { maxWidth, maxHeight, 0, 0 };\n\t\t} else {\n\t\t\t// proportional rescale\n\t\t\tif (maxWidth == -1 || maxHeight == -1) {\n\t\t\t\t// scale over width\n\t\t\t\tif (maxWidth > 0) {\n\t\t\t\t\theight = (int) ((maxWidth / (double) width) * height);\n\t\t\t\t\twidth = maxWidth;\n\t\t\t\t\t// scale over height\n\t\t\t\t} else if (maxHeight > 0) {\n\t\t\t\t\twidth = (int) ((maxHeight / (double) height) * width);\n\t\t\t\t\theight = maxHeight;\n\t\t\t\t} // no scale? if both <= 0\n\t\t\t\treturn new int[] { width, height, 0, 0 };\n\t\t\t\t// full rescale in canvas\n\t\t\t} else {\n\t\t\t\tint bigSide;\n\t\t\t\tint smallSide;\n\t\t\t\tint biggerMax;\n\t\t\t\tint smallerMax;\n\t\t\t\t// figure which is bigger\n\t\t\t\tboolean widthIsBigger = width > height;\n\t\t\t\t// move the values to their proper variables\n\t\t\t\tif (widthIsBigger) {\n\t\t\t\t\tif (((maxWidth / (double) width) * height) > maxHeight) {\n\t\t\t\t\t\twidthIsBigger = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (widthIsBigger) {\n\t\t\t\t\tbiggerMax = maxWidth;\n\t\t\t\t\tsmallerMax = maxHeight;\n\t\t\t\t\tbigSide = width;\n\t\t\t\t\tsmallSide = height;\n\t\t\t\t} else {\n\t\t\t\t\tbiggerMax = maxHeight;\n\t\t\t\t\tsmallerMax = maxWidth;\n\t\t\t\t\tbigSide = height;\n\t\t\t\t\tsmallSide = width;\n\t\t\t\t}\n\t\t\t\t// calculate the smaller sides new size\n\t\t\t\tint newSmallSide = (int) ((biggerMax * smallSide) / bigSide);\n\t\t\t\tint position = (int) ((smallerMax - newSmallSide) / 2);\n\t\t\t\t// Return the Values at their proper indicies\n\t\t\t\tif (widthIsBigger) {\n\t\t\t\t\treturn new int[] { biggerMax, newSmallSide, 0, position };\n\t\t\t\t} else {\n\t\t\t\t\treturn new int[] { newSmallSide, biggerMax, position, 0 };\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if (width > height) {\n\t\t\t// newWidth = maxWidth;\n\t\t\t// newHeight = (int) ((newWidth * height) / width);\n\t\t\t//\n\t\t\t// newPosX = 0;\n\t\t\t// newPosY = (int) ((maxHeight - newHeight) / 2);\n\t\t\t// } else {\n\t\t\t// newHeight = maxHeight;\n\t\t\t// newWidth = (int) ((newHeight * width) / height);\n\t\t\t//\n\t\t\t// newPosX = (int) ((maxWidth - newWidth) / 2);\n\t\t\t// newPosY = 0;\n\t\t\t// }\n\t\t\t//\n\t\t\t// return new int[] { newWidth, newHeight, newPosX, newPosY };\n\t\t}\n\t}", "title": "" }, { "docid": "b7d2bfa1758f41a15f2bcbadc5f3b7ca", "score": "0.4693953", "text": "public static int getSquareSize() {\n\t\treturn SQUARE_SIZE;\n\t}", "title": "" }, { "docid": "1b226354066789ef45336c655ec622f2", "score": "0.46932018", "text": "@Override\n public int getSize() {\n return Util.getBitmapByteSize(preview);\n }", "title": "" }, { "docid": "8eb66c14677909e7a93161650eab0066", "score": "0.46895778", "text": "public int getDimensionPixelSize(int index, int defValue) {\n/* 320 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "6779dd91c23308057751b2560e325640", "score": "0.46574122", "text": "public static Bitmap decodeSampledBitmapFromResource(String path, \n\t int reqWidth, int reqHeight) {\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\n\t options.inJustDecodeBounds = true;\n\t BitmapFactory.decodeFile(path, options);\n\n\t // Calculate inSampleSize\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\t // Decode bitmap with inSampleSize set\n\t options.inJustDecodeBounds = false;\n\t return BitmapFactory.decodeFile(path, options);\n\t}", "title": "" }, { "docid": "ac0b6b5274464a13ce746f3699f56e6e", "score": "0.46531412", "text": "protected int chooseMeanCapacity(int size, double minLoad, double maxLoad) {\n return nextPrime(Math.max(size + 1, (int) ((2 * size / (minLoad + maxLoad)))));\n }", "title": "" }, { "docid": "74f1b72f262c35d9f53d330a6d4a7652", "score": "0.46463266", "text": "long getSampleCount() {\n\t\tlong total = (audioInputStream.getFrameLength() * getFormat().getFrameSize() * 8)\n\t\t\t\t/ getFormat().getSampleSizeInBits();\n\t\treturn total / getFormat().getChannels();\n\t}", "title": "" }, { "docid": "707365f387871c4bb04de214d4446a8d", "score": "0.46295398", "text": "int getCropWidth();", "title": "" }, { "docid": "b8517bec0f49c866b758f2f6e655c2a4", "score": "0.46206406", "text": "public int getRandomSize()\n {\n return randomSize = rand.nextInt(200) + 10;\n }", "title": "" } ]
2175103859a1ce910efc6675191667aa
Test that we are able to perform the uploadFile S3Dao operation on S3 using our DAO tier.
[ { "docid": "77ca1787d7e3d5ace8866b10eb0a4a59", "score": "0.7332642", "text": "@Test\n public void testUploadFile() throws IOException, InterruptedException\n {\n // Create local test file.\n File targetFile = createLocalFile(localTempPath.toString(), LOCAL_FILE, FILE_SIZE_1_KB);\n Assert.assertTrue(targetFile.isFile());\n Assert.assertTrue(targetFile.length() == FILE_SIZE_1_KB);\n\n // Upload test file to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TARGET_S3_KEY);\n s3FileTransferRequestParamsDto.setLocalPath(targetFile.getPath());\n S3FileTransferResultsDto results = s3Dao.uploadFile(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate the file upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, Arrays.asList(TARGET_S3_KEY));\n }", "title": "" } ]
[ { "docid": "8d9dfe69a695af17fba14edbb85c8773", "score": "0.73033136", "text": "@Test\n\tpublic void testTransferToS3() throws Exception {\n\t\tS3FileHandle meta = strategy.transferToS3(transferRequest);\n\t\tassertNotNull(meta);\n\t\tassertEquals(transferRequest.getS3bucketName(), meta.getBucketName());\n\t\tassertEquals(transferRequest.getS3key(), meta.getKey());\n\t\tassertEquals(expectedMD5, meta.getContentMd5());\n\t\tassertEquals(expectedContentLength, meta.getContentSize());\n\t\tassertEquals(transferRequest.getContentType(), meta.getContentType());\n\t\tassertEquals(transferRequest.getFileName(), meta.getFileName());\n\t}", "title": "" }, { "docid": "ec7b9301cb43369bc102e6d3829d227a", "score": "0.67594886", "text": "@Test(expected = NullPointerException.class)\n public void testUploadFileNullPointerException() throws InterruptedException\n {\n s3Dao.uploadFile(null);\n }", "title": "" }, { "docid": "a382155dc04b2cf727dbe6a4be491614", "score": "0.6672357", "text": "@Test\n public void testUploadFileList() throws IOException, InterruptedException\n {\n // Create local test files.\n for (String file : LOCAL_FILES)\n {\n createLocalFile(localTempPath.toString(), file, FILE_SIZE_1_KB);\n }\n\n // Create a list of files to be uploaded along with the list of expected S3 key values.\n List<File> requestFileList = new ArrayList<>();\n List<String> expectedKeys = new ArrayList<>();\n for (String file : LOCAL_FILES_SUBSET)\n {\n requestFileList.add(Paths.get(localTempPath.toString(), file).toFile());\n expectedKeys.add(TEST_S3_KEY_PREFIX + \"/\" + file.replaceAll(\"\\\\\\\\\", \"/\"));\n }\n\n // Upload test file to s3Dao.\n // Since the S3 key prefix represents a directory, we add a trailing '/' character to it.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX + \"/\");\n s3FileTransferRequestParamsDto.setLocalPath(localTempPath.toString());\n s3FileTransferRequestParamsDto.setFiles(requestFileList);\n S3FileTransferResultsDto results = s3Dao.uploadFileList(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == LOCAL_FILES_SUBSET.size());\n\n // Validate the upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, expectedKeys);\n }", "title": "" }, { "docid": "1f10fc40c9355b6aa332b02ad86e6919", "score": "0.66096866", "text": "private static void uploadObject(String json, String s3Key) {\n\t\tAWSCredentials credentials = new BasicAWSCredentials(Credentials.ACCESSKEY, Credentials.SECRETKEY);\n\t\t// Set up s3client\n\t\ts3Client = AmazonS3ClientBuilder.standard()\n\t\t\t\t.withRegion(REGION)\n\t\t\t\t.withCredentials(new AWSStaticCredentialsProvider(credentials))\n\t\t\t\t.build();\n\t\t// Put object in bucket\n\t\ts3Client.putObject(SEMI_BUCKET, s3Key, json);\n\t}", "title": "" }, { "docid": "ead55877020681d9d6a5f6196b2cde43", "score": "0.66043884", "text": "@Timeout(duration = 90, timeUnit = TimeUnit.SECONDS)\npublic interface AWSS3Client extends S3Client {\n /**\n * This operation initiates a multipart upload and returns an upload ID. This upload ID is used\n * to associate all the parts in the specific multipart upload. You specify this upload ID in\n * each of your subsequent upload part requests (see Upload Part). You also include this upload\n * ID in the final request to either complete or abort the multipart upload request.\n * \n * <h4>Note</h4> If you create an object using the multipart upload APIs, currently you cannot\n * copy the object between regions.\n * \n * \n * @param bucketName\n * namespace of the object you are to upload\n * @param objectMetadata\n * metadata around the object you wish to upload\n * @param options\n * controls optional parameters such as canned ACL\n * @return ID for the initiated multipart upload.\n */\n String initiateMultipartUpload(String bucketName, ObjectMetadata objectMetadata, PutObjectOptions... options);\n\n /**\n * This operation aborts a multipart upload. After a multipart upload is aborted, no additional\n * parts can be uploaded using that upload ID. The storage consumed by any previously uploaded\n * parts will be freed. However, if any part uploads are currently in progress, those part\n * uploads might or might not succeed. As a result, it might be necessary to abort a given\n * multipart upload multiple times in order to completely free all storage consumed by all parts.\n * \n * \n * @param bucketName\n * namespace of the object you are deleting\n * @param key\n * unique key in the s3Bucket identifying the object\n * @param uploadId\n * id of the multipart upload in progress.\n */\n void abortMultipartUpload(String bucketName, String key, String uploadId);\n\n /**\n * This operation uploads a part in a multipart upload. You must initiate a multipart upload (see\n * Initiate Multipart Upload) before you can upload any part. In response to your initiate\n * request. Amazon S3 returns an upload ID, a unique identifier, that you must include in your\n * upload part request.\n * \n * <p/>\n * Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely identifies\n * a part and also defines its position within the object being created. If you upload a new part\n * using the same part number that was used with a previous part, the previously uploaded part is\n * overwritten. Each part must be at least 5 MB in size, except the last part. There is no size\n * limit on the last part of your multipart upload.\n * \n * <p/>\n * To ensure that data is not corrupted when traversing the network, specify the Content-MD5\n * header in the upload part request. Amazon S3 checks the part data against the provided MD5\n * value. If they do not match, Amazon S3 returns an error.\n * \n * \n * @param bucketName\n * namespace of the object you are storing\n * @param key\n * unique key in the s3Bucket identifying the object\n * @param partNumber\n * which part is this.\n * @param uploadId\n * id of the multipart upload in progress.\n * @param part\n * contains the data to create or overwrite\n * @return ETag of the content uploaded\n * @see <a href=\"http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadUploadPart.html\"\n * />\n */\n @Timeout(duration = 5 * 1024 * 1024 / 128, timeUnit = TimeUnit.SECONDS)\n String uploadPart(String bucketName, String key, int partNumber, String uploadId, Payload part);\n\n /**\n * \n This operation completes a multipart upload by assembling previously uploaded parts.\n * <p/>\n * You first initiate the multipart upload and then upload all parts using the Upload Parts\n * operation (see Upload Part). After successfully uploading all relevant parts of an upload, you\n * call this operation to complete the upload. Upon receiving this request, Amazon S3\n * concatenates all the parts in ascending order by part number to create a new object. In the\n * Complete Multipart Upload request, you must provide the parts list. For each part in the list,\n * you must provide the part number and the ETag header value, returned after that part was\n * uploaded.\n * <p/>\n * Processing of a Complete Multipart Upload request could take several minutes to complete.\n * After Amazon S3 begins processing the request, it sends an HTTP response header that specifies\n * a 200 OK response. While processing is in progress, Amazon S3 periodically sends whitespace\n * characters to keep the connection from timing out. Because a request could fail after the\n * initial 200 OK response has been sent, it is important that you check the response body to\n * determine whether the request succeeded.\n * <p/>\n * Note that if Complete Multipart Upload fails, applications should be prepared to retry the\n * failed requests.\n * \n * @param bucketName\n * namespace of the object you are deleting\n * @param key\n * unique key in the s3Bucket identifying the object\n * @param uploadId\n * id of the multipart upload in progress.\n * @param parts\n * a map of part id to eTag from the {@link #uploadPart} command.\n * @return ETag of the content uploaded\n */\n String completeMultipartUpload(String bucketName, String key, String uploadId, Map<Integer, String> parts);\n}", "title": "" }, { "docid": "f82eae361f0e65de54687c43fef357f3", "score": "0.6578816", "text": "@Test\n @Sql(scripts = { \"classpath:/integration/product/shouldAdminUserUpdateProduct.sql\" })\n public void shouldAdminUserUpdateProduct(\n @Value(\"classpath:/integration/product/shouldAdminUserUpdateProduct.json\") Resource dummyFormJsonFile)\n throws Exception {\n\n Mockito.doNothing().when(this.s3Service).upload(Mockito.any(), Mockito.any());\n Mockito.doNothing().when(this.s3Service).delete(Mockito.any());\n\n JsonNode dummyFormJson = this.objectMapper.readTree(this.resourceReader.asString(dummyFormJsonFile));\n String dummyFormJsonString = dummyFormJson.toString();\n String dummyVersion = \"\\\"0\\\"\";\n\n String dummyProductId = dummyFormJson.get(\"productId\").asText();\n\n // create dummy files in the directory\n // - must match with input json script\n // arrange\n String targetUrl = \"http://localhost:\" + this.port + this.targetPath + \"/\" + dummyProductId;\n\n // make sure the file name match with input json script.\n MockMultipartFile newFileAtZeroIndex = new MockMultipartFile(\"files\", \"product-image-0.svg\", \"image/svg+xml\",\n \"some svg\".getBytes());\n MockMultipartFile jsonFile = new MockMultipartFile(\"criteria\", \"\", \"application/json\",\n dummyFormJsonString.getBytes());\n\n // act & assert\n\n // multipart & PUT, you need this\n MockMultipartHttpServletRequestBuilder builder = (MockMultipartHttpServletRequestBuilder) MockMvcRequestBuilders\n .multipart(targetUrl) // update\n .with(new RequestPostProcessor() {\n @Override\n public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {\n request.setMethod(\"PUT\");\n return request;\n }\n });\n\n ResultActions resultActions = mvc\n .perform(builder.file(newFileAtZeroIndex).file(jsonFile).contentType(MediaType.MULTIPART_FORM_DATA)\n .content(dummyFormJsonString).cookie(this.authCookie).cookie(this.csrfCookie)\n .header(\"If-Match\", dummyVersion)\n .header(\"csrf-token\", this.authInfo.getCsrfToken()).accept(MediaType.APPLICATION_JSON))\n .andDo(print()).andExpect(status().isOk());\n\n MvcResult result = resultActions.andReturn();\n String etag = result.getResponse().getHeader(\"ETag\");\n\n JsonNode contentAsJsonNode = this.objectMapper.readValue(result.getResponse().getContentAsString(), JsonNode.class);\n ProductDTO responseBody = this.objectMapper.treeToValue(contentAsJsonNode, ProductDTO.class);\n\n assertThat(result.getResponse().getStatus()).isEqualTo(200);\n assertThat(responseBody.getProductId()).isNotNull();\n assertThat(etag).isEqualTo(\"\\\"1\\\"\");\n assertThat(responseBody.getProductName()).isEqualTo(dummyFormJson.get(\"productName\").asText());\n // check the sql file to get each review point (only verified)\n assertThat(responseBody.getAverageReviewPoint()).isEqualTo(Arrays.asList(3.9, 4.9).stream().mapToDouble(val -> val).average().orElse(0.0));\n assertThat(responseBody.getCategory().getCategoryId().toString())\n .isEqualTo(dummyFormJson.get(\"category\").get(\"categoryId\").asText());\n assertThat(responseBody.getCategory().getVersion()).isEqualTo(0L); // make sure category version is not updated.\n assertThat(responseBody.getCheapestPrice()).isEqualTo(new BigDecimal(\"123.0\"));\n assertThat(responseBody.getHighestPrice()).isEqualTo(new BigDecimal(\"123.0\"));\n assertThat(1).isEqualTo(responseBody.getVariants().size());\n\n List<ProductImageDTO> productImages = responseBody.getProductImages();\n\n for (int i = 0; i < productImages.size(); i++) {\n\n assertThat(productImages.get(i).getIsChange()).isEqualTo(false);\n\n if (i == 0 || i == 1 || i == 3) {\n if (i == 0) {\n // update\n assertThat(productImages.get(i).getProductImageName()).isEqualTo(\"product-image-0\");\n assertThat(productImages.get(i).getProductImagePath())\n .matches(\"domain/products/\" + responseBody.getProductId().toString() + \"/images/product-image-0-.+.svg\");\n assertThat(productImages.get(i).getVersion()).isEqualTo(1L);\n } else if (i == 1) {\n // unchange\n assertThat(productImages.get(i).getProductImageName()).isEqualTo(\"product-image-1\");\n assertThat(productImages.get(i).getProductImagePath())\n .matches(\"domain/products/\" + responseBody.getProductId().toString() + \"/images/product-image-1-.+.png\");\n assertThat(productImages.get(i).getVersion()).isEqualTo(0L);\n } else if (i == 3) {\n // remove\n assertThat(productImages.get(i).getProductImageName()).isEqualTo(\"product-image-3\");\n assertThat(productImages.get(i).getProductImagePath()).isEqualTo(\"\");\n assertThat(productImages.get(i).getVersion()).isEqualTo(1L);\n }\n } else {\n assertThat(productImages.get(i).getProductImagePath()).isEqualTo(\"\");\n }\n }\n\n for (ProductVariantDTO variantDTO : responseBody.getVariants()) {\n assertThat(variantDTO.getVariantId()).isNotNull();\n }\n }", "title": "" }, { "docid": "0f72de2db4b683e4d3d428c0726ed7b6", "score": "0.65687275", "text": "@Test\n public void testGetS3ObjectSuccess() throws IOException\n {\n String expectedContentString = \"test\";\n ByteArrayInputStream inputStream = new ByteArrayInputStream(expectedContentString.getBytes());\n PutObjectRequest putObjectRequest = new PutObjectRequest(\"test_bucket\", \"test_key\", inputStream, new ObjectMetadata());\n s3Operations.putObject(putObjectRequest, null);\n\n GetObjectRequest getObjectRequest = new GetObjectRequest(\"test_bucket\", \"test_key\");\n S3Object s3Object = s3Dao.getS3Object(getObjectRequest, getTestS3FileTransferRequestParamsDto());\n\n S3ObjectInputStream resultInputStream = s3Object.getObjectContent();\n String actualContentString = IOUtils.toString(resultInputStream);\n Assert.assertEquals(\"result content string\", expectedContentString, actualContentString);\n }", "title": "" }, { "docid": "c069b0aba0c172ed2f6b57d67a4d869a", "score": "0.65419674", "text": "@Before\n public void setUp() {\n AWSCredentials credentials = new ProfileCredentialsProvider(\"default\").getCredentials();\n Region region = Region.getRegion(Regions.US_EAST_1);\n s3h = new S3Helper(credentials, region);\n s3 = new AmazonS3Client(credentials);\n }", "title": "" }, { "docid": "bbfd06d8429af7f091c28a55c3ba470c", "score": "0.6490665", "text": "@Test\n public void testUploadFileWithMaxThreadsSet() throws IOException, InterruptedException\n {\n // Create local test file.\n File targetFile = createLocalFile(localTempPath.toString(), LOCAL_FILE, FILE_SIZE_1_KB);\n Assert.assertTrue(targetFile.isFile());\n Assert.assertTrue(targetFile.length() == FILE_SIZE_1_KB);\n\n // Upload test file to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TARGET_S3_KEY);\n s3FileTransferRequestParamsDto.setLocalPath(targetFile.getPath());\n s3FileTransferRequestParamsDto.setMaxThreads(3);\n S3FileTransferResultsDto results = s3Dao.uploadFile(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate the file upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, Arrays.asList(TARGET_S3_KEY));\n }", "title": "" }, { "docid": "678e9c427e47446e29b5c15648d0f6b0", "score": "0.6454234", "text": "public abstract void doUpload(RequestCloudItem requestCloudItem, File file) throws RetriableException, UnretriableException, AuthenticationException, InterruptedException;", "title": "" }, { "docid": "06bc0504d91930ff5a1e26cd46881b2e", "score": "0.64138645", "text": "@Test\n public void testUploadFileZeroBytes() throws IOException, InterruptedException\n {\n // Create an empty local file.\n File targetFile = createLocalFile(localTempPath.toString(), LOCAL_FILE, FILE_SIZE_0_BYTE);\n Assert.assertTrue(targetFile.isFile());\n Assert.assertTrue(targetFile.length() == FILE_SIZE_0_BYTE);\n\n // Upload test file to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TARGET_S3_KEY);\n s3FileTransferRequestParamsDto.setLocalPath(targetFile.getPath());\n S3FileTransferResultsDto results = s3Dao.uploadFile(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate the file upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, Arrays.asList(TARGET_S3_KEY));\n }", "title": "" }, { "docid": "30ec8d8832f0186b2246a19c2fb5197d", "score": "0.6394101", "text": "@Test\n public void testGetS3ObjectThrowsAsIsWhenGenericAmazonError()\n {\n GetObjectRequest getObjectRequest = new GetObjectRequest(MockS3OperationsImpl.MOCK_S3_BUCKET_NAME_INTERNAL_ERROR, \"test_key\");\n try\n {\n s3Dao.getS3Object(getObjectRequest, getTestS3FileTransferRequestParamsDto());\n Assert.fail(\"expected AmazonServiceException to be thrown, but no exceptions were thrown\");\n }\n catch (Exception e)\n {\n Assert.assertEquals(\"thrown exception type\", AmazonServiceException.class, e.getClass());\n }\n }", "title": "" }, { "docid": "6086187dc75994dab44727e0129d733b", "score": "0.6376822", "text": "public void testUploadFile3Accuracy() throws Exception {\r\n InputStream dataStream = new FileInputStream(new File(ConfigHelper.CLIENT_FILE_LOCATION + \"/\"\r\n + UPLOAD_FILE_NAME));\r\n\r\n // upload file\r\n String requestId = fileSystemClient.uploadFile(\"fileId\", dataStream);\r\n\r\n // check the status\r\n FileUploadCheckStatus status = fileSystemClient.getFileUploadCheckStatus(requestId, true);\r\n assertEquals(FileUploadCheckStatus.UPLOAD_ACCEPTED, status);\r\n\r\n while (fileSystemClient.isFileTransferWorkerAlive(requestId)) {\r\n Thread.sleep(500);\r\n }\r\n\r\n // receive response\r\n ResponseMessage response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n assertNotNull(\"Expects the response is not null.\", response);\r\n assertNull(\"Expects no exception occurs.\", response.getException());\r\n\r\n String fileId = (String) response.getResult();\r\n // use the file with the resulted file name and remove file\r\n requestId = fileSystemClient.removeFile(fileId);\r\n response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n assertNull(\"Expects no exception occurs.\", response.getException());\r\n }", "title": "" }, { "docid": "79d6d26da4d6db81d4ae2db3fd5ddf7a", "score": "0.6374718", "text": "@Test\n public void testDeleteFileList() throws IOException, InterruptedException\n {\n // Upload local directory to s3Dao.\n testUploadDirectory();\n\n // Validate that S3 directory is not empty.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX + \"/\");\n List<StorageFile> storageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(storageFiles.size() > 0);\n\n // Delete a list of files from S3 using s3Dao.\n List<File> requestFileList = new ArrayList<>();\n for (StorageFile storageFile : storageFiles)\n {\n requestFileList.add(new File(storageFile.getFilePath()));\n }\n s3FileTransferRequestParamsDto.setFiles(requestFileList);\n s3FileTransferRequestParamsDto.setS3KeyPrefix(null);\n s3Dao.deleteFileList(s3FileTransferRequestParamsDto);\n\n // Validate that S3 directory got deleted.\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX + \"/\");\n storageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(storageFiles.size() == 0);\n }", "title": "" }, { "docid": "34caf8c5ad314b38d4d08d5cd4923756", "score": "0.6373497", "text": "@Test\n @Sql(scripts = { \"classpath:/integration/product/shouldAdminUserUpdateProductVersionWhenChildEntityIsUpdated.sql\" })\n public void shouldAdminUserUpdateProductVersionWhenChildEntityIsUpdated(\n @Value(\"classpath:/integration/product/shouldAdminUserUpdateProductVersionWhenChildEntityIsUpdated.json\") Resource dummyFormJsonFile)\n throws Exception {\n\n Mockito.doNothing().when(this.s3Service).upload(Mockito.any(), Mockito.any());\n Mockito.doNothing().when(this.s3Service).delete(Mockito.any());\n\n JsonNode dummyFormJson = this.objectMapper.readTree(this.resourceReader.asString(dummyFormJsonFile));\n String dummyFormJsonString = dummyFormJson.toString();\n String dummyVersion = \"\\\"0\\\"\";\n\n String dummyProductId = dummyFormJson.get(\"productId\").asText();\n\n // create dummy files in the directory\n // - must match with input json script\n // arrange\n String targetUrl = \"http://localhost:\" + this.port + this.targetPath + \"/\" + dummyProductId;\n\n // make sure the file name match with input json script.\n MockMultipartFile newFileAtZeroIndex = new MockMultipartFile(\"files\", \"product-image-0.svg\", \"image/svg+xml\",\n \"some svg\".getBytes());\n MockMultipartFile jsonFile = new MockMultipartFile(\"criteria\", \"\", \"application/json\",\n dummyFormJsonString.getBytes());\n\n // act & assert\n\n // multipart & PUT, you need this\n MockMultipartHttpServletRequestBuilder builder = (MockMultipartHttpServletRequestBuilder) MockMvcRequestBuilders\n .multipart(targetUrl) // update\n .with(new RequestPostProcessor() {\n @Override\n public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {\n request.setMethod(\"PUT\");\n return request;\n }\n });\n\n ResultActions resultActions = mvc\n .perform(builder.file(newFileAtZeroIndex).file(jsonFile).contentType(MediaType.MULTIPART_FORM_DATA)\n .content(dummyFormJsonString).cookie(this.authCookie).cookie(this.csrfCookie)\n .header(\"If-Match\", dummyVersion)\n .header(\"csrf-token\", this.authInfo.getCsrfToken()).accept(MediaType.APPLICATION_JSON))\n .andDo(print()).andExpect(status().isOk());\n\n MvcResult result = resultActions.andReturn();\n String etag = result.getResponse().getHeader(\"ETag\");\n\n JsonNode contentAsJsonNode = this.objectMapper.readValue(result.getResponse().getContentAsString(), JsonNode.class);\n ProductDTO responseBody = this.objectMapper.treeToValue(contentAsJsonNode, ProductDTO.class);\n\n assertThat(result.getResponse().getStatus()).isEqualTo(200);\n // must dump up when child entity is changed\n assertThat(etag).isEqualTo(\"\\\"1\\\"\");\n }", "title": "" }, { "docid": "534247fd95b7aa75d9973aa0ba0c56b8", "score": "0.63476557", "text": "@Test\n public void testUploadDirectory() throws IOException, InterruptedException\n {\n // Create local test files.\n for (String file : LOCAL_FILES)\n {\n createLocalFile(localTempPath.toString(), file, FILE_SIZE_1_KB);\n }\n\n // Upload test file to s3Dao.\n // Since the S3 key prefix represents a directory, we add a trailing '/' character to it.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX + \"/\");\n s3FileTransferRequestParamsDto.setLocalPath(localTempPath.toString());\n s3FileTransferRequestParamsDto.setRecursive(true);\n S3FileTransferResultsDto results = s3Dao.uploadDirectory(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == LOCAL_FILES.size());\n\n // Build a list of expected S3 key values.\n List<String> expectedKeys = new ArrayList<>();\n for (String file : LOCAL_FILES)\n {\n expectedKeys.add(TEST_S3_KEY_PREFIX + \"/\" + file.replaceAll(\"\\\\\\\\\", \"/\"));\n }\n\n // Validate the file upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, expectedKeys);\n }", "title": "" }, { "docid": "b868433058b39076ead2175de37539b1", "score": "0.63371396", "text": "@Test\n public void putObjectTest() throws IOException {\n String bucketName = \"ana-test-\" + UUID.randomUUID();\n s3h.createBucket(bucketName);\n\n String fileName = \"ana-test-file\";\n String fileExt = \".tmp\";\n File temp = File.createTempFile(fileName, fileExt);\n assertFalse(s3.doesObjectExist(bucketName, temp.getName()));\n s3h.putObject(bucketName, \"\", temp);\n assertTrue(s3.doesObjectExist(bucketName, temp.getName()));\n // Clean up\n s3.deleteObject(bucketName, temp.getName());\n s3.deleteBucket(bucketName);\n temp.delete();\n }", "title": "" }, { "docid": "9fd0c8b168c349fc99a045e2d355e8ce", "score": "0.6330732", "text": "public static void uploadObject_test() throws Exception {\n String methodName = \"uploadObject()\";\n if (!mintEnv) {\n System.out.println(\"Test: \" + methodName);\n }\n\n testUploadObject(\"[single upload]\", createFile1Kb(), null);\n\n if (isQuickTest) {\n return;\n }\n\n testUploadObject(\"[multi-part upload]\", createFile6Mb(), null);\n testUploadObject(\"[custom content-type]\", createFile1Kb(), customContentType);\n }", "title": "" }, { "docid": "fe03ef2b122e866bca27551da19c706b", "score": "0.6300319", "text": "@Test\n public void testUpload() throws Exception {\n Lambda lambda = TestUtils.buildLambda(\"print\", \"Python3\", \"print(\\\"Hello world\\\")\", null);\n\n //check before condition\n assertFalse(controller.lambdaExists(lambda.getName()));\n\n AuthKey key = controller.buildImage(lambda);\n\n //check after condition\n assertTrue(controller.lambdaExists(lambda.getName()));\n assertNotNull(key);\n }", "title": "" }, { "docid": "bff2960f4ef76cfacd25bb5006b2d4e0", "score": "0.62842107", "text": "@BeforeClass(alwaysRun = true)\n\tpublic void init() throws Exception{\n\t\tAuditFunctions.DownloadFileFormS3(fireWallType);\n\t\tThread.sleep(30000);\n\t\t\n\t\t\n\t\tscpPayload = AuditTestUtils.createSCPUploadBody(fireWallType,suiteData.getEnvironmentName(),AuditTestConstants.AUDIT_SCP_DS_NAME+\"eq\");\n\t\tfirewallLogFilePath = AuditTestUtils.getFirewallLogFilePath(fireWallType);\n\t\tscpcompltedCheckEmptyFilePath=AuditTestUtils.getFirewallLogFilePath(AuditTestConstants.SCP_COMPLETED);\n\t\t\n\t\t\n\t/*\tS3PropertiesObj = AuditTestUtils.buildS3CredentialCheckPostBody(fireWallType);\n\t\ts3Handler = new S3ActionHandler();\n\t\ts3Handler.uploadLogFileToS3(S3PropertiesObj.getString(\"bucket\"),\n\t\t\t\tS3PropertiesObj.getString(\"input_folder\")+\"/\", \n\t\t\t\tAuditTestUtils.getFireWallLogFileName(fireWallType), \n\t\t\t\tnew File(FileHandlingUtils.getFileAbsolutePath(AuditTestUtils.getFirewallLogFilePath(fireWallType))));\n\t\t*/\n\t\t//construct s3 folder name\n\t\t\t\ts3Handler = new S3ActionHandler();\n\t\t\t\tString folderName=AuditTestUtils.getUniqFolderName(suiteData.getEnvironmentName(), \"EqReg\", suiteData.getTenantName());\n\t\t\t\tReporter.log(\"Create S3 folder for ds equality test::\"+folderName,true);\n\n\t\t\t\t//Upload file to S3 folder\n\t\t\t\ts3BucketDetails=AuditTestUtils.getS3BucketDetails();\n\t\t\t\tS3PropertiesObj = AuditTestUtils.buildS3CredentialCheckPostBody(fireWallType,folderName);\n\t\t\t\ts3Handler.uploadLogFileToS3Sanity(s3BucketDetails.getString(\"bucket\"),\n\t\t\t\t\t\tfolderName+\"/\",\n\t\t\t\t\t\tAuditTestUtils.getFireWallLogFileName(fireWallType), \n\t\t\t\t\t\tnew File(FileHandlingUtils.getFileAbsolutePath(AuditTestUtils.getFirewallLogFilePath(fireWallType))));\n\t\t\t\t\n\n\t}", "title": "" }, { "docid": "f44c2a601eb41e8975fa3e7e9c3157de", "score": "0.6275655", "text": "@Test\n public void testUploadFileUseRrs() throws IOException, InterruptedException\n {\n // Create local test file.\n File targetFile = createLocalFile(localTempPath.toString(), LOCAL_FILE, FILE_SIZE_1_KB);\n Assert.assertTrue(targetFile.isFile());\n Assert.assertTrue(targetFile.length() == FILE_SIZE_1_KB);\n\n // Upload test file to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TARGET_S3_KEY);\n s3FileTransferRequestParamsDto.setLocalPath(targetFile.getPath());\n s3FileTransferRequestParamsDto.setUseRrs(true);\n S3FileTransferResultsDto results = s3Dao.uploadFile(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate the file upload.\n validateS3FileUpload(s3FileTransferRequestParamsDto, Arrays.asList(TARGET_S3_KEY));\n\n // TODO: Validate Reduced Redundancy Storage (RRS) storage option.\n }", "title": "" }, { "docid": "f281350a6fbb5e1440d2318c89e489ed", "score": "0.6254986", "text": "@Test\n public void testS3() {\n Element elem = getElementByName(\"s3\");\n checkSubscriber(elem);\n assertEquals(\"Check topics\", \"foo\", elem.getAttribute(\"topics\"));\n assertEquals(\"Check method\", \"receive3\", elem.getAttribute(\"method\"));\n assertEquals(\"Check data_key\", \"data\", elem.getAttribute(\"dataKey\"));\n assertEquals(\"Check data_type\", \"java.lang.String\", elem.getAttribute(\"dataType\"));\n assertNull(\"Check filter\", elem.getAttribute(\"filter\"));\n }", "title": "" }, { "docid": "9771fbf0af7e9938de4f4bde4f0884a7", "score": "0.62266785", "text": "private void uploadFileTos3bucket(String fileName, File file) {\n\t\ts3client.putObject(\n\t\t\t\tnew PutObjectRequest(bucketName, fileName, file).withCannedAcl(CannedAccessControlList.PublicRead));\n\n\t}", "title": "" }, { "docid": "ec7a1d8fd8ede5c8d634bee7f3a67a2c", "score": "0.61733156", "text": "@Test\n public void getUpload() {\n DynamoUpload2 mockUpload = new DynamoUpload2();\n mockUpload.setHealthCode(\"getUpload\");\n when(mockUploadDao.getUpload(\"test-upload-id\")).thenReturn(mockUpload);\n\n // execute and validate\n Upload retVal = svc.getUpload(\"test-upload-id\");\n assertSame(retVal, mockUpload);\n }", "title": "" }, { "docid": "79ac4361c82fff117a24f86a29542d24", "score": "0.6143268", "text": "public interface S3Service {\n\n String BASE_URL = \"https://wakey-wakey-offline-dev.s3.amazonaws.com/\";\n\n /**\n * @param url :signed s3 url string after 'BASE_URL'.\n * @param file :file to upload.\n */\n @PUT(\"{url}\")\n Call<ResponseBody> uploadFile(@Path(value = \"url\") String url, @Body() RequestBody file);\n}", "title": "" }, { "docid": "0cf978025f0d406d464c00ab0161056d", "score": "0.60835433", "text": "public void uploadDataIntoBucket() throws FileNotFoundException, URISyntaxException, StorageException, IOException{\n\t\t\n\t\tamazonConnec.AmazonCreateFolder(s3ClientHashMap.get(\"am-us-east\"), \"am-us-east\", \"UID1\",StorageClass.Standard.toString());\n\t\tamazonConnec.AmazonCreateFolder(s3ClientHashMap.get(\"am-jap-east\"), \"am-jap-east\", \"UID1\",StorageClass.Standard.toString());\n\t\t//azureConnec.AzureCreateFolder(LRSCloudBlobClient.get(\"az-eu-north\"), LRSCloudBlobClient.get(\"az-eu-north\").getContainerReference(\"az-eu-north\"), \"UID3\");\n\t\t//azureConnec.AzureCreateFolder(GRSCloudBlobClient.get(\"az-us-south\"), GRSCloudBlobClient.get(\"az-us-south\").getContainerReference(\"az-us-south\"), \"UID3\");\n \n\t\tint totalBucketSize=0;// the unit is KByte\n\t\t\n\t\twhile(totalBucketSize<=18432){\n\t\t\t\n\t\t\tRandom rand = new Random();\n\t\t\tint sizeObj= rand.nextInt((100 - 1) + 1) + 1;\n\t\t\ttotalBucketSize=totalBucketSize+sizeObj;\n\t\t\tRandomInputStream ris=new RandomInputStream(1024*sizeObj);\n\t\t\tString sn=ris.streamNameReviser(ris, \"UID1\");\n System.out.println(sn);\t\t \n\t\t \n \n //Upload Stream \n amazonConnec.AmazonUploadObjectStream(s3ClientHashMap.get(\"am-us-east\"), \"am-us-east\", \"UID1\", new RandomInputStream(1024*sizeObj), sn,\n\t\t \t\t StorageClass.ReducedRedundancy.toString());\n\t\t \n amazonConnec.AmazonUploadObjectStream(s3ClientHashMap.get(\"am-jap-east\"), \"am-jap-east\", \"UID1\", new RandomInputStream(1024*sizeObj), sn,\n StorageClass.ReducedRedundancy.toString());\n \n \n\t\t \n\t\t }\n\t\t\n\t }", "title": "" }, { "docid": "b0cb54030c8f4e66cf9f4449a8a13ede", "score": "0.6046639", "text": "@Test\n public void testCopyFile() throws InterruptedException\n {\n S3FileCopyRequestParamsDto transferDto = new S3FileCopyRequestParamsDto();\n transferDto.setSourceBucketName(getS3LoadingDockBucketName());\n transferDto.setTargetBucketName(getS3ExternalBucketName());\n transferDto.setS3KeyPrefix(\"testKeyPrefix\");\n transferDto.setKmsKeyId(MockS3OperationsImpl.MOCK_KMS_ID);\n S3FileTransferResultsDto resultsDto = s3Dao.copyFile(transferDto);\n assertEquals(Long.valueOf(1L), resultsDto.getTotalFilesTransferred());\n }", "title": "" }, { "docid": "72e33f30a0dc330c6ae511eac75204b8", "score": "0.6039125", "text": "@Test\n @Ignore\n public void given_generateRequestTooLong_when_deliver_then_storeInS3() throws Exception {\n }", "title": "" }, { "docid": "1e9536609250c1575e3252f16c1f6587", "score": "0.5939063", "text": "public void uploadFile(File file,String fileName, String directory){\n\n\t\tAmazonS3 s3client = new AmazonS3Client(new DefaultAWSCredentialsProviderChain());\n try {\n System.out.println(\"Uploading a new object to S3 from a file\\n\");\n s3client.putObject(new PutObjectRequest(\n \t\t bucketName, directory+\"/\"+fileName, file));\n //file.delete();\n\n } catch (AmazonServiceException ase) {\n System.out.println(\"Caught an AmazonServiceException, which \" +\n \t\t\"means your request made it \" +\n \"to Amazon S3, but was rejected with an error response\" +\n \" for some reason.\");\n System.out.println(\"Error Message: \" + ase.getMessage());\n System.out.println(\"HTTP Status Code: \" + ase.getStatusCode());\n System.out.println(\"AWS Error Code: \" + ase.getErrorCode());\n System.out.println(\"Error Type: \" + ase.getErrorType());\n System.out.println(\"Request ID: \" + ase.getRequestId());\n } catch (AmazonClientException ace) {\n System.out.println(\"Caught an AmazonClientException, which \" +\n \t\t\"means the client encountered \" +\n \"an internal error while trying to \" +\n \"communicate with S3, \" +\n \"such as not being able to access the network.\");\n System.out.println(\"Error Message: \" + ace.getMessage());\n }\n\t}", "title": "" }, { "docid": "3563b0a757f2b355c838e506abc68a96", "score": "0.5935273", "text": "String initiateMultipartUpload(String bucketName, ObjectMetadata objectMetadata, PutObjectOptions... options);", "title": "" }, { "docid": "5f3979644bfb35b887d58c0faf9699ea", "score": "0.59248215", "text": "@Test\n public void testGetS3ObjectThrowsWhenBucketDoesNotExist()\n {\n GetObjectRequest getObjectRequest = new GetObjectRequest(MockS3OperationsImpl.MOCK_S3_BUCKET_NAME_NO_SUCH_BUCKET_EXCEPTION, \"test_key\");\n try\n {\n s3Dao.getS3Object(getObjectRequest, getTestS3FileTransferRequestParamsDto());\n Assert.fail(\"expected ObjectNotFoundException to be thrown, but no exceptions were thrown\");\n }\n catch (Exception e)\n {\n Assert.assertEquals(\"thrown exception type\", ObjectNotFoundException.class, e.getClass());\n Assert.assertEquals(\"thrown exception message\", \"Specified S3 bucket '\" + getObjectRequest.getBucketName() + \"' does not exist.\", e.getMessage());\n }\n }", "title": "" }, { "docid": "71a3a1817f9eb8e77697454b5f3668e1", "score": "0.5890564", "text": "private void uploadFileOnAmazon(ImageBean imageBean, File file) {\n TransferObserver observer;\n observer = mTransferUtility.upload(AmazonS3Constants.BUCKET, \"android\" + String.valueOf(Calendar.getInstance().getTimeInMillis())+\".jpg\", file, CannedAccessControlList.PublicRead);\n observer.setTransferListener(new UploadListener(imageBean));\n imageBean.setmObserver(observer);\n }", "title": "" }, { "docid": "e681e24124724cbab091dd2b7930a969", "score": "0.5887555", "text": "@Test (expected=IllegalArgumentException.class)\n\tpublic void testTransferToS3RequestNull() throws Exception{\n\t\tstrategy.transferToS3(null);\n\t}", "title": "" }, { "docid": "33721a806c7a28eed553e7c6dc7b0825", "score": "0.5885476", "text": "public static String uploadFileToS3(AmazonS3 s3, String fileName, String path ,String info) {\n String fileAddress = getS3FileAddress(s3, fileName , path);\n File file = createSampleFile(info);\n \n if (file == null || fileAddress == null) {\n return null;\n } else {\n PutObjectRequest request = new PutObjectRequest(bucket, path + fileName, file);\n \n try {\n s3.putObject(request.withCannedAcl(CannedAccessControlList.PublicRead));\n logger.info(\"File saved: \" + fileAddress);\n } catch (AmazonClientException e) {\n logger.severe(e.getMessage());\n return null;\n }\n \n return fileAddress;\n }\n }", "title": "" }, { "docid": "a57cd06115eec46fdd8d70231ad35334", "score": "0.5884087", "text": "@Test\n public void canGetUploads() throws Exception {\n setupUploadMocks();\n ForwardCursorPagedResourceList<UploadView> returned = svc.getUploads(\"ABC\", START_TIME, END_TIME, 0, null);\n \n verify(mockUploadDao).getUploads(\"ABC\", START_TIME, END_TIME, 0, null);\n validateUploadMocks(returned, null);\n }", "title": "" }, { "docid": "447ce1661eac64ef5ed93e8e7e4670a8", "score": "0.58745855", "text": "public String fileUploader(MultipartFile multipartFile) throws Exception{\n String keyName = \"image-\" + UUID.randomUUID();\n AmazonS3 s3 = new AmazonS3Client(AWS_CREDENTIALS);\n String result = null;\n try(S3Object s3FullImageObject = new S3Object();\n S3Object s3ThumbnailImageObject = new S3Object()) {\n\n String fileType = multipartFile.getContentType();\n String fileName = multipartFile.getName();\n\n // Only accept jpeg and png\n if (!(IMAGE_JPEG.equals(fileType) || IMAGE_PNG.equals(fileType))){\n throw new UnsupportedMediaTypeException(INVALID_TYPE);\n }\n\n // Get Original and thumbnail bytes\n byte[] originalBytes = multipartFile.getBytes();\n byte[] thumbnailBytes = getThumbnailBytes(originalBytes);\n\n System.out.println(\"Here\");\n\n // Create Object Metadata for S3\n ObjectMetadata omdOriginal = getImageObjectMetadata(fileType, fileName, originalBytes.length);\n ObjectMetadata omdThumbnail = getImageObjectMetadata(fileType, fileName + THUMB_SUFFIX, thumbnailBytes.length);\n\n // Create Input Streams\n InputStream bisOriginal = new ByteArrayInputStream(originalBytes);\n InputStream bisThumbnail = new ByteArrayInputStream(thumbnailBytes);\n\n /** Upload the Original image to S3 */\n s3FullImageObject.setObjectContent(bisOriginal);\n s3.putObject(new PutObjectRequest(BUCKET,\n keyName,\n bisOriginal,\n omdOriginal)\n .withCannedAcl(CannedAccessControlList.PublicRead));\n\n /** Upload the Thumbnail image to S3*/\n s3ThumbnailImageObject.setObjectContent(bisThumbnail);\n s3.putObject(new PutObjectRequest(BUCKET,\n keyName + THUMB_SUFFIX,\n bisThumbnail,\n omdThumbnail)\n .withCannedAcl(CannedAccessControlList.PublicRead));\n\n // Get the URL for the original image as result\n result = s3.getUrl(BUCKET, keyName).toString();\n\n } catch(UnsupportedMediaTypeException umte){\n this.printErrorInfo(umte);\n throw new UnsupportedMediaTypeException(getErrorInfo(umte));\n\n }catch (AmazonServiceException ase) {\n this.printErrorInfo(ase);\n throw new IOException(getErrorInfo(ase));\n\n } catch (AmazonClientException ace) {\n this.printErrorInfo(ace);\n throw new IOException(getErrorInfo(ace));\n\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n throw new Exception(e.getMessage());\n }\n return result;\n }", "title": "" }, { "docid": "9f1f570e9879b0aa3b131ba85be0e983", "score": "0.5855954", "text": "public void testUploadFile4Accuracy() throws Exception {\r\n InputStream dataStream = new FileInputStream(new File(ConfigHelper.CLIENT_FILE_LOCATION + \"/\"\r\n + UPLOAD_FILE_NAME));\r\n\r\n // upload file\r\n String requestId = fileSystemClient.uploadFile(\"fileId\", dataStream, UPLOAD_FILE_NAME);\r\n\r\n // check the status\r\n FileUploadCheckStatus status = fileSystemClient.getFileUploadCheckStatus(requestId, true);\r\n assertEquals(FileUploadCheckStatus.UPLOAD_ACCEPTED, status);\r\n\r\n while (fileSystemClient.isFileTransferWorkerAlive(requestId)) {\r\n Thread.sleep(500);\r\n }\r\n\r\n // receive the file\r\n fileSystemClient.receiveResponse(requestId, true);\r\n }", "title": "" }, { "docid": "5b6c96d38da1fac94e659a79b18046e1", "score": "0.5843744", "text": "@Test\n public void testGetS3ObjectThrowsWhenKeyDoesNotExist()\n {\n GetObjectRequest getObjectRequest = new GetObjectRequest(\"test_bucket\", \"test_key\");\n try\n {\n s3Dao.getS3Object(getObjectRequest, getTestS3FileTransferRequestParamsDto());\n Assert.fail(\"expected ObjectNotFoundException to be thrown, but no exceptions were thrown\");\n }\n catch (Exception e)\n {\n Assert.assertEquals(\"thrown exception type\", ObjectNotFoundException.class, e.getClass());\n Assert.assertEquals(\"thrown exception message\", \"Specified S3 object key '\" + getObjectRequest.getKey() + \"' does not exist.\", e.getMessage());\n }\n }", "title": "" }, { "docid": "a6c722453c80a04e9f877f1a202077d3", "score": "0.57941914", "text": "public void uploadFileToS3() {\n if(savingUri == null) {\n signupInterface.imgUrl(null);\n return;\n }\n AWSCredentials awsCredentials = new BasicAWSCredentials(getString(R.string.ACCESS_KEY), getString(R.string.SECRET_KEY));\n AmazonS3Client s3Client = new AmazonS3Client(awsCredentials, Region.getRegion(Regions.AP_NORTHEAST_2));\n TransferUtility transferUtility = TransferUtility.builder().s3Client(s3Client).context(activity).build();\n TransferNetworkLossHandler.getInstance(activity);\n\n TransferObserver uploadObserver = null;\n String time = Utils.getNowMilliSecond();\n uploadObserver = transferUtility.upload(\"instatour-image/profile\", time + String.valueOf(\"profile\") + \".png\", new File(savingUri.getPath()), CannedAccessControlList.PublicRead);\n\n uploadObserver.setTransferListener(new TransferListener() {\n @Override\n public void onStateChanged(int id, TransferState state) {\n Log.d(TAG, \"onStateChanged: \" + id + \", \" + state.toString());\n\n if (state == TransferState.COMPLETED) {\n String url = s3Client.getResourceUrl(\"instatour-image/profile\", time + String.valueOf(\"profile\") + \".png\");\n signupInterface.imgUrl(url);\n }\n\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n Log.d(TAG, \"ID:\" + id + \" bytesCurrent: \" + bytesCurrent + \" bytesTotal: \" + bytesTotal + \" \" + percentDone + \"%\");\n }\n\n @Override\n public void onError(int id, Exception ex) {\n Log.e(TAG, ex.getMessage());\n }\n });\n }", "title": "" }, { "docid": "5a998671e7d2dd065bdc996697481245", "score": "0.5759232", "text": "@Test\n public void testDeleteFileListEmptyList()\n {\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setFiles(new ArrayList<File>());\n s3Dao.deleteFileList(s3FileTransferRequestParamsDto);\n }", "title": "" }, { "docid": "68d2de60fe7656ea3c6be5b2cb88fe33", "score": "0.57583934", "text": "private void publicWriteCheck(String BucketType, IHttpRequestResponse messageInfo, List<int[]>matches, String BucketName) {\n \n // AWS specific checks\n if (BucketType.equals(\"AWS\")) {\n\n // Obtain the buckets region and then create a client based on this region\n String strRegion = anonS3client.headBucket(new HeadBucketRequest(BucketName)).getBucketRegion();\n AmazonS3 s3clientList = AmazonS3ClientBuilder\n .standard()\n .withRegion(strRegion)\n .withCredentials(new AWSStaticCredentialsProvider(anonCredentials))\n .build();\n \n // Attempt to write to the bucket\n try {\n // Create a random string as the key\n String bucketItem = \"Burp-AnonymousCloud-\" + genRandStr() + \".txt\";\n\n // Attempt the bucket write\n s3clientList.putObject(BucketName, bucketItem, \"Burp-AnonymousCloud Extension Public Write Test!\");\n \n // Check the bucket item\n S3Object writeObj = s3clientList.getObject(BucketName, bucketItem);\n \n // Check size of bucket item\n if (writeObj.getObjectMetadata().getContentLength() >= 47) {\n \n // Create public write access issue with object written\n IScanIssue publicWriteIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Publicly Writable AWS S3 Bucket\",\n \"The following bucket object was created in \" + BucketName + \": \" + bucketItem + \".\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write access issue\n extCallbacks.addScanIssue(publicWriteIssue);\n \n // Attempt to write an ACL to the previously created object\n try {\n // Get the uploaded objects ACL\n AccessControlList ObjAcl = s3clientList.getObjectAcl(BucketName, bucketItem);\n \n // Clear the ACL\n ObjAcl.getGrantsAsList().clear();\n \n // Set the permissions\n ObjAcl.grantPermission(GroupGrantee.AuthenticatedUsers, Permission.FullControl);\n \n // Set the ACL on the object\n s3clientList.setObjectAcl(BucketName, bucketItem, ObjAcl);\n \n // Make sure ACL was assigned\n if (s3clientList.getObjectAcl(BucketName, bucketItem).toString().contains(\"/groups/global/AuthenticatedUsers\")) {\n // Create any authenticated AWS user write ACL issue with ACL written\n IScanIssue publicWriteAclIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Publicly Writable AWS S3 ACL\",\n \"Full permission was given to the \" + bucketItem + \" in the \" + BucketName + \" bucket for any authenticated AWS user.\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write ACL access issue\n extCallbacks.addScanIssue(publicWriteAclIssue);\n }\n } catch (Exception ignore) {}\n }\n \n } catch (Exception ignore) {}\n \n // Google specific checks\n } else if (BucketType.equals(\"Google\")) {\n \n // Create a client to check Google for the bucket\n String bucketItem = \"Burp-AnonymousCloud-\" + genRandStr() + \".txt\";\n HttpClient client = HttpClientBuilder.create().build();\n HttpPost req = new HttpPost(GoogleBucketUploadUrl + BucketName + \"/o?uploadType=media&name=\" + bucketItem);\n String bucketContent = \"Burp-AnonymousCloud Extension Public Write Test!\";\n\n // Create and set headers for posting content\n Header headers[] = {\n\tnew BasicHeader(\"Content-Type\", \"text/html\")\n }; \n req.setHeaders(headers);\n \n // Connect to GCP services for bucket ACL access\n try {\n req.setEntity(new StringEntity(bucketContent));\n HttpResponse resp = client.execute(req);\n String respHeaders = resp.getStatusLine().toString();\n\n // If the status is 200, it is public, of 401 then private, otherwise doesn't exist\n if (respHeaders.contains(\"200 OK\")) {\n // Create public write access issue with object written\n IScanIssue publicWriteIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Publicly Writable Google Storage Container\",\n \"The following bucket object was created in \" + BucketName + \": \" + bucketItem + \".\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write bucket access issue\n extCallbacks.addScanIssue(publicWriteIssue);\n }\n } catch (Exception ignore) { }\n }\n }", "title": "" }, { "docid": "4dc4156e07d7688be141eb6b1df97e3a", "score": "0.5716674", "text": "@Test\n public void testGetObjectMetadataKeyNotFound()\n {\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(MockS3OperationsImpl.MOCK_S3_FILE_NAME_NOT_FOUND);\n Assert.assertNull(s3Dao.getObjectMetadata(s3FileTransferRequestParamsDto));\n }", "title": "" }, { "docid": "c02f4c144c3f1f72da9e9fd601828700", "score": "0.5712734", "text": "@Test\n public void testGenerateGetObjectPresignedUrl()\n {\n String bucketName = \"test_bucketName\";\n String key = \"test_key\";\n Date expiration = new Date(12345l);\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = new S3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setSignerOverride(S3FileTransferRequestParamsDto.SIGNER_OVERRIDE_V4);\n String result = s3Dao.generateGetObjectPresignedUrl(bucketName, key, expiration, s3FileTransferRequestParamsDto);\n\n Assert.assertEquals(\"result\", \"https://\" + bucketName + \"/\" + key + \"?method=GET&expiration=\" + expiration.getTime(), result);\n }", "title": "" }, { "docid": "b317227805c61ac1c6a4af1fa2b46aa4", "score": "0.57124346", "text": "public interface AmazonS3Api {\n\n /**\n * Uploads a file part to Amazon S3.\n *\n * @param params Parameters from the {@link MultipartParameters} provided in the response of\n * {@link BynderApi#getUploadInformation(Map)}.\n * @return {@link Single} with the {@link Response}.\n */\n @Multipart\n @POST(\"/\")\n Single<Response<Void>> uploadPartToAmazon(@PartMap Map<String, RequestBody> params);\n}", "title": "" }, { "docid": "0cad8d65d15714c1efd32e0fbbdd8132", "score": "0.5684719", "text": "private void createAndReadFileTest(final long fileSize) throws IOException {\n final String objectName = UUID.randomUUID().toString();\n final Path objectPath = new Path(\"/tests3a/\", objectName);\n\n // Write test file to S3\n final OutputStream outputStream = fs.create(objectPath, false);\n generateTestData(outputStream, fileSize);\n outputStream.close();\n\n // Now read the same file back from S3\n final InputStream inputStream = fs.open(objectPath);\n testReceivedData(inputStream, fileSize);\n inputStream.close();\n\n // Delete test file\n fs.delete(objectPath, false);\n }", "title": "" }, { "docid": "e440bb3d657dc43978d47716eede73a8", "score": "0.56768", "text": "public String uploadDeArquivosParaStorageAmazon(String keyFilename, File file){\r\n\t\tlog.info(\"AWS - Put object trying...\");\r\n\t\t//nome do arquivo unico no bucket/diretorio\r\n\t\tkeyFilename = this.randomizeFilenameUniqueObjectAmazon(keyFilename, null);\r\n\t\tthis.amazonS3client.putObject(bucketName, keyFilename, file);\r\n\t\tlog.info(\"AWS - Put object in endpoint: \" + endpoint + \" - bucketname: \" + bucketName + \" - keyFilename: \" + keyFilename);\r\n\t\treturn keyFilename;\r\n\t}", "title": "" }, { "docid": "f36b222731df66063a48e77236af6e6d", "score": "0.56249213", "text": "@Test\n public void testGetS3ObjectThrowsWhenAccessDenied()\n {\n GetObjectRequest getObjectRequest = new GetObjectRequest(MockS3OperationsImpl.MOCK_S3_BUCKET_NAME_ACCESS_DENIED, \"test_key\");\n try\n {\n s3Dao.getS3Object(getObjectRequest, getTestS3FileTransferRequestParamsDto());\n Assert.fail(\"expected ObjectNotFoundException to be thrown, but no exceptions were thrown\");\n }\n catch (Exception e)\n {\n Assert.assertEquals(\"thrown exception type\", ObjectNotFoundException.class, e.getClass());\n Assert.assertEquals(\"thrown exception message\",\n \"Application does not have access to the specified S3 object at bucket '\" + getObjectRequest.getBucketName() + \"' and key '\" +\n getObjectRequest.getKey() + \"'.\", e.getMessage());\n }\n }", "title": "" }, { "docid": "a4e398d2ab80b4f0d74dff16a7271501", "score": "0.56104594", "text": "@Test\n public void fileUploadWith500() throws Exception {\n\n System.out.println(\"Starting test fileUploadWith500.\");\n\n MockConnectionFactory factory = NetworkLayerMock.ensureNetworkMock(\"fileUploadWith500\", true);\n\n String filename = TEST_ASSET_ROOT + \"image.jpg\";\n ClassLoader classLoader = UploadTest.class.getClassLoader();\n InputStream imageStream = classLoader.getResourceAsStream(filename);\n Uri sourceFile = Uri.parse(\"file://\" + filename);\n\n ContentResolver resolver = ApplicationProvider.getApplicationContext().getContentResolver();\n Shadows.shadowOf(resolver).registerInputStream(sourceFile, imageStream);\n\n Task<StringBuilder> task = TestUploadHelper.fileUpload(sourceFile, \"image.jpg\");\n\n TestUtil.await(task, 3, TimeUnit.MINUTES);\n\n factory.verifyOldMock();\n TestUtil.verifyTaskStateChanges(\"fileUploadWith500\", task.getResult().toString());\n }", "title": "" }, { "docid": "5e2b09f1ff79a675c2e15d0823197059", "score": "0.5589579", "text": "@Test\n\tpublic void testInvalidPassedMD5DeleteFile() throws IOException, ServiceUnavailableException{\n\t\ttransferRequest.setContentMD5(\"1234\");\n\t\ttry{\n\t\t\tstrategy.transferToS3(transferRequest);\n\t\t\tfail(\"This should have failed as the MD5 did not match\");\n\t\t}catch(IllegalArgumentException e){\n\t\t\t// Even though it failed the stream must get closed and the file must get deleted\n\t\t\t// The stream must be closed\n\t\t\tverify(mockFileOutputStream, times(1)).close();\n\t\t\t// The temp file must get deleted\n\t\t\tverify(mockTempFile, times(1)).delete();\n\t\t\t// check the message.\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tassertTrue(\"The messages should contain the wrong MD5\",e.getMessage().indexOf(\"1234\") > -1);\n\t\t\tassertTrue(\"The messages should contain the calculated MD5\",e.getMessage().indexOf(expectedMD5) > -1);\n\t\t}\n\t}", "title": "" }, { "docid": "4aea6eeaabe7d42b65e4ed957b194cb5", "score": "0.5587654", "text": "@Test(expected = IllegalStateException.class)\n public void testGetObjectMetadataException()\n {\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(MockS3OperationsImpl.MOCK_S3_FILE_NAME_SERVICE_EXCEPTION);\n s3Dao.getObjectMetadata(s3FileTransferRequestParamsDto);\n }", "title": "" }, { "docid": "e9fdc958209af1fa4cd1ec78f520356c", "score": "0.55853534", "text": "public void testUploadFile1Accuracy() throws Exception {\r\n InputStream dataStream = new FileInputStream(new File(ConfigHelper.CLIENT_FILE_LOCATION + \"/\"\r\n + UPLOAD_FILE_NAME));\r\n\r\n // upload file\r\n String requestId = fileSystemClient.uploadFile(dataStream);\r\n\r\n // check the status\r\n FileUploadCheckStatus status = fileSystemClient.getFileUploadCheckStatus(requestId, true);\r\n assertEquals(FileUploadCheckStatus.UPLOAD_ACCEPTED, status);\r\n\r\n while (fileSystemClient.isFileTransferWorkerAlive(requestId)) {\r\n Thread.sleep(500);\r\n }\r\n\r\n // receive response\r\n ResponseMessage response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n assertNotNull(\"Expects the response is not null.\", response);\r\n assertNull(\"Expects no exception occurs.\", response.getException());\r\n\r\n String fileId = (String) response.getResult();\r\n // use the file with the resulted file name and remove file\r\n requestId = fileSystemClient.removeFile(fileId);\r\n response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n assertNull(\"Expects no exception occurs.\", response.getException());\r\n }", "title": "" }, { "docid": "af71b7a33dd71e62913bc64a42116e24", "score": "0.5574418", "text": "private void anyAuthWriteCheck(String BucketType, IHttpRequestResponse messageInfo, List<int[]>matches, String BucketName) {\n \n // AWS specific checks\n if (BucketType.equals(\"AWS\")) {\n\n // Obtain the buckets region and then create a client based on this region\n String strRegion = authS3client.headBucket(new HeadBucketRequest(BucketName)).getBucketRegion();\n AmazonS3 s3clientList = AmazonS3ClientBuilder\n .standard()\n .withRegion(strRegion)\n .withCredentials(new AWSStaticCredentialsProvider(authCredentials))\n .build();\n \n // Attempt to write to the bucket\n try {\n // Create a random string as the key\n String bucketItem = \"Burp-AnonymousCloud-\" + genRandStr() + \".txt\";\n\n // Attempt the bucket write\n s3clientList.putObject(BucketName, bucketItem, \"Burp-AnonymousCloud Extension Any Authenticated AWS User Write Test!\");\n \n // Check the bucket item\n S3Object writeObj = s3clientList.getObject(BucketName, bucketItem);\n \n // Check size of bucket item\n if (writeObj.getObjectMetadata().getContentLength() >= 47) {\n \n // Create any authenticated AWS user write issue with object written\n IScanIssue anyAuthWriteIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Any Authenticated AWS User Writable AWS S3 Bucket\",\n \"The following bucket object was created in \" + BucketName + \": \" + bucketItem + \".\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write access issue\n extCallbacks.addScanIssue(anyAuthWriteIssue);\n \n // Attempt to write an ACL to the previously created object\n try {\n // Get the uploaded objects ACL\n AccessControlList ObjAcl = s3clientList.getObjectAcl(BucketName, bucketItem);\n \n // Clear the ACL\n ObjAcl.getGrantsAsList().clear();\n \n // Set the permissions\n ObjAcl.grantPermission(GroupGrantee.AuthenticatedUsers, Permission.FullControl);\n \n // Set the ACL on the object\n s3clientList.setObjectAcl(BucketName, bucketItem, ObjAcl);\n \n // Make sure ACL was assigned\n if (s3clientList.getObjectAcl(BucketName, bucketItem).toString().contains(\"/groups/global/AuthenticatedUsers\")) {\n // Create any authenticated AWS user write ACL issue with ACL written\n IScanIssue anyAuthWriteAclIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Any Authenticated AWS User Writable AWS S3 ACL\",\n \"Full permission was given to the \" + bucketItem + \" in the \" + BucketName + \" bucket for any authenticated AWS user.\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write ACL access issue\n extCallbacks.addScanIssue(anyAuthWriteAclIssue);\n }\n } catch (Exception ignore) {}\n }\n \n } catch (Exception ignore) {}\n } else if (BucketType.equals(\"Google\")) {\n // Create a client to check Google for the bucket\n String bucketItem = \"Burp-AnonymousCloud-\" + genRandStr() + \".txt\";\n HttpClient client = HttpClientBuilder.create().build();\n HttpPost req = new HttpPost(GoogleBucketUploadUrl + BucketName + \"/o?uploadType=media&name=\" + bucketItem);\n String bucketContent = \"Burp-AnonymousCloud Extension Public Write Test!\";\n\n // Create and set headers for posting content\n Header headers[] = {\n\tnew BasicHeader(\"Authorization\", \"Bearer \" + googleBearerToken),\n new BasicHeader(\"Content-Type\", \"text/html\")\n }; \n req.setHeaders(headers);\n \n // Connect to GCP services for bucket ACL access\n try {\n req.setEntity(new StringEntity(bucketContent));\n HttpResponse resp = client.execute(req);\n String respHeaders = resp.getStatusLine().toString();\n\n // If the status is 200, it is public, of 401 then private, otherwise doesn't exist\n if (respHeaders.contains(\"200 OK\")) {\n // Create public write access issue with object written\n IScanIssue publicWriteIssue = new CustomScanIssue(\n messageInfo.getHttpService(),\n extHelpers.analyzeRequest(messageInfo).getUrl(),\n new IHttpRequestResponse[] { extCallbacks.applyMarkers(messageInfo, null, matches) },\n \"[Anonymous Cloud] Any Authenticated Google User Writable Google Storage Container\",\n \"The following bucket object was created in \" + BucketName + \": \" + bucketItem + \".\",\n \"High\",\n \"Certain\"\n );\n \n // Add public write bucket access issue\n extCallbacks.addScanIssue(publicWriteIssue);\n }\n } catch (Exception ignore) { }\n }\n }", "title": "" }, { "docid": "bce746530b0df5dd8a5bd8ce099325f1", "score": "0.5573425", "text": "public String uploadFile(MultipartFile file) {\n\t\tFile fileObject = convertMultiPartFileToFile(file);\n\t\tString fileName = System.currentTimeMillis() + \"_\" + file.getOriginalFilename();\n\t\ts3Client.putObject(new PutObjectRequest(bucketName, fileName, fileObject));\n\t\tfileObject.delete(); \n\t\treturn \"File uploaded: \" + fileName;\n\t}", "title": "" }, { "docid": "cf0c47ea8fda9858c29f5da2a541637e", "score": "0.5569035", "text": "private void uploadFile(String fileName)\n throws IOException, NoSuchAlgorithmException, InvalidKeyException, MinioException {\n /* play.min.io for test and development. */\n MinioClient minioClient =\n MinioClient.builder()\n .endpoint(\"https://play.min.io\")\n .credentials(\"Q3AM3UQ867SPQQA43P2F\", \"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG\")\n .build();\n\n /* Amazon S3: */\n // MinioClient minioClient =\n // MinioClient.builder()\n // .endpoint(\"https://s3.amazonaws.com\")\n // .credentials(\"YOUR-ACCESSKEY\", \"YOUR-SECRETACCESSKEY\")\n // .build();\n\n File file = new File(fileName);\n try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file))) {\n ProgressMonitorInputStream pmis =\n new ProgressMonitorInputStream(this, \"Uploading... \" + file.getAbsolutePath(), bis);\n\n pmis.getProgressMonitor().setMillisToPopup(10);\n minioClient.putObject(\n PutObjectArgs.builder().bucket(\"bank\").object(\"my-objectname\").stream(\n pmis, pmis.available(), -1)\n .build());\n System.out.println(\"my-objectname is uploaded successfully\");\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9533bd487d61421eea415a4d97fde253", "score": "0.5564294", "text": "public void testGetFileUploadURI() {\n try {\n System.out.println(\"testGetFileUploadURI\");\n\n //test uploading in tmp\n String sandboxPath = \"\";//\"testSandBoxUploadFiles\";\n\n String targetURI = proxyService.getFileUploadURI(sandboxPath);\n proxyWS.clients.VRSProxyClient pClient = new proxyWS.clients.VRSProxyClient();\n\n assertNotNull(targetURI);\n\n System.out.println(\" File upload URI: \" + targetURI);\n\n File[] files = new File[2];\n files[0] = new File(testDataLocation + \"/testFile1.txt\");\n files[1] = new File(testDataLocation + \"/testFile2.txt\");\n\n boolean result = pClient.uploadFiles(files, new URI(targetURI));\n assertTrue(result);\n\n //test uploading/downloading in sandbox\n sandboxPath = \"testSandBoxUploadFiles\";\n targetURI = proxyService.getFileUploadURI(sandboxPath);\n result = pClient.uploadFiles(files, new URI(targetURI));\n assertTrue(result);\n\n } catch (URISyntaxException ex) {\n Logger.getLogger(ProxyWSTest.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ServiceException ex) {\n Logger.getLogger(ProxyWSTest.class.getName()).log(Level.SEVERE, null, ex);\n } catch (RemoteException ex) {\n Logger.getLogger(ProxyWSTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "3160ae42bc7a84cfa116f3af15c906a0", "score": "0.5562367", "text": "public void upload(String objectName, String contentType, File file, String bucketName)\n throws IOException, GeneralSecurityException {\n InputStreamContent contentStream = new InputStreamContent(contentType, new FileInputStream(file));\n // Setting the length improves upload performance\n contentStream.setLength(file.length());\n StorageObject objectMetadata = new StorageObject()\n // Set the destination object name\n .setName(objectName)\n // Set the access control list to publicly read-only\n .setAcl(Arrays.asList(\n new ObjectAccessControl().setEntity(\"allUsers\").setRole(\"READER\")));\n // Do the insert\n Storage.Objects.Insert insertRequest = gcloudService.objects().insert(\n bucketName, objectMetadata, contentStream);\n System.out.println(bucketName + \" , \" + objectName + \" , \" + file + \" , \" + contentType);\n insertRequest.execute();\n }", "title": "" }, { "docid": "94394ce6d24789ad1c11753baf0a14c9", "score": "0.5541971", "text": "@Test\n public void testDownloadFile() throws IOException, InterruptedException\n {\n // Upload local file to s3Dao.\n testUploadFile();\n\n // Clean up the local directory, so we can test the download.\n FileUtils.deleteDirectory(localTempPath.toFile());\n\n // Create local temp directory - this also validates that clean up was really executed.\n Assert.assertTrue(localTempPath.toFile().mkdir());\n\n // Destination local file.\n File destinationLocalFile = Paths.get(localTempPath.toString(), LOCAL_FILE).toFile();\n\n // Execute download.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TARGET_S3_KEY);\n s3FileTransferRequestParamsDto.setLocalPath(destinationLocalFile.getPath());\n S3FileTransferResultsDto results = s3Dao.downloadFile(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate that we have the file downloaded from S3.\n Assert.assertTrue(destinationLocalFile.isFile());\n }", "title": "" }, { "docid": "dbeb037177b5e6853fc99b28941a3650", "score": "0.5528173", "text": "@NonNull\n Completable uploadToS3(UploadFile uploadFile, UploadSession session) {\n File file = getFile(uploadFile.filename);\n checkArgument(file.exists(), \"Non-existent file: \" + file.getAbsolutePath());\n\n Single<UploadSession> sessionSingle = Single.just(session)\n .flatMap(uploadSession -> {\n DateTime desiredMinimumExpiration = DateTime.now()\n .plusMinutes(UPLOAD_EXPIRY_WINDOW_MINUTES);\n\n if (uploadSession.getExpires().isBefore(desiredMinimumExpiration)) {\n // get a fresh upload session\n return getUploadSession(uploadFile);\n }\n // reuse current upload session\n return Single.just(session);\n });\n\n LOG.info(\"Attempting S3 upload for file: {}, sessionId: {}\", uploadFile.filename, session.getId());\n\n FileUploadRequestBody requestBody = new FileUploadRequestBody(file, uploadFile.contentType,\n l -> LOG.trace(\"File {}: Uploaded {} of {} bytes\", uploadFile.filename, l, uploadFile.fileLength));\n return sessionSingle.flatMap(freshSession -> RxUtils.toBodySingle(\n getS3Service(freshSession)\n .uploadToS3(\n freshSession.getUrl(),\n requestBody,\n uploadFile.md5Hash,\n uploadFile.contentType)))\n .doOnSuccess(aVoid -> {\n LOG.info(\"S3 upload succeeded for file: {}, sessionId: {}\", uploadFile.filename, session.getId());\n\n // call upload complete on a computation thread\n // noinspection RxLeakedSubscription,RxSubscribeOnError\n RxUtils.toBodySingle(authenticatedSafeAtomicReference.get().forConsentedUsersApi\n .completeUploadSession(session.getId(), false, false))\n .doOnSuccess(val -> {\n LOG.info(\"Call to upload complete succeeded\");\n })\n .onErrorReturn((t) -> {\n LOG.info(\"Call to upload complete failed, server will recover\", t);\n return null; // return doesn't matter, becomes completable\n })\n .subscribe();\n\n }).doOnError(t ->\n LOG.warn(\"S3 upload failed for file: {}, sessionId: {}\",\n uploadFile.filename, session.getId(), t)\n ).toCompletable();\n }", "title": "" }, { "docid": "db62893a86544f14b41092ab252476b8", "score": "0.55273", "text": "public void createS3Clients() {\n\t objectDatacenterSpecification.readSpecificationObjectWorkload();\n\t objectDatacenterSpecification.readAmazonKey();\n\t amazonConnec=new AmazonConnection(objectDatacenterSpecification.amazonKey); \n\t s3ClientHashMap.putAll(amazonConnec.createS3ClientAccount()); \n }", "title": "" }, { "docid": "c028add490564b647cbdbca782d94db5", "score": "0.5511918", "text": "public void uploadFiles()\n {\n //Make sure there are files to upload\n if(uploadFiles.size() == 0)\n {\n JOptionPane.showMessageDialog(null, \"No files specified!\");\n return;\n }\n //Authenticate with the user service\n Storage storage = StorageOptions.getDefaultInstance().getService();\n //Connect to the HW4 bucket\n Bucket bucket = storage.get(\"dataproc-staging-us-east1-364723712673-ah1i5hyd\");\n //Ensure the specified bucket exists\n if (bucket != null) {\n //Upload all files to the specified bucket\n for(File f: uploadFiles)\n {\n try\n {\n bucket.create(f.getName(), Files.readAllBytes(f.toPath()));\n }\n catch(Exception e)\n {\n System.out.println(e.toString());\n }\n }\n JOptionPane.showMessageDialog(null, \"Files successfully uploaded!\");\n textArea.setText(\"Currently uploading:\\n\");\n\n\n }\n }", "title": "" }, { "docid": "6e9a676eb6be463e2bfa5af219777b36", "score": "0.5509022", "text": "CreateLocationS3Result createLocationS3(CreateLocationS3Request createLocationS3Request);", "title": "" }, { "docid": "9eb192c535a9d5e0aa88fabfb5e90504", "score": "0.5497924", "text": "public static void runTests() throws Exception {\n makeBucket_test1();\n makeBucket_test2();\n if (endpoint.toLowerCase(Locale.US).contains(\"s3\")) {\n makeBucket_test3();\n makeBucket_test4();\n }\n\n listBuckets_test();\n\n bucketExists_test();\n enableVersioning_test();\n disableVersioning_test();\n\n removeBucket_test();\n\n setup();\n\n putObject_test();\n getObject_test();\n uploadObject_test();\n downloadObject_test();\n\n setObjectRetention_test();\n getObjectRetention_test();\n\n statObject_test1();\n statObject_test2();\n statObject_test3();\n statObject_test4();\n\n getPresignedObjectUrl_test1();\n getPresignedObjectUrl_test2();\n getPresignedObjectUrl_test3();\n getPresignedObjectUrl_test4();\n getPresignedObjectUrl_test5();\n getPresignedObjectUrl_test6();\n\n listObjects_test();\n\n removeObject_test1();\n removeObjects_test1();\n\n presignedPostPolicy_test();\n\n copyObject_test();\n composeObject_test();\n\n enableObjectLegalHold_test();\n disableObjectLegalHold_test();\n setDefaultRetention_test();\n getDefaultRetention_test();\n\n setObjectRetention_test();\n getObjectRetention_test();\n\n selectObjectContent_test1();\n\n setBucketEncryption_test();\n getBucketEncryption_test();\n deleteBucketEncryption_test();\n\n setBucketTags_test();\n getBucketTags_test();\n deleteBucketTags_test();\n setObjectTags_test();\n getObjectTags_test();\n deleteObjectTags_test();\n\n // SSE_S3 and SSE_KMS only work with Amazon AWS endpoint.\n String requestUrl = endpoint;\n if (requestUrl.contains(\".amazonaws.com\")) {\n setBucketLifeCycle_test1();\n getBucketLifeCycle_test1();\n deleteBucketLifeCycle_test1();\n }\n\n getBucketPolicy_test1();\n setBucketPolicy_test1();\n deleteBucketPolicy_test1();\n\n listenBucketNotification_test1();\n\n teardown();\n\n setBucketNotification_test1();\n getBucketNotification_test1();\n deleteBucketNotification_test1();\n }", "title": "" }, { "docid": "15db5e10c31da09177beebc142e9d3b1", "score": "0.5407575", "text": "public void testUploadFile2Accuracy() throws Exception {\r\n InputStream dataStream = new FileInputStream(new File(ConfigHelper.CLIENT_FILE_LOCATION + \"/\"\r\n + UPLOAD_FILE_NAME));\r\n\r\n // upload file\r\n String requestId = fileSystemClient.uploadFile(dataStream, UPLOAD_FILE_NAME);\r\n\r\n // check the status\r\n FileUploadCheckStatus status = fileSystemClient.getFileUploadCheckStatus(requestId, true);\r\n assertEquals(FileUploadCheckStatus.UPLOAD_ACCEPTED, status);\r\n\r\n while (fileSystemClient.isFileTransferWorkerAlive(requestId)) {\r\n Thread.sleep(500);\r\n }\r\n\r\n // receive response\r\n ResponseMessage response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n assertNotNull(\"Expects the response is not null.\", response);\r\n assertNull(\"Expects no exception occurs.\", response.getException());\r\n\r\n String fileId = (String) response.getResult();\r\n // use the file with the resulted file name and remove file\r\n requestId = fileSystemClient.removeFile(fileId);\r\n response = (ResponseMessage) fileSystemClient.receiveResponse(requestId, true);\r\n }", "title": "" }, { "docid": "9132cff80d1ce029e1444113a1464fe7", "score": "0.53978354", "text": "@Test\n public void testDeleteDirectory() throws IOException, InterruptedException\n {\n // Upload local directory to s3Dao.\n testUploadDirectory();\n\n // Validate that S3 directory is not empty.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX + \"/\");\n List<StorageFile> storageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(storageFiles.size() > 0);\n\n // Delete directory from S3 using s3Dao.\n s3Dao.deleteDirectory(s3FileTransferRequestParamsDto);\n\n // Validate that S3 directory got deleted.\n storageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(storageFiles.size() == 0);\n }", "title": "" }, { "docid": "37908dde0f7584ce85a23387d69209b6", "score": "0.5393942", "text": "@Test\n public void simpleTest(){\n try {\n //Initialize client\n JH3 client = new JH3(storageURI, userId);\n ArrayList<String> buckets;\n\n // Create some random data and store them into an H3Object\n byte[] data = new byte[3 * MEGABYTE];\n new Random().nextBytes(data);\n JH3Object dataObj = new JH3Object(data, 3* MEGABYTE);\n\n // Check if there are any buckets\n buckets = client.listBuckets();\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n assertTrue(buckets.isEmpty());\n\n // Create a bucket\n assertTrue(client.createBucket(\"b1\"));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create an object in H3\n assertTrue(client.createObject(\"b1\", \"o1\", dataObj));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // List multiparts in bucket\n assertTrue(client.listMultiparts(\"b1\").isEmpty());\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create a multipart object\n JH3MultipartId multipart = client.createMultipart(\"b1\", \"m1\");\n assertNotNull(multipart);\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create a part\n assertTrue(client.createPart(dataObj, multipart, 1));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create a second H3Object from a segment of the first\n JH3Object dataObj2 = new JH3Object(Arrays.copyOfRange(dataObj.getData(), 0, MEGABYTE), MEGABYTE);\n\n // Create a second part\n assertTrue(client.createPart(dataObj2, multipart, 0));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create a third part\n assertTrue(client.createPart(dataObj, multipart, 2));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Create a part by copying\n assertTrue(client.createPartCopy(\"o1\", 0, MEGABYTE, multipart, 0));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // List parts in multipart\n ArrayList<JH3PartInfo> parts = client.listParts(multipart);\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n assertNotNull(parts);\n assertEquals(3, parts.size());\n\n for (JH3PartInfo part : parts){\n if (part.getPartNumber() == 0)\n assertEquals(MEGABYTE, part.getSize());\n else\n assertEquals(3 * MEGABYTE, part.getSize());\n }\n\n\n // Complete a multipart object\n assertTrue(client.completeMultipart(multipart));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Try to complete again\n assertFalse(client.completeMultipart(multipart));\n assertEquals(JH3Status.JH3_NOT_EXISTS, client.getStatus());\n\n // Try to abort completed multipart\n assertFalse(client.abortMultipart(multipart));\n assertEquals(JH3Status.JH3_NOT_EXISTS, client.getStatus());\n\n // Check if completed multipart appears as object in bucket\n assertTrue(client.listObjects(\"b1\", 0).contains(\"m1\"));\n\n // Check info of the object\n JH3ObjectInfo objectInfo = client.infoObject(\"b1\", \"m1\");\n assertNotNull(objectInfo);\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n assertFalse(objectInfo.isCorrupt());\n assertEquals(7 * MEGABYTE, objectInfo.getSize());\n //assertEquals(0, objectInfo.getCreation());\n //assertEquals(0, objectInfo.getLastAccess());\n //assertEquals(0, objectInfo.getLastModification());\n\n // Delete objects\n assertTrue(client.deleteObject(\"b1\", \"m1\"));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n assertTrue(client.deleteObject(\"b1\", \"o1\"));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // List objects\n assertTrue(client.listObjects(\"b1\", 0).isEmpty());\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // Delete bucket\n assertTrue(client.deleteBucket(\"b1\"));\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n // List buckets\n assertTrue(client.listBuckets().isEmpty());\n assertEquals(JH3Status.JH3_SUCCESS, client.getStatus());\n\n } catch (JH3Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d1c9dcdb2445d9ea340070fa6d50673b", "score": "0.53826594", "text": "public String uploadDeArquivosParaStorageAmazon(String keyFilename, FileItem fileItem) throws IOException{\r\n\t\tObjectMetadata metadata = new ObjectMetadata();\r\n\t\tInputStream input = fileItem.getInputStream();\r\n\t\tmetadata.setContentType(fileItem.getContentType());\r\n\t\tmetadata.setContentLength(fileItem.getSize());\r\n\t\t\r\n\t\t//nome do arquivo unico no bucket/diretorio\r\n\t\tkeyFilename = this.randomizeFilenameUniqueObjectAmazon(keyFilename, null);\r\n\t\tlog.info(\"AWS - Put object trying...\");\r\n\t\tthis.amazonS3client.putObject(new PutObjectRequest(bucketName, keyFilename, input, metadata));\r\n\t\tlog.info(\"AWS - Put object in endpoint: \" + endpoint + \" - bucketname: \" + bucketName + \" - keyFilename: \" + keyFilename);\r\n\t\treturn keyFilename;\r\n\t}", "title": "" }, { "docid": "0267aa95863bf76484e585289b6ce086", "score": "0.53823566", "text": "public static AmazonS3 getS3Client() throws Exception {\n final String bucket = Config.getInstance().getConfigParam(Config.SYNC_CFG_PARAM_AWSBUCK);\n if (bucket == null || bucket.isEmpty()) {\n String errMsg = \"S3ClientFactory: error: bucket required\";\n LOGGER.error(errMsg);\n throw new Exception(errMsg);\n }\n ClientConfiguration cltConf = new ClientConfiguration();\n cltConf.setConnectionTimeout(DEFAULT_CONN_TIMEOUT);\n cltConf.setRequestTimeout(DEFAULT_REQ_TIMEOUT);\n\n String connTimeout = Config.getInstance().getConfigParam(Config.SYNC_CFG_PARAM_AWSCONTO);\n if (connTimeout != null) {\n try {\n int connectionTimeout = Integer.parseInt(connTimeout);\n cltConf.setConnectionTimeout(connectionTimeout);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"S3ClientFactory: using connection timeout: \" + connectionTimeout);\n }\n } catch (Exception exc) {\n LOGGER.warn(\"S3ClientFactory: ignore connection timeout parameter: \" +\n Config.SYNC_CFG_PARAM_AWSCONTO + \" : bad value: \" + connTimeout);\n }\n }\n\n String reqTimeout = Config.getInstance().getConfigParam(Config.SYNC_CFG_PARAM_AWSREQTO);\n if (reqTimeout != null) {\n try {\n int requestTimeout = Integer.parseInt(reqTimeout);\n cltConf.setRequestTimeout(requestTimeout);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"S3ClientFactory: using request timeout: \" + requestTimeout);\n }\n } catch (Exception exc) {\n LOGGER.warn(\"S3ClientFactory: ignore request timeout parameter: \" +\n Config.SYNC_CFG_PARAM_AWSREQTO + \" : bad value: \" + reqTimeout);\n }\n }\n\n AmazonS3 s3client = null;\n final String awsKeyId = Config.getInstance().getConfigParam(Config.SYNC_CFG_PARAM_AWSKEYID);\n final String awsAccKey = Config.getInstance().getConfigParam(Config.SYNC_CFG_PARAM_AWSACCKEY);\n if (awsKeyId != null && !awsKeyId.isEmpty() && awsAccKey != null && !awsAccKey.isEmpty()) {\n BasicAWSCredentials awsCreds = new BasicAWSCredentials(awsKeyId, awsAccKey);\n s3client = AmazonS3ClientBuilder.standard()\n .withCredentials(new AWSStaticCredentialsProvider(awsCreds))\n .withClientConfiguration(cltConf)\n .withRegion(getRegion())\n .build();\n } else {\n s3client = AmazonS3ClientBuilder.standard()\n .withCredentials(new InstanceProfileCredentialsProvider(false))\n .withClientConfiguration(cltConf)\n .build();\n }\n\n if (!s3client.doesBucketExist(bucket)) {\n String errMsg = \"S3ClientFactory: bucket: \" + bucket + \" : does NOT exist in S3\";\n LOGGER.error(errMsg);\n throw new Exception(errMsg);\n }\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"S3ClientFactory: success: using bucket: \" + bucket);\n }\n\n return s3client;\n }", "title": "" }, { "docid": "dca6d1705622c3fd39670630dfee5d25", "score": "0.5363938", "text": "public static MwareFile doFileUpload(FileItem item, String physicalName, String nfFilePath, String compNo) throws IOException, InvalidKeyException, StorageException, URISyntaxException\r\n {\r\n // Process form file field (input type=\"file\").\r\n String fieldname = item.getFieldName();\r\n String filename = FilenameUtils.getName(item.getName());\r\n String validFileType = MwareConfig.getImgFileType();\r\n String fileExtension = FilenameUtils.getExtension(filename).toLowerCase();\r\n \r\n// MwareConfig.etCompanies()\r\n\r\n //int isValid = validFileType.indexOf(FilenameUtils.getExtension(filename));\r\n\r\n //모의해킹 테스트 보안처리 로직. jsp파일 우회업로드시 서버에서 validation 처리한다.\r\n if(fileExtension.equals(\"jsp\")||fileExtension.equals(\"java\"))\r\n {\r\n \t//사용불가능 한 파일임.\r\n \tthrow new IOException();\r\n }\r\n else\r\n {\r\n \tint filesize = 0;\r\n \r\n //========================================\r\n // File 저장 경로\r\n String fileDir = MwareConfig.getFileDir();\r\n \r\n/* File newFile = new File(\"test.txt\");\r\n FileWriter writer = new FileWriter(newFile);\r\n writer.write(\"@2222222!!!!!!!!!!!!\");\r\n writer.flush();\r\n \r\n System.out.println(newFile.getAbsolutePath());\r\n \r\n FileReader filereader = new FileReader(newFile);\r\n int singleCh = 0;\r\n while((singleCh = filereader.read()) != -1){\r\n System.out.print((char)singleCh);\r\n }\r\n filereader.close();*/\r\n\r\n if(\"AZURE\".equals(fileDir))\r\n {\r\n CloudBlobClient serviceClient = FileUtil.getCloudBlobClient();\r\n CloudBlobContainer container = serviceClient.getContainerReference(\"dream\");\r\n container.createIfNotExists();\r\n // Upload an image file.\r\n\r\n CloudBlockBlob blob = container.getBlockBlobReference(nfFilePath + File.separator + physicalName);\r\n// File sourceFile = new File(\"c:\\\\image1.jpg\");\r\n InputStream filecontent = item.getInputStream();\r\n\r\n filesize = Integer.parseInt(item.getSize()+\"\");\r\n blob.upload(filecontent, item.getSize());\r\n \r\n }\r\n else\r\n {\r\n //========================================\r\n //fileDir = \"C:\\\\GMMS_Service_Dev\\\\File_data\\\\\";\r\n //File dir = new File(fileDir + folerPath + \"\\\\\");\r\n /*\r\n *Linux (In Linux, it make folder like this 'SAFETY\\'\r\n */\r\n File dir = new File(fileDir + nfFilePath);\r\n \r\n if(!dir.exists())\r\n {\r\n dir.mkdirs();\r\n }\r\n \r\n InputStream filecontent = item.getInputStream();\r\n \r\n // Write to file\r\n File f=new File(fileDir + nfFilePath + \"/\" + physicalName);\r\n FileOutputStream fout=new FileOutputStream(f);\r\n byte buf[]=new byte[1024];\r\n int len;\r\n \r\n // 이미지타입인 경우 회전 검사\r\n if(MwareConfig.getImgFileType().toLowerCase().contains(fileExtension) && !\"png\".equals(fileExtension))\r\n {\r\n try {\r\n AffineTransform affineTransform = getExifTransformation(readImageInformation(filecontent));\r\n BufferedImage bfi = transformImage(item.getInputStream(), affineTransform);\r\n \r\n ImageIO.write(bfi, fileExtension, fout);\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n while((len=filecontent.read(buf))>0) {\r\n fout.write(buf,0,len);\r\n filesize+=len;\r\n }\r\n fout.close(); \r\n }\r\n \r\n MwareFile mwareFile = new MwareFile();\r\n mwareFile.setFileName(filename);\r\n mwareFile.setFileType(fileExtension);\r\n mwareFile.setPhysicalFileName(physicalName);\r\n mwareFile.setFileSize(filesize);\r\n \r\n return mwareFile;\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "a8adcfd7a587629bf3b9666a3395bc2a", "score": "0.5350971", "text": "public interface ObjectRecordDAO {\n\n\t/**\n\t * Save a batch of object records to a file and pushes it to S3\n\t * \n\t * @param records - the object records to write\n\t * @param type - the type of the synapse object that is going to be written \n\t * @return the path of the file that is stored in S3\n\t * @throws IOException\n\t */\n\tString saveBatch(List<ObjectRecord> records, String type) throws IOException;\n\t\n\t/**\n\t * Get a batch of ObjectRecords from the permanent store using its key\n\t * \n\t * @param key - The key of the batch\n\t * @param type - the type of the synapse object\n\t * @return a batch of ObjectRecords\n\t * @throws IOException \n\t */\n\tList<ObjectRecord> getBatch(String key, String type) throws IOException;\n\n\t/**\n\t * Delete all stack instance batches from the bucket.\n\t * This should never be called on a production system.\n\t * @param type - the type of the synapse object\n\t * \n\t */\n\tvoid deleteAllStackInstanceBatches(String type);\n\n\t/**\n\t * @param type - the type of the synapse object\n\t * @return the key iterator for a bucket of this type\n\t */\n\tIterator<String> keyIterator(String type);\n}", "title": "" }, { "docid": "31d8fbe89a77740073fb81b22231b8c4", "score": "0.53429", "text": "@Test\n public void testUploadDirectoryLargeNumberOfFiles() throws IOException, InterruptedException\n {\n final int NUM_OF_FILES = 1001;\n\n // Create local files.\n for (int i = 0; i < NUM_OF_FILES; i++)\n {\n File targetFile = createLocalFile(localTempPath.toString(), String.format(\"%04d_%s\", i, LOCAL_FILE), FILE_SIZE_0_BYTE);\n Assert.assertTrue(targetFile.isFile());\n }\n\n // Upload empty folder to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX);\n s3FileTransferRequestParamsDto.setLocalPath(localTempPath.toString());\n s3FileTransferRequestParamsDto.setRecursive(true);\n S3FileTransferResultsDto results = s3Dao.uploadDirectory(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == NUM_OF_FILES);\n\n // Validate the empty folder upload.\n List<StorageFile> actualStorageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(actualStorageFiles.size() == NUM_OF_FILES);\n }", "title": "" }, { "docid": "9a271607a19d0bc4727f646e77c6019a", "score": "0.5336842", "text": "@Test\n public void testCopyFileInvalidKmsId() throws InterruptedException\n {\n try\n {\n S3FileCopyRequestParamsDto transferDto = new S3FileCopyRequestParamsDto();\n transferDto.setSourceBucketName(getS3LoadingDockBucketName());\n transferDto.setTargetBucketName(getS3ExternalBucketName());\n transferDto.setS3KeyPrefix(\"testKeyPrefix\");\n transferDto.setKmsKeyId(MockS3OperationsImpl.MOCK_KMS_ID_FAILED_TRANSFER);\n s3Dao.copyFile(transferDto);\n fail(\"An AmazonServiceException was expected but not thrown.\");\n }\n catch (AmazonServiceException ex)\n {\n Assert.assertTrue(\"Invalid AmazonServiceException message returned.\",\n ex.getMessage().contains(\"Key '\" + MockS3OperationsImpl.MOCK_KMS_ID_FAILED_TRANSFER + \"' does not exist\"));\n }\n }", "title": "" }, { "docid": "6c09ab5c9ca82994658b5dd392e52a4f", "score": "0.53171974", "text": "protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n runner = new ServletRunner();\r\n\r\n // initialize upload Preview servlet\r\n uploadPreviewServlet = new MemberPhotoUploadServlet();\r\n uploadPreviewServlet.setFileUploaderNamespace(\"MemoryFileUpload\");\r\n uploadPreviewServlet.setMemberIdErrorName(\"b\");\r\n uploadPreviewServlet.setMemberIdParameterName(\"member_id\");\r\n uploadPreviewServlet.setMemberIdSessionKey(\"member_id_session_key\");\r\n uploadPreviewServlet.setMemberPhotoManager(new StressMockMemberPhotoManager());\r\n uploadPreviewServlet.setPhotoImageErrorName(\"e\");\r\n uploadPreviewServlet.setPhotoImageFormFileName(\"homer.png\");\r\n uploadPreviewServlet.setPhotoImagePreviewDirectory(\"test_files/stresstests/preview\");\r\n uploadPreviewServlet.setPhotoImageSubmittedDirectory(\"h\");\r\n uploadPreviewServlet.setPreviewForwardUrl(\"i\");\r\n uploadPreviewServlet.setPreviewPhotoImagePathName(\"j\");\r\n uploadPreviewServlet.setTargetImageLeftCornerXParameterName(\"lx\");\r\n uploadPreviewServlet.setTargetImageLeftCornerYParameterName(\"ly\");\r\n uploadPreviewServlet.setTargetImageRightCornerXParameterName(\"rx\");\r\n uploadPreviewServlet.setTargetImageRightCornerYParameterName(\"ry\");\r\n uploadPreviewServlet.setPhotoImageCropDirectory(\"test_files/stresstests/crop\");\r\n uploadPreviewServlet.setSubmittedRedirectUrl(\"l\");\r\n uploadPreviewServlet.setTargetImageHeight(100);\r\n uploadPreviewServlet.setTargetImageWidth(100);\r\n uploadPreviewServlet.setValidationErrorForwardUrl(\"m\");\r\n uploadPreviewServlet.setMaxFileSize(100000);\r\n uploadPreviewServlet.setSubmittedActionParameterName(\"sap\");\r\n uploadPreviewServlet.setMaxFileExceededErrorName(\"maxfileError\");\r\n inject(MemberPhotoUploadServlet.class, \"log\", uploadPreviewServlet,\r\n new Log4jLogFactory().createLog(\"MemberPhotoUploadServlet\"));\r\n\r\n // initialize upload Crop servlet\r\n uploadCropServlet = new MemberPhotoUploadServlet();\r\n uploadCropServlet.setFileUploaderNamespace(\"MemoryFileUpload\");\r\n uploadCropServlet.setMemberIdErrorName(\"b\");\r\n uploadCropServlet.setMemberIdParameterName(\"member_id\");\r\n uploadCropServlet.setMemberIdSessionKey(\"member_id_session_key\");\r\n uploadCropServlet.setMemberPhotoManager(new StressMockMemberPhotoManager());\r\n uploadCropServlet.setPhotoImageErrorName(\"e\");\r\n uploadCropServlet.setPhotoImageFormFileName(\"homer.png\");\r\n uploadCropServlet.setPhotoImagePreviewDirectory(\"test_files/stresstests/preview\");\r\n uploadCropServlet.setPhotoImageSubmittedDirectory(\"h\");\r\n uploadCropServlet.setPreviewForwardUrl(\"i\");\r\n uploadCropServlet.setPreviewPhotoImagePathName(\"j\");\r\n uploadCropServlet.setTargetImageLeftCornerXParameterName(\"lx\");\r\n uploadCropServlet.setTargetImageLeftCornerYParameterName(\"ly\");\r\n uploadCropServlet.setTargetImageRightCornerXParameterName(\"rx\");\r\n uploadCropServlet.setTargetImageRightCornerYParameterName(\"ry\");\r\n uploadCropServlet.setPhotoImageCropDirectory(\"test_files/stresstests/crop\");\r\n uploadCropServlet.setSubmittedRedirectUrl(\"l\");\r\n uploadCropServlet.setTargetImageHeight(100);\r\n uploadCropServlet.setTargetImageWidth(100);\r\n uploadCropServlet.setValidationErrorForwardUrl(\"m\");\r\n uploadCropServlet.setMaxFileSize(100000);\r\n uploadCropServlet.setSubmittedActionParameterName(\"sap\");\r\n uploadCropServlet.setMaxFileExceededErrorName(\"maxfileError\");\r\n uploadCropServlet.setMemberInformationRetriever(new MockMemberInformationRetriever());\r\n inject(MemberPhotoUploadServlet.class, \"log\", uploadCropServlet,\r\n new Log4jLogFactory().createLog(\"MemberPhotoUploadServlet\"));\r\n\r\n // initialize upload Commit servlet\r\n uploadCommitServlet = new MemberPhotoUploadServlet();\r\n uploadCommitServlet.setFileUploaderNamespace(\"MemoryFileUpload\");\r\n uploadCommitServlet.setMemberIdErrorName(\"b\");\r\n uploadCommitServlet.setMemberIdParameterName(\"member_id\");\r\n uploadCommitServlet.setMemberIdSessionKey(\"member_id_session_key\");\r\n uploadCommitServlet.setMemberPhotoManager(new StressMockMemberPhotoManager());\r\n uploadCommitServlet.setPhotoImageErrorName(\"e\");\r\n uploadCommitServlet.setPhotoImageFormFileName(\"homer.png\");\r\n uploadCommitServlet.setPhotoImagePreviewDirectory(\"test_files/stresstests/preview\");\r\n uploadCommitServlet.setPhotoImageSubmittedDirectory(\"h\");\r\n uploadCommitServlet.setPreviewForwardUrl(\"i\");\r\n uploadCommitServlet.setPreviewPhotoImagePathName(\"j\");\r\n uploadCommitServlet.setTargetImageLeftCornerXParameterName(\"lx\");\r\n uploadCommitServlet.setTargetImageLeftCornerYParameterName(\"ly\");\r\n uploadCommitServlet.setTargetImageRightCornerXParameterName(\"rx\");\r\n uploadCommitServlet.setTargetImageRightCornerYParameterName(\"ry\");\r\n uploadCommitServlet.setPhotoImageCropDirectory(\"./test_files/stresstests/crop\");\r\n uploadCommitServlet.setSubmittedRedirectUrl(\"l\");\r\n uploadCommitServlet.setTargetImageHeight(100);\r\n uploadCommitServlet.setTargetImageWidth(100);\r\n uploadCommitServlet.setValidationErrorForwardUrl(\"m\");\r\n uploadCommitServlet.setMaxFileSize(100000);\r\n uploadCommitServlet.setSubmittedActionParameterName(\"sap\");\r\n uploadCommitServlet.setMaxFileExceededErrorName(\"maxfileError\");\r\n uploadCommitServlet.setMemberInformationRetriever(new MockMemberInformationRetriever());\r\n inject(MemberPhotoUploadServlet.class, \"log\", uploadCommitServlet,\r\n new Log4jLogFactory().createLog(\"MemberPhotoUploadServlet\"));\r\n\r\n // initialize remove servlet\r\n removeServlet = new MemberPhotoRemovalServlet();\r\n // removeServlet.setDocumentGenerator(new DocumentGenerator(\"some_namespace\"));\r\n removeServlet.setEmailBodyTemplateFileName(\"test_files/stresstests/template.txt\");\r\n removeServlet.setEmailSubject(\"b\");\r\n removeServlet.setFromEmailAddress(\"a@b.c\");\r\n removeServlet.setIsAdministratorSessionKey(\"is_admin\");\r\n removeServlet.setMemberHasNoPhotoErrorName(\"c\");\r\n removeServlet.setMemberIdParameterName(\"member_id\");\r\n removeServlet.setMemberInformationRetriever(new MockMemberInformationRetriever());\r\n removeServlet.setMemberPhotoManager(new StressMockMemberPhotoManager());\r\n removeServlet.setNotAdministratorErrorName(\"e\");\r\n removeServlet.setPhotoImageRemovedDirectory(\"test_files/stresstests/preview\");\r\n removeServlet.setRemovalReasonParameterName(\"f\");\r\n removeServlet.setSuccessResultForwardUrl(\"g\");\r\n removeServlet.setValidationErrorForwardUrl(\"h\");\r\n removeServlet.setDocumentGenerator(DocumentGenerator.getInstance());\r\n // removeServlet.setPhotoImageDirectory(\"./test_files/stresstests/remove\");\r\n inject(MemberPhotoRemovalServlet.class, \"log\", removeServlet,\r\n new Log4jLogFactory().createLog(\"MemberPhotoRemovalServlet\"));\r\n\r\n listServlet = new MemberPhotoListServlet();\r\n listServlet.setIsAdministratorSessionKey(\"is_admin\");\r\n listServlet.setMemberIdParameterName(\"member_id\");\r\n listServlet.setMemberPhotoManager(new StressMockMemberPhotoManager());\r\n listServlet.setNotAdministratorErrorName(\"e\");\r\n listServlet.setPageNumberParameterName(\"number\");\r\n listServlet.setPageSizeParameterName(\"size\");\r\n listServlet.setPhotoListName(\"list\");\r\n listServlet.setSuccessResultForwardUrl(\"g\");\r\n listServlet.setValidationErrorForwardUrl(\"h\");\r\n inject(MemberPhotoListServlet.class, \"log\", listServlet,\r\n new Log4jLogFactory().createLog(\"MemberPhotoListServlet\"));\r\n\r\n // load configuration\r\n TestHelper.clearConfiguration();\r\n TestHelper.loadConfiguration();\r\n\r\n // initialize requests\r\n removeRequest = createRemoveRequest();\r\n uploadPreviewRequest = createUploadRequest();\r\n uploadCropRequest = createUploadRequest();\r\n uploadCommitRequest = createUploadRequest();\r\n listRequest = createListRequest();\r\n error = null;\r\n }", "title": "" }, { "docid": "d1c8b73cb00ac26e6809d81a8a470e11", "score": "0.5308474", "text": "private static void uploadFileList(String bucketName, File source, List<File> files, boolean includeSubdirectories) {\n int startingPosition = source.getAbsolutePath().length();\n if (!(source.getAbsolutePath().endsWith(File.separator))) {\n startingPosition++;\n }\n for (File f : files) {\n // Check, if is file, since only files can be uploaded.\n if (f.isFile()) {\n String key = f.getAbsolutePath()\n .substring(startingPosition)\n .replaceAll(\"\\\\\\\\\", \"/\");\n\n Map<String, String> metadata = new HashMap<>();\n metadata.put(\"atom-metadata-of-object\", \"test\");\n PutObjectRequest putOb = PutObjectRequest.builder()\n .bucket(bucketName)\n .key(key)\n .metadata(metadata)\n .build();\n PutObjectResponse response = s3Client.putObject(putOb, RequestBody.fromBytes(getObjectFile(f.getAbsolutePath())));\n log.info(\"put object response is [{}]\", response);\n }\n }\n }", "title": "" }, { "docid": "30f0b2f5d60271ca3cb45c5bbc9c7bfd", "score": "0.5305743", "text": "@Test\n\tpublic void testCreateFileHandleFromAttachment()throws Exception{\n\t\tString fileContents = \"This will be compressed\";\n\t\tString userId = \"\"+userInfo.getId();\n\t\tDate createdOn = new Date(System.currentTimeMillis());\n\t\tString fileName = \"sample.txt\";\n\t\tString entityId = \"syn1234\";\n\t\t// Create an attachment from the filehandle\n\t\tAttachmentData ad = fileUploadManager.createAttachmentInS3(fileContents, fileName, userId, entityId, createdOn);\n\t\tS3FileHandle h2 = fileUploadManager.createFileHandleFromAttachment(entityId, userId, createdOn, ad);\n\t\tassertNotNull(h2);\n\t\tassertEquals(StackConfiguration.getS3Bucket(), h2.getBucketName());\n\t\tassertEquals(S3TokenManagerImpl.createAttachmentPathNoSlash(entityId, ad.getTokenId()), h2.getKey());\n\t\tassertNotNull(h2.getContentMd5());\n\t\tassertEquals(new Long(fileContents.getBytes(\"UTF-8\").length), h2.getContentSize());\n\t\tassertEquals(\"text/plain\", h2.getContentType());\n\t\tassertEquals(userId, h2.getCreatedBy());\n\t\tassertNotNull(h2.getCreatedOn());\n\t\tassertEquals(fileName, h2.getFileName());\n\t\tassertNotNull(h2.getId());\n\t\ttoDelete.add(h2);\t\n\t}", "title": "" }, { "docid": "f3bd00457b20a8b3f37b5395be06f5ea", "score": "0.53052014", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Getting credentials...\");\n\n\t\tBasicAWSCredentials awsCreds = new BasicAWSCredentials(\"<Replace here with your Access Key ID>\", \"<Replace here with your Secret Access Key>\");\n\n\t\tSystem.out.println(\"Everything configured!\");\n\n\t\t//2. Creating a client\n\t\tAmazonS3 client = AmazonS3ClientBuilder.standard()\n\t\t\t\t.withCredentials(new AWSStaticCredentialsProvider(awsCreds))\n\t\t\t\t.withRegion(Regions.SA_EAST_1)\n\t\t\t\t.build();\n\n\t\t//3. If new bucket name does not exists, so create the new one.\n\t\tBucket myBucket;\n\t\tSystem.out.println(\"Creating a new bucket...\");\n\t\tmyBucket = client.createBucket(\"test\");\n\n\t\t//4. Listing buckets.\n\t\tSystem.out.println(\"Listing all buckets...\");\n\n\t\tclient.listBuckets().stream().forEach((b) -> {\n\t\t\tSystem.out.println(b.getName()+\" - \"+b.getOwner().getDisplayName()+\" - \"+b.getCreationDate().toString());\n\t\t});\n\n\t\t//5. Send a file to the new bucket.\n\t\tFile myFile = new File(\"d:/image-test.png\");\n\n\t\tString s3FileKey = myFile.getName().toLowerCase();\n\n\t\tSystem.out.println(\"Sending the file '\"+myFile.getName()+\"'...\");\n\n\t\tclient.putObject(\"test\", s3FileKey, myFile);\n\t\tSystem.out.println(\"File '\"+myFile.getName()+\"' sent!\");\t\t\n\n\t\t//6. Now you can also retrieve \n\t\tS3Object fileFromBucket = client.getObject(\"test\", \"image-test.png\");\n\n\t\tS3ObjectInputStream is = fileFromBucket.getObjectContent();\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"D:/anotherName.png\");\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint nRead;\n\t\t\twhile ((nRead = is.read(buffer, 0, buffer.length)) != -1) {\n\t\t\t\tfos.write(buffer, 0, nRead);\n\t\t\t}\n\t\t\tis.close();\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "3f35a9cc13af513d577cb769a6b16c37", "score": "0.52728045", "text": "public void testUploadCommitTask() throws Throwable {\r\n // initialize threads\r\n List<Thread> threads = new ArrayList<Thread>();\r\n for (int i = 0; i < 10; i++) {\r\n threads.add(new Thread(new UploadCommitTask()));\r\n }\r\n\r\n // start them\r\n for (Thread t : threads) {\r\n t.start();\r\n }\r\n\r\n // wait until last finished\r\n for (Thread t : threads) {\r\n t.join();\r\n }\r\n\r\n // check if error was noticed\r\n if (error != null) {\r\n throw error;\r\n }\r\n }", "title": "" }, { "docid": "8e9b7b92ee12e8a8c87ff6052955b271", "score": "0.5271174", "text": "@Override public String upload(final Block block)\n\t\tthrows AccessControlException, IOException, NoSuchAlgorithmException, RuntimeException\n\t{\n\t\tlog.entering(AmazonUploader.class.getName(), \"upload\", block);\n\n\t\tif (!checkAuth(block.getAuthorization()))\n\t\t\tthrow new AccessControlException(\"Authorization failure\");\n\n\t\t// Does the actual fingerprint match the expected one (if any)?\n\t\tFingerprint.Builder fingerprintBuilder =\n\t\t\tFingerprint.newBuilder()\n\t\t\t\t.setContent(block.getBytes());\n\n\t\tif (!block.getFingerprintAlgorithm().isEmpty())\n\t\t\tfingerprintBuilder.setAlgorithm(block.getFingerprintAlgorithm());\n\n\t\tfinal String actualName = fingerprintBuilder.build().encode();\n\t\tString expected = block.getExpectedName();\n\t\tif (!expected.isEmpty() && !expected.equals(actualName))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Block name (\" + actualName\n\t\t\t\t\t + \") does not match expected name (\" + block.getExpectedName()\n\t\t\t\t\t + \")\");\n\n\t\tfinal ByteBuffer bytes = block.getBytes();\n\n\t\tfinal ObjectMetadata metadata = new ObjectMetadata();\n\t\tmetadata.setContentLength(bytes.remaining());\n\n\t\tInputStream stream = new ByteArrayInputStream(bytes.array());\n\n\t\ttry\n\t\t{\n\t\t\ts3.putObject(USER_DATA_BUCKET, actualName, stream, metadata);\n\t\t\ts3.setObjectAcl(USER_DATA_BUCKET, actualName, DEFAULT_ACL);\n\t\t}\n\t\tcatch (AmazonClientException e) { throw new RuntimeException(e); }\n\n\t\treturn actualName;\n\t}", "title": "" }, { "docid": "5094580bc0f9289132ea81dcea35cb1c", "score": "0.526524", "text": "private void testStreamUpload(int size) throws IOException {\n File fname = tmpFolder.newFile();\n RandomAccessFile randf = new RandomAccessFile(fname, \"rw\");\n randf.setLength(size);\n randf.close();\n\n //test stream upload\n HttpURLConnection urlConn = request(\"/test/v1/stream/upload\", HttpMethod.PUT);\n Files.copy(fname.toPath(), urlConn.getOutputStream());\n Assert.assertEquals(200, urlConn.getResponseCode());\n urlConn.disconnect();\n }", "title": "" }, { "docid": "b767b8b57cf05dd2f59450b9425772b9", "score": "0.5264163", "text": "public static void main(String[] args) {\n\t\t/*\n\t\t * The ProfileCredentialsProvider will return your [default] credential\n\t\t * profile by reading from the credentials file located at\n\t\t * (/path-to-your-user-home/.aws/credentials).\n\t\t */\n\t\tAWSCredentials credentials = null;\n\t\ttry {\n\t\t\tcredentials = new ProfileCredentialsProvider(\"default\")\n\t\t\t\t\t.getCredentials();\n\t\t} catch (Exception e) {\n\t\t\tthrow new AmazonClientException(\n\t\t\t\t\t\"Cannot load the credentials from the credential profiles file. \"\n\t\t\t\t\t\t\t+ \"Please make sure that your credentials file is at the correct \"\n\t\t\t\t\t\t\t+ \"location (/path-to-your-user-home/.aws/credentials), and is in valid format.\",\n\t\t\t\t\te);\n\t\t}\n\t\tSystem.out.println(\"test\");\n\n\t\tAmazonS3 s3 = new AmazonS3Client(credentials);\n\n\t\ttry {\n\t\t\tlog.info(\"Creating a bucket (if it does not exist, yet)\");\n\n\t\t\tBucket bucket = s3.createBucket(\"ise-tu-berlin-exercise2-david\");\n\n\t\t\t\n\n\t\t\tlog.info(\"Uploading an object\");\n\t\t\ttry {\n\t\t\t\ts3.putObject(new PutObjectRequest(bucket.getName(), \"test\", createSampleFile(\"david\")));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tlog.info(\"Downloading an object\");\n\n\t\t\tS3Object file = s3.getObject(new GetObjectRequest(bucket.getName(), \"test\"));\n\t\t\ttry {\n\t\t\t\tdisplayTextInputStream(file.getObjectContent());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\n\t\t\ts3.deleteObject(bucket.getName(), file.getKey());\n\t\t\ts3.deleteBucket(bucket.getName());\n\n\t\t} catch (AmazonServiceException ase) {\n\t\t\tlog.error(\"Caught an AmazonServiceException, which means your request made it \"\n\t\t\t\t\t\t\t+ \"to Amazon S3, but was rejected with an error response for some reason.\");\n\t\t\tlog.error(\"Error Message: \" + ase.getMessage());\n\t\t\tlog.error(\"HTTP Status Code: \" + ase.getStatusCode());\n\t\t\tlog.error(\"AWS Error Code: \" + ase.getErrorCode());\n\t\t\tlog.error(\"Error Type: \" + ase.getErrorType());\n\t\t\tlog.error(\"Request ID: \" + ase.getRequestId());\n\t\t} catch (AmazonClientException ace) {\n\t\t\tlog.error(\"Caught an AmazonClientException, which means the client encountered \"\n\t\t\t\t\t\t\t+ \"a serious internal problem while trying to communicate with S3, \"\n\t\t\t\t\t\t\t+ \"such as not being able to access the network.\");\n\t\t\tlog.error(\"Error Message: \" + ace.getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "4eb6fc4d1a052f25b3775032fe358cdb", "score": "0.52633977", "text": "@Test\n public void testUploadDirectoryZeroBytes() throws IOException, InterruptedException\n {\n // Create a zero size local file.\n File targetFile = createLocalFile(localTempPath.toString(), LOCAL_FILE, FILE_SIZE_0_BYTE);\n Assert.assertTrue(targetFile.isFile());\n\n // Upload empty folder to s3Dao.\n S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = getTestS3FileTransferRequestParamsDto();\n s3FileTransferRequestParamsDto.setS3KeyPrefix(TEST_S3_KEY_PREFIX);\n s3FileTransferRequestParamsDto.setLocalPath(localTempPath.toString());\n s3FileTransferRequestParamsDto.setRecursive(true);\n S3FileTransferResultsDto results = s3Dao.uploadDirectory(s3FileTransferRequestParamsDto);\n\n // Validate results.\n Assert.assertTrue(results.getTotalFilesTransferred() == 1L);\n\n // Validate the zero bytes upload.\n List<StorageFile> actualStorageFiles = s3Dao.listDirectory(s3FileTransferRequestParamsDto);\n Assert.assertTrue(actualStorageFiles.size() == 1);\n }", "title": "" }, { "docid": "f67301c7accb02c95f257ccfa99c3b9d", "score": "0.5257189", "text": "public interface UploadService {\n void upload(String fileName) throws IOException;\n\n\n void upload(File file) throws IOException;\n\n String upload(String fileName, InputStream inputStream) throws IOException;\n\n byte[] readBytes(InputStream is, int contentLen);\n\n\n InputStream downloadDJFile(String key) throws OSSException, ClientException;\n}", "title": "" }, { "docid": "0ce1be7a2b0ee570ca78480c4b661cc4", "score": "0.52478737", "text": "private static void uploadFileOrDirectory(AmazonS3 s3, String bucketName, String keyName, boolean isRecursive, File startFile)\r\n \tthrows IOException {\n if (startFile.isFile()) {\r\n \tuploadFile(s3, startFile, bucketName, keyName);\r\n // Faz o tratamento de diretorios \r\n } else if (startFile.isDirectory()) {\r\n File[] files = startFile.listFiles();\r\n for (File file : files) {\r\n \tif (file.isFile()) {\r\n \t\tuploadFile(s3, file, bucketName, keyName);\r\n \t} else if (file.isDirectory() && isRecursive) {\r\n \t\tuploadFileOrDirectory(s3, bucketName, keyName+file.getName()+\"/\", isRecursive, file);\r\n \t}\r\n }\r\n } \r\n }", "title": "" }, { "docid": "0c7dfb9881a1dfd9d7a77ef539ecbc85", "score": "0.52445483", "text": "@Test\n public void testAbortMultipartUploadsNullParamsDto()\n {\n try\n {\n s3Dao.abortMultipartUploads(null, new Date());\n fail(\"Suppose to throw a NullPointerException.\");\n }\n catch (NullPointerException e)\n {\n assertNull(e.getMessage());\n }\n }", "title": "" }, { "docid": "9ab87def7df053cb63bc61fa7154b422", "score": "0.5243995", "text": "public void testGetUploadURI() {\n try {\n System.out.println(\"testGetUploadURI\");\n\n Object[] data = new Object[2];\n\n data[0] = new String(\"String Data\");\n data[1] = new Integer(88539237);\n\n //will be replaced with a feneric conf class. For now its the size of data to upload\n int conf = 1024;\n\n String tagetURI = proxyService.getUploadURI(conf);\n System.out.println(\" Data upload URI: \" + tagetURI);\n\n proxyWS.clients.VRSProxyClient pClient = new proxyWS.clients.VRSProxyClient();\n boolean result = pClient.uploadData(tagetURI, data);\n\n assertTrue(result);\n\n } catch (IOException ex) {\n Logger.getLogger(ProxyWSTest.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ServiceException ex) {\n Logger.getLogger(ProxyWSTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "55e59e1efbc5ff4dec3a9fd7aa154aca", "score": "0.5243596", "text": "@Before\n public void cleanup(){\n try{\n JH3 client = new JH3(storageURI, userId);\n ArrayList<String> buckets = client.listBuckets();\n for (String bucket : buckets){\n ArrayList<String> objects = client.listObjects(bucket, 0);\n for (String object : objects){\n client.deleteObject(bucket, object);\n } \n client.deleteBucket(bucket);\n } \n }catch(JH3Exception e){}\n }", "title": "" }, { "docid": "7dc9f8687498547dbdb4fbfa897146de", "score": "0.5243129", "text": "@Test\n public void testGetSourceBucket() \n {\n assertEquals(\"bucket1-raw\", configuration.getSourceBucket()); \n }", "title": "" }, { "docid": "76042d3636877d2ae59a329c8e2a27c2", "score": "0.5237253", "text": "@Test\n void uploadFileEmptyFilename()\n {\n try\n {\n String batchID = testIng.createBatch(testAuth, DataSetID);\n Assertions.assertThrows(ParameterException.class, () ->\n {\n testIng.addFileToBatch(testAuth, null, batchID, DataSetID, \"\", true);\n });\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(\"Error in createBatch while testing UploadFileEmptyFilename\");\n Assertions.assertTrue(false);\n }\n }", "title": "" }, { "docid": "0fa93cc1563812a019a1f29e666481db", "score": "0.5223903", "text": "public FileUpload uploadFiles( MultipartFile file,Map<String, Object> formData)\r\n\t{\r\n\t\tFileUpload fileupload = new FileUpload();\r\n\t\tif (!file.isEmpty()) {\r\n\t\t\ttry {\r\n\t\t\t\tFileItem fileitem = new FileItem();\r\n\t\t\t\tString path;\r\n\t\t\t\tboolean flag=true;\r\n\t\t\t\tString name = file.getOriginalFilename();\r\n\t\t\t\tif (formData.get(\"referenceNo\").toString().isEmpty()) {\r\n\t\t\t\t\tFileUpload filemaster = new FileUpload();\r\n\t\t\t\t\tfilemaster.setUploadedDate(DateUtilities.getCurrentDate());\r\n\t\t\t\t\tfilemaster.setHasTicket(false);\r\n\t\t\t\t\tfilemaster.setUploadedBy(userprofilerepository.findByUserId(authService.loggedInUser().getId()));\r\n\t\t\t\t\tfilemaster.setExpiryTime(DateUtilities.getCurrentDateAndTimeAfterHour());\r\n\t\t\t\t\tfileuploadrepository.save(filemaster);\r\n\t\t\t\t\tfileitem.setFileupload(filemaster);\r\n\t\t\t\t\tpath = baseLocation + \"/\" + filemaster.getId();\r\n\t\t\t\t\tfileupload = fileuploadrepository.findOne(filemaster.getId());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint id=Integer.parseInt(formData.get(\"referenceNo\").toString());\r\n\r\n\t\t\t\t\tif(fileitemrepository.findByFileuploadIdAndFileName(id,name)!=null)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t\t\tpath = baseLocation + \"/\" + Integer.parseInt(formData.get(\"referenceNo\").toString());\r\n\t\t\t\t\tFileUpload filemaster = fileuploadrepository\r\n\t\t\t\t\t\t\t.findOne(Integer.parseInt(formData.get(\"referenceNo\").toString()));\r\n\t\t\t\t\tfilemaster.setModifiedDate(DateUtilities.getCurrentDate());\r\n\t\t\t\t\tfilemaster.setModifiedBy(authService.loggedInUser());\r\n\r\n\t\t\t\t\tfileuploadrepository.save(filemaster);\r\n\t\t\t\t\tfileitem.setFileupload(filemaster);\r\n\t\t\t\t\tfileupload = fileuploadrepository.findOne(filemaster.getId());\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif(flag)\r\n\t\t\t\t{\r\n\t\t\t\t\tfileitem.setFileName(name);\r\n\t\t\t\t\tfileitem.setFilePath(path + \"/\" + name);\r\n\t\t\t\t\tfileitem.setUploadedDate(DateUtilities.getCurrentDate());\r\n\t\t\t\t\tfileitem.setUploadedTime(DateUtilities.getCurrentTime());\r\n\r\n\t\t\t\t\tFile dir = new File(path);\r\n\t\t\t\t\tif (!dir.exists())\r\n\t\t\t\t\t\tdir.mkdirs();\r\n\r\n\t\t\t\t\tFile serverFile = new File(dir.getAbsolutePath() + File.separator + name);\r\n\t\t\t\t\tBufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(serverFile));\r\n\t\t\t\t\tstream.write(file.getBytes());\r\n\t\t\t\t\tstream.close();\r\n\t\t\t\t\tfileitemrepository.save(fileitem);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t}\r\n\r\n\t\treturn fileupload;\r\n\t}", "title": "" }, { "docid": "58e7b82b86c2f43f123c5edf0be7fecf", "score": "0.5223612", "text": "public interface FileStoreService {\n\n String uploadFile(String storePath,String localFilePath);\n}", "title": "" }, { "docid": "8d71db5188d9b9a35af59ba1c3dbba54", "score": "0.522307", "text": "public interface FileDAO {\n void save(MultipartFile file, String fileName) throws IOException;\n\n byte[] getFile(String fileName) throws IOException;\n\n void delete(String fileName) throws IOException;\n}", "title": "" }, { "docid": "094d59a1c5b18845ab26323356489416", "score": "0.52175516", "text": "@Test(expected = NullPointerException.class)\n public void testListDirectoryNullPointerException()\n {\n s3Dao.listDirectory(null);\n }", "title": "" }, { "docid": "807cb5d256e2120dbb90774b4f86b971", "score": "0.52067626", "text": "private static void testPut() throws Exception {\n ImageService service = new ImageService(config);\n ImageService.ImagePutReqCall reqCall = service.getImages().put();\n try (InputStream inputStream = new FileInputStream(\"/tmp/file_name\")) {\n // method 1: use byte stream\n // reqCall.setImage(new FormDataFile().setContentStream(inputStream));\n // method 2: use byte array\n reqCall.setImage(new FormDataFile().setContent(IOs.readAll(inputStream)));\n reqCall.setImageType(\"message\");\n Response<Image> response = reqCall.execute();\n System.out.println(response.getRequestID());\n System.out.println(response.getHTTPStatusCode());\n System.out.println(Jsons.DEFAULT_GSON.toJson(response));\n }\n }", "title": "" }, { "docid": "3a80ae7da3c4d2a98079545ba2389494", "score": "0.52053535", "text": "@Test(expected = NullPointerException.class)\n public void testGetObjectMetadataNullPointerException()\n {\n s3Dao.getObjectMetadata(null);\n }", "title": "" }, { "docid": "2d82d4b6d1c63a398ae1e2f49209a286", "score": "0.51765543", "text": "@RequestMapping(\"/file/upload\")\n @ResponseBody\n public FileDTO upload(HttpServletRequest request) throws IOException {\n// String key = \"C:\\\\Users\\\\zt\\\\Desktop\\\\fish.jpg\";\n MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;\n MultipartFile file = multipartRequest.getFile(\"editormd-image-file\");\n\n String generatedFileName = file.getOriginalFilename();\n String[] filePaths = generatedFileName.split(\"\\\\.\");\n if (filePaths.length > 1) {\n generatedFileName = UUID.randomUUID().toString() + \".\" + filePaths[filePaths.length - 1];\n } else {\n throw new CustomizeException(CustomizeErrorCode.FILE_UPLOAD_FAIL);\n }\n\n String key = \"cos_dir/\" + generatedFileName;\n\n\n try {\n //file.getName():editormd-image-file | file.getOriginalFilename():c.jpg\n //key决定上传云后的名字\n String fileName = TencentCloudProvider.uploadFile(bucketName, key, file.getInputStream(), generatedFileName);\n FileDTO fileDTO = new FileDTO();\n fileDTO.setSuccess(1);\n fileDTO.setUrl(fileName);\n return fileDTO;\n } catch (Exception e) {\n log.error(\"upload error\",e);\n FileDTO fileDTO = new FileDTO();\n fileDTO.setSuccess(0);\n// fileDTO.setUrl(\"C:\\\\Users\\\\zt\\\\Desktop\\\\fish.jpg\");\n fileDTO.setMessage(\"上传失败\");\n return fileDTO;\n }\n\n\n }", "title": "" }, { "docid": "988e06bd8298f7eb4b3b2b55ba26c95e", "score": "0.51753443", "text": "@Override\n public void close() throws Exception {\n trainStream.close();\n verifyStream.close();\n\n AmazonS3 s3clinet = AmazonS3ClientBuilder.defaultClient();\n\n ObjectMetadata metadata = new ObjectMetadata();\n metadata.setContentType(\"text/csv\");\n\n copyToS3(s3clinet, metadata, trainPath, JobRunner.TRAIN);\n copyToS3(s3clinet, metadata, verifyPath, JobRunner.VALIDATION);\n }", "title": "" }, { "docid": "e0536d48702b6589fe00bbcea9a3eda4", "score": "0.51693684", "text": "@Test\n public void createBucketTest() throws InterruptedException {\n String bucketName = \"ana-test-\" + UUID.randomUUID();\n assertFalse(s3.doesBucketExist(bucketName));\n s3h.createBucket(bucketName);\n // Non-fancy solution until the Java SDK includes some waiter methods,\n // just as in the PHP version and its waitUntil methods.\n Thread.sleep(6000);\n assertTrue(s3.doesBucketExist(bucketName));\n // Clean up\n s3.deleteBucket(bucketName);\n }", "title": "" }, { "docid": "2e656e4370d44076fcbc23690fa4894c", "score": "0.51646394", "text": "int insert(UploadImage record);", "title": "" }, { "docid": "83f066bfb197e28862fb057988acc589", "score": "0.51524353", "text": "@Test(expected = edu.kit.datamanager.exceptions.BadArgumentException.class)\n public void testUpdateMetadataRecord3() throws JsonProcessingException {\n System.out.println(\"updateMetadataRecord\");\n MetadataRecord record = new MetadataRecord();\n record.setSchema(ResourceIdentifier.factoryInternalResourceIdentifier(SCHEMA_ID));\n record.setRelatedResource(RELATED_RESOURCE);\n ObjectMapper mapper = new ObjectMapper();\n MetastoreConfiguration applicationProperties = null;\n String resourceId = \"\";\n String eTag = \"\";\n MockMultipartFile recordDocument = new MockMultipartFile(\"record\", \"metadata-record.json\", \"application/json\", new String().getBytes());\n MultipartFile document = null;\n UnaryOperator<String> supplier = null;\n MetadataRecord expResult = null;\n MetadataRecord result = MetadataRecordUtil.updateMetadataRecord(applicationProperties, resourceId, eTag, recordDocument, document, supplier);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Don't reach this line!\");\n }", "title": "" }, { "docid": "ab18ec68bbd968d380745a4103313e7a", "score": "0.5152171", "text": "@Test\n public void testMultipartSubmit() throws Exception {\n \tint traceSize = traceService.getTrace(\"CBR_testSrc_test\").size();\n \t\n mockEndpoint.reset();\n MockMultipartFile file = new MockMultipartFile(\n \"file\", \n \"hello.txt\", \n MediaType.TEXT_PLAIN_VALUE, \n \"Hello, World!\".getBytes()); // Fake data. Should not need valid data for this.\n \n mockEndpoint.expectedMessageCount(1);\n mockEndpoint.expectedHeaderReceived(\"CBR_ID\", \"CBR_testSrc_test\");\n mockEndpoint.expectedHeaderReceived(\"sourceId\", \"test\");\n mockEndpoint.expectedHeaderReceived(\"source\", \"testSrc\");\n mockEndpoint.expectedHeaderReceived(\"METADATA\", new HashMap<String,String>());\n mockEndpoint.expectedBodiesReceived(file);\n\n mockMvc.perform(fileUpload(\"/cbr/input\")\n .file(file)\n .param(\"id\", \"test\")\n .param(\"source\", \"testSrc\")\n .param(\"metadata\", \"{}\")) // JSON representation of a map -- will be translated with GSON.\n .andExpect(status().isOk())\n .andExpect(content().string(\"CBR_testSrc_test/data:{}\")); // Returned CBR ID.\n\n MockEndpoint.assertIsSatisfied(camelContext);\n // size should now be +1\n assertEquals(traceSize + 1, traceService.getTrace(\"CBR_testSrc_test\").size());\n }", "title": "" }, { "docid": "62a853bb6c0028fc4032a0bfafa0dfcf", "score": "0.51519036", "text": "public interface IUploadFileService {\n /**\n * Load the provided file.\n * @param fileName the file name to load.\n * @return the loaded file.\n * @throws MalformedURLException if the given URI is not valid.\n */\n Resource load(String fileName) throws MalformedURLException;\n\n /**\n * Copy the provided file.\n * @param file the file to copy.\n * @return the name of the new copied file.\n * @throws IOException if an I/O error occurs when reading or writing.\n */\n String copy(MultipartFile file) throws IOException;\n\n /**\n * Delete a provided file.\n * @param fileName the file to delete.\n * @return true if the file is deleted, otherwise returns false.\n */\n boolean delete(String fileName);\n\n /**\n * Delete all files in the directory.\n * @return true if the files is deleted, otherwise returns false;\n */\n boolean deleteAll();\n\n boolean init() throws IOException;\n}", "title": "" } ]
8ac80a4eda9b3a49d8a7cdcdd7c3c4bd
Returns the maximum size of a leased sample.
[ { "docid": "c3e3a944145cf4d5be3cec6dd1f2e08a", "score": "0.801599", "text": "int getMaxLeasedSampleSize()\n {\n return m_maxLeasedSampleSize;\n }", "title": "" } ]
[ { "docid": "703675afd5f48dad7933424b8cd266fb", "score": "0.78005844", "text": "int getMaxLeasedSamples()\n {\n return m_maxLeasedSamples;\n }", "title": "" }, { "docid": "3b995eedfe82898a1110283812df2441", "score": "0.73229605", "text": "abstract public int getMaxLitterSize();", "title": "" }, { "docid": "4d9990c83a13ce1d76dc1b4ed6c63a5b", "score": "0.72398245", "text": "long getMaxLeasedSampleLease()\n {\n return m_maxLeasedSampleLease;\n }", "title": "" }, { "docid": "55c853872b87c5711ae0f3dc5a5450bc", "score": "0.6652297", "text": "public double getMaxMemoryUsage()\r\n\t{\r\n\t\tif (this.memoryUsage.isEmpty())\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn Collections.max(this.memoryUsage);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7434b78dcc1c9a463acab17901c4d439", "score": "0.6616465", "text": "public int getMaxBuffCount()\r\n\t{\r\n\t\treturn Config.ALT_BUFFS_MAX_AMOUNT + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));\r\n\t}", "title": "" }, { "docid": "e84630b11c90e9684f9b308ffc7a5efe", "score": "0.66155505", "text": "public int getMaxSize() {\n return max.size();\n }", "title": "" }, { "docid": "517682f04c90360e8714e53b48c1dbbb", "score": "0.65929323", "text": "public int getSampleLimit() {\r\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "622ce849003d28c81686c27f89505839", "score": "0.6410389", "text": "public int getMaxSize() {\n\t\treturn this.maxSize;\n\t}", "title": "" }, { "docid": "7bcee519ac4c1a0daf445b0313030e00", "score": "0.6400757", "text": "public short getMaxNoOfDataBlocksRead() {\n\t\treturn maxNoOfDataBlocksRead;\n\t}", "title": "" }, { "docid": "5467b6e4a925ba9d40cdf9601941b639", "score": "0.6390728", "text": "public long sizeMax() { return sizeMax; }", "title": "" }, { "docid": "37be09499030737ffca276dd5e851aeb", "score": "0.6384847", "text": "public int getMaxSize ()\r\n\t{\r\n\t\treturn maxSize;\r\n\t}", "title": "" }, { "docid": "5db556e967d027de6b408c18d94f4d3b", "score": "0.63743377", "text": "public synchronized final int getMaxSize()\n {\n return maxSize;\n }", "title": "" }, { "docid": "181e571fa77c5d366774557f039dd92b", "score": "0.6303342", "text": "public int getMaxSize() {\n return this.maxSize;\n }", "title": "" }, { "docid": "50c60b2e587854484075f3d505adaf39", "score": "0.63024", "text": "public Long getMaxSize() {\n return this.MaxSize;\n }", "title": "" }, { "docid": "b16ef8ad3d60b8fe2a58905dd66ddadf", "score": "0.6293085", "text": "public long getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "a9921cac0bc0a74ff363511cf4fba192", "score": "0.6267074", "text": "public int getMaxSize() {\n\t\treturn maxSize;\n\t}", "title": "" }, { "docid": "9657da247d4ec5863e72329c1cf6da7d", "score": "0.6254795", "text": "public int getSampleSize() {\t\n\t\treturn data.length;\t\n\t}", "title": "" }, { "docid": "fec99782741216da19161f20d6fc718b", "score": "0.623768", "text": "public long getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "e0e0adf362ce266aae4333c1840312bd", "score": "0.6226366", "text": "@Override\r\n\tpublic Dimension getMaximumSize() {\n\t\treturn d;\r\n\t}", "title": "" }, { "docid": "8308e547a925a4b63c010e252f87ec21", "score": "0.6215109", "text": "public int getMaxNumberOfElementsPerBlock()\n\t{\n\t\treturn maxNumberOfElementsPerBlock;\n\t}", "title": "" }, { "docid": "22f8dabb6899c3534b1cd30a8f2b6d93", "score": "0.6212824", "text": "public int getMaxSize() {\r\n return m_maxSize;\r\n }", "title": "" }, { "docid": "b36981cdda123408df17d61d53ee7995", "score": "0.6207475", "text": "public double getMaxCount() {\n\t\tif (maxCountBin < 0)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn hist[maxCountBin];\n//\t\tdouble max = 0;\n//\t\tfor(int i=0; i<hist.length; i++) {\n//\t\t\tif (hist[i] > max) {\n//\t\t\t\tmax = hist[i];\n//\t\t\t}\n//\t\t}\n//\t\treturn max;\n\t}", "title": "" }, { "docid": "42f7259a5b22a921bd0256ea3764a697", "score": "0.6189573", "text": "public int getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "5de383739c2dac1a45ac4617c5a8c898", "score": "0.6184288", "text": "private static int resolveMaxSize(GL gl) {\n\t\tint[] result = new int[1];\n\t\tgl.glGetIntegerv(GL.GL_MAX_TEXTURE_SIZE, result, 0);\n\t\tint maxTexSize = result[0];\n\t\treturn Math.min(maxTexSize, MAX_SAMPLES_PER_TEXTURE);\n\t}", "title": "" }, { "docid": "45a1a2cd0fb3f2b982c64d58adabd5ef", "score": "0.61763674", "text": "public double getMaxScale() {\n return maxScale;\n }", "title": "" }, { "docid": "5abf7e385c50a827325bbfdafe7cbed1", "score": "0.6150369", "text": "public int maxUsage()\r\n/* 160: */ {\r\n/* 161:186 */ return Math.min(this.maxUsage, 100);\r\n/* 162: */ }", "title": "" }, { "docid": "45e5d479a6746e9370668c7df2c23d63", "score": "0.61412704", "text": "public double getMaxStored() {\n\t\treturn holder.getMaxStoredPower();\n\t}", "title": "" }, { "docid": "210132d3856ffc1d742acd998c3e284b", "score": "0.6140753", "text": "public int getMaximumLogSize()\n {\n return maximumLogSize;\n }", "title": "" }, { "docid": "bd12c8f06fdd903b624839b37dfbd3f3", "score": "0.6137503", "text": "public double maxLength()\r\n\t{\r\n\t\treturn _dblMaxLength;\r\n\t}", "title": "" }, { "docid": "c7776dcc9df3a78ec9840981d9983bb6", "score": "0.61373156", "text": "public int getMaxNumberOfDataBlocks()\n\t{\n\t\treturn maxNumberOfDataBlocks;\n\t}", "title": "" }, { "docid": "7df67ea0ee385b3d14dc8f7e59029071", "score": "0.608909", "text": "public double getMaxScale() {\r\n return this.maxScale;\r\n }", "title": "" }, { "docid": "97ae941c4d2ff2579498c300242bd371", "score": "0.60643697", "text": "public int size() {\n // Samples stored in full chunks\n int samples = (values.size() - 1) * ALLOC_SIZE;\n\n // Samples stored in the last not full chunk\n samples += nextIndex;\n return samples;\n }", "title": "" }, { "docid": "9411fab2701ae3fa51d4a3a95958a9d8", "score": "0.60343814", "text": "private int calcMaxSize(int capacity)\r\n/* 363: */ {\r\n/* 364:442 */ int upperBound = capacity - 1;\r\n/* 365:443 */ return Math.min(upperBound, (int)(capacity * this.loadFactor));\r\n/* 366: */ }", "title": "" }, { "docid": "184c4948d5e3acb04efcff6b9b9bac9c", "score": "0.60313505", "text": "public double getMaxWeight()\n {\n return maxWeight;\n }", "title": "" }, { "docid": "2cbfcda76f7281f8e1ed9efc5cde1a66", "score": "0.60289395", "text": "private double getSize(List<Param> fSize) {\n if (fSize.isEmpty()) {\n return 1; // No scaling\n }\n if (!fSize.get(0).hasModifiers()) {\n return 1; // range is [0,1] so max is one\n }\n\n // we have a defined maximum size, so return it\n Double[] sizes = ScaleBuilder.getSizes(fSize.get(0).modifiers()[0].asList());\n return sizes[sizes.length - 1];\n }", "title": "" }, { "docid": "8352dba6cf57afee750074c04c3bb353", "score": "0.60275984", "text": "public int getMaxWeight() {\n\t\treturn maxWeight;\n\t}", "title": "" }, { "docid": "e01eee68a9fbbd093eea488fdeadadbc", "score": "0.60227937", "text": "public double getMaxValueFromThisSequence() {\n return max;\n }", "title": "" }, { "docid": "0fa87f0086d666f8b9489e0cf63b3bab", "score": "0.6000642", "text": "public int getMaxSize() {\r\n\t\treturn _heap.length-1;\r\n\t}", "title": "" }, { "docid": "57938031677aab60bcf0310b05930153", "score": "0.59858954", "text": "public int getBytePerSample() {\r\n return bytesRequiredPerSample;\r\n }", "title": "" }, { "docid": "ab1962739661985b97b178e1941116e9", "score": "0.5985407", "text": "public static int getMaxFileSize() {\n final IScopeContext[] lookupOrder = new IScopeContext[] { new InstanceScope() };\n IPreferencesService prefService = Platform.getPreferencesService();\n prefService.setDefaultLookupOrder(TracingConstants.BUNDLE_ID, null, new String[] { InstanceScope.SCOPE });\n return prefService.getInt(TracingConstants.BUNDLE_ID, TracingConstants.PREFERENCE_MAX_FILE_SIZE_IDENTIFIER, 1000, lookupOrder);\n }", "title": "" }, { "docid": "7c07046bdf6fd22e208172e9a59c392a", "score": "0.5984776", "text": "public double getStepSize() {\n \treturn dblMaxStep;\n }", "title": "" }, { "docid": "96792a113c250ff1ace54c9012c39304", "score": "0.5983937", "text": "public double getMaxInput() {\n\t\treturn Math.min(holder.getMaxInput(side), holder.getMaxStoredPower() - holder.getStored(side));\n\t}", "title": "" }, { "docid": "4ebd78552638a7c709e2b34c2b34190f", "score": "0.59812146", "text": "public int getMaxMemMBOptimalPerf() {\r\n return maxMemMBOptimalPerf;\r\n }", "title": "" }, { "docid": "472e32004caafa4431fdc7b54f3a4392", "score": "0.5970496", "text": "public Integer getMaxPeakCount() {\r\n if (maxPeakCount == null) {\r\n maxPeakCount = 100;\r\n }\r\n return maxPeakCount;\r\n }", "title": "" }, { "docid": "6ec9d560f7f550c1adebd3869ac82f24", "score": "0.5954654", "text": "public int getNmax() {\n return nMax;\n }", "title": "" }, { "docid": "6d93b6121f6bef1f394cc60ce259b8d3", "score": "0.59525496", "text": "public double getMoreThanMax() {\n\t\treturn moreThanMax;\n\t}", "title": "" }, { "docid": "7387ca0476e110af8e532298fedbf148", "score": "0.59497374", "text": "public long getMax() {\n return stats.getLong(SEQUENCE_RANGE_MAX);\n }", "title": "" }, { "docid": "53c629d92c7b48472c3eb1c41d414771", "score": "0.5947376", "text": "public int getNumberOfSamples()\r\n\t{\r\n\t\treturn this.samples.length / (this.format.getNBits() / 8);\r\n\t}", "title": "" }, { "docid": "9d6c22abad5458c0215be150adb445f8", "score": "0.59391934", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:40:29.071 -0500\", hash_original_method = \"B58723AC8A06330DB518FE874415CDC1\", hash_generated_method = \"AA49D321012562E9189BD4F7C2309138\")\n @DSVerified\n @DSBan(DSCat.PRIVATE_METHOD)\n static private final int native_get_min_buff_size(\n int sampleRateInHz, int channelCount, int audioFormat){\n Object obj = new Object();\n obj.addTaint(sampleRateInHz);\n obj.addTaint(channelCount);\n obj.addTaint(audioFormat);\n \n \treturn obj.getTaintInt();\n }", "title": "" }, { "docid": "a3e6540dd39d98a87766bff82825c233", "score": "0.5936961", "text": "double getPostingListMaxSize() throws SSEExeption{\n int maxValue = Integer.MIN_VALUE;\n try { \n for(int smallId : postingLists.getIds()){\n maxValue = Math.max(maxValue, postingLists.getListSize(smallId));\n }\n } catch (Exception ex) {\n throw new SSEExeption(ex);\n }\n return maxValue;\n }", "title": "" }, { "docid": "eaed5f0a58c87c6f4bebac6d3879a640", "score": "0.59227", "text": "@Override\n public long estimateSize() {\n return Long.MAX_VALUE;\n }", "title": "" }, { "docid": "daf63e4887a89b9dd2b884ee21cb541d", "score": "0.59158736", "text": "int getMaxEnergyStored();", "title": "" }, { "docid": "1e0872729f14aee54e92c64448e41a79", "score": "0.59008014", "text": "public int getMaxHungCount(){\n return localMaxHungCount;\n }", "title": "" }, { "docid": "9f7f65b6c003c82b9ee7781cc3958c52", "score": "0.5898082", "text": "public int getShuffleMax() {\n\t\treturn MAXIMUM_SHUFFLES;\n\t}", "title": "" }, { "docid": "4f9bb9b3bae9f948c1f26f12872b4cde", "score": "0.5882161", "text": "public int getMaxScaleCount() {\n return this.maxScaleCount;\n }", "title": "" }, { "docid": "1126d2738545ddef5887d16e37512b75", "score": "0.58750546", "text": "public int getMaximalLength() {\n return maximalLength;\n }", "title": "" }, { "docid": "630b74549b94a6c43f83648a19b3e9d4", "score": "0.5866107", "text": "public int getMaxLen();", "title": "" }, { "docid": "a1e6aff5313047b64e560371ffb1d011", "score": "0.58619606", "text": "public int getUpperBound() {\n return Math.min(0xFFFE, (int) ((Math.pow(2, countLog)) - 1));\n }", "title": "" }, { "docid": "136c70161d1ee89ac88f3fc678f09ffa", "score": "0.58418083", "text": "public UTXOPool getMaxHeightUTXOPool() {\n // IMPLEMENT THIS\n\t return maxHeightBlock.uPool;\n }", "title": "" }, { "docid": "7a038e56e6a05f62f7f5e356efed0089", "score": "0.58397496", "text": "public Double getSamplesReadPerSecondMax() {\n return samplesReadPerSecondMax;\n }", "title": "" }, { "docid": "f473ddd41b4affe10218a23239877ac3", "score": "0.58375126", "text": "private static int calculateMaxCapacity(int minUsage, int chunkSize)\r\n/* 32: */ {\r\n/* 33: 57 */ minUsage = minUsage0(minUsage);\r\n/* 34: 59 */ if (minUsage == 100) {\r\n/* 35: 61 */ return 0;\r\n/* 36: */ }\r\n/* 37: 69 */ return (int)(chunkSize * (100L - minUsage) / 100L);\r\n/* 38: */ }", "title": "" }, { "docid": "7c5cee43d38b8bfb240c2de34927e0b0", "score": "0.58298403", "text": "public String getMaxHeight();", "title": "" }, { "docid": "f413d0a40b4a1e3bb44e52b8e312ca15", "score": "0.5826338", "text": "public int lengthOfLongestWord() \n \t{ \n \t int largest = 0;\n \tfor(int i = 0; i < this.size(); i++){\n \t if(this.get(i).length() >= largest){\n \t largest = this.get(i).length();\n \t }\n \t}\n \treturn largest;\n \t}", "title": "" }, { "docid": "0bf3748b326153bf89c166f78b551676", "score": "0.5825953", "text": "private static int maxSegmentSize() {\n final long remainder = (long) Integer.MAX_VALUE % ByteUtils.PAGE_SIZE;\n long maxSegmentSize = Integer.MAX_VALUE - remainder;\n return (int)maxSegmentSize;\n }", "title": "" }, { "docid": "0ffa3dc9fabda1f61ae420588c3846f3", "score": "0.58111113", "text": "public int getMaxfrequency() {\n return maxfrequency;\n }", "title": "" }, { "docid": "0e9ab5c44d11d57d5eccb449a5bdfb16", "score": "0.58035463", "text": "public double getMax() {\n return max.max();\n }", "title": "" }, { "docid": "a510b70dff1bb505d8cd5a1ac2a5791f", "score": "0.57958484", "text": "public int getScaleInMax() {\n\t\treturn scaleInMax;\n\t}", "title": "" }, { "docid": "602852739add201b5ce4df7703a7e28e", "score": "0.57938963", "text": "public double getMaxGradientMagnitude() {\r\n if (maxmag >= 0) {\r\n return maxmag;\r\n } else {\r\n double magnitude = data[0].mag;\r\n for (int i=0; i<data.length; i++) {\r\n magnitude = data[i].mag > magnitude ? data[i].mag : magnitude;\r\n } \r\n maxmag = magnitude;\r\n return magnitude;\r\n }\r\n }", "title": "" }, { "docid": "846db2f7558feb00689f1b043791025f", "score": "0.5792509", "text": "public int getMaximumVectorCount() {\n return maximumVectorCount;\n }", "title": "" }, { "docid": "c0bf0b371cc1fe927d0a6a4206068dcb", "score": "0.57900417", "text": "public static int maxSizeForInput(int inputSize) {\n if (inputSize < 256) {\n return inputSize + 16;\n }\n // Let's estimate growth of at most 1/16 (~= 6%)\n return inputSize + (inputSize >> 4);\n }", "title": "" }, { "docid": "48049da9a5a5a7bcb8d1aa761918e9eb", "score": "0.5788946", "text": "int getMaxValueOfData() {\r\n return biggestValueInArray;\r\n }", "title": "" }, { "docid": "dd96eae8f441463cfbb2248464128624", "score": "0.5784216", "text": "public double peakMemoryGiB() {\n return this.peakMemoryGiB;\n }", "title": "" }, { "docid": "4b815c977b536bba1c484dbec5c070c5", "score": "0.57829404", "text": "public abstract int maxCapacity();", "title": "" }, { "docid": "3b4aec199add7335c915ad809000ca29", "score": "0.5782616", "text": "public static int afficheMax() {\n\t\tint indexArray = 0;\n\t\tint max = array[0];\n\t\twhile (indexArray < array.length) {\n\t\t\tif (array[indexArray] > max) {\n\t\t\t\tmax = array[indexArray];\n\t\t\t}\n\t\t\tindexArray++;\n\t\t}\n\t\treturn max;\n\t}", "title": "" }, { "docid": "b944cbc0bc8ca525a402e4d2deaa433f", "score": "0.57790226", "text": "public int getMaxGeneSetSize() {\r\n final List genesets = fGeneSets;\r\n int max = 0;\r\n for (int i = 0; i < genesets.size(); i++) {\r\n GeneSet gset = (GeneSet) genesets.get(i);\r\n if (max < gset.getNumMembers()) {\r\n max = gset.getNumMembers();\r\n }\r\n }\r\n \r\n return max;\r\n }", "title": "" }, { "docid": "75834ec74f2d1566b6efc8f73fad03c1", "score": "0.577224", "text": "public int calculateMaxDomainSize(int inputMaxDomainValue, int inputCount)\r\n\t{\r\n\t\treturn inputCount * inputMaxDomainValue;\r\n\t}", "title": "" }, { "docid": "e439bc5df8b3826bc225b4cf82b71f02", "score": "0.5772031", "text": "public double getMaximumWeightLb() {\n return mMaximumWeightLb;\n }", "title": "" }, { "docid": "12800920dc706a56991bd1ea77d64519", "score": "0.5771988", "text": "public int getMaxVirtualMemory()\r\n\t{\r\n\t\tif (this.virtualMemory.isEmpty())\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn Collections.max(this.virtualMemory);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "78fb51af38c69870d038f73aa5b5d52e", "score": "0.57698286", "text": "protected static int getMax(BlockStateInteger state) {\n/* 381 */ return state.max;\n/* */ }", "title": "" }, { "docid": "70f4740789f3cf087e38f8a2459049e0", "score": "0.5769445", "text": "public long getSize() {\n\treturn getBytes().limit();\n }", "title": "" }, { "docid": "735f86f86366566e4e7767b8e8e66b22", "score": "0.57686514", "text": "@DISPID(1611005956) //= 0x60060004. The runtime will prefer the VTID if present\n @VTID(31)\n double lengthMaxTolerance();", "title": "" }, { "docid": "9dd80a5ea30558db2d8ed22f3567c12e", "score": "0.5768144", "text": "public int getMaxFrameSize() {\n return maxFrameSize;\n }", "title": "" }, { "docid": "cfa8c731b2cc9348d985238e273f00d3", "score": "0.5763633", "text": "public int getNumSamplesOnMemory() {\n return numSamplesOnMemory;\n }", "title": "" }, { "docid": "844b07a8e40f58f2ea5b8af3e43b569c", "score": "0.5755671", "text": "public int getMaxHeight() {\t \n\t\treturn maxHeight;\n\t}", "title": "" }, { "docid": "490da25079de2b96f48350ba700a66f2", "score": "0.5750806", "text": "public Dimension getMaximumSize() {\n Dimension pref = getPreferredSize();\n return new Dimension(Integer.MAX_VALUE,\n pref.height);\n }", "title": "" }, { "docid": "fe1ebf6883afe22c44ab8c5be7636c36", "score": "0.5745626", "text": "public long getMax() {\n return max;\n }", "title": "" }, { "docid": "bdc3b22c62be1e174eb5a9596b543ce3", "score": "0.5740655", "text": "public double getMax()\n {\n return max;\n }", "title": "" }, { "docid": "3b7357326efd368af6add3ba2d5760f2", "score": "0.5739089", "text": "public int getMaxHeight() {\n return mMaxHeight;\n }", "title": "" }, { "docid": "174d43651e9dce32a58ab567d0c13fc5", "score": "0.57347226", "text": "public double getMax() {\n return max;\n }", "title": "" }, { "docid": "217d2ea43686d38d998352c0fbd31d01", "score": "0.573259", "text": "public final int getMaximumLoad() {\n\t\treturn rLoad + cLoad;\n\t}", "title": "" }, { "docid": "435348b02da22fb96bf1a67b3a0dc05d", "score": "0.57325035", "text": "public Long getMaxItens() {\r\n\t\treturn maxItens;\r\n\t}", "title": "" }, { "docid": "afafa3b7b5c7d383de5d543a4cab1fd7", "score": "0.5731607", "text": "public double getMax() {\n return max;\n }", "title": "" }, { "docid": "afafa3b7b5c7d383de5d543a4cab1fd7", "score": "0.5731607", "text": "public double getMax() {\n return max;\n }", "title": "" }, { "docid": "a0a86a5134a228b7406008fbafcc6005", "score": "0.57315546", "text": "public int getSampleSize(int band) {\n return bitSizes[band];\n }", "title": "" }, { "docid": "2e7eb0e93846d18c7e33303394c70d78", "score": "0.5725749", "text": "public int nSamples(){\n return _nSamples;\n }", "title": "" }, { "docid": "1b98a493cb3bb9aee61addeaeb4d3157", "score": "0.5724196", "text": "public long getMaxObjectSize() {\n\t\treturn maxObjectSize;\n\t}", "title": "" }, { "docid": "8f9be01d5a700f0647750e7cba391281", "score": "0.5721123", "text": "public int getMaxCount()\n {\n int maxMaxCount = 0;\n for (ChartLayerModel layer : myLayers)\n {\n int maxCount = layer.getMaxCount();\n if (maxCount > maxMaxCount)\n {\n maxMaxCount = maxCount;\n }\n }\n return maxMaxCount;\n }", "title": "" }, { "docid": "5d815259a2516d5aaa1ea897342f704b", "score": "0.5716909", "text": "protected double getMaxDist()\n\t{\n\t\tdouble max_dist = 0;\n\t\tfor (Strategy s : strategies)\n\t\t{\n\t\t\tif (Math.abs(s.getMaxDist()) > Math.abs(max_dist))\n\t\t\t{\n\t\t\t\tmax_dist = s.getMaxDist();\n\t\t\t}\n\t\t}\n\t\treturn max_dist;\n\t}", "title": "" }, { "docid": "1277db47d125ad46b381075259b9ca29", "score": "0.57070816", "text": "private float getRandomSize() {\n\t\treturn Math.abs(random.nextFloat() - 0.6f);\n\t}", "title": "" }, { "docid": "64237c3c1a7477e9d8da95a9eb895714", "score": "0.5700054", "text": "public double getMax() {\n return max;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "918745a3301c4490a451a339208d5b1a", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tdemo1();\n\t\tprint(1);\n\t\t\n\t\tdemo2();\n\t\tprint(2);\n\t\t\n\t\tdemo3();\n\t\tprint(3);\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\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": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\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": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\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": "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": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\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": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\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": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
4adc1a9d084dc66bece39cd2a6ab39d9
This method was generated by MyBatis Generator. This method sets the value of the database column CULSITE.M_CATEGORY_GOODS_RULE.CREATE_USER
[ { "docid": "dc73d2ae278414d316f2e81f6ec8ca9a", "score": "0.60554236", "text": "public void setCreateUser(String createUser) {\r\n this.createUser = createUser == null ? null : createUser.trim();\r\n }", "title": "" } ]
[ { "docid": "5205ba84d386ce6d73bd3ac148ea49ef", "score": "0.66062915", "text": "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "title": "" }, { "docid": "2a554f883cba493fe89c08b5f0e3baf2", "score": "0.6597926", "text": "public void setCreateUser(String value) {\n set(1, value);\n }", "title": "" }, { "docid": "8ab93434aad8646e740de022cdf88c51", "score": "0.6501815", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "title": "" }, { "docid": "8ab93434aad8646e740de022cdf88c51", "score": "0.6501815", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "title": "" }, { "docid": "2d0a7b991d9b028889887be4c29de3b6", "score": "0.6462678", "text": "public void setCreateUser(String createUser) {\n\t\tthis.createUser = createUser;\n\t}", "title": "" }, { "docid": "ba8148dea932d0326b49abf47c2e9221", "score": "0.64123327", "text": "public void setCreateuser(String createuser) {\r\n this.createuser = createuser;\r\n }", "title": "" }, { "docid": "91cb6090abf0370e6178184ac2e0bebb", "score": "0.62498295", "text": "public void setCreateuser(Integer createuser) {\n this.createuser = createuser;\n }", "title": "" }, { "docid": "b7fbe7e062c434f3cac6388a7d07e2c6", "score": "0.62395024", "text": "public void setCreateUserId(User createUserId) {\n this.createUserId = createUserId;\n }", "title": "" }, { "docid": "e254a5b4b59c313f8684450ea332a1a6", "score": "0.6115065", "text": "public void setCreateUserId(Long createUserId) {\r\n this.createUserId = createUserId;\r\n }", "title": "" }, { "docid": "9005b4a4380501a4b7353b8e8e7bc5e7", "score": "0.6014026", "text": "public void setCreateUserId(Long createUserId) {\n this.createUserId = createUserId;\n }", "title": "" }, { "docid": "9005b4a4380501a4b7353b8e8e7bc5e7", "score": "0.6014026", "text": "public void setCreateUserId(Long createUserId) {\n this.createUserId = createUserId;\n }", "title": "" }, { "docid": "9005b4a4380501a4b7353b8e8e7bc5e7", "score": "0.6014026", "text": "public void setCreateUserId(Long createUserId) {\n this.createUserId = createUserId;\n }", "title": "" }, { "docid": "9005b4a4380501a4b7353b8e8e7bc5e7", "score": "0.6014026", "text": "public void setCreateUserId(Long createUserId) {\n this.createUserId = createUserId;\n }", "title": "" }, { "docid": "e0cd6bf451a69fc7b7397a64392343a0", "score": "0.5997529", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "title": "" }, { "docid": "e0cd6bf451a69fc7b7397a64392343a0", "score": "0.5997529", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "title": "" }, { "docid": "e0cd6bf451a69fc7b7397a64392343a0", "score": "0.5997529", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "title": "" }, { "docid": "e0cd6bf451a69fc7b7397a64392343a0", "score": "0.5997529", "text": "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "title": "" }, { "docid": "dbbcc4d5839b0033b343881bcbd6f5d8", "score": "0.5938573", "text": "public void setCreatUserId(String value) {\n\t\tsetValue(3, value);\n\t}", "title": "" }, { "docid": "fc2f9a5d449748c1cf301570c2f8f6ba", "score": "0.5878242", "text": "public void setCreateUserName(String createUserName) {\n this.createUserName = createUserName;\n }", "title": "" }, { "docid": "1770838a9da5d09af04c58ef5ef7ecf9", "score": "0.5749889", "text": "public void setCreateUserId(String createUserId) {\n this.createUserId = createUserId == null ? null : createUserId.trim();\n }", "title": "" }, { "docid": "7931cab650df5f8197d54922497ece0c", "score": "0.56840193", "text": "public String getCreateUser() {\n\t\treturn createUser;\n\t}", "title": "" }, { "docid": "5cfecb1c4cefa00be61d0262398e9580", "score": "0.5665413", "text": "@Override\n\tpublic int createUser(User user) throws BusinessException {\n\t\tint c = 0;\n\t\t\n\t\t c = userDAO.createUser(user);\n\t\t\n\t\treturn c;\n\t}", "title": "" }, { "docid": "1b00cb81e6cdc7dcabf2c1504a132799", "score": "0.5615735", "text": "@Override\n\t\tpublic void createUser(UserDTO user) throws DALException {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b488f7d3822923a3b297f74c18c82086", "score": "0.5612616", "text": "@Override\r\n public void addUser(User user) {\r\n user.setPassword(Utils.encrypt(user.getPassword()));\r\n\r\n /** --- CREATE DEFAULT CATEGORIES FOR USER --- */\r\n OracleDatabase oracleDb = OracleDatabase.getInstance();\r\n oracleDb.createCategoriesForUser(user, oracleDb.getDefaultCategories());\r\n\r\n sessionFactory.getCurrentSession().saveOrUpdate(user);\r\n }", "title": "" }, { "docid": "2c0684a8ddc2a5fea6d21b335e2891ed", "score": "0.55964565", "text": "@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY)\n @JoinColumn(name = \"CREATE_USER_ID\", referencedColumnName = \"id\", nullable = false )\n public User getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "44553dba2f8c28456745b1082532060c", "score": "0.55779254", "text": "public String getCreateUser() {\r\n return createUser;\r\n }", "title": "" }, { "docid": "3958f7c10d639dba6692b9ec84cf93c8", "score": "0.55751294", "text": "public void setCreateUser(java.lang.String param) {\n this.localCreateUserTracker = param != null;\n\n this.localCreateUser = param;\n\n }", "title": "" }, { "docid": "a96aa0a1adbde1f9cb18d6946c9d5217", "score": "0.552", "text": "public String getCreateuser() {\r\n return createuser;\r\n }", "title": "" }, { "docid": "30a23b471ebabf33f4ad314c6fd11cb2", "score": "0.5496543", "text": "public void setCreateuserid (java.lang.String createuserid) {\n\t\tthis.createuserid = createuserid;\n\t}", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "d3871e809f8c872e16685173c97c37c2", "score": "0.54878294", "text": "public String getCreateUser() {\n return createUser;\n }", "title": "" }, { "docid": "5e364af14b5f571cd58d1bd7b01eaff0", "score": "0.54567796", "text": "public void setCreateUserFlow(String createUserFlow) {\r\n\t\tthis.createUserFlow = createUserFlow;\r\n\t}", "title": "" }, { "docid": "8afcfe2d705361f4606b26f53194b10a", "score": "0.5452158", "text": "public void setCreatedUserId(Integer value) {\r\n this.createdUserId = value;\r\n }", "title": "" }, { "docid": "e49eb91533cdbc17e28765f0b63eeb5b", "score": "0.54259825", "text": "public void setCreateUserName(String createUserName) {\n this.createUserName = createUserName == null ? null : createUserName.trim();\n }", "title": "" }, { "docid": "e49eb91533cdbc17e28765f0b63eeb5b", "score": "0.54259825", "text": "public void setCreateUserName(String createUserName) {\n this.createUserName = createUserName == null ? null : createUserName.trim();\n }", "title": "" }, { "docid": "ab28addfa93c7fa6a1f1901e2d3b8f7e", "score": "0.5420933", "text": "public void setCreatedUser(long createdUser);", "title": "" }, { "docid": "f5d0422f68365ac03adf5f8bf8c815ce", "score": "0.54003084", "text": "public void setCreateUserFlow(String createUserFlow) {\r\n this.createUserFlow = createUserFlow;\r\n }", "title": "" }, { "docid": "f5d0422f68365ac03adf5f8bf8c815ce", "score": "0.54003084", "text": "public void setCreateUserFlow(String createUserFlow) {\r\n this.createUserFlow = createUserFlow;\r\n }", "title": "" }, { "docid": "636e833a1f3f6cf1f34acdc6e59c1861", "score": "0.5367643", "text": "@Override\r\n\tpublic IUser CreateUser() {\n\t\treturn new OracleUser();\r\n\t}", "title": "" }, { "docid": "782c29c771c2165cef021ac1960d6f15", "score": "0.53586495", "text": "public Integer getCreateuser() {\n return createuser;\n }", "title": "" }, { "docid": "b8985071d56df7716bcb0808ed28acde", "score": "0.53474057", "text": "public String getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "bffbbcc4604951d1f9d4fe91c28ca00f", "score": "0.53130955", "text": "public Long getCreateUserId() {\r\n return createUserId;\r\n }", "title": "" }, { "docid": "585f951d9bd0d6f96d02b537d5195cc7", "score": "0.53122336", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "title": "" }, { "docid": "e4975f84d9e2ad6975417f934e46b27d", "score": "0.5297752", "text": "private void setDefUser() throws Throwable {\n String def_pass_raw = \"root\";\n md5 md5_pass = new md5();\n String def_pass = md5_pass.encrypt(def_pass_raw);\n \n //Insert into DB\n pst = con.prepareStatement(\"INSERT INTO users(\" +\n \t\t\"`first_name`, `last_name`, `middle_initial`, \" +\n \t\t\"`username`, `password`, `sex`, `isAdmin`) \" +\n \t\t\"VALUES(\" +\n \t\t\"'fn', 'ln', 'a', 'admin', '\"+def_pass+\"', 'male', 'true');\");\n pst.executeUpdate();\n \tthis.destruct();\n }", "title": "" }, { "docid": "1e3d1e826b58c4c8273f421e33e33c4f", "score": "0.52646554", "text": "public Long getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "1e3d1e826b58c4c8273f421e33e33c4f", "score": "0.52646554", "text": "public Long getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "1e3d1e826b58c4c8273f421e33e33c4f", "score": "0.52646554", "text": "public Long getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "1e3d1e826b58c4c8273f421e33e33c4f", "score": "0.52646554", "text": "public Long getCreateUserId() {\n return createUserId;\n }", "title": "" }, { "docid": "c4d683b2ef9a555dcd59909537694a14", "score": "0.5256538", "text": "@Override\n\tpublic void createNewUser(Map newUser) {\n\n\t\ttry (Connection conn = ConnectionFactory.getInstance().getConnection();) {\n\n\t\t\t// Construct & execute the corresponding SELECT statement\n\t\t\tString sql = \"INSERT INTO EMPLOYEES(Username, Pass, First_Name, Last_Name , Email, User_Role_ID)\"\n\t\t\t\t\t+ \" VALUES (?, ?, ?, ?, ?, ? )\";\n\n\t\t\t// prepare the SQL call\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\n\t\t\t// set the values\n\t\t\tpstmt.setString(1, newUser.get(\"signUpUsername\").toString());\n\t\t\tpstmt.setString(2, newUser.get(\"signUpPassword\").toString());\n\t\t\tpstmt.setString(3, newUser.get(\"firstname\").toString());\n\t\t\tpstmt.setString(4, newUser.get(\"lastname\").toString());\n\t\t\tpstmt.setString(5, newUser.get(\"email\").toString());\n\t\t\tpstmt.setString(6, \"1\"); // Hard Coded to regular Employee\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t} catch (SQLException sql) {\n\t\t\tlog.error(\"createEmployee function\");\n\t\t\tsql.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "19456d4fc34b5b682f615b20d2fcf9f6", "score": "0.5241191", "text": "public void setCreaterUser(String createrUser) {\n this.createrUser = createrUser;\n }", "title": "" }, { "docid": "3ca2aec52ef163b0e64d74e092c6363a", "score": "0.5238706", "text": "@Override\n\tpublic void createUser(User user) {\n\t\tSqlSession sqlSession = sqlSessionFactory.openSession();\n\t\ttry {\n UserMapper userMapper = sqlSession.getMapper(UserMapper.class);\n userMapper.insertUser(user);\n sqlSession.commit();// 这里一定要提交,不然数据进不去数据库中\n } finally {\n sqlSession.close();\n }\n\t}", "title": "" }, { "docid": "33119ae37047a126c48babfbe55a9886", "score": "0.5220144", "text": "public void setCreateUserListener(final CreateUserListener createUserListener) {\n\t\tthis.createUserListener = createUserListener;\n\t}", "title": "" }, { "docid": "39c9227587ecf5d38ca848910136388b", "score": "0.52141726", "text": "void createUser(CaseCreateRequest request) {\n ModelCase modelCase = request.get_case();\n RequestInfo requestInfo = request.getRequestInfo();\n\n\n User user = getUser(modelCase);\n // UserDetailResponse userDetailResponse = userExists(owner,requestInfo);\n StringBuilder uri = new StringBuilder(config.getUserHost())\n .append(config.getUserContextPath())\n .append(config.getUserCreateEndpoint());\n\n UserDetailResponse userDetailResponse = userCall(new CreateUserRequest(requestInfo, user), uri);\n if (userDetailResponse.getUser().get(0).getUuid() == null) {\n throw new CustomException(\"INVALID USER RESPONSE\", \"The user created has uuid as null\");\n }\n\n modelCase.setUserUuid(userDetailResponse.getUser().get(0).getUuid());\n }", "title": "" }, { "docid": "3dd9b42024d688cf935570234cf3e4c7", "score": "0.52125895", "text": "public String createUsers(Model model){\n List<CommissionCategoryInfo> commissionCategoryInfoList = commissionCategoryDao\n .selectAllByDistributor(AuthRentUserInfo.DISTRIBUTOR_LDE);\n for(CommissionCategoryInfo commissionCategoryInfo: commissionCategoryInfoList){\n commissionCategoryInfo.setFirstPay();\n commissionCategoryInfo.setPrice();\n }\n model.addAttribute(\"commissionCategoryInfoList\", commissionCategoryInfoList);\n return \"sales/create_user\";\n }", "title": "" }, { "docid": "3471647edd8c8accfbba7656c3489d43", "score": "0.51859534", "text": "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_extUser.setCreateDate(createDate);\n\t}", "title": "" }, { "docid": "ef164bc0311cb0aadf06e22c65c1c67d", "score": "0.51686144", "text": "public User handleCreateUser(HttpServletRequest request, String schema) {\r\n\r\n\t\tUser user = new User();\r\n\t\t\r\n\t\tString command = request.getParameter(\"command\"); //$NON-NLS-1$\r\n\t\t\r\n\t\t/////////////////////////////////////////////////\r\n\t\t// This loads the name of the user (student) into the username fields if the \r\n\t\t// facilitator has selected to create this user.\r\n\t\tString create_for_role = (String) request.getParameter(\"create_for_role\");\r\n\t\tString ua_id = (String) request.getParameter(\"ua_id\");\r\n\t\t\r\n\t\tif ((create_for_role != null) && (create_for_role.equalsIgnoreCase(\"true\"))){\r\n\t\t\tUserAssignment ua = UserAssignment.getById(schema, new Long(ua_id));\r\n\t\t\tuser.setUser_name(ua.getUsername());\r\n\t\t\tuser.setBu_username(ua.getUsername());\r\n\t\t\treturn user;\r\n\t\t}\r\n\t\t//////////////////////////////////////////////////\r\n\r\n\t\tif (command != null) {\r\n\r\n\t\t\tgetBaseUserParamters(request);\r\n\r\n\t\t\t// /////////////////////////////////\r\n\t\t\tif (command.equalsIgnoreCase(\"Save\")) { //$NON-NLS-1$\r\n\r\n\t\t\t\tif (!hasEnoughInfoToCreateUser(false)) {\r\n\t\t\t\t\treturn user;\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tgetPermissionsParameters(request);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tuser = new User(schema, this._email, this._password, \r\n\t\t\t\t\t\t\t\tthis._first_name, this._last_name, this._middle_name, \r\n\t\t\t\t\t\t\t\tthis._full_name, this._makeAdmin, this._makeAuthor, this._makeInstructor);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString preferred_language = request.getParameter(\"preferred_language\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tBaseUser bu = BaseUser.getByUserId(user.getId());\r\n\t\t\t\t\t\tbu.setPreferredLanguageCode(new Long(preferred_language));\r\n\t\t\t\t\t\tbu.setTempPassword(true);\r\n\t\t\t\t\t\tbu.setTemppasswordCleartext(this._password);\r\n\t\t\t\t\t\tbu.saveMe();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsob.forward_on = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tthis.sob.errorMsg = e.getMessage();\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\treturn user;\r\n\t}", "title": "" }, { "docid": "4a0a18ba101fa527ed61bbf87526a89f", "score": "0.51681656", "text": "public void createUser(){\r\n\t\tuser = validRegistration();\r\n\t\t// If fields are valid the it generates and displays an account number\r\n\t\t// and adds the user to the hash map\r\n\t\tif (user != null) {\r\n\t\t\taNum = mainClass.getBank().genAccountNum();\r\n\t\t\tmainClass.getBank().addUser(aNum, user);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f12e1d9177aefd934103e31487820209", "score": "0.51568973", "text": "public void setVoteCreateUser(String voteCreateUser) {\n\t\tthis.voteCreateUser = voteCreateUser;\n\t}", "title": "" }, { "docid": "3cb886057bd11fe634396097f9f8742a", "score": "0.514946", "text": "public void setCreatedUserId(Integer createdUserId) {\n this.createdUserId = createdUserId;\n }", "title": "" }, { "docid": "f95455ffa8fa90ed7bba0c703e51c848", "score": "0.51368207", "text": "@Override\r\n\tpublic String addNewUser(UserBean userBean) throws OIRSException {\r\n\t\tConnection connection = DBConnection.getConnection();\t\r\n\t\tString result=null;\r\n\t\tint rs;\r\n\t\ttry{\r\n\t\t\tpreparedstatement=connection.prepareStatement(IQueryMapper.ADDUSER);\r\n\t\t\tpreparedstatement.setString(1, userBean.getUserId());\r\n\t\t\tpreparedstatement.setString(2, userBean.getUserPassword());\r\n\t\t\tpreparedstatement.setString(3, userBean.getUserRole());\r\n\t\t\tpreparedstatement.setString(4, userBean.getHint());\r\n\t\t\trs = preparedstatement.executeUpdate();\r\n\t\t\tif(rs > 0)\r\n\t\t\t{\r\n\t\t\t\tresult = \"User Added Successfully!!!\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tthrow new OIRSException(\"Inserting user details failed \");\r\n\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}catch(SQLException sqlexception)\r\n\t\t{\r\n\t\t\tthrow new OIRSException(\"SQL error occured \"+sqlexception.getMessage());\r\n\t\t}\r\n\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\r\n\t\t\t\tpreparedstatement.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\t\t\tcatch (SQLException sqlException) \r\n\t\t\t{\r\n\r\n\t\t\t\tthrow new OIRSException(\"Error in closing db connection\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b08bdf0d3c1b6c3cd2d4f49c59797096", "score": "0.5128195", "text": "@Override\n\tpublic void setUserCreated(User user) {\n\n\t}", "title": "" }, { "docid": "443ca9a3fbe17848a2a2299b44a1b7a8", "score": "0.5123584", "text": "public Builder setCreatedUser(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdUser_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2bafcb7c2c80711759154ad64a309b39", "score": "0.51141965", "text": "public String getCreateUserName() {\n return createUserName;\n }", "title": "" }, { "docid": "2bafcb7c2c80711759154ad64a309b39", "score": "0.51141965", "text": "public String getCreateUserName() {\n return createUserName;\n }", "title": "" }, { "docid": "2bafcb7c2c80711759154ad64a309b39", "score": "0.51141965", "text": "public String getCreateUserName() {\n return createUserName;\n }", "title": "" }, { "docid": "10b5b545adad06e3c3e5cf264d52e840", "score": "0.5109882", "text": "public void setCREATE_BY(String CREATE_BY) {\r\n this.CREATE_BY = CREATE_BY;\r\n }", "title": "" }, { "docid": "df70e05195631a77a6bf6602354a68b6", "score": "0.51071495", "text": "public void setCreatedUserId(Integer createdUserId) {\n\t\tthis.createdUserId = createdUserId;\n\t}", "title": "" }, { "docid": "e93f8a0666b6be560899d2b00d747dd5", "score": "0.51017207", "text": "public void setCreatedUserId(Long createdUserId)\n\t{\n\t\tthis.createdUserId = createdUserId;\n\t}", "title": "" }, { "docid": "ed69dea550a0362447a3c1a9e1ca6138", "score": "0.50958353", "text": "public void setCreatedUser(String createdUser) {\n this.createdUser = createdUser == null ? null : createdUser.trim();\n }", "title": "" }, { "docid": "90b0ec72dbf9c4b6dc89e7254174a558", "score": "0.50691545", "text": "public String registerNewUser() {\r\n \t\tSystem.out.println(\"======In Login Action register========\");\r\n \t\r\n \t\temployee.setDateJoined(new Date());\r\n \t\temployee.setPoints(10);\r\n \t\tif (employee.getNotifyTypeStr().equals(\"Email\"))\r\n \t\t\temployee.setNotifyType(0);\r\n \t\telse\r\n \t\t\temployee.setNotifyType(1);\r\n \t\tmemberList = loginService.registerNewUser(employee);\r\n\t\tsetCarPoolMember(loginService.getCarPoolMemberDetails());\r\n\t\tsetCarPoolGroup(loginService.getCarPoolGroupDetails());\r\n \t\t\treturn SUCCESS;\r\n \t}", "title": "" }, { "docid": "20186b48cf653759cefd23952bac4e23", "score": "0.5043431", "text": "private static void createUser() \n\t{\n\t\tConnection con = null;\n\t\ttry{\n\t\t con = getCon();\n\t\t Statement stmt = con.createStatement();\n\t\tScanner sc1 = new Scanner(System.in);\n\t\tScanner sc2= new Scanner(System.in);\n\t\tSystem.out.println(\"Enter new user\");\n\t\tString username = sc1.nextLine();\n\t\tSystem.out.println(\"Enter user ID\");\n\t\tint new_id = sc1.nextInt();\n\t\tSystem.out.println(\"Enter user password\");\n\t\tString pwd = sc2.nextLine();\n\t\tSystem.out.println(\"Enter designation\");\n\t\tString desgn = sc2.nextLine();\n\t\tString sql = \"INSERT INTO users (NAME, ID, PASSWORD, DESN)\" +\n\t\t \"VALUES ('\"+username+\"','\"+new_id+\"','\"+pwd+\"','\"+desgn+\"' )\";\n\t\tstmt.executeUpdate(sql);\n\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}", "title": "" }, { "docid": "150cd47079d75eef7e09a93c2f9be05b", "score": "0.50417465", "text": "@Override\n public void onUserCreate(final User user) {\n log.debug(\"onUserCreate:\" + user);\n try {\n session.refresh(true);\n final Node userNode = session.getNode(userPropertiesService.getAuthorizablePath(user.getID()));\n final Node profNode = userNode.getNode(\"profile\");\n\n // Set the profile resource type to be a CQ profile\n profNode.setProperty(SlingConstants.NAMESPACE_PREFIX + \":\" + SlingConstants.PROPERTY_RESOURCE_TYPE,\n PROFILE_RESOURCE_TYPE);\n\n processProfileMappings(userNode, profNode);\n\n session.save();\n } catch (final RepositoryException e) {\n log.error(\"onUserCreate: failed to copy profile properties to cq profile\", e);\n }\n }", "title": "" }, { "docid": "733403d511b53c0b502f0e167642a46c", "score": "0.5022378", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void saveUser(SupplierAdmit report, Department department) {\n\t\tCompany company = null;\n\t\t// 取到第一个公司\n\t\tif (company == null) {\n\t\t\tString hql = \"from Company c\";\n\t\t\tList<?> list = supplierAdmitDao.getSession().createQuery(hql).list();\n\t\t\tcompany = (Company) list.get(0);\n\t\t}\n\t\tList<Role> defaultRoles = new ArrayList<Role>();\n\t\tString rolehql = \"from Role r where r.deleted = ? and r.name = ?\";\n\t\tdefaultRoles = supplierAdmitDao.getSession().createQuery(rolehql).setParameter(0, false).setParameter(1, \"普通用户\").list();\n\t\tString hql = \"select user from User user where user.deleted=false and user.loginName=?\";\n\t\tList<?> users = supplierAdmitDao.getSession().createQuery(hql).setParameter(0, report.getSupplierLoginName())\n\t\t\t\t.list();\n\t\tUser user = new User();\n\t\tboolean isNew = false;\n\t\tif (users.size() <= 0) {\n\t\t\tuser = new User();\n\t\t\tuser.setCompanyId(company.getId());\n\t\t\tisNew = true;\n\t\t\tuser.setLoginName(report.getSupplierLoginName().trim());\n\t\t\tuser.setName(report.getSupplierName());\n\t\t\tuser.setPassword(Md5.toMessageDigest(report.getSupplierLoginName().trim()));\n\t\t\tif(StringUtils.isNotEmpty(report.getSupplierEmail())){\n\t\t\t\tuser.setEmail(report.getSupplierEmail());\n\t\t\t}\n\t\t\tuser.setMailSize(10.0f);\n\t\t\tuser.setHonorificName(\"\");\n\t\t\tuser.setMainDepartmentId(department == null ? null : department.getId());\n\t\t\tuser.setMainDepartmentName(department == null ? null : department\n\t\t\t\t\t.getName());\n\t\t\tuser.setMailboxDeploy(MailboxDeploy.INSIDE);\n\t\t\tsupplierAdmitDao.getSession().save(user);\n\t\t}else {\n\t\t\tuser = (User) users.get(0);\n\t\t}\n\t\tif (isNew) {\n\t\t\t// 判断用户角色是否存在,RoleUser的在user,role建立了索引,不能重复\n\t\t\tfor(Role role : defaultRoles){\n\t\t\t\thql = \"from RoleUser r where r.user = ? and r.role = ? \";\n\t\t\t\tList<?> roleUserList = supplierAdmitDao.getSession().createQuery(hql).setParameter(0, user).setParameter(1, role).list();\n\t\t\t\tif (roleUserList.isEmpty()) {\n\t\t\t\t\tRoleUser roleUser = new RoleUser();\n\t\t\t\t\troleUser.setAllUser(\"所有用户\");\n\t\t\t\t\troleUser.setCompanyId(company.getId());\n\t\t\t\t\troleUser.setDeleted(false);\n\t\t\t\t\troleUser.setRole(role);\n\t\t\t\t\troleUser.setUser(user);\n\t\t\t\t\troleUser.setTs(new Date());\n\t\t\t\t\tsupplierAdmitDao.getSession().save(roleUser);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 添加兼职部门\n\t\tList<?> departmentUsers = new ArrayList<DepartmentUser>();\n\t\tif (department != null) {\n\t\t\thql = \"from DepartmentUser d where d.user = ? and d.department = ?\";\n\t\t\tdepartmentUsers = supplierAdmitDao.getSession().createQuery(hql).setParameter(0, user)\n\t\t\t\t\t.setParameter(1, department).list();\n\t\t} else {\n\t\t\thql = \"from DepartmentUser d where d.user = ? and d.department is null\";\n\t\t\tdepartmentUsers = supplierAdmitDao.getSession().createQuery(hql).setParameter(0, user)\n\t\t\t\t\t.list();\n\t\t}\n\t\tif (departmentUsers.size() <= 0) {\n\t\t\tDepartmentUser departmentUser = new DepartmentUser();\n\t\t\tdepartmentUser.setCompanyId(company.getId());\n\t\t\tdepartmentUser.setUser(user);\n\t\t\tdepartmentUser.setDepartment(department);\n\t\t\tdepartmentUser.setDeleted(false);\n\t\t\tsupplierAdmitDao.getSession().save(departmentUser);\n\t\t}\n\t\t// 保存用户基础信息\n\t\thql = \"from UserInfo u where u.user.id=?\";\n\t\tList<UserInfo> usersInfos = supplierAdmitDao.getSession().createQuery(hql)\n\t\t\t\t.setParameter(0, user.getId()).list();\n\t\tUserInfo userInfo = new UserInfo();\n\t\tif (usersInfos.size() > 0) {\n\t\t\tuserInfo = usersInfos.get(0);\n\t\t} else {\n\t\t\tuserInfo = new UserInfo();\n\t\t}\n\t\t// userInfo.setTelephone(telephone);\n\t\tuserInfo.setUser(user);\n\t\tuserInfo.setCompanyId(user.getCompanyId());\n\t\tuserInfo.setBirthday(\"\");\n\t\tuserInfo.setBloodGroup(\"\");\n\t\tuserInfo.setCityArea(\"\");\n\t\tuserInfo.setTelephone(\"\");\n\t\tuserInfo.setDegree(\"\");\n\t\tuserInfo.setEducationGrade(\"\");\n\t\tuserInfo.setFatherName(\"\");\n\t\tuserInfo.setFirstForeignLanguage(\"\");\n\t\tuserInfo.setGraduatedSchool(\"\");\n\t\tuserInfo.setPasswordUpdatedTime(new Date());\n\t\tuserInfo.setTreatment(\"\");\n\t\t// userInfo.setWeight(\"\");\n\t\tsupplierAdmitDao.getSession().save(userInfo);\n\t}", "title": "" }, { "docid": "8a4843b49ff6cb125a6dc1b82032148a", "score": "0.5012357", "text": "@Override\n\tpublic ServantUser create(String username, Integer sgid, Integer expectedGradYr, Boolean hasCar, Integer carCap) throws Exception {\n\t\t\n\t\tint userId;\n\t\t\n\t\t// username shall not be null\n\t\tif (username == null)\n\t\t\tthrow new Exception(\"Thy username shall not be null.\");\n\t\t\n\t\t// first get the user from the users data table \n\t\tUser user = uDao.fetchUserByUsername(username);\n\t\t\n\t\t// verify if the user already exists or if a new one needs to be created\n\t\tif (user != null) { \n\t\t\t\n\t\t\tuserId = user.getUid();\n\t\t\t\n\t\t}\n\t\telse {\n\n\t\t\t// Create and get a handle on a new contact for our new user\n\t\t\tString email = username + \"@austincollege.edu\";\n\t\t\tContact newContact = contactDao.create(username, null, email, null, null, null, null, null, null);\n\t\t\t\n\t\t\tUser newUser = uDao.create(username, newContact.getContactId());\n\t\t\tuserId = newUser.getUid();\n\t\t\t\n\t\t}\n\t\t\n\t\t// SQL statement that is to be executed\n\t\tString sql = \"INSERT INTO servantUsers (userId, sgid, expectedGradYear, hasCar, carCapacity) VALUES (?, ?, ?, ?, ?)\";\n\n\t\tgetJdbcTemplate().update(sql, userId, sgid, expectedGradYr, hasCar, carCap);\n\n\t\treturn fetchServantUserById(userId);\n\n\t}", "title": "" }, { "docid": "77f776315803066ca048f8e63b630c12", "score": "0.500741", "text": "public static void createUser(DataBaseConnection dbc,\n boolean createDB) throws Exception {\n String un = StringUtils.trimToEmpty(dbc.getUser());\n String pw = StringUtils.trimToEmpty(dbc.getPassword());\n if (un.length() == 0) throw new Exception(\"invalid user name\");\n Query qry = new Query(\"create user ${name}\").set(\"name\", un);\n if (pw.length() != 0)\n qry.append(\" password '${password}'\").set(\"password\", pw);\n if (createDB) qry.append(\" CREATEDB\");\n qry.append(\";\");\n qry.dbUpdate(DataBaseConnection.getDataBaseConnection(ROOT_DB));\n }", "title": "" }, { "docid": "36affd0527eb8f858265f29b811a7175", "score": "0.50049734", "text": "@Override\n\tpublic com.ecoit.qa.service.model.GroupUserUser createGroupUserUser(\n\t\tcom.ecoit.qa.service.service.persistence.GroupUserUserPK\n\t\t\tgroupUserUserPK) {\n\n\t\treturn _groupUserUserLocalService.createGroupUserUser(groupUserUserPK);\n\t}", "title": "" }, { "docid": "9f441848eec1921b36571bab76e69e40", "score": "0.50032675", "text": "public void addUser(Property newUser) {\n\t}", "title": "" }, { "docid": "d1c6b8ea07589aca1374422c31eeb7b0", "score": "0.4972483", "text": "@Override\n\t@Transactional\n\tpublic String createUser(User user) {\n\t\treturn dao.createUser(user);\n\t}", "title": "" }, { "docid": "5ae474b26b9b0a0141e094f207c56176", "score": "0.49525654", "text": "public void setCreatedByUser(long createdByUser) {\n\t\t_vdocDocument.setCreatedByUser(createdByUser);\n\t}", "title": "" }, { "docid": "df8431dca1410e5d9a9e1ed43298d3e6", "score": "0.4948483", "text": "public void setCreateEmp(String createEmp) {\n this.createEmp = createEmp;\n }", "title": "" }, { "docid": "3885bc9205b07f2ec964296a99b7de75", "score": "0.49380544", "text": "public void setCREATEDBY(long value) {\r\n this.createdby = value;\r\n }", "title": "" }, { "docid": "16046f292003e82fa18ca90dd0316057", "score": "0.49357298", "text": "public void createUser() {\n\n\t\ttry {\n\t\t\tthis.user.setRole(new Role(1, \"admin\"));\n\n\t\t\tuserService.createUser(this.user);\n\t\t\tMessageUtil.addSuccessMessage(\"Post was successfully created.\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.log(Level.INFO, \"User already Exist.\");\n\t\t\tMessageUtil.addErrorMessage(\"User already Exist.\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "de65c082f029018bf5bff64979c9b1e7", "score": "0.49337476", "text": "public long createNormalUser(NormalUser user){\n\n NormalUser localUser=normalUserRepository.findByUsername(user.getUsername());\n if(null!=localUser){\n LOG.warn(\"this username {} already exist , no thing happen\",user.getUsername());\n return -1;\n }else if(null!=normalUserRepository.findByEmail(user.getEmail())){\n LOG.warn(\"this Email {} already exist , no thing happen\",user.getEmail());\n return -2;\n }else {\n\n // encode the password\n user.setPassword(SecurityUtility.passwordEncoder().encode(user.getPassword()));\n // get Normal user Role\n Role roleUser = roleRepository.findByName(\"ROLE_USER\");\n\n // add Normal user Role to the new User\n Set<UserRole> userRoleSet=new HashSet<>();\n userRoleSet.add(new UserRole(user,roleUser));\n user.setUserRoles(userRoleSet);\n\n // save the user\n localUser=this.normalUserRepository.save(user);\n\n }\n\n return localUser.getId();\n }", "title": "" }, { "docid": "3eb5bc6e15830dde25b04e42fbed56e8", "score": "0.49262276", "text": "public void setCreatedByUserName(String value) {\r\n this.createdByUserName = value;\r\n }", "title": "" }, { "docid": "09aca085ffd6b6f3199e33b0e0cc5c72", "score": "0.49086082", "text": "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "title": "" }, { "docid": "09aca085ffd6b6f3199e33b0e0cc5c72", "score": "0.49086082", "text": "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "title": "" }, { "docid": "808b2fe3b543b6bdef1f501193cc2427", "score": "0.4907734", "text": "public java.lang.String getCreateUser() {\n return this.localCreateUser;\n }", "title": "" }, { "docid": "f79d0de7207e7c064dfd2e36cc60ba76", "score": "0.49064192", "text": "public String getCreatUserId() {\n\t\treturn (String) getValue(3);\n\t}", "title": "" }, { "docid": "c4cf8ca9fe79c1668a5f0b6965e99612", "score": "0.48945293", "text": "private void createUser() throws SQLException {\r\n\t\tSystem.out.println(\"Enter your first name: \");\r\n\t\tString firstname = scanner.nextLine();\r\n\t\tSystem.out.println(\"Enter your last name: \");\r\n\t\tString lastname = scanner.nextLine();\r\n\t\tSystem.out.println(\"Enter your email address: \");\r\n\t\tString emailaddress = scanner.nextLine();\r\n\t\tuserDAO.createNewUser(firstname, lastname, emailaddress);\r\n\t\tSystem.out.println(\"------------------------------------\");\r\n\t\tSystem.out.println(\" Welcome \" + firstname);\r\n\t\tSystem.out.println(\"------------------------------------\");\r\n\t\tuserOptionsMenu();\r\n\t}", "title": "" }, { "docid": "dfaf8ee94bf2625851008794f5e5d2e1", "score": "0.48897237", "text": "@Override\r\n\tpublic void getadduser(User user) {\n\t\tdeptmentMapper.adduser(user);\r\n\t}", "title": "" }, { "docid": "4ddde200322b012542b8f2e3767b7609", "score": "0.4883828", "text": "@Override\n public AwUsuario createUser(AwUsuario awUser, String creationUser,\n EntityManager em) throws JPAException {\n final String metodo = \"createUser\";\n\n try {\n awUser.setFechaCreacion(new Date());\n awUser.setUsuarioCreacion(creationUser);\n em.persist(awUser);\n return awUser;\n } catch (Exception e) {\n throw new JPAException(EnumJPAException.DB_ERROR, this.getClass()\n .getName() + metodo, e);\n }\n }", "title": "" }, { "docid": "25572593d9aa039610faa49a7e42a4a4", "score": "0.4867196", "text": "@Override\n public int create(User entity) {\n try(PreparedStatement ps = connection.prepareStatement(Requests.INSERT_USER, Statement.RETURN_GENERATED_KEYS)){\n ps.setString(1,entity.getName());\n ps.setString(2,entity.getSurname());\n ps.setString(3,entity.getLogin());\n ps.setString(4,entity.getPassword());\n ps.setString(5,entity.getRole().getName());\n ps.setInt(6,entity.getMoney());\n ps.setString(7,entity.getPhone());\n ps.executeUpdate();\n connection.commit();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n return rs.getInt(1);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return 0;\n }", "title": "" }, { "docid": "ed0c51a27d9f6058c3124d9feea41dc2", "score": "0.4864067", "text": "@RequestMapping(value =\"/createuser/\", method = RequestMethod.POST)\n\tpublic String createUserService(@Valid @ModelAttribute User usr, BindingResult result, ModelMap model) {\n\t\t\n\t\tif(result.hasErrors()){\n\t\t\treturn \"createuser\";\n\t\t}else{\n\t\t\tif(service.getUserId(usr.getLogin()) != 0){ //if User already exists\n\t\t\t\tmodel.addAttribute(\"exists\", \"\");\n\t\t\t\tmodel.addAttribute(\"user\",usr);\n\t\t\t\treturn \"createuser\";\n\t\t\t}\n\t\t\t\t\n\t\t\tString newPassword = encoder.encodePassword(usr.getPassword(), usr.getLogin());\n\t\t\tusr.setPassword(newPassword);\n\t\t\tservice.createUser(usr);\n\t\t\treturn \"redirect:/monitorusers/\";\n\t\t}\n\t}", "title": "" }, { "docid": "5952ffe4a0b17a7d5d6211d140918fca", "score": "0.48579443", "text": "void addNewUser(Connection connection, User newUser) throws SQLException;", "title": "" }, { "docid": "da34780ac4e9a8037ddb70b8be25e95b", "score": "0.48492974", "text": "public String getCreateUser() {\n return (String) get(1);\n }", "title": "" }, { "docid": "6a06347b8552d7bf49ceece0f4da1d49", "score": "0.4835288", "text": "public User createUser(User newUser) {\r\n try {\r\n newUser.setProcesado(false);\r\n return userRepository.save(newUser);\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }", "title": "" } ]
670286192dbe9f302aeab7626f966a84
Asignamos el nuevo valor a la fecha porporcionada
[ { "docid": "1f9420245b859b6f7846d3dc706740d0", "score": "0.0", "text": "public static Date setValueProperty(Date fecha, int property, int valor) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(fecha);\n calendar.set(property, valor);\n return calendar.getTime();\n }", "title": "" } ]
[ { "docid": "1ac4ed1ae88d228810b65bb2f61902e0", "score": "0.65919477", "text": "public void setFechaAutorizacionConexia(Date value) {\n this.fechaAutorizacionConexia = value;\n }", "title": "" }, { "docid": "63a1a6d5deaa92b92660818cebd0f0d9", "score": "0.6586991", "text": "public void avanzarFecha()\n {\n {\n dia.incrementaValorAlmacenado();\n if (dia.getValorAlmacenado() == 1){\n mes.incrementaValorAlmacenado();\n if (mes.getValorAlmacenado() == 1){\n ano.incrementaValorAlmacenado();\n }\n }\n\n }\n }", "title": "" }, { "docid": "80ca021a6dda60aa6e1a6e0cfae70d2c", "score": "0.6517436", "text": "void setValue( Date date );", "title": "" }, { "docid": "177f511fa4007cf29b68ad8ccde5c793", "score": "0.6496094", "text": "public void setFechaNacimiento(java.util.Date param){\n localFechaNacimientoTracker = param != null;\n \n this.localFechaNacimiento=param;\n \n\n }", "title": "" }, { "docid": "ed226bded2f88a0804514591e747e336", "score": "0.64690906", "text": "public void setHoraAutorizacionConexia(Date value) {\n this.horaAutorizacionConexia = value;\n }", "title": "" }, { "docid": "e001108a12d0332517f25ebdf3d98c67", "score": "0.63362235", "text": "private void updateFechaConsulta(){\n\n }", "title": "" }, { "docid": "06366d76a58c6bd082656c6327748f98", "score": "0.6290792", "text": "private void limpiar2() {\r\n\t\tDate dt = new Date();\r\n\t\ttxtCedulaPaciente.setValue(\"\");\r\n\t\tlblNombrePaciente.setValue(\"\");\r\n\t\tlblApellidoPaciente.setValue(\"\");\r\n\t\tlblEmpresaPaciente.setValue(\"\");\r\n\t\ttxtObservacion.setValue(\"\");\r\n\t\ttmbHoraCita.setValue(dt);\r\n\t\tdtbFechaCita.setValue(null);\r\n\t\tcmbMotivo.setValue(\"\");\r\n\t\tcmbMotivo.setPlaceholder(\"Seleccione un Motivo\");\r\n\t\tid = 0;\r\n\t\tidPaciente = \"\";\r\n\r\n\t}", "title": "" }, { "docid": "01e435128b4f0b634ca5c3a21e1a077a", "score": "0.62903476", "text": "public void setDateUltimaModificacion(Date dateUltimaModificacion);", "title": "" }, { "docid": "1772f0a1f9eda3dfac87b1817a0188fd", "score": "0.6270328", "text": "public void setFecha(Date fecha);", "title": "" }, { "docid": "fdd6858e0400eb7d2d01227b363f1799", "score": "0.62635493", "text": "public void setFechaProximoAniversario(Date value) {\n this.fechaProximoAniversario = value;\n }", "title": "" }, { "docid": "99b7c5acfa72f198e786e00c755f86a7", "score": "0.6237777", "text": "public void setFechaHasta(Date fechaHasta)\r\n/* 193: */ {\r\n/* 194:338 */ this.fechaHasta = fechaHasta;\r\n/* 195: */ }", "title": "" }, { "docid": "0948af2bef7226ac7281d3ab55ba8313", "score": "0.6233086", "text": "public void setFechaHasta(Date fechaHasta)\r\n/* 138: */ {\r\n/* 139:194 */ this.fechaHasta = fechaHasta;\r\n/* 140: */ }", "title": "" }, { "docid": "67278514010a42a03eadedf72724c979", "score": "0.61984473", "text": "public void setCreationtime(Date val );", "title": "" }, { "docid": "300d662707a9978bbbcad634de7b730e", "score": "0.6182498", "text": "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5e31b7fde9a89abe4e3cc5b911cb54eb", "score": "0.618169", "text": "public void setDataCreazione(Date dataCreazione) {\n this.dataCreazione = dataCreazione;\n }", "title": "" }, { "docid": "b31ae8f675e0fce507908edd3f734496", "score": "0.61683965", "text": "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "title": "" }, { "docid": "bea5faac1d78848b8511b7e6b47778f6", "score": "0.616362", "text": "public void setNgayTao(Date ngayTao);", "title": "" }, { "docid": "5e09dd5a256bf6187fa7b2963bb6ce40", "score": "0.61469936", "text": "public void setDatePublicacion(Date datePublicacion);", "title": "" }, { "docid": "4c46ec07727821c0c409fcb780b09619", "score": "0.61353475", "text": "public void setCreatTs(Date value) {\n\t\tsetValue(8, value);\n\t}", "title": "" }, { "docid": "156d59d784e0f909093e6ef85c8ed25a", "score": "0.61157995", "text": "public void registrarVencimiento() {\r\n\t\t//Obtiene la fecha del sistema\r\n\t\tCalendar c1 = Calendar.getInstance(); \r\n\t\tc1.add(Calendar.DATE,30); //le suma 30 dias\r\n\t\tthis.vencimiento=c1.getTime() ;\r\n\t}", "title": "" }, { "docid": "3f658655f98564d7486b40af12fb02ac", "score": "0.60906184", "text": "private void setFechaEntrega(Date fechaEntrega) {\n this.fechaEntrega = fechaEntrega;\n }", "title": "" }, { "docid": "9e7abc68a9fac4c9facce000f2b0f672", "score": "0.6087051", "text": "@Override\r\n\tpublic void reprogramarFechaDeSalida(Envio unEnvio, DateTime unaFecha){\r\n\t\tunEnvio.setFechaDeSalida(unaFecha);\r\n\t\tunEnvio.setEstadoDeEnvio(new Pendiente());\r\n\t}", "title": "" }, { "docid": "4765f58c333199cb21123281cf618109", "score": "0.6085364", "text": "public void setFechamodifica(Date fechamodifica);", "title": "" }, { "docid": "fff2035f2a831be2c37389e315e238ca", "score": "0.60677826", "text": "public void setFechacrea(Date fechacrea);", "title": "" }, { "docid": "606f436786e75e3635bbe5055dbd2256", "score": "0.6044396", "text": "public void resetFechaPublicacion()\r\n {\r\n this.fechaPublicacion = null;\r\n }", "title": "" }, { "docid": "94061c0a695ac903e6f027db7acb6474", "score": "0.6039551", "text": "public Date getDateUltimaModificacion();", "title": "" }, { "docid": "b22dcda550516e27b6cf04400fb6fec0", "score": "0.60335934", "text": "public void setDataConstituicao(Date dataConstituicao) {\n\t\tif(dataConstituicao != null){\n\t\t\tthis.dataConstituicao = new Date(dataConstituicao.getTime());\n\t\t} else{\n\t\t\tthis.dataConstituicao = null;\n\t\t}\n\t}", "title": "" }, { "docid": "2d80b04d810c86ec4b6b7a67b9ec20ce", "score": "0.6005111", "text": "Date getFechaNacimiento();", "title": "" }, { "docid": "a381d637ceb1e2144f7a714644d69905", "score": "0.59874153", "text": "public void setDataCancellazione(Date dataCancellazione) {\n this.dataCancellazione = dataCancellazione;\n }", "title": "" }, { "docid": "1762315c0ba9f9fe14bd71887f5bac28", "score": "0.59663343", "text": "public void setDisponibilidad(Date disponibilidad) {\n this.disponibilidad = disponibilidad;\n }", "title": "" }, { "docid": "275a0e5df9bc280aaecb5d3436620c6b", "score": "0.59653634", "text": "public void setFechaalta(Date fechaalta) {\r\n this.fechaalta = fechaalta;\r\n }", "title": "" }, { "docid": "18e33709d95745ca390136a9e8c355bf", "score": "0.59534055", "text": "Date getValue();", "title": "" }, { "docid": "16d2cdd307dfec6e6e464984de637dad", "score": "0.59517634", "text": "private Date Date(Date time) {\n\treturn null;\n}", "title": "" }, { "docid": "724637aa834d8a2e322c93b5587565cd", "score": "0.59442574", "text": "public void actualizar_fechaNacimiento(int num_estudiantes){\r\n // Asigna a la variable global la local\r\n // Con el this hacemos referencia a variables globales\r\n this.num_estudiantes = num_estudiantes;\r\n\r\n }", "title": "" }, { "docid": "631f2995754b17e6e2ea38f44176d0ff", "score": "0.5929323", "text": "public void setFecha(String p) { this.fecha = p; }", "title": "" }, { "docid": "1a80e47aa585b42cd2c45e55f6007aa5", "score": "0.5923492", "text": "public Date getFechaHasta()\r\n/* 188: */ {\r\n/* 189:328 */ return this.fechaHasta;\r\n/* 190: */ }", "title": "" }, { "docid": "f2f588b1765f8f90d76017015fd8e0ef", "score": "0.591833", "text": "public void setFechaInicio(Date fechaInicio)\n {\n this.fechaInicio = fechaInicio;\n }", "title": "" }, { "docid": "3cf70b5fd11502dfe1e15dc71a4b3461", "score": "0.58975756", "text": "public FillUp() {\r\n\t\tthis.date = new Date(0);\r\n\t}", "title": "" }, { "docid": "ee593af1e521ea0a3b8ff8bea0fdf0ec", "score": "0.5882383", "text": "public void setCreattime(Date creattime) {\r\n this.creattime = creattime;\r\n }", "title": "" }, { "docid": "81e323c86d3bd5816462d866650cb436", "score": "0.58793056", "text": "public Date getFechamodifica();", "title": "" }, { "docid": "0e5e9497358ce1538fc5a27cde4c4d6e", "score": "0.5877172", "text": "public FrAgregarEmpleado(int opcion) {\n initComponents();\n this.opcion = opcion;\n Date date = new Date(System.currentTimeMillis());\n jDateChooser1.setDate(date);\n jDateChooser1.setDateFormatString(\"dd/MM/yyyy\");\n setLocationRelativeTo(null);\n\n }", "title": "" }, { "docid": "ea25cd6f8614c8693506a4ada1b36a73", "score": "0.5875662", "text": "public void setDate(Date value);", "title": "" }, { "docid": "98fe8ca40536f19bfcb59bd9af889efe", "score": "0.58747095", "text": "private void atualizaValorVenda() {\r\n if (Validacoes.validaNumero(txtValorCusto.getText()) && Validacoes.validaNumero(txtMargem.getText())) {\r\n if (!(txtValorCusto.getText().isEmpty()) && (!txtMargem.getText().isEmpty())) {\r\n Produto produto = new Produto();\r\n produto.setValorCusto(Double.parseDouble(Converter.banco(txtValorCusto.getText())));\r\n produto.setMargem(Double.parseDouble(Converter.banco(txtMargem.getText())));\r\n produto.setValorVenda((produto.getValorCusto() * produto.getMargem() / 100) + produto.getValorCusto());\r\n\r\n // atualiza valor venda \r\n txtValorVenda.setText(produto.getValorVendaString());\r\n \r\n } else {\r\n JOptionPane.showMessageDialog(rootPane, \"O campo Valor Custo e Margem de Lucro são obrigatórios para o calculo!\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9a411ccb89da8e31ba257bd98eae7b4b", "score": "0.58675045", "text": "public void setDateValidPO (Timestamp DateValidPO);", "title": "" }, { "docid": "4770f58dcdddcfd41f8252e85420e356", "score": "0.58649975", "text": "public void setInizio( Date inizio ) {\n this.inizio = inizio;\n }", "title": "" }, { "docid": "a4c363e664df6defb16a3cae7c98815b", "score": "0.58494747", "text": "public Date getFechaHasta()\r\n/* 133: */ {\r\n/* 134:184 */ return this.fechaHasta;\r\n/* 135: */ }", "title": "" }, { "docid": "cddb1985abb0f7c1f190201c9cc3aea5", "score": "0.584871", "text": "public Date getDataRegistroOrgaoCompetente() {\n\t\tif(dataRegistroOrgaoCompetente != null){\n\t\t\treturn new Date(dataRegistroOrgaoCompetente.getTime());\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bbce7f1db4828bf6e8f9b7f73ca4bcee", "score": "0.5830395", "text": "public void setFecha_inicio(Date fecha_inicio) {\n this.fecha_inicio = fecha_inicio;\n }", "title": "" }, { "docid": "0ee259f523280d0038565474cdb47bc1", "score": "0.58270204", "text": "public Date getFecharegistro() {\r\n return fecharegistro;\r\n }", "title": "" }, { "docid": "092a6a660c70a652c81bbd6fd3438d29", "score": "0.58248335", "text": "public void toDataAtual() {\n\t\tLocalDateTime now= LocalDateTime.now();\n\t\tthis.ano=now.getYear();\n\t\tthis.mes=now.getMonth().getValue();\n\t\tthis.dia=now.getDayOfMonth();\n\t\tthis.hora =now.getHour();\n\t\tthis.minuto = now.getMinute();\n\t\tthis.segundo = now.getSecond();\n\t\t}", "title": "" }, { "docid": "617f2a5178ddf648d20e8f2b69560a01", "score": "0.5824259", "text": "public void setDataRegistroOrgaoCompetente(Date dataRegistroOrgaoCompetente) {\n\t\tif(dataRegistroOrgaoCompetente != null){\n\t\t\tthis.dataRegistroOrgaoCompetente = new Date(dataRegistroOrgaoCompetente.getTime());\n\t\t} else{\n\t\t\tthis.dataRegistroOrgaoCompetente = null;\n\t\t}\n\t}", "title": "" }, { "docid": "04ccdffddd7229a90b07aa6ade3e8b97", "score": "0.58227026", "text": "public void setFechaInsercion(String fechaInsercion) { this.fechaInsercion = fechaInsercion; }", "title": "" }, { "docid": "75e8cce96be4309694cb6bf7135fad07", "score": "0.58216226", "text": "public void setFECHAENT(int value) {\n this.fechaent = value;\n }", "title": "" }, { "docid": "3d9aeda53ccde1060a972ce5ab3fdd83", "score": "0.58106875", "text": "public void guardarOrden() {\n Date d = new Date();\n Usuario usu = controlSeccion.getMiembro().getUsuario();\n if (isEsCliente()) {\n orden.setCliente(usu);\n } else {\n clienteSelect = usu;\n orden.setCliente(clienteSelect);\n }\n SimpleDateFormat f = new SimpleDateFormat(\"ddMMyy\");\n orden.setUsuario(usu);\n orden.setCodigo(f.format(d) + ODAO.Ultima(f.format(d)));\n long datelong = d.getTime();\n orden.setFecha(datelong);\n orden.setEstado(\"EN ESPERA\");\n orden.setValor_total(getTotalOrden());\n ODAO.crear(orden);\n orden = ODAO.buscarOrdenCodigoEstado(orden.getCodigo(), orden.getEstado());\n modificar(orden);\n limpiar();\n util.crearmensajes(\"INFO\", \"EXITO\", \"REGISTRO EXITOSO\");\n\n }", "title": "" }, { "docid": "56e122dffea5d838061c44be6150c3cd", "score": "0.5807349", "text": "public void setFechaProximoPago(Date value) {\n this.fechaProximoPago = value;\n }", "title": "" }, { "docid": "517001dfec981391be4dc850a4ef2d01", "score": "0.5803145", "text": "@Override\n\t\t\tpublic DateTime expiration() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "4d99c550daca2f1e260f69e7591b06f1", "score": "0.58028495", "text": "public void actualizarFecha(Usuario usuario) throws SQLException{\n\n psInsertar = conexion.getConexion().prepareStatement(\"UPDATE usuarios SET ultimo_login = ? WHERE nombre_usuario = ?\");\n String horaActual = LocalDateTime.now().toString();\n psInsertar.setString(1, horaActual); //TRASPASA LA FECHA ACTUAL DEL SISTEMA, DE JAVA A SQL.\n psInsertar.setString(2,usuario.getNombre_usuario());\n }", "title": "" }, { "docid": "1c6eea2bffd77ecb5ea2599954bdd7a0", "score": "0.5800071", "text": "public Date getDisponibilidad() {\n return disponibilidad;\n }", "title": "" }, { "docid": "1366dfa0a5bce174f78a598e989e063f", "score": "0.57935905", "text": "@Override\n\tpublic long getDefaultDate() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a2fa018e73d7fb56374414e84e516772", "score": "0.57854223", "text": "private void fecha() {\n Date ahora = new Date();\n SimpleDateFormat formateador = new SimpleDateFormat(\"dd-MM-yyyy\");\n lblFechaActual.setText(\"HOY ES : \" + formateador.format(ahora));\n//lblFechaActual.setText(Fecha.hoy());\n }", "title": "" }, { "docid": "82c9e552af2924d0eaa0d7f0779e1a85", "score": "0.5783391", "text": "public void setDataModifica(Date dataModifica) {\n this.dataModifica = dataModifica;\n }", "title": "" }, { "docid": "1fcbe106edde0b019c660bebc46b4386", "score": "0.57817596", "text": "public void setValue(Object o) {\n if (o instanceof Date) {\n currd = (Date) o;\n c.setTime(currd);\n updateFields();\n }\n }", "title": "" }, { "docid": "41a5719a09444b3fe1ea84092d7d2b58", "score": "0.57750624", "text": "public void PrimerasEntradas(){\n try {\n Date date1 = txtAgregar_Fecha.getDate();\n long d1 = date1.getTime();\n java.sql.Date fecha1 = new java.sql.Date(d1);\n \n SQL=\"INSERT INTO entradas (id_producto,fecha_registro,entradas) VALUES (?,?,?) \";\n ps = con.prepareStatement(SQL);\n \n ps.setString(1, txtAgregar_Clave.getText());\n ps.setString(2, \"\"+fecha1);\n ps.setString(3, txtAgregar_PrimerasEntradas.getText());\n \n \n int res = ps.executeUpdate();\n if(res>0){\n Limpiar();\n \n \n }else{\n JOptionPane.showMessageDialog(null,\"ERROR AL AGREGAR UN NUEVO PRODUCTO\");\n }\n } \n \n catch (SQLException ex) {\n Logger.getLogger(Productos.class.getName()).log(Level.SEVERE, null, ex);\n } \n }", "title": "" }, { "docid": "520192ea12c7da9532bf9d9fd069ab46", "score": "0.5772828", "text": "public void setNgaySua(Date ngaySua);", "title": "" }, { "docid": "1c459a9171ced4c6b9e167bbb5845507", "score": "0.5763071", "text": "public void setFecharegistro(Date fecharegistro) {\r\n this.fecharegistro = fecharegistro;\r\n }", "title": "" }, { "docid": "f9f4c4eeb976633a0d749b84827ae3d3", "score": "0.5761782", "text": "private void setDateTimeNow() {\n\t\tupdateDate = getDateTimeNow();\n\t}", "title": "" }, { "docid": "ae20d739f07e1a0b98882729f5822a1f", "score": "0.5747049", "text": "public void setCreteTime(Date creteTime) {\n this.creteTime = creteTime;\n }", "title": "" }, { "docid": "5e2ebaf165e7315c62662324c8d629f8", "score": "0.57421434", "text": "public void setFecha(String fecha) { this.fecha = fecha; }", "title": "" }, { "docid": "ad86a89b189de9f1d00723daeda037a6", "score": "0.5730851", "text": "@Test\n public void testSetFechaRegistro() {\n System.out.println(\"setFechaRegistro\");\n Date fechaRegistro = null;\n Ahorro instance = new Ahorro();\n instance.setFechaRegistro(fechaRegistro);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "385dc126cde67049a03503552c409437", "score": "0.57262594", "text": "public void setValue(Object value) {\n if ((value == null) || !(value instanceof Date)) {\n throw new IllegalArgumentException(\"illegal value\");\n }\n if (!value.equals(this.value.getTime())) {\n this.value.setTime((Date) value);\n fireStateChanged();\n }\n }", "title": "" }, { "docid": "cbe50c19d8567623a6d9e072a1b86807", "score": "0.572528", "text": "@Test\n public void setValueWithNullDate()\n {\n Utils.setComponentManager(this.componentManager);\n DateProperty property = new DateProperty();\n property.setValue(null);\n Assert.assertNull(property.getValue());\n }", "title": "" }, { "docid": "ba8178d7c9b83477b9c59e46d277c93c", "score": "0.57244587", "text": "public void setFechaDesde(Date fechaDesde)\r\n/* 183: */ {\r\n/* 184:319 */ this.fechaDesde = fechaDesde;\r\n/* 185: */ }", "title": "" }, { "docid": "5ec88e961b3b6b7cbe99e98b0a024140", "score": "0.5716116", "text": "void setValue( Date date, boolean supressEvent );", "title": "" }, { "docid": "8ea71f966821e5cc88f76890e0e7019e", "score": "0.57079726", "text": "public java.util.Date getFechaNacimiento(){\n return localFechaNacimiento;\n }", "title": "" }, { "docid": "d63b067f07f61dc42236fd84fb934c7c", "score": "0.5705011", "text": "public void setDtavalctiusp(Date dtavalctiusp) {\r\n\t\tthis.dtavalctiusp = dtavalctiusp;\r\n\t}", "title": "" }, { "docid": "650af8d8677059d0e88dee4f59328a23", "score": "0.5701406", "text": "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "title": "" }, { "docid": "650af8d8677059d0e88dee4f59328a23", "score": "0.5701406", "text": "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "title": "" }, { "docid": "4d5b28916e0cf3a9cc6e6d97e190f4a2", "score": "0.5694369", "text": "public void setCurrentDate() {\n\t\tsetDate(null);\n\t}", "title": "" }, { "docid": "6fff41dfabc54a10c8439cf02f7115f1", "score": "0.5692733", "text": "public void setData_richiesta(Date data_richiesta);", "title": "" }, { "docid": "67be6b6ed0eaae7d4fcc683540593600", "score": "0.5692514", "text": "public Date getDataCreazione() {\n return dataCreazione;\n }", "title": "" }, { "docid": "54961adba2e440d3e86dadd6947daa69", "score": "0.56898147", "text": "public Date getFechaDesde()\r\n/* 123: */ {\r\n/* 124:165 */ return this.fechaDesde;\r\n/* 125: */ }", "title": "" }, { "docid": "be3c9392d82dfcfe5704a56d22798cff", "score": "0.56871146", "text": "public Date getFechaalta() {\r\n return fechaalta;\r\n }", "title": "" }, { "docid": "14bbf7a096950a13de2345660d31d79a", "score": "0.5682723", "text": "@Test\r\n public void testSetFechaNacimiento() {\r\n System.out.println(\"setFechaNacimiento\");\r\n long fechaNacimiento = 0L;\r\n Usuario instance = new Usuario();\r\n instance.setFechaNacimiento(fechaNacimiento);\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": "7f930afbe53a7a041a54dc020e96faa6", "score": "0.56815755", "text": "Date getDateDebut();", "title": "" }, { "docid": "9cb43e1f2b104d6dea20638757b66deb", "score": "0.56724215", "text": "public void setFechaDesde(Date fechaDesde)\r\n/* 128: */ {\r\n/* 129:175 */ this.fechaDesde = fechaDesde;\r\n/* 130: */ }", "title": "" }, { "docid": "6e7e4239d0485247d992fe6cae619c80", "score": "0.5671784", "text": "@Test\n public void testSetFechaInicio() {\n System.out.println(\"setFechaInicio\");\n Date fechaInicio = null;\n GuiaRemisionDTO instance = null;\n instance.setFechaInicio(fechaInicio);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e119f915160426b31e7f1801ece7d3aa", "score": "0.56676114", "text": "public Date getFechaDesde()\r\n/* 178: */ {\r\n/* 179:309 */ return this.fechaDesde;\r\n/* 180: */ }", "title": "" }, { "docid": "d23a10ef2bb5aa81cbdd27f0ff0be162", "score": "0.56648624", "text": "public Date getDate()\r\n\t {\r\n\t \treturn value == null ? null : value.getTime();\r\n\t }", "title": "" }, { "docid": "1154e0d424d01dc33dab7ad5243dd0c9", "score": "0.5664596", "text": "public SimpleDateFormat initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }", "title": "" }, { "docid": "4cdef6bf46ca73f658bd512c75b62c1e", "score": "0.5663634", "text": "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "title": "" }, { "docid": "c1f250e5f442811e2bc00bd1d25dd48e", "score": "0.5663448", "text": "public void setDate()\n {\n }", "title": "" }, { "docid": "e9744933596296ca806374745c09f525", "score": "0.56583315", "text": "@PrePersist\n void prePersist(Determina determina) {\n Calendar calendar = Calendar.getInstance();\n Date today = calendar.getTime();\n int year = calendar.get(Calendar.YEAR);\n determina.setAnno(year);\n }", "title": "" }, { "docid": "7b11d6ce7e72f1caef608c7444745f0a", "score": "0.56524616", "text": "public void setDate(Date input) {\r\n\t\tthis.timePurchased = input;\r\n\t}", "title": "" }, { "docid": "a9440d5e4187d00bd8347fd92c1289ef", "score": "0.56504077", "text": "public Date getParcadfec() {\r\n return parcadfec;\r\n }", "title": "" }, { "docid": "ca021c77b412aa7b105a1f418e63ede9", "score": "0.5645126", "text": "public Date getFechaRealizacion() {\n return fechaRealizacion;\n }", "title": "" }, { "docid": "10d11b06b9754daff1126c73e180234b", "score": "0.56398916", "text": "@Test\n public void testSetFechaEmision() {\n System.out.println(\"setFechaEmision\");\n Date fechaEmision = null;\n GuiaRemisionDTO instance = null;\n instance.setFechaEmision(fechaEmision);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "09d7ca96423457aa0ccd891eb147c13a", "score": "0.56379306", "text": "@Test\n\tpublic void deveriaLerADataHoraFinalEmissao() {\n\t\t\n\t\tCalendar data = registro.getDataHoraFinalEmissao();\n\t\tAssert.assertEquals(data.get(Calendar.YEAR), 2014);\n\t\tAssert.assertEquals(Calendar.DECEMBER, data.get(Calendar.MONTH));\n\t\tAssert.assertEquals(data.get(Calendar.DAY_OF_MONTH), 31);\n\t\tAssert.assertEquals(data.get(Calendar.HOUR_OF_DAY), 17);\n\t\tAssert.assertEquals(data.get(Calendar.MINUTE), 8);\n\t\tAssert.assertEquals(data.get(Calendar.SECOND), 2);\n\t\n\t}", "title": "" }, { "docid": "c3b3a82d74166342144706951e949ed1", "score": "0.5635125", "text": "@PrePersist\n\tpublic void prePersist() {\n\t\tdataRegistro = Instant.now();\n\t}", "title": "" }, { "docid": "afb981e71157a3a4b46766dffb25069f", "score": "0.5634899", "text": "public void setDateValidSO (Timestamp DateValidSO);", "title": "" }, { "docid": "34eeadf58e8a501bf62f52f1759e632a", "score": "0.56344485", "text": "private void setFechaRealizacion(Date fechaRealizacion) {\n this.fechaRealizacion = fechaRealizacion;\n }", "title": "" }, { "docid": "9d383f5f2ea4cb4a8f3e2adb11fcd01c", "score": "0.5633914", "text": "private Date setSugarORMNullDateHack(Date date) {\n if (date != null) return date;\n else return new Date(0);\n }", "title": "" } ]
4bded876178da39990f95cc889411b53
Method for converting a POJO to xml
[ { "docid": "6d4e9d639c7523ec621ba1fa234af228", "score": "0.6130055", "text": "private String getOrderAsXML(Order po) {\r\n\t\t// Marshal the PurchaseOrder into XML\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tMarshaller m;\r\n\t\ttry {\r\n\t\t\tJAXBContext jc = JAXBContext.newInstance(\"com.webclient.models\");\r\n\t\t\tm = jc.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r\n\t\t\tm.marshal(po, sw);\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sw.toString();\r\n\t}", "title": "" } ]
[ { "docid": "02d23ce4881c56e2217f88a8e92a36cb", "score": "0.7341112", "text": "public static String Obj2Xml(Object obj) {\r\n\t\txstream.alias(\"xml\", obj.getClass());\r\n\t\txstream.alias(\"item\", new String().getClass());\r\n\t\treturn xstream.toXML(obj);\r\n\t}", "title": "" }, { "docid": "d7abac84ad0c1138f60b24d794414408", "score": "0.6952374", "text": "public abstract String toXML();", "title": "" }, { "docid": "419d4df6883d8cbb639dea04e172ca9c", "score": "0.69213086", "text": "public static String convertToXml(Object obj) {\n\t\t// 创建输出流\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\t// 利用jdk中自带的转换类实现\n\t\t\tJAXBContext context = JAXBContext.newInstance(obj.getClass());\n\n\t\t\tMarshaller marshaller = context.createMarshaller();\n\t\t\t// 格式化xml输出的格式\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n\t\t\t// 将对象转换成输出流形式的xml\n\t\t\tmarshaller.marshal(obj, sw);\n\t\t} catch (JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sw.toString();\n\t}", "title": "" }, { "docid": "14f9f5b2652d2dcebff36fb5ef1e45df", "score": "0.6655909", "text": "public static void convertToXml(Object obj, String path) {\n\t\ttry {\n\t\t\t// 利用jdk中自带的转换类实现\n\t\t\tJAXBContext context = JAXBContext.newInstance(obj.getClass());\n\n\t\t\tMarshaller marshaller = context.createMarshaller();\n\t\t\t// 格式化xml输出的格式\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n\t\t\t// 将对象转换成输出流形式的xml\n\t\t\t// 创建输出流\n\t\t\tFileWriter fw = null;\n\t\t\ttry {\n\t\t\t\tfw = new FileWriter(path);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tmarshaller.marshal(obj, fw);\n\t\t} catch (JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e8e01405cbdc7e8bfc26bf89b5568b29", "score": "0.66252655", "text": "@Override\n\tpublic Object toXML() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3833b656f5eaf25ecb1ddcbe2dcd6cc9", "score": "0.65832984", "text": "Element toXML();", "title": "" }, { "docid": "0795ac308b348e7f1c5e5e9f361655fd", "score": "0.6580463", "text": "@Override\n public String toXml() {\n return xml;\n }", "title": "" }, { "docid": "9d2a778b86a1ca06b8cf77acdbc59f2f", "score": "0.65358627", "text": "@Override\n public String toXML() {\n \n // Instanciamos el motor de XML\n \n XMLHandler xml = new XMLHandler();\n \n Writer out = new StringWriter();\n try{\n OutputFormat format = new OutputFormat(xml.engine);\n format.setIndenting(true);\n \n XMLSerializer serializerToString = new XMLSerializer(out , format);\n serializerToString.serialize(this.getElement(xml));\n\n } catch(IOException ie) {\n ie.printStackTrace();\n }\n \n return out.toString();\n }", "title": "" }, { "docid": "a3de025eef4366ddd232319e10d2cf9a", "score": "0.65178543", "text": "@Override\n\tpublic Object toXML()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7a418ce4a8bd074a8a62f89a9166bffc", "score": "0.64010733", "text": "public static String sampleJavaBean2Xml(Object javaBean){\n JAXBContext jaxbContext = null;\n ByteArrayOutputStream baos = null;\n try {\n jaxbContext = JAXBContext.newInstance(javaBean.getClass());\n Marshaller marshaller = jaxbContext.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n baos = new ByteArrayOutputStream();\n marshaller.marshal(javaBean, baos);\n\n String result = decorate(baos.toString(), javaBean.getClass().getName());\n\n return result;\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "title": "" }, { "docid": "5730c3562625c17eebbc37bf94301b75", "score": "0.6324058", "text": "public String toXML() {\n StringWriter sw = new StringWriter();\n String xml = \"\";\n\n try {\n JAXBContext context = JAXBContext.newInstance(this.getClass());\n Marshaller marshaller = context.createMarshaller();\n\n marshaller.marshal(this, sw);\n xml = sw.toString();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return xml;\n }", "title": "" }, { "docid": "9db3bb96f9df678bb3342dbff04d12cb", "score": "0.63150674", "text": "@Test\n public void testToXML() {\n System.out.println(\"toXML\");\n Alumno instance = null;\n String expResult = \"\";\n String result = instance.toXML();\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "2f0f9448fe47c0ac1b188823151ecf02", "score": "0.629877", "text": "public String dumpAsXml();", "title": "" }, { "docid": "cf35265f095f7a94d83f4ad29d17deb3", "score": "0.6292574", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic abstract JAXBElement createJAXBElement(Object obj);", "title": "" }, { "docid": "40bc813a920082d6378127ae25e148fd", "score": "0.6271676", "text": "public interface Xmlable {\n\n public void toXml(XmlSerializer pXmlSerializer) throws IOException;\n\n}", "title": "" }, { "docid": "a845617e8865a227fca432c31c339e68", "score": "0.6257809", "text": "public String toXML() {\n return xml.toString();\n }", "title": "" }, { "docid": "857c079c758231d89520800cef06b7c1", "score": "0.62472343", "text": "public XmlElement toXml(Object o)\n {\n if (o == null)\n {\n return null;\n }\n\n return new SimpleElement(getXmlName(), toBinary(o));\n }", "title": "" }, { "docid": "90096fb67be0333f5cb71692006ef75a", "score": "0.6192523", "text": "public static <T> String objectToXml(Object obj) throws JAXBException, CteException {\r\n\r\n\t\tJAXBContext context = null;\r\n\t\tJAXBElement<?> element = null;\r\n\r\n\t\tString versao = ConfiguracoesIniciaisCte.getInstance().getVersaoCte();\r\n\r\n\t\tswitch (obj.getClass().getSimpleName()) {\r\n\r\n\t\tcase ConstantesUtil.XML.STATUS_SERVICO:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext\r\n\t\t\t\t\t\t.newInstance(br.inf.portalfiscal.cte.schema_300.consStatServCTe.TConsStatServ.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.consStatServCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsStatServCte((br.inf.portalfiscal.cte.schema_300.consStatServCTe.TConsStatServ) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext\r\n\t\t\t\t\t\t.newInstance(br.inf.portalfiscal.cte.schema_200.consStatServCTe.TConsStatServ.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.consStatServCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsStatServCte((br.inf.portalfiscal.cte.schema_200.consStatServCTe.TConsStatServ) obj);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.ENVIO_CTE:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.enviCTe.TEnviCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.enviCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createEnviCTe((br.inf.portalfiscal.cte.schema_300.enviCTe.TEnviCTe) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.enviCTe.TEnviCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.enviCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEnviCTe((br.inf.portalfiscal.cte.schema_200.enviCTe.TEnviCTe) obj);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.CONSULTA_RECIBO:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.consReciCTe.TConsReciCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.consReciCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsReciCTe((br.inf.portalfiscal.cte.schema_300.consReciCTe.TConsReciCTe) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.consReciCTe.TConsReciCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.consReciCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsReciCTe((br.inf.portalfiscal.cte.schema_200.consReciCTe.TConsReciCTe) obj);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.INUTILIZACAO:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.inutCTe.TInutCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.inutCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createInutCTe((br.inf.portalfiscal.cte.schema_300.inutCTe.TInutCTe) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.inutCTe.TInutCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.inutCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createInutCTe((br.inf.portalfiscal.cte.schema_200.inutCTe.TInutCTe) obj);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.CONSULTA_PROTOCOLO:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.consSitCTe.TConsSitCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.consSitCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsSitCTe((br.inf.portalfiscal.cte.schema_300.consSitCTe.TConsSitCTe) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.consSitCTe.TConsSitCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.consSitCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createConsSitCTe((br.inf.portalfiscal.cte.schema_200.consSitCTe.TConsSitCTe) obj);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.DISTRIBUICAO_DFE:\r\n\t\t\tcontext = JAXBContext.newInstance(DistDFeInt.class);\r\n\t\t\telement = new br.inf.portalfiscal.cte.schema_300.distDFeInt.ObjectFactory()\r\n\t\t\t\t\t.createDistDFeInt((DistDFeInt) obj);\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.PROC_EVENTO:\r\n\r\n\t\t\tswitch (obj.getClass().getName()) {\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_CANCELAR_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evCancCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evCancCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_200.evCancCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_CANCELAR_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evCancCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evCancCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evCancCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_EPEC_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evEPECCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evEPECCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_200.evEPECCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_EPEC_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evEPECCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evEPECCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evEPECCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_MULTIMODAL_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evEPECCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evRegMultimodal.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_200.evRegMultimodal.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_MULTIMODAL_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evEPECCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evRegMultimodal.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evRegMultimodal.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_CCE_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evCCeCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evCCeCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_200.evCCeCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_CCE_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evCCeCTe.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evCCeCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evCCeCTe.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROC_PRESTDESACORDO_V3:\r\n\t\t\t\tcontext = JAXBContext\r\n\t\t\t\t\t\t.newInstance(br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase ConstantesUtil.XML.PROC_GVT_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evGTV.TProcEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evGTV.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcEvento((br.inf.portalfiscal.cte.schema_300.evGTV.TProcEvento) obj);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new CteException(\"Objeto não mapeado no XmlUtil:\" + obj.getClass().getName());\r\n\t\t\t}\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.PROC_CTE:\r\n\t\t\tif (versao.equals(ConstantesUtil.VERSAO.V3_00)) {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.enviCTe.CteProc.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.enviCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createCteProc((br.inf.portalfiscal.cte.schema_300.enviCTe.CteProc) obj);\r\n\t\t\t} else {\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.enviCTe.CteProc.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.enviCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createCteProc((br.inf.portalfiscal.cte.schema_200.enviCTe.CteProc) obj);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.PROC_CTEOS:\r\n\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.procCTeOS.CteOSProc.class);\r\n\t\t\telement = new br.inf.portalfiscal.cte.schema_300.procCTeOS.ObjectFactory()\r\n\t\t\t\t\t.createCteOSProc((br.inf.portalfiscal.cte.schema_300.procCTeOS.CteOSProc) obj);\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.EVENTO:\r\n\r\n\t\t\tswitch (obj.getClass().getName()) {\r\n\r\n\t\t\tcase ConstantesUtil.XML.CANCELAR_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evCancCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evCancCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_200.evCancCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.CANCELAR_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evCancCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evCancCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evCancCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.EPEC_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evEPECCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evEPECCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_200.evEPECCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.EPEC_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evEPECCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evEPECCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evEPECCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.MULTIMODAL_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evRegMultimodal.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evRegMultimodal.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_200.evRegMultimodal.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.MULTIMODAL_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evRegMultimodal.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evRegMultimodal.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evRegMultimodal.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.CCE_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.evCCeCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.evCCeCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_200.evCCeCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.CCE_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evCCeCTe.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evCCeCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evCCeCTe.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PRESTDESACORDO_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evPrestDesacordo.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.GVT_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.evGTV.TEvento.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.evGTV.ObjectFactory()\r\n\t\t\t\t\t\t.createTEvento((br.inf.portalfiscal.cte.schema_300.evGTV.TEvento) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new CteException(\"Objeto não mapeado no XmlUtil:\" + obj.getClass().getName());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbreak;\r\n\r\n\t\tcase ConstantesUtil.XML.PROT_CTE:\r\n\r\n\t\t\tswitch (obj.getClass().getName()) {\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTE_CONSULTA_RECIBO_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.retConsReciCTe.TProtCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.retConsReciCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTe((br.inf.portalfiscal.cte.schema_200.retConsReciCTe.TProtCTe) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTE_CONSULTA_RECIBO_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.retConsReciCTe.TProtCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.retConsReciCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTe((br.inf.portalfiscal.cte.schema_300.retConsReciCTe.TProtCTe) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTE_PROC_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.procCTe.TProtCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.procCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTe((br.inf.portalfiscal.cte.schema_200.procCTe.TProtCTe) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTE_PROC_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.procCTe.TProtCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.procCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTe((br.inf.portalfiscal.cte.schema_300.procCTe.TProtCTe) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTE_CONSULTA_SITUACAO_V2:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_200.retConsSitCTe.TProtCTe.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_200.retConsSitCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTe((br.inf.portalfiscal.cte.schema_200.retConsSitCTe.TProtCTe) obj);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new CteException(\"Objeto não mapeado no XmlUtil:\" + obj.getClass().getName());\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase ConstantesUtil.XML.PROT_CTEOS:\r\n\r\n\t\t\tswitch (obj.getClass().getName()) {\r\n\r\n\t\t\tcase ConstantesUtil.XML.PROT_CTEOS_PROC_V3:\r\n\t\t\t\tcontext = JAXBContext.newInstance(br.inf.portalfiscal.cte.schema_300.retEnviCTe.TProtCTeOS.class);\r\n\t\t\t\telement = new br.inf.portalfiscal.cte.schema_300.retEnviCTe.ObjectFactory()\r\n\t\t\t\t\t\t.createTProcCTeOS((br.inf.portalfiscal.cte.schema_300.retEnviCTe.TProtCTeOS) obj);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new CteException(\"Objeto não mapeado no XmlUtil:\" + obj.getClass().getName());\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tthrow new CteException(\"Objeto não mapeado no XmlUtil:\" + obj.getClass().getSimpleName());\r\n\t\t}\r\n\t\t\r\n\t\tMarshaller marshaller = context.createMarshaller();\r\n\r\n\t\tmarshaller.setProperty(\"jaxb.encoding\", \"Unicode\");\r\n\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.FALSE);\r\n\t\tmarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\r\n\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tmarshaller.marshal(element, sw);\r\n\r\n\t\tStringBuilder xml = new StringBuilder();\r\n\t\txml.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\").append(sw.toString());\r\n\r\n\t\t// if((obj.getClass().getSimpleName().equals(PROC_EVENTO))){\r\n\t\t// return replacesNfe(xml.toString().replaceAll(\"procEvento\",\r\n\t\t// \"procEventoCTe\"));\r\n\t\t// }\r\n\t\treturn replacesCte(xml.toString());\r\n\r\n\t}", "title": "" }, { "docid": "763bbd9d78281aa44c4130cb8a476f12", "score": "0.6163613", "text": "public String toXML(Class<? extends Component> ownerClass, T value);", "title": "" }, { "docid": "7910a789a494de31a41b1a595e15e943", "score": "0.6143244", "text": "public Element toXml(Element root);", "title": "" }, { "docid": "f278193fdf77d6602671061c55f8f36c", "score": "0.61151963", "text": "public String createXMLString(T obj, Class<?> cls) throws JAXBException {\r\n\t\tif (obj != null) {\r\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(cls);\r\n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\r\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\tStringWriter sw = new StringWriter();\r\n\t\t\tjaxbMarshaller.marshal(obj, sw);\r\n\t\t\tString xmlString = sw.toString();\r\n\r\n\t\t\treturn xmlString;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "48c3bc5b98d39175eef3baaf3c7b42e7", "score": "0.60622925", "text": "public native String toXML();", "title": "" }, { "docid": "efb2ccf6d6928e4241ae6449a0956cf9", "score": "0.60475266", "text": "public static StringWriter marshal(Object object) {\n StringWriter stringWriter = new StringWriter();\n try {\n JAXBContext context = JAXBContext.newInstance( object.getClass() ); \n Marshaller m = context.createMarshaller(); \n m.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE ); \n m.marshal( object, stringWriter );\n return stringWriter;\n } catch (JAXBException ex) {\n Logger.getLogger(XMLUtil.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "title": "" }, { "docid": "9a4851c4b987dca5cdff1e3402fb59b9", "score": "0.60445887", "text": "private static void phyloObjToXML(Phyloxml phylo, String filePath) {\n try {\n // Create JAXB Context\n JAXBContext jaxbContext = JAXBContext.newInstance(Phyloxml.class);\n\n // Create Marshaller\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n // Store XML to File\n File file = new File(filePath);\n\n DOMResult domResult = new DOMResult();\n // Writes XML file to file-system\n jaxbMarshaller.marshal(phylo, domResult);\n\n // Required formatting\n Transformer transformer = null;\n transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.transform(new DOMSource(domResult.getNode()), new StreamResult(file));\n\n } catch (JAXBException e) {\n e.printStackTrace();\n } catch (TransformerException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6aec7fa1a7f19bb37ac3a81b736d4199", "score": "0.5946865", "text": "public String asXML() throws Exception {\n\t\t\tJAXBContext context = JAXBContext.newInstance(Folder.class);\n\t\t\tMarshaller marshaller = context.createMarshaller();\n\t\t\tjava.io.StringWriter sw = new StringWriter();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(this, sw);\n\t\t\tString result=sw.toString();\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "93c3b07ea7435dc9bdc953f4967d6376", "score": "0.59119475", "text": "public PojoWriter createPojoWriter();", "title": "" }, { "docid": "8ae7d1bb883d09a8c67205ada3e79b6c", "score": "0.58921486", "text": "public String toXML() throws ConversionException {\n\t\treturn ConverterFactory.XML.convertTo(this);\n\t}", "title": "" }, { "docid": "7b438defc19a866d21016daf25dc9fb1", "score": "0.5887892", "text": "@Override\n\tpublic String toXML() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tbuf.append(\"<\").append(getElementName()).append(\" xmlns=\\\"\")\n\t\t\t\t.append(getNamespace()).append(\"\\\">\");\n\t\tbuf.append(item.toXML());\n\t\tbuf.append(\"</\").append(getElementName()).append(\">\");\n\t\treturn buf.toString();\n\t}", "title": "" }, { "docid": "aba17756bdd5fa7810dc0ef384917d34", "score": "0.58681256", "text": "public static void serializeObjectToXML(String xmlFileLocation, Object objectToSerialize) throws Exception \n {\n FileOutputStream os = new FileOutputStream(xmlFileLocation);\n XMLEncoder encoder = new XMLEncoder(os);\n encoder.writeObject(objectToSerialize);\n encoder.close(); \n }", "title": "" }, { "docid": "61dbaa8eef194a688ce5ae57a1aaa268", "score": "0.58502424", "text": "public Document serialize(Object obj)\r\n\t{\r\n\t\tElement serialized = new Element(\"serialized\");\r\n\t\tDocument doc = new Document(serialized);\r\n\t\t\r\n\t\tserializeObject(obj, doc.getRootElement(), doc);\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "title": "" }, { "docid": "1059124eb5c1f2841c1cb77dbaba269a", "score": "0.5833694", "text": "@Override\n\tpublic void serialize(Object obj) {\n\t\tClass cls = obj.getClass();\n\t\tField flds[] = cls.getDeclaredFields();\n\t\tString classname = cls.getName();\n\t\tString var = new String();\n\t\toutputfile.writeLineToFile(\"<fqn:\"+classname+\">\\n\");\n\t\tfor(Field fld: flds)\n\t\t{\n\t\t\ttry {\n\t\t\t\tString methdName =\"get\"+fld.getName(); \n\t\t\t\tMethod meth = cls.getMethod(methdName);\n\t\t\t\tif(fld.getType().getTypeName().contains(\"String\"))\n\t\t\t\t\tvar = \"<type=String\"+\", var=\"+fld.getName()+\", value=\"+meth.invoke(obj)+\">\\n\";\n\t\t\t\telse\n\t\t\t\tvar = \"<type=\"+fld.getType().getTypeName()+\", var=\"+fld.getName()+\", value=\"+meth.invoke(obj)+\">\\n\";\n\t\t\t} catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException | NoSuchMethodException | SecurityException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\toutputfile.writeLineToFile(var);\n\t\t}\n\t\t//System.out.println(classname);\n\t\toutputfile.writeLineToFile(\"</fqn:\"+classname+\">\\n\");\n\t}", "title": "" }, { "docid": "e50b2cd48bcf41477739d20bdab97e3e", "score": "0.58249223", "text": "@Test\n @Ignore\n public void testSimpleToXML() throws Exception {\n \tString expected=\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\"+\n\t\t \"<noisrev author=\\\"Jimbo Clucknasty\\\" date=\\\"Some time today\\\" xsi:type=\\\"java:com.ail.core.Version\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\"+cr+\n\t\t\t\t\t\t\" <comment>The floor is far to dark</comment>\"+cr+\n\t\t\t\t\t\t\"</noisrev>\"+cr;\n\n \tVersion version=core.newType(Version.class);\n version.setAuthor(\"Jimbo Clucknasty\");\n version.setComment(\"The floor is far to dark\");\n version.setDate(\"Some time today\");\n\n XMLString res=core.toXML(version);\n\n assertEquals(expected, res.toString());\n }", "title": "" }, { "docid": "1ef797684ab39fdd82a1f4e414651f5a", "score": "0.577767", "text": "public abstract POJOToBeBuild buildPOJO();", "title": "" }, { "docid": "f1a974831da0452888cf5167419aa8ca", "score": "0.5741528", "text": "public String toXml( Object object, String name, String prefix )\n {\n String xml = new String();\n\n if (null == object)\n {\n if (null != prefix)\n {\n xml += prefix;\n }\n\n if (null != name)\n {\n xml += \"<\" + name + \"/>\\r\\n\";\n } else\n {\n xml += \"<Null/>\\r\\n\";\n }\n\n } else\n {\n\n // Integral scalar\n if ((object instanceof Short) || (object instanceof Integer)\n || (object instanceof Long))\n {\n xml = toXml_Scalar( (Number) object, name, INTEGER, prefix );\n\n // Flating point scalar\n } else if (object instanceof Number)\n {\n xml = toXml_Scalar( (Number) object, name, FLOATING, prefix );\n\n // String\n } else if (object instanceof String)\n {\n xml = toXml_String( (String) object, name, prefix );\n\n // Vector - atomic integers\n } else if ((object instanceof short[]) || (object instanceof int[])\n || (object instanceof long[])\n || (object instanceof float[])\n || (object instanceof double[])\n || (object instanceof Number[]))\n {\n xml = toXml_Vector( object, name, prefix );\n\n // Matrix - atomic integers\n } else if ((object instanceof short[][])\n || (object instanceof int[][])\n || (object instanceof long[][])\n || (object instanceof float[][])\n || (object instanceof double[][])\n || (object instanceof Number[][]))\n {\n xml = toXml_Matrix( object, name, prefix );\n\n }\n }\n\n return (xml);\n }", "title": "" }, { "docid": "7882ee93aa486e2a5e76ef9c73c83054", "score": "0.5733788", "text": "public static void doJAXBXml () throws Exception {\n Course course = new Course(1, \"Coruse-1\", 5);\n course.setTeacher(new Teacher(1, \"Teacher-1\"));\n\n JAXBContext context = JAXBContext.newInstance(Course.class);\n\n //Marshal Java object to XML\n Marshaller marshaller = context.createMarshaller();\n //Set option to format generated XML\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n StringWriter stringWriter = new StringWriter();\n //Marshal Course object and write to the StringWriter\n marshaller.marshal(course, stringWriter);\n //Get String from the StringWriter\n String courseXMLString = stringWriter.getBuffer().toString();\n stringWriter.close();\n //Print course XML\n System.out.println(courseXMLString);\n\n //Now unmarshal courseXML to create Course object\n Unmarshaller unmarshaller = context.createUnmarshaller();\n //Create StringReader from courseXml\n StringReader stringReader = new StringReader(courseXMLString);\n //Create StreamSource which will be used by JAXB unmarshaller\n StreamSource streamSource = new StreamSource(stringReader);\n Course unmarshalledCourse = unmarshaller.unmarshal(streamSource, Course.class).getValue();\n System.out.println(\"--------------------------\\nUnmarshalled course name - \" + unmarshalledCourse.getName());\n stringReader.close();\n }", "title": "" }, { "docid": "4f417536bf56de24d7c387f65abc3fb8", "score": "0.5727038", "text": "@Test\n @Override\n public void test_toXml() throws Exception {\n }", "title": "" }, { "docid": "0d247aac3aabe1c2ce9f6e9c342f1042", "score": "0.56854117", "text": "public Node asXML();", "title": "" }, { "docid": "5e8da6472b6463247c2401910988633b", "score": "0.5673221", "text": "public String toXML() {\n return XmlWriter.toFormattedString(this);\n }", "title": "" }, { "docid": "92b3a97b3595d08788cea33cb82f51e9", "score": "0.56568646", "text": "public XMLtoBinary(){\n\n }", "title": "" }, { "docid": "b61ba5aaa70b93b8effcdc379e374d48", "score": "0.56331426", "text": "@Test\n public void testMakingXMLFromClass()\n throws Exception {\n AllDefenders aDef = new AllDefenders();\n\n aDef.setSCountryName(\"Germany\");\n\n StringWriter ww = new StringWriter();\n StreamResult result = new StreamResult(ww);\n\n wtJaxb.getMarshaller().marshal(aDef, result);\n Assert.assertEquals(stringSample, ww.toString());\n log.debug(ww.toString());\n }", "title": "" }, { "docid": "419c5340329b2c6b4664a3c0b440df5b", "score": "0.5609544", "text": "@Override\r\n public String serializeDocumentToXml() {\r\n String tempXmlDocumentContents = xmlDocumentContents;\r\n xmlDocumentContents = null;\r\n String xmlForWorkflow = super.serializeDocumentToXml();\r\n xmlDocumentContents = tempXmlDocumentContents;\r\n return xmlForWorkflow;\r\n }", "title": "" }, { "docid": "b832d79a54d16693c541cf27c3493754", "score": "0.5585559", "text": "public void toXml(Object object, String path) {\n try {\n JAXBContext context = MenuSerialization.getJaxbContext();\n Marshaller marshaller = context.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,\n new Boolean(true));\n LocalizationFile file = pm\n .getLocalizationFile(caveConfigured, path);\n // make sure the directory exists!\n if (!file.getFile().exists()) {\n file.getFile().getParentFile().mkdirs();\n }\n\n marshaller.marshal(object, pm.getFile(caveConfigured, path));\n file.save();\n } catch (JAXBException e) {\n statusHandler.error(\"Unable to process the menu: \" + path, e);\n } catch (LocalizationOpFailedException e) {\n statusHandler.error(\"Unable to process the menu: \" + path, e);\n }\n }", "title": "" }, { "docid": "964af3c36766eca967aa696e72c451f7", "score": "0.55692303", "text": "public static void marshal(XmlElement el, Object obj) {\n if (obj == null) {\n throw new IllegalArgumentException(\"Object required\");\n }\n final IType type = TypeSystem.getTypeFromObject(obj);\n if (!type.getTypeInfo().hasAnnotation(ExportableMarshalInfo._exportAnnoType.get())) {\n throw new IllegalArgumentException(type.getRelativeName() + \" is not exportable\");\n }\n gw.internal.xml.config.XmlServices.marshal(el, type, obj, new MarshalContext());\n }", "title": "" }, { "docid": "4afdac84d558aeac97b228a9409a4447", "score": "0.55560565", "text": "private void serializeObject(Object obj, Element root, Document doc) \r\n\t{\r\n\t\tint objId = -1;\t\r\n\t\tElement objectElement;\r\n\t\tAttribute classAtt, idAtt;\r\n\t\t\r\n\t\tif(obj != null)\r\n\t\t{\r\n\t\t\tobjId = System.identityHashCode(obj);\r\n\t\t\tif(!_SerializedObjects.containsKey(objId))\r\n\t\t\t{\r\n\t\t\t\tobjectElement = new Element(\"object\");\r\n\t\t\t\tclassAtt = new Attribute(\"class\", obj.getClass().getName());\r\n\t\t\t\tidAtt = new Attribute(\"id\", String.valueOf(objId));\r\n\t\t\t\t\r\n\t\t\t\t_SerializedObjects.put(objId, obj);\r\n\t\t\t\t\r\n\t\t\t\tobjectElement.setAttribute(classAtt);\r\n\t\t\t\tobjectElement.setAttribute(idAtt);\r\n\t\t\t\t\r\n\t\t\t\troot.addContent(objectElement);\r\n\t\t\t\titerateObjFields(obj, objectElement, doc);\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "51bcd6b48cb43f68866a83a12d6b9905", "score": "0.55311483", "text": "public Element toXml(Document doc)\n {\n if(doc == null)\n {\n throw new IllegalArgumentException(\"doc must not be null\");\n }\n Element root = PSXmlDocumentBuilder.createRoot(doc, ROOT);\n\n Iterator keys = m_params.keySet().iterator();\n String key = null;\n String value = null;\n Object obj = null;\n while(keys.hasNext())\n {\n key = keys.next().toString();\n obj = m_params.get(key);\n if(obj == null)\n continue;\n if(obj instanceof String)\n {\n PSXmlDocumentBuilder.addElement(doc, root, key, obj.toString());\n }\n else if(obj instanceof List)\n {\n List values = (List)obj;\n Object val = null;\n for(int i=0; i<values.size(); i++)\n {\n val = values.get(i);\n PSXmlDocumentBuilder.addElement(doc, root, key, val.toString());\n }\n }\n }\n return root;\n }", "title": "" }, { "docid": "b897da17d7ebf492d315d4bf8e44f513", "score": "0.5529773", "text": "@Override\n public void convert(JAXBParameter obj) {\n this.setId(obj.getName());\n this.setValue(obj.getvalue());\n this.addAttr(OVERWRITE_ATTR, obj.getOverwrite());\n }", "title": "" }, { "docid": "0a867df59122391dc4ab6a8e5ef00e3d", "score": "0.5522845", "text": "public void printPOJO()\n {\n }", "title": "" }, { "docid": "335891e24581f052871046068a826252", "score": "0.55146456", "text": "public String toString() {\n return (toXML());\n }", "title": "" }, { "docid": "6722847b4aba93475ea85a8a06417dd0", "score": "0.55119336", "text": "public static Document toXML(){\r\n\t\tDocument doc = FileIO.newEmptyDoc();\r\n\t\tElement map = doc.createElement(\"map\");\r\n\r\n\t\tmap.setAttribute(\"money\", \"\"+money);\r\n\t\t\r\n\t\tfor(Shape s:shapes){\r\n\t\t\tmap.appendChild(s.toXML(doc));\r\n\t\t}\r\n\t\t\r\n\t\tdoc.appendChild(map);\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "title": "" }, { "docid": "0619d660f3b01932276a6feb8781229d", "score": "0.54988396", "text": "void serializeToXml(XmlSerializer xml) {\n try {\n xml.startTag(null, XmlSchemaPersistentMemory.TAG_CLASSSTATE_CLASS);\n\n xml.attribute(null, XmlSchemaPersistentMemory.ATTRIBUTE_NAME, mClassName);\n\n for (Map.Entry<String, FieldState> field : mFields.entrySet()) {\n xml.startTag(null, XmlSchemaPersistentMemory.TAG_OBJECT_FIELD);\n xml.attribute(null, XmlSchemaPersistentMemory.ATTRIBUTE_NAME, (field != null) ? field.getKey() : \"\");\n long hashCode = UniqueObjectIdentifier.NULL_IDENTIFIER;\n if (field != null) {\n final FieldState fieldState = field.getValue();\n if (fieldState != null) {\n hashCode = fieldState.getHashCode();\n }\n }\n xml.attribute(null, XmlSchemaPersistentMemory.ATTRIBUTE_HASH_CODE, Long.toString(hashCode));\n xml.endTag(null, XmlSchemaPersistentMemory.TAG_OBJECT_FIELD);\n }\n\n xml.endTag(null, XmlSchemaPersistentMemory.TAG_CLASSSTATE_CLASS);\n } catch (Exception e) {\n Logging.error(LOG_TAG, \"Exception while serializing to XML: \" + e.toString(), e);\n }\n }", "title": "" }, { "docid": "35e914c8ff37dadb9852eaef6fa175e9", "score": "0.5490271", "text": "public static <A extends XStreamInOutInterface> String writeXMLToString(A o) throws Exception {\n\t\treturn writeXMLToString(o,o.getXStreamSetup().getXStream());\n\t}", "title": "" }, { "docid": "4fdeab18fffea934bdb337a3a6f25c0b", "score": "0.54802334", "text": "public Node marshalToNode(Object objToMarshal);", "title": "" }, { "docid": "96348e73c0f02f45b7a3ef0baa6c1903", "score": "0.5475977", "text": "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( ScheduleDailyRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "title": "" }, { "docid": "ffad0141a99e26c462c63ad94562304d", "score": "0.545107", "text": "public static String fieldsToString(Object obj) {\n\t\tXStream xs = new XStream();\n\t\treturn \"\\n\" + xs.toXML(obj);\n\t}", "title": "" }, { "docid": "208414e8e1180f394d7634a6d6e1176d", "score": "0.544945", "text": "public Element toXML(Document doc)\n {\n Element element = doc.createElement(XML_NAME);\n\n element.setAttribute(NAME_ATTR, getName());\n element.setAttribute(TYPE_ATTR, getType());\n if (!StringUtils.isBlank(getDescription()))\n element.setAttribute(DESCRIPTION_ATTR, getDescription());\n \n return element;\n }", "title": "" }, { "docid": "794186a3714cd30d38ee824499a2cb23", "score": "0.5424254", "text": "public void dataToXml() {\n try {\n OutputStream outputStream = context.openFileOutput(fileName, Context.MODE_PRIVATE);\n persister.write(this, outputStream);\n outputStream.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "6ef40cb87a5e70c0c33de4ed2d71fb91", "score": "0.53695965", "text": "public String getXml() {\n\r\n StringBuffer xmlOut = new StringBuffer();\r\n \r\n xmlOut.append(\"<product>\");\r\n xmlOut.append(\"<id>\");\r\n xmlOut.append(id);\r\n xmlOut.append(\"</id>\"); \r\n xmlOut.append(\"<title><![CDATA[\");\r\n xmlOut.append(title);\r\n xmlOut.append(\"]]></title>\");\r\n xmlOut.append(\"<price>\");\r\n xmlOut.append(price); \r\n xmlOut.append(\"</price>\");\r\n xmlOut.append(\"<description><![CDATA[\");\r\n xmlOut.append(description); \r\n xmlOut.append(\"]]></description>\");\r\n xmlOut.append(\"<quantity><![CDATA[\");\r\n xmlOut.append(qty); \r\n xmlOut.append(\"]]></quantity>\");\r\n xmlOut.append(\"</product>\");\r\n \r\n return xmlOut.toString();\r\n }", "title": "" }, { "docid": "5873cc92cbaeedee1cc3f81a1f14a72a", "score": "0.5368431", "text": "public T caseXml(Xml object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6276a3020d9723a569ce3da3e5828b48", "score": "0.5365765", "text": "public String serialize() {\n\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n BufferedOutputStream outputStream = new BufferedOutputStream(byteStream);\n XMLEncoder encoder = new XMLEncoder(outputStream);\n encoder.writeObject(this);\n encoder.close();\n try {\n outputStream.close();\n byteStream.close();\n } catch (IOException e) {\n System.out.println(\"Exception serializing data model: \" + e.getMessage());\n e.printStackTrace();\n }\n\n return byteStream.toString();\n }", "title": "" }, { "docid": "7f61a4a1d130c9b372faa0211f407d71", "score": "0.5356649", "text": "public Object getXml() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b927354bb7ef930be24be9e95732355d", "score": "0.53451157", "text": "void toXML( AutoString out, int level ) throws FndException\n {\n if(DEBUG) debug(\"ProfileBuffer.toXML(\"+level+\")\");\n\n ProfileUtils.indent(out, level);\n out.append(\"<\",XML_NAME);\n if(level==0)\n {\n out.append(\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\",ProfileUtils.NL);\n out.append(\" xmlns:ifsrecord=\\\"urn:ifsworld-com:ifsrecord\\\"\",ProfileUtils.NL);\n out.append(\" xmlns=\\\"urn:ifsworld-com:schemas:profile_buffer\\\"\");\n }\n out.append(\">\",ProfileUtils.NL);\n\n for(int i=0; i<countItems(); i++)\n {\n ProfileItem item = (ProfileItem)getItem(i);\n //out.append( item.toXML(out, level+1) );\n item.toXML(out, level+1);\n }\n\n ProfileUtils.indent(out, level);\n out.append(\"</\",XML_NAME,\">\",ProfileUtils.NL);\n }", "title": "" }, { "docid": "8cb8b7979da560fdf68433090130ee37", "score": "0.53361946", "text": "public String marshalToString(Object objToMarshal);", "title": "" }, { "docid": "cff31c7a65caf616cd406ee012f882ed", "score": "0.53282934", "text": "public Document getDocument( Object o ) throws TransformerException;", "title": "" }, { "docid": "7f70399172b1a5e2406194b4d0585d8d", "score": "0.53066", "text": "@RequestMapping(\"/toXML\")\n @ResponseBody\n public DemoVo toXML(final Long id) throws Exception {\n return demoVoList.get(id.intValue());\n }", "title": "" }, { "docid": "4ffc55c179d2c0d1da2aa6d54f2fe260", "score": "0.5276436", "text": "public static boolean saveObjectToXML(String filePath, Object o, Class<?>... c) {\n\t\ttry {\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(c);\n\n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n\t\t\t//\n\t\t\t// for getting nice formatted output\n\t\t\t//\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,\n\t\t\t\t\tBoolean.TRUE);\n\n\t\t\t// specify the location and name of xml file to be created\n\t\t\tFile XMLfile = new File(filePath);\n\n\t\t\t//\n\t\t\t// Writing to XML file\n\t\t\t//\n\t\t\tjaxbMarshaller.marshal(o, XMLfile);\n\n\t\t\t// Writing to console: just for debug-purposes\n\t\t\t// jaxbMarshaller.marshal(o, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "78f44a054b16b38e28c01a47ffece541", "score": "0.52757907", "text": "@Override\n protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n out.writeStartElement(getXMLElementTagName());\n out.writeAttribute(\"ID\", getId());\n out.writeEndElement();\n }", "title": "" }, { "docid": "e4d0b1ef4dc6f6c2262c5cb2751ff00f", "score": "0.525708", "text": "public void writeXML(String nombreArchivo, T objeto){\r\n try {\r\n File xmlFile = new File(database, nombreArchivo + \".xml\");\r\n JAXBContext jaxbContext = JAXBContext.newInstance(typeParameterClass);\r\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\r\n\r\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n jaxbMarshaller.marshal(objeto, xmlFile);\r\n \r\n //Imprime en pantalla el archivo xml\r\n //jaxbMarshaller.marshal(objeto, System.out);\r\n } catch (JAXBException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "b30aafacfcd4d1a83dad9ae5abffec4d", "score": "0.5238521", "text": "public void toXML(StringBuffer xmlDoc) throws Exception {\r\n if (IntiroLog.d()) {\r\n IntiroLog.detail(getClass(), getClass().getName() + \".toXML(StringBuffer): entered\");\r\n }\r\n\r\n XMLBuilder builder = new XMLBuilder();\r\n\r\n //Get start of document\r\n builder.getStartOfDocument(xmlDoc);\r\n\r\n //Company combo\r\n companyParentCombo.toXML(xmlDoc);\r\n\r\n //Title\r\n xmlDoc.append(XML_TITLE_START);\r\n xmlDoc.append(title);\r\n xmlDoc.append(XML_TITLE_END);\r\n\r\n //Mode\r\n xmlDoc.append(XML_MODE_START);\r\n xmlDoc.append(mode);\r\n xmlDoc.append(XML_MODE_END);\r\n\r\n //Company\r\n if (getModifiedCompany() != null) {\r\n getModifiedCompany().toXML(xmlDoc);\r\n }\r\n\r\n //Get end of document\r\n builder.getEndOfDocument(xmlDoc);\r\n\r\n if (IntiroLog.d()) {\r\n IntiroLog.detail(getClass(), getClass().getName() + \".toXML(StringBuffer): xmlDoc = \" + xmlDoc);\r\n }\r\n }", "title": "" }, { "docid": "84cfe7c1166849fa022da757af11bc45", "score": "0.523247", "text": "public String toXml( String prefix )\n {\n String xml = new String();\n String pre = (null == prefix) ? \"\" : prefix;\n\n String[] classArray = getClass().getName().replace( '.', '\\u2345' )\n .split( \"\\u2345\" );\n String tag = classArray[classArray.length - 1];\n\n xml += pre + \"<\" + tag + \">\\r\\n\";\n\n if (null == command)\n {\n xml += pre + \" <Command/>\\r\\n\";\n } else\n {\n xml += pre + \" <Command>\" + command + \"</Command>\\r\\n\";\n }\n\n int dataMap_size = this.dataMap.size();\n if (0 == dataMap_size)\n {\n xml += pre + \" <Data/>\\r\\n\";\n } else\n {\n xml += pre + \" <Data items=\\\"\" + dataMap_size + \"\\\">\\r\\n\";\n\n Iterator iterator = this.dataMap.keySet().iterator();\n while (iterator.hasNext())\n {\n String key = (String) iterator.next();\n Object val = this.dataMap.get( key );\n xml += toXml( val, key, pre + \" \" );\n }\n\n xml += pre + \" </Data>\\r\\n\";\n }\n\n if (null == matlabResult)\n {\n xml += pre + \" <MatlabResult/>\\r\\n\";\n } else\n {\n xml += pre + \" <MatlabResult>\\r\\n\";\n xml += toXml( this.matlabResult, null, pre + \" \" );\n xml += pre + \" </MatlabResult>\\r\\n\";\n }\n\n xml += pre + \"</\" + tag + \">\\r\\n\";\n\n return (xml);\n }", "title": "" }, { "docid": "d115b98c2727ac7f2921561fa127a921", "score": "0.5207198", "text": "@Override\n public String serialize(Book book, SerializationContext context) {\n StringBuilder xmlBuilder = buildXml(book);\n return xmlBuilder.toString();\n }", "title": "" }, { "docid": "26068c029603bab4c980f4c19b543e2e", "score": "0.5181124", "text": "public Document toDocument();", "title": "" }, { "docid": "ebb12512cee741d48eb50c13333f413f", "score": "0.51592815", "text": "public String getXML() {\n StringBuilder retval = new StringBuilder();\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"name\", getName() ) );\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"description\", getDescription() ) );\n retval.append( \" \" ).append( XMLHandler.addTagValue( \"type\", configId ) );\n\n retval.append( AttributesUtil.getAttributesXml( attributesMap ) );\n\n return retval.toString();\n }", "title": "" }, { "docid": "604e04bbf9da4596b20c2423d241a629", "score": "0.5154388", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "title": "" }, { "docid": "604e04bbf9da4596b20c2423d241a629", "score": "0.5154388", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "title": "" }, { "docid": "604e04bbf9da4596b20c2423d241a629", "score": "0.5154388", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "title": "" }, { "docid": "c4869d8e9e274481ca35ba3a55987180", "score": "0.5137851", "text": "private ByteArrayOutputStream createNewXML(final CQLQualityDataModelWrapper qualityDataSetDTO) {\n\t\tlogger.info(\"In CQLServiceImpl.createXml()\");\n\t\tMapping mapping = new Mapping();\n\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tmapping.loadMapping(new ResourceLoader().getResourceAsURL(\"ValueSetsMapping.xml\"));\n\t\t\tMarshaller marshaller = new Marshaller(new OutputStreamWriter(stream));\n\t\t\tmarshaller.setMapping(mapping);\n\t\t\tmarshaller.marshal(qualityDataSetDTO);\n\t\t\tlogger.debug(\"Marshalling of QualityDataSetDTO is successful..\" + stream.toString());\n\t\t} catch (Exception e) {\n\t\t\tif (e instanceof IOException) {\n\t\t\t\tlogger.info(\"Failed to load ValueSetsMapping.xml\" + e);\n\t\t\t} else if (e instanceof MappingException) {\n\t\t\t\tlogger.info(\"Mapping Failed\" + e);\n\t\t\t} else if (e instanceof MarshalException) {\n\t\t\t\tlogger.info(\"Unmarshalling Failed\" + e);\n\t\t\t} else if (e instanceof ValidationException) {\n\t\t\t\tlogger.info(\"Validation Exception\" + e);\n\t\t\t} else {\n\t\t\t\tlogger.info(\"Other Exception\" + e);\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Exiting CQLServiceImpl.createXml()\");\n\t\treturn stream;\n\t}", "title": "" }, { "docid": "f25c889b1d9ebb26fca4c687a07920c0", "score": "0.5127849", "text": "public static File marshallXML(Object object, File file) {\n try {\n try (FileOutputStream fos = new FileOutputStream(file)) {\n MARSHALLER.marshal(object, fos);\n return file;\n } catch (IOException ex) {\n LOG.log(Level.SEVERE, \"Exception marshalling XML\", ex);\n }\n } catch (JAXBException ex) {\n LOG.log(Level.SEVERE, null, ex);\n }\n return null;\n }", "title": "" }, { "docid": "83320de3bf11975b628c517601a19f2b", "score": "0.5117014", "text": "public String toXMLContent() {\n\n\t\tString result = \"\\t<Pegman\" + \" gameSessionId=\\\"\" + gameSessionId + \"\\\"\" + \" location=\\\"\" + location + \"\\\"\"\n\t\t\t\t+ \" yCoor=\\\"\" + yCoor + \"\\\"\" + \" xCoor=\\\"\" + xCoor + \"\\\"\"\n\t\t\t\t+ \" zoom=\\\"\" + zoom + \"\\\"\" + \" changedY=\\\"\" + changedY + \"\\\"\"\n\t\t\t\t+ \" changedX=\\\"\" + changedX + \"\\\"\" + \" changedZoom=\\\"\"\n\t\t\t\t+ changedZoom + \"\\\" >\\n\";\n\n\t\tresult = result.concat(\"\\t</Pegman>\\n\");\n\t\tSystem.out.println(\"Pegman Object XML:\\n\" + result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "5f8ff265012783518fd89e60919ea3bd", "score": "0.51048434", "text": "private Object createXmlHolder(Object javaResult)\r\n throws HostTransformException {\r\n try {\r\n StringWriter writer = new StringWriter();\r\n mXmlMarshaller.marshal(javaResult, writer);\r\n return writer.toString();\r\n } catch (JAXBException e) {\r\n throw new HostTransformException(e);\r\n }\r\n }", "title": "" }, { "docid": "139b12017c3b09d0ed4913777806cabe", "score": "0.5102726", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate void serializeArrayObject(Object obj, Element root, Document doc) \r\n\t{\r\n\t\tint objId = -1;\t\r\n\t\tElement objectElement, valueElement;\r\n\t\tAttribute classAtt, idAtt, sizeAtt;\r\n\t\tObject nextArrObj;\r\n\t\t\r\n\t\tif(obj != null && obj.getClass().isArray())\r\n\t\t{\r\n\t\t\tobjId = System.identityHashCode(obj);\r\n\t\t\tif(!_SerializedObjects.containsKey(objId))\r\n\t\t\t{\r\n\t\t\t\tobjectElement = new Element(\"object\");\r\n\t\t\t\tclassAtt = new Attribute(\"class\", obj.getClass().getName());\r\n\t\t\t\tidAtt = new Attribute(\"id\", String.valueOf(objId));\r\n\t\t\t\tsizeAtt = new Attribute(\"size\", String.valueOf(Array.getLength(obj)));\r\n\t\t\t\t\r\n\t\t\t\t_SerializedObjects.put(objId, obj);\r\n\t\t\t\t\r\n\t\t\t\tobjectElement.setAttribute(classAtt);\r\n\t\t\t\tobjectElement.setAttribute(idAtt);\r\n\t\t\t\tobjectElement.setAttribute(sizeAtt);\r\n\t\t\t\t\r\n\t\t\t\troot.addContent(objectElement);\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < Array.getLength(obj); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tnextArrObj = Array.get(obj, i);\r\n\t\t\t\t\tvalueElement = new Element(\"reference\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(nextArrObj != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(nextArrObj.getClass().isPrimitive() || ObjectHandler.isWrapper(nextArrObj.getClass()))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalueElement = new Element(\"value\");\r\n\t\t\t\t\t\t\tvalueElement.setText(nextArrObj.toString());\r\n\t\t\t\t\t\t}else if(nextArrObj.getClass().isArray())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalueElement.setText(String.valueOf(nextArrObj.hashCode()));\r\n\t\t\t\t\t\t\t_SerializedObjects.put(nextArrObj.hashCode(), nextArrObj);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tserializeArrayObject(nextArrObj, root, doc);\r\n\t\t\t\t\t\t}else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalueElement.setText(String.valueOf(nextArrObj.hashCode()));\r\n\t\t\t\t\t\t\t_SerializedObjects.put(nextArrObj.hashCode(), nextArrObj);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tserializeObject(nextArrObj, doc.getRootElement(), doc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\tvalueElement.setText(\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tobjectElement.addContent(valueElement);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "4e1a90cd0df9f2e30a0658116ab21074", "score": "0.5101499", "text": "public TestJsonToXml(String testName) {\n super(testName);\n }", "title": "" }, { "docid": "1a51fbef8ce61c4f39e0d1df1662a213", "score": "0.5097938", "text": "public Element toXMLStructure(Element eParent)\r\n {\r\n Element eReturn = super.toXML(eParent);\r\n eReturn.setAttribute(\"name\", getName());\r\n eReturn.setAttribute(\"type\", ConfigurationFactory.TYPE_NATIVE);\r\n\r\n return eReturn;\r\n }", "title": "" }, { "docid": "200f00a9c28696969b202eedfa95ac99", "score": "0.50949854", "text": "public interface IXMLSerializer {\n\n\t/**\n\t * This method marshals an object of the TOSCA model into a DOM Node\n\t * representation.\n\t *\n\t * @param element The JAXBElement to serialize into a DOM representation.\n\t * @return The DOM node representation of the element.\n\t */\n\tpublic Node marshalToNode(Object objToMarshal);\n\n\t/**\n\t * This method marshals a given ServiceTemplate into a DOM Document\n\t * representation.\n\t *\n\t * @param objToMarshal The root element to serialize into a DOM\n\t * representation.\n\t * @return The DOM Document representation of the element.\n\t */\n\tpublic Document marshalToDocument(Definitions definitions);\n\n\t/**\n\t * This method marshals a passed JAXBElement into a String.\n\t *\n\t * @param objToMarshal The root element to serialize into a String\n\t * representation.\n\t * @return The String representation of the object.\n\t */\n\tpublic String marshalToString(Object objToMarshal);\n\n\t/**\n\t * This method unmarshals a ServiceTemplate of a passed XML File object.\n\t * <br>\n\t *\n\t * @param file The File object which shall be unmarshaled.\n\t * @return ServiceTemplate The ServiceTemplate which contains the xml data\n\t * of the File. The method returns null if the file is empty or one\n\t * or more errors occurs.\n\t */\n\tpublic abstract Definitions unmarshal(File fileToUnmarshal);\n\n\t/**\n\t * This method unmarshals a ServiceTemplate of a passed InputStream. <br>\n\t *\n\t * @param streamToUnmarshal The InputStream which contains the xml data.\n\t * @return The ServiceTemplate which contains the xml data. The method\n\t * returns null if the stream is empty or one or more errors occurs.\n\t */\n\tpublic abstract Definitions unmarshal(InputStream streamToUnmarshal);\n\n\t/**\n\t * This method unmarshals a ServiceTemplate of a passed DOM document. <br>\n\t *\n\t * @param The DOM Document which contains the data.\n\t * @return ServiceTemplate The ServiceTemplate which contains the xml data.\n\t * The method returns a null if the file is empty or one or more\n\t * errors occurs.\n\t */\n\tpublic abstract Definitions unmarshal(Document doc);\n\n\t/**\n\t * This method unmarshals a object of a passed DOM Node. For the mapping you\n\t * need to provide the destination class with which a instance is generated\n\t * and the data is stored.\n\t *\n\t * @param nodeToUnmarshal The Node which shall be unmarshalled.\n\t * @param destinationClazz The class which represents the Node.\n\t * @return An Object of the type of the second parameter and the data of the\n\t * first.\n\t */\n\tpublic abstract Object unmarshal(Node nodeToUnmarshal, Class<?> destinationClazz);\n\n\t/**\n\t * This method creates a JAXBElement object which contains the given object.\n\t *\n\t * @param obj The object which is needed in form of a JAXBElement.\n\t * @return The JAXBElement of the given object or null if the given object\n\t * is not in the context of the TOSCA JAXB classes.\n\t */\n\t@SuppressWarnings(\"rawtypes\")\n\tpublic abstract JAXBElement createJAXBElement(Object obj);\n\n\t/**\n\t * This method puts a given DOM Element into a proper DOM Document\n\t * structure. The root element in the new document is a copy of the original\n\t * one.\n\t *\n\t * @param Element the element which shall be the root element of a new DOM\n\t * Document.\n\t * @return a new DOM Document or null in case of an error.\n\t */\n\tpublic Document elementIntoDocument(Element element);\n\n\t/**\n\t * This method puts a given list of DOM Elements into a proper DOM Document\n\t * structure. The original elements are copied and the new elements are put\n\t * into a new root element with the name depending on the second parameter.\n\t *\n\t * @param elements list of elements which provide the content of the new\n\t * document\n\t * @param rootElementName the name of the new root element\n\t * @return a new DOM Document or null in case of an error.\n\t */\n\t// TODO change type of rootElementName to QName to support namespaces\n\tpublic Document elementsIntoDocument(List<Element> elements, String rootElementName);\n\n\t/**\n\t * This method sets the validation against the schema active or inactive. By\n\t * default the validation is activated.\n\t *\n\t * @param bool True for activation and false for deactivation of the\n\t * validation.\n\t */\n\tpublic abstract void setValidation(Boolean bool);\n\n\t/**\n\t * Serializes a DOM Node to a String representation.\n\t *\n\t * @param node A node containing the data which to serialize to a String\n\t * representation.\n\t * @param removeWhitespaces Flag for removing the whitespace.\n\t * @return formatted String\n\t */\n\tpublic abstract String docToString(Node node, boolean removeWhitespaces);\n\n}", "title": "" }, { "docid": "6dd53debea258524623b23b59bf65fc8", "score": "0.50830483", "text": "public String getXML() throws KettleValueException {\n\t\tStringBuilder xml = new StringBuilder(\"\").append(XMLHandler.addTagValue(\"startPage\", startPage))\n\t\t\t\t\t\t\t\t\t\t\t\t .append(XMLHandler.addTagValue(\"maxPage\", maxPage));\n\t\t\n\t\t\n\t\t// Ouput Fields\n\t xml.append( \"<inputFields>\" );\n\t for ( int i = 0; i < importIOInputFields.length; i++ ) {\n\t xml.append( \"<inputField>\" );\n\t xml.append(XMLHandler.addTagValue( \"name\", importIOInputFields[i] ) );\n\t xml.append(XMLHandler.addTagValue( \"value\", importIOInputFieldsValues[i] ) );\n\t xml.append( \"</inputField>\" );\n\t }\n\t xml.append( \"</inputFields>\" );\n\t xml.append(super.getXML());\n\t \n\t\treturn xml.toString();\n\t}", "title": "" }, { "docid": "6b83b55f19eeb0f9abd4613eff7fe49f", "score": "0.5079228", "text": "public void xmltoJavaExample(){\n try {\n JAXBContext context = JAXBContext.newInstance(Book.class);\n\n // create an instance of `Unmarshaller`\n Unmarshaller unmarshaller = context.createUnmarshaller();\n\n // XML file path\n File file = new File(\"file/books.xml\");\n\n // convert xml file to Book object\n Book book= (Book) unmarshaller.unmarshal(file);\n\n System.out.println(\"~~~~~~~~~~~~~~ÕUTPUT~~~~~~~~~~~~~~~~~~~~~~``\"+book);\n\n\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "fb3b142accc29a7726bcdd7074ebc8dc", "score": "0.5078186", "text": "@Test\n\tpublic void testComplexToXML()\n\t{\n\n\t\tString xml =\"<answer><text val=\\\"What is \\\" /><integer int=\\\"4\\\" /><fraction><num><integer int=\\\"2\\\" /></num><den><integer int=\\\"3\\\" /></den></fraction><text val=\\\"?\\\" /></answer>\";\n\t\t\n\t\tDocument doc = XMLUtil.parse(xml);\n\t\tElement element = doc.getDocumentElement();\n\t\tAnswer answer = this.parser.fromXML(element);\n\t\t\n\t\tElement element2 = this.parser.toXML(XMLUtil.createEmpty(), answer);\n\t\tNodeList nodelist = element2.getElementsByTagName(\"text\");\n\t\tElement element3 = (Element) nodelist.item(0);\n\t\t\n\t\tassertEquals(\"What is \",element3.getAttribute(\"val\"));\n\t}", "title": "" }, { "docid": "78db818639a47cabe6933583b8cf5dfa", "score": "0.50749093", "text": "@Override\r\n\tpublic Element toExportXML(Document doc, QueryHandler queryHandler) {\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "42d34699d52230689eeaa07fde7e3f47", "score": "0.50727344", "text": "Pojo createPojo();", "title": "" }, { "docid": "d31f3be90effcd14fda59ab60cc69134", "score": "0.50683975", "text": "private String marshallMessageToXML(TAFType taf) throws JAXBException, UnsupportedEncodingException {\n\n\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n\t\tJAXBContext jaxbContext = JAXBContext.newInstance(TAFType.class);\n\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n\t\t// output pretty printed\n\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, UriConstants.GLOBAL_SCHEMAS_LOCATION);\n\n\t\tjaxbMarshaller.setProperty(StringConstants.SUN_JAXB_NAMESPACE_MAPPING_PROPERTY_NAME, new NamespaceMapper());\n\n\t\tJAXBElement<TAFType> metarRootElement = ofIWXXM.createTAF(taf);\n\n\t\tjaxbMarshaller.marshal(metarRootElement, stream);\n\n\t\treturn stream.toString(\"UTF-8\");\n\t}", "title": "" }, { "docid": "fe1ca513784015029334fc7cefcf93c4", "score": "0.50636864", "text": "@Override\n\tpublic String serialize(Object obj) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2b66eb1c2d1ccf451ca460d33972e4ec", "score": "0.5053376", "text": "@Test\n public void testTrasformElement() {\n System.out.println(\"test --> trasformElement\");\n Contatto c = new Contatto();\n \n ObjectTrasformers instance = new ObjectTrasformers(new PersistenceClass(Contatto.class));\n element = instance.trasformElement(c);\n System.out.println(\"Ottenuto --> \\n\"+element.asXML());\n }", "title": "" }, { "docid": "d2c3137c6d3190b2b248f232706702c7", "score": "0.5050805", "text": "Document toDocument();", "title": "" }, { "docid": "c94d5ad0999900940dec3e560a4d7f9e", "score": "0.5046103", "text": "public String getXml() {\r\n \r\n BookBean bb=null;\r\n Iterator iter = bookList.iterator();\r\n StringBuffer buff = new StringBuffer();\r\n \r\n buff.append(\"<booklist>\");\r\n while(iter.hasNext()){\r\n bb=(BookBean)iter.next();\r\n buff.append(bb.getXml());\r\n }\r\n buff.append(\"</booklist>\"); \r\n \r\n return buff.toString();\r\n }", "title": "" }, { "docid": "7d50c905493f5aec7b3ac4fea8be757a", "score": "0.5043175", "text": "public interface XMLMetaData extends Serializable {\n /**\n * JAXB XML binding default name\n */\n String defaultName = \"##default\";\n int XMLTYPE = 0;\n int ELEMENT = 1;\n int ATTRIBUTE = 2;\n\n /**\n * Return true if mapping on an XmlRootElement.\n */\n boolean isXmlRootElement();\n\n /**\n * Return true if mapping on an XmlElement.\n */\n boolean isXmlElement();\n\n /**\n * Return true if mapping on an XmlAttribute.\n */\n boolean isXmlAttribute();\n\n /**\n * Return XMLMapping for a given field.\n * @param name the field name.\n * @return XMLMapping.\n */\n XMLMetaData getFieldMapping(String name);\n\n /**\n * Set type.\n */\n void setType(Class type);\n\n /**\n * Return type.\n */\n Class getType();\n\n /**\n * Return type code.\n */\n int getTypeCode();\n\n /**\n * Return the mapping name.\n */\n String getName();\n\n /**\n * Return xml element tag name or xml attribute name.\n */\n String getXmlname();\n\n /**\n * Return xml namespace.\n */\n String getXmlnamespace();\n\n /**\n * Set field name.\n * @param name the field name.\n */\n void setName(String name);\n\n /**\n * Set xml element or attribute name.\n * @param name the element name or attribute name\n */\n void setXmlname(String name);\n\n /**\n * Set namespace.\n */\n void setXmlnamespace(String namespace);\n\n /**\n * Set xmltype\n * @param type XMLTYPE, ELEMENT, or ATTRIBUTE\n */\n void setXmltype(int type);\n\n /**\n * Return xmltype\n * @return xmltype\n */\n int getXmltype();\n\n void setXmlRootElement(boolean isXmlRootElement);\n\n void addField(String name, XMLMetaData field);\n}", "title": "" }, { "docid": "459d34300cb7e23636300ae67d5152ef", "score": "0.5024057", "text": "public static String marshal(Object instance) throws IOException, JAXBException {\n JAXBContext contextA = JAXBContext.newInstance(instance.getClass());\n Marshaller marshaller = contextA.createMarshaller();\n StringWriter writer = new StringWriter();\n marshaller.marshal(instance, writer);\n return writer.toString();\n }", "title": "" }, { "docid": "1c5cc6bef204df063f4daeee3057749e", "score": "0.50032616", "text": "public void marshalXML(Document document, Element element) {\n element.setAttribute(\"baseline\", String.valueOf(this.baseline));\n element.setAttribute(\"drawBaseline\", String.valueOf(this.drawBaseline));\n element.setAttribute(\"flipAxis\", String.valueOf(this.flipAxis));\n element.setAttribute(\"maximum\", String.valueOf(this.maximum));\n element.setAttribute(\"minimum\", String.valueOf(this.minimum));\n element.setAttribute(\"type\", this.type.toString());\n }", "title": "" }, { "docid": "f6f9ac8dd862b32d6a1d4928002e5dd4", "score": "0.49995416", "text": "HandleXML() {\n paramLangXML(); //@CAPT.OBVIOUS: XML initialization\n temporaryXML = builder.newDocument(); //@CAPT.OBVIOUS: empty xml to work with.\n createTransformer(); //@CAPT.OBVIOUS: transformer with default xml properties set\n\n }", "title": "" }, { "docid": "5d4296a5f79e83e7d7629acf95bbcf09", "score": "0.49909735", "text": "public static final String formatDOMObject(Document documentObject)\n\t{\n\t\tString encodedXMLString = Utils.encodeXML(documentObject);\n\t\tString indentedXMLString = Utils.indentXML(encodedXMLString);\n\t\treturn indentedXMLString;\n\t}", "title": "" }, { "docid": "603da12d33bfca0c94ea4f5fd2867100", "score": "0.49900872", "text": "public static void main(String args[]) throws Exception {\n \n /* Location of XML File */\n String XMLLocation = \"user.dir\";\n \n ObjectSerialization serializer = new ObjectSerialization();\n \n /* Creating and filling a bean object */\n MyBeanToSerialize obj = new MyBeanToSerialize();\n obj.setFirstName(\"Johnny\");\n obj.setLastName(\"Depp\");\n obj.setAge(45);\n \n \n \n \n /* Serialzing Object to XML */\n //System.out.println(\"<span class=\"IL_AD\" id=\"IL_AD5\">Starting</span> Serialization...\");\n serializer.serializeObjectToXML(XMLLocation, obj);\n System.out.println(\"Serialized Object: \" + obj.getClass().getName());\n System.out.println(\"Destination XML: \" + XMLLocation);\n \n /* Reading the object from serialized XML */\n System.out.println(\"\\n\\nStarting De-Serialization...\");\n System.out.println(\"Source XML: \" + XMLLocation);\n MyBeanToSerialize deserializedObj = (MyBeanToSerialize) serializer\n .deserializeXMLToObject(XMLLocation);\n System.out.println(\"De-serialized Object: \"\n + deserializedObj.getClass().getName());\n System.out.println(\"\\nChecking For Values In De-Serialized Object\");\n System.out.println(\"...First Name: \" + deserializedObj.getFirstName());\n System.out.println(\"...Last Name: \" + deserializedObj.getLastName());\n System.out.println(\"...Age: \" + deserializedObj.getAge());\n \n \n \n System.out.println(\".This is Marvellous\");\n \n \n }", "title": "" }, { "docid": "6e4d1836b242833d6fda438dae680914", "score": "0.49877256", "text": "private void exportCustomers() throws JAXBException, IOException {\n CustomerRootDtoView allOrderedByDate = this.customerService.getAllOrderedByDate();\n\n\n JAXBContext context = JAXBContext.newInstance(CustomerRootDtoView.class);\n Marshaller jaxbMarshaller = context.createMarshaller();\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n OutputStream outputStream = new FileOutputStream(ORDERED_CUSTOMERS);\n BufferedWriter bfw = new BufferedWriter(new OutputStreamWriter(outputStream));\n jaxbMarshaller.marshal(allOrderedByDate, bfw);\n }", "title": "" } ]
cef39e6a5861b3d6ecce7e8ca7c6f392
refresh shell route config,because routes config will be clear when restart network.
[ { "docid": "ccb7009ebde08c488038550ddc055900", "score": "0.83989275", "text": "public static void refreshShellRouteConfig()\r\n\t{\r\n\t\tAhAppContainer.HmBe.getOsModule().refreshShellRouteConfig();\r\n\t}", "title": "" } ]
[ { "docid": "b344fdb50a26e482b8241058c1b0a1aa", "score": "0.6908174", "text": "private void refreshRoutes() {\n loadMyRoutes();\n loadCurrentRoute();\n locationUpdateReceived = false;\n }", "title": "" }, { "docid": "47e5ea8260f20c795aeef631b0197dfd", "score": "0.62108636", "text": "private void reloadConfig()\n {\n MCAST_ADDR = Config.MCAST_ADDR;\n MCAST_PORT = Config.MCAST_PORT;\n MCAST_INTERFACE = Config.MCAST_INTERFACE;\n }", "title": "" }, { "docid": "96107e7c7e04feb3a2d39947a18e8110", "score": "0.5859285", "text": "public void updateRoute(Route route) {\n\r\n\t}", "title": "" }, { "docid": "41e201a931b7262408c76756704979e1", "score": "0.5668157", "text": "@Override\n public void run() {\n getRouterConf(id, isUpdate);\n }", "title": "" }, { "docid": "073c0182b2de476893d92411b5b599f5", "score": "0.5599621", "text": "public void config() throws RemoteException, MalformedURLException {\r\n Naming.rebind(URLProvider.TerminalServices(), this);\r\n }", "title": "" }, { "docid": "7f600cca52e642a99a668d213030c4a5", "score": "0.5599328", "text": "public static void refreshConfig() {\n\t\tfMailServerConfig.clear();\n\t\tfetchConfig();\n\t}", "title": "" }, { "docid": "06af25697cd7e4c15082f9552e9090ba", "score": "0.5584002", "text": "public synchronized void reloadConfiguration() {\n properties = null; // trigger reload\n finalParameters.clear(); // clear site-limits\n }", "title": "" }, { "docid": "a4ea7bf27e569e294b39f46c2a6a72ed", "score": "0.54219085", "text": "public void staticRoutesConfig() throws ConfException, NavuException, ResourceException, UnknownHostException {\r\n\r\n\t\tLOGGER.info(\"LAN ROUTING static routes start: \" + csrName);\r\n\t\tNavuList staticList = service.list(nfv._static_routes);\r\n\t\tfor (NavuContainer staticRouteList : staticList) {\r\n\t\t\tTemplate lanroutingTemplate = new Template(context, Commons.staticRouteListTemplate);\r\n\t\t\tString lanipnetwork = staticRouteList.leaf(nfv._lan_ip_network).valueAsString();\r\n\t\t\tString lannetmask = \"\";\r\n\t\t\tLOGGER.info(\"LAN routing static routes-lanipnetwork: \" + lanipnetwork);\r\n\t\t\tif (lanipnetwork != null) {\r\n\r\n\t\t\t\tlannetmask = Utility.getNetMask(lanipnetwork);\r\n\r\n\t\t\t\tlanipnetwork = Utility.getIPAddress(lanipnetwork);\r\n\t\t\t} else\r\n\t\t\t\tlanipnetwork = \"\";\r\n\r\n\t\t\tString lannexthopip = staticRouteList.leaf(nfv._lan_next_hop_ip).valueAsString();\r\n\t\t\tString comment = staticRouteList.leaf(nfv._comment).valueAsString();\r\n\t\t\tif (comment == null)\r\n\t\t\t\tcomment = \"\";\r\n\t\t\tLOGGER.info(\"LAN routing static routes-comment: \" + comment);\r\n\t\t\tif (lanipnetwork != null && lannetmask != null && lannexthopip != null) {\r\n\t\t\t\tTemplateVariables vars = new TemplateVariables();\r\n\t\t\t\tvars.putQuoted(\"device\", csrName);\r\n\t\t\t\tvars.putQuoted(\"maskroute\", lannetmask);\r\n\t\t\t\tvars.putQuoted(\"prefixroute\", lanipnetwork);\r\n\t\t\t\tvars.putQuoted(\"nicidgateway\", lannexthopip);\r\n\t\t\t\tvars.putQuoted(\"routename\", comment);\r\n\t\t\t\tlanroutingTemplate.apply(service, vars);\r\n\t\t\t}\r\n\t\t}\r\n\t\tLOGGER.info(\"LAN ROUTING static routes applied end: \" + csrName);\r\n\t}", "title": "" }, { "docid": "135484ece1b6dc11fc08314e1fdee8bb", "score": "0.54038084", "text": "@Override\r\n\tpublic void refresh() {\r\n\t\tsuper.refresh();\r\n\t\tupdateCheckpoints();\r\n\t}", "title": "" }, { "docid": "67d467a289703000a1d4d4bdb9d64758", "score": "0.5394795", "text": "void onBgpEvpnRouteUpdate(EvpnRoute route);", "title": "" }, { "docid": "14cd4d6d0ec61474e077a226d1cc52b3", "score": "0.5390929", "text": "@Override\n\tpublic void refreshConfiguration() {\n\t\tconfigBean = activity.getConfiguration();\n\t\t\n\t\t\n\t\tfieldString.setText(configBean.getResourceName());\n\t\tfieldURI.setText(configBean.getResourceUri().toASCIIString());\n\t}", "title": "" }, { "docid": "63cac35815748b47e226e515387eb8c2", "score": "0.53708047", "text": "public void setupGlobalRouting() {\r\n network.setupGlobalRouting();\r\n }", "title": "" }, { "docid": "e56953f052f24e61f2c6b9e991f660ce", "score": "0.52813315", "text": "public void updateRoute(Route route) throws EdittingException;", "title": "" }, { "docid": "826cd4ff48db42b2b7b09a53c482c771", "score": "0.5278857", "text": "@Override\r\n\tpublic void configRoute(Routes me) {\n\r\n\t}", "title": "" }, { "docid": "2858eff87713a5fe79b50b8fc35373eb", "score": "0.51740664", "text": "private void updateConfig() {\n try {\n final ServiceReference<ConfigurationAdmin> sr = bc\n .getServiceReference(ConfigurationAdmin.class);\n if (sr != null) {\n final ConfigurationAdmin ca = bc.getService(sr);\n if (ca != null) {\n final Configuration conf = ca.getConfiguration(pid);\n if (conf != null) {\n conf.update(configCollection);\n }\n }\n bc.ungetService(sr);\n }\n } catch (final IOException io) {\n } catch (final java.lang.IllegalArgumentException iae) {\n } catch (final java.lang.IllegalStateException ise) {\n }\n }", "title": "" }, { "docid": "513c0eceebcb5c5ac12e7145b1631bb3", "score": "0.5151002", "text": "public void adjustWinRmConfig(String node){\n\n String address = Storage.get(\"Environment.Active.WinRM.\" + node + \".host\");\n\n if ( address == null ){\n Log.error(\"Configuration for Environment.Active.WinRM.\" + node + \".host not found or null!\");\n }\n\n Log.debug(\"Adjusting winRM config on client side\");\n\n address = getIpOfHost(address);\n\n String maxMemoryPerShell = \"16384\"; //in MB 16 GB\n String maxProcessesPerShell = \"100\";\n String idleTimeout = \"12600000\"; //in ms 3,5 h\n String maxShellsPerUser = \"50\";\n\n Log.debug(\"Checking current winRS config on remote host \" + address);\n String output = executeSingleCommandOnVM(\"winrm get winrm/config\", node, 60);\n if ( output.contains(\"MaxShellsPerUser = \" + maxShellsPerUser) &&\n output.contains(\"IdleTimeout = \" + idleTimeout) &&\n output.contains(\"MaxProcessesPerShell = \" + maxProcessesPerShell) &&\n output.contains(\"MaxMemoryPerShellMB = \" + maxMemoryPerShell)\n ) {\n\n Log.debug(\"WinRS configuration on host \" + address + \" already set. Nothing to do.\");\n\n } else {\n\n Log.debug(\"Adjusting winRS config on a remote host \" + address);\n List<String> cmdList = new ArrayList();\n cmdList.add(\"call winrm set winrm/config/winrs @{MaxMemoryPerShellMB=\\\"\" + maxMemoryPerShell + \"\\\"}\");\n cmdList.add(\"call winrm set winrm/config/winrs @{MaxProcessesPerShell=\\\"\" + maxProcessesPerShell + \"\\\"}\");\n cmdList.add(\"call winrm set winrm/config/winrs @{MaxShellsPerUser=\\\"\" + maxShellsPerUser + \"\\\"}\");\n cmdList.add(\"call winrm set winrm/config/winrs @{IdleTimeout=\\\"\" + idleTimeout + \"\\\"}\");\n //cmdList.add(\"call winrm set winrm/config/service @{AllowUnencrypted=\\\"true\\\"}\");\n //cmdList.add(\"call winrm set winrm/config/service/auth @{Basic=\\\"true\\\"}\");\n\n String cmd = joinCommands(cmdList, \"\\r\\n\", true);\n String script = \"adjustWinRmConfig.bat\";\n transferScript(node, cmd, script);\n\n String result = executeSingleCommandOnVM(\"call \" + script, node, 120);\n\n Log.debug(\"Validating winRS configuration\");\n\n if (!result.contains(\"MaxMemoryPerShellMB = \" + maxMemoryPerShell)) {\n Log.warn(\"Failed to set winRS configuration (parameter MaxMemoryPerShell)!\");\n }\n\n if (!result.contains(\"MaxProcessesPerShell = \" + maxProcessesPerShell)) {\n Log.warn(\"Failed to set winRS configuration (parameter MaxProcessesPerShell)!\");\n }\n\n if (!result.contains(\"MaxShellsPerUser = \" + maxShellsPerUser)) {\n Log.warn(\"Failed to set winRS configuration (parameter MaxShellsPerUser)!\");\n }\n\n if (!result.contains(\"IdleTimeout = \" + idleTimeout)) {\n Log.warn(\"Failed to set winRS configuration (parameter IdleTimeout)!\");\n }\n\n }\n\n }", "title": "" }, { "docid": "d561d85584cceab84f08206dcaee6957", "score": "0.5145353", "text": "@Override\r\n\tpublic void reset() {\n\t\tsuper.reset();\r\n\t\tthis.preRoute = false;\r\n\t\tthis.flowsBetweenAggeSwitches.clear();\r\n\t\tthis.flowsBetweenEdgeSwitchesDiffPod.clear();\r\n\t}", "title": "" }, { "docid": "4a2d2245bef8464becbbb083ac0fa0a9", "score": "0.50985533", "text": "Routes routes();", "title": "" }, { "docid": "1cda226aac76378339181e54614e1b6e", "score": "0.50615704", "text": "ManagedGrafana refresh();", "title": "" }, { "docid": "85b5f1469f3007ea679d048b1967137c", "score": "0.5058798", "text": "@Secured({\"ROLE_SMADMIN\"})\n @RequestMapping(value = \"/reloadconfigurations\", method = RequestMethod.POST, produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n List<VoClusterNode> reloadConfigurations() throws Exception;", "title": "" }, { "docid": "ce19fa2947f1200596414093f1203e68", "score": "0.503476", "text": "@SuppressWarnings({ \"unchecked\" })\n\tprivate void readOVXRoutes(List<Map<String, Object>> routes, OVXNetworkManager mngr) {\n\t\tif (routes == null)\n\t\t\treturn;\n\t\tfor (Map<String, Object> route: routes) {\n\t\t\tList<Map<String, Object>> path = (List<Map<String, Object>>) route.get(TenantHandler.PATH);\n\t\t\tfor (Map<String, Object> hop: path) {\n\t\t\t\tLong srcDpid = (Long) hop.get(TenantHandler.SRC_DPID);\n\t\t\t\tShort srcPort = ((Integer) hop.get(TenantHandler.SRC_PORT)).shortValue();\n\t\t\t\tLong dstDpid = (Long) hop.get(TenantHandler.DST_DPID);\n\t\t\t\tShort dstPort = ((Integer) hop.get(TenantHandler.DST_PORT)).shortValue();\n\t\t\t\tDPIDandPortPair dpp = new DPIDandPortPair(new DPIDandPort(srcDpid, srcPort),\n\t\t\t\t\t\tnew DPIDandPort(dstDpid, dstPort));\n\t\t\t\t// Register links in the appropriate manager\n\t\t\t\tmngr.registerLink(dpp);\n\t\t\t\tList<OVXNetworkManager> mngrs = this.linkToMngr.get(dpp);\n\t\t\t\tif (mngrs == null)\n\t\t\t\t\tthis.linkToMngr.put(dpp, new ArrayList<OVXNetworkManager>());\n\t\t\t\tthis.linkToMngr.get(dpp).add(mngr);\n\n\t\t\t\t// Register switches\n\t\t\t\tmngr.registerSwitch(srcDpid);\n\t\t\t\tmngr.registerSwitch(dstDpid);\n\t\t\t\tmngrs = this.dpidToMngr.get(srcDpid);\n\t\t\t\tif (mngrs == null)\n\t\t\t\t\tthis.dpidToMngr.put(srcDpid, new ArrayList<OVXNetworkManager>());\n\t\t\t\tthis.dpidToMngr.get(srcDpid).add(mngr);\n\t\t\t\tmngrs = this.dpidToMngr.get(dstDpid);\n\t\t\t\tif (mngrs == null)\n\t\t\t\t\tthis.dpidToMngr.put(dstDpid, new ArrayList<OVXNetworkManager>());\n\t\t\t\tthis.dpidToMngr.get(dstDpid).add(mngr);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "42c66b57e8e1b3ab492ef942fbedcc70", "score": "0.50259835", "text": "@RequestMapping(value = \"admin/allRoute\", method = RequestMethod.GET)\r\n\tpublic ModelAndView allRoute(@ModelAttribute(\"command\") RouteBean route,\r\n\t\t\tBindingResult result, HttpServletRequest request, ModelMap modelH) {\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\ttry{\r\n\t\t\tHttpSession session = request.getSession();\r\n\t\t\tif (session.getAttribute(\"userRole\")!= \"Admin\")\r\n\t\t\t{\r\n\t\t\t return new ModelAndView(\"redirect:/login.html\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\t\t \r\n\t\tint school_id = (Integer) session.getAttribute(\"new_school_id\");\r\n\t\tmodelH.addAttribute(\"heading\", \"Manage Route\");\r\n\t\tmodel.put(\"staffs\", getAllRoute(schoolservice.listRoute(school_id)));\r\n\t\tmodel.put(\"school_details\", schoolservice.getSchoolById(school_id));\r\n\t\treturn new ModelAndView(\"SuperAdmin/all_routes\", model);\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\treturn new ModelAndView(\"redirect:/login.html\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "69fb3a07691d45cce76ce5af3f673c86", "score": "0.50199074", "text": "public void configurationReinitialized()\r\n\t{\r\n\t\tCacheManager.reinitializeAll();\r\n\t}", "title": "" }, { "docid": "69df6db07d83d49a39e130c482afab6c", "score": "0.50089806", "text": "public static void reconfigure() {\n\t\t\ttry {\n\t\t\t\tProperties props=Constants.getProperties(\"aws.properties\");\n\t\t\t\tString Url=props.getProperty(\"JDBCURL\");\n\t\t\t\tString Pass=props.getProperty(\"JDBCPWD\");\n\t\t\t\tif (!(Constants.getURL().equals(Url))){\n\t\t\t\t\tConstants.setURL(Url);\n\t\t\t\t\tConstants.setPass(Pass);\n\t\t\t\t\tPersistenceMechanism pm;\n\t\t\t\t\ttry {\t\t\t\t\n\t\t\t\t\tpm = PersistenceMechanism.getInstance();\n\t\t\t\t\tpm.setUrl(Url);\n\t\t\t\t\tpm.setPassword(Pass);\n\t\t\t\t\t//pm.releaseCommunicationChannel();\n\t\t\t\t\tpm.disconnect();\n\t\t\t\t\tpm.connect();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t} catch (RepositoryException e1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\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\n\t\t\t\n\t}", "title": "" }, { "docid": "173e0a8943bc394610578a5867f7418c", "score": "0.50086194", "text": "private void clearRouteLinesAndWaypoints() {\r\n\t\tgMap.clear(); \r\n\t\trouteLines.clear(); // get rid of lists\r\n\t\twaypointsMOs.clear();\r\n\t\tmarkerStates.clear();\r\n\t}", "title": "" }, { "docid": "05072dafcc3fcfb3e6f1c9a9d0c083ef", "score": "0.4994652", "text": "public void editRoute(Route route) throws Exception;", "title": "" }, { "docid": "a46f75a710cb7f44e5a96c9a2e889ba0", "score": "0.49775416", "text": "private void clearConfig() { config_ = null;\n \n }", "title": "" }, { "docid": "bd653c251bfea8b0ce734eefd46237bc", "score": "0.49597007", "text": "private void refreshAll() {\r\n \t\trefreshSubwayLineInfo();\r\n \t\trefreshSubwayStationsList();\r\n \t\t// IF there is a valid last know location DO\r\n \t\tif (LocationUtils.getBestLastKnownLocation(this) != null) {\r\n \t\t\t// set the distance before showing the list\r\n \t\t\tsetLocation(LocationUtils.getBestLastKnownLocation(this));\r\n \t\t\tupdateDistancesWithNewLocation();\r\n \t\t}\r\n \t\t// IF location updates are not already enabled DO\r\n \t\tif (!this.locationUpdatesEnabled) {\r\n \t\t\t// enable\r\n \t\t\tLocationUtils.enableLocationUpdates(this, this);\r\n \t\t\tthis.locationUpdatesEnabled = true;\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "c24a24f7f9d11ef9529ff968b90f3e50", "score": "0.4929968", "text": "public static List<String> getRoute() {\n\t\treturn processIO(new IOCallback<List<String>>() {\n\t\t\tpublic List<String> doInProcessIO() throws IOException, SigarException, ShellCommandUsageException,\n\t\t\t\t\tShellCommandExecException {\n\t\t\t\treturn SigarAccessor.getNetworkRouteInfo();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "818e47cdec710f4ce572577d6df090ee", "score": "0.49146783", "text": "public void configurePath(String destIP, String nodename, String gateway) {\n }", "title": "" }, { "docid": "7ceda1e0e7e82073531443e14569beb4", "score": "0.4899868", "text": "public void setRoute(String route)\n {\n this.route = route;\n }", "title": "" }, { "docid": "2f160a2bc461bc6b9ab19338e370e06e", "score": "0.4882883", "text": "private void prepareRoutingFile(ILaunchConfiguration configuration, AttributeManager attrMgr, IProgressMonitor monitor)\n \t\t\tthrows CoreException {\n \t\tIPath routingFilePath = new Path(attrMgr.getAttribute(JobAttributes.getWorkingDirectoryAttributeDefinition()).getValue());\n \t\troutingFilePath = routingFilePath.append(\"routing_file\"); //$NON-NLS-1$\n \n \t\tIResourceManagerControl rm = (IResourceManagerControl) getResourceManager(configuration);\n \t\tIResourceManagerConfiguration conf = rm.getConfiguration();\n \t\tIRemoteServices remoteServices = PTPRemoteCorePlugin.getDefault().getRemoteServices(conf.getRemoteServicesId());\n \t\tIRemoteConnectionManager rconnMgr = remoteServices.getConnectionManager();\n \t\tIRemoteConnection rconn = rconnMgr.getConnection(conf.getConnectionName());\n \t\tIRemoteFileManager remoteFileManager = remoteServices.getFileManager(rconn);\n \n \t\tfRoutingFileStore = remoteFileManager.getResource(routingFilePath.toString());\n \n \t\tif (fRoutingFileStore.fetchInfo(EFS.NONE, monitor).exists()) {\n \t\t\ttry {\n \t\t\t\tfRoutingFileStore.delete(0, monitor);\n \t\t\t} catch (CoreException e) {\n \t\t\t\tthrow newCoreException(e.getLocalizedMessage());\n \t\t\t}\n \t\t\tfRoutingFileStore.fetchInfo();\n \t\t}\n \t}", "title": "" }, { "docid": "ffac6b4beb0a0b2bd81ed595260c46f1", "score": "0.4879736", "text": "BackendAddressPool refresh();", "title": "" }, { "docid": "0674273eb54e071bbdc4fdfc9e6725d2", "score": "0.4864108", "text": "public void refreshNodes() throws IOException {\n ((RawDistributedFileSystem)fs).refreshNodes();\n }", "title": "" }, { "docid": "2043044cfa8866a5b0de967fb24209b2", "score": "0.4855597", "text": "public void reload() {\r\n\t\tif (this.configFiles.isEmpty())\r\n\t\t\treturn;\r\n\r\n\t\tthis.configFiles.forEach(configFile -> {\r\n\t\t\tYmlFile ymlFile = new YmlFile(plugin, configFile.getConfigName(), this.doesLog);\r\n\t\t\tymlFile.save();\r\n\t\t\tymlFile.reload();\r\n\r\n\t\t});\r\n\r\n\t\tthis.build(false);\r\n\r\n\t\tConsole.SUCCESS.log(\"All configs have been reloaded!\");\r\n\t}", "title": "" }, { "docid": "ed9a60243f37d77507784bab51125403", "score": "0.4847268", "text": "@Override\n public void reload() {\n stop();\n reloadAndStart();\n }", "title": "" }, { "docid": "f5528414b00cae0379b36b1056c7599f", "score": "0.48376152", "text": "private void updateRoutingTableAfterGettingRoutes(final UUID routerId,\n final UUID portId, final Set<Route> newRoutes) {\n\n Set<Route> oldRoutes = mapPortIdToRoutes.get(portId);\n Directory dir;\n try {\n dir = routerMgr.getRoutingTableDirectory(routerId);\n } catch (StateAccessException e) {\n log.error(\"Error when trying to get the routing table for router {}\",\n routerId, e);\n // TODO(guillermo) should we handleError() here?\n return;\n }\n log.debug(\"Updating routes for port {} of router {}. Old routes {} \" +\n \"New routes {}\", portId, routerId, oldRoutes, newRoutes);\n\n ZkManager routingTableManager = new ZkManager(dir, dir.getPath());\n RouteEncoder encoder = new RouteEncoder();\n\n Set<Route> removedRoutes = new HashSet<Route>(oldRoutes);\n removedRoutes.removeAll(newRoutes);\n Set<Route> addedRoutes = new HashSet<Route>(newRoutes);\n addedRoutes.removeAll(oldRoutes);\n\n for (final Route routeToAdd : addedRoutes){\n String path = \"/\" + encoder.encode(routeToAdd);\n routingTableManager.ensureEphemeralAsync(path, null,\n new DirectoryCallback.Add() {\n @Override\n public void onSuccess(String data) {\n log.debug(\"Added new route for port {} in router {}, route {}\",\n portId, routerId, routeToAdd);\n }\n\n @Override\n public void onTimeout() {\n onError(new KeeperException.OperationTimeoutException());\n }\n\n @Override\n public void onError(KeeperException e) {\n log.error(\"Failed to add ephemeral node for route \" + routeToAdd, e);\n }\n });\n\n }\n\n for (Route routeToRemove : removedRoutes){\n String path = \"/\" + encoder.encode(routeToRemove);\n dir.asyncDelete(path);\n log.debug(\"Deleted route for port {} in router {}, route {}\",\n portId, routerId, routeToRemove);\n }\n\n mapPortIdToRoutes.put(portId, newRoutes);\n }", "title": "" }, { "docid": "f9668ea9e1b77e5f8d028743ecc66d61", "score": "0.48299056", "text": "Cloud refresh();", "title": "" }, { "docid": "ea984e47e51e180520e6138921d9d366", "score": "0.48239738", "text": "@Override\r\n\tpublic synchronized void reload() {\r\n\t\tlogger.debug(\"reloading configurations...\");\r\n\t\tboolean running = this.running;\r\n\t\ttry {\r\n\r\n\t\t\t// shutdown and unregister if instance still available\r\n\t\t\tif(jyro != null){\r\n\t\t\t\tthis.jyro.shutdown();\r\n\t\t\t\tthis.jyro = null;\r\n\t\t\t}\r\n\r\n\t\t\t// load configuration and rebuild instance\r\n\t\t\tload();\r\n\r\n\t\t\t// startup if instance has been started\r\n\t\t\tif(running){\r\n\t\t\t\tthis.jyro.startup();\r\n\t\t\t}\r\n\r\n\t\t\t// regist mxbean\r\n\t\t\tvalidateRegistration();\r\n\r\n\t\t} catch(Exception ex){\r\n\t\t\tlogger.error(\"fail to reload jyro configuration\", ex);\r\n\t\t\tthrow new IllegalStateException(ex.toString(), ex);\r\n\t\t}\r\n\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "163844c1168382cf3893f8cc081c09b4", "score": "0.4816545", "text": "public void deleteRoutesConfig(int routeId){\n SQLiteDatabase database=getWritableDatabase();\n database.delete(TAB_RoutesConfig,\"RouteID = \"+routeId,null);\n database.close();\n }", "title": "" }, { "docid": "f1375fea0e599d02335a9cdeb0a0d0b1", "score": "0.4815569", "text": "@RequestMapping(value = \"admin/editRoute\", method = RequestMethod.GET)\r\n\tpublic ModelAndView editRoute(@ModelAttribute(\"command\") RouteBean route,\r\n\t\t\tBindingResult result, HttpServletRequest request) {\r\n\t\tRouteModel routemodel=new RouteModel();\r\n\t\ttry{\r\n\t\t\t\r\n\t\tString route_id_str=request.getParameter(\"id\");\r\n\t\tbyte[] decodedBytes = Base64.decodeBase64(\"\"+route_id_str+\"\");\r\n\t\tint route_id=Integer.parseInt(new String(decodedBytes));\t\r\n\t\t\r\n\t\ttry{\r\n\t\troutemodel = schoolservice.getRouteById(route_id);\r\n\t\t}catch(NumberFormatException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\tHttpSession session = request.getSession();\r\n\t\tif (session.getAttribute(\"userRole\")!= \"Admin\")\r\n\t\t{\r\n\t\t return new ModelAndView(\"redirect:/login.html\");\r\n\t\t}\r\n\t\tint school_id = (Integer) session.getAttribute(\"new_school_id\");\r\n\t\tmodel.put(\"school_details\", schoolservice.getSchoolById(school_id));\r\n\t\tif (routemodel != null) {\r\n\t\t\tmodel.put(\"latlong\",\r\n\t\t\t\t\tgetAllLatLng(schoolservice.listLatLng(route_id)));\r\n\t\t\tmodel.put(\"heading\", \"Edit Route\");\r\n\t\t\tmodel.put(\"route\", routemodel);\r\n\t\t\treturn new ModelAndView(\"SuperAdmin/edit_route\", model);\r\n\t\t} else {\r\n\t\t\treturn new ModelAndView(\"redirect:allRoute\");\r\n\t\t}\r\n\t\t}catch(Exception e)\r\n\t\t{\te.printStackTrace();\r\n\t\t\treturn new ModelAndView(\"redirect:allRoute\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "12532c67258a616ce8299461ddcb4c56", "score": "0.47976524", "text": "@Override\n\tpublic int configRestore() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "885a2facae15f38581fc96ad80510951", "score": "0.47949147", "text": "private RoutePath() {\n this.processDefinitions = null;\n }", "title": "" }, { "docid": "2884d970f8ac44e0d7bbd5c4745dd977", "score": "0.4794113", "text": "public void updateRoute(Direction direction) {\n\t\tif(this.running) this.running = false;\n\n\t\tthis.initialize(this.line, direction, this.currentLocation);\n\t}", "title": "" }, { "docid": "3633446b5a9e0641b313b7d98b5b2200", "score": "0.47907165", "text": "protected void refresh() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7f9c72fd94b8db3b587434916a60b0ed", "score": "0.47894323", "text": "public void setRoute(int route) {\n this.route = route;\n }", "title": "" }, { "docid": "8e5a3da6c19952b2f813c8dd083ae720", "score": "0.47869024", "text": "public void recycle(){\n jspConfig.isJspConfigSet = false;\n sessionConfig.isSessionConfigSet = false;\n loginConfig.isLoginConfigSet = false;\n name.isNameSet = false;\n absoluteOrdering.isAbsoluteOrderingSet = false;\n relativeOrdering.isRelativeOrderingSet = false;\n }", "title": "" }, { "docid": "721ff609729c7a230cc9bb2ad6a016bd", "score": "0.47834653", "text": "public void refresh() {\n\t\t\n\t}", "title": "" }, { "docid": "9795d44f8181c184dba6d70b5b8858b8", "score": "0.47833198", "text": "public void reload()\n\t{\n\t\t// Public preferences\n\t\tSharedPreferences sharedPrefs = getSharedPrefs();\n\t\tmIncomingCallsEnabled = sharedPrefs.getBoolean(PREFS_KEY_ALLOW_INCOMING_CALLS, true);\n\t\tmExitPinCode = sharedPrefs.getInt(PREFS_KEY_EXIT_PIN_CODE, PIN_CODE_DEFAULT);\n\t\tmExitAction = sharedPrefs.getInt(PREFS_KEY_EXIT_ACTION, DEFAULT_EXIT_ACTION);\n\t}", "title": "" }, { "docid": "4b262a2b0def067ffe7fb8b963cbcaf4", "score": "0.47809625", "text": "private void loadRoutes() {\r\n\t\tif(routeLines != null && routeLines.size() > 0) {\r\n\t\t\tfor(PolylineOptions plo : routeLines) {\r\n\t\t\t\tgMap.addPolyline(plo);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a5383a6cecffb07cd8620deeceb784a0", "score": "0.47804973", "text": "DiagnosticContract refresh();", "title": "" }, { "docid": "7489ea1664becdf9c621dfeebc1c4377", "score": "0.4775415", "text": "private void displayAllRoutes(){\n\t\tString strAllRoutes = this.sharedpreferences.getString(\"ALTERNATE_ROUTES\", null);\n\t\ttry {\n\t\t\tthis.allAlternativeRoutes = new JSONArray(strAllRoutes);\n\t\t\tthis.lstRouteNames = new ArrayList<String>();\n\t\t\tfor(int i=0; i<this.allAlternativeRoutes.length(); i++){\n\t\t\t\tthis.lstRouteNames.add(this.allAlternativeRoutes.getJSONObject(i).getString(\"nombre\"));\n\t\t\t}\n\t\t\tthis.adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, this.lstRouteNames);\n\t\t\tthis.lstRoutes.setAdapter(this.adapter);\n\t\t} catch (JSONException e) {\n\t\t}\n\t}", "title": "" }, { "docid": "c3cb139108141f05cb03e170f3c7eec2", "score": "0.4771819", "text": "public void clearSettings()\n{\n\t \n dtnrouting.allNodes.clear();\n Node.ID_INCREMENTER=0;\n dtnrouting.timer=0;\n dtnrouting.total_packetsDeliveredExpired=0;\n \n //Clearings the array lists of source, destination, their packets and their parameter\n dtnrouting.Sources.clear(); \n dtnrouting.Destinations.clear();\n //Set movement model to null\n dtnrouting.movementtype=\"Random\";\n dtnrouting.arePacketsDelivered.clear();\n dtnrouting.SIMULATION_N0 = dtnrouting.TOTAL_SIMULATION_RUNS;\n Packet.packetID=0; \n \n //Empty Text areas\n dtnrouting.sdpTA.setText(\"Source Dest. packet\");\n dtnrouting.contactsTA.setText(\"\");\n dtnrouting.transferTA.setText(\"\");\n dtnrouting.deliveryTA.setText(\"\");\n rpp.clearData(); //clear data from table and charts\n dtnrouting.THIS_SIMULATION_ENDED=false;\n dtnrouting.SIMULATION_RUNNING=false;\n \n}", "title": "" }, { "docid": "3fdc19790e79c656b12af2dc1daf1c41", "score": "0.47713435", "text": "private void addRestRoutesTo(RoutingHandler handler) {\n\t\taddRestSystemRoutesTo(handler);\n\n\t\t// Network routes\n\t\taddRestNetworkRoutesTo(handler);\n\n\t\taddGetRoute(\"/api/universe\", exchange\n\t\t\t-> respond(this.apiSerializedUniverse, exchange), handler);\n\n\t\taddGetRoute(\"/api/system/modules/api/tasks-waiting\", exchange -> {\n\t\t\tJSONObject waiting = new JSONObject();\n\t\t\twaiting.put(\"count\", atomsService.getWaitingCount());\n\n\t\t\trespond(waiting, exchange);\n\t\t}, handler);\n\n\t\taddGetRoute(\"/api/system/modules/api/websockets\", exchange -> {\n\t\t\tJSONObject count = new JSONObject();\n\t\t\tcount.put(\"count\", getPeers().size());\n\t\t\trespond(count, exchange);\n\t\t}, handler);\n\n\t\t// delete method to disconnect all peers\n\t\taddRoute(\"/api/system/modules/api/websockets\", Methods.DELETE_STRING, exchange -> {\n\t\t\tJSONObject result = this.disconnectAllPeers();\n\t\t\trespond(result, exchange);\n\t\t}, handler);\n\n\t\taddRoute(\"/api/bft/0\", Methods.PUT_STRING, this::handleBftState, handler);\n\n\t\t// keep-alive\n\t\taddGetRoute(\"/api/ping\", exchange -> {\n\t\t\tJSONObject obj = new JSONObject();\n\t\t\tobj.put(\"response\", \"pong\");\n\t\t\tobj.put(\"timestamp\", Time.currentTimestamp());\n\t\t\trespond(obj, exchange);\n\t\t}, handler);\n\t}", "title": "" }, { "docid": "91609b05f5972bf24ba6786470a81adf", "score": "0.4765984", "text": "private void prepareRoutingFile(ILaunchConfiguration configuration,\n \t\t\tAttributeManager attrMgr, IProgressMonitor monitor)\n \t\t\tthrows CoreException {\n \t\tIPath routingFilePath = new Path(attrMgr.getAttribute(JobAttributes.getWorkingDirectoryAttributeDefinition()).getValue());\n \t\troutingFilePath = routingFilePath.append(\"routing_file\"); //$NON-NLS-1$\n \n \t\tIResourceManagerControl rm = (IResourceManagerControl) getResourceManager(configuration);\n \t\tIResourceManagerConfiguration conf = rm.getConfiguration();\n \t\tIRemoteServices remoteServices = PTPRemoteCorePlugin.getDefault().getRemoteServices(conf.getRemoteServicesId());\n \t\tIRemoteConnectionManager rconnMgr = remoteServices.getConnectionManager();\n \t\tIRemoteConnection rconn = rconnMgr.getConnection(conf.getConnectionName());\n \t\tIRemoteFileManager remoteFileManager = remoteServices.getFileManager(rconn);\n \n \t\ttry {\n \t\t\tthis.fRoutingFileStore = remoteFileManager.getResource(routingFilePath, monitor);\n \t\t} catch (IOException e) {\n \t\t\tthrow newCoreException(e);\n \t\t}\n \n \t\tIFileInfo info = fRoutingFileStore.fetchInfo();\n \t\tif (info.exists()) {\n \t\t\ttry {\n \t\t\t\tfRoutingFileStore.delete(0, monitor);\n \t\t\t} catch (CoreException e) {\n \t\t\t\tthrow newCoreException(e);\n \t\t\t}\n \t\t\tfRoutingFileStore.fetchInfo();\n \t\t}\n \t}", "title": "" }, { "docid": "ab6f3dc1f1422f7d06a337dcf0213c75", "score": "0.47583765", "text": "public static void setRoutes(ArrayList<RouteInfo> routeList) {\n routes = routeList;\n }", "title": "" }, { "docid": "29e0b904912fff07b24bf33056f920e0", "score": "0.47517997", "text": "public Builder clearRoute() {\n route_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "29e0b904912fff07b24bf33056f920e0", "score": "0.47517997", "text": "public Builder clearRoute() {\n route_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "53b5dd7fe1ede964074f9b73006b7c05", "score": "0.4747208", "text": "public void updateRoute(Line line) {\n\t\tif(this.running) this.running = false;\n\t\t\n\t\tthis.initialize(line, this.direction, this.currentLocation);\n\t}", "title": "" }, { "docid": "b3d501cb55e53d467b6e38124ba0b43f", "score": "0.47421798", "text": "@Override\n public void resetConfiguration() {\n }", "title": "" }, { "docid": "f3185ed42e0608f02d362dbdb538734b", "score": "0.4738123", "text": "public void resetPaths(){\n\t\tsynchronized (pathCollector) {\n\t\t\tpathCollector.clearPaths();\n\t\t}\n\t\tsh.redraw = true;\n\t}", "title": "" }, { "docid": "0a52c5ee4616cbec17ef982961e95a57", "score": "0.4733974", "text": "@Override\n public void run() {\n log.info(\"Starting configuration reloading...\");\n RevisionAccess fileAccess = fileManager.getWorkspaceRevision();\n if (!fileAccess.agentMappingsExist()) {\n onTaskSuccess(Collections.emptyList());\n return;\n }\n List<AgentMapping> mappingsToLoad = mappingsSerializer.readAgentMappings(fileAccess);\n List<AgentConfiguration> newConfigurations = new ArrayList<>();\n for (AgentMapping mapping : mappingsToLoad) {\n try {\n String configYaml = loadConfigForMapping(mapping);\n if (isCanceled()) {\n log.debug(\"Configuration reloading canceled\");\n return;\n }\n AgentConfiguration agentConfiguration = AgentConfiguration.builder()\n .mapping(mapping)\n .configYaml(configYaml)\n .build();\n newConfigurations.add(agentConfiguration);\n } catch (Exception e) {\n log.error(\"Could not load agent mapping '{}'.\", mapping.getName(), e);\n }\n }\n onTaskSuccess(newConfigurations);\n }", "title": "" }, { "docid": "f6c5da6fa292a51ee16ed56d114ebec8", "score": "0.473285", "text": "public void refresh() throws RemoteException {\n debug=log.isDebug();\n }", "title": "" }, { "docid": "4e1e0f5403067c647322b2e4ca75acf1", "score": "0.47290605", "text": "public default void reload() {\r\n\t}", "title": "" }, { "docid": "692aa75f4e4b2df1bf0cfa2c8c1e477f", "score": "0.47170708", "text": "public void refresh() { \n\t\t// TODO Auto-generated method\n\t }", "title": "" }, { "docid": "22858e0b71ae5dd8d0676e3df64ae4d5", "score": "0.47154906", "text": "private void updateRT(Router routerGetConnection, String dest) {\r\n\r\n\t\tList<Router> neighbors = findNeighbor(routerGetConnection, routers);\r\n\t\tfor (Router router : neighbors) {\r\n\t\t\trouter.routingTable.add(new RouterEntry(dest, i, routerGetConnection.name, routerGetConnection.port));\r\n\t\t\ti++;\r\n\t\t\tupdateRT(router, dest);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "41530dd723e3da26070490398b497a8c", "score": "0.47153252", "text": "public void removeRouteOnMap() {\r\n\t\tLog.i(TAG, \"starting delayed Route removal\");\r\n\t\tnew RemoveRouteTask().execute();\r\n\t}", "title": "" }, { "docid": "cf2614e49c9599e8610e71a073af1b8a", "score": "0.4714094", "text": "private void refreshNodeState() {\n // Publish an event that asks running nodes to send their state.\n eventPublisher.publishRemotely(new AutoIngestRequestNodeStateEvent(AutoIngestManager.Event.REPORT_STATE));\n }", "title": "" }, { "docid": "21562de78c978923381ce36c4cce631c", "score": "0.47138727", "text": "public void reloadLoggingConfig() {\n\t}", "title": "" }, { "docid": "9183edca8289ba3198897ba6484fea22", "score": "0.4712973", "text": "@RequestMapping(value = \"admin/editStudentRoute\", method = RequestMethod.GET)\r\n\tpublic ModelAndView editStudentRoute(\r\n\t\t\t@ModelAttribute(\"command\") RouteLatLng routelatlng,\r\n\t\t\tBindingResult result, HttpServletRequest request, ModelMap modelH) {\r\n\t\tHttpSession session = request.getSession();\r\n\t\tif (session.getAttribute(\"userRole\")!= \"Admin\")\r\n\t\t{\r\n\t\t return new ModelAndView(\"redirect:/login.html\");\r\n\t\t}\r\n\t\tmodelH.addAttribute(\"heading\", \"Assign Route\");\r\n\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\tint school_id = (Integer) session.getAttribute(\"new_school_id\");\r\n\t\tmodel.put(\"routes\", getAllRoute(schoolservice.listRoute(school_id)));\r\n\t\tmodel.put(\"school_details\", schoolservice.getSchoolById(school_id));\r\n\t\treturn new ModelAndView(\"SuperAdmin/edit_assign_student_route\", model);\r\n\t}", "title": "" }, { "docid": "a2e2f0d0a680aeb6c3b421e64e5aff65", "score": "0.47061595", "text": "@Override\n\tpublic void reconfigure(Bucket bucket) {\n\t\treconfiguring = true;\n\t\ttry {\n\t\t\tmconn.reconfigure(bucket);\n\t\t\tcconn.reconfigure(bucket);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t\tgetLogger().warn(\"Failed to reconfigure client, staying with previous configuration.\", ex);\n\t\t} finally {\n\t\t\treconfiguring = false;\n\t\t}\n\t}", "title": "" }, { "docid": "94891e77768515ede1e3003dba03e743", "score": "0.4694294", "text": "protected void reloadCatalogAndConfiguration() throws Exception {\n GeoServerLoader loader = GeoServerExtensions.bean( GeoServerLoader.class , applicationContext );\n loader.reload();\n }", "title": "" }, { "docid": "fe72da0418917d61937d3ee615f736f1", "score": "0.4691988", "text": "@Bean\n\tRouteLocator gatewayRoutes(RouteLocatorBuilder builder){\n\treturn builder.routes()\n\t//.route(r->r.path(\"/customers/**\").uri(\"http://localhost:8081/\").id(\"r1\"))\n\t.route(r->r.path(\"/products/**\").uri(\"http://localhost:8084/\").id(\"r2\"))\n\t//.route(r->r.path(\"/bills/**\").uri(\"http://localhost:8083/\").id(\"r3\"))\n\t//.route(r->r.path(\"/fullBill/**\").uri(\"http://localhost:8083/\").id(\"r4\"))\n\t\n\t\n\t//api country : ce qu il faut coller aupres du site apipublic sont les deux header et l url\n\t.route(r->r.path(\"/restcountries/**\") \n\t.filters(f->f.addRequestHeader(\"x-rapidapi-host\",\"ajayakv-rest-countries-v1.p.rapidapi.com\")//le premier header\n\t.addRequestHeader(\"x-rapidapi-key\",\"73c82ac348msh70402abc0aa487bp1e55adjsn44eaaf810895\")//le deuxieme header \n\t.rewritePath(\"/restcountries/(?<segment>.*)\",\"/${segment}\")//il garde quoi si on on ne fait rien\n\t.hystrix(h->h.setName(\"rest-countries\") \n\t.setFallbackUri(\"forward:/restCountriesFallback\"))//ceci est le path qu il fauut mentionner dans le @GetMapping du RestController\n\t)\n\t.uri(\"https://ajayakv-rest-countries-v1.p.rapidapi.com/rest/v1/all\")//l url\n\t.id(\"countries\")) \n\t\n\t\n\t//api muslim salat : ce qu il faut coller aupres du site apipublic sont les deux header et l url\n\t.route(r->r.path(\"/muslimsalat/**\") \n\t.filters(f->f.addRequestHeader(\"x-rapidapi-host\",\"muslimsalat.p.rapidapi.com\")//le premier header \n\t.addRequestHeader(\"x-rapidapi-key\",\"73c82ac348msh70402abc0aa487bp1e55adjsn44eaaf810895\")//le deuxieme header \n\t.rewritePath(\"/muslimsalat/(?<segment>.*)\",\"/${segment}\")//il garde quoi si on on ne fait rien\n\t.hystrix(h->h.setName(\"muslim-salat\") \n\t.setFallbackUri(\"forward:/muslimsalatFallback\"))//ceci est le path qu il fauut mentionner dans le @GetMapping du RestController\n\t)\n\t.uri(\"https://muslimsalat.p.rapidapi.com\")//l url\n\t.id(\"muslimhoraire\")) \n\t\n\t\n\t.build();\n\t}", "title": "" }, { "docid": "ac01437c264d9b72486be0c55c154410", "score": "0.46870556", "text": "public List<Route> getAllRoutes();", "title": "" }, { "docid": "45e660f7b70cbe3eacab379a32958dc3", "score": "0.4686995", "text": "void refreshPitches();", "title": "" }, { "docid": "436be7f24f7b32f9866f73aadabfcae6", "score": "0.46825767", "text": "void reconfigureModel(UUID modelId,ModelConfig config) throws RemoteException, FOSException;", "title": "" }, { "docid": "e6a735985f0d72a63124c27b75700177", "score": "0.46731442", "text": "void seeRoute();", "title": "" }, { "docid": "90ce9ee7503d1c860ee774f7c28b7ee2", "score": "0.46707207", "text": "protected void client_startReload() {\t\n\t}", "title": "" }, { "docid": "7dc2d76b1297ba88fd937cd371093cda", "score": "0.46667555", "text": "private void resetConfigurationUpdates() {\n trackerConfigurationUpdate.sourceConfig = new TrackerConfiguration(appId);\n subjectConfigurationUpdate.sourceConfig = null;\n emitterConfigurationUpdate.sourceConfig = null;\n sessionConfigurationUpdate.sourceConfig = null;\n gdprConfigurationUpdate.sourceConfig = null;\n }", "title": "" }, { "docid": "af2cb24166b76a44312050695da2178b", "score": "0.46649846", "text": "public void refresh() {\n\t\trefreshAgentLabels();\n\t\trefreshInfoLabels();\n\t\trefreshOvLabels();\n\t\trefreshMovesFreelyButton();\n\t}", "title": "" }, { "docid": "28cb394aa21438a849a66e7e73649764", "score": "0.46605211", "text": "public void setRoutes(List<IRoute> routes) {\n this.routes = routes;\n }", "title": "" }, { "docid": "1f7f68998021a0e63ee31deba572a687", "score": "0.46605068", "text": "public void refreshRepAnalNavigationNode() {\r\n\t\t( (DefaultTreeModel) navigationTree.getModel() ).reload( repAnalNode );\r\n\t}", "title": "" }, { "docid": "d61e920141e8ef2549bc0509af06a111", "score": "0.46598914", "text": "@Override\n public void onDetach() {\n super.onDetach();\n createRoute=true;\n }", "title": "" }, { "docid": "231e947e67e5854ac80345b85c7da7ae", "score": "0.4647486", "text": "public static void reload() {\r\n init();\r\n }", "title": "" }, { "docid": "01556003f2427e715ec458b7b4cddaf6", "score": "0.46470922", "text": "@Override public void removeRoute(int netId, android.net.RouteInfo route) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(netId);\nif ((route!=null)) {\n_data.writeInt(1);\nroute.writeToParcel(_data, 0);\n}\nelse {\n_data.writeInt(0);\n}\nmRemote.transact(Stub.TRANSACTION_removeRoute, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}", "title": "" }, { "docid": "f6a8c9b9d0c91f73611055adbab6745c", "score": "0.46468902", "text": "public void clearProxyConfigs();", "title": "" }, { "docid": "8197c60a8a2bc047a67d625bbb02389b", "score": "0.46298364", "text": "public void refresh() {\n this.links = null;\n getLinks();\n }", "title": "" }, { "docid": "4a557a81559a15c7db44003c84445737", "score": "0.4622754", "text": "@RequestMapping(value = \"/cargoes/{trackingID}/routes\", method = RequestMethod.GET)\n\tpublic void assignCargoToRoute() {\n\t\tthrow new UnsupportedOperationException(\"assignCargoToRoute not implemented\");\n\t}", "title": "" }, { "docid": "6460967a6192b429cefc227dfdf4cf55", "score": "0.46217942", "text": "public static ArrayList<NetworkRoute> createInitialRoutesManual(String inputScenario, Network newMetroNetwork, String shortestPathStrategy,\r\n\t\t\t\tList<TransitStopFacility> terminalFacilities, Map<String, CustomStop> metroStops, int nRoutes, Coord zhCenterCoord,\r\n\t\t\t\tdouble metroCityRadius, boolean varyInitRouteSize, \r\n\t\t\t\tdouble minTerminalDistance0, double minInitialTerminalRadiusFromCenter0, double maxInitialTerminalRadiusFromCenter0) throws IOException {\r\n\r\n\t\t\tArrayList<NetworkRoute> networkRouteArray = new ArrayList<NetworkRoute>();\r\n\r\n\t\t\t// make nRoutes new routes\r\n\t\t\tId<Node> terminalNode1 = null;\r\n\t\t\tId<Node> terminalNode2 = null;\r\n\t\t\t\r\n\t\t\tList<List<Id<Node>>> terminalPairList = new ArrayList<List<Id<Node>>>();\r\n\t\t\t\r\n\t\t\tif (inputScenario.equals(\"VC\")) {\r\n\t\t\t\t// this is a diamond with a cross\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef3132\"), Id.createNodeId(\"zhStopLinkRef229250\")));\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef409408\"), Id.createNodeId(\"zhStopLinkRef229250\")));\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef409408\"), Id.createNodeId(\"zhStopLinkRef211190\")));\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef3132\"), Id.createNodeId(\"zhStopLinkRef211190\")));\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef3132\"), Id.createNodeId(\"zhStopLinkRef409408\")));\r\n\t\t\t\tterminalPairList.add(Arrays.asList(Id.createNodeId(\"zhStopLinkRef229250\"), Id.createNodeId(\"zhStopLinkRef211190\")));\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if (inputScenario.equals(\"zurich\")) {\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\t// this is analogous to creating random initial routes once the terminal pairs have been found\r\n\t\t\t// --> see NetworkEvolutionImpl.createInitialRoutesRandom(...)\r\n\t\t\tfor (List<Id<Node>> terminalPair : terminalPairList) {\r\n\t\t\t\tterminalNode1 = terminalPair.get(0);\r\n\t\t\t\tterminalNode2 = terminalPair.get(1);\r\n\t\t\t\t// Find Dijkstra between the terminal node pairs for the desired routes--> nodeList\r\n\t\t\t\tList<Node> nodeList = null;\r\n\t\t\t\tif (shortestPathStrategy.equals(\"Dijkstra1\")) {\r\n\t\t\t\t\tnodeList = DijkstraOwn_I.findShortestPathVirtualNetwork(newMetroNetwork, terminalNode1, terminalNode2);\r\n\t\t\t\t}\r\n\t\t\t\tif (shortestPathStrategy.equals(\"Dijkstra2\")) {\r\n\t\t\t\t\tnodeList = DemoDijkstra.calculateShortestPath(newMetroNetwork, terminalNode1, terminalNode2);\r\n\t\t\t\t}\r\n\t\t\t\tif (nodeList == null || nodeList.size()<3) {\r\n\t\t\t\t\tLog.write(\"Oops, no shortest path available. Trying to create next networkRoute. Please lower minTerminalDistance\"\r\n\t\t\t\t\t\t\t+ \" ,or increase maxNewMetroLinkDistance (and - last - increase nMostFrequentLinks if required)!\");\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tList<Id<Link>> linkList = nodeListToNetworkLinkList(newMetroNetwork, nodeList);\r\n\t\t\t\tlinkList.addAll(OppositeLinkListOf(linkList)); // extend linkList with its opposite direction for PT transportation!\r\n\t\t\t\tNetworkRoute networkRoute = RouteUtils.createNetworkRoute(linkList, newMetroNetwork);\r\n\r\n\t\t\t\tLog.writeAndDisplay(\"The new networkRoute is: [Length=\"+(networkRoute.getLinkIds().size()+2)+\"] - \" + networkRouteToLinkIdList(networkRoute).toString());\r\n\t\t\t\tnetworkRouteArray.add(networkRoute);\r\n\t\t\t}\r\n\r\n\t\t\t// Doing already in main file --> Not necessary to do here again:\r\n\t\t\t// Store all new networkRoutes in a separate network file for visualization\r\n\t\t\t// --> networkRoutesToNetwork(networkRouteArray, newMetroNetwork, fileName);\r\n\t\t\treturn networkRouteArray;\r\n\t\t}", "title": "" }, { "docid": "cecc46b3c7eb112353ef4118e01d04dc", "score": "0.46190387", "text": "public void configure(Config config) {\n LOGGER.debug(\"Reloading configuration.\");\n this.configWriteLock.lock();\n try {\n this.config = config;\n processAppPackages(config);\n } finally {\n this.configWriteLock.unlock();\n }\n }", "title": "" }, { "docid": "ea6831a5ad40b109f102d16b17cf51d1", "score": "0.46054426", "text": "@Override\n\tpublic void generateRoutes() {\n\t\tfor(int i = 0; i < 10; i++){\n\t\t\tSystem.out.println(\"Routing Algorithm 1\");\n\t\t\ttry {\n\t\t\t\tsleep(5000);\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}\n\t}", "title": "" }, { "docid": "852425f318bfb071cd4c02d517b5eaaa", "score": "0.4602533", "text": "public void refresh() {\n refresh(null);\n }", "title": "" }, { "docid": "632f698e7e6218f9a1cf5e5d6dbb9725", "score": "0.46005112", "text": "public void staticRoute(MaplePacket pkt) {\n\t\tif ( pkt.IPv4SrcIs(H1_IP) && pkt.IPv4DstIs(H2_IP) ) {\n\n\t\t\tString[] path = null;\n\n\t\t\tif ( ! pkt.TCPDstPortIs(HTTP_PORT) ) { // All non HTTP IP, e.g., UDP, PING, SSH\n\t\t\t\tpath = H12_LOW_PATH; \n\t\t\t} else { // Only HTTP traffic\n\t\t\t\tpath = H12_HIGH_PATH;\n\t\t\t}\n\n\t\t\t// ***TODO***: Need to agree on either Route or Path, not both\n\t\t\tpkt.setRoute(path);\n\n\t\t\t// Reverse: H2 -> H1\n\t\t} else if ( pkt.IPv4SrcIs(H2_IP) && pkt.IPv4DstIs(H1_IP) ) {\n\n\t\t\t\tString[] path = null;\n\n\t\t\t\tif ( ! pkt.TCPSrcPortIs(HTTP_PORT) ) {\n\t\t\t\t\tpath = H21_LOW_PATH;\n\t\t\t\t} else {\n\t\t\t\t\tpath = H21_HIGH_PATH;\n\t\t\t\t}\n\n\t\t\t\tpkt.setRoute(path);\n\t\t\t \n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a38805eefc08b3a9fb8aaff75bc7912e", "score": "0.45974895", "text": "public void showRoutes()\n {\n System.out.format(\"Router %d%n\", router.getId());\n for(DVRoutingTableEntry entry : routingTable.values()){\n System.out.println(entry);\n }\n }", "title": "" }, { "docid": "d3d70f1b1e97c5c027c33b8fdb53410d", "score": "0.45958644", "text": "public void refresh() {\r\n }", "title": "" }, { "docid": "82bfd24ce1b8b0b46a53790b9eac45db", "score": "0.45957997", "text": "@RequestMapping(value = \"admin/viewRoute\", method = RequestMethod.GET)\r\n\tpublic ModelAndView viewRoute(@ModelAttribute(\"command\") RouteBean route,\r\n\t\t\tBindingResult result, HttpServletRequest request) {\r\n\t\t\r\n\t\t\r\n\t\tRouteModel routemodel =new RouteModel();\r\n\t\ttry{\r\n\t\t\tString route_id_str=request.getParameter(\"route_id\");\r\n\t\t\tbyte[] decodedBytes = Base64.decodeBase64(\"\"+route_id_str+\"\");\r\n\t\t\tint route_id=Integer.parseInt(new String(decodedBytes));\r\n\t\t\ttry{\r\n\t\t\t\troutemodel = schoolservice.getRouteById(route_id);\r\n\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\tHttpSession session = request.getSession();\r\n\t\tif (session.getAttribute(\"userRole\")!= \"Admin\")\r\n\t\t{\r\n\t\t return new ModelAndView(\"redirect:/login.html\");\r\n\t\t}\r\n\t\tint school_id = (Integer) session.getAttribute(\"new_school_id\");\r\n\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\tmodel.put(\"school_details\", schoolservice.getSchoolById(school_id));\r\n\t\t\r\n\t\tif (routemodel != null) {\r\n\r\n\t\t\tmodel.put(\"latlong\",getAllLatLng(schoolservice.listLatLng(route_id)));\r\n\t\t\tmodel.put(\"heading\", \"View Route\");\r\n\t\t\tmodel.put(\"route\", routemodel);\r\n\t\t\tmodel.put(\"all_students\", getStudentList(schoolservice.getStudentsByRouteId(route_id)));\r\n\t\t\treturn new ModelAndView(\"SuperAdmin/view_route_map\", model);\r\n\t\t} else {\r\n\t\t\treturn new ModelAndView(\"redirect:allRoute\");\r\n\t\t}\r\n\t\t}catch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn new ModelAndView(\"redirect:allRoute\");\r\n\t\t\t \r\n\t\t}\r\n\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "e1c8c15bcbf9f148a5784be6618414c1", "score": "0.45956415", "text": "void reconfigureModel(UUID modelId,ModelConfig config, Model model) throws RemoteException, FOSException;", "title": "" }, { "docid": "542c713f2dfcf4bcb8e023258da2bf7a", "score": "0.45926487", "text": "Runbook refresh();", "title": "" }, { "docid": "dc0808587a41f417c9198d806139b0e7", "score": "0.4584873", "text": "ManagedGrafana refresh(Context context);", "title": "" }, { "docid": "e2f509fe9838f6e1e088609a2c859858", "score": "0.45833614", "text": "public boolean updateSystemFromFile(String path)\n {\n ArrayList<Route> newRoutes = FileManager.readFromFile(path);\n\n if (newRoutes != null)\n {\n stations.clear();\n routes.clear();\n\n for (Route nRoute : newRoutes)\n {\n addRoute(nRoute);\n }\n\n return true;\n }\n\n return false;\n }", "title": "" } ]
b53443df87d2b3af5c902ff8f7033329
Establece el label Cantidad IVA
[ { "docid": "442de911b4ae2e6f6dd1b2483c8b81c0", "score": "0.69126195", "text": "public void setLblCantidadIVA(JLabel lblCantidadIVA) {\n this.lblCantidadIVA = lblCantidadIVA;\n }", "title": "" } ]
[ { "docid": "2c193fe447d296b229f77d04d7aaa389", "score": "0.7034568", "text": "public JLabel getLblCantidadIVA() {\n return lblCantidadIVA;\n }", "title": "" }, { "docid": "2236593ff189c4cffc7957c674c9a326", "score": "0.68796307", "text": "public JLabel getLblIVA() {\n return lblIVA;\n }", "title": "" }, { "docid": "263e9807aee5b324d69756c4e9c8b3cd", "score": "0.6732736", "text": "public void setLblIVA(JLabel lblIVA) {\n this.lblIVA = lblIVA;\n }", "title": "" }, { "docid": "908e4542eb7a8eda266a68d8dbc36638", "score": "0.6397583", "text": "private JLabel creaLabelTitolo() {\n /* variabili e costanti locali di lavoro */\n JLabel label = null;\n String testo = \"\";\n\n try { // prova ad eseguire il codice\n if (entrata) {\n testo = \"entrata\";\n } else {\n testo = \"uscita\";\n }// fine del blocco if-else\n label = new JLabel(testo);\n TestoAlgos.setEtichetta(label);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return label;\n }", "title": "" }, { "docid": "9bb23a98dc8210fd3ac2d94cdbeb99c4", "score": "0.63850075", "text": "protected EnemigoGrafica(int v)\r\n\t{\r\n\t\tEnemigoLabel = new JLabel();\r\n\t\tvelocidad = v;\r\n\t}", "title": "" }, { "docid": "342585a24cc158e564d252e66c39f2bd", "score": "0.6375977", "text": "public void MostrarObjeto(){\n jLabel1.removeAll();\n if(InterfazPrincipal.ListaPila == true){\n if(InterfazPrincipal.pila.getCabeza() == null){\n jLabel1.setText(\"Vacio\");\n }else{\n NodoObjeto aux = InterfazPrincipal.pila.getCabeza();\n this.jLabel1.setText(Integer.toString(aux.getID()));\n this.jLabel1.setIcon(aux.getImagen());\n }\n }else{\n if(InterfazPrincipal.ListaObj.getCabeza() == null){\n jLabel1.setText(\"Vacio\");\n }else{\n NodoObjeto aux = InterfazPrincipal.ListaObj.getCabeza();\n this.jLabel1.setText(Integer.toString(aux.getID()));\n this.jLabel1.setIcon(aux.getImagen());\n }\n }\n }", "title": "" }, { "docid": "9ebd1a71ab7ddee67be36b90b8638907", "score": "0.6369", "text": "public telaGenio() {\n initComponents();\n lblPalpite.setText(\"<html>Vou <strong>adivinhar</strong> o valor</html>\");\n }", "title": "" }, { "docid": "61555f56b93d7f9ca4ca4fe7be477dd9", "score": "0.635311", "text": "public TelaIdade() {\n initComponents();\n labelAnoAtual.setText(datas.mostraData());\n }", "title": "" }, { "docid": "ade9e71f6812649ed597e29c2890b6cb", "score": "0.63390404", "text": "public void asignarNuevaVidaALabelDeJugadorA(int nuevaVida) {\r\n\t\tthis.labelVidaDeJugadorA.setText(Integer.toString(nuevaVida));\r\n\t}", "title": "" }, { "docid": "d2ea522e35bb07739cc8fe86a9f4ef0b", "score": "0.6294259", "text": "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n JLabel label;\n\n try { // prova ad eseguire il codice\n\n this.setIconaValido(Lib.Risorse.getIconaBase(\"checkmarkgreen16\"));\n this.setIconaNonValido(Lib.Risorse.getIconaBase(\"Danger16\"));\n\n label = new JLabel();\n label.setOpaque(true);\n label.setHorizontalAlignment(JLabel.CENTER);\n label.setVerticalAlignment(JLabel.CENTER);\n this.setLabel(label);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "3e49838ea19963fb36a4bf382b2dde38", "score": "0.6234959", "text": "private Component nouveauLabel(ILiaisonMetier liaison, int ligne, int colonne)\n\t{\n\t\tJLabel label = new JLabel() ;\n\n\t\tICase iCase = liaison.getCase(liaison.getCle(ligne, colonne)) ;\n\n\t\tlabel.setText(iCase.getValeur());\n\t\tlabel.setOpaque(true);\n\t\tlabel.setBackground(iCase.getCouleur());\n\t\t\n\t\tlabel.setVerticalAlignment((int) CENTER_ALIGNMENT);\n\t\tlabel.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n\n\t\tlabel.setBorder(BorderFactory.createLineBorder(Color.gray, 1));\n\n\t\tlesCases.put(iCase.getName(),label);\n\n\t\treturn lesCases.get(iCase.getName());\n\t}", "title": "" }, { "docid": "74ed4a5c697e6cd40ab8f3335fe74cce", "score": "0.6183469", "text": "private void aggiornaLabelRisultatoMano(Partita partita) {\n crossFadeTesto(this.labelManiVinteGiocatore, partita.getManiVinteDalGiocatore() + \"\");\n crossFadeTesto(this.labelManiVinteComputer, partita.getManiVinteDalComputer() + \"\");\n crossFadeTesto(this.labelPareggi, partita.getPareggi() + \"\");\n }", "title": "" }, { "docid": "c46fcab3c671e15b34e7f53cf4960f19", "score": "0.6181167", "text": "public static void enableLabelNuovoTavolo(){\r\n\t\tlblNuovoTavolo.setVisible(true);\r\n\t}", "title": "" }, { "docid": "30da17055e6118e8a7b1de149c8ab346", "score": "0.60097593", "text": "@Override\n\tpublic String tipoVehiculo() {\n\t\treturn \"bicicleta\";\n\t}", "title": "" }, { "docid": "b7d7cd40fd821e36167e911ab6f28239", "score": "0.5975519", "text": "public CasellaLabel()\n {\n super();\n continguts = new Casella();\n setOpaque(true);\n setMinimumSize(new Dimension(40,40));\n setHorizontalAlignment(SwingConstants.CENTER);\n setHighlight(false);\n }", "title": "" }, { "docid": "0c247db70d6bdbff552bcb3bcf07a9f0", "score": "0.5964988", "text": "private JLabel darVuelta(JLabel carta)\r\n {\r\n carta.setIcon(new ImageIcon(\"src/mazo/fichaVuelta2.png\"));\r\n return carta;\r\n }", "title": "" }, { "docid": "2e02026a34a038d2e22750b539527eab", "score": "0.5962381", "text": "public void paivitaJLabel() {\n if (peli.kaikillaOllutKiekko() == true) {\n J.setText(\"Voitit Pelin\");\n peli.keskeyta();\n this.setIgnoreRepaint(true);\n J.setIgnoreRepaint(true);\n }\n J.setText(peli.getAjastin().getAikaString());\n }", "title": "" }, { "docid": "5cf71279f4bb37a3f2c0ca07d32b512c", "score": "0.5954677", "text": "public static void enableLabelScegliTavolo_tavolo(){\r\n\t\tlblScegliTavolo_tavolo.setVisible(true);\r\n\t}", "title": "" }, { "docid": "5a7f2e5fa4aa460b0a35e15e69f70bf8", "score": "0.5934733", "text": "String label() throws CCAPIException;", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5915193", "text": "String getLabel();", "title": "" }, { "docid": "2db9f4c462d90e37655d9fd8bf3f5694", "score": "0.58913964", "text": "public String cancelarVisualizacion(){\n\t\tppfPersona = null;\n\t\treturn \"irInicio\";\n\t}", "title": "" }, { "docid": "c179b8ce933e3ec1ffc92bcf12130622", "score": "0.58901113", "text": "public abstract void calcolaLabel(KeyEvent unEvento, Azione unAzione, Campo unCampo);", "title": "" }, { "docid": "d43c18dd17c760b972d3ee01c3bf1986", "score": "0.5879833", "text": "@Override\n public String getLabel() { return LABEL; }", "title": "" }, { "docid": "1d3643993a9cca655195d85c76d7a8fc", "score": "0.58766884", "text": "public Conta() {\n this.setNumero(\"\");\n this.setSaldo(0);\n this.setTitular(null);\n }", "title": "" }, { "docid": "179379a2c7bcf0a6aea758d062465e5b", "score": "0.5869394", "text": "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n try { // prova ad eseguire il codice\n\n label = new JLabel();\n label.setFont(FontFactory.creaPrinterFont(Font.BOLD, 9f));\n label.setOpaque(true);\n label.setBackground(Color.lightGray);\n// label.setBorder(BorderFactory.createLineBorder(Color.black));\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n\n }", "title": "" }, { "docid": "afe9d408fb88da6b2b34372ae361fbee", "score": "0.5853292", "text": "public synchronized VicarLabel getVicarLabel() throws IOException\n {\n\treturn null;\n }", "title": "" }, { "docid": "8d5b132486a499cf3981c8a5e4df1fc1", "score": "0.5850214", "text": "private void Jlabel(){\n\t\ticono = new JLabel(\"\");\r\n\t\ticono.setIcon(new ImageIcon(VistaPrincipal.class.getResource(\"/img/user.jpg\")));\r\n\t\ticono.setBounds(55, 41, 148, 120);\r\n\t\ticono.setBorder(getBorder());\r\n\t\tBorder border = LineBorder.createGrayLineBorder();\r\n\t\t\r\n\t\tadd(icono);\r\n\t\t//ponemos en el jpanel el nombre de usuario\r\n\t\tUsuario = new JLabel(\"Usuario\");\r\n\t\tUsuario.setBounds(55, 172, 148, 14);\r\n\t\tadd(Usuario);\r\n\t\t\r\n\t\t//ponemos en el jpanel el nombre de contraseņa\r\n\t\tContraseya = new JLabel(\"Contraseņa\");\r\n\t\tContraseya.setBounds(55, 228, 148, 14);\r\n\t\tadd(Contraseya);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "13e88519988cb4b5998a638dc0d8ba97", "score": "0.58482784", "text": "public void setVelocidad(int iVelocidad) {\n this.iVelocidad = iVelocidad;\n }", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.5838134", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.5838134", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "7f3bd9babd2585f0a00aa8b68b31f8eb", "score": "0.58248013", "text": "public GestionVehiculo(String nombre) { \n this.nombre = nombre;\n mdl = new ModeloListaVehiculos();\n mdl.cargar(ListaVehiculos.miListaCoches);\n // LabelNombre.setText(\"Hola: \" +this.nombre);\n initComponents();\n Usuario temp = ListaUsuarios.usu.buscar_usuario(this.nombre);\n char varSex;\n if(temp.getSexo().equalsIgnoreCase(\"Mujer\")){\n varSex = 'a';\n }else{\n varSex='o';\n }\n LabelNombre.setText(\"Bienvenid\"+varSex+\": \" +temp.getNombre() + \" \" + temp.getApellido());\n \n }", "title": "" }, { "docid": "edd9b8450c59a9c62769e6a3f15310f2", "score": "0.58158195", "text": "@Override\r\n\tpublic String vratiNazivKolona() {\n\t\treturn \" (naziv_ulice_broj, naziv_grada, naziv_drzave) \";\r\n\t}", "title": "" }, { "docid": "439d21e9d2d0d224f82f0faff9bce83b", "score": "0.58016217", "text": "public static void disableLabelNuovoTavolo(){\r\n\t\tlblNuovoTavolo.setVisible(false);\r\n\t}", "title": "" }, { "docid": "2da8354b43b71fe6d97109652ffcfc30", "score": "0.580083", "text": "public static void disableLabelScegliTavolo_tavolo(){\r\n\t\tlblScegliTavolo_tavolo.setVisible(false);\r\n\t}", "title": "" }, { "docid": "9fb77ad1b041b24c3b6275fcc783363d", "score": "0.57785773", "text": "@Override\n public String aumentarIntensidad() {\n return vela.aumentarFuego();\n }", "title": "" }, { "docid": "e8b9a22632f959b1875de78e6e224f68", "score": "0.5761433", "text": "public String EstudianteNoSeleccionado() { return \"No se ha seleccionado ningun estudiante \"; }", "title": "" }, { "docid": "431f40b5bbc0af567b709c24d649e0ed", "score": "0.5750813", "text": "int getLabelValue();", "title": "" }, { "docid": "acebebf6d9f9e91141102c7f880d9bb3", "score": "0.57326514", "text": "@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(10)\n java.lang.String label();", "title": "" }, { "docid": "85892640160983c8c2ab6467759f1fd3", "score": "0.572294", "text": "public JLabel getLblBuscar() {\n return lblBuscar;\n }", "title": "" }, { "docid": "5f2ac9f3b8e31ab5d632e6ab5267325e", "score": "0.5716129", "text": "@Override\r\n\tpublic String textoAyuda() \r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn \"AYUDA: Muestra la ayuda\";\r\n\t}", "title": "" }, { "docid": "93975e1416b21477d5ceaac4f148d4cb", "score": "0.5687729", "text": "private void clearLbl() {\r\n\t\tlblIncidenti.setText(\"-\");\r\n\t\tlblTumori.setText(\"-\");\r\n\t\tlblCardio.setText(\"-\");\r\n\t\tlblContagio.setText(\"-\");\r\n\t}", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.56742793", "text": "public String getLabel();", "title": "" }, { "docid": "13b538b1ec4bc22afb040d033f9a0902", "score": "0.5670586", "text": "public void comprobarAciertos() {\n asignarAciertosImageView();\n }", "title": "" }, { "docid": "0b79480503290bbac4aceb871efc4b9b", "score": "0.56690246", "text": "Label getLabel();", "title": "" }, { "docid": "a6aae271aaf4dd2af6038b8b7448d0d2", "score": "0.5653613", "text": "public JLabel getLblNombre() {\n return lblNombre;\n }", "title": "" }, { "docid": "b568d9a54e8e764d0fbc303550c5c688", "score": "0.5650959", "text": "String getLabel ();", "title": "" }, { "docid": "ada43c48a5551e8dc50442a0b795e3b4", "score": "0.5641477", "text": "public void verCoima(View view) {\n TextView taxa = findViewById(R.id.input_alcool);\n taxaTotal = Double.parseDouble(taxa.getText().toString());\n\n TableRow quantidadeLinha = findViewById(R.id.linhaQuant1);\n quantidadeLinha.setVisibility(View.GONE);\n\n FinalizarFragment aFragment = new FinalizarFragment(calculaPassouTeste(), 1);\n getSupportFragmentManager().beginTransaction().add(R.id.tabelaCoimas, aFragment).commit();\n }", "title": "" }, { "docid": "c811f7abaa78c483444ffc4cfbb678a7", "score": "0.56411266", "text": "private void insertInv()\n {\n int x0 = x-Images.INVISIBLE.dx();\n int y0 = y-Images.INVISIBLE.dy();\n int w = Images.INVISIBLE.getWidth();\n int h = Images.INVISIBLE.getHeight();\n \n this.invs = new JLabel(Images.INVISIBLE.ico());\n this.invs.setBounds (x0, y0, w, h);\n }", "title": "" }, { "docid": "8ed6639978f6e559d49c5d8a1523f137", "score": "0.5638475", "text": "private void mostrarPaciente(){\r\n jLabelPaciente.setText(\"Paciente: \"+paciente.getNombre()+\", \"+paciente.getApellido1());\r\n }", "title": "" }, { "docid": "200e5b5800ddc1762adb1a060abfa985", "score": "0.5638331", "text": "private static void annadirCirculo() throws DimensionNoValidaException, FiguraYaExisteException {\n\t\tfiguritas.add(new Circulo(Teclado.leerDecimal(\"Dame el radio del Círculo\")));\n\n\t}", "title": "" }, { "docid": "f8cfc375bcc418b4016e20ea5eaf7682", "score": "0.5635411", "text": "String ModifierCorrectionSubProcessor_default_visibility_label();", "title": "" }, { "docid": "00043f57c36e2f56c75b1d9bf6863eb4", "score": "0.5635165", "text": "@Override\n\tpublic String imprimir() {\n\t\treturn \"Deberķas iniciar un estacionamiento\";\n\t}", "title": "" }, { "docid": "092aa92dd47a13287a70d7c850014021", "score": "0.56319094", "text": "private void almacenaCuerpoE() {\n linea=\"|_*-|\";\n for (int i=0; i<operacion.size(); i++)\n linea+=(operacion.get(i)) ? \"1\" : \"0\";\n //linea+=String.valueOf(operacion.get(i));\n informacion.add(linea);\n }", "title": "" }, { "docid": "b6ccf7ddc4019989e39fea4cf7b60805", "score": "0.5631421", "text": "public ventanaPrimcipal() {\n initComponents();\n horasSemanales.setVisible(false);\n labelIngrese.setVisible(false);\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "4ad7b3f930ceb4e62a6b39d043a1ee3c", "score": "0.56284475", "text": "public void agregarBarrasVida(){\n\n\t\tVBox contenedor = new VBox();\n\n\t\tString nombreCapitalizado = Character.toUpperCase(nombreJugador.charAt(0)) + nombreJugador.substring(1);\n\t\tLabel tituloVida = new Label(\"Equipo \" + nombreCapitalizado);\n\t\ttituloVida.setFont(Font.font(\"Georgia\", 20));\n\t\ttituloVida.setTextFill(Color.CADETBLUE);\n\t\t\n\t\tcontenedor.setSpacing(10);\n\t\tcontenedor.getChildren().addAll(tituloVida, vidaAlgoformer1, vidaAlgoformer2, vidaAlgoformer3,vidaAlgoformerCombinado);\n\n\t\tcontenedor.setAlignment(Pos.CENTER);\n\t\tthis.getChildren().add(contenedor);\n\n\t}", "title": "" }, { "docid": "b6e7aca92db09277fa675361e6b7d7a1", "score": "0.5628019", "text": "public String EstudiantesNoSeleccionado() { return \"No se han seleccionado todos los estudiantes \"; }", "title": "" }, { "docid": "9361d06a7c6c5843e07b4be53ca2744e", "score": "0.56172764", "text": "public String getLabel ();", "title": "" }, { "docid": "299da7b04b97e119f81d8598c6e81cf7", "score": "0.56144035", "text": "public TcCapNotifCurso() { }", "title": "" }, { "docid": "d2a40b3dc0d87ee40a051554007b60b1", "score": "0.56081", "text": "private void almacenaCuerpoF() {\n linea=\"|_*_|\";\n for (int i=0; i<caseCaracter.size(); i++)\n linea+=(caseCaracter.get(i)) ? \"1\" : \"0\";\n //linea+=String.valueOf(caseCaracter.get(i));\n informacion.add(linea);\n }", "title": "" }, { "docid": "fc0b226c8a7887271caa8bb7ac487e94", "score": "0.5603064", "text": "@Override\n\tpublic int getTamaņo() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "5dba8b8680ec4989d73ec2023642a4a0", "score": "0.5602525", "text": "private void mudaEstado(String novo) {\n\t\tif(novo.equals(\"aberta\")){\r\n\t\t\tthis.lblImagem.setIcon(portaAberta);\t\t\t\r\n\t\t\tthis.lblEstado.setIcon(fecharPorta);\r\n\t\t\tthis.lblTranca.setIcon(trancarOff);\r\n\t\t\t\r\n\t\t\tthis.estado = \"aberta\";\r\n\t\t}\r\n\t\telse if(novo.equals(\"fechada\")){\t\t\t\r\n\t\t\tthis.lblImagem.setIcon(portaFechada);\t\t\r\n\t\t\tthis.lblEstado.setIcon(abrirPorta);\r\n\t\t\tthis.lblTranca.setIcon(trancarOff);\r\n\t\t\t\r\n\t\t\tthis.estado = \"fechada\";\r\n\t\t}\r\n\t\telse if(novo.equals(\"trancada\")){\t\t\t\r\n\t\t\tthis.lblImagem.setIcon(portaTrancada);\r\n\t\t\tthis.lblEstado.setIcon(abrirPorta);\r\n\t\t\tthis.lblTranca.setIcon(trancarOn);\r\n\t\t\t\r\n\t\t\tthis.estado = \"trancada\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "46ca88162b1d514208a16f0828e32b39", "score": "0.560215", "text": "public String getIva(){\r\n \treturn this.iva;\r\n }", "title": "" }, { "docid": "08f0c5e6730700cbc835b86b659e5f79", "score": "0.55907047", "text": "public String getINDICA() {\n return fieldINDICA.getString();\n }", "title": "" }, { "docid": "08f0c5e6730700cbc835b86b659e5f79", "score": "0.55907047", "text": "public String getINDICA() {\n return fieldINDICA.getString();\n }", "title": "" }, { "docid": "33907d6abbc724562a48754c56821c0c", "score": "0.55801165", "text": "@Override\r\n\tpublic void asezareLaCoada() {\n\t\tSystem.out.println(\"s-a asezsat la codita\");\r\n\t}", "title": "" }, { "docid": "69f4afdcaa0751f69b28bcf2c5e5c958", "score": "0.5579333", "text": "public String imprimirVisa() {\r\n\t\t\r\n\t\tString visa = \"\\n\"+\"\\n\"+\"Id: \"+id+\"\\n\"+\"Tipo de Visa: \"+tipo+\"\\n\"+\"Tarifa: \"+tarifa +\"\\n\"+\"Requisitos: \"+ requisitos;\r\n\t\treturn visa;\r\n\r\n\t}", "title": "" }, { "docid": "40ca62429f6ccbb122503f4f5663d8c3", "score": "0.5578531", "text": "public Interfaz() {\n initComponents();\n lblInstruccion.setVisible(false);\n lblInstruccion1.setVisible(false);\n lblInstruccion2.setVisible(false);\n btnCalcular.setVisible(false);\n lblNota.setVisible(false);\n SNumerosTF(Tamaño); //Para el primer dato que define tamaño\n SNumerosTBL(table);//Para cada uno de los datos de la matriz\n }", "title": "" }, { "docid": "760fc788310e1710d9de0eb89142e6d5", "score": "0.557628", "text": "void imprimirVueltas(){\r\n\t\tSystem.out.println(\"Lo que nos tiene que devolver es \" + (this.pago - this.precio) + \"€\");\r\n\t\tString imprimir=\"\";\r\n\t\tfor (int i = 0; i < aVueltas.length; i++) {\r\n\t\t\tSystem.out.println( aVueltas[i]);\r\n\t\t\t\r\n\t\t\timprimir = aVueltas[i] + \" \";\r\n\t\t\tif( BILLETE_MINIMO <= BILLETES_MONEDAS[i]){\r\n\t\t\t\timprimir += \"Billetes \" + (int)BILLETES_MONEDAS[i] + \"€\";\r\n\t\t\t}else{\r\n\t\t\t\timprimir += \"Monedas\" + (int)BILLETES_MONEDAS[i] + \"€\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print( imprimir );\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ead76905ab3f36315571bae56ccc54d", "score": "0.5567745", "text": "public int getLabel()\r\n {\r\n \treturn label;\r\n }", "title": "" }, { "docid": "6ca170252da2c079994a9e2ebc7b9087", "score": "0.55654836", "text": "private void MostrarEstudianteElegido() {\n lbNombreEstudiante.setText( estudianteElegido.getNombreCompleto() );\n }", "title": "" }, { "docid": "06ede2bfea6b5f4f4712df333c3d2fdc", "score": "0.5562853", "text": "public JLabel getLblMuestraImagen() {\n return lblMuestraImagen;\n }", "title": "" }, { "docid": "2a359a160502d27d30df85d077e4c39e", "score": "0.5561821", "text": "private JLabel seleccionaLabel(int contador) {\n switch (contador) {\n case 1:\n return l1;\n case 2:\n return l2;\n case 3:\n return l3;\n case 4:\n return l4;\n case 5:\n return l5;\n case 6:\n return l6;\n case 7:\n return l7;\n case 8:\n return l8;\n case 9:\n return l9;\n case 10:\n return l10;\n case 11:\n return l11;\n case 12:\n return l12;\n case 13:\n return l13;\n case 14:\n return l14;\n case 15:\n return l15;\n case 16:\n return l16;\n case 17:\n return l17;\n case 18:\n return l18;\n case 19:\n return l19;\n case 20:\n return l20;\n case 21:\n return l21;\n case 22:\n return l22;\n case 23:\n return l23;\n case 24:\n return l24;\n case 25:\n return l25;\n case 26:\n return l26;\n case 27:\n return l27;\n case 28:\n return l28;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "df484ecfa5b238b135b1fea540ac123a", "score": "0.5545555", "text": "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "df484ecfa5b238b135b1fea540ac123a", "score": "0.5545555", "text": "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4eb8df226f7221d8a30e8470e2542b95", "score": "0.5535578", "text": "@Override\r\n\tpublic String getLabel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn label;\r\n\t}", "title": "" }, { "docid": "0072820540182188d466427aaa76ea07", "score": "0.5533367", "text": "private void dicaDeTextoParaBotoes() {\n jbt_Novo.setToolTipText(\"Novo Registro\");\n jbt_Cancelar.setToolTipText(\"Cancelar\");\n jbt_Salvar.setToolTipText(\"Salvar\");\n jbt_Atualizar.setToolTipText(\"Atualizar Registro\");\n jbt_Excluir.setToolTipText(\"Excluir Registro\");\n }", "title": "" }, { "docid": "31efd3010af439bc53f0c03cb1b8bb0e", "score": "0.55261725", "text": "public Aviso(String titulo, String descripcion, int precio, int alonsoCoin, String categoria, int region) {\n this.titulo = titulo;\n this.descripcion = descripcion;\n this.precio = precio;\n this.alonsoCoin = alonsoCoin;\n this.categoria = categoria;\n this.region = region;\n //instancia la coleccion de comentarios que tendra el aviso\n comentarios = new <Comentario>ArrayList();\n //inicializa el id de los futuros comentarios en 0\n idComentario = 0;\n }", "title": "" }, { "docid": "c56676650cc3397abe8434248a4b6c77", "score": "0.55232346", "text": "public Kanalas() {\n super(\"KanaluIrenginys\", true);\n }", "title": "" }, { "docid": "9fe2d069b2a35b0a8d7900c58a220e23", "score": "0.55225503", "text": "private void limpiarDatos(){\n Impresion.jLabel17.setText(\"\");\n Impresion.jLabel16.setText(\"\");\n Impresion.jLabel1.setText(\"\");\n Impresion.jLabel22.setText(\"\");\n Impresion.jLabel24.setText(\"\");\n Impresion.jLabel26.setText(\"\");\n Impresion.jLabel29.setText(\"\");\n\n }", "title": "" }, { "docid": "ddd86b01f77fa06f4204dd80dd7ec3ab", "score": "0.55186564", "text": "private String label(Object vOrE) {\n\t\tif (vOrE instanceof IEdge) {\n\t\t\treturn (String) graph.getEdgeInfo(vOrE).getAttribute(\"label\");\n\t\t} else if (vOrE instanceof IVertex) {\n\t\t\treturn (String) graph.getVertexInfo(vOrE).getAttribute(\"label\");\n\t\t} else {\n\t\t\tassertTrue(false);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a83672e3402353e3623124b750e47a02", "score": "0.55154055", "text": "public TelaJogo() {\n initComponents();\n lblFrase.setText(\"<html>Vou pensar em um valor entre 0 e 5. Tente adivinhar </html>\");\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "ff7cdab8c2a51d13bb53e00450fb458d", "score": "0.5513417", "text": "public void avvisoInizioGioco(String nome){\n //con questo metodo si dovrebbe vedere un alert che mostra il nome di chi inizia\n }", "title": "" }, { "docid": "9efa8c4cde7f0e9b28f273d92bd6e9e1", "score": "0.55130285", "text": "public String getLabel() { return label; }", "title": "" }, { "docid": "dccadb56626581f0358f7698318ff408", "score": "0.55090344", "text": "public void inizio()\n\t\t{\n\t\t\tSystem.out.println(Utility.CORNICE);\n\t\t\tSystem.out.println(Utility.BENVENUTI);\n\t\t\tSystem.out.println(Utility.CORNICE);\n\t\t\tSystem.out.println(Utility.ISTRUZIONI);\n\t\t\tSystem.out.println(Utility.CORNICE);\n\t\t}", "title": "" } ]
76ac8698143701c46cf6642733b28d21
Does the line contain an actual command or is it some data like .BYTE?
[ { "docid": "9e9e7c37d3405326dbb84e01eb5f6633", "score": "0.0", "text": "public boolean isDataLine() {\n\t\treturn dataLine;\n\t}", "title": "" } ]
[ { "docid": "eb2cb69a36f3e7c9d3b597e0b3cafc1f", "score": "0.6983972", "text": "private boolean isCommand(String line) {\n\t\tline = line.trim();\n\t\treturn line.startsWith(SET) || line.startsWith(CHECK);\n\t}", "title": "" }, { "docid": "e2d78c7b6f22a93b7ec5fbbcbc93719b", "score": "0.6579616", "text": "void checkopcode(String line){\n\t\t\t\n\t\t\t//System.out.println(location_counter);\n\t\t\tassemblyop = line.substring(8, 11);\n\t\t\topcode = op.getbinary(assemblyop);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0456596491e0feaa472fa427aa1dbf02", "score": "0.59186786", "text": "private void parseCommandInstruction(String line) {\n\t\tString lineSplit[] = line.split(\"\\\\s+\");\n\t\tif (lineSplit.length > 1 && lineSplit[1].length() != 1) {\n\t\t\tthrow new IllegalArgumentException(\"Action must be defined for a single symbol.\");\n\t\t}\n\t\tif (lineSplit.length == 3) {\n\t\t\tregisterCommand(lineSplit[1].charAt(0), lineSplit[2]);\n\t\t} else if (lineSplit.length == 4) {\n\t\t\tregisterCommand(lineSplit[1].charAt(0), lineSplit[2] + \" \" + lineSplit[3]);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Invalid instruction format.\");\n\t\t}\n\t}", "title": "" }, { "docid": "ed398f25010a1a4a30ff599612684d17", "score": "0.5769534", "text": "private void parseCommandType() {\n commandType = null;\n switch (lineParts.length) {\n case 0: //only one option: no command\n commandType = CommandType.NO_COMMAND;\n break;\n case 1: // two options: arithmetic and return\n if (lineParts[0].equalsIgnoreCase(\"return\")) {\n commandType = CommandType.C_RETURN;\n } else if (lineParts[0].length() == 0) {\n commandType = CommandType.NO_COMMAND;\n } else {\n commandType = CommandType.C_ARITHMETIC;\n }\n break;\n case 2: // three options: label, goto, if goto\n if (lineParts[0].equalsIgnoreCase(\"label\")) {\n commandType = CommandType.C_LABEL;\n } else if (lineParts[0].equalsIgnoreCase(\"goto\")) {\n commandType = CommandType.C_GOTO;\n } else if (lineParts[0].equalsIgnoreCase(\"if-goto\")) {\n commandType = CommandType.C_IF;\n }\n break;\n case 3: // four options: push, pop, function, call\n if (lineParts[0].equalsIgnoreCase(\"pop\")) {\n commandType = CommandType.C_POP;\n } else if (lineParts[0].equalsIgnoreCase(\"push\")) {\n commandType = CommandType.C_PUSH;\n } else if (lineParts[0].equalsIgnoreCase(\"function\")) {\n commandType = CommandType.C_FUNCTION;\n } else if (lineParts[0].equalsIgnoreCase(\"call\")) {\n commandType = CommandType.C_CALL;\n }\n break;\n }\n\n if (commandType == null) { // error handle when the command type is not set\n System.out.println(\"Error determining command type!\");\n System.out.println(\"Error at line \" + lineNumber + \":\" + rawLine); //add debugging data\n System.out.println(\"Line Cleaned to \" + cleanLine);\n System.exit(1);\n }\n }", "title": "" }, { "docid": "d5003e2940505c79767b3f2742989f49", "score": "0.5759521", "text": "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(24)\r\n short includesLine();", "title": "" }, { "docid": "ae3aa615e3ad82fbb8fe85459bf72199", "score": "0.5707456", "text": "boolean isCommand(String input);", "title": "" }, { "docid": "53065b3d229042f4a82420a649ff7ffe", "score": "0.56343526", "text": "public boolean checkCommand() throws Exception {\r\n\t\tif (bounds.length % 2 != 0)\r\n\t\t\treturn false;\r\n\t\tString cmd = \"\";\r\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tif (mode.compareTo(\"RT\") == 0 && (i == 3 || i ==5)) {\r\n\t\t\t\tcmd = cmd + \"\\\"\" + command[i] + \"\\\"\" + \" \";\r\n\t\t\t} else if (mode.compareTo(\"DART\") == 0 && (i == 5 || i == 7)) {\r\n\t\t\t\tcmd = cmd + \"\\\"\" + command[i] + \"\\\"\" + \" \";\r\n\t\t\t} else {\r\n\t\t\t\tif (i != command.length - 1)\r\n\t\t\t\t\tcmd = cmd + command[i] + \" \";\r\n\t\t\t\telse\r\n\t\t\t\t\tcmd = cmd + command[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tString pattern1 = \"(-m\\\\s+RT\\\\s+-p\\\\s+\\\".+?\\\"\\\\s+-o\\\\s+\\\".+?\\\"\\\\s+-s\\\\s+\\\\d+\\\\s+-n\\\\s+\\\\d+\\\\s+-a\\\\s+\\\\d+\\\\s+-r(\\\\s+-*\\\\d+\\\\.\\\\d+)+|-m\\\\s+RT\\\\s+-p\\\\s+\\\".+?\\\"\\\\s+-o\\\\s+\\\".+?\\\"\\\\s+-s\\\\s+\\\\d+\\\\s+-n\\\\s+\\\\d+\\\\s+-a\\\\s+\\\\d+\\\\s+-r(\\\\s+-*\\\\d+)+)\";\r\n\t\tString pattern2 = \"(-m\\\\s+DART\\\\s+-k\\\\s+\\\\d+\\\\s+-p\\\\s+\\\".+?\\\"\\\\s+-o\\\\s+\\\".+?\\\"\\\\s+-s\\\\s+\\\\d+\\\\s+-n\\\\s+\\\\d+\\\\s+-a\\\\s+\\\\d+\\\\s+-r(\\\\s+-*\\\\d+\\\\.\\\\d+)+|-m\\\\s+DART\\\\s+-k\\\\s+\\\\d+\\\\s+-p\\\\s+\\\".+?\\\"\\\\s+-o\\\\s+\\\".+?\\\"\\\\s+-s\\\\s+\\\\d+\\\\s+-n\\\\s+\\\\d+\\\\s+-a\\\\s+\\\\d+\\\\s+-r(\\\\s+-*\\\\d+)+)\";\r\n\t\tboolean temp = (Pattern.matches(pattern1, cmd) || Pattern.matches(pattern2, cmd));\r\n\t\tif (Integer.parseInt(getNumOfArg())*2 != getBounds().length) \r\n\t\t\ttemp = false;\r\n\t\telse {\r\n\t\t\tfor (int i = 0; i < Integer.parseInt(getNumOfArg()); i++) {\r\n\t\t\t\tif (Float.parseFloat(bounds[2 * i]) > Float.parseFloat(bounds[2 * i + 1])) {\r\n\t\t\t\t\ttemp = false;\r\n\t\t\t\t\tSystem.out.println(\"Upper bound should be larger or equal than lower bound.\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn temp;\t\t\r\n\t}", "title": "" }, { "docid": "7a479a24facd5e589c5c564bba74fde6", "score": "0.5539515", "text": "boolean processCommand(HdmiCecMessage cmd) {\n if (this.mState == 1 && this.mRecorderAddress == cmd.getSource() && cmd.getOpcode() == 10) {\n return handleRecordStatus(cmd);\n }\n return false;\n }", "title": "" }, { "docid": "2a665a33c538809132be9db67333cb68", "score": "0.5528864", "text": "private static void readCommand() \r\n\t{\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t// egy sor beolvasas\r\n\t\t\tString line = buffer.readLine();\r\n\t\t\t// sor tokenekre bontasa\r\n\t\t\tif(line != null)\r\n\t\t\t{\r\n\t\t\t\tStringTokenizer tokens = new StringTokenizer(line);\r\n\t\t\t\t// elso token eltarolasa parancskent\r\n\t\t\t\tif(tokens.hasMoreTokens())\r\n\t\t\t\t\tcommand = tokens.nextToken();\t\r\n\t\t\t\t// parametereket tarolo tomb inicializalasa\r\n\t\t\t\tparameters = new ArrayList<String>();\r\n\t\t\t\t// maradek token eltarolasa parameterkent\r\n\t\t\t\tfor(int i = 0; tokens.hasMoreTokens(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tString parameter = tokens.nextToken();\r\n\t\t\t\t\tparameters.add(i, parameter);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\trun = false;\r\n\t\t} // kivetelek lekezelese\r\n\t\tcatch (IOException ioe) \r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t}\r\n\t\tcatch (NoSuchElementException nsee)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b0bccc231ce96f5013d206f79689859b", "score": "0.5507627", "text": "boolean hasCmd();", "title": "" }, { "docid": "b0bccc231ce96f5013d206f79689859b", "score": "0.5507627", "text": "boolean hasCmd();", "title": "" }, { "docid": "b0bccc231ce96f5013d206f79689859b", "score": "0.5507627", "text": "boolean hasCmd();", "title": "" }, { "docid": "b0bccc231ce96f5013d206f79689859b", "score": "0.5507627", "text": "boolean hasCmd();", "title": "" }, { "docid": "5ee53031330fce48ba28a9d7c5dce3e4", "score": "0.5488776", "text": "boolean hasCommanderInstruction();", "title": "" }, { "docid": "f6b8ced0c2cfe7b8c1d895443c434c0e", "score": "0.5477389", "text": "public boolean processInputLine (String srcDesc, PrintStream out, String line) \n\t{\n\t\tline = line.trim ();\n\t\tint idx = line.indexOf (\" \");\n\t\tString cmdName = null;\n\t\tString params[] = null;\n\t\tif (idx < 0) {\n\t\t\tcmdName = line.toLowerCase();\n\t\t\tparams = new String[0];\n\t\t} else {\n\t\t\tcmdName = line.substring(0, idx);\n\t\t\tline = line.substring (idx + 1);\n\t\t\tif ((params = line.split(\" \")) == null)\n\t\t\t\tparams = new String[0]; \t\n\t\t}\n\t\treturn handleCommand(srcDesc, cmdName, params, out);\n\t}", "title": "" }, { "docid": "cd92565e2c45a4ecc63400dbe49cfeb3", "score": "0.5454409", "text": "public boolean hasCommandStart() {\n return messageCase_ == 16;\n }", "title": "" }, { "docid": "d924fbd4896bee720c4a7bd7b9c6efbd", "score": "0.5404364", "text": "public boolean hasCommandStart() {\n return messageCase_ == 16;\n }", "title": "" }, { "docid": "160f9f99082ffd0a41af6989b3dfbbbe", "score": "0.54007906", "text": "private static void processCommand(String line) {\n String[] params = line.split(\" \");\n if (params != null && params.length > 0) {\n switch (params[0]) {\n case \"insert\":\n if (params.length > 1) {\n String seq = params[1].trim();\n if (seq.length() > 0) {\n tree.insert(new Sequence(seq));\n }\n }\n System.out.flush();\n break;\n case \"remove\":\n tree.remove(new Sequence(params[1]));\n System.out.flush();\n break;\n case \"print\":\n Print.setPrint(PrintMode.NONE);\n if (params.length > 1) {\n if (params[1].compareTo(\"lengths\") == 0) {\n Print.setPrint(PrintMode.LENGTH);\n }\n else if (params[1].compareTo(\"stats\") == 0) {\n Print.setPrint(PrintMode.STATS);\n }\n }\n tree.dump();\n System.out.flush();\n break;\n case \"search\":\n tree.search(new SearchSequence(params[1]));\n System.out.flush();\n break;\n default:\n break;\n }\n }\n }", "title": "" }, { "docid": "7114933294655fd2020540282ec2df60", "score": "0.53942055", "text": "boolean checksymbol(String line) throws IllegalDatatype, UnknownSymbol, IllegalOpcode {\n\t\t\t\n\t\t\tsymbol = line.substring(0, 8);\n\t\t\tvartype = line.substring(8,10);\n\t\t\t\n\t\t\t// ************** ADD variable Types ****************\n\t\t\t//System.out.println(opcode);\n\t\t\t//System.out.println(vartype + \" \" + symbol + \" \" + opcode);\n\t\t\tif (vartype.equals(\"DC\") && !symbol.equals(\" \")) {\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\tif (vartype.equals(\"DC\") && symbol.equals(\" \")) {\n\t\t\t\t//System.out.println(1);\n\t\t\t\tthrow (new UnknownSymbol());\n\t\t\t}\n\t\t\telse if (!vartype.equals(\"DC\") && opcode == null) {\n\t\t\t\t//System.out.println(1);\n\t\t\t\tthrow (new IllegalOpcode());\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\t\t\n\t\t}", "title": "" }, { "docid": "8de6ca09c3a712d506edcc182e68ffd1", "score": "0.5393814", "text": "private void parseCommand() {\n String messageText = message.getMessageText();\n if(messageText==null || messageText.length()<=1 || !isValid()) {\n command = UNKNOWN_COMMAND;\n } else {\n String[] parts = messageText.split(\"\\\\s\");\n command = parts[0].substring(1);\n if(parts.length>1) {\n parts = Arrays.copyOfRange(parts, 1, parts.length);\n for(String arg : parts) {\n arguments.add(arg.substring(1));\n }\n }\n }\n }", "title": "" }, { "docid": "3dc72545af7a13f811bc531bed1c7668", "score": "0.53638214", "text": "private String gotCmd()\n \t{\n\t\ttry {\n \t\t //Wait for the client to send a String \n\t\t String message = in.readLine();\n \t\t \n \t\t //Send back a response\n \t\t // maybe out.println( message );\n \t\t} catch (Exception e) {\n \t\t e.printStackTrace();\n \t\t}\n \n \t\t//sets haveCMD to true is ther was a command sent so can call parseCmd\n \t\tif(message != null)\n \t\t{\n \t\t\thaveCMD = true;\n \t\t}\n \t\treturn message;\n \t}", "title": "" }, { "docid": "4b6a2e0a454473422e677b8a38f14b84", "score": "0.53569037", "text": "public boolean hasCommand() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "title": "" }, { "docid": "dbce139924377f2494243f3f23e5b0f6", "score": "0.5347931", "text": "boolean checkvalid(String line)throws Exception {\n\t\t\n\t\t//System.out.println(checkaddressfeild(line));\n\t\tcheckopcode(line);\n\t\tif(checkvalidlabel(line) && opcode!=null && checkaddressfeild(line) ) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bbf8f8635a8a418c008acf68fb4a1d5b", "score": "0.5345739", "text": "public boolean hasCommand() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "title": "" }, { "docid": "b75eb1701866a84fafad25aebc019404", "score": "0.53439057", "text": "public static boolean validCommand(String command) {\n\t\tcommand = command.toUpperCase();\n\tif((command.contains(\"HELO\") || command.contains(\"DATA\") || command.contains(\"QUIT\") || command.contains(\"HELP\"))\n\t\t\t&& command.length() == 4)\n\t\treturn true;\n\n\tif(command.contains(\"MAIL FROM\") && command.length()==9) return true;\n\tif(command.contains(\"RCPT TO\") && command.length()==7) return true;\n\t\n\treturn false;\n\n\t}", "title": "" }, { "docid": "eec321bde5d428f670e56c2929163a89", "score": "0.53379494", "text": "private Boolean checkIfIsCommand(String s){\n try {\n if ((ACCEPTABLE_COMMAND_STARTS.contains(s.split(\" \")[0]) && !Pattern.matches(\"[^a-zA-Z]\", s))||s.split(\" \")[0].equals(\"PICK\")&&s.split(\" \")[1].equals(\"UP\"))\n return true;\n }catch (NullPointerException e){\n return false;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "39638b3ce820ce87375fe77fea6349c7", "score": "0.53307545", "text": "private void readExecuteCommand() {\n _cline.clear();\n String str = _inp.nextLine();\n str = str.trim();\n String[] arr = str.split(\"\\\\s+\");\n for (int i = 0; i < arr.length; i++) {\n _cline.add(arr[i]);\n }\n String temp1 = _cline.get(0);\n if (_cline.size() == 2 && temp1.matches(\"-?\\\\d+\")\n && _cline.get(1).matches(\"-?\\\\d+\")) {\n if (_playing) {\n saveMove(Integer.parseInt(temp1),\n Integer.parseInt(_cline.get(1)));\n makeMove(_move[0], _move[1]);\n } else {\n reportError(\"No game in progress.\");\n }\n } else {\n executeCommand(temp1);\n }\n }", "title": "" }, { "docid": "eecd2bf51cfde0c43b18481732358b8c", "score": "0.53279907", "text": "public boolean isValidCommand(String command) {\n\treturn !command.equalsIgnoreCase(NOT_FOUND);\n }", "title": "" }, { "docid": "5e4ee469a82ff46581af80de1805e0b5", "score": "0.5301231", "text": "private boolean isCommand(CommandType type, String keyword) {\n\t\tassert keyword != null;\n\n\t\treturn type.getType().equalsIgnoreCase(keyword);\n\t}", "title": "" }, { "docid": "5b8937d979ad2da97936f83323373a66", "score": "0.53001416", "text": "private boolean isCommand(String requestCommand,String commandKey) {\n\t\t\n\t\tString command = SMTPUtils.getCommand(commandKey);\n\t\tif (command!=null) {\n\t\t\ttry {\n\t\t\t\tif (requestCommand.substring(0, command.length()).equals(command)) return true;\n\t\t\t} catch (StringIndexOutOfBoundsException ex) {return false;}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d6da2c3bbf09e2812c12d5b9ea899be1", "score": "0.5288126", "text": "boolean checkaddressfeild(String line) throws InvalidFormat {\n\t\t\t\n\t\t\taddressfield = line.substring(20, Math.max(21, line.length()));\n\t\t\tif (!addressfield.contains(\"//\")) {\n\t\t\t\tif (op.getbinary(opcode) != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (addressfield.startsWith(\" \")) {\n\t\t\t\t\t\tthrow (new InvalidFormat());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "e8772726239f528e6635b9edbb4d625b", "score": "0.52834445", "text": "private void processLine(String line) {\n line = line.replaceAll(\"#.*$\", \"\").trim();\n if (line.isEmpty())\n return;\n\n // Split on whitespace and separate command from parameters\n String[] parts = line.split(\"\\\\s+\", -1);\n String command = parts[0];\n String[] parameters = Arrays.copyOfRange(parts, 1, parts.length);\n\n // Execute command\n executeCommand(command, parameters);\n }", "title": "" }, { "docid": "27782679903749f0da2d92270b147b59", "score": "0.5280728", "text": "boolean hasUnsupported13();", "title": "" }, { "docid": "00ae9e6f6da066fe87a8364045a15d66", "score": "0.5258508", "text": "public boolean hasCmd() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "998a511fba0508f4e30a0bb51dbf195a", "score": "0.5257124", "text": "private boolean processCommand(Command command) \n {\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n Response response = CommandMapper.getResponse(commandWord);\n return response.execute(command);\n }", "title": "" }, { "docid": "8cc811c7af8796e851ea50f5212b385c", "score": "0.52509034", "text": "public boolean hasCmd() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "9d06294d614ecaab6637ae5d476b4d1a", "score": "0.5244152", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"8\", \"\\n\", (String) null, \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", (-4), \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", (-395), 50000, 121, 125, \"\\n\", \"The 'bins' value must be at least 1.\", 8192, 1883, \"logs\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "7a8f259688bdadf9450c178c6c1cb642", "score": "0.523431", "text": "private static Boolean isCommandValid(int argsLength, int expectedArgs) {\n if (!dictSocket.isConnected()){\n System.out.println(\"903 Supplied command not expected at this time. There are no open connections.\");\n return false;\n }\n else if (argsLength != expectedArgs) {\n System.out.println(\"901 Incorrect number of arguments.\");\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "95e94d9c925c1017d02197a457494bb4", "score": "0.5230054", "text": "@ProtocolState(0)\n\tpublic int matchStartToken(Buffer buf) throws Exception {\n\t\tbyte b = buf.read();\n\t\tif((b & 0x80) == 0x80) {\n\t\t\t// got some binary, go to 1\n\t\t\treturn 1;\n\t\t} else {\n\t\t\t// got message, got to 3\n\t\t\treturn 3;\n\t\t}\n\t}", "title": "" }, { "docid": "44ff5bc5993b1182e40b0b0768c9edb4", "score": "0.5227765", "text": "private void intepretData(String line) {\n if (!isMonitoring) {\n isMonitoring = true;\n game.setConnected(true);\n }\n line = line.split(\"\\n\")[0];\n if (line.matches(\"\\\\d+\")) {\n } else if (line.contains(\"error\")) {\n System.out.println(line);\n stop();\n } else if (Pattern.compile(\"-?\\\\d+ -?\\\\d+ -?\\\\d+\", Pattern.MULTILINE).matcher(line).matches()) {\n String[] coords = line.split(\" \");\n game.roll = Integer.parseInt(coords[0]);\n game.pitch = Integer.parseInt(coords[1]);\n game.yaw = Integer.parseInt(coords[2]);\n } else {\n System.out.println(line);\n }\n }", "title": "" }, { "docid": "b1a80ca68dfe8bed6279b0a808fb47a6", "score": "0.5220942", "text": "public Command checkCommandIntegrity(String[] command) {\n\t\tif (command[0].equals(\"world\") && integrityCheck(command)) {\n\t\t\tif (command.length == 5) {\n\t\t\t\treturn Command.WORLD;\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"import\")) {\n\t\t\tif (command.length == 2) {\n\t\t\t\tif ((command[1].substring(command[1].length() - 4,\n\t\t\t\t\t\tcommand[1].length())).equals(\".txt\")) {\n\t\t\t\t\treturn Command.IMPORT;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"what_is_at\")) {\n\t\t\tif (command.length == 3) {\n\t\t\t\tif (integrityCheck(command)) {\n\t\t\t\t\treturn Command.WHAT_IS_AT;\n\t\t\t\t}\n\t\t\t} else if (command.length == 4) {\n\t\t\t\tif (command[1].equals(\"-l\") && isLat(command[2])\n\t\t\t\t\t\t&& isLong(command[3])) {\n\t\t\t\t\treturn Command.WHAT_IS_AT_L;\n\t\t\t\t} else if (command[1].equals(\"-c\") && isLat(command[2])\n\t\t\t\t\t\t&& isLong(command[3])) {\n\t\t\t\t\treturn Command.WHAT_IS_AT_C;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"what_is_in\")) {\n\t\t\tif (isLat(command[1]) && isLong(command[2]) && isNumber(command[3])\n\t\t\t\t\t&& isNumber(command[4])) {\n\t\t\t\treturn Command.WHAT_IS_IN;\n\t\t\t} else if (command[1].equals(\"-l\") && isLong(command[2])\n\t\t\t\t\t&& isLong(command[3]) && isNumber(command[4])\n\t\t\t\t\t&& isNumber(command[5])) {\n\t\t\t\treturn Command.WHAT_IS_IN_L;\n\t\t\t} else if (command[1].equals(\"-c\") && isLong(command[2])\n\t\t\t\t\t&& isLong(command[3]) && isNumber(command[4])\n\t\t\t\t\t&& isNumber(command[5])) {\n\t\t\t\treturn Command.WHAT_IS_IN_C;\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"what_is\")) {\n\t\t\tif (command.length == 3) {\n\t\t\t\treturn Command.WHAT_IS;\n\t\t\t}\n\t\t\tif (command.length == 4) {\n\t\t\t\tif (command[1].equals(\"-l\")) {\n\t\t\t\t\treturn Command.WHAT_IS_L;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"debug\")) {\n\t\t\tif (command[1].equals(\"quad\")) {\n\t\t\t\treturn Command.DEBUG_QUAD;\n\t\t\t}\n\t\t\tif (command[1].equals(\"pool\")) {\n\t\t\t\treturn Command.DEBUG_POOL;\n\t\t\t}\n\t\t\tif (command[1].equals(\"hash\")) {\n\t\t\t\treturn Command.DEBUG_HASH;\n\t\t\t}\n\t\t}\n\n\t\tif (command[0].equals(\"quit\")) {\n\t\t\treturn Command.QUIT;\n\t\t}\n\n\t\treturn Command.INVALID;\n\n\t}", "title": "" }, { "docid": "c5edd076552d58c9815cde9a5899c6e0", "score": "0.5187967", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"(Rrdos/@XT\\\"\", \"/home/ubuntu/termite/projects/102_squirrel-sql/plugins/dbcopy.jar\", \"Ik#Z!}\", \"&r+5S>E(\", (-2), \"2\", (-2168), (-2168), (-3439), (-3439), \"M,)x@p^B},\", \"Ik#Z!}\", (-6), 0, \"dpQt}5ub\\\")xaaL5&\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "54e219c8d12c4f56a053a38366171c53", "score": "0.5186423", "text": "String processCommand(String command);", "title": "" }, { "docid": "90bb2f3a2721211b41d08303ab0b9e2e", "score": "0.51844", "text": "private boolean tryConsumeEndOfLine(ByteBuffer byteBuffer) {\n\t\tif (byteBuffer.remaining() > 0) {\n\t\t\tbyte b = byteBuffer.get();\n\t\t\tif (b == '\\n') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (b == '\\r') {\n\t\t\t\tif (byteBuffer.remaining() > 0 && byteBuffer.get() == '\\n') {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new StompConversionException(\"'\\\\r' must be followed by '\\\\n'\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbyteBuffer.position(byteBuffer.position() - 1);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cf6fcf254c0aadc37ce90641fd222667", "score": "0.5184221", "text": "public final String getCommand() {\n // extracting command\n String[] partsAry = split(this.packet.getBufferAsString());\n\n return partsAry[0];\n }", "title": "" }, { "docid": "9004d2cbc2f4170d66835bb21b2a3dc6", "score": "0.51765287", "text": "private boolean isLabel(String line) {\n\t\treturn line.charAt(0) == '(';\n\t}", "title": "" }, { "docid": "6aa416bddad55dae5362ae8b42c26198", "score": "0.5174774", "text": "@Test\n public void testCommand() {\n String input = \"todo Finish CS2103 Project\";\n assertEquals(Command.TODO, new Parser(input).getCommand());\n }", "title": "" }, { "docid": "b2c4f9789287899e083a2b32b4843868", "score": "0.51583594", "text": "public boolean readByteCodeProgram(){\n\t // program.reset();\n\t System.out.println(\"Introduce un bytecode, una instruccion por linea\"); \n\t String line= in.nextLine();\n\t boolean fin= true;\n\t while(!line.equalsIgnoreCase(\"END\")&& fin){\n\t\t ByteCode bc = ByteCodeParser.parse(line);\n\t\t if(bc==null) System.out.println(\"Instruccion Bytecode incorrecta\");\n\t\t else fin= program.addBCInstruction(bc);\n\t\t line= in.nextLine();\n\t }\n\t if(!fin) program.reset();\n\t if(line.equalsIgnoreCase(\"END\")) fin = true;\n\t \n\t return fin; \n}", "title": "" }, { "docid": "d146440ef5b8cb2811ac67fb31a4892f", "score": "0.5153076", "text": "private boolean received(final SCMCommandProto.Type type,\n final DatanodeDetails datanode) {\n return commands.stream().anyMatch(dc ->\n dc.getCommand().getType().equals(type) &&\n dc.getDatanodeId().equals(datanode.getUuid()));\n }", "title": "" }, { "docid": "01ea4acba22e6679813284bb541cdd77", "score": "0.51493216", "text": "public boolean isCommand(DMWCommand command ) {\n\t \treturn false;\n\t}", "title": "" }, { "docid": "fd278a82297bd4856b2c053281f51abb", "score": "0.5143283", "text": "private Command parseCommand(String command) {\n CommandType cmdType = CommandType.WORKER_UNKNOWNCOMMAND;\n String data = \"\";\n try {\n cmdType = CommandType.valueOf(command.substring(command.indexOf(\"TYPE:\") + 5, command.indexOf(\"DATA:\") - 1));\n data = command.substring(command.indexOf(\"DATA:\") + 5);\n } catch (IllegalArgumentException e) {\n LOGGER.error(\"Could not bind Type: \" + (command.substring(command.indexOf(\"TYPE:\") + 5, command.indexOf(\"DATA:\"))) + \" to a CommandType\");\n }\n return new Command(cmdType, data);\n }", "title": "" }, { "docid": "8efebc9d0d0c4f8d5b7b6af0e1feba57", "score": "0.5121647", "text": "comnet.minihadoop.common.message.cli.CLIMessage.Type getType();", "title": "" }, { "docid": "ac635cb9d7c30894716adc48a25336c3", "score": "0.5118", "text": "public boolean command(String s){\n return super.command(s);\n }", "title": "" }, { "docid": "038bd9cafe6483c1bfdb63903c9da93c", "score": "0.5112313", "text": "private void testExecutableFull(ProgramLine parsedLine, String operation, String operand,\n Class lineClass, Class operandClass) {\n assertThat(parsedLine, instanceOf(lineClass));\n assertThat(((ExecutableLine) parsedLine).getOperand(), instanceOf(operandClass));\n assertEquals(\"Operation Value\", operation, ((ExecutableLine)parsedLine).getOperation());\n assertEquals(\"Operand Value\", operand, ((ExecutableLine)parsedLine).getOperand().getValue());\n }", "title": "" }, { "docid": "9dd3d3f02736ceb857f02ea8e4e529c0", "score": "0.51004285", "text": "private static boolean isValidCommand(final String sqlCommand) {\n return sqlCommand.length() > 0 && !sqlCommand.trim().startsWith(\"--\");\n }", "title": "" }, { "docid": "3c403394910baa39383e252cd2685cec", "score": "0.5071228", "text": "public boolean isValidCommand(String command) {\n if (command != null && command.startsWith(this.getCommand())) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c11e0cb9091247cc924025d68f1a44dd", "score": "0.50663376", "text": "int parseCommand(String cmd) {\n for (int i=0; i < cmdTokens.length; i++) \n if (cmdTokens[i].equalsIgnoreCase(cmd))\n\treturn i;\n\n return -1;\n }", "title": "" }, { "docid": "8315a93a89b5a0cc649fbd0946fccb46", "score": "0.5066002", "text": "public boolean matches(String command);", "title": "" }, { "docid": "d9ea603aa8ca8cdc3aa4abcb20801442", "score": "0.5060742", "text": "@Test\n\tpublic void testTypicalLine() {\n\t\tTU user = new ParseUser().getEntity(TYPICAL_LINE.split(\"\\t\"));\n\n\t\tassertEquals(\"test@example.com\", user.getEmail());\n\t\tassertEquals(\"test\", user.getName());\n\t\tassertEquals(true, user.isRoleSuperUser());\n\n\t}", "title": "" }, { "docid": "63faaf1cf61d97acf3ac70a37a83370e", "score": "0.5046528", "text": "public Object readCommand ()\n throws java.io.IOException, SyntaxException\n {\n return readObject(-1, true);\n }", "title": "" }, { "docid": "2946e7a18265b8b57d182245d81c5ff5", "score": "0.50455636", "text": "public String getRawLine() {\n return rawLine;\n }", "title": "" }, { "docid": "e0941d5405cd25c7d2f8b7f3e0ac9e05", "score": "0.5040526", "text": "private String getACPCmdReply() {\r\n // The output string of the cmdline starts at byte 40 of the packet\r\n String Reply = new String();\r\n int i = 40;\r\n while ((packetbuf[i] != 0x00) & (i < packetbuf.length)) {\r\n Reply = Reply + (char) packetbuf[i++];\r\n }\r\n return Reply;\r\n }", "title": "" }, { "docid": "5d49a217826141956658452b799fbf20", "score": "0.5037305", "text": "protected abstract byte[] getCommand(byte aAddress);", "title": "" }, { "docid": "1c9fdcea9473cac5594b8c5412b22b16", "score": "0.50218886", "text": "private byte[] parseSimpleString() throws IOException {\n\t\t\treturn scanCr(1024);\n\t\t}", "title": "" }, { "docid": "66b85279a29c7815610547aecbb51e0b", "score": "0.50189424", "text": "public boolean hasLongLine() {\r\n\t\tif (!(turnstile.lineSize()> longLineSize))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f4fa96860224b68bd760a8303cfba836", "score": "0.50154096", "text": "public static boolean isKnown(int command) {\n return cmd2String.containsKey(command);\n }", "title": "" }, { "docid": "baab6781569c20fee05aa540091ff846", "score": "0.50143075", "text": "public static void parseCommands(String line) {\n\t\tString[] args = line.split(\" \");\n\t\tString command = args[0].toUpperCase();\n\t\tif (command.equals(\"HELP\")) {\n\t\t\thelp();\n\t\t} else if (command.equals(\"EXIT\")) {\n\t\t\texit();\n\t\t} else if (command.equals(\"PRINT\")) {\n\t\t\tprint();\n\t\t} else if (command.equals(\"START\")) {\n\t\t\tstart(args);\n\t\t} else if (command.equals(\"MIGRATE\")) {\n\t\t\tmigrate(args);\n\t\t}\n\t}", "title": "" }, { "docid": "575db0671d64f0392289b4bbed960902", "score": "0.5012443", "text": "protected boolean isEmptyLine(String line) {\r\n boolean result = false;\r\n return result;\r\n }", "title": "" }, { "docid": "b02375711a18b0ecac7af59ebaf5d7c0", "score": "0.5010036", "text": "public static boolean isCommandKnown(String command) {\n return Commands.getCommands().contains(command);\n }", "title": "" }, { "docid": "e265f7734cadca074328a9c8de4bb22e", "score": "0.49920762", "text": "public boolean hasMoreCommands() {\n return inputFile.hasNextLine(); //this is basically if there are more lines to process\n }", "title": "" }, { "docid": "496d73615ece8ff6811c6ed70b523d1b", "score": "0.4983014", "text": "void doCommand() {\n try {\n Command cmnd =\n Command.parseCommand(_input.getLine(\"3072: \"));\n Command.Type t = cmnd.commandType();\n String[] op = cmnd.operands();\n _commands.get(t).accept(op);\n } catch (GameException excp) {\n System.out.println(excp.getMessage());\n }\n }", "title": "" }, { "docid": "b5f85fc1aa8a8f8620d4556780f60a3f", "score": "0.49657378", "text": "boolean isCommandValid();", "title": "" }, { "docid": "d7a23ffd88f3a22c611574d5e7dae443", "score": "0.49378562", "text": "public boolean line() throws IOException\r\n {\r\n return array(YamlCharacter.LINE);\r\n }", "title": "" }, { "docid": "6dc2ffd97152c6f2ae96dbe8d514102e", "score": "0.49327093", "text": "private static void checkStatementValid(ProgramLineObject lineObject) {\n\t\t// get first token by white space, for scan PRINT(CR) statement\n\t\tString[] preTokens = lineObject.contents.split(\"\\\\s+\");\n\t\tString firstToken = preTokens[0].toLowerCase();\n\t\t//if this statement is in type of print\n\t\tif (firstToken.equals(\"print\") || firstToken.equals(\"printcr\"))\n\t\t\tcheckStatementValid_print(lineObject);\n\t\t//if this statement is in type of assignment\n\t\telse\n\t\t\tcheckStatementValid_assign(lineObject);\n\t}", "title": "" }, { "docid": "caec0bd594dbf70945548e135eae32d9", "score": "0.49226776", "text": "private static int specialSymbolRoutine(String line)\n\t{\n\t\t// Start - ; -> Accept\n\t\tif(line.charAt(0) == ';') return 1;\n\t\telse return -1;\n\t}", "title": "" }, { "docid": "565bfa26260645cb7fd397f30dffea06", "score": "0.4919558", "text": "boolean hasCommand();", "title": "" }, { "docid": "2d429729f3db1aacf2869e01032a0fa8", "score": "0.49188036", "text": "void check(LineParser lp, LineParser.Context ct, String line, String expectUID, int expectRequestS, int expectUserRequests) {\n assertTrue(lp.parseLine(line, ct));\n assertEquals(expectUID, ct.userID);\n assertEquals(expectRequestS, ct.requestS);\n assertEquals(expectUserRequests, ct.userRequests);\n }", "title": "" }, { "docid": "a29e4b57c8be959a6dab8f1e5f34ded0", "score": "0.49178827", "text": "private boolean processLine(String line) //TODO Error handling: Should be a number, error if not\n\t{\n\t\tif(line.contains(\"\\\\*\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tString dataStr[] = line.split(\"\\t\");\n\t\tdataStr = removeSpaces(dataStr);\n\t\t\n\t\tif(dataStr.length != 2)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(isDouble(dataStr[0]) && isDouble(dataStr[1]))\n\t\t{\n\t\t\tdouble data[] = new double[2];\n\t\t\tdata[0] = Double.parseDouble(dataStr[0]);\n\t\t\tdata[1] = Double.parseDouble(dataStr[1]);\n\t\t\treturn userCurve.appendValues(data);\n\t\t}\n\t\t//userLog.append(\"ERROR: Non-numeric data.\" + \"\\n\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b85d22aa2a2df1c22c92d5255fd3c323", "score": "0.491069", "text": "@Test(timeout = 4000)\n public void test56() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"q#9`z)]&&\", \"E0`JCyw=UE+>9f*]:X\", \"zS1I.lBF\", \"zS1I.lBF\", (-3), \"org.jfree.data.xy.DefaultWindDataset\", (-3), (-3), (-3), (-3), \"zS1I.lBF\", \"logs\", (-3), (-3), \"zS1I.lBF\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "0126b4429071373ea62b7f4668fe1546", "score": "0.49074963", "text": "private boolean executeCommand(BufferedReader reader) {\n for (String s : COMMAND_HELP_MESSAGE) {\n out.println(s);\n }\n\n System.err.print(\"Command: \");\n\n try {\n String name = reader.readLine();\n\n if (name.equals(\"profile\")) {\n showProfileForId(selectProfile(reader));\n } else if (name.equals(\"register\")) {\n showNoticesForId(selectProfile(reader));\n } else if (name.startsWith(\"q\") || name.startsWith(\"exit\")) {\n return false;\n } else {\n out.println(\"Unknown command.\");\n }\n } catch (Exception e) {\n // Show *exactly* what went wrong.\n e.printStackTrace();\n }\n return true;\n }", "title": "" }, { "docid": "382fe445bd68b1c620d3b4db30ca8272", "score": "0.4897121", "text": "@Override\n public boolean isRecognizedFormat(BufferedReader reader) throws IOException {\n String str;\n while ((str = reader.readLine()) != null) {\n if (INSPEC_PATTERN.matcher(str).find()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "80abeca35cb4ec2047b024ffcd153a10", "score": "0.48970544", "text": "public void testMethodByte() throws RemoteException {\n byte expected = (byte) 35;\n byte actual = binding.methodByte((byte) 61);\n assertEquals(\"The expected and actual values did not match.\",\n expected,\n actual);\n }", "title": "" }, { "docid": "f5220763b768f45b611e8003af202299", "score": "0.48961225", "text": "private boolean isLineAHeader( final String line ) {\n\t\tif( line.contains( TOKEN_CHAR ) && countTokenChars( line ) == 1 && !line.startsWith(\"%\") && \n\t\t\t\tisLineStartingWithUpperCase( line ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "07270a4a5450359f3ad9920429add4a4", "score": "0.48950583", "text": "public C_COMMAND_TYPE commandType()\r\n\t{\r\n\t\tif(commandLine != null || !commandLine.equals(\"\"))\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < arithmeticCommands.length; i++)\r\n\t\t\t{\r\n\t\t\t\tif(commandLine.contains(arithmeticCommands[i])) {\r\n\t\t\t\t\tcommandType = C_COMMAND_TYPE.C_ARITHMETIC;\r\n\t\t\t\t\treturn commandType;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(commandLine.contains(\"push\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_PUSH;\r\n\t\t\telse if(commandLine.contains(\"pop\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_POP;\r\n\t\t\telse if(commandLine.contains(\"label\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_LABEL;\r\n\t\t\telse if(commandLine.contains(\"if-goto\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_GOTO;\r\n\t\t\telse if(commandLine.contains(\"goto\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_IF;\r\n\t\t\telse if(commandLine.contains(\"function\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_FUNCTION;\r\n\t\t\telse if(commandLine.contains(\"call\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_CALL;\r\n\t\t\telse if(commandLine.contains(\"return\"))\r\n\t\t\t\tcommandType = C_COMMAND_TYPE.C_RETURN;\r\n\t\t} else commandType = null;\r\n\t\treturn commandType;\r\n\t}", "title": "" }, { "docid": "42a9d38bfaa653ae9fa9ab470fe3024f", "score": "0.48922217", "text": "private void processCommand(MySQLSessionState ss, byte[] data) {\n switch (data[4]) {\n case MySQLPacket.COM_INIT_DB:\n LOG.info(\"[Command] INIT_DB\");\n initDb(ss, data);\n break;\n case MySQLPacket.COM_QUERY:\n LOG.info(\"[Command] QUERY\");\n query(ss, data);\n break;\n case MySQLPacket.COM_PING:\n LOG.info(\"[Command] PING\");\n ss.getFrontendConnection().write(OkPacket.OK);\n break;\n case MySQLPacket.COM_QUIT:\n LOG.info(\"[Command] QUIT\");\n ss.getFrontendConnection().close();\n break;\n case MySQLPacket.COM_PROCESS_KILL:\n LOG.info(\"[Command] PROCESS_KILL\");\n ss.getFrontendConnection().writeErrMessage(\n ErrorCode.ER_UNKNOWN_COM_ERROR, \"Unknown command\");\n break;\n case MySQLPacket.COM_STMT_PREPARE:\n LOG.info(\"[Command] STATEMENT_PREPARE\");\n ss.getFrontendConnection().writeErrMessage(\n ErrorCode.ER_UNKNOWN_COM_ERROR, \"Prepare unsupported!\");\n break;\n case MySQLPacket.COM_STMT_EXECUTE:\n LOG.info(\"[Command] STATEMENT_EXECUTE\");\n ss.getFrontendConnection().writeErrMessage(\n ErrorCode.ER_UNKNOWN_COM_ERROR, \"Prepare unsupported!\");\n break;\n case MySQLPacket.COM_STMT_CLOSE:\n LOG.info(\"[Command] STATEMENT_CLOSE\");\n ss.getFrontendConnection().writeErrMessage(\n ErrorCode.ER_UNKNOWN_COM_ERROR, \"Prepare unsupported!\");\n break;\n case MySQLPacket.COM_HEARTBEAT:\n LOG.info(\"[Command] HEARTBEAT\");\n ss.getFrontendConnection().write(OkPacket.OK);\n break;\n default:\n LOG.info(\"[Command] UNKNOWN\");\n ss.getFrontendConnection().writeErrMessage(\n ErrorCode.ER_UNKNOWN_COM_ERROR, \"Unknown command\");\n break;\n }\n }", "title": "" }, { "docid": "42000f17f030d3dbf51480a3d7197cc3", "score": "0.48906624", "text": "private void issueCommandCheck(String paramString)\n/* */ throws FtpProtocolException, IOException\n/* */ {\n/* 550 */ if (!issueCommand(paramString)) {\n/* 551 */ throw new FtpProtocolException(paramString + \":\" + getResponseString(), getLastReplyCode());\n/* */ }\n/* */ }", "title": "" }, { "docid": "8cda6a5399ce44c46c969028188d503c", "score": "0.48873675", "text": "public boolean isCommand(String aString)\n {\n return validCommands.containsKey(aString);\n }", "title": "" }, { "docid": "c13c4343caafaa84152f81eed6584578", "score": "0.48854968", "text": "protected abstract int getExpectedCommandLength();", "title": "" }, { "docid": "0a2cb842ac7531430b828c70ff66f272", "score": "0.4881269", "text": "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"(\", \"DBUtil.info.bindbloblength\", \"DBUtil.info.bindbloblength\", \"DBUtil.info.bindbloblength\", (-3), \"DBUtil.info.bindbloblength\", 3, 8, (-15), 3, \"(\", \"-XT*mawM\\\"~JY\", 8, (-2982), \"-/-aEyP7V\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "a8dd74c879fc23bc2f5cb7d4d4052d30", "score": "0.48800722", "text": "public static boolean isServerCommand(String s)\r\n {\r\n // A server command is one that starts with the command prefix\r\n return s.length() > 0 && s.charAt(0) == COMMAND_PREFIX;\r\n }", "title": "" }, { "docid": "b6df415066ce4b0286a22b8df712b1d9", "score": "0.4878482", "text": "@Test(timeout = 4000)\n public void test129() throws Throwable {\n StringReader stringReader0 = new StringReader(\"after : \\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 109, 109);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(115, javaCharStream0.getBeginColumn());\n }", "title": "" }, { "docid": "d44099ac5fe26a6f35318783bbc590aa", "score": "0.4876101", "text": "public static boolean checkBrokerInfo(String line) {\n\t\tline = line.trim();\n\t\tString[] lparts = line.split(\";\");\n\t\tif (lparts.length != 3) {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tint p1 = Integer.parseInt(lparts[1]);\n\t\t\tint p2 = Integer.parseInt(lparts[1]);\n\t\t\tif (p1 < 1024 || p2 < 1024) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tString IP = lparts[0];\n\t\tString[] parts = IP.split(\"\\\\.\");\n\t\tif (parts.length != 4) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (String part : parts) {\n\t\t\ttry{\n\t\t\t\tint value = Integer.parseInt(part);\n\t\t\t\tif ((value < 0) || (value > 255)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}catch (NumberFormatException e){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (IP.endsWith(\".\")){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a9f5896e14b2048741b15ad007f54ae0", "score": "0.4875407", "text": "public boolean consoleCommand(VisConsole console, PrintStream out, String command)\n {\n return false;\n }", "title": "" }, { "docid": "5a9035e6382979042b50c72d07f97fe3", "score": "0.48750734", "text": "private void parseLine(String line) {\n line = line.trim();\n String[] data = line.split(\"\\\\s+\");\n switch (data[0].charAt(0)) {\n case 'H':\n break;\n case 'S': parseSegmentLine(data);\n break;\n case 'L': parseLinkLine(data);\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "95153600c019aba138788f9f2f392367", "score": "0.487352", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"IA\", \")\", \"IA\", \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", 50000, \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", Integer.MIN_VALUE, 50000, Integer.MIN_VALUE, (-395), \"Pzc=<M-NxeR3'\", \")$|;\\\"4%.tE\", 50000, 3540, \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "6004d774e01ebb0a34909f32819e3317", "score": "0.48640883", "text": "private boolean isHeader(String line) {\r\n\t\treturn !isTransaction(line) && !isTransactionType(line) && !isCardName(line);\r\n\t}", "title": "" }, { "docid": "49c79c20758fee31165fbdfb408af774", "score": "0.48618686", "text": "@Override\n protected boolean isHeader(String dataLine)\n {\n char c = dataLine.charAt(0);\n if(! Character.isDigit(c) )\n {\n //\n // it is a header\n //\n return true;\n }\n else\n return false;\n }", "title": "" }, { "docid": "7a69aa75ea70c26b8d34d0ee5cb8ed6a", "score": "0.48551828", "text": "public static boolean checkStatus(String expectedStatus) throws CommandException {\n File file = new File(\"./tokens/mode.txt\");\n StringBuilder contents = new StringBuilder();\n try (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n String text;\n String lineSeparator = System.getProperty(\"line.separator\");\n while ((text = reader.readLine()) != null) {\n contents.append(text).append(lineSeparator);\n }\n } catch (IOException e) {\n logger.info(MESSAGE_READ_WRITE_ERROR);\n throw new CommandException(MESSAGE_READ_WRITE_ERROR);\n }\n return (contents.toString().trim().equals(expectedStatus));\n }", "title": "" }, { "docid": "e1ece7b84c5534e8acc9ed5ca91650e9", "score": "0.48532772", "text": "boolean string_q1() throws IOException, SyntaxException\r\n {\r\n if ( r.current() != '\\'')\r\n return false;\r\n\r\n r.read();\r\n int c=0;\r\n int i = 0;\r\n\r\n while ( YamlCharacter.is( c=r.read(), YamlCharacter.LINESP ) ) {\r\n if (c == '\\'' && r.previous() != '\\\\' )\r\n break;\r\n i++;\r\n }\r\n\r\n if ( c != '\\'' )\r\n throw new SyntaxException(\"Unterminated string\",line);\r\n\r\n// if (i != 0)\r\n return true;\r\n\r\n// return false;\r\n }", "title": "" }, { "docid": "6fdddad1bb5d5ab968569fca0100e4e9", "score": "0.48529583", "text": "private boolean getLine() {\n\t\ttry {\n\t\t\tlineLength = 0;\n\t\t\tinput.setLength(inCapacity);\n\t\t\tdo {\n\t\t\t\tinput.setCharAt(lineLength, (char) inStream.read());\n\t\t\t\tlineLength++;\n\t\t\t} while (input.charAt(lineLength - 1) != '\\n' & lineLength < inCapacity);\n\t\t\tinput.setLength(lineLength);\n\t\t} catch (EOFException e) {\n\t\t\treturn false;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"***I/O exception on keyboard input; \" + e);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tif (lineLength >= inCapacity) {\n\t\t\tSystem.out.println(\"Input line too long; line limited to \" + inCapacity + \" chars. Line ignored.\");\n\t\t\tinput.setLength(0);\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f745095f863aca7f4f5b80d5555374ba", "score": "0.48522276", "text": "public boolean hasCommandRunTestStep() {\n return messageCase_ == 21;\n }", "title": "" } ]
f5467da128e976522ab19284776aad7b
Use MoveFriendToRsp.newBuilder() to construct.
[ { "docid": "d350e5c953c21de141f90478aa9eb68b", "score": "0.76712024", "text": "private MoveFriendToRsp(Builder builder) {\n super(builder);\n }", "title": "" } ]
[ { "docid": "30372bcdcbbe845b5d267cc99c7cc23a", "score": "0.5999365", "text": "private DeleteFriendRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "3147330d4859168f227891c08f50eeb2", "score": "0.5864726", "text": "private FriendInfoRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "9f98912335ca092883f2975941e79572", "score": "0.57327914", "text": "private FriendGroupRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "0e3571c4cdc2670f18a9280a54c79d4b", "score": "0.5512225", "text": "private GetFriendRuleRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "23bbca187dc5aeeb897cdd3dc297f7bf", "score": "0.55007195", "text": "private FriendGroupsRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "89fb3fe7f2c4868c6ea982e1ff2b60e2", "score": "0.54730165", "text": "private MoveResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "2fe57745793889c4fe3219e2888839be", "score": "0.5395206", "text": "FriendDTO acceptFriendship(String userID, String friendID) throws QSIMMException;", "title": "" }, { "docid": "5bbcfeed5c6021ce4dfea8b417300512", "score": "0.5368634", "text": "private MoveRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "348ceeb94a4e10c38f58a86df907ef55", "score": "0.5355469", "text": "private FriendInfoEndRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "5f7023bf2ff79a8465ac73f51dff67a3", "score": "0.5184151", "text": "java.util.List<com.focustech.tm.open.sdk.messages.protobuf.Enums.FriendStatusRsp> \n getFriendsList();", "title": "" }, { "docid": "a1cc013b381876321a81d9243c10c78e", "score": "0.51274467", "text": "private UpdateFriendOnlineRemindRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "038df06a22eac845dcb386b2a7e63ed4", "score": "0.5115816", "text": "void requestFriendship(String userID, String friendID) throws QSIMMException;", "title": "" }, { "docid": "f2cf5252d1beee97bf5f18ba616cb818", "score": "0.51021475", "text": "private InviteFbFriendsForSlotsRequestProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "63f32c3092510a2477ca28eeba1d0d58", "score": "0.4947391", "text": "private FriendsReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "341142e308873bb888a01987f7bfcd71", "score": "0.49448642", "text": "public FriendRequest(String to, String from) {\n\t\tsuper(to, from, null, REQUEST);\n\t}", "title": "" }, { "docid": "58e850ef6fc6117f49d81e5851b42c5d", "score": "0.494401", "text": "private UpdateFriendRemarkRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "fea2a8faa720472ad35a18f5d75ef0e8", "score": "0.48078245", "text": "private AddFriendReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "41a19bd5cef0574f827a7e30cc47f0e4", "score": "0.47694224", "text": "private FollowResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "9234932206966c81b8bbd65b1a066e9f", "score": "0.4752783", "text": "private AddFriendRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "676120e3162866cb3214560d09c63dfd", "score": "0.4721596", "text": "private InviteFbFriendsForSlotsResponseProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "3fcad69d58531343dadf3af4fe1c1d2c", "score": "0.47027114", "text": "private CSMoveTo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "20e012db2a3dbaf7c99f05e6e8874a4a", "score": "0.46731284", "text": "private DeleteFriendReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "466a2bcf8eee30e08e3bb123889096fb", "score": "0.46600473", "text": "public FriendDTO[] getFriendsRemoteRequest(String userID) throws QSIMMException;", "title": "" }, { "docid": "c049a2c6adce30daaddbe2f9f56ae379", "score": "0.46175402", "text": "private SCMoveTo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "83694086a6194dfce7834edc3b9eb45b", "score": "0.45581347", "text": "public interface FriendService {\n\n /**\n * 新增好友请求记录\n *\n * @param fromUserid\n * @param toUserid\n */\n void sendRequest(String fromUserid, String toUserid);\n\n /**\n * 根据用户id查询他对应的好友请求\n *\n * @param userid 当前登录的用户\n * @return 请求好友的列表\n */\n List<FriendReq> findFriendReqByUserid(String userid);\n\n /**\n * 接受好友请求\n *\n * @param reqid\n */\n void acceptFriendReq(String reqid);\n\n /**\n * 忽略好友请求\n *\n * @param reqid 好友请求的id\n */\n void ignoreFriendReq(String reqid);\n\n /**\n * 查询我的好友\n *\n * @param userid 当前登录的用户id\n * @return 用户的好友列表\n */\n List<User> findFriendByUserid(String userid);\n}", "title": "" }, { "docid": "198098e7d4cab39061903349cc7c62d9", "score": "0.45563248", "text": "java.util.List<com.focustech.tm.open.sdk.messages.protobuf.Contacts.FriendGroupRsp> \n getFriendGroupsList();", "title": "" }, { "docid": "c70fe2f24a4359a8153334cebfd385b7", "score": "0.45525634", "text": "public void answerRequest(boolean yesOrNo, String friendId) {\n this.friendId = friendId;\n if(yesOrNo) {\n new HttpAddFriendTask().execute();\n Sender.sendAnswer(yesOrNo, friendId, self.getUserId());\n } else {\n try {\n friendRequests = (ArrayList<String>) InternalStorage.readObject(getApplicationContext(), \"friendRequests\");\n friendRequests.remove(friendId);\n InternalStorage.writeObject(getApplicationContext(), \"friendRequests\", friendRequests);\n adapter.notifyDataSetChanged();\n } catch (IOException e) {\n Log.e(TAG, e.getMessage(), e);\n } catch (ClassNotFoundException e) {\n Log.e(TAG, e.getMessage(), e);\n }\n }\n }", "title": "" }, { "docid": "8196f3c65428b7bfa3839b299b388867", "score": "0.4535605", "text": "private void addFriend()\n {\n }", "title": "" }, { "docid": "d134d3d42fcd245856141920870d6711", "score": "0.45343077", "text": "private static Command parseFriend(String s) throws EmptyInputException {\n if (s.length() != \"friend\".length()) {\n String[] info = s.split(\" /name \");\n String[] segmentedDetails = info[1].split(\"/phone number \");\n String[] finalSplit = segmentedDetails[1].split(\"/isClose \");\n Friend friend = new Friend(segmentedDetails[0].trim(), Integer.valueOf(finalSplit[0].trim()),\n Boolean.valueOf(finalSplit[1].trim()));\n return new AddFriendCommand(friend);\n } else {\n throw new EmptyInputException(\"friend\");\n }\n }", "title": "" }, { "docid": "4ca203d86223b0280514544e02550bcb", "score": "0.4529835", "text": "public void sendToFriend() {\n\t\tsleep(1000);\n\t\t// explicitWaitClickable(sentfriendBtn);\n\t\tclick(sentfriendBtn);\n\t}", "title": "" }, { "docid": "996560f3302a0ffca46331320a4ecfcd", "score": "0.45266026", "text": "FriendDTO[] acceptFriendships(String userID, String[] friendsIDs) throws QSIMMException;", "title": "" }, { "docid": "b23933609def8985323f1470c9bc7d4e", "score": "0.45163417", "text": "public Move(Integer from, List<Integer> to, S symbol) {\n this.from = from;\n this.to = to;\n if(to == null)\n this.to = new ArrayList<Integer>();\n this.symbol = symbol;\n }", "title": "" }, { "docid": "07738ef5df5194ca50c28f83681f3046", "score": "0.4510827", "text": "public FriendRequest(User sender, User receiver) {\n this();\n this.sender = sender;\n this.receiver = receiver;\n }", "title": "" }, { "docid": "cca814c1e516123f252fac65ee5a5b50", "score": "0.44764197", "text": "private void saveFriend(FriendshipResponse response) {\n\t\twallOwner = response.getSender();\n\t\tfinal User friend = wallOwner;\n\t\tthis.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmProtocol.putFriend(friend);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "55a352a96bb8ca36045527865d173c21", "score": "0.4458329", "text": "public FriendRequest(){\n\n }", "title": "" }, { "docid": "8f2066f251f7548925428a624ef7a298", "score": "0.4448259", "text": "void rmvFriendHandler(ActionEvent e) {\n\t\tCompetitionHandler.handle(model.getCurStatus());\n\n\t\t// Remove when having any Friend\n\t\tif (!friendsButtonList.isEmpty()) {\n\t\t\tList<String> rmvFriendsList = new ArrayList<String>();\n\t\t\t// Add Selected Friends to Remove List\n\t\t\tfor (ToggleButton friend : friendsButtonList) {\n\t\t\t\tif (friend.isSelected())\n\t\t\t\t\trmvFriendsList.add(friend.getText());\n\t\t\t}\n\n\t\t\t// Send Server when having any Selected Friends\n\t\t\tif (!rmvFriendsList.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tif (sock.isConnected()) {\n\t\t\t\t\t\tmessageListSend = model.getMessageListSend();\n\n\t\t\t\t\t\t// Add key and UserName and List to Msg List\n\t\t\t\t\t\tmessageList.clear();\n\t\t\t\t\t\tmessageList.add(0, MsgKeys.RemoveRequest.getKey());\n\t\t\t\t\t\tmessageList.add(1, model.getConnectedName());\n\t\t\t\t\t\tfor (String rmvFriend : rmvFriendsList) {\n\t\t\t\t\t\t\tmessageList.add(rmvFriend);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Send Server Msg\n\t\t\t\t\t\tmessageListSend.writeObject(messageList);\n\t\t\t\t\t\tmessageListSend.flush();\n\t\t\t\t\t\tmessageListSend.reset();\n\t\t\t\t\t\tmessageList.clear();\n\t\t\t\t\t\tmodel.setCurStatus(\"waiting\");\n\n\t\t\t\t\t\t// Receive Server Response\n\t\t\t\t\t\tmessageRcv = model.getMessageRcv();\n\n\t\t\t\t\t\tmessageList = null;\n\t\t\t\t\t\t// Wait for response\n\t\t\t\t\t\twhile (messageList == null) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tmessageList = (ArrayList<String>) messageListRcv.readObject();\n\t\t\t\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodel.setCurStatus(\"available\");\n\t\t\t\t\t\tmessage = messageList.get(0);\n\n\t\t\t\t\t\t// Remove Successful\n\t\t\t\t\t\tif (message.equals(MsgKeys.RemoveSuccess.getKey())) {\n\t\t\t\t\t\t\tList<ToggleButton> tempList = new ArrayList<ToggleButton>();\n\t\t\t\t\t\t\ttempList.addAll(friendsButtonList);\n\t\t\t\t\t\t\t// Remove Selected Friends from Friend List\n\t\t\t\t\t\t\tfor (ToggleButton myFriend : tempList) {\n\t\t\t\t\t\t\t\tfor (String rmvFriend : rmvFriendsList) {\n\t\t\t\t\t\t\t\t\tif (myFriend.getText().equals(rmvFriend))\n\t\t\t\t\t\t\t\t\t\tfriendsButtonList.remove(myFriend);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Update Grid\n\t\t\t\t\t\t\tfriendGrid.getChildren().clear();\n\t\t\t\t\t\t\taddFriendsToGrid(friendsButtonList, curGridSize);\n\t\t\t\t\t\t\t// Save Modification\n\t\t\t\t\t\t\tmodel.setFriendGrid(friendGrid);\n\t\t\t\t\t\t\tmodel.setFriendsList(friendsButtonList);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3c83cae6e73eb27277991cab2b9bd285", "score": "0.44388515", "text": "private RemoveMonsterFromBattleTeamRequestProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "62d5b114b1f705cafc4c6d52b7720765", "score": "0.44330922", "text": "public void addToFriends(User friend) { this.friends.add(friend); }", "title": "" }, { "docid": "e30de078a48c32b16911c669fb7e1a99", "score": "0.44246456", "text": "public void request (UserProfile friend) {\n\n FriendRequestsDAO.addRequest(currentUser.getUserId(), friend.getUserId());\n\n }", "title": "" }, { "docid": "55714d1bc4572c3b27fab642b259d591", "score": "0.44195107", "text": "void makeMove(Move m);", "title": "" }, { "docid": "176911f0bcff915e012290b125789867", "score": "0.43960327", "text": "private FriendInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "ba315592ca8a41b9da6c4fe08f9a0fdd", "score": "0.43951455", "text": "private FollowReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a959b74820e636223cc877c40e88791c", "score": "0.4385723", "text": "public MoveResponseAto moveAto(Move move) {\n return MoveResponseAto.builder()\n .id(move.getId())\n .type(move.getType())\n .result(move.getResult())\n .gameId(move.getGame().getId())\n .row(move.getCell().getRowNumber())\n .column(move.getCell().getColumnNumber())\n .build();\n }", "title": "" }, { "docid": "5c2a858f70e1562f72aa62e3572e8f39", "score": "0.43664652", "text": "void makeMove(Square from, Square to, Square spear) {\n put(get(from), to);\n put(EMPTY, from);\n put(SPEAR, spear);\n Move myMove = Move.mv(from, to, spear);\n _myMoves.push(myMove);\n _turn = _turn.opponent();\n _numMoves += 1;\n _winner = winner();\n\n\n }", "title": "" }, { "docid": "542cd41a0cbed1f2cd6529f38096d1c4", "score": "0.4364721", "text": "public void processFriendRequest(FriendRequest request) {\n \t\t// TODO: Don't let a user send friend requests to the same user twice.\n \t\t// Validate\n \t\tboolean valid = true;\n \t\t// TODO: This should be unnecessary (should be able to use this.getUser())\n \t\tUser thisUser = serverConnection.getUser(this.getUser().getUsername());\n \t\t// Check that this is the requesting user's handler if this is a new request\n \t\tif(request.getStatus() == FriendRequestStatus.UNHANDLED && !request.getFromUser().equals(this.getUser())) valid = false;\n \t\t// Check that this is the target user's handler if this is a response\n \t\telse if((request.getStatus() == FriendRequestStatus.ACCEPTED || request.getStatus() == FriendRequestStatus.DECLINED) && !request.getFriendUsername().equals(this.getUser().getUsername()))\n \t\t\tvalid = false;\n \t\telse if(request.getStatus() == FriendRequestStatus.PENDING || request.getStatus() == FriendRequestStatus.USER_NOT_FOUND)\n \t\t\tvalid = false;\n \t\t// Check that the FriendRequest's target exists\n \t\tif(serverConnection.getUser(request.getFriendUsername()) == null) {\n \t\t\tvalid = false;\n \t\t\trequest.setStatus(FriendRequestStatus.USER_NOT_FOUND);\n \t\t}\n \t\t// Check that the sending user is allowed to set the given status\n \t\tif(request.getStatus() == FriendRequestStatus.UNHANDLED && !request.getFromUser().equals(this.getUser())) valid = false;\n \t\tif((request.getStatus() == FriendRequestStatus.ACCEPTED || request.getStatus() == FriendRequestStatus.DECLINED) && !request.getFriendUsername().equals(this.getUser().getUsername())) {\n \t\t\tvalid = false;\n \t\t}\n \t\tif(request.getStatus() == FriendRequestStatus.USER_NOT_FOUND) valid = false;\n \t\t// If this is a response to a friend request, check that this has a corresponding friend request\n \t\tif((request.getStatus() == FriendRequestStatus.ACCEPTED || request.getStatus() == FriendRequestStatus.DECLINED) && !thisUser.hasFriendRequest(request)) {\n \t\t\tvalid = false;\n \t\t}\n \t\tUser otherUser = serverConnection.getUser((request.getFromUser().equals(this.getUser()) ? request.getFriendUsername() : request.getFromUser().getUsername()));\n \t\t// If this is a new friend request, check that these two users don't already have any requests for each other, or that the user is sending a request to himself\n \t\tif(request.getStatus() == FriendRequestStatus.UNHANDLED) {\n \t\t\tif(thisUser.hasFriendRequest(request) || otherUser.hasFriendRequest(request) ||\n \t\t\t\t\t// Check the oposite way too\n \t\t\t\t\tthisUser.hasOppositeFriendRequest(request) || otherUser.hasOppositeFriendRequest(request)) {\n \t\t\t\tvalid = false;\n \t\t\t\trequest.setStatus(FriendRequestStatus.ALREADY_EXISTS);\n \t\t\t}\n \t\t\tif(request.getFriendUsername().equals(thisUser.getUsername()))\n \t\t\t\tvalid = false;\n \t\t}\n \t\tif(valid) {\n \t\t\tSystem.out.println(\"FriendRequest was valid.\");\n \t\t\t// If this is a new friend request..\n \t\t\tif(request.getStatus() == FriendRequestStatus.UNHANDLED) {\n \t\t\t\tSystem.out.println(\"This was a new friend request.\");\n \t\t\t\t// Set the correct status\n \t\t\t\trequest.setStatus(FriendRequestStatus.PENDING);\n \t\t\t\t// Add it to the target friend\n \t\t\t\tserverConnection.getUser(request.getFriendUsername()).addFriendRequest(request);\n \t\t\t\tSystem.out.println(\"Added friend request to: \" + serverConnection.getUser(request.getFriendUsername()).getUsername());\n \t\t\t\tSystem.out.println(\"Friend request0: \" + serverConnection.getUser(request.getFriendUsername()).getFriendRequest(0));\n \t\t\t} else {\n \t\t\t\tSystem.out.println(\"This was a reply to a friend request.\");\n \t\t\t\t// If this is a accepted/declined friend request, update the requesting user's friends (if accepted, if not accepted we do nothig except to remove the request)\n \t\t\t\tif(request.getStatus() == FriendRequestStatus.ACCEPTED) {\n \t\t\t\t\t// Add friends\n \t\t\t\t\totherUser.addFriend(thisUser);\n \t\t\t\t\tthisUser.addFriend(otherUser);\n \t\t\t\t} \n \t\t\t\t// Remove friend request\n \t\t\t\tthisUser.removeFriendRequest(request);\n \t\t\t}\n \t\t\t// Notify other user\n \t\t\tserverConnection.notifyUser(otherUser.getUsername(), request);\n \t\t} else {\n \t\t\tSystem.out.println(\"FriendRequest was not valid.\");\n \t\t\t// Send some garbage that will trigger an error\n \t\t\t// TODO Set a crap status?? But don't overwrite already set error status!\n \t\t}\n \t\tsend(request.toXML());\n \t}", "title": "" }, { "docid": "0fb727d112140bef51fb6950ae7d75ac", "score": "0.43513417", "text": "public FriendDTO[] getFriendsOwnRequest(String userID) throws QSIMMException;", "title": "" }, { "docid": "70cb2528fb853b1a2a30b1334a137437", "score": "0.43320233", "text": "ToHeader getToHeader() throws SipPacketParseException;", "title": "" }, { "docid": "820a48d9bc6bf2d2bf77a5bea0d80161", "score": "0.43228033", "text": "private TokenOssResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "7d318a1f661cd31cb6e2e46ae9aad436", "score": "0.42956737", "text": "private ListMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "0e1f762401c9bcd2a894020aef03b6b1", "score": "0.42942828", "text": "public void sendLocResponse(final String my_token, final String friend_token) {\n System.out.println(\"Sent a location response!\");\n final String type = \"response\";\n final String username = PreferenceManager.getDefaultSharedPreferences(context).getString(\"user_id\", null);\n StringRequest request = new StringRequest(Request.Method.POST, Constants.SEND_GCM, new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n new SweetAlertDialog(context, SweetAlertDialog.SUCCESS_TYPE)\n .setTitleText(\"Success!\")\n .setContentText(\"location response sent!\")\n .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n @Override\n public void onClick(SweetAlertDialog sweetAlertDialog) {\n sweetAlertDialog.cancel();\n }\n }).show();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n System.out.println(volleyError);\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"text\", my_token);\n params.put(\"username\", username);\n params.put(\"type\", type);\n params.put(\"reg_token\", friend_token);\n return params;\n }\n };\n AppController.getInstance().addToRequestQueue(request);\n }", "title": "" }, { "docid": "6a3bffa846f0338c6cc57ecd69a8ba39", "score": "0.4284379", "text": "private static Friend newFriend() {\n\n\t\t// Collect new Friend information\n\n\t\tUtilidades.showInfo(\"Nuevo Amigo:\");\n\t\tSystem.out.print(\"Nombre:\");\n\t\tUtilidades.flush();\n\t\tString nameNewFriend = Utilidades.readString();\n\t\tSystem.out.print(\"Teléfono: \");\n\t\tint newPhoneNumber = Utilidades.readInt();\n\t\tSystem.out.print(\"Dirección: \");\n\t\tString newAddress = Utilidades.readString();\n\t\tUtilidades.flush();\n\n\t\t// Create new Objecto of Friend Class\n\t\tFriend createdFriend = new Friend(nameNewFriend, newPhoneNumber,\n\t\t\t\tnewAddress);\n\t\treturn createdFriend;\n\t}", "title": "" }, { "docid": "f2a91f8d3bd036335ec40c60e6562875", "score": "0.42842048", "text": "public void befriend(User friend)\n {\n if (!(friend == this))\n {\n Friendship friendship = new Friendship(this, friend);\n friendships.add(friendship);\n }\n else\n {\n System.out.println(\"Opps! You seem to have made a mistake in attempting to befriend yourself\");\n }\n }", "title": "" }, { "docid": "a0e1ae40a92e23e21f3f8fed9b5ad0cd", "score": "0.4280803", "text": "private AddFriendAnswerReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "86e22694398a0a88fcec2f47ef96b4c1", "score": "0.42805892", "text": "public CanceledFriendRequestMessage(String userIdToRemove) {\n this.userIdToRemove = userIdToRemove;\n }", "title": "" }, { "docid": "dfac71a26b5fb00012c22d5f37c947c3", "score": "0.42805648", "text": "public interface SummonFriendService {\n @C6457h(mo15740a = \"/aweme/v1/user/following/list/\")\n C12466b<FollowUserListModel> queryFollowFriends(@C6474y(mo15757a = \"count\") int i, @C6474y(mo15757a = \"user_id\") String str, @C6474y(mo15757a = \"max_time\") long j, @C6474y(mo15757a = \"min_time\") long j2, @C6474y(mo15757a = \"address_book_access\") int i2, @C6474y(mo15757a = \"gps_access\") int i3);\n\n @C6457h(mo15740a = \"/aweme/v1/at/default/list/\")\n C7492s<RecentFriendModel> queryFollowFriends4At(@C6474y(mo15757a = \"count\") int i, @C6474y(mo15757a = \"cursor\") int i2);\n\n @C6457h(mo15740a = \"/aweme/v1/user/recent/contact/\")\n C12466b<RecentFriendModel> queryRecentFriends();\n\n @C6457h(mo15740a = \"/aweme/v1/user/recent/contact/\")\n C7492s<RecentFriendModel> queryRecentFriends4At();\n\n @C6457h(mo15740a = \"/aweme/v1/discover/search/\")\n C12466b<SummonFriendList> searchFriends(@C6474y(mo15757a = \"keyword\") String str, @C6474y(mo15757a = \"count\") long j, @C6474y(mo15757a = \"cursor\") long j2, @C6474y(mo15757a = \"type\") int i, @C6474y(mo15757a = \"search_source\") String str2, @C6474y(mo15757a = \"filter_block\") int i2);\n\n @C6457h(mo15740a = \"/aweme/v1/discover/search/\")\n C7492s<SummonFriendList> searchFriends4At(@C6474y(mo15757a = \"keyword\") String str, @C6474y(mo15757a = \"count\") long j, @C6474y(mo15757a = \"cursor\") long j2, @C6474y(mo15757a = \"type\") int i, @C6474y(mo15757a = \"search_source\") String str2, @C6474y(mo15757a = \"filter_block\") int i2);\n }", "title": "" }, { "docid": "1fbab877e648b4dd14bbfd82b044a051", "score": "0.42520916", "text": "@Override\n\tpublic Object moveHologramPacket(int id, Location to) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "14532650ade4faaa6de1f026968fa8be", "score": "0.42520496", "text": "@Transactional\n public void receivedIncomingFriendRequest(User user, User friend) {\n if (user.isFriend(friend)) {\n } else if (user.isOutgoingFriend(friend)) {\n acceptedOutgoingFriendRequest(user, friend);\n } else {\n user.addIncomingFriendRequest(friend);\n }\n }", "title": "" }, { "docid": "c663364dcc9a6b136c596ae21f335074", "score": "0.42314792", "text": "public SendAgentlessOutboundMessageRequest toAddress(String toAddress) {\n this.toAddress = toAddress;\n return this;\n }", "title": "" }, { "docid": "a95a4c7fafad8e09f0cb076d484ecc88", "score": "0.4225573", "text": "private Move parseMove(Move move){\n\n String command = move.getCommand();\n /* Split the string at the space character */\n String[] parts = command.split(\" \");\n\n String from = parts[0];\n String to = parts[1];\n\n move.setFrom(from);\n move.setTo(to);\n\n return move;\n\n }", "title": "" }, { "docid": "675c8b18c1de567f2280270888df161f", "score": "0.42197144", "text": "public void removeFromFriends(User friend) { \n\t\tfriends.remove(friends.indexOf(friend)); \n\t}", "title": "" }, { "docid": "020aa691a2943ac4022a97819e7954d8", "score": "0.42019457", "text": "@Override\n public ProfileOutcome addFriend(String friendId) {\n dbRefUser.child(Database.CHILD_FRIENDS).child(friendId).setValue(\"\");\n\n // Create a friend item\n SocialItem newFriendItem = new RemoteFriendItem(friendId);\n\n // Add the friend locally\n addFriend(newFriendItem);\n\n return ProfileOutcome.FRIEND_ADDED;\n }", "title": "" }, { "docid": "f5b26e48b8fbef47e76de9b54553c9b2", "score": "0.4199827", "text": "private AcceptAndRejectFbInviteForSlotsRequestProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "a7e7499101e127c7c4eff2f4766c068b", "score": "0.41975933", "text": "private GetFriendRuleReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "7926c742203bfa70876f6e9c249abb6e", "score": "0.4181478", "text": "private FriendGroupsReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "8bf1a87abb5a4bc2b902f140589ca293", "score": "0.41792533", "text": "public Move(int fromRank, int fromFile, int toRank, int toFile) {\n\t\tfrom = (int) ((fromRank << 3) + fromFile);\n\t\tto = (int) ((toRank << 3) + toFile);\n\t}", "title": "" }, { "docid": "7a24de8322c34af4c6ec3fce254bd58e", "score": "0.41787514", "text": "public String move(Move move, User user);", "title": "" }, { "docid": "dc4393586475018f1a2a6e6219e9378e", "score": "0.41772172", "text": "public Task<Void> removeFriendRelation(String sourceUserId, String targetUserId) {\n // Supprime l'utilisateur cible dans la liste d'ami de l'utilisateur source\n final Task<Void> firstFriendshipTask = removeFriend(sourceUserId, targetUserId);\n\n // Supprime l'utilisateur source dans la liste d'ami de l'utilisateur cible\n final Task<Void> secondFriendshipTask = removeFriend(targetUserId, sourceUserId);\n\n return firstFriendshipTask.continueWithTask(task -> secondFriendshipTask);\n }", "title": "" }, { "docid": "1659f3b8d73ea6abd77d7c0be48ff474", "score": "0.41768095", "text": "public void addFriend(String username, String tar);", "title": "" }, { "docid": "58f58567390876790628fae92b98da53", "score": "0.4176489", "text": "public static int RemoveFriend(String user_id, String friend_id) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(USERS_TABLE);\n\n try {\n ParseObject object = query.get(user_id);\n JSONArray friend_array = object.getJSONArray(FRIENDS);\n ArrayList<String> list = new ArrayList<String>();\n int len = friend_array.length();\n\n if (friend_array != null) {\n for (int i = 0; i < len; i++) {\n list.add(friend_array.get(i).toString());\n }\n }\n\n list.remove(friend_id);\n object.put(FRIENDS, new JSONArray(list));\n object.increment(NUM_FRIENDS, -1);\n\n status = FLAG_QUERY_SUCCESSFUL;\n } catch (ParseException e) {\n status = FLAG_QUERY_FAILED;\n Log.e(TAG, e.toString());\n } catch (JSONException e) {\n status = FLAG_QUERY_FAILED;\n Log.e(TAG, e.toString());\n }\n\n return status;\n }", "title": "" }, { "docid": "9c5cfd123ef8bdfbaf9d21b6f9d6d514", "score": "0.41704962", "text": "private AddFriendSucceededSysNty(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "fe06a0de8c8e9f55a42712ff0d8c91aa", "score": "0.4168825", "text": "private void toChatting(AfFriendInfo affFriendInfo, String afid, String name) {\n if(afid.startsWith(DefaultValueConstant._R) && !CommonUtils.isSystemAccount(affFriendInfo.afId)){\r\n new ReadyConfigXML().saveReadyInt(ReadyConfigXML.ENTRY_P_PBL);\r\n//\t\t\tMobclickAgent.onEvent(context, ReadyConfigXML.ENTRY_P_PBL);\r\n } else {\r\n // heguiming 2013-12-04\r\n new ReadyConfigXML().saveReadyInt(ReadyConfigXML.LIST_T_P);\r\n//\t\t\tMobclickAgent.onEvent(context, ReadyConfigXML.LIST_T_P);\r\n\r\n }\r\n\r\n\r\n Intent intent = new Intent();\r\n if (afid != null && afid.startsWith(DefaultValueConstant._R)) {\r\n intent.setClass(context, AccountsChattingActivity.class);\r\n } else {\r\n intent.setClass(context,Chatting.class);\r\n }\r\n\r\n intent.putExtra(JsonConstant.KEY_FROM_UUID, afid);\r\n intent.putExtra(JsonConstant.KEY_FROM_NAME, name);\r\n intent.putExtra(JsonConstant.KEY_FROM_ALIAS, affFriendInfo.alias);\r\n intent.putExtra(JsonConstant.KEY_FRIEND, affFriendInfo);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n context.startActivity(intent);\r\n }", "title": "" }, { "docid": "b8c6ca783b2c8de9f46cee807429518b", "score": "0.41652295", "text": "@Override\n public void friendRequestCompleted() {\n pref=getSharedPreferences(\"Friends\",MODE_PRIVATE);\n if (friendCounter == 0 && !pref.contains(\"Friends\")) {\n Log.w(\"TEST\", \"IntentSplash\");\n Intent intent = new Intent(this, ChooseFriends.class);\n intent.putExtra(\"DoneLoading\", \"True\");\n startActivity(intent);\n // Log.w(\"TEST\", Friend.tempFriendInfo.get(1).get(\"steamid\") );\n finish();\n }\n else if (pref.contains(\"Friends\")&& friendCounter != 0)\n {\n\n\n Set<String>friendList= pref.getStringSet(\"Friends\",null);\n String test= friendList.toArray()[0].toString();\n Friend tmp = new Friend(friendList.toArray()[friendCounter-1].toString(), this,true);\n friendCounter--;\n }\n else if (pref.contains(\"Friends\")&& friendCounter == 0)\n {\n\n ArrayList<Friend> te = Friend.tempFriendlist;\n Log.w(\"TEST\", Friend.tempFriendlist.get(1).getPlayerName());\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n finish();\n\n\n }\n else\n {\n HashMap<String, String> friendList = mp.getFriendList();\n friendCounter--;\n Friend tmp = new Friend(friendList.get(Integer.toString(friendCounter)), this);\n }\n\n }", "title": "" }, { "docid": "53720f46bb2afbb0c685b4d3e4190485", "score": "0.41623747", "text": "public void move(Position from, Position to);", "title": "" }, { "docid": "7a2258b7426c04250413432792326bc3", "score": "0.41539633", "text": "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n position--;\r\n if(mAdapter.getCount() <= position)\r\n return;\r\n final AfFriendInfo afFriendInfo = mAdapter.getItem(position);\r\n if (afFriendInfo != null && afFriendInfo.afId != null && afFriendInfo.afId.startsWith(\"r\")) {\r\n toChatting(afFriendInfo,afFriendInfo.afId,afFriendInfo.name);\r\n return;\r\n }\r\n if (isShowPhoneContacts) {\r\n /*add by zhh*/\r\n if (deleteItemLs.contains(afFriendInfo) || afFriendInfo.isAddFriend) { //如果当前正在删除该好友,则不能再点击\r\n return;\r\n } else {\r\n CacheManager.getInstance().getThreadPoolInstance().execute(\r\n new Thread() {\r\n public void run() {\r\n mAfCorePalmchat.AfRecentMsgSetUnread(afFriendInfo.afId, 0);\r\n MessagesUtils.setUnreadMsg(afFriendInfo.afId, 0);\r\n if (afFriendInfo.is_new_contact) {\r\n afFriendInfo.is_new_contact = false;\r\n mAfCorePalmchat.AfDbProfileUpdateNewContact(afFriendInfo.afId, false);\r\n }\r\n\r\n }\r\n\r\n });\r\n new ReadyConfigXML().saveReadyInt(ReadyConfigXML.LIST_T_P);\r\n// MobclickAgent.onEvent(context, ReadyConfigXML.LIST_T_P);\r\n //gtf 2014-11-16\r\n new ReadyConfigXML().saveReadyInt(ReadyConfigXML.CONTACT_T_PF);\r\n// MobclickAgent.onEvent(context, ReadyConfigXML.CONTACT_T_PF);\r\n if (CacheManager.getInstance().getMyProfile().afId.equals(afFriendInfo.afId)) {\r\n Bundle bundle = new Bundle();\r\n bundle.putString(JsonConstant.KEY_AFID, afFriendInfo.afId);\r\n Intent intent = new Intent(context, MyProfileActivity.class);\r\n intent.putExtras(bundle);\r\n context.startActivity(intent);\r\n } else {\r\n toProfile(afFriendInfo);\r\n }\r\n\r\n }\r\n\r\n } else {\r\n if (mFragmentSendFriendCallBack != null) {\r\n mFragmentSendFriendCallBack.fragmentCallBack(true, afFriendInfo);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a7f437d87db730780744e07c7ecbcf43", "score": "0.41513234", "text": "public void setFriend(String friend) {\n this.friend = friend == null ? null : friend.trim();\n }", "title": "" }, { "docid": "2933bf2b39c864b22570effea4f128db", "score": "0.41499403", "text": "private HeartRsp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "b64b6616a3e6590dd5008c9a4ba27f36", "score": "0.41475725", "text": "public interface FriendInviteService {\n public void requestForFriendship(User initiator, User user);\n}", "title": "" }, { "docid": "3ec4153e3466ed369c026f01749fb050", "score": "0.41408503", "text": "private List<ToggleButton> rcvFriendsList() {\n\t\tCompetitionHandler.handle(model.getCurStatus());\n\n\t\ttry {\n\t\t\tif (sock.isConnected()) {\n\t\t\t\tList<ToggleButton> temp_list = new ArrayList<ToggleButton>();\n\n\t\t\t\tmessageListSend = model.getMessageListSend();\n\t\t\t\tmessageListRcv = model.getMessageListRcv();\n\n\t\t\t\t// Add Key and UserName to Msg List\n\t\t\t\tmessageList.add(0, MsgKeys.ReceiveFriends.getKey());\n\t\t\t\tmessageList.add(1, model.getConnectedName());\n\n\t\t\t\t// Send Request to Server\n\t\t\t\tmessageListSend.writeObject(messageList);\n\t\t\t\tmessageListSend.flush();\n\t\t\t\tmessageListSend.reset();\n\t\t\t\tmodel.setCurStatus(\"waiting\");\n\n\t\t\t\t// rcv Server response\n\t\t\t\tmessageList = null;\n\t\t\t\t// Wait for response\n\t\t\t\twhile (messageList == null) {\n\t\t\t\t\tmessageList = (ArrayList<String>) messageListRcv.readObject();\n\t\t\t\t}\n\t\t\t\tmodel.setCurStatus(\"available\");\n\n\t\t\t\t// make FriendBtnList from response\n\t\t\t\tif (messageList.get(0).equals(MsgKeys.ReceiveSuccess.getKey())) {\n\t\t\t\t\tfor (int i = 1; i < messageList.size(); i++) {\n\t\t\t\t\t\ttmpFriend = new ToggleButton(messageList.get(i));\n\t\t\t\t\t\ttmpFriend.setShape(new Circle(10));\n\t\t\t\t\t\ttmpFriend.setPrefSize(btnHeight * 2, btnHeight * 2);\n\n\t\t\t\t\t\ttemp_list.add(tmpFriend);\n\t\t\t\t\t}\n\t\t\t\t\treturn temp_list;\n\t\t\t\t}\n\t\t\t\tmessageList.clear();\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (ClassNotFoundException e2) {\n\t\t\te2.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "27256766bf7f4afe4ea81ca0f281308d", "score": "0.41390845", "text": "private NotifyNewMemberResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "fec6cead99d5ad1a216a8c4f03a34047", "score": "0.4133826", "text": "private AddedFriendSucceededSysNty(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "2eee8c45903e1adfbe4209136579f1bc", "score": "0.41288036", "text": "public static Request buildForwardMessage(Request req, ServerConf cfg,eye.Comm.Header.Routing route) {\n\t\t\n//\tNodeDesc node = cfg.getNearest().getNearestNodes().values().iterator().next();\n String iam = cfg.getServer().getProperty(\"node.id\");\n logger.info(\"vaue of iam is \" + iam);\n List<RoutingPath> paths = req.getHeader().getPathList();\n logger.info(\"Size of paths \" + paths.size());\n\t// if (paths != null) {\n\t// // if this server has already seen this message return null\n\t//// for (RoutingPath rp : paths) {\n\t//// logger.info(\"NODE IS \" + rp.getNode());\n\t//// if (iam.equalsIgnoreCase(rp.getNode()))\n\t//// return null;\n\t//// }\n\t// }\n\t\tRequest.Builder bldr = Request.newBuilder(req);\n\t\tHeader.Builder hbldr = bldr.getHeaderBuilder();\n//\t\thbldr.setRemainingHopCount(count);\n\t\thbldr.setRoutingId(route);\n\t\tRoutingPath.Builder rpb = RoutingPath.newBuilder();\n\t\trpb.setNode(iam);\n\t\trpb.setTime(System.currentTimeMillis());\n\t\thbldr.addPath(rpb.build());\n\n\t\treturn bldr.build();\n\t}", "title": "" }, { "docid": "03bd82fa5c71cbad2c229751384b1f91", "score": "0.41240537", "text": "public Move(int f, int t) {\n\t\tfrom = f;\n\t\tto = t;\n\t}", "title": "" }, { "docid": "52ff081d3a46bbfebee1215d6013ac35", "score": "0.41231003", "text": "private CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "96c61cc0c4182b443316f444b7401039", "score": "0.4121529", "text": "@Override\n public void visitParticipant(Wookie wookie) {\n wookie.addAction(wookie.new MoveAction(randomMove()));\n }", "title": "" }, { "docid": "62a70c54727a29c3dc25cb2040c2d86f", "score": "0.41207743", "text": "private Route(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "236c8ae531d7cdbfcb56f9c272f00676", "score": "0.41160136", "text": "private UpdateFriendOnlineRemindReq(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "6254ca9cb77797bc6dc13615d6953957", "score": "0.4114152", "text": "public void setFriendUser(User friendUser) {\n this.friendUser = friendUser;\n }", "title": "" }, { "docid": "e69cc342599e222f27d487487641e53e", "score": "0.41042474", "text": "public void onAddFriendClick(View view) {\n Intent addFriendIntent = new Intent(this, AddFriendActivity.class);\n startActivity(addFriendIntent);\n }", "title": "" }, { "docid": "41c4b186f1f87a0b9ddc507c529451a6", "score": "0.4099023", "text": "public interface MoveRequester extends Requester {\n /**\n * Called if the move is successfully made.\n *\n * @param promotionNeeded - true if a promotion is needed now that the move has been made (i.e.\n * the move resulted in a pawn making it to the back row)\n */\n void moveSuccess(boolean promotionNeeded);\n\n /**\n * Called if the game that we tried to make a move in does not exist, according to the server's\n * records\n */\n void gameDoesNotExist();\n\n /**\n * Called if the user we currently have logged in is not a user in the game we tried to make a\n * move in\n */\n void userNotInGame();\n\n /**\n * Called if the user has no opponent in the game we tried to make a move in, and hence cannot\n * yet make a move\n */\n void noOpponent();\n\n /**\n * Called if the game we tried to make a move in is already over\n */\n void gameIsOver();\n\n /**\n * Called if it is not our user's turn in the game we tried to make a move in\n */\n void notUserTurn();\n\n /**\n * Called if it is our user's turn, but they need to promote rather than make a normal move\n */\n void needToPromote();\n\n /**\n * Called if is is our user's turn, but because they need to respond to a draw offer, not\n * because it's their turn to make a normal move\n */\n void mustRespondToDraw();\n\n /**\n * Called if the move we tried to make is invalid (for example, the piece we tried to move\n * cannot move to the square we tried to move it to)\n */\n void moveInvalid();\n}", "title": "" }, { "docid": "2983650883aaabf88ff15a3400311fe1", "score": "0.40913707", "text": "@PostMapping(value = \"/respondtofriendrequest\",\n consumes = {MediaType.APPLICATION_JSON_VALUE},\n produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Boolean> respondToFriendRequest(@RequestBody FriendRequestResponse req) {\n\n if (!loginController.checkLoginData(req.getLoginData(), userRepository, passwordEncoder)) {\n // session invalid\n return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);\n }\n\n if (req.isAccepted()) {\n Friend newFriend = new Friend(0, req.getLoginData().getUsername(),\n req.getFriendUsername());\n Friend newFriend1 = new Friend(0, req.getFriendUsername(),\n req.getLoginData().getUsername());\n friendRepository.save(newFriend);\n friendRepository.save(newFriend1);\n\n List<FriendRequest> old = friendRequestRepository\n .findByUsernameAndRequestTo(req.getFriendUsername(),\n req.getLoginData().getUsername());\n FriendRequest remove = old.get(0);\n friendRequestRepository.delete(remove);\n return new ResponseEntity<>(Boolean.TRUE, HttpStatus.OK);\n }\n List<FriendRequest> old = friendRequestRepository\n .findByUsernameAndRequestTo(req.getFriendUsername(),\n req.getLoginData().getUsername());\n FriendRequest remove = old.get(0);\n friendRequestRepository.delete(remove);\n return new ResponseEntity<>(Boolean.FALSE, HttpStatus.OK);\n\n }", "title": "" }, { "docid": "4d7968dbf4e7057c6503a5d4b72e55c7", "score": "0.40849495", "text": "void removeInvitation(MemberOfRoomLocation member, String roomId, int pos);", "title": "" }, { "docid": "3cf513c88d85d4308f9a2e1c877ec61f", "score": "0.40841028", "text": "private ListMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ac23473bd4be190e20196ec4032aa17b", "score": "0.40800762", "text": "public FriendRequest( String sender, String senderUsername, String senderFullName, String time ){\n this.time = time;\n this.senderID = sender;\n this.accepted = false;\n this.senderUsername = senderUsername;\n this.senderFullName = senderFullName;\n }", "title": "" }, { "docid": "85442040397bbed245485cf7a4f6fdd3", "score": "0.40754342", "text": "public void addmorefriends(View view) {\n Intent intent = new Intent(this, AddFriends.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "3addeb92b3852f07e14da3c99dda843c", "score": "0.40711457", "text": "@Deprecated\n/* */ public Packet createResponse(Message msg) {\n/* 782 */ Packet response = new Packet(this);\n/* 783 */ response.setMessage(msg);\n/* 784 */ return response;\n/* */ }", "title": "" }, { "docid": "ecb6b0cb5c2d5ff4a5c1c551fedc776e", "score": "0.40686104", "text": "public FirebaseRecyclerAdapter<Relationships, ProfileFragment.UserViewHolder> createAdapterFriends(FirebaseRecyclerOptions<Relationships> optionsFriends){\n FirebaseRecyclerAdapter<Relationships, ProfileFragment.UserViewHolder> createdadapter = new FirebaseRecyclerAdapter<Relationships, ProfileFragment.UserViewHolder>(optionsFriends){\n @Override\n protected void onBindViewHolder(@NonNull ProfileFragment.UserViewHolder holder, int position, @NonNull Relationships friendsList) {\n final String otherUid = friendsList.getUid();\n System.out.println(\"other UID: \" + otherUid);\n\n ProfileFragment.UserViewHolder viewHolder = holder;\n //DatabaseReference friendRef = ref.child(\"user\").child(otherUid);\n\n User friend = getFriendInfo(otherUid, viewHolder);\n }\n\n @NonNull\n @Override\n public ProfileFragment.UserViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n View userView = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.layout_user_friend, viewGroup, false);\n\n return new ProfileFragment.UserViewHolder(userView);\n }\n };\n return createdadapter;\n }", "title": "" }, { "docid": "eb24d3e0a4933cf909ace8ce7b1526e7", "score": "0.40631402", "text": "public void sendFriends(ArrayList<String> friends) {\n String friendsStr = \"[\";\n for (String friendUsername : friends) {\n friendsStr += (friendUsername + \",\");\n }\n if (friendsStr.length() > 1) {\n friendsStr = friendsStr.substring(0, friendsStr.length()-1);\n }\n friendsStr += \"]\";\n System.out.println(\"{type:friends,action:show_friends,friends:\" + friendsStr + \"}\");\n sendToClient(new Action(\"{type:friends,action:show_friends,friends:\" + friendsStr + \"}\"));\n }", "title": "" }, { "docid": "c22ee1c4f151db50a202bf3c31548cf3", "score": "0.4063038", "text": "private MakeOrderResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "19550aa1491e9fea4417c3800810b520", "score": "0.40588608", "text": "ServiceResponse<Device> move(Tenant tenant, Application originApplication, String guid, Application destApplication);", "title": "" }, { "docid": "0b4b96228c3c0a0c9d783ad1984e52fc", "score": "0.40564778", "text": "@PostMapping(value = \"/removefriend\",\n consumes = {MediaType.APPLICATION_JSON_VALUE},\n produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Boolean> removeFriendRequest(@RequestBody AddFriendRequest req) {\n\n if (!loginController.checkLoginData(req.getLoginData(), userRepository, passwordEncoder)) {\n // session invalid\n return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);\n }\n\n List<Friend> friend = friendRepository\n .findByFusernameAndFriend(req.getLoginData()\n .getUsername(), req.getFriendUsername());\n\n if (!friend.isEmpty()) {\n\n List<Friend> friendInverse = friendRepository\n .findByFusernameAndFriend(req.getFriendUsername(),\n req.getLoginData().getUsername());\n\n System.out.println(\"removing: \" + friend.get(0));\n friendRepository.delete(friend.get(0));\n friendRepository.delete(friendInverse.get(0));\n return new ResponseEntity<>(Boolean.TRUE, HttpStatus.OK);\n }\n\n return new ResponseEntity<>(Boolean.FALSE, HttpStatus.OK);\n }", "title": "" } ]
ee0c96a69597415fec4bd4ee49d1937a
store details in joinclass table
[ { "docid": "bec905da3bf18797cb0495867c80850f", "score": "0.0", "text": "@Override\n public void onSuccess(Void aVoid) {\n pd.dismiss();\n Toast.makeText(uploadSlipImgStudent.this, \"Payment is Successful\", Toast.LENGTH_SHORT).show();\n setnotifications();\n startActivity(new Intent(uploadSlipImgStudent.this, DashboardActivity.class));\n\n }", "title": "" } ]
[ { "docid": "671cea05c122c441620da652f252534b", "score": "0.5922683", "text": "@Override\n public ResultSet Join() throws ClassNotFoundException, SQLException {\n Connection con;\n //creates the resulset object to be returned. \n ResultSet rs = null;\n try {\n con = this.getConnection();\n String query = \"SELECT Stations.Station_ID, Tracks.Average_Track_Speed_Limit, Tracks.Station_start_ID FROM Tracks INNER JOIN Stations ON Tracks.Station_start_ID=Stations.Station_ID;\";\n //Creates a statement\n Statement st = con.createStatement();\n rs = st.executeQuery(query);\n } //catches\n catch (ClassNotFoundException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n }\n //System.out.println(\"Size\"+rs.getf);\n return rs;\n }", "title": "" }, { "docid": "f5d33e2b8da635bcb79e673d3bef0ff3", "score": "0.54661417", "text": "public static void main(String[] args) {\nSessionFactory factory=new Configuration().configure(\"hibernate.cfg.xml\").addAnnotatedClass(Instructor.class).addAnnotatedClass(InstructorDetail.class).addAnnotatedClass(Course.class).buildSessionFactory();\n//create session\nSession session=factory.getCurrentSession();\ntry {\n\n\t\n\tInstructor tempIn=new Instructor(\"man\",\"van\",\"man.vinu@gmail.com\");\n\tInstructorDetail tempd=new InstructorDetail(\"http:luv2gun.com\",\"coding\");\n\ttempIn.setInstructorDetail(tempd);\n\tsession.beginTransaction();\n//\tsave the student object\n//\tthis will also save the details object too because of the CascadeType.All\n\tsession.save(tempIn);\n\tsession.getTransaction().commit();\n}finally {\n\tsession.close();\n\tfactory.close();\n}\n\t}", "title": "" }, { "docid": "d1a5824184fe782b2d4fa9676e3ccad2", "score": "0.541548", "text": "@Override\n\tpublic void joinMember(MemberVO vo) {\n\t\tsqlSession.insert(namespace+\".joinMember\", vo);\n\t}", "title": "" }, { "docid": "faa98263f731bb47e8ad248dcb04a6b3", "score": "0.54089916", "text": "public void setJoinTable(JoinTable joinTable) {\r\n this.joinTable = joinTable;\r\n }", "title": "" }, { "docid": "98f4da2352ffd7044019073e79957685", "score": "0.5316574", "text": "public static void main(String[] args) {\n\t\tConfiguration conf = new Configuration().configure();\r\n\t\tStandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder().applySettings(conf.getProperties());\r\n\t\tSessionFactory sessionFactory = conf.buildSessionFactory(builder.build()); \r\n\t\tSession session = sessionFactory.openSession();\r\n\t\tSystem.out.println(\"--------Session----\"+session);\r\n session.beginTransaction();\r\n \r\n //one-to-one\r\n \r\n Student student = new Student(\"Karim\", \"Basha\", \"karimulla0078@gmail.com\", \"8789876765\" );\r\n StudentAddress studentAddress = new StudentAddress(\"g-147, sec-44\", \"new delhi\", \"new delhi\", \"india\");\r\n \r\n student.setStudentAddress(studentAddress);\r\n \r\n \r\n \r\n studentAddress.setStudent(student);\r\n \r\n session.save(student);\r\n \r\n //one-to-many\r\n \r\n /* Student student = new Student(\"John\", \"Smith\",\r\n \t \"beingjavaguy@gmail.com\", \"11111111\");\r\n session.save(student);\r\n\r\n MarksDetails marksDetails1 = new MarksDetails(\"Maths\", \"100\", \"87\",\r\n \t \"Passed\");\r\n MarksDetails marksDetails2 = new MarksDetails(\"Science\", \"100\", \"90\",\r\n \t \"Passed\");\r\n MarksDetails marksDetails3 = new MarksDetails(\"English\", \"100\", \"85\",\r\n \t \"Passed\");\r\n\r\n marksDetails1.setStudent(student);\r\n marksDetails2.setStudent(student);\r\n marksDetails3.setStudent(student);\r\n\r\n session.save(marksDetails1);\r\n session.save(marksDetails2);\r\n session.save(marksDetails3);*/\r\n \r\n \r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "6934e05a3f524ea280a8c35e4eb11891", "score": "0.52620274", "text": "public void adddetails(Mstschoolconnect tbl);", "title": "" }, { "docid": "33b818f3a283e3310f646c905fa02d2a", "score": "0.52567685", "text": "public void intsertData() {\n try {\n connection = getConn.getConnectionSql();\n //join 2 bang lai der lay ddc idbook and idauthor\n String sql = \"SELECT b.id , a.id FROM books b JOIN `authors` a ON b.author = a.`name`\";\n PreparedStatement pr = connection.prepareStatement(sql);\n ResultSet rs = pr.executeQuery();\n while (rs.next()) {\n // insert du lieu\n String insertauthorbook = \"insert INTO book_authors(id_book,id_author,active) values (?,?,?)\";\n PreparedStatement insert = connection.prepareStatement(insertauthorbook);\n insert.setInt(1,rs.getInt(1));\n insert.setInt(2,rs.getInt(2));\n insert.setInt(3,1);\n insert.executeUpdate();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "be1c6dc898d03e68b8966a5b3c54a554", "score": "0.5216165", "text": "public JoinTable getJoinTable() {\r\n return joinTable;\r\n }", "title": "" }, { "docid": "ef8a121b2ee002126f02fc17f7e641b0", "score": "0.5213346", "text": "@Test public void join ()\n {\n\n Transaction.begin();\n\n john. set (finance);\n homer.set (finance);\n\n Transaction.commit();\n\n }", "title": "" }, { "docid": "1bda64acb0a8493a8cac3a2c5994dfa7", "score": "0.51883554", "text": "@Override\n public ResultSet SelfJoin() throws ClassNotFoundException, SQLException {\n Connection con;\n //creates the resulset object to be returned. \n ResultSet rs = null;\n try {\n con = this.getConnection();\n String query = \"SELECT Station_ID AS Station_ID1, Station_start_ID AS Station_ID2, A.Station_name FROM Stations A, Tracks B WHERE A.Station_ID <> B.Station_start_ID ORDER BY A.Station_name\";\n //Creates a statement\n Statement st = con.createStatement();\n rs = st.executeQuery(query);\n } //catches\n catch (ClassNotFoundException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n }\n //System.out.println(\"Size\"+rs.getf);\n return rs;\n }", "title": "" }, { "docid": "caf8be41449d89d62b21603daebc7c7f", "score": "0.5181619", "text": "public ReciboJoinColumn() {\r\n this.dataCriacao = new Date();\r\n }", "title": "" }, { "docid": "c04fa8c68e3eb9e1e47427dd6273affd", "score": "0.5133365", "text": "public void addClass(Clas cls ) {\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tsession.persist(cls);\r\n\t\tSystem.out.println(\"Added Clas\");\t\t\r\n\t}", "title": "" }, { "docid": "be2c8cb4670915caa9d2ea42793b620e", "score": "0.5122242", "text": "@Override\r\n\tpublic void joinTransaction() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4af8487a827530cb98fd906d0902f3d", "score": "0.50863165", "text": "public abstract String getFkColName();", "title": "" }, { "docid": "c08129b64fbc370666c19d60cdb967ff", "score": "0.5084226", "text": "public int join(Map<String, Object> pMap) {\n\t\t\tint result = 0;\r\n\t\t\r\n\t\t\tresult = sqlSessionTemplate.insert(\"AJoin\",pMap);\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t}", "title": "" }, { "docid": "ec6abb589b5960eeeddf5e216ce79765", "score": "0.5062414", "text": "@Dao\npublic interface SportsDao {\n @Insert\n long insertSports(Sports mSports);\n\n @Query(\"SELECT * FROM sports\")\n List<Sports> getAllSportList();\n\n @Query(\"SELECT student.course, student.name, sports.favoriteSport, sports.child_studentId FROM Student INNER JOIN Sports ON student.studentId = sports.child_studentId\")\n List<StudentSportsJoin> getJoinData();\n\n\n}", "title": "" }, { "docid": "1f8912851b658a412b17472f217de393", "score": "0.5055466", "text": "public void insertClass(CourseBean courseBean, ClassBean classBean);", "title": "" }, { "docid": "45b50b4574e8def573e705de23a94500", "score": "0.50479835", "text": "@Override\n public ResultSet RightJoin() throws ClassNotFoundException, SQLException {\n Connection con;\n //creates the resulset object to be returned. \n ResultSet rs = null;\n try {\n con = this.getConnection();\n String query = \"SELECT Stations.Station_ID, Tracks.Average_Track_Speed_Limit, Tracks.Track_type FROM Tracks RIGHT JOIN Stations ON Tracks.Station_start_ID=Stations.Station_ID ORDER BY Tracks.Average_Track_Speed_Limit;\";\n //Creates a statement\n Statement st = con.createStatement();\n rs = st.executeQuery(query);\n } //catches\n catch (ClassNotFoundException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n }\n //System.out.println(\"Size\"+rs.getf);\n return rs;\n }", "title": "" }, { "docid": "ebfb7e1f05a0d5b846581bc0851c35fc", "score": "0.50156754", "text": "public static void addData() {\n Session session = HibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n\n // Adding a new Employee\n Employee e1 = new Employee();\n\n e1.setFirstName(\"Ravi\");\n e1.setLastName(\"Balg\");\n\n session.save(e1);\n\n empid = e1.getId();\n session.getTransaction().commit();\n }", "title": "" }, { "docid": "471c6d8e314af8323397ed562cc48a1f", "score": "0.50116587", "text": "private void createQueryData() {\n OpenJPAEntityManagerSPI em = emf.createEntityManager();\n // Add some data\n for (int i = 0; i < 12; i++) {\n students[i] = new Student(\"Student\" + i);\n }\n Course courseA = new Course(\"Course A\");\n Course courseB = new Course(\"Course B\");\n\n HashSet<Course> courses = new HashSet<>();\n courses.add(courseA);\n courses.add(courseB);\n HashSet<Student> cAstudents = new HashSet<>();\n for (int i = 0; i < 5; i++) {\n cAstudents.add(students[i]);\n students[i].setCourses(courses);\n }\n courseA.setStudents(cAstudents);\n ArrayList<Student> cAwaitlist = new ArrayList<>();\n cAwaitlist.add(students[11]);\n cAwaitlist.add(students[10]);\n courseA.setWaitList(cAwaitlist);\n\n HashSet<Student> cBstudents = new HashSet<>();\n for (int i = 5; i < 10; i++) {\n cBstudents.add(students[i]);\n }\n courseB.setStudents(cBstudents);\n ArrayList<Student> cBwaitlist = new ArrayList<>();\n cBwaitlist.add(students[10]);\n cBwaitlist.add(students[11]);\n courseB.setWaitList(cBwaitlist);\n\n em.getTransaction().begin();\n em.persist(courseA);\n em.persist(courseB);\n em.getTransaction().commit();\n em.close();\n }", "title": "" }, { "docid": "8ff405dcc2fac171d404db7c6c9fed73", "score": "0.4997357", "text": "private static final void ImportingDataOfFieldsInTableOfAbstractClass(Connection conn, PrintStream originalOut,String DataBaseName,Object o){\r\n Statement stmt = null;\r\n Field[] fields = getAllFieldsForAbstract(o);\r\n String Cname = o.getClass().getSimpleName();\r\n\r\n String FieldName;\r\n String FieldClassName;\r\n String FieldMod; // field's modifier\r\n String FieldType;\r\n Object FieldValue = null;\r\n\r\n for (int c = 0; c < fields.length; c++) { // for every field of the class\r\n FieldName = fields[c].getName();\r\n FieldClassName = fields[c].getDeclaringClass().getSimpleName();\r\n FieldMod = Modifier.toString(fields[c].getModifiers());//Field's modifiers\r\n if (fields[c].getModifiers() == 0) { //If field has no modifiers\r\n FieldMod = \"---\";\r\n }\r\n FieldType = fields[c].getType().getSimpleName();//Field's type\r\n\r\n //importing all informations(except value) about the field inside the table of fields of the class\r\n int count = c+1;\r\n String query1 =\"INSERT INTO \"+DataBaseName+\".Fields_Of_Class_\"+Cname+\" (Count, Identifier, OfClass, Modifiers, Type) VALUES(\"+count+\", '\"+FieldName+\"', '\"+FieldClassName+\"', '\"+FieldMod+\"', '\"+FieldType+\"');\" ;\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query1);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1308 : \" + exx.getMessage());\r\n }\r\n\r\n // Importing the value of field\r\n try {\r\n FieldValue = fields[c].get(o); // field's value\r\n } catch (IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if(fields[c].getType().isArray()) { // if field's value is an array\r\n //sql query about changing-updating the column by name 'value' from null(by default) to '', because otherwise if it remains null table cannot get updated\r\n String query2 = \"UPDATE \"+DataBaseName+\".Fields_Of_Class_\" +Cname+ \" SET Value = '' WHERE Count = \"+count+\" ;\" ;\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query1);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1325 : \" + exx.getMessage());\r\n }\r\n ImportingContentFromArray(conn, originalOut,DataBaseName ,count, Cname, FieldValue); //calling this function for importing correct the value of an array\r\n\r\n }\r\n else{ //if field is everything else but array\r\n String query2 = \"UPDATE \"+DataBaseName+\".Fields_Of_Class_\" +Cname+ \" SET Value = '\"+FieldValue+\"' WHERE Count = \"+count+\" ;\" ; //sql query about changing-updating the column by name 'value' with the actual value of the field\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query2);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1336 : \" + exx.getMessage());\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "88c9242fd13eefa8094400b747a03c82", "score": "0.49957412", "text": "public void joinMember(MemberDTO mto) {\n\t\tdao.insertMember(mto);\n\t}", "title": "" }, { "docid": "21b12f5eb6e5f3230d520005d2062f0c", "score": "0.49918228", "text": "public void addClass(String class_name, String role, String power_source,\n\t\t\tString hit_die, String description, String gold_die,\n\t\t\tArrayList<String> primary_stats, String secondary_stats,\n\t\t\tString alignment, ArrayList<String> fightType,\n\t\t\tArrayList<String> armorType) {\n\t\ttry {\n\t\t\t// Do something with the Connection\n\t\t\tStatement stmt = conn.createStatement();\n\n\t\t\tboolean rset = stmt.execute(\"insert into DND_class values('\"\n\t\t\t\t\t+ class_name + \"', '\" + role + \"', '\" + power_source\n\t\t\t\t\t+ \"', '\" + hit_die + \"', '\" + description + \"', '\"\n\t\t\t\t\t+ gold_die + \"');\");\n\n\t\t\tfor (int i = 0; i < primary_stats.size(); i++) {\n\t\t\t\trset = stmt.execute(\"insert into DND_class_stat values('\"\n\t\t\t\t\t\t+ class_name + \"', '\" + primary_stats.get(i)\n\t\t\t\t\t\t+ \"', 'primary');\");\n\t\t\t}\n\n\t\t\trset = stmt.execute(\"insert into DND_class_stat values('\"\n\t\t\t\t\t+ class_name + \"', '\" + secondary_stats\n\t\t\t\t\t+ \"', 'secondary');\");\n\t\t\trset = stmt\n\t\t\t\t\t.execute(\"insert into DND_class_recommended_alignment values('\"\n\t\t\t\t\t\t\t+ class_name + \"', '\" + alignment + \"');\");\n\t\t\tfor (int i = 0; i < fightType.size(); i++) {\n\t\t\t\trset = stmt\n\t\t\t\t\t\t.execute(\"insert into DND_class_weapon_proficiency values('\"\n\t\t\t\t\t\t\t\t+ class_name\n\t\t\t\t\t\t\t\t+ \"', '\"\n\t\t\t\t\t\t\t\t+ fightType.get(i)\n\t\t\t\t\t\t\t\t+ \"');\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < armorType.size(); i++) {\n\t\t\t\trset = stmt\n\t\t\t\t\t\t.execute(\"insert into DND_class_armor_proficiency values('\"\n\t\t\t\t\t\t\t\t+ class_name\n\t\t\t\t\t\t\t\t+ \"', '\"\n\t\t\t\t\t\t\t\t+ armorType.get(i)\n\t\t\t\t\t\t\t\t+ \"');\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\n\t}", "title": "" }, { "docid": "679122f772e6b4d040c46cbb48950e8e", "score": "0.49825805", "text": "private void insertData()\r\n {\r\n for (int i = 0; i < 4; i++)\r\n {\r\n PaintworkEntity paintworks = factory.manufacturePojo(PaintworkEntity.class);\r\n em.persist(paintworks);\r\n paintworksData.add(paintworks);\r\n }\r\n for (int i = 0; i < 3; i++)\r\n {\r\n ArtistEntity entity = factory.manufacturePojo(ArtistEntity.class);\r\n em.persist(entity);\r\n data.add(entity); \r\n paintworksData.get(i).setArtist(entity);\r\n }\r\n }", "title": "" }, { "docid": "49df6eec5b47b93090f22a421e553b5a", "score": "0.4971614", "text": "@Override\n\tpublic void createForeignKey(Class<BaseVo> voClass, Join join, Field field, DAOManager manager) throws DAOException {\n\n\t\tString sql = \"ALTER TABLE \" + getTablename(voClass) + \" ADD CONSTRAINT \" + getForeignKeyName(voClass, join, field);\n\t\tsql += \" FOREIGN KEY (\";\n\n\t\tfor (String columnLocal : join.columnsLocal()) {\n\t\t\tsql += columnLocal + \", \";\n\t\t}\n\n\t\t// Tira a ultima virgula e espaco\n\t\tsql = sql.substring(0, sql.length() - 2);\n\n\t\tsql += \") REFERENCES \" + getTableNameRemote(field, join) + \" (\";\n\n\t\tfor (String columnRemote : join.columnsRemote()) {\n\t\t\tsql += columnRemote + \", \";\n\t\t}\n\n\t\t// Tira a ultima virgula e espaco\n\t\tsql = sql.substring(0, sql.length() - 2);\n\n\t\tsql += \")\";\n\t\t\n\t\tLog.debugsql(sql);\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement prepared = manager.getConnection().prepareStatement(sql);\n\t\t\tprepared.execute();\n\t\t} catch (SQLException e) {\n\t\t\tLog.critical(e);\n\t\t\tthrow new SQLDaoException(\"Erro ao criar foreign key!\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "26a04039618b03dc6d17d89295fa41b0", "score": "0.49573138", "text": "public void addSandBDetails(Tblschoolandbranchdetail tbl);", "title": "" }, { "docid": "09d2c9c2796dd872e83c8eeffd9638eb", "score": "0.49533445", "text": "@Override\n public ResultSet LeftJoin() throws ClassNotFoundException, SQLException {\n Connection con;\n //creates the resulset object to be returned. \n ResultSet rs = null;\n try {\n con = this.getConnection();\n String query = \"SELECT Stations.Station_ID, Tracks.Average_Track_Speed_Limit FROM Tracks LEFT JOIN Stations ON Tracks.Station_start_ID=Stations.Station_ID ORDER BY Tracks.Average_Track_Speed_Limit;\";\n //Creates a statement\n Statement st = con.createStatement();\n rs = st.executeQuery(query);\n } //catches\n catch (ClassNotFoundException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Station.class.getName()).log(Level.SEVERE, null, ex);\n }\n //System.out.println(\"Size\"+rs.getf);\n return rs;\n }", "title": "" }, { "docid": "1ccf088bac5dbedb6f113fd65ea7146b", "score": "0.49531135", "text": "private void addDetails(){\n String id = databaseArtists.push().getKey();\n\n String loc = building1 + \" \"+ location1 + \" \"+ county1+ \" County\";\n String url=\"\";\n\n //creating an HotspotDetail Object\n\n HotSpotDetails hotSpotDetails= new HotSpotDetails(id,wifi_name,mpesa1,equity1,airtel1,orange1,loc,url);\n\n\n //Saving the Artist\n databaseArtists.child(id).setValue(hotSpotDetails);\n\n //displaying a success toast\n Toast.makeText(this, \"Hotspot added\", Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "b6648c9c9be7594db58ddc4ffab0409b", "score": "0.4946557", "text": "void save(Classroom classroom);", "title": "" }, { "docid": "16752c4241f694371ee862079367b6b8", "score": "0.49447268", "text": "@Override\n public void setType(DBJoinType type)\n {\n throw new NotSupportedException(this, \"joinType:\"+type.name());\n }", "title": "" }, { "docid": "fc652dd5aed7837b7d1037e37fc1488a", "score": "0.49031723", "text": "private static final void ImportingDataOfFieldsInTableOfClass(Connection conn, PrintStream originalOut,String DataBaseName,Object o){\r\n Statement stmt = null;\r\n Field[] fields = getAllFields(o);\r\n String Cname = o.getClass().getSimpleName();\r\n\r\n String FieldName;\r\n String FieldClassName;\r\n String FieldMod; // field's modifier\r\n String FieldType;\r\n Object FieldValue = null;\r\n\r\n for (int c = 0; c < fields.length; c++) { // for every field of the NON-abstract class\r\n FieldName = fields[c].getName();\r\n FieldClassName = fields[c].getDeclaringClass().getSimpleName();\r\n FieldMod = Modifier.toString(fields[c].getModifiers());//Field's modifiers\r\n if (fields[c].getModifiers() == 0) { //If field has no modifiers\r\n FieldMod = \"---\";\r\n }\r\n FieldType = fields[c].getType().getSimpleName();//Field's type\r\n\r\n //sql query about inserting all informations (except value) for every field in the table of fields of the specific class\r\n int count = c+1;\r\n String query1 =\"INSERT INTO \"+DataBaseName+\".Fields_Of_Class_\"+Cname+\" (Count, Identifier, OfClass, Modifiers, Type) VALUES(\"+count+\", '\"+FieldName+\"', '\"+FieldClassName+\"', '\"+FieldMod+\"', '\"+FieldType+\"');\" ;\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query1);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1481 : \" + exx.getMessage());\r\n }\r\n\r\n // Importing the value of field\r\n try {\r\n FieldValue = fields[c].get(o); // field's value\r\n } catch (IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if(fields[c].getType().isArray()) { // if field's value is an array\r\n //sql query about changing-updating the column value from null(by default) to '',because otherwise it cannot happen the later update\r\n String query3 = \"UPDATE \"+DataBaseName+\".Fields_Of_Class_\"+Cname+ \" SET Value = '' WHERE Count = \"+count+\" ;\" ;\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query3);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1498 : \" + exx.getMessage());\r\n }\r\n ImportingContentFromArray(conn, originalOut,DataBaseName,count, Cname, FieldValue); //calling this method for importing the value of the array\r\n\r\n }\r\n else{ //if field is everything else but array\r\n //sql query about changing-updating the column by name 'value' from null(by default) to its actual value\r\n String query2 = \"UPDATE \"+DataBaseName+\".Fields_Of_Class_\"+Cname+ \" SET Value = '\"+FieldValue+\"' WHERE Count = \"+count+\" ;\" ;\r\n try {\r\n stmt = conn.createStatement();\r\n int rs = stmt.executeUpdate(query2);\r\n }catch (SQLException exx) {\r\n originalOut.println(\"Error1510 : \" + exx.getMessage());\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "19b539c15543801eafc2a15934788c1d", "score": "0.4897027", "text": "@Override\r\n\tpublic StudentPhysicalInfo addPhysicalInfoToDb ( StudentPhysicalInfo physicalInfo ) {\r\n\t\t\t Session session = sessionFactory.getCurrentSession();\r\n\t\t session.save(physicalInfo);\r\n\t\t return physicalInfo;\r\n\t}", "title": "" }, { "docid": "8ccf3ed75e077d5e6b9d6cabce570a90", "score": "0.4885643", "text": "@Override\n\tpublic void save(ProfessionalClass pClass) {\n\t\tthis.getHibernateTemplate().save(pClass);\n\t}", "title": "" }, { "docid": "498b2f9e4bcf05d626214de7a25c287d", "score": "0.48833835", "text": "private void StartData() {\n\t\ttry (Session session = hibernate.factory.openSession()){\n\t\t\thibernate.transaction = session.beginTransaction();\n\t\t\tArrayList<Company> companies = (ArrayList<Company>)session.createCriteria(Company.class).list();\n\t\t\tfor(Company company:companies) {\n\t\t\t\tminiTable.model.addRow(new Object[] {company.getId(),company.getCompanyClassification()\n\t\t\t\t\t\t,company.getCompanyName(),\"\",company.getCEO_Name(),company.getBusinessNumber()\n\t\t\t\t\t\t,company.getIndustryType(),company.getIndustryType_detail(),company.getPhone()\n\t\t\t\t\t\t,company.getFax(),\"\"});\n\t\t\t}\n\t\t\thibernate.transaction.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "title": "" }, { "docid": "6af76b3b106b3e5db681f2c51beaff9b", "score": "0.48778567", "text": "public void addJoin(String table, String as, short joinType, List<Pair<String, String>> fieldList) {\n\t\tJoinField field = new JoinField();\n\n\t\tfield.setTable(table);\n\t\tfield.setAs(as);\n\t\tfield.setMultiFieldList(fieldList);\n\t\tfield.setJoinType(joinType);\n\n\t\t_joinList.addElement(field);\n\t}", "title": "" }, { "docid": "7f037974e81953d14a58d3e20cbe9037", "score": "0.48761088", "text": "public Select addJoin(Join join) {\r\n try {\r\n // Here we will add the join that the user is trying to add.\r\n // Validate the Join.\r\n if (cdb.validateCRUD(join.getTableName(), CloudDB.CRUD.READ)) {\r\n joinsBuilder.append(join.getJoinSQL());\r\n return this;\r\n } else {\r\n // The user is not authorized to read from this table.\r\n return null;\r\n }\r\n\r\n } catch (Exception e) {\r\n // There was an Error.\r\n addStatus(\"Join Er : \" + Helper.Error.getErrorMessage(e));\r\n return this;\r\n }\r\n }", "title": "" }, { "docid": "a300949fbc8018e56fc1e2fefdf8bef9", "score": "0.48754296", "text": "public int join(MemberBean bean) {\n\t\tint result=0;\r\n\t\tsql=\"insert into member (MEMBERID,PASSWORD,NAME,EMAIL,AGE)\"\r\n\t\t\t\t+\" values(?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\tpstmt= conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, bean.getId());\r\n\t\t\tpstmt.setString(2, bean.getPassword());\r\n\t\t\tpstmt.setString(3, bean.getName());\r\n\t\t\tpstmt.setString(4, bean.getAddr());\r\n\t\t\tpstmt.setString(5, bean.getAge());\r\n\t\t\tresult=pstmt.executeUpdate();\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\tSystem.out.println(\"MemberDAO/join/error 에러\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "4eed4ab58fabef6f643167c7a0544d2c", "score": "0.4874411", "text": "void addClass(String name) {\r\n\t \ttry { DatabaseOpertion.tableCreate(name);}\r\n\t \tcatch(Exception e) {e.printStackTrace();}\r\n\t }", "title": "" }, { "docid": "405fd69f37f969a4a30fdfa52b9c9096", "score": "0.4870479", "text": "public static void main(String[] args) {\n\t\tSessionFactory factory=HibernateUtil.getSessionFactory();\r\n\t\t \r\n\t\tSession session=factory.openSession();\r\n\tTransaction t=session.beginTransaction();\r\n\t\r\n\t\r\n\t\r\n\tItem i1=new Item();\r\n\ti1.setName(\"item1\");\r\n\ti1.setCost(120);\r\n\tsession.save(i1);\r\n\t\r\n\t\r\nSportsItem si1=new SportsItem();\r\nsi1.setSportstype(\"football\");\r\nsi1.setCost(1200);\r\nsi1.setName(\"item2\");\r\nsession.save(si1);\r\n\r\nElectronicItem ei1=new ElectronicItem();\r\nei1.setFeatures(\"batterylife\");\r\nei1.setModel(\"X2\");\r\nei1.setCost(3456);\r\nei1.setName(\"mobile\");\r\nsession.save(ei1);\r\n\r\n\tQuery q=session.createQuery(\"from ElectronicItem\");\r\n\tList list=q.list();\r\n\tIterator i=list.iterator();\r\n\twhile(i.hasNext()){\r\n\t\tElectronicItem scd1=(ElectronicItem) i.next();\r\n\t\tSystem.out.println(scd1.getName()+\" \" +scd1.getCost()+\" \"+scd1.getFeatures()+\" \"+scd1.getModel()+\" \"+scd1.getId());\r\n\t}\r\n\tt.commit();\r\n\tsession.close();\r\n\tSystem.out.println(\"success\");\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "419b8c27c46da1bda5386568cdd1cb16", "score": "0.48669934", "text": "public studentWindow() {\n initComponents();\n \n \n\n SessionFactory sf=new Configuration().configure().buildSessionFactory();\n Session session=sf.openSession();//used to open table\n Transaction tx=session.beginTransaction();\n DefaultTableModel dtm2=(DefaultTableModel)jTable1.getModel();\n Query q=session.createQuery(\"from Operator\");\n List<Operator> data=q.list();\n for(Operator op:data)\n {\n \n Object obj[]={op.getDate(),op.getTime(),op.getTopic()};\n dtm2.addRow(obj);\n }\n tx.commit();\n session.close();\n \n \n }", "title": "" }, { "docid": "0f4c993914258bc03fc676c4e31cf30d", "score": "0.48470506", "text": "public void addDetail() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cea2945d92df44751654a7e5fc1a2bc7", "score": "0.48466697", "text": "public void save() {\n for(Column col : columns.values()) {\n sm.putColumn(name, col);\n if(col.isForeign()) {\n sm.addForeign(\n col.getReferencing().getTableName(),\n col.getReferencing().getColumnName(),\n new Foreign(name, col.getName())\n );\n }\n }\n }", "title": "" }, { "docid": "5439486535d3de8c86345a1cae4c6f23", "score": "0.48393226", "text": "public AEntry() {\n Class class1=this.getClass();\n Field[] fields = class1.getDeclaredFields();\n this.entryColumnNames=new String[this.getClass().getDeclaredFields().length];\n int i=0;\n for (Field field:this.getClass().getDeclaredFields()) {\n entryColumnNames[i]= field.getName();\n i++;\n }\n\n }", "title": "" }, { "docid": "5772a34d2ab3525431a34a8e5ca4b499", "score": "0.4835262", "text": "public void performGoodsReceipt(GoodsReceiptRequest goodsReceiptRequest){\n\n InventoryPosting inventoryPosting=new InventoryPosting();\n SiloTracker siloTracker=new SiloTracker();\n\n //Saving data into inventory_posting table\n inventoryPosting.setSiloId(goodsReceiptRequest.getSiloId());\n inventoryPosting.setMaterialId(goodsReceiptRequest.getMaterialId());\n inventoryPosting.setPostingType(goodsReceiptRequest.getPostingType());\n inventoryPosting.setBatchId(goodsReceiptRequest.getBatchId());\n inventoryPosting.setUom(goodsReceiptRequest.getUom());\n inventoryPosting.setQuantity(goodsReceiptRequest.getQuantity());\n invPostingRepository.save(inventoryPosting);\n\n //Saving data into silo_tracker table\n siloTracker.setSiloId(goodsReceiptRequest.getSiloId());\n siloTracker.setMaterialId(goodsReceiptRequest.getMaterialId());\n siloTracker.setBatchId(goodsReceiptRequest.getBatchId());\n siloTracker.setUom(goodsReceiptRequest.getUom());\n siloTracker.setBatchQuantity(goodsReceiptRequest.getQuantity());\n siloTracker.setOpenQuantity(goodsReceiptRequest.getQuantity());\n siloTrackerRepository.save(siloTracker);\n\n}", "title": "" }, { "docid": "24e87111ef15da2e5a0d8ee4a21f26e7", "score": "0.48340765", "text": "private E mapEntity (ResultSet resultSet) {\n\n E entity = null;\n try {\n entity = this.clazz.getConstructor().newInstance();\n\n } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n e.printStackTrace();\n }\n return mapEntity(entity, resultSet);\n }", "title": "" }, { "docid": "7014d9bd0e88e63c20613afd97d151d8", "score": "0.48156887", "text": "public void\n\taddJoin (\n\t JoinDobj joinDobj)\n\t{\n\t\t// validate\n\t\tUtil.argCheckNull (joinDobj);\n\n\t\t// ensure Joins vector exists\n\t\tif (_joins == null)\n\t\t\t_joins = new Vector ();\n\n\t\t// add the join\n\t\tJoinDobj temp;\n\t\tfor (int i = 0; joinDobj.getState () == DataObject.IN_DB && i < _joins.size (); i++)\n\t\t{\n\t\t\ttemp = (JoinDobj) _joins.elementAt (i);\n\t\t\tif (temp.getId () == joinDobj.getId ())\n\t\t\t{\n\t\t\t\t_joinsLoaded = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t_joins.add (joinDobj);\n\n\t\t// set the loaded flag\n\t\t_joinsLoaded = true;\n\t}", "title": "" }, { "docid": "7956d3d8438687f3634f252a9c4fb43c", "score": "0.4811561", "text": "@Override\r\n\tpublic void saveData() {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction transaction = session.beginTransaction();\r\n\t\t\r\n\t\tEmployee e1 = new Employee();\r\n\t\te1.setEmpName(\"RABEA\");\r\n\t\te1.setEmpSalary(4514.12);\r\n\t\t\r\n\t\tsession.save(e1);\r\n\t\t\r\n\t\ttransaction.commit();\r\n\t}", "title": "" }, { "docid": "543a00c8e6142208ca273814d3fb8d20", "score": "0.48065317", "text": "<J> J join(Class<J> joinClass, JoinType type);", "title": "" }, { "docid": "1d9a69391a6db8eed2694f68f3b4d7e3", "score": "0.47949713", "text": "private void setTable() {\n\t\tStaff staff = new Staff();\n\t\tstaff.setName(staffNameSearchComboBox.getSelectedItem().toString());\n\t\tDefaultTableModel dft = (DefaultTableModel) signinedListTable.getModel(); //default模型\n\t\tdft.setRowCount(0);//清空列表\n\t\tSignin signin = new Signin();\n\t\tSigninDao sd = new SigninDao();\n\t\tsignin.setStaff_id(staff.getId());\n\t\tList<Signin> getSigninList = sd.getSigninList(signin);\n\t\tfor (Signin s : getSigninList) {\n\t\t\tVector v = new Vector(); //Vector可实现自动增长的对象数组\n\t\t\tv.add(s.getId());\n\t\t\tv.add(getStaffNameById(s.getStaff_id()));\n\t\t\tv.add(getClassNameById(s.getClass_id()));\n\t\t\tv.add(s.getSignin_date());\n\t\t\tdft.addRow(v); //v给模型 按顺序添加列\n\t\t}\n\t\tsd.closeDao();\n\t}", "title": "" }, { "docid": "be111a9fd7a5b7f46b5d13008cd80a94", "score": "0.47901005", "text": "public void salvar(Fk fk) throws Exception;", "title": "" }, { "docid": "b3b388b59d8c8bdbc963d3af2917bb5e", "score": "0.47595763", "text": "public Productcategory save(Productcategory record);", "title": "" }, { "docid": "7802ecbae01e5c666260a4eddb7a677b", "score": "0.4754434", "text": "public void join() {\n\t\tif (isLoading()) {\n\t\t\tDbModelJoinCommand.runJoinCommand(m_connection, this);\n\t\t} else if (isLoaded()) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tsynchronized (this) {\n\t\t\t\tif (m_modelstate != CURRENTLY_LOADING) {\n\t\t\t\t\tm_modelstate = CURRENTLY_LOADING;\n\t\t\t\t\tstartLoad();\n\t\t\t\t}\n\t\t\t}\n\t\t\tDbModelJoinCommand.runJoinCommand(m_connection, this);\n\t\t}\n\t}", "title": "" }, { "docid": "7308b29a65ce4823c756f170ca581384", "score": "0.47399655", "text": "public void getAllCoffeeBrands() {\n try {\n\n //get list of coffeebrand by there ID's\n Connection connection = dataSource.getConnection();\n\n PreparedStatement compareUser2 = connection.prepareStatement(\"select Brand_id from COFFEEBRANDS\");\n compareUser2.executeQuery();\n ResultSet results2 = compareUser2.getResultSet();\n while (results2.next()) {\n brand_Ids.add(results2.getInt(\"Brand_Id\"));\n }\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"SQL error occured\");\n System.out.println(e);\n }\n\n try {\n Connection connection = dataSource.getConnection();\n\n PreparedStatement compareUser2 = connection.prepareStatement(\"SELECT * FROM COFFEE_BRAND_AROMAS INNER JOIN COFFEE_BRAND_TASTES ON COFFEE_BRAND_AROMAS.BRAND_ID = COFFEE_BRAND_TASTES.BRAND_ID\");\n compareUser2.executeQuery();\n ResultSet results2 = compareUser2.getResultSet();\n while (results2.next()) {\n mainalg coffee1 = new mainalg(results2.getInt(\"BRAND_ID\"), results2.getInt(\"SOUR\"), results2.getInt(\"WINEY\"), results2.getInt(\"ADICIC\"), results2.getInt(\"MELLOW\"), results2.getInt(\"BLAND\"), results2.getInt(\"SHARP\"), results2.getInt(\"HARSH\"), results2.getInt(\"PUNGENT\"), results2.getBoolean(\"FLOWERY\"), results2.getBoolean(\"FRUITY\"), results2.getBoolean(\"HERBY\"), results2.getBoolean(\"NUTTY\"), results2.getBoolean(\"CARAMELLY\"), results2.getBoolean(\"CHOCOLATEY\"), results2.getBoolean(\"RESINOUS\"), results2.getBoolean(\"SPICY\"), results2.getBoolean(\"CARBONY\"));\n coffeebrands.add(coffee1);\n\n }\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"SQL error occured\");\n System.out.println(e);\n }\n\n }", "title": "" }, { "docid": "e042fd812bb9d738f9caba8185aabf3f", "score": "0.47357345", "text": "protected void getChildDetailsFromDB() {\n\n\t\t/*\n * String query_Wards =\n\t\t * \"select users.FirstName,users.MiddleName,users.LastName,users.DateOfBirth,\"\n\t\t * +\n\t\t * \"users.GenderID,users.HealthCardNumber,users.LocalAddressID,gender.DisplayText,\"\n\t\t * + \"children.MCTSID,children.PermanentAddressID,\" +\n\t\t * \"children.IdentificationMark1,children.LocalChildrenID,\" +\n\t\t * \"users.LocalUserID,childreninstitutes.LocalInstituteID,users.LocalContactID, \"\n\t\t * + \"childreninstitutes.RollNumber,childreninstitutes.ClassID,\" +\n\t\t * \"childreninstitutes.SectionID,\" +\n\t\t * \"childreninstitutes.AdmissionNumber,childreninstitutes.AdmissionDate,users.CasteID,users.ReligionID, \"\n\t\t * +\n\t\t * \"users.AadharNumber,institutes.InstituteTypeId,users.HealthCardNumber,\"\n\t\t * +\n\t\t * \"users.RationCardNumber,children.PWDCardNumber,children.HasDisability,\"\n\t\t * +\n\t\t * \"childrenparents.LocalUserID as parentID from users inner join children on children.LocalUserID=users.LocalUserID \"\n\t\t * + \"inner join gender on gender.GenderID=users.GenderID \" +\n\t\t * \"inner join childrenparents on childrenparents.LocalChildrenID=children.LocalChildrenID \"\n\t\t * +\n\t\t * \" inner join institutes on institutes.LocalInstituteID=childreninstitutes.LocalInstituteID \"\n\t\t * +\n\t\t * \"inner join childreninstitutes on childreninstitutes.LocalChildrenID=children.LocalChildrenID where children.LocalChildrenID='\"\n\t\t * + childID + \"'\";\n\t\t */\n\n String query = \"select users.FirstName,users.MiddleName,users.LastName,users.DateOfBirth,\"\n + \"users.GenderID,users.HealthCardNumber,users.LocalAddressID,gender.DisplayText,\"\n + \"children.MCTSID,children.LocalPermanentAddressID,\"\n + \"children.IdentificationMark1,children.LocalChildrenID,\"\n + \"users.LocalUserID,children.LocalInstituteID,users.LocalContactID, \"\n + \"children.RollNumber,children.ClassID,children.ChildrenStatusID,\"\n + \"children.SectionID,\"\n + \"children.AdmissionNumber,children.AdmissionDate,users.CasteID,users.ReligionID, \"\n + \"users.AadharNumber,institutes.InstituteTypeId,users.HealthCardNumber,\"\n + \"users.RationCardNumber,children.PWDCardNumber,children.HasDisability\"\n + \" from users inner join children on children.LocalUserID=users.LocalUserID \"\n + \"inner join gender on gender.GenderID=users.GenderID \"\n // +\n // \"inner join childrenparents on childrenparents.LocalChildrenID=children.LocalChildrenID \"\n + \" inner join institutes on institutes.LocalInstituteID=children.LocalInstituteID \"\n // + \" inner join childrenscreening on childrenscreen\"\n // +\n // \"inner join childreninstitutes on childreninstitutes.LocalChildrenID=children.LocalChildrenID \"\n + \"where institutes.IsDeleted!=1 AND children.IsDeleted!=1 AND users.IsDeleted!=1 AND children.LocalChildrenID='\"\n + childID + \"'\";\n // AND childrenscreen.ChildrenScreenStatusID!=3\"\n\n Cursor childCur = dbh.getCursorData(this.getActivity(), query);\n setDataToModel(childCur);\n }", "title": "" }, { "docid": "9cca335f0b52a6f3b5eafb730e5241ed", "score": "0.4731943", "text": "Principal(String id_no,Connection con) throws ClassNotFoundException, SQLException, IOException\n {\n super(id_no,con);\n\n PreparedStatement stmt= con.prepareStatement(\"select distinct (class_name) from student \" +\n \"where id_no IN (select id_no from profile where school=?)\");\n stmt.setString(1, this.getSchool());\n ResultSet rs= stmt.executeQuery();\n\n rs.last();\n int size= rs.getRow();\n rs.beforeFirst();\n class_name=new String[size];\n // subjects=new String[size];\n for(int i=0;i<size;i++)\n {\n rs.next();\n // subjects[i]=rs.getString(\"subject_name\");\n class_name[i]= rs.getString(\"class_name\");\n }\n\n\n\n\n stmt= con.prepareStatement(\"select id_no from account where designation=? AND id_no IN (select id_no from profile where school=?)\");\n stmt.setString(1, \"teacher\");\n stmt.setString(2, this.getSchool());\n\n rs= stmt.executeQuery();\n\n rs.last();\n size= rs.getRow();\n rs.beforeFirst();\n teachers=new String[size];\n // subjects=new String[size];\n for(int i=0;i<size;i++)\n {\n rs.next();\n // subjects[i]=rs.getString(\"subject_name\");\n teachers[i]= rs.getString(\"id_no\");\n }\n\n }", "title": "" }, { "docid": "1f343054abca1e356f5c745c5e05b5df", "score": "0.4730762", "text": "@Override\n\tpublic List<AssignRoutePOJO> getAssignRouteDetails() {\n\t\tList<AssignRoutePOJO> list=new ArrayList<>();\n\t\ttry {\n\t\t\tpstmt=connection.prepareStatement(\"SELECT assignroute_master.id , assignroute_master.vehicle_id , assignroute_master.route_id , vehicle_master.vehicle_no , route_master.route_name FROM ((assignroute_master INNER JOIN vehicle_master ON assignroute_master.vehicle_id = vehicle_master.id ) INNER JOIN route_master ON assignroute_master.route_id = route_master.id );\");\t\t\t\n\t\t\t//pstmt=connection.prepareStatement(\"select driver_master.id,driver_master.vehicle_id, vehicle_master.vehicle_no , driver_master.name , driver_master.temp_addrs , driver_master.perm_addrs , driver_master.dob , driver_master.phone_no , driver_master.license_no from driver_master INNER JOIN vehicle_master ON driver_master.vehicle_id = vehicle_master.id ;\");\n\t\t\tResultSet rs= pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tAssignRoutePOJO assignPOJO=new AssignRoutePOJO();\n\t\t\t\tassignPOJO.setId(rs.getInt(\"id\"));\n\t\t\t\tassignPOJO.setVeh_id(rs.getInt(\"vehicle_id\"));\n\t\t\t\tassignPOJO.setRoute_id(rs.getInt(\"route_id\"));\n\t\t\t\tassignPOJO.setVeh_no(rs.getString(\"vehicle_no\"));\n\t\t\t\tassignPOJO.setRoute_name(rs.getString(\"route_name\"));\n\t\t\t\tlist.add(assignPOJO);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "389e21948a63b2963661420f161f513d", "score": "0.47243285", "text": "public static void main(String[] args) {\n\n\n User u = new User(\"divam\" , \"qwerty\" , \"1231\" , 100 );\n u.save();\n\n u = new User(\"qq\" , \"qq\" , \"qq\" , 100 );\n u.save();\n\n\n Developer d = new Developer(\"qq\" , \"qq\" , \"qq\" , 100 );\n d.save();\n\n\n TestForm.init();\n TestForm.startForm();\n\n\n /*\n Downloaded.initTable();\n User.initTable();\n Ratings.initTable();\n Category.initTable();\n Interested.initTable();\n\n Downloaded d = new Downloaded(\"crossy\",\"hvk\");\n d.save();\n\n Category i = new Category(\"11ef2es\" , \"dating\" , \"social\");\n i.save();\n\n \tUser u = new User(\"divam\" , \"dbhebfbeh\" , \"1231\");\n \tu.save();\n\n Ratings r = new Ratings(4 , \"tamatar\" , \"patata\");\n r.save();\n\n Interested in = new Interested(\"hvk\",\"ohho\");\n in.save();\n \n // to get All the stuff\n ArrayList<Interested> dd = Interested.getAll();\n for (Interested pp:dd)\n {\n System.out.println(pp.userId);\n System.out.println(pp.interest);\n }\n \n // to get All the stuff\n ArrayList<Downloaded> dd = Downloaded.getAll();\n for (Downloaded pp:dd)\n {\n System.out.println(pp.appId);\n System.out.println(pp.userId);\n }\n\n // to get All the stuff\n ArrayList<Category> tt = Category.getAll();\n for (Category zz:tt)\n {\n System.out.println(zz.categoryId);\n System.out.println(zz.title);\n System.out.println(zz.parent);\n }\n\n // to get All the stuff\n ArrayList<Ratings> rr = Ratings.getAll();\n for (Ratings ss:rr)\n {\n System.out.println(ss.rating);\n System.out.println(ss.appId);\n System.out.println(ss.userId);\n }\n\n \t// to get All the stuff\n \tArrayList<User> dd = User.getAll();\n \tfor( User uu : dd)\n \t{\n \t\tSystem.out.println(uu.name);\n \t\tSystem.out.println(uu.userId);\n \t}\n */\n\n \t// DMManager.testDB();\n // get(\"/hello\", (req, res) -> \"Hello World\");\n\n\n\n }", "title": "" }, { "docid": "047a2bc78ede8530f04872ee238734f7", "score": "0.47217116", "text": "private static SchoolClass rowToClasspart(ResultSet resultSet)\n\t\t\tthrows SQLException {\n\t\tint classID = resultSet.getInt(1);\n\t\tint courseID = resultSet.getInt(2);\n\t\tString dept = resultSet.getString(3);\n\t\tint courseNumber = resultSet.getInt(4);\n\t\tString courseName = resultSet.getString(5);\n\t\tint units = resultSet.getInt(6);\n\n\t\tCourse course = new Course(courseID);\n\t\tcourse.departmentID = dept;\n\t\tcourse.courseNumber = courseNumber;\n\t\tcourse.courseName = courseName;\n\t\tcourse.numberOfUnits = units;\n\n\t\tSchoolClass res = new SchoolClass(classID);\n\t\tres.course = course;\n\n\t\treturn res;\n\t}", "title": "" }, { "docid": "9a978fc8a92f3a7acc8e03d6c8b9d069", "score": "0.47177476", "text": "@Override\n\tpublic void saveObject(TableObject table) {\n\t\t\n\t}", "title": "" }, { "docid": "22c55afffa9ebae02d9292a05a709e34", "score": "0.47138983", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<AddScore> selectStudentByCourse(String courseName,Long teacherNumber) {\n\t\tSystem.out.println(\"select student info by course start!\");\n\t\tString sql=\"select new Student(s.studentNumber,s.studentName) from Student s join s.courseSelector c join c.glesson g where g.courseName='\"\n\t\t\t\t+ courseName + \"' and g.teacherNumber=\"+teacherNumber;\n\t\t\n\t\tList<Student> studentList=new ArrayList<Student>();\n\t\ttry{\n\t\tstudentList = getHibernateTemplate().find(sql);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString sql2=\"from Score s where s.courseName='\"+courseName+\"' and s.teacherNumber=\"\n\t\t\t\t+teacherNumber;\n\t\tList<Score> scoreList=new ArrayList<Score>();\n\t\ttry{\n\t\tscoreList = getHibernateTemplate().find(sql2);\n\t\tSystem.out.println(\"sql exeuted!\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<AddScore> list = new ArrayList<AddScore>();\n\n\t\tSystem.out.println(studentList.isEmpty());\n\t\tSystem.out.println(scoreList.isEmpty());\n\t\tfor(Student student:studentList)\n\t\t{\n\t\t\tfor(Score score:scoreList)\n\t\t\t{\n\t\t\t\tif(student.getStudentNumber()==score.getStudentNumber())\n\t\t\t\t{\n\t\t\t\t\tAddScore addScore = new AddScore();\n\t\t\t\t\taddScore.setBasePoint(score.getBasePoint());\n\t\t\t\t\taddScore.setCourseName(score.getCourseName());\n\t\t\t\t\taddScore.setScore(score.getScore());\n\t\t\t\t\taddScore.setScoreId(score.getScoreId());\n\t\t\t\t\taddScore.setStudentName(student.getStudentName());\n\t\t\t\t\taddScore.setStudentNumber(score.getStudentNumber());\n\t\t\t\t\taddScore.setTeacherNumber(score.getTeacherNumber());\n\t\t\t\t\tlist.add(addScore);//......ÎÒºÜÎÞÓï\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//getHibernateTemplate().load(Student.class, new Long(70));\n\t\tSystem.out.println(\"sql exeuted!\");\n\t\treturn list;\n\t}", "title": "" }, { "docid": "489b349b0cdcb869035d95126a371027", "score": "0.47068265", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //RecargoCompra\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tRecargoCompra entity = new RecargoCompra();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=RecargoCompraDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=RecargoCompraDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,RecargoCompraDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Inventario.RecargoCompra.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\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\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseRecargoCompra(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "3750f500f83bb6397f1293f9b772003e", "score": "0.47030845", "text": "public void addJoin(String table, String as, String leftfield, String rightfield, short joinType) {\n\t\taddJoin(table, as, joinType, Arrays.asList(new Pair<String, String>(leftfield, rightfield)));\n\t}", "title": "" }, { "docid": "5f86fd25c2b3367df7f6c50fccd40078", "score": "0.46915415", "text": "abstract protected void createDetails();", "title": "" }, { "docid": "4dac65bcc1c0988bbc07e0fbec1b0248", "score": "0.46903417", "text": "void joinedTable(TableType type, BigDecimal bigBlind, List<Player> players);", "title": "" }, { "docid": "89bb409f1c6d44df3f0eb20176b4f9f5", "score": "0.46859893", "text": "@Override\n public Home mapRow(ResultSet rs) {\n try {\n //create object with data from database\n int id = rs.getInt(\"id\");\n String type = rs.getString(\"type\");\n String title = rs.getString(\"title\");\n String imgLink = rs.getString(\"imgLink\");\n String content = rs.getString(\"Content\");\n String author = rs.getString(\"author\");\n String createDate = formatDate(\"dd-MM-yyyy\", rs.getString(\"createDate\"));\n Home home = new Home(id, type, title, imgLink, content, author, createDate);\n\n return home;\n } catch (SQLException e) {\n System.out.println(\"Can't get Data from database,Some fied error\");\n return null;\n }\n }", "title": "" }, { "docid": "9b16b4b4c71a29be4b68f623ab510408", "score": "0.46849898", "text": "private void insertData() {\r\n\r\n medicamento = factory.manufacturePojo(MedicamentoEntity.class);\r\n medicamento.setId(1L);\r\n medicamento.setFarmacias(new ArrayList<>());\r\n em.persist(medicamento);\r\n\r\n for (int i = 0; i < 3; i++) {\r\n FarmaciaEntity entity = factory.manufacturePojo(FarmaciaEntity.class);\r\n entity.setMedicamentos(new ArrayList<>());\r\n entity.getMedicamentos().add(medicamento);\r\n em.persist(entity);\r\n data.add(entity);\r\n medicamento.getFarmacias().add(entity);\r\n }\r\n }", "title": "" }, { "docid": "0262af51a5963da23b97a6f9d4a3ede4", "score": "0.46849668", "text": "join createjoin();", "title": "" }, { "docid": "b6957fea8c7619777c7f07ae4848a859", "score": "0.46814165", "text": "@Transactional\n\t@Override\n\tpublic int insert(Classroom record) {\n\t\tint i = classroomMapper.insert(record);\n//\t\tSchedule schedule = new Schedule();\n//\t\tschedule.setClassroom(record);\n//\t\tint j = scheduleMapper.insert(schedule);\n\t\treturn i;\n\t}", "title": "" }, { "docid": "5b8f8fbba08193db81e8a07a37157fe9", "score": "0.4679794", "text": "private void init() {\n\t\tCity banglore = new City(\"Banglore\");\n\t\tCity Hyderabad = new City(\"Hyderabad\");\n\t\tcityRepo.save(banglore);\n\t\tcityRepo.save(Hyderabad);\n\t\t\n\t //defining categories\n\t\tCategory appliances=new Category(\"Applicance\");//category:appliances\n\t\tcatRepo.save(appliances);\n\t\tCategory furniture= new Category(\"Furnitures\");//category:furniture\n\t\t\n\t\tCategory vehicles = new Category(\"Vehicles\");//category:vehicle\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//creating some sample products database which will be mapped with our categories using many to one relationship\n\t\tProduct bed= new Product(\"Single Bed\", \"Single Bed Alpha 6X3\", 159.00, 837.00, 20.00,\"6*5\", 0, 4, \"https://www.google.com/imgres?\");\n\t\t\n\t Product scooty= new Product(\"Activa\", \"4 wheeler\",700, 500, 15.5, \"scooty\", 0, 3,\"http:localhost://image1\");\n\t \n\t Product almirah= new Product(\"Godreg Almirah\", \"containing four doors with one locker\", 300, 500, 10, \"4*4 \", 0, 8, \"c:/users/imag2\");\n\t \n\t \n\t \n\t //adding the products to our category :Furniture\n\t Set<Product> productsFurniture = new HashSet<Product>();\n\t productsFurniture.add(bed);\n\t productsFurniture.add(almirah);\n\t furniture.setProducts(productsFurniture);\n\t catRepo.save(furniture);//persisting the furniture\n\t \n\t //adding the products to our category :Vehicle\n\t Set<Product> productsVehicle = new HashSet<Product>();\n\t productsVehicle.add(scooty);\n\t vehicles.setProducts(productsVehicle);\n\t catRepo.save(vehicles);//persisting the vehicle\n\t \n\t //since it's bidirectional, we are mapping the products to their appropriate category\n\t scooty.setCategory(vehicles);\n\t almirah.setCategory(furniture);\n\t bed.setCategory(furniture);\n\t \n\t \n\t \n\t \n\t /*persisting the products in the last because\n\t the foreign key in product table will refer to \n\t the primary key of the category database*/\n\t proRepo.save(bed);\n\t proRepo.save(almirah);\n\t proRepo.save(scooty);\n\t \n\t //saving the products which are being on rent in city:banglore\n\t Set<Product> productsBanglore = new HashSet<Product>();\n\t productsBanglore.add(bed);\n\t productsBanglore.add(almirah);\n\t banglore.setProduct(productsBanglore);\n\t cityRepo.save(banglore);\n\t \n\t //saving the products which are being on rent in city:hyderabad\n\t Set<Product> productsHyd = new HashSet<Product>();\n\t productsHyd.add(scooty);\n\t Hyderabad.setProduct(productsHyd);\n\t\tcityRepo.save(Hyderabad);\n\n\t}", "title": "" }, { "docid": "8828442f2fe0e590a1ab68080613cbc3", "score": "0.4679329", "text": "private void bindData() {\n\t\tMedicinedao Medicinedao = new Medicinedao();\n\n\t\tList<Medicine> resultSet = Medicinedao.getRecords(new Medicine());\n\t\tfor (Medicine doc : resultSet) {\n\t\t\tmedicines.add(doc);\n\t\t}\n\n\t\tmedicineTable.setItems(medicines);\n\n\t}", "title": "" }, { "docid": "93aba8bdf2e167c46ce72d49f27ca4e4", "score": "0.46737665", "text": "@Override\n\tpublic void joinCustomer(CustomerDTO cus) {\n\t\t\n\t}", "title": "" }, { "docid": "1e862aeb25f6746c470c0de1c3af6096", "score": "0.46716943", "text": "public CategoryBO mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\n\t\t\tCategoryBO category=new CategoryBO();\n\t\t\t//System.out.println(category);\n\t\t\tcategory.setCategory_Id(rs.getString(1));\n\t\t\tcategory.setCategory_Name(rs.getString(2));\n\t\t\tcategory.setSuper_id(rs.getString(3));\n\t\t\t\n\t\t\tSystem.out.println(category);\n\t\t\treturn category;\n\t\t}", "title": "" }, { "docid": "49479fdd50b2026073bed97b754a2f44", "score": "0.4670014", "text": "public void associateIdDataV1(){\n\t\tidAssoData = new HashMap<>();\n\t\tDatabaseTreatment newConnection = null;\n\t\tList<String> messages = new ArrayList<>();\n\t\t//ConnectionDatabase newConnection = new ConnectionDatabase();\n\t\tmessages.add(\"\\n--- Select id line from clean ---\\n\");\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = ConnectionDatabase.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tnewConnection = new DatabaseTreatment(statement);\n\t\t\tString sqlID = \"SELECT * FROM Workflow.Clean_\" + this.getUuid() + \" WHERE UUID_=\\\"\" + this.getUuid() + \"\\\";\";\n\t\t\tmessages.addAll(newConnection.executeSQLcommand(\"executeQuery\", sqlID));\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t//System.out.println(sqlID);\n\t\t//--- Create DarwinCoreInput table ---\n\t\t//messages.addAll(newConnection.executeSQLcommand(\"executeQuery\", sqlID));\n\t\tList<String> resultats = newConnection.getResultatSelect();\n\n\t\ttry {\n\t\t\tif(statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tfor(int i = 0 ; i < resultats.size() ; i++){\n\t\t\tString id_ = resultats.get(i).split(\",\")[0];\n\t\t\tString line [] = resultats.get(i).split(\",\");\n\t\t\tList<String> infos = new ArrayList<>();\n\t\t\tfor(int j = 1 ; j < line.length ; j++){\n\t\t\t\tinfos.add(line[j]);\n\t\t\t}\n\t\t\tidAssoData.put(id_, infos);\n\n\t\t}\n\t\t//System.out.println(idAssoData);\n\t}", "title": "" }, { "docid": "edf6298819100745644862120ee7df5a", "score": "0.46695122", "text": "public static void loadMotor(){\n //instance hanya dibuat untuk keperluan input ke hashmap\n Matic matic=new Matic();\n matic.setId(\"1\");//asalnya turunan dari kelas Motor\n hashMotor.put(matic.getId(),matic);\n\n Sport sport=new Sport();\n sport.setId(\"2\");\n hashMotor.put(sport.getId(),sport);\n }", "title": "" }, { "docid": "5b36ebb065665e1422fa15aa7987fc6d", "score": "0.46600062", "text": "private void insertData() {\r\n\r\n examenMedico = factory.manufacturePojo(ExamenMedicoEntity.class);\r\n examenMedico.setId(1L);\r\n examenMedico.setOrdenesMedicas(new ArrayList<>());\r\n em.persist(examenMedico);\r\n\r\n for (int i = 0; i < 3; i++) {\r\n OrdenMedicaEntity entity = factory.manufacturePojo(OrdenMedicaEntity.class);\r\n entity.setExamenesMedicos(new ArrayList<>());\r\n entity.getExamenesMedicos().add(examenMedico);\r\n em.persist(entity);\r\n data.add(entity);\r\n examenMedico.getOrdenesMedicas().add(entity);\r\n }\r\n }", "title": "" }, { "docid": "0ba0e347d87f42a5c31f330729d5db70", "score": "0.46570635", "text": "public String insertEnquiryRecord(StudentEntity enquiryEntity);", "title": "" }, { "docid": "d459135e5bde90bd2cbb61f54a1b211a", "score": "0.46545133", "text": "@Override\n\tpublic void importDetail(Map<String, Object> data) {\n\t\titemChgDetailDao.importDetail(data);\n\t}", "title": "" }, { "docid": "69ca3d217155da22898048f961a17af4", "score": "0.4653318", "text": "private void UpploadData() {\n FIREBASE.MDATA.child(\"Comment\")\n .child(class_comment.Categories)\n .child(class_comment.productID)\n .push()\n .setValue(new classComment(class_comment.productID,\n class_comment.Categories,\n class_comment.productName,\n Manhinh_Login.userlogin.getName_user(),\n class_comment.Star,\n class_comment.Comment));\n }", "title": "" }, { "docid": "8f1af20f52430662583b19809fdec4dc", "score": "0.46525782", "text": "public List<CategoryBO> getCategoryDetails(){\n\t \n\t String query=\"select * from Category1 where Super_Id=999\";\n\t \n\treturn jt.query(query, new RowMapper<CategoryBO>(){\n\n\t\tpublic CategoryBO mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tCategoryBO category=new CategoryBO();\n\t\t\t//System.out.println(category);\n\t\t\tcategory.setCategory_Id(rs.getString(1));\n\t\t\tcategory.setCategory_Name(rs.getString(2));\n\t\t\tcategory.setSuper_id(rs.getString(3));\n\t\t\t\n\t\t\tSystem.out.println(category);\n\t\t\treturn category;\n\t\t}\n\t\t \n\t });\n\t\n\t}", "title": "" }, { "docid": "3001f0b248e0d37e24b5c74fe8cc8ad5", "score": "0.46483335", "text": "public boolean AgregarGalpon(int idGalpon, String empRut, String recintoGalpon, String manzanaGalpon, String descripcionGalpon, Integer fonoGalpon){\n\n \n session = NewHibernateUtil.getSessionFactory().openSession();\n //datos de empresa\n tx = session.beginTransaction(); \n Empresa emp = (Empresa)session.get(Empresa.class,empRut);\n g.setIdGalpon(idGalpon);\n g.setEmpresa(emp);\n g.setRecintoGalpon(recintoGalpon);\n g.setManzanaGalpon(manzanaGalpon);\n g.setDescripcionGalpon(descripcionGalpon);\n g.setFonoGalpon(fonoGalpon);\n g.setEstadoGalpon(\"H\");\n\n Set galponset = new HashSet(0);\n galponset.add(g);\n\n emp.setGalpons(galponset);\n\n\n \n session.saveOrUpdate(emp);\n session.saveOrUpdate(g);\n tx.commit();\n session.close();\n return true;\n}", "title": "" }, { "docid": "5daa895a0626f773e1ae905e9b92105d", "score": "0.46412304", "text": "protected FL_Entity makeEntity(Map<String, String> colToType, String primaryKeyCol, Map<String, String> entityMap) {\r\n\t\tFL_Entity entity = new FL_Entity();\r\n\t\tentity.setTags(new ArrayList<FL_EntityTag>()); // none for now...\r\n\r\n\t\tList<FL_Property> properties = new ArrayList<FL_Property>();\r\n\t\tentity.setProperties(properties);\r\n\r\n\t\tString uid = setProperties(properties, colToType, primaryKeyCol, entityMap);\r\n\r\n\t\tentity.setUid(uid);\r\n\t\treturn entity;\r\n\t}", "title": "" }, { "docid": "e41ce7e767f360715d55dd4e48d03a38", "score": "0.4630324", "text": "public ResultSet getClassStudent(int classCode) throws Exception {\n statement = connection.createStatement();\n sql = \"select * from students inner join enroll using(idno) where classcode=\"+(classCode)+\";\";\n return statement.executeQuery(sql);\n }", "title": "" }, { "docid": "3d56f8bc7d33d65e7d3609c15865b269", "score": "0.46296406", "text": "public void setJoin(String id, String persistent, String key, String myKey, String condition)\n\t{\n\t\tjoins.put(id, new JoinInfo(persistent, key, myKey, condition));\n\t}", "title": "" }, { "docid": "297f282af5aa3941c9bccbed772adf68", "score": "0.46151516", "text": "public void create1(Matiere obj) {\n\t\tConfiguration con = new Configuration();\n\t\tcon.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory SF = con.buildSessionFactory();\n\t\tSession session = SF.openSession();\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n\t\t\t\n\t\t\t\tsession.save(obj);\n\t\t\t\ttx.commit();}catch(Exception e){\n\t\t\t\t\tif(tx != null){\n\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t}}finally{\n\t\t\t\t\t\tsession.close();\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "f75c3e03e8cda1bd4260ef1a6c14ca45", "score": "0.46095416", "text": "private void carregaMap() {\r\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tQuery q = session.createQuery(\"from Planos\");\r\n\r\n\t\tArrayList<Planos> planosList = (ArrayList<Planos>) q.list();\r\n\r\n\t\tfor (Iterator iterator = planosList.iterator(); iterator.hasNext();) {\r\n\t\t\tPlanos auxPlanos = (Planos) iterator.next();\r\n\r\n\t\t\tplanos.put(auxPlanos.getPlanoDescricao(), auxPlanos);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df0db98295a1a7b2fa0aadf995dc38f4", "score": "0.4603015", "text": "abstract protected void addRelationalItems(Record addedRecord);", "title": "" }, { "docid": "ef797418a8880d79708b3d7bd48a6068", "score": "0.4595664", "text": "public JoinInfo(String persistent, String key, String myKey, String condition)\n\t\t{\n\t\t\tthis.persistent = persistent;\n\t\t\tthis.key = key;\n\t\t\tthis.myKey = myKey;\n\t\t\tthis.condition = condition;\n\t\t}", "title": "" }, { "docid": "d34d1b2eeb57bdd5181034c1a7c6c623", "score": "0.45946267", "text": "public String getJOIN_TYPE()\r\n {\r\n return JOIN_TYPE;\r\n }", "title": "" }, { "docid": "6647a025b077edfdde39f839a9d0bee0", "score": "0.4593264", "text": "private void loadResultSetMapObject(ResultSet rs, Object object) throws IllegalArgumentException, IllegalAccessException {\n\t\tClass<?> clazz = object.getClass();\n\t\tSet<Field> fieldsCol = RefectionUtil.findFields(clazz, Col.class);\n\t\tSet<Field> fieldsId = RefectionUtil.findFields(clazz, Id.class);\n\t\tfor(Field fieldId : fieldsId) {\n\t\t\tId id = fieldId.getAnnotation(Id.class);\n\t\t\tif(id == null || id.name().equals(\"\")) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tfieldId.setAccessible(true);\n\t\t\t\t\tObject value = rs.getObject(id.name());\n\t\t\t\t\tClass<?> type = fieldId.getType();\n\t\t\t\t\tvalue = type.cast(value);\n\t\t\t\t\tfieldId.set(object, value);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(Field fieldCol: fieldsCol) {\n\t\t\tCol col = fieldCol.getAnnotation(Col.class);\n\t\t\tif(col == null || col.name().equals(\"\")) {\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tfieldCol.setAccessible(true);\n\t\t\t\t\tObject value = rs.getObject(col.name());\n\t\t\t\t\tClass<?> type = fieldCol.getType();\n\t\t\t\t\tvalue = type.cast(value);\n\t\t\t\t\tfieldCol.set(object, value);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "31973b03174e3e3cda6e73e20000acf2", "score": "0.45924446", "text": "private void initializeDBFieldRelations() {\n\tdbFieldRelations = new HashMap();\n\ttry {\n\t\tdbFieldRelations.put(ivjTextNIDID,DamInfo.class.getField(\"nidid\"));\n\t\tdbFieldRelations.put(ivjTextDamName,DamInfo.class.getField(\"dam_name\"));\n\t\tdbFieldRelations.put(ivjTextOtherDamName,DamInfo.class.getField(\"other_dam_name\"));\n\t\tdbFieldRelations.put(ivjTextFormerDamName,DamInfo.class.getField(\"dam_former_name\"));\n\t\tdbFieldRelations.put(ivjTextStateID,DamInfo.class.getField(\"stateid\"));\n\t\tdbFieldRelations.put(ivjTextRiver,DamInfo.class.getField(\"river\"));\n\t\tdbFieldRelations.put(ivjTextCounty,DamInfo.class.getField(\"county\"));\n\t\tdbFieldRelations.put(ivjTextLatitude,DamInfo.class.getField(\"latitude_dam\"));\n\t\tdbFieldRelations.put(ivjTextLongitude,DamInfo.class.getField(\"longitude_dam\"));\n\t dbFieldRelations.put(ivjTextElevation,DamInfo.class.getField(\"elev\"));\n\t\tdbFieldRelations.put(ivjTextTopoMap,DamInfo.class.getField(\"topo_map\"));\n\t\tdbFieldRelations.put(ivjTextReturnFlowRegion,DamInfo.class.getField(\"return_flow_region\"));\n\t\tdbFieldRelations.put(ivjTextDrainageArea,DamInfo.class.getField(\"drainage_area\"));\n\t\tdbFieldRelations.put(ivjTextPrebreakAvailable,DamInfo.class.getField(\"prebreak_avail\"));\n\t\tdbFieldRelations.put(ivjTextComments,DamInfo.class.getField(\"comments\"));\n\t\tdbFieldRelations.put(ivjTextUpdated,DamInfo.class.getField(\"updated\"));\n\t\tdbFieldRelations.put(ivjTextHSA,DamInfo.class.getField(\"hsa\"));\n\t\tdbFieldRelations.put(ivjTextRFC,DamInfo.class.getField(\"rfc\"));\n\n\t\tdbFieldRelations.put(ivjTextDamType,DamInfo.class.getField(\"dam_type\"));\n\t\tdbFieldRelations.put(ivjTextDamHeight,DamInfo.class.getField(\"dam_height\"));\n\t\tdbFieldRelations.put(ivjTextStructuralHeight,DamInfo.class.getField(\"structural_height\"));\n\t\tdbFieldRelations.put(ivjTextHydraulicHeight,DamInfo.class.getField(\"hydraulic_height\"));\n\t\tdbFieldRelations.put(ivjTextNIDHeight,DamInfo.class.getField(\"nid_height\"));\n\t\tdbFieldRelations.put(ivjTextNIDStorage,DamInfo.class.getField(\"nid_storage\"));\n\t\tdbFieldRelations.put(ivjTextMaxStorage,DamInfo.class.getField(\"max_storage\"));\n\t\tdbFieldRelations.put(ivjTextNormalStorage,DamInfo.class.getField(\"normal_storage\"));\n\t\tdbFieldRelations.put(ivjTextDamLength,DamInfo.class.getField(\"dam_length\"));\n\t\tdbFieldRelations.put(ivjTextSurfaceArea,DamInfo.class.getField(\"surface_area\"));\n\t\tdbFieldRelations.put(ivjTextMaxDischarge,DamInfo.class.getField(\"max_discharge\"));\n\t\tdbFieldRelations.put(ivjTextVolumeMaterial,DamInfo.class.getField(\"volume_dam\"));\n\t\tdbFieldRelations.put(ivjTextCore,DamInfo.class.getField(\"core\"));\n\t\tdbFieldRelations.put(ivjTextFoundation,DamInfo.class.getField(\"foundation\"));\n\t\tdbFieldRelations.put(ivjTextSpillwayType,DamInfo.class.getField(\"spillway_type\"));\n\t\tdbFieldRelations.put(ivjTextSpillwayWidth,DamInfo.class.getField(\"spillway_width\"));\n\t\tdbFieldRelations.put(ivjTextOutletGates,DamInfo.class.getField(\"outlet_gates\"));\n\t\tdbFieldRelations.put(ivjTextNumberOfLocks,DamInfo.class.getField(\"number_locks\"));\n\t\tdbFieldRelations.put(ivjTextLengthOfLocks,DamInfo.class.getField(\"length_locks\"));\n\t\tdbFieldRelations.put(ivjTextWidthOfLocks,DamInfo.class.getField(\"width_locks\"));\n\n\t\tdbFieldRelations.put(ivjTextOwnerName,DamInfo.class.getField(\"owner_name\"));\n\t\tdbFieldRelations.put(ivjTextOwnerType,DamInfo.class.getField(\"owner_type\"));\n\t\tdbFieldRelations.put(ivjTextYearCompleted,DamInfo.class.getField(\"year_completed\"));\n\t\tdbFieldRelations.put(ivjTextYearModified,DamInfo.class.getField(\"year_modified\"));\n\t\tdbFieldRelations.put(ivjTextPurposes,DamInfo.class.getField(\"purposes\"));\n\t\tdbFieldRelations.put(ivjTextDamDesigner,DamInfo.class.getField(\"dam_designer\"));\n\t\tdbFieldRelations.put(ivjTextPrivateOnFederalLand,DamInfo.class.getField(\"private_on_federal\"));\n\t\tdbFieldRelations.put(ivjTextDownstreamHazard,DamInfo.class.getField(\"downstream_hazard\"));\n\t\tdbFieldRelations.put(ivjTextEmergencyAction,DamInfo.class.getField(\"emerg_action_plan\"));\n\t\tdbFieldRelations.put(ivjTextInspectionDate,DamInfo.class.getField(\"inspection_date\"));\n\t\tdbFieldRelations.put(ivjTextInspectionFrequency,DamInfo.class.getField(\"inspection_freq\"));\n\t\tdbFieldRelations.put(ivjTextStateRegulated,DamInfo.class.getField(\"st_reg_dam\"));\n\t\tdbFieldRelations.put(ivjTextStateRegulatoryAgency,DamInfo.class.getField(\"st_reg_agency\"));\n\t\tdbFieldRelations.put(ivjTextFederalFunding,DamInfo.class.getField(\"fed_funding\"));\n\t\tdbFieldRelations.put(ivjTextFederalDesign,DamInfo.class.getField(\"fed_design\"));\n\t\tdbFieldRelations.put(ivjTextFederalConstruction,DamInfo.class.getField(\"fed_construction\"));\n\t\tdbFieldRelations.put(ivjTextFederalRegulatoryAgency,DamInfo.class.getField(\"fed_regulatory\"));\n\t\tdbFieldRelations.put(ivjTextFederalInspection,DamInfo.class.getField(\"fed_inspection\"));\n\t\tdbFieldRelations.put(ivjTextFederalOperation,DamInfo.class.getField(\"fed_operation\"));\n\t\tdbFieldRelations.put(ivjTextFederalOwner,DamInfo.class.getField(\"fed_owner\"));\n\t\tdbFieldRelations.put(ivjTextFederalOther,DamInfo.class.getField(\"fed_other\"));\n\t\tdbFieldRelations.put(ivjTextSourceAgency,DamInfo.class.getField(\"source_agency\"));\n\t\tdbFieldRelations.put(ivjTextSectionTR,DamInfo.class.getField(\"section_t_r\"));\n\t} catch (NoSuchFieldException e) {\n\t\tJOptionPane.showMessageDialog(this,\"Error: Could not associate database fields with GUI elements.\");\n\t}\n}", "title": "" }, { "docid": "f806da4d7a91014e4e3ec95f20716114", "score": "0.45923093", "text": "recordSection createrecordSection();", "title": "" }, { "docid": "f8f72372267c7fd57a5e355e65143cc0", "score": "0.45811966", "text": "public OrderDetail() {\n order=new Order();\n medicine=new Medicine();\n }", "title": "" }, { "docid": "a82ff958630a608b35a5cf0fc71fadfe", "score": "0.45803595", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //TipoSectorEcono\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tTipoSectorEcono entity = new TipoSectorEcono();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=TipoSectorEconoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=TipoSectorEconoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,TipoSectorEconoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Cartera.TipoSectorEcono.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\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\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseTipoSectorEcono(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "05780eed3f5e56b3ba97b1fc3120edf7", "score": "0.45795476", "text": "@Override\r\n protected Object valueFromRowInternalWithJoin(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey parentCacheKey, AbstractSession executionSession, boolean isTargetProtected) throws DatabaseException {\r\n\r\n Object value = this.containerPolicy.containerInstance();\r\n // Extract the primary key of the source object, to filter only the joined rows for that object.\r\n Object sourceKey = this.descriptor.getObjectBuilder().extractPrimaryKeyFromRow(row, executionSession);\r\n // If the query was using joining, all of the result rows by primary key will have been computed.\r\n List<AbstractRecord> rows = joinManager.getDataResultsByPrimaryKey().get(sourceKey);\r\n // If no 1-m rows were fetch joined, then get the value normally,\r\n // this can occur with pagination where the last row may not be complete.\r\n if (rows == null) {\r\n return valueFromRowInternal(row, joinManager, sourceQuery, executionSession);\r\n }\r\n int size = rows.size();\r\n if (size > 0) {\r\n // A nested query must be built to pass to the descriptor that looks like the real query execution would,\r\n // these should be cached on the query during prepare.\r\n ObjectLevelReadQuery nestedQuery = prepareNestedJoinQueryClone(row, rows, joinManager, sourceQuery, executionSession);\r\n \r\n // A set of target cache keys must be maintained to avoid duplicates from multiple 1-m joins.\r\n Set targetPrimaryKeys = new HashSet();\r\n \r\n ArrayList targetObjects = null;\r\n ArrayList<AbstractRecord> targetRows = null;\r\n boolean shouldAddAll = this.containerPolicy.shouldAddAll();\r\n if (shouldAddAll) {\r\n targetObjects = new ArrayList(size);\r\n targetRows = new ArrayList(size);\r\n }\r\n \r\n // For each rows, extract the target row and build the target object and add to the collection.\r\n ObjectBuilder referenceBuilder = getReferenceDescriptor().getObjectBuilder();\r\n JoinedAttributeManager referenceJoinManager = null;\r\n if (nestedQuery.hasJoining()) {\r\n referenceJoinManager = nestedQuery.getJoinedAttributeManager();\r\n }\r\n for (int index = 0; index < size; index++) {\r\n AbstractRecord sourceRow = rows.get(index);\r\n AbstractRecord targetRow = sourceRow;\r\n // The field for many objects may be in the row,\r\n // so build the subpartion of the row through the computed values in the query,\r\n // this also helps the field indexing match.\r\n targetRow = trimRowForJoin(targetRow, joinManager, executionSession);\r\n \r\n // Partial object queries must select the primary key of the source and related objects.\r\n // If the target joined rows in null (outerjoin) means an empty collection.\r\n Object targetKey = referenceBuilder.extractPrimaryKeyFromRow(targetRow, executionSession);\r\n if (targetKey == null) {\r\n // A null primary key means an empty collection returned as nulls from an outerjoin.\r\n return this.indirectionPolicy.valueFromRow(value);\r\n }\r\n \r\n // Only build/add the target object once, skip duplicates from multiple 1-m joins.\r\n if (!targetPrimaryKeys.contains(targetKey)) {\r\n nestedQuery.setTranslationRow(targetRow);\r\n targetPrimaryKeys.add(targetKey);\r\n Object targetObject = referenceBuilder.buildObject(nestedQuery, targetRow, referenceJoinManager);\r\n Object targetMapKey = this.containerPolicy.buildKeyFromJoinedRow(targetRow, joinManager, nestedQuery, parentCacheKey, executionSession, isTargetProtected);\r\n nestedQuery.setTranslationRow(null);\r\n if (targetMapKey == null){\r\n if (shouldAddAll) {\r\n targetObjects.add(targetObject);\r\n targetRows.add(targetRow);\r\n } else {\r\n this.containerPolicy.addInto(targetObject, value, executionSession);\r\n }\r\n } else {\r\n this.containerPolicy.addInto(targetMapKey, targetObject, value, executionSession);\r\n }\r\n }\r\n }\r\n if (shouldAddAll) {\r\n this.containerPolicy.addAll(targetObjects, value, executionSession, targetRows, nestedQuery, parentCacheKey, isTargetProtected);\r\n }\r\n }\r\n return this.indirectionPolicy.valueFromRow(value);\r\n }", "title": "" }, { "docid": "a3025a25efefefa14343e260d773c28c", "score": "0.45755112", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //EstadoDetalleCliente\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEstadoDetalleCliente entity = new EstadoDetalleCliente();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EstadoDetalleClienteDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EstadoDetalleClienteDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EstadoDetalleClienteDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Cartera.EstadoDetalleCliente.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\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\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEstadoDetalleCliente(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "74abbf6b9507a80a0da7a670c54b4c01", "score": "0.45749658", "text": "@Override\n\tpublic void hienthids() throws SQLException, ClassNotFoundException {\n\t\t\n\t}", "title": "" }, { "docid": "d17d68f299dece8494027fcc34ff2985", "score": "0.457365", "text": "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Consignatario\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tConsignatario entity = new Consignatario();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=ConsignatarioDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=ConsignatarioDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,ConsignatarioDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Cartera.Consignatario.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\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\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseConsignatario(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "title": "" }, { "docid": "6c6a419b0d95233a515c87dbcaf4aeb0", "score": "0.4573188", "text": "Table112 create(Table112 table112);", "title": "" }, { "docid": "1e81dcd202b3c7dbb0fddcfc7c8f9b48", "score": "0.457184", "text": "private void addJoin(String tableName, InfoReportField linkColumn, InfoLookup lookup, boolean isMandatory) {\n\t\t//\tIs Mandatory\n\t\tif(isMandatory)\n\t\t\tm_from.append(INNER_JOIN).append(\" \");\n\t\telse\n\t\t\tm_from.append(LEFT_JOIN).append(\" \");\n\t\t//\tTable Name\n\t\tm_from.append(lookup.TableName).append(\" \").append(AS).append(\" \").append(lookup.TableAlias).append(\" \");\n\t\t//\tOn\n\t\tm_from.append(ON).append(\"(\")\n\t\t\t\t\t\t\t.append(lookup.TableAlias).append(POINT).append(lookup.KeyColumn[0])\n\t\t\t\t\t\t\t.append(EQUAL).append(tableName).append(POINT).append(linkColumn.ColumnName);\n\t\tif(linkColumn.DisplayType == DisplayType.LIST) {\n\t\t\tm_from.append(\" \").append(AND).append(\" \")\n\t\t\t\t\t\t\t\t.append(lookup.TableAlias).append(POINT)\n\t\t\t\t\t\t\t\t.append(InfoLookup.REFERENCE_TN).append(\"_ID\")\n\t\t\t\t\t\t\t\t.append(EQUAL).append(linkColumn.AD_Reference_Value_ID);\n\t\t}\n\t\t//\tAdd finish\n\t\tm_from.append(\")\").append(\" \");\n\t\t//\tAdd Translation to List\n\t\tif(linkColumn.DisplayType == DisplayType.LIST\n\t\t\t\t&& !m_IsBaseLanguage) {\n\t\t\tif(isMandatory)\n\t\t\t\tm_from.append(INNER_JOIN).append(\" \");\n\t\t\telse\n\t\t\t\tm_from.append(LEFT_JOIN).append(\" \");\n\t\t\t//\tTable Name\n\t\t\tm_from.append(lookup.TableName).append(InfoLookup.TR_TABLE_SUFFIX).append(\" \")\n\t\t\t\t\t\t\t\t.append(AS).append(\" \").append(lookup.TableAlias).append(InfoLookup.TR_TABLE_SUFFIX).append(\" \");\n\t\t\t//\tOn\n\t\t\tm_from.append(ON).append(\"(\")\n\t\t\t\t\t\t\t\t.append(lookup.TableAlias).append(InfoLookup.TR_TABLE_SUFFIX)\n\t\t\t\t\t\t\t\t.append(POINT).append(InfoLookup.REF_LIST_TN).append(\"_ID\")\n\t\t\t\t\t\t\t\t.append(EQUAL).append(lookup.TableAlias)\n\t\t\t\t\t\t\t\t.append(POINT).append(InfoLookup.REF_LIST_TN).append(\"_ID \")\n\t\t\t\t\t\t\t\t.append(AND).append(\" \").append(lookup.TableAlias).append(InfoLookup.TR_TABLE_SUFFIX)\n\t\t\t\t\t\t\t\t.append(POINT).append(InfoLookup.AD_LANGUAGE_CN)\n\t\t\t\t\t\t\t\t.append(EQUAL).append(\"'\").append(m_AD_Language).append(\"'\").append(\")\").append(\" \");\n\t\t}\n\t\t//\tAdd external Join\n\t\tif(lookup.TableJoin != null\n\t\t\t\t&& lookup.TableJoin.length() >0) {\n\t\t\tm_from.append(\" \").append(lookup.TableJoin);\n\t\t}\n\t}", "title": "" }, { "docid": "59d522b362eff3d7d80c9c01347b2624", "score": "0.45716545", "text": "public static void main(String[] args) {\n Configuration cfg = new Configuration();\n cfg.configure();\n SessionFactory factory = cfg.buildSessionFactory();\n Session session = factory.openSession();\n\n //get [We know the primary key here pk is id ] for grabbing single object\n Student student = session.get(Student.class,1002);\n System.out.println(student);\n Student studenta = session.get(Student.class,1009);\n System.out.println(studenta);\n //get returns null when object is not found\n //Use get when you are not sure the object exists or not\n //Performance is not good compare to \"Load\" involve several database call\n\n //Load same as get but (returns except when object not found )\n //If you are sure the the object exists\n //Works faster -> Can access proxy lazy initialization\n Address ad = (Address)session.load(Address.class,2);\n System.out.println(ad.getStreet());\n Address ada = (Address)session.load(Address.class,6);\n System.out.println(ada.getStreet());\n\n\n\n\n session.close();\n factory.close();\n }", "title": "" }, { "docid": "b3674f30be1f6b24393492479753b85a", "score": "0.4565799", "text": "@Override\r\n\tpublic void homeupdate(JoinOne vo) throws Exception {\n\t\tsqlSession.update(namespace +\".homeupdate\",vo);\r\n\t}", "title": "" } ]
9c2a2ed476d4035ebb10efd20bbe69db
Returns true if field cycleTime is set (has been assigned a value) and false otherwise
[ { "docid": "f8d32e030491952d8dbac1ae1ffc16b5", "score": "0.8079888", "text": "public boolean isSetCycleTime() {\n return EncodingUtils.testBit(__isset_bitfield, __CYCLETIME_ISSET_ID);\n }", "title": "" } ]
[ { "docid": "69d294d321ff1a73ba154b000f744bd8", "score": "0.65323323", "text": "public boolean isSetDealTime() {\n\t\treturn this.dealTime != null;\n\t}", "title": "" }, { "docid": "92da5af6a7bc5fbe598e4db39957ea12", "score": "0.65104747", "text": "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "title": "" }, { "docid": "e56a9de26747b6c2a161509365719754", "score": "0.6499199", "text": "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "title": "" }, { "docid": "e56a9de26747b6c2a161509365719754", "score": "0.6499199", "text": "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "title": "" }, { "docid": "e56a9de26747b6c2a161509365719754", "score": "0.6499199", "text": "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "title": "" }, { "docid": "f63eb9a1404dde3b59817174538af801", "score": "0.6472566", "text": "boolean isSetConnectTime();", "title": "" }, { "docid": "37670ed38a1b8c59680de4399d9cef0b", "score": "0.6438147", "text": "public boolean isSetUpdateTime() {\n\t\treturn this.updateTime != null;\n\t}", "title": "" }, { "docid": "77304bfe446d340e617630d52ccd29e7", "score": "0.6409857", "text": "public boolean isSetValidTime() {\n return this.validTime != null;\n }", "title": "" }, { "docid": "4b561311e7c6c5a635606ca3960f8847", "score": "0.6384743", "text": "public boolean isSetTime() {\n return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID);\n }", "title": "" }, { "docid": "88c9501afdc1b3ac629439dc4c93b3bf", "score": "0.63088644", "text": "public boolean isSetTimes() {\n return EncodingUtils.testBit(__isset_bitfield, __TIMES_ISSET_ID);\n }", "title": "" }, { "docid": "66fb30ed6329c450272920c6dd40c8a1", "score": "0.6251998", "text": "public boolean isSetTimeToLive() {\n return this.__isset.timeToLive;\n }", "title": "" }, { "docid": "80eef3c71fda5d42ff8a9f0cea5ed431", "score": "0.6207828", "text": "public boolean hasValidTime () {\n return isValidTime;\n }", "title": "" }, { "docid": "ac0e1fe1950bdb76bbfb7f4051c67159", "score": "0.61958724", "text": "public boolean isSetPaytime() {\n return this.paytime != null;\n }", "title": "" }, { "docid": "f80ca6e32abb0a21627bf1ddb378af93", "score": "0.6189228", "text": "public boolean isSetActiveTime() {\n return this.activeTime != null;\n }", "title": "" }, { "docid": "39fa946ccdd51985f0d73de71303f570", "score": "0.6183817", "text": "public boolean isSetStart_time() {\n return this.start_time != null;\n }", "title": "" }, { "docid": "845ab9446aff388b062c21bec4b53cb4", "score": "0.6183807", "text": "public boolean isSetCreate_time() {\n return this.create_time != null;\n }", "title": "" }, { "docid": "8fb210428305603c2fda28919b6c4c2d", "score": "0.6175432", "text": "public boolean isSetPresentTime() {\n return this.presentTime != null;\n }", "title": "" }, { "docid": "9c180bf8b3536e467b3b53672c4a9d0d", "score": "0.61298555", "text": "boolean isInCycle() {\r\n return inCycle;\r\n }", "title": "" }, { "docid": "fef8ace9bb7de010ebd9a69de57f2b98", "score": "0.6123364", "text": "boolean isSetMovementEndTime();", "title": "" }, { "docid": "fef8ace9bb7de010ebd9a69de57f2b98", "score": "0.6123364", "text": "boolean isSetMovementEndTime();", "title": "" }, { "docid": "957736845d2c3778c7520933bb3ab4bb", "score": "0.6108087", "text": "public boolean isSetActualStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTUALSTARTTIME_ISSET_ID);\n }", "title": "" }, { "docid": "7d2792287a63c706e8a37e8cfff40784", "score": "0.61057234", "text": "boolean hasChangeTime();", "title": "" }, { "docid": "e932291187bde57dfd3ec8fdc39889bb", "score": "0.60987794", "text": "public boolean isSetReportTime() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __REPORTTIME_ISSET_ID);\n }", "title": "" }, { "docid": "37d93455392bc5c8b59daaa0d722c48d", "score": "0.60655206", "text": "boolean isSetTotalTime();", "title": "" }, { "docid": "ff2ae9862ae3d1e631c0f57c15c2dfa9", "score": "0.60545135", "text": "public boolean isSetTimeCondition() {\n return EncodingUtils.testBit(__isset_bitfield, __TIMECONDITION_ISSET_ID);\n }", "title": "" }, { "docid": "a46e9e7b1e07ac4f88dee93c0bee25f1", "score": "0.6052097", "text": "boolean isSetTotalexectime();", "title": "" }, { "docid": "ac4950f4ea3c7e69dbf6271471bf4269", "score": "0.6043331", "text": "boolean isSetMovementStartTime();", "title": "" }, { "docid": "55ffd6a056e5f0be1cb0b749dd85bae3", "score": "0.6041647", "text": "public boolean isSetAttributeTimeValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ATTRIBUTETIMEVALUE$14) != 0;\r\n }\r\n }", "title": "" }, { "docid": "f58929804bf3564878fbdf230618f004", "score": "0.6041304", "text": "public boolean isSetStartTime() {\r\n return this.startTime != null;\r\n }", "title": "" }, { "docid": "419da9e540b3ce6a5f72799b6a81b551", "score": "0.60231394", "text": "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "title": "" }, { "docid": "419da9e540b3ce6a5f72799b6a81b551", "score": "0.60231394", "text": "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "title": "" }, { "docid": "419da9e540b3ce6a5f72799b6a81b551", "score": "0.60231394", "text": "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "title": "" }, { "docid": "6e2219fb75eb3e0f2e18089044b0c403", "score": "0.5992681", "text": "public boolean isSetPayTime() {\n\t\treturn this.payTime != null;\n\t}", "title": "" }, { "docid": "54dc8965502b57aff86a738ab4f6c379", "score": "0.59723866", "text": "public boolean isSetCreateTime() {\n\t\treturn this.createTime != null;\n\t}", "title": "" }, { "docid": "22746a381c6ce0c702d55fecb9a5afa9", "score": "0.5961974", "text": "public boolean isSetExpireTime() {\n\t\treturn this.expireTime != null;\n\t}", "title": "" }, { "docid": "ce7f8870fa99441639850608d19e516f", "score": "0.5934184", "text": "public boolean isSetStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STARTTIME$32) != null;\r\n }\r\n }", "title": "" }, { "docid": "5ccbac5a662c16ec67c4d867f00bd1ce", "score": "0.58930176", "text": "public boolean isSetDuration() {\n return EncodingUtils.testBit(__isset_bitfield, __DURATION_ISSET_ID);\n }", "title": "" }, { "docid": "9d2c6e7da6c998845a45f202cc9b76a3", "score": "0.58876956", "text": "public boolean isSetEnd_time() {\n return this.end_time != null;\n }", "title": "" }, { "docid": "a38ccbffca062f60abc877a253674bc3", "score": "0.5879951", "text": "public boolean isSetOpenTime() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __OPENTIME_ISSET_ID);\n }", "title": "" }, { "docid": "42e4273c36fce3382e1a7bd34d090d05", "score": "0.5879417", "text": "public boolean isSetTimeCreated() {\n return this.timeCreated != null;\n }", "title": "" }, { "docid": "3e9fa19c16134b04c5f083ac5d004cf6", "score": "0.5862991", "text": "public boolean hasTime(){\n return time.length()>0;\n }", "title": "" }, { "docid": "deaf786e500a79ae1b56c986d3d2e99d", "score": "0.5853783", "text": "@Override\n\tpublic final void setTime(long cycle)\n\t{\n\t\tdm.setTime(cycle);\n\t}", "title": "" }, { "docid": "3ac19767ca2d7d40c57bc52b2c297a2a", "score": "0.58520204", "text": "public boolean isSetProcessTimes() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PROCESSTIMES_ISSET_ID);\n }", "title": "" }, { "docid": "9f36bb3a356f98e6b81cb5b940c260bf", "score": "0.5845284", "text": "public boolean isSetNumberOfTimes() {\n return EncodingUtils.testBit(__isset_bitfield, __NUMBEROFTIMES_ISSET_ID);\n }", "title": "" }, { "docid": "eb23d3e5d524bd55a375f4ca847ba2ab", "score": "0.5845174", "text": "public boolean isSetAttributeDateTimeValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ATTRIBUTEDATETIMEVALUE$4) != 0;\r\n }\r\n }", "title": "" }, { "docid": "cdf0955d78e1b0bc36d6ba7999fbdef0", "score": "0.5844457", "text": "boolean isSetReadTime();", "title": "" }, { "docid": "9955ae650d8127efa035267477026b34", "score": "0.58394337", "text": "public boolean isSetEndTime() {\r\n return this.endTime != null;\r\n }", "title": "" }, { "docid": "f7a9e90fce13e5d04728e65ce8a1510c", "score": "0.58273566", "text": "public boolean isSetCreateTime() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID);\n }", "title": "" }, { "docid": "82e959a0b0871e2a05ee597b98435ccb", "score": "0.5812398", "text": "private boolean userHasSetTime()\n {\n CharSequence charSequence = mAlarmTimeValue.getText();\n if(charSequence != null)\n if( !String.valueOf(charSequence).isEmpty()) {\n return true;\n }\n else\n return false;\n else\n return false;\n }", "title": "" }, { "docid": "59720ac5b396fc4abfccf23173b3f1fc", "score": "0.58029056", "text": "@java.lang.Override\n public boolean hasSyncCycleCompletedEventInfo() {\n return instance.hasSyncCycleCompletedEventInfo();\n }", "title": "" }, { "docid": "2237fdbfbf3043c177f7482a0831ffbd", "score": "0.57887113", "text": "boolean hasBsReconnCenterTime();", "title": "" }, { "docid": "14df41b41034cb5a924a7d4bbae035ce", "score": "0.5780009", "text": "public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }", "title": "" }, { "docid": "54a6052c546b9eefde748f7ac9b31756", "score": "0.5778704", "text": "public boolean isSetActualEndTime() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTUALENDTIME_ISSET_ID);\n }", "title": "" }, { "docid": "7332252ae77761bb25f0d846d1a94ab3", "score": "0.57755953", "text": "public boolean isSetLoadedTime() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LOADEDTIME_ISSET_ID);\n }", "title": "" }, { "docid": "eb5f9091b00e65b4073ba56296919be2", "score": "0.577205", "text": "@java.lang.Override\n public boolean hasSyncCycleCompletedEventInfo() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "b4a078aff52bdce314ea95295ccbe293", "score": "0.57694936", "text": "public boolean isSetFailureTime() {\n return this.failureTime != null;\n }", "title": "" }, { "docid": "3b2cc43e1facb0f6544b263c561195d7", "score": "0.5768583", "text": "public boolean hasCurtime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "3b2cc43e1facb0f6544b263c561195d7", "score": "0.5768583", "text": "public boolean hasCurtime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "0d674fdcf474b004ff92b01c7947e3c0", "score": "0.5763985", "text": "public boolean hasDayTimeTo() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "0d674fdcf474b004ff92b01c7947e3c0", "score": "0.57624984", "text": "public boolean hasDayTimeTo() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "35b637ee60f3875cec8fe5dd4dfa4791", "score": "0.57620966", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "6ca681db56b75ea8fa24320308278dfe", "score": "0.576062", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "0f0703e60d8b6b4ee0186cd3ce272af8", "score": "0.5756919", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "2b5bae985d27d45b8a4228e9c0d951fd", "score": "0.57565045", "text": "public boolean isSetDailyRecurrencePatternType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DAILYRECURRENCEPATTERNTYPE$0) != 0;\n }\n }", "title": "" }, { "docid": "230ca9f4525df97942daea46530ee3e2", "score": "0.5753342", "text": "public boolean isSetInsertTime() {\n return this.insertTime != null;\n }", "title": "" }, { "docid": "d80804948d3461bfc91010f9e9372818", "score": "0.575198", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "633bc492900b920b8a8d7b7568d47b73", "score": "0.5751927", "text": "public boolean hasDayTimeTo() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "1b85e83060812f720543b1f1d1221c90", "score": "0.574928", "text": "public boolean hasUpdateTime() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "633bc492900b920b8a8d7b7568d47b73", "score": "0.5748824", "text": "public boolean hasDayTimeTo() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "1786f1bd080bb55cbeb6d42d90f40c89", "score": "0.57446927", "text": "public boolean isSetLastUpdateTime() {\n return this.lastUpdateTime != null;\n }", "title": "" }, { "docid": "74dc373fca61b9ae5e4df66f12786bd5", "score": "0.5736198", "text": "boolean hasCurTime();", "title": "" }, { "docid": "a86e574ac2203766ad2fa790d70ff988", "score": "0.57330436", "text": "public boolean isSetStartTimeRegistration() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIMEREGISTRATION_ISSET_ID);\n }", "title": "" }, { "docid": "a4e9324afbb4500f549f5ed1bb232dd7", "score": "0.57253915", "text": "public boolean hasCurtime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "a4e9324afbb4500f549f5ed1bb232dd7", "score": "0.57253915", "text": "public boolean hasCurtime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "e3f567781859e4480fd96d002cc3e57a", "score": "0.5724993", "text": "public boolean hasCycle() {\n this.cycleFound=false;\n for (int i = 0; i < v; i++) {\n //create DFS trees for each vertex\n\n if (!visited[i] && dfsCycle(i, -1)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "2220053eb05ac35b022e7e71b62ecae7", "score": "0.57181364", "text": "public boolean isSetSuspendTime() {\n return this.suspendTime != null;\n }", "title": "" }, { "docid": "3ebe8de7d136dd30d43836a8ba46e417", "score": "0.5716648", "text": "public boolean isSetSendTime() {\n\t\treturn this.sendTime != null;\n\t}", "title": "" }, { "docid": "405996d53f267077dad3263dce13549b", "score": "0.571081", "text": "@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }", "title": "" }, { "docid": "405996d53f267077dad3263dce13549b", "score": "0.571081", "text": "@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }", "title": "" }, { "docid": "843d0e923c0d7ed11f566391f49b6334", "score": "0.57093555", "text": "public boolean hasDateAndTime() {\n return dateAndTime_ != null;\n }", "title": "" }, { "docid": "3b78db5d41243a80c37a90a77df1de88", "score": "0.57089454", "text": "boolean hasChangeSurvivalTime();", "title": "" }, { "docid": "176948a4626482c2212de26bdd1d2341", "score": "0.56946224", "text": "public boolean isSetDuty() {\r\n return this.duty != null;\r\n }", "title": "" }, { "docid": "6ddb7a2f939fde61a3982e6f0e39aa74", "score": "0.5693808", "text": "public boolean hasUpdateTime() {\n return updateTimeBuilder_ != null || updateTime_ != null;\n }", "title": "" }, { "docid": "6f305c2207dee1453aabaff93c6b6fe6", "score": "0.5693725", "text": "boolean hasTimeTo();", "title": "" }, { "docid": "6c7716f8126832841641aa5fb1dceeee", "score": "0.56919473", "text": "public boolean isSetDeliveredTime() {\n return EncodingUtils.testBit(__isset_bitfield, __DELIVEREDTIME_ISSET_ID);\n }", "title": "" }, { "docid": "5b24e800dd1e1f73c5ac13cf920686da", "score": "0.56834763", "text": "public boolean hasMatchStartTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "f461c9d36b7fe2ae4f66c2c0413511a0", "score": "0.5683305", "text": "public boolean hasMatchStartTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "5bd15a79f59d66daffa954f6a2128b22", "score": "0.56825405", "text": "public boolean hasStartTime() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "056100c97565fa9677dcf0d338851a8c", "score": "0.56604815", "text": "public boolean hasLeaseTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "7bc56ad2c9d446a90fe99a86fc3b176e", "score": "0.5656149", "text": "public boolean isSetCreatedTime() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATEDTIME_ISSET_ID);\n }", "title": "" }, { "docid": "77a029741e67f37855066bb5dd8a4ad9", "score": "0.5654143", "text": "public boolean isSetUpdateDateTime() {\n return EncodingUtils.testBit(__isset_bitfield, __UPDATEDATETIME_ISSET_ID);\n }", "title": "" }, { "docid": "f02c75fe052dce03289c9a745b62e57a", "score": "0.5653947", "text": "public boolean hasLeaseTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "1c5c2250c651ff252b28267d6b88530b", "score": "0.5652297", "text": "public boolean isSetEndTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ENDTIME$34) != null;\r\n }\r\n }", "title": "" }, { "docid": "e392ea8170bdd276e19ee3cc463f1788", "score": "0.5651723", "text": "boolean hasCurrentStateTime();", "title": "" }, { "docid": "4546a89a114a26f06c628b6994658567", "score": "0.56511027", "text": "public boolean hasStartTime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "4546a89a114a26f06c628b6994658567", "score": "0.5651078", "text": "public boolean hasStartTime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "6ee7c9dc79179e16c6961b048798903a", "score": "0.5650295", "text": "public boolean hasTimeTo() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "0eac944545c97286969ae5896738515f", "score": "0.5648403", "text": "public boolean isSetTimeStamp() {\n return this.timeStamp != null;\n }", "title": "" }, { "docid": "6fdacf825c594a1ae407337437a81b11", "score": "0.56469154", "text": "public boolean hasStartTime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "679e8290421fcc3b71d8600ded5868e9", "score": "0.563859", "text": "boolean isSetTimeTaken();", "title": "" } ]
29b528fd9564444ff2caf8c951562452
Project: CloudStation FileName: AlbumComponent.java Description: Creator: ldy
[ { "docid": "5cdbec732fef506ae669147edc290d79", "score": "0.0", "text": "@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = {\n ActivityModule.class, AlbumDetailModule.class\n})\npublic interface AlbumDetailComponent {\n void inject(AlbumDetailFragment mFragment);\n}", "title": "" } ]
[ { "docid": "b42e3daf4062d74a5f3a57241fb4a6c9", "score": "0.6486045", "text": "public Album(com.wrapper.spotify.model_objects.specification.Album sAlbum) {\n\t this.sAlbum = sAlbum;\n\t}", "title": "" }, { "docid": "45b3dfc9edba1153a5ebc4892d4ffdb0", "score": "0.64648503", "text": "public void createAlbum(String albumName);", "title": "" }, { "docid": "f00abac5d3ecc08068f5c72d5d9fbc38", "score": "0.63046616", "text": "public Album(String name){\n this.name = name;\n this.numPhotos = 0;\n this.oldDate = Calendar.getInstance();\n this.newDate = Calendar.getInstance();\n }", "title": "" }, { "docid": "453d2b9104e98ef72479a5c99774e3e4", "score": "0.6300073", "text": "public void loadAlbumArt(){\n }", "title": "" }, { "docid": "d88b869fee21b5c4a5a64deb1ed599d3", "score": "0.62770176", "text": "public void setAlbum(Album album) {\n\t\tthis.album = album;\n\t}", "title": "" }, { "docid": "d88b869fee21b5c4a5a64deb1ed599d3", "score": "0.62770176", "text": "public void setAlbum(Album album) {\n\t\tthis.album = album;\n\t}", "title": "" }, { "docid": "22a28b1571f1b69da31b1d24ab64a0d9", "score": "0.62034726", "text": "public Album(String albumName, int albumID, int artistID, String artLocation){\n this.albumName = albumName;\n this.albumID = albumID;\n this.artistID = artistID;\n this.artLocation = artLocation;\n }", "title": "" }, { "docid": "ced41e66a5704f5ad274f6c6f0449426", "score": "0.61884457", "text": "Album(String title, String artist, int year)\r\n {\r\n this.title = title;\r\n this.artist = artist;\r\n this.year = year;\r\n this.rank = -1;\r\n }", "title": "" }, { "docid": "db6f50d2e458162f4071b2451ce61717", "score": "0.61555386", "text": "public Album()\n {\n this(\"Defult Title\", \"Defult Artist\", Genre.Unknown, \"01/01/1980\");\n }", "title": "" }, { "docid": "19ab57458896251494cbc592e01cab57", "score": "0.6055784", "text": "public FAME()\n {\n AlbumName = \"F.A.M.E\";\n songs = 11;\n }", "title": "" }, { "docid": "fff198435b30a3dad89b13f511ef56e6", "score": "0.59785724", "text": "public Album(String pTitle, String pAlbumArtist) \r\n\t{\r\n\t\tassert pTitle != null && pAlbumArtist != null;\r\n\t\taTitle = pTitle;\r\n\t\taArtist = pAlbumArtist;\r\n\t}", "title": "" }, { "docid": "ba5004f3fde93a1b89193b240e7ce239", "score": "0.5958837", "text": "public Album( String name ){\r\n\t\tthis.name = name;\r\n\t\tphotos = new HashSet<Photo>();\r\n\t}", "title": "" }, { "docid": "38c39ac27db488dcbba8667f570ec240", "score": "0.5943595", "text": "public interface IMainPresenter {\n void getFBAlbums();\n\n void getAlbumPicture(final Album album);\n}", "title": "" }, { "docid": "00c89480ce5d287d1175c754efc488f6", "score": "0.59301025", "text": "public String getAlbumNome() {\n return albumNome;\n }", "title": "" }, { "docid": "39deface8b50d551a2895cc48984e4f3", "score": "0.59290063", "text": "public Album getAlbum() {\n\t\treturn this.album;\n\t}", "title": "" }, { "docid": "0fd55932fc3a215a33fe73132c16aebc", "score": "0.59221894", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Album \" + getName() + \" by \" + getArtistsNames() + \" with id \" + getAlbumID();\n\t}", "title": "" }, { "docid": "99358716a127b44320f8e2a400f70943", "score": "0.5900717", "text": "public void setAlbumNome(String albumNome) {\n this.albumNome = albumNome;\n }", "title": "" }, { "docid": "32df181f66bb4b335c762ed13ec854e1", "score": "0.589705", "text": "Album(String title, String artist, int year, int rank)\r\n {\r\n this.title = title;\r\n this.artist = artist;\r\n this.year = year;\r\n this.rank = rank;\r\n }", "title": "" }, { "docid": "f106fdb24bb7ba6da55cb4e43d233744", "score": "0.58915526", "text": "public boolean addAlbum(String albumName);", "title": "" }, { "docid": "b5c46581abb8f3df7982c8462982d02a", "score": "0.5881773", "text": "public String toString(){\r\n\t\treturn \"The album, \" + name + \", has \" + photos.size() + \" photos.\";\r\n\t}", "title": "" }, { "docid": "244582cac015bd29ce464d4a6adced85", "score": "0.5851507", "text": "public String getAlbumTitle() {\n return mAlbumTitle;\n }", "title": "" }, { "docid": "d264fad1b36261eb53947d838d52389c", "score": "0.584461", "text": "public Album(String title, String artist, Genre genre,\n String releaseDate)\n {\n this.title = title;\n this.artist = artist;\n this.genre = genre;\n this.releaseDate = new Date(releaseDate);\n this.isAvailable = true;\n }", "title": "" }, { "docid": "71f7ddd5b69947b2ec8c9f1c17a7007f", "score": "0.5829779", "text": "public String getMediaAlbum() {\n return mediaAlbum;\n }", "title": "" }, { "docid": "f580dd116d1ba15a1535faf1c37826ea", "score": "0.58151597", "text": "private void iniciarComponentes()\n {\n this.setLayout(new BorderLayout(8, 4));\n reproductorMusica.addAlbum(new Album(\"Reputation\", 2017, new ImageIcon(\"PracticaFinal/caratulas/HOMECOMING.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n reproductorMusica.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n\n artistaEnReproduccion.addAlbum(albumEnReproduccion);\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n artistaEnReproduccion.addAlbum(new Album(\"Melodrama\", 2017, new ImageIcon(\"PracticaFinal/caratulas/MELODRAMA.jpg\")));\n\n reproductorMusica.addArtista(artistaEnReproduccion);\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n reproductorMusica.addArtista(new Artista(\"Taylor Swift\", new ImageIcon(\"PracticaFinal/caratulas/REPUTATION.jpg\")));\n\n\n this.iniciarPanelPrincipal(\" Albumes\", reproductorMusica.getAlbumes());\n this.setPanelSuperior();\n this.setPanelIzquierdo();\n this.setPanelInferior();\n }", "title": "" }, { "docid": "8828ca82a9fe16050db78826fbf1ba9f", "score": "0.58136165", "text": "private void publishAlbum(final Album album) {\n \n Artwork.Builder builder = new Artwork.Builder();\n builder.title(album.getTitle());\n builder.byline(album.getArtist().getName());\n builder.imageUri(Uri.parse(album.getCoverUrl() + \"?size=\" + Constants.COVER_SIZE));\n builder.token(Long.toString(album.getId()));\n \n if (album.getLink() != null) {\n builder.viewIntent(new Intent(Intent.ACTION_VIEW,\n Uri.parse(album.getLink())));\n }\n \n // Publish the artwork\n publishArtwork(builder.build());\n }", "title": "" }, { "docid": "c25b65f54466796cce3b05ba98f626de", "score": "0.5800978", "text": "public Album(String pTitle) \r\n\t{\r\n\t\tassert pTitle != null;\r\n\t\taTitle = pTitle;\r\n\t}", "title": "" }, { "docid": "6eb184c199c9a0d0845428f8d2eccea2", "score": "0.5800423", "text": "public String toString() {\n return albumName;\n }", "title": "" }, { "docid": "d91c3b1592de8a47a4b01f81943ff858", "score": "0.5681764", "text": "private void processAlbumForm(AlbumForm albumForm) {\n Album res = new Album().setId(albumForm.getId()).setTitle(albumForm.getTitle()).setSongs(new LinkedHashSet<>());\n\n // get file extension\n String extension = albumForm.getFile().getOriginalFilename().substring(albumForm.getFile().getOriginalFilename().lastIndexOf('.'));\n\n // save location\n String filename = String.format(\"%d_%s_%d%s\", albumForm.getId(), albumForm.getTitle(), System.currentTimeMillis(), extension);\n File dest = new File(\"/home/bogdan/SoftwareDesign_Project/cover/\" + filename);\n try {\n albumForm.getFile().transferTo(dest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n res = res.setAuthors(albumForm.getAuthors()).setCoverPath(\"/cover/\" + filename);\n albumRepository.save(res);\n }", "title": "" }, { "docid": "29ce25daebfdc83941cd09eaf8c424ff", "score": "0.5680198", "text": "private String getAlbumName() {\n\t\treturn getString(R.string.album_name);\n\t}", "title": "" }, { "docid": "29ce25daebfdc83941cd09eaf8c424ff", "score": "0.5680198", "text": "private String getAlbumName() {\n\t\treturn getString(R.string.album_name);\n\t}", "title": "" }, { "docid": "90e4ab4f2ab658b11f3e4ce0a1b7c863", "score": "0.56773114", "text": "public void setAlbumId(Integer albumId) {\n this.albumId = albumId;\n }", "title": "" }, { "docid": "217d298ffccb1a1b873ef9dfbe120669", "score": "0.5673356", "text": "public boolean addAlbum(IAlbum a);", "title": "" }, { "docid": "c1a6a85b8dc42367b127402781190bf2", "score": "0.5658885", "text": "public String toString() {\n\t\treturn mSongName + \" (\" + mAlbumName + \")\";\n\t}", "title": "" }, { "docid": "7cf03b41867e73da81a85fd61a46c878", "score": "0.5646762", "text": "public String getAlbumArtist() {\n return albumartist;\n }", "title": "" }, { "docid": "c17b954e8ed5bb415bf5885aa54364d9", "score": "0.56185937", "text": "public void createAlbum(ActionEvent e) {\r\n TextInputDialog dialog = new TextInputDialog();\r\n dialog.initOwner(primaryStage);\r\n dialog.setHeaderText(null);\r\n dialog.setContentText(\"Album name:\");\r\n\r\n Optional<String> result = dialog.showAndWait();\r\n if (!result.isPresent())\r\n return;\r\n Album album = user.addAlbum(result.get().trim().toLowerCase());\r\n if (album == null) {\r\n GeneralMethods.popAlert(\"Invalid or duplicate name.\");\r\n return;\r\n }\r\n for (Photo photo : results)\r\n album.addPhoto(photo);\r\n GeneralMethods.popInfo(\"Created \" + album.getName() + \" with \" + results.size() + \" photos.\");\r\n UserList.writeApp();\r\n }", "title": "" }, { "docid": "fa8855b5a8e193d4bcb676f30f571ca8", "score": "0.56072277", "text": "@Override\r\n public void execute() {\r\n app.addAlbum(guid);\r\n }", "title": "" }, { "docid": "a85038c207ed09705b013b465e1f3d9d", "score": "0.55926067", "text": "private String readAlbum(){\n\t\tif(mp3.getTag()!=null && !Objects.equals(mp3.getTag().getFirst(FieldKey.ALBUM), \"\")){\n\t\t\treturn mp3.getTag().getFirst(FieldKey.ALBUM);\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "b754dc09ba9a83e4569de1ca097ed0d7", "score": "0.55920446", "text": "@Override\r\n\tpublic Album getAlbum() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5b570683e22d57e673baaa5d25e6dca1", "score": "0.5582647", "text": "public static void crearAlbum() {\n\n String nombreArtista;\n\n Album albunNuevo = new Album();\n\n System.out.println(\"Ingrese Nombre del album\");\n\n albunNuevo.nombre = Teclado.nextLine();\n\n System.out.println(\"Ingrese Año\");\n\n albunNuevo.anio = Teclado.nextInt();\n Teclado.nextLine();\n\n System.out.println(\"Ingrese Nombre del Artista\");\n nombreArtista = Teclado.nextLine();\n\n // Se asume que siempre existe, no hace validaciones adicionales\n albunNuevo.artista = ServicioSpookify.buscarArtista(nombreArtista);\n\n ServicioSpookify.albums.add(albunNuevo);\n\n System.out.println(\"Albun creado!\");\n }", "title": "" }, { "docid": "5d30968cbdb411d5be20b105d0f774de", "score": "0.5580397", "text": "public void writeAlbum(Album album) {\n System.out.println(\"in writeAlbum\");\n ObjectOutputStream oos;\n try {\n oos = new ObjectOutputStream(new FileOutputStream(dataDir + File.separator + album.getAlbumName().concat(dataExtension)));\n System.out.println(\"created output stream, about to write object\");\n oos.writeObject(album);\n System.out.println(\"wrote object\");\n oos.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "449a3dbe5bcc3449e86e70e03b6991c0", "score": "0.55716956", "text": "public void setAlbumName(String value) {\n\t\tput(\"album_name\", value);\n\t}", "title": "" }, { "docid": "222814f78e615ba3759e55c9f0a7d791", "score": "0.55508304", "text": "@Override\n\tprotected void picPhotoOrAlbum() {\n\t\tresponseText(\"Hello World picPhotoOrAlbum !\");\n\n\t}", "title": "" }, { "docid": "29e9ac4d0e98df10dd33e6e1bf653e34", "score": "0.5546556", "text": "public Album(String albumID) {\n\t\talbumSongs = new Hashtable<String, Song>();\n\t\tString sql = \"SELECT * FROM album WHERE album_id = '\" + albumID + \"';\";\n\t\tDbUtilities db = new DbUtilities();\n\t\ttry {\n\t\t\tResultSet rs = db.getResultSet(sql);\n\t\t\twhile(rs.next()){\n\t\t\t\tthis.albumID = rs.getString(\"album_id\");\n\t\t\t\tthis.title = rs.getString(\"title\");\n\t\t\t\tthis.releaseDate = rs.getDate(\"release_date\").toString();\n\t\t\t\tthis.coverImagePath = rs.getString(\"cover_image_path\");\n\t\t\t\tthis.recordingCompany = rs.getString(\"recording_company_name\");\n\t\t\t\tthis.numberOfTracks = rs.getInt(\"number_of_tracks\");\n\t\t\t\tthis.pmrcRating = rs.getString(\"PMRC_rating\");\n\t\t\t\tthis.length = rs.getDouble(\"length\");\n\t\t\t\tSystem.out.println(\"Album title from database: \" + this.title);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tErrorLogger.log(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "595ad4429d3e7286f3fac510d21e415d", "score": "0.5544605", "text": "public List<IAlbum> getAlbums();", "title": "" }, { "docid": "3677bdf3d095339b001237ef404ce209", "score": "0.5543338", "text": "public Integer getAlbumId() {\n return albumId;\n }", "title": "" }, { "docid": "86869bd37f44e2f58d828d8268a6efcb", "score": "0.55428654", "text": "public SongLibrary(){\r\n\t\tsongs = new ArrayList<Song>();\r\n\t}", "title": "" }, { "docid": "01adc1bee9bd1cea35a6b82b3c04ea67", "score": "0.5541293", "text": "public Song_Courage(){\n setImage(new GreenfootImage(\"Courage - Haruka Tomatsu\", 20, Color.WHITE, Color.BLACK));\n }", "title": "" }, { "docid": "0edad402f206f3f48d376639335bb484", "score": "0.5540341", "text": "public void setAlbumId(long id){\r\n\t\tthis.albumID=id;\r\n\t}", "title": "" }, { "docid": "ec54103320cfbf3b6b6b0076fc7455e2", "score": "0.5517186", "text": "interface GalleryPresenter {\n void getAlbumsAboveId(ChildInfo childInfo, long id);\n\n void getAlbums(ChildInfo childInfo);\n\n void getRecentDeletedAlbums(ChildInfo childInfo, long id);\n\n void getDeletedAlbums(ChildInfo childInfo);\n\n void onDestroy();\n}", "title": "" }, { "docid": "4666a83fab72a55a47ed983be81b34f7", "score": "0.550415", "text": "private void writeDetails() {\n\t\t\n\t\tAlbum album = new Album();\n\t\t\n\t\tif(textFieldTitle.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the title of the album\");\n\t\t} else {\n\t\t\talbum.setTitle(textFieldTitle.getText());\n\t\t}\n\t\t\n\t\talbum.setGenre(Genre.valueOf(comboBoxGenre.getSelectedItem().toString()));\n\t\t\n\t\tif(textFieldArtist.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the artist name\");\n\t\t} else {\n\t\t\talbum.setArtist(textFieldArtist.getText());\n\t\t}\n\t\t\n\t\tif(textFieldArtist.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the year of release\");\n\t\t} else if(Integer.valueOf(textFieldYear.getText()) < 1000 || Integer.valueOf(textFieldYear.getText()) > 9999) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid year of release\");\n\t\t} else {\n\t\t\talbum.setYear(Integer.valueOf(textFieldYear.getText()));\n\t\t}\t\t\n\t\t\n\t\talbum.setNumberOfSongs(Integer.valueOf((String) comboBoxNoOfSongs.getSelectedItem()));\n\t\t\n\t\talbum.setFormat(Format.valueOf(comboBoxFormat.getSelectedItem().toString()));\n\t\t\n\t\tArtist artist = new Artist(textFieldArtist.getText());\n\t\t\n\t\tList<Single> songs = new ArrayList<Single>();\n\t\tLength length = new Length();\n\t\t\n\t\tfor(int i = 0; i < Integer.valueOf((String) comboBoxNoOfSongs.getSelectedItem()); i++) {\n\t\t\tSingle song = new Single();\n\t\t\tsong.setTitle((String) table.getModel().getValueAt(i, 0));\n\t\t\tsong.setGenre(Genre.valueOf(comboBoxGenre.getSelectedItem().toString()));\n\t\t\tsong.setArtist(textFieldArtist.getText());\n\t\t\tsong.setYear(Integer.valueOf(textFieldYear.getText()));\n\t\t\tsong.setLength(length.calculateReverseLength(Integer.valueOf((String) table.getModel().getValueAt(i, 1)), Integer.valueOf((String) table.getModel().getValueAt(i, 2))));\n\t\t\tsong.setAlbum(textFieldTitle.getText());\n\t\t\t\n\t\t\tsongs.add(song);\n\t\t}\n\t\t\n\t\tMusicDB musicDB = null;\n\t\ttry {\t\t\t\n\t\t\tmusicDB = DBFactory.getMusicDB();\n\t\t\t\n\t\t\tmusicDB.writeAlbum(album, songs, artist);\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// catch any exceptions and log them`\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "11ba3acf6c20235feb39f28443131680", "score": "0.5495923", "text": "public Album getAlbumInfos(String artist, String album) throws RemoteException {\n Album albumGotten = null;\n try{\n albumGotten = (Album) objectRI.lookup(artist + \" \" + album);\n return albumGotten;\n } catch (ClassCastException e) {}\n return null;\n }", "title": "" }, { "docid": "2a199d31ec2cbb5a61771d3ca10dfd4a", "score": "0.5483404", "text": "private static void printAlbums(){\n System.out.println(\"You have: \" + albumArrayList.size() + \" albums in your album array list.\");\n for (int i = 0; i < albumArrayList.size(); i++){\n System.out.println(albumArrayList.get(i).getAlbumName());\n }\n //for readability.\n System.out.println(\"******\");\n }", "title": "" }, { "docid": "5342b7135cf2af725803f2358a845952", "score": "0.5474167", "text": "public Album(String albumName, String bandName) {\n\t\ttitle = albumName;\n\t\tband = bandName;\n\t}", "title": "" }, { "docid": "6fd9a1feb738e99c8bd5e9da0b61f2bb", "score": "0.5468251", "text": "public String getAlbumName() {\n\t\treturn getString(\"album_name\");\n\t}", "title": "" }, { "docid": "a875a44cf066dcfa0fbc0a772d1d2292", "score": "0.54646343", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_album);\n\n /*albumList=ListOfAlbums();*/\n\n ArrayList<Song> songsFile = new ArrayList<Song>();\n File[] files = Environment.getExternalStorageDirectory().listFiles();\n for (File singleFile : files) {\n if (singleFile.isDirectory() && !singleFile.isHidden()) {\n songsFile.addAll(findSongs(singleFile));\n } else {\n if (singleFile.getName().endsWith(\".mp3\")) {\n Song song = new Song();\n MediaMetadataRetriever m = new MediaMetadataRetriever();\n m.setDataSource(singleFile.getPath());\n song.setArtist(m.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST));\n song.setName(singleFile.getName());\n song.setAlbum(m.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM));\n song.setId(m.extractMetadata(MediaMetadataRetriever.METADATA_KEY_NUM_TRACKS));\n song.setDuration(m.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION));\n song.setPath(singleFile.getPath());\n songsFile.add(song);\n }\n }\n }\n\n Album album;\n ArrayList<String> albumNames=new ArrayList<String>();\n for (int i = 0; i < songsFile.size(); i++) {\n if (songsFile.get(i).getAlbum()!=null&&songsFile.get(i).getAlbum().length()>0) {\n\n album = new Album();\n album.setName(songsFile.get(i).getAlbum());\n int count = 0;\n for (Song s : songsFile) {\n if(s.getAlbum()!=null&&s.getAlbum().length()>0)\n {\n if (s.getAlbum().hashCode() == songsFile.get(i).getAlbum().hashCode()) {\n album.getAlbumSongs().add(s);\n album.setNo_Of_Songs(album.getNo_Of_Songs() + 1);\n count++;\n }\n }\n }\n album.setNo_Of_Songs(count);\n\n if (!albumNames.contains(album.getName())) {\n albumNames.add(album.getName());\n albumList.add(album);\n }\n }\n }\n\n AlbumAdaptor albumAdapter = new AlbumAdaptor(AlbumActivity.this, albumList);\n\n albumListView = (ListView) findViewById(R.id.AlbumLV);\n albumListView.setAdapter(albumAdapter);\n albumListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String selectedAlbum = albumList.get(position).getName();\n Util.album = albumList.get(position);\n Toast.makeText(getApplicationContext(), selectedAlbum + \" \" + \"selected.\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), SongActivity.class);\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "7db9c3b8529e9268c1ad0d541cc05151", "score": "0.54612094", "text": "public void parseFile(File pathName)\n {\n MusicDataSource source=MusicDataSource.getInstance();\n TextFileReader fp=new TextFileReader(pathName);\n fp.start();\n\n String line=null;\n\n // Tokens\n String albumToken=\"#ALBUM(\";\n String interpreteToken=\"#INTERPRETE\";\n String imageToken=\"#IMAGE(\";\n String begin=\"#DEBUT_CHANSON();\";\n String titreChanson=\"#TITRE(\";\n String end=\"#FIN_CHANSON();\";\n\n // LP title\n String lpTitle=null;\n // Interpret\n String interpretName=null;\n // Image\n String image=null;\n\n while((line=fp.getNextLine())!=null)\n {\n if (line.equals(begin)) break;\n else if(line.startsWith(albumToken))\n {\n StringTokenizer st=new StringTokenizer(line, \"\\\"\");\n st.nextToken();\n lpTitle=st.nextToken();\n System.out.println(\"LP name [\"+lpTitle+\"]\");\n }\n else if(line.startsWith(interpreteToken))\n {\n StringTokenizer st=new StringTokenizer(line, \"\\\"\");\n st.nextToken();\n interpretName=st.nextToken();\n System.out.println(\"Interpret name [\"+interpretName+\"]\");\n }\n else if(line.startsWith(imageToken))\n {\n StringTokenizer st=new StringTokenizer(line, \"\\\"\");\n st.nextToken();\n image=st.nextToken();\n System.out.println(\"Image [\"+image+\"]\");\n }\n }\n if (lpTitle==null)\n {\n fp.terminate();\n return;\n }\n\n Album a=new Album(null);\n a.setTitle(lpTitle);\n List<Interpret> iList=source.getInterpretDataSource().loadObjectSet(Interpret.NAME_SET,new Object[]{interpretName});\n if ((iList!=null) && (iList.size()>0))\n {\n Interpret interpret=iList.get(0);\n a.setInterpretProxy(new DataProxy<Interpret>(interpret.getPrimaryKey(),source.getInterpretDataSource()));\n }\n else\n {\n Interpret interpret=new Interpret(null);\n interpret.setName(interpretName);\n source.getInterpretDataSource().create(interpret);\n a.setInterpretProxy(new DataProxy<Interpret>(interpret.getPrimaryKey(),source.getInterpretDataSource()));\n }\n a.setImage(image);\n source.getAlbumDataSource().create(a);\n\n // Songs\n String currentSong=null;\n StringBuffer text=new StringBuffer();\n\n while((line=fp.getNextLine())!=null)\n {\n if(line.equals(begin))\n {\n currentSong=null;\n text.setLength(0);\n }\n else if(line.startsWith(titreChanson))\n {\n StringTokenizer st=new StringTokenizer(line, \"\\\"\");\n st.nextToken();\n currentSong=st.nextToken();\n }\n else if(line.equals(end))\n {\n if(currentSong!=null)\n {\n Song song=new Song(null);\n song.setName(currentSong);\n song.setText(text.toString());\n song.setAlbumProxy(new DataProxy<Album>(a.getPrimaryKey(),source.getAlbumDataSource()));\n source.getSongDataSource().create(song);\n currentSong=null;\n text.setLength(0);\n }\n }\n else if(line.equals(imageToken))\n {\n StringTokenizer st=new StringTokenizer(line, \"\\\"\");\n st.nextToken();\n image=st.nextToken();\n System.out.println(\"LP image [\"+image+\"]\");\n }\n else if(!line.startsWith(\"#\"))\n {\n if(currentSong!=null)\n {\n text.append(line);\n text.append(EndOfLine.NATIVE_EOL);\n }\n }\n }\n\n fp.terminate();\n }", "title": "" }, { "docid": "10b791799f11777448cf9a97149e2fcf", "score": "0.5442839", "text": "public void addAlbum(TrackInfo track) {\r\n if (!discography.containsKey(track.getAlbum())) {\r\n discography.put(track.getAlbum(), new Album(track.getAlbum()));\r\n }\r\n discography.get(track.getAlbum()).addSongs(track);\r\n }", "title": "" }, { "docid": "fa89b5ea6e2e795e6f6b9e606c3adedf", "score": "0.543501", "text": "public BibliTest(){\n this.bibli = new Bibli();\n this.bibli.addAlbum(new Album(\"Jazz\"));\n this.bibli.addAlbum(new Album(\"Test\"));\n\n this.bibli.getListeAlbums().get(0).addImage(new Image(\"src/pda/img/test.png\", \"Clément Ignacio\"));\n }", "title": "" }, { "docid": "03f539749498774f07c8be9309e8d958", "score": "0.542065", "text": "public static void main(String[] args) {\n\t\tSong boomboom = new Song(10, \"Party\", \"My XX\", \"HardCore\", \"images/Abc.jpg\");\n\t\t//boomboom.takeSong(10, \"Mr X\", \"Party\", \"HardCore\", \"images/Abc.jpg\");\n\t\tboomboom.setDuration(11);\n\t\tSystem.out.println(boomboom.getDuration());\n\t\t//boomboom.printSong();\n//\t\tboomboom.albumName=\"BOOM \";\n//\t\tboomboom.artistName=\"Mr X\";\n//\t\tboomboom.duration =-20;\n//\t\tSystem.out.println(boomboom.albumName);\n//\t\tSystem.out.println(boomboom.artistName);\n//\t\tSystem.out.println(boomboom.duration);\n\t\tSong bangbang = new Song(7, \"Z\" , \"Mr X \",\"Party Song\",\"images/party.jpg\");\n\t\t//bangbang.isValidate(-7);\n\t\t//bangbang.takeSong(-7, \"Mr Y\", \"Z\", \"Sad Songs\", \"images/sad.jpg\");\n\t\tbangbang.printSong();\n//\t\tbangbang.albumName=\"Bang\";\n//\t\tbangbang.artistName=\"Mr Y\";\n//\t\tSystem.out.println(\"***************************\");\n//\t\tSystem.out.println(bangbang.albumName);\n//\t\tSystem.out.println(bangbang.artistName);\n\n\t}", "title": "" }, { "docid": "51cc29173b0a900fcc0d86bbc52bbcfe", "score": "0.5401522", "text": "private void createUIComponents() {\n imagePanel1 = new ImagePanel();\n }", "title": "" }, { "docid": "0a9a2bb87aaf9a362886abac25694b29", "score": "0.5392559", "text": "abstract ClassName component();", "title": "" }, { "docid": "96a5143a34dff9648a20fac1c1797b05", "score": "0.5387113", "text": "public Artist() {\n }", "title": "" }, { "docid": "a675e8a76e27e3df08fc09c9f8f2ee93", "score": "0.5383871", "text": "public void selectAlbum() {\n\t\tShowUtil.selectAlbum(this, 0);\n\t}", "title": "" }, { "docid": "6404d357991a883fd20e0c592d8755b9", "score": "0.536443", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Log.i(\"SONG NAME:\", album.getChildList().get(i).getTitle());\n }", "title": "" }, { "docid": "8205a72101e0ec6ef282e994d21cd765", "score": "0.5360069", "text": "public String getAlbum() throws IllegalStateException\n {\n try\n {\n return sService.getAlbum();\n\n }\n catch (RemoteException ex)\n {\n }\n return null;\n }", "title": "" }, { "docid": "60f140edf0e78f9023fdd056b314907c", "score": "0.5358456", "text": "private void prepareAlbums() {\n int[] covers = new int[]{\n R.drawable.architecture,\n R.drawable.autombile,\n R.drawable.bill,\n R.drawable.boutique,\n R.drawable.caterer,\n R.drawable.computer,\n R.drawable.courier,\n R.drawable.digital,\n R.drawable.education,\n R.drawable.electronics,\n R.drawable.architecture,\n R.drawable.autombile,\n R.drawable.bill,\n R.drawable.boutique,\n R.drawable.caterer,\n R.drawable.computer,\n R.drawable.courier,\n R.drawable.digital,\n R.drawable.education,\n R.drawable.electronics,\n R.drawable.education,\n R.drawable.electronics,\n R.drawable.bill,\n R.drawable.boutique,\n R.drawable.caterer,\n R.drawable.computer,\n R.drawable.courier,\n R.drawable.digital,\n R.drawable.education,\n R.drawable.electronics,\n R.drawable.education,\n R.drawable.electronics\n };\n\n Data_Image_Gallery a = new Data_Image_Gallery(\"Architecture,Trader\", covers[0]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Automobile,Car\", covers[1]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Bill & Recharge\", covers[2]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Boutique,Tailor\", covers[3]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Caterer,Party\", covers[4]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Computer, Repairs\", covers[5]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Courier Services\", covers[6]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Digital Arts\", covers[7]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Education,Schools\",covers[8]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Electronics\", covers[9]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Events\", covers[10]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Groccery,Dairy\", covers[11]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Hospital\", covers[12]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Hotels and Resorts\", covers[13]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Insaurance\", covers[14]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Jewellery,Handicrafts\", covers[15]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Loan,Finance\", covers[16]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Medical\", covers[17]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Movies\",covers[18]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Offices\",covers[19]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Others\",covers[20]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Personal Care\",covers[21]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Plumber,Electrician\",covers[22]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Printing\",covers[23]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Real Estate\",covers[24]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Repairs,Mobile\",covers[25]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Restaurents\",covers[26]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Security Services\",covers[27]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Shop\",covers[28]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Training Institutes\", covers[29]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"Travelling\",covers[30]);\n albumList.add(a);\n\n a = new Data_Image_Gallery(\"WaterPurifiers,Services\", covers[31]);\n albumList.add(a);\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "70697e72d22f014691dd78e62834659b", "score": "0.5357475", "text": "public SlideshowWindow(PhotoAlbum photoAlbum){\n\t\tthis.setPhotoAlbum(photoAlbum);\n\t}", "title": "" }, { "docid": "e3fb8b87403c2a10325a8618bc9e774d", "score": "0.53548926", "text": "public interface GalleryAlbumsView extends MvpView{\n\n void fetchImageSuccess(List<ImageAlbum> imageAlbums);\n\n void fetchImageComplete();\n\n void fetchImageError();\n\n void fetchImageEmpty();\n}", "title": "" }, { "docid": "e1d0d0b18261bb60d4d059b5c3509fb5", "score": "0.5351695", "text": "public void setAlbumPanel1(Album albumPanel) {\n songPanel.removeAll();\n songPanel.add(albumPanel);\n songPanel.revalidate();\n songPanel.repaint();\n this.revalidate();\n this.repaint();\n }", "title": "" }, { "docid": "8ffbb22923ad7900ffd1b995ea54a714", "score": "0.5335375", "text": "public void addToLibrary(Albums album){\n\t\tfor (MusicTrack track: album.getAlbumList()){\n\t\t\tmusicLibrary.add(track);\n\t\t\tplayTimeCounter.put(track, track.getPlayCount());\n\t\t}\n\t}", "title": "" }, { "docid": "5c1569d46c7908e647df1304c9f23b67", "score": "0.53078806", "text": "public PhotoContainer()\n {\n\n }", "title": "" }, { "docid": "421570350f5cc857035e1f9f39789b5d", "score": "0.53078574", "text": "@Test\n\tpublic void testAlbums(){\n\t\tInputStream in;\n\t\tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n\n\t\ttry {\n\t\t\tin = connect.getAssets().open(\"albums.txt\");\n\t\t \n\t\t\t\t\n\n\t\t\n\t int i;\n\n\t i = in.read();\n\t while (i != -1)\n\t {\n\t byteArrayOutputStream.write(i);\n\t i = in.read();\n\t }\n\t in.close();\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t try {\n\t\tHashMap<String,Object> response = api.sortResponse(new JSONObject( byteArrayOutputStream.toString()));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tArrayList<EyeemAlbum> albums = (ArrayList<EyeemAlbum>) response.get(\"albums\");\n\t\tEyeemAlbum album = albums.get(20);\n\t\tassertNotNull(album.albumId);\n\t\tassertNotNull(album.name);\n\t\tassertNotNull(album.type);\n\t\tassertNotNull(album.thumbUrl);\n\t\tassertNotNull(album.updated);\n\t\tassertNotNull(Integer.valueOf(album.totalPhotos));\n\t\tassertNotNull(Integer.valueOf(album.totalContributors));\n\n\t } catch (JSONException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t }\n\t \n\t\n\t}", "title": "" }, { "docid": "75f2f6118e005e3967c45df11ab27843", "score": "0.53028834", "text": "private void createUIComponents()\n {\n }", "title": "" }, { "docid": "eec871692f813aaa1f5dc7c016634b94", "score": "0.5302727", "text": "public void setAlbumPanel() {\n songPanel.removeAll();\n albumsPanel.updateAlbums();\n songPanel.add(albumsPanel);\n songPanel.revalidate();\n songPanel.repaint();\n this.revalidate();\n this.repaint();\n }", "title": "" }, { "docid": "fc44979978e2869e23ba5b3713dbabd4", "score": "0.5299177", "text": "private void findAlbum(){\n mAlbums = new ArrayList<>();\n\n ModelCursorWrapper cursor = new ModelCursorWrapper(mContext.getContentResolver()\n .query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,\n null, null, null, null));\n\n if (cursor != null && cursor.moveToFirst()) {\n\n try {\n do {\n mAlbums.add(cursor.getAlbum());\n cursor.moveToNext();\n\n }while (!cursor.isAfterLast());\n\n } finally {\n mLiveAlbum.postValue(getAlbums());\n cursor.close();\n }\n }\n }", "title": "" }, { "docid": "cd531423171159990e1bc15b94c86fe8", "score": "0.52975464", "text": "public Artist(String name) {\n\t\tif(name != null && !name.isEmpty()) {\n\t\t\tthis.name = name;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.albums = new TreeMap<String, MusicLibObj>();\n\t\t//this.albums = HashMultimap.create();\n\t}", "title": "" }, { "docid": "a6aca6508f09e3d001c45e428679bb5d", "score": "0.5295125", "text": "public void fetchAlbumProperties( StatusUpdate su ) {\n\t\tif ( ! hasFetchedInfo && getGallery().getComm().hasCapability(GalleryCommCapabilities.CAPA_ALBUM_INFO))\n \t\t{\n\t\t\tif ( su == null ) {\n\t\t\t\tsu = new StatusUpdateAdapter(){};\n\t\t\t}\n\t\t\t\n \t\t\ttry {\n \t\t\t\tgallery.getComm().albumInfo( su, this, false );\n \t\t\t} catch (RuntimeException e) {\n \t\t\t\tLog.log(Log.INFO, MODULE, \"Server probably doesn't support album-info\");\n \t\t\t\tLog.logException(Log.INFO, MODULE, e);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "b907a54212903630371714a92fdf3cb6", "score": "0.5270877", "text": "private void createUIComponents() {\n }", "title": "" }, { "docid": "583c76b2e61e96c3b8a3eed3f4586373", "score": "0.52674335", "text": "public Song(String theTitle, String theArtist){\n\ttitle = theTitle;\n\tartist = theArtist;\n }", "title": "" }, { "docid": "cdf7e4392ec06bb53e6ada3bb4c93e94", "score": "0.52665275", "text": "public Track album(final Album album) {\n\t\tthis.album = album;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "13eec1a8496e4e2f4de0506beba741ba", "score": "0.52656674", "text": "PopSong() {\n\t\tArtist[] artistArray = new Artist[1];\n\t\tArtist mArtist = new Artist(\"Antonio\", \"Carella\");\n\t\tartistArray[0] = mArtist; \n\t\tmEnsemble = new Ensemble(artistArray);\n\t\tmTitle = \"Daddy Why Did You Eat My Fries?\";\n\t\tmYearReleased = 2009;\n\t\tmWeeksOnBillboard = 500;\n\t}", "title": "" }, { "docid": "aaa222d90ee393b5b0749bbc93bcfe6a", "score": "0.52637655", "text": "@Test\r\n public void testGetAlbumAndTrackAlbumOnly()\r\n {\r\n final String albumName = \"Hounds of Love\";\r\n checkGetAlbumAndTrack(albumName, 0, albumName);\r\n }", "title": "" }, { "docid": "395ef86d31a37533a62505db9a0821b8", "score": "0.52581674", "text": "public interface Component {\n\n\n public ComponentVersion addVersion( String aComponentVersionNumber );\n\n public String getName();\n}", "title": "" }, { "docid": "a3d9d85423d0ef709b1c24144a5f2fcb", "score": "0.5251216", "text": "private String readAlbumArtist(){\n\t\tif(mp3.getTag()!=null && !Objects.equals(mp3.getTag().getFirst(FieldKey.ALBUM_ARTIST), \"\")){\n\t\t\treturn mp3.getTag().getFirst(FieldKey.ALBUM_ARTIST);\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "d7b258166374cb12c5b961095ce4c4be", "score": "0.52495813", "text": "private void loadLocalAlbum(String condition)\n {\n this.connDataBase();\n // We want to get all of the columns. Look at AudioOpener.java for the definitions:\n String [] columns = {AudioOpener.COL_ALBUMID, AudioOpener.COL_ALBUMNAME,\n AudioOpener.COL_ARTIST, AudioOpener.COL_ALBUMIMGURL, AudioOpener.COL_ALBUMSTYLE};\n //query all the results from the database:\n //Cursor results = db.query(false, AudioOpener.TABLE_NAME, columns, null, null, null, null, null, null);\n String selection=\"\";\n Cursor results;\n if(!condition.equals(\"\")&&condition!=null){\n results = sqldb.query(\"ALBUM_TABLE\", new String[]{\"_albumid,albumName,artist,imgURL,Style\"},\n \"albumName like ?\", new String[]{\"%\"+text_search.getText().toString()+\"%\"},\n null, null, null, null);\n } else {\n results = sqldb.query(\"ALBUM_TABLE\", new String[]{\"_albumid,albumName,artist,imgURL,Style\"},\n null, null, null, null, null, null);\n }\n\n int idIndex = results.getColumnIndex(AudioOpener.COL_ALBUMID);\n int nameIndex = results.getColumnIndex(AudioOpener.COL_ALBUMNAME);\n int aritstIndex = results.getColumnIndex(AudioOpener.COL_ARTIST);\n int urlIndex = results.getColumnIndex(AudioOpener.COL_ALBUMIMGURL);\n int styleIndex = results.getColumnIndex(AudioOpener.COL_ALBUMSTYLE);\n\n if(this.alist!=null)\n this.alist.clear();\n //iterate over the results, return true if there is a next item:\n while(results.moveToNext())\n {\n\n AlbumItem insertItem=new AlbumItem(results.getString(0),results.getString(nameIndex),\n results.getString(aritstIndex),results.getString(urlIndex),results.getString(styleIndex));\n this.alist.add(insertItem);\n }\n\n }", "title": "" }, { "docid": "554750eac4627d692a4b8928c5ddd36f", "score": "0.52463883", "text": "public List<Album> getAlbums() {\r\n\t\treturn albums;\r\n\t}", "title": "" } ]
5871696c0a74e36bc2ec277de456153d
With permissions, calling privilegedCallable succeeds
[ { "docid": "340ac71a980c76d731c4a110e1a89fd4", "score": "0.79472625", "text": "public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }", "title": "" } ]
[ { "docid": "09179a4bdada0dce630b153e48347d35", "score": "0.7754211", "text": "public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }", "title": "" }, { "docid": "8d9aa3e7fc7f8a2d91fe216de4e0115c", "score": "0.73337495", "text": "public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }", "title": "" }, { "docid": "b9d557dc46c186e1aff32612a6e39ce8", "score": "0.7208815", "text": "public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }", "title": "" }, { "docid": "91855a6b085b0aea21b908dfe477b8f2", "score": "0.6771184", "text": "public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }", "title": "" }, { "docid": "e7f8ec967a67dc574e32b76e339873a0", "score": "0.658077", "text": "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}", "title": "" }, { "docid": "8944dcd7414f5a93a11a8ae766f85bba", "score": "0.6565694", "text": "public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }", "title": "" }, { "docid": "cc02db706bdbc2d18ee721fdfa98c6b4", "score": "0.6548", "text": "boolean isCallableAccess();", "title": "" }, { "docid": "254412ebb636c092bf70fffcc6528327", "score": "0.604851", "text": "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "title": "" }, { "docid": "e4066e26c558758fca0658a19dac79d6", "score": "0.60082906", "text": "private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }", "title": "" }, { "docid": "d9e93738ea24a3ade911fac97cde8000", "score": "0.59351414", "text": "public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}", "title": "" }, { "docid": "135622ecafa4e79aecd6d023d14ab686", "score": "0.5867513", "text": "protected abstract void runPrivate();", "title": "" }, { "docid": "77c360ae97bd106fb0808b8b7392a20c", "score": "0.58627456", "text": "public static boolean isCallable(Player player, String rootCMD,\n\t\t\tString subCmd) {\n\t\ttry{\n\t\t\t// alias\n\t\t\treturn iBank.hasPermission(player, getPermission(rootCMD, subCmd));\n\t\t}catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "cc51d2870c5180fdd1881742e8d856df", "score": "0.5845705", "text": "void permissionGranted(int requestCode);", "title": "" }, { "docid": "11771d278d3810a3e8c4721032032007", "score": "0.583195", "text": "abstract public void getPermission();", "title": "" }, { "docid": "2d3eb8b02f82e60b8f005ce42698ba4b", "score": "0.58230925", "text": "void requestNeededPermissions(int requestCode);", "title": "" }, { "docid": "2151f3a293d985bd5486a1196517636e", "score": "0.5788367", "text": "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "9a1d21a439d78fec03a29cf4e8ce973e", "score": "0.5782598", "text": "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "title": "" }, { "docid": "8538c60c2b7f4c522f735eeba9a4f236", "score": "0.57655567", "text": "@Test\n public void testRequestNonRuntimePermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.BIND_PRINT_SERVICE));\n\n String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE};\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }", "title": "" }, { "docid": "38777674b51854a8deff217fe8b02110", "score": "0.5651301", "text": "@Override\n public void checkPermission(Permission perm) {\n }", "title": "" }, { "docid": "378109c7b5a05a26b5a760a2bed5e9e6", "score": "0.56400436", "text": "boolean isExecuteAccess();", "title": "" }, { "docid": "7525ee88ee34ebce3451aec882699488", "score": "0.5615851", "text": "@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;", "title": "" }, { "docid": "66570b950a00fedf72d4d45905a71514", "score": "0.5601366", "text": "int executeSafely();", "title": "" }, { "docid": "ef49bd2385ecd5d1448f2ec1ba9520c6", "score": "0.5585449", "text": "public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "title": "" }, { "docid": "b2c76dad9f8082ad48ad2ac6ae377415", "score": "0.5565867", "text": "@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}", "title": "" }, { "docid": "1a7f2073d35a63c35767157787cbcd2c", "score": "0.55570126", "text": "boolean isNonSecureAccess();", "title": "" }, { "docid": "e5b09cd9f533a14710e207ae904faa8d", "score": "0.554267", "text": "void askForPermissions();", "title": "" }, { "docid": "ebf579957e9123cf14da78763ed6c8f8", "score": "0.553974", "text": "default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }", "title": "" }, { "docid": "7d693b099e35c5947cb101b0a0a8229d", "score": "0.55252254", "text": "@Override\n\tprotected void doIsPermitted(String arg0, Handler<AsyncResult<Boolean>> arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "da5d56996d9fc057b799fe0295303b9d", "score": "0.55138147", "text": "int getPermissionWrite();", "title": "" }, { "docid": "7d5009e479f199be0762d1ed7445ebcb", "score": "0.5513348", "text": "boolean ignoresPermission();", "title": "" }, { "docid": "c798abd7e50fd546fea2ec5b1f6d2314", "score": "0.5486841", "text": "public void onPermissionGranted() {\n\n }", "title": "" }, { "docid": "46d53ab0042b05c894f670a8b02d8ce1", "score": "0.54797417", "text": "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "title": "" }, { "docid": "04d110c94ce82e12885b66da7a773da6", "score": "0.5466026", "text": "public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "title": "" }, { "docid": "c0f1af3ef9af072a3c8ba29c4a68e96f", "score": "0.54556787", "text": "public interface PermissionManagerServiceInternal extends PermissionManagerInternal,\n LegacyPermissionDataProvider {\n /**\n * Check whether a particular package has been granted a particular permission.\n *\n * @param packageName the name of the package you are checking against\n * @param permissionName the name of the permission you are checking for\n * @param userId the user ID\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkPermission(@NonNull String packageName, @NonNull String permissionName,\n @UserIdInt int userId);\n\n /**\n * Check whether a particular UID has been granted a particular permission.\n *\n * @param uid the UID\n * @param permissionName the name of the permission you are checking for\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkUidPermission(int uid, @NonNull String permissionName);\n\n /**\n * Adds a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Removes a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void removeOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Get whether permission review is required for a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return whether permission review is required\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n boolean isPermissionsReviewRequired(@NonNull String packageName,\n @UserIdInt int userId);\n\n /**\n * Reset the runtime permission state changes for a package.\n *\n * TODO(zhanghai): Turn this into package change callback?\n *\n * @param pkg the package\n * @param userId the user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void resetRuntimePermissions(@NonNull AndroidPackage pkg,\n @UserIdInt int userId);\n\n /**\n * Read legacy permission state from package settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code PackageSetting} which is a implementation detail that permission should not know.\n * Instead, it should retrieve the legacy state via a defined API.\n */\n void readLegacyPermissionStateTEMP();\n\n /**\n * Write legacy permission state to package settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionStateTEMP();\n\n /**\n * Get all the permissions granted to a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return the names of the granted permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);\n\n /**\n * Get the GIDs of a permission.\n *\n * @param permissionName the name of the permission\n * @param userId the user ID\n * @return the GIDs of the permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId);\n\n /**\n * Get the packages that have requested an app op permission.\n *\n * @param permissionName the name of the app op permission\n * @return the names of the packages that have requested the app op permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n String[] getAppOpPermissionPackages(@NonNull String permissionName);\n\n /** HACK HACK methods to allow for partial migration of data to the PermissionManager class */\n @Nullable\n Permission getPermissionTEMP(@NonNull String permName);\n\n /** Get all permissions that have a certain protection */\n @NonNull\n ArrayList<PermissionInfo> getAllPermissionsWithProtection(\n @PermissionInfo.Protection int protection);\n\n /** Get all permissions that have certain protection flags */\n @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags(\n @PermissionInfo.ProtectionFlags int protectionFlags);\n\n /**\n * Start delegate the permission identity of the shell UID to the given UID.\n *\n * @param uid the UID to delegate shell permission identity to\n * @param packageName the name of the package to delegate shell permission identity to\n * @param permissionNames the names of the permissions to delegate shell permission identity\n * for, or {@code null} for all permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void startShellPermissionIdentityDelegation(int uid,\n @NonNull String packageName, @Nullable List<String> permissionNames);\n\n /**\n * Stop delegating the permission identity of the shell UID.\n *\n * @see #startShellPermissionIdentityDelegation(int, String, List)\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void stopShellPermissionIdentityDelegation();\n\n /**\n * Get all delegated shell permissions.\n */\n @NonNull List<String> getDelegatedShellPermissions();\n\n /**\n * Read legacy permissions from legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code LegacyPermissionSettings} which is a implementation detail that permission should not\n * know. Instead, it should retrieve the legacy permissions via a defined API.\n */\n void readLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Write legacy permissions to legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Callback when the system is ready.\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onSystemReady();\n\n /**\n * Callback when a storage volume is mounted, so that all packages on it become available.\n *\n * @param volumeUuid the UUID of the storage volume\n * @param fingerprintChanged whether the current build fingerprint is different from what it was\n * when this volume was last mounted\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);\n\n /**\n * Callback when a user has been created.\n *\n * @param userId the created user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserCreated(@UserIdInt int userId);\n\n /**\n * Callback when a user has been removed.\n *\n * @param userId the removed user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserRemoved(@UserIdInt int userId);\n\n /**\n * Callback when a package has been added.\n *\n * @param pkg the added package\n * @param isInstantApp whether the added package is an instant app\n * @param oldPkg the old package, or {@code null} if none\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageAdded(@NonNull AndroidPackage pkg, boolean isInstantApp,\n @Nullable AndroidPackage oldPkg);\n\n /**\n * Callback when a package has been installed for a user.\n *\n * @param pkg the installed package\n * @param previousAppId the previous app ID if the package is leaving a shared UID,\n * or Process.INVALID_UID\n * @param params the parameters passed in for package installation\n * @param userId the user ID this package is installed for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId,\n @NonNull PackageInstalledParams params,\n @UserIdInt int userId);\n\n /**\n * Callback when a package has been removed.\n *\n * @param pkg the removed package\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageRemoved(@NonNull AndroidPackage pkg);\n\n /**\n * Callback when a package has been uninstalled.\n * <p>\n * The package may have been fully removed from the system, or only marked as uninstalled for\n * this user but still instlaled for other users.\n *\n * TODO: Pass PackageState instead.\n *\n * @param packageName the name of the uninstalled package\n * @param appId the app ID of the uninstalled package\n * @param pkg the uninstalled package, or {@code null} if unavailable\n * @param sharedUserPkgs the packages that are in the same shared user\n * @param userId the user ID the package is uninstalled for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageUninstalled(@NonNull String packageName, int appId, @Nullable AndroidPackage pkg,\n @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId);\n\n /**\n * Listener for package permission state (permissions or flags) changes.\n */\n interface OnRuntimePermissionStateChangedListener {\n\n /**\n * Called when the runtime permission state (permissions or flags) changed.\n *\n * @param packageName The package for which the change happened.\n * @param userId the user id for which the change happened.\n */\n @Nullable\n void onRuntimePermissionStateChanged(@NonNull String packageName,\n @UserIdInt int userId);\n }\n\n /**\n * The permission-related parameters passed in for package installation.\n *\n * @see android.content.pm.PackageInstaller.SessionParams\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n final class PackageInstalledParams {\n /**\n * A static instance whose parameters are all in their default state.\n */\n public static final PackageInstalledParams DEFAULT = new Builder().build();\n\n @NonNull\n private final List<String> mGrantedPermissions;\n @NonNull\n private final List<String> mAllowlistedRestrictedPermissions;\n @NonNull\n private final int mAutoRevokePermissionsMode;\n\n private PackageInstalledParams(@NonNull List<String> grantedPermissions,\n @NonNull List<String> allowlistedRestrictedPermissions,\n int autoRevokePermissionsMode) {\n mGrantedPermissions = grantedPermissions;\n mAllowlistedRestrictedPermissions = allowlistedRestrictedPermissions;\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Get the permissions to be granted.\n *\n * @return the permissions to be granted\n */\n @NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }\n\n /**\n * Get the restricted permissions to be allowlisted.\n *\n * @return the restricted permissions to be allowlisted\n */\n @NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }\n\n /**\n * Get the mode for auto revoking permissions.\n *\n * @return the mode for auto revoking permissions\n */\n public int getAutoRevokePermissionsMode() {\n return mAutoRevokePermissionsMode;\n }\n\n /**\n * Builder class for {@link PackageInstalledParams}.\n */\n public static final class Builder {\n @NonNull\n private List<String> mGrantedPermissions = Collections.emptyList();\n @NonNull\n private List<String> mAllowlistedRestrictedPermissions = Collections.emptyList();\n @NonNull\n private int mAutoRevokePermissionsMode = AppOpsManager.MODE_DEFAULT;\n\n /**\n * Set the permissions to be granted.\n *\n * @param grantedPermissions the permissions to be granted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setGrantedRuntimePermissions(\n * java.lang.String[])\n */\n public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }\n\n /**\n * Set the restricted permissions to be allowlisted.\n * <p>\n * Permissions that are not restricted are ignored, so one can just pass in all\n * requested permissions of a package to get all its restricted permissions allowlisted.\n *\n * @param allowlistedRestrictedPermissions the restricted permissions to be allowlisted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)\n */\n public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }\n\n /**\n * Set the mode for auto revoking permissions.\n * <p>\n * {@link AppOpsManager#MODE_ALLOWED} means the system is allowed to auto revoke\n * permissions from this package, and {@link AppOpsManager#MODE_IGNORED} means this\n * package should be ignored when auto revoking permissions.\n * {@link AppOpsManager#MODE_DEFAULT} means no changes will be made to the auto revoke\n * mode of this package.\n *\n * @param autoRevokePermissionsMode the mode for auto revoking permissions\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setAutoRevokePermissionsMode(\n * boolean)\n */\n public void setAutoRevokePermissionsMode(int autoRevokePermissionsMode) {\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Build a new instance of {@link PackageInstalledParams}.\n *\n * @return the {@link PackageInstalledParams} built\n */\n @NonNull\n public PackageInstalledParams build() {\n return new PackageInstalledParams(mGrantedPermissions,\n mAllowlistedRestrictedPermissions, mAutoRevokePermissionsMode);\n }\n }\n }\n\n /**\n * Sets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n void setHotwordDetectionServiceProvider(@Nullable HotwordDetectionServiceProvider provider);\n\n /**\n * Gets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n @Nullable\n HotwordDetectionServiceProvider getHotwordDetectionServiceProvider();\n\n /**\n * Provides the uid of the currently active\n * {@link android.service.voice.HotwordDetectionService}, which should be granted RECORD_AUDIO,\n * CAPTURE_AUDIO_HOTWORD and CAPTURE_AUDIO_OUTPUT permissions.\n */\n interface HotwordDetectionServiceProvider {\n int getUid();\n }\n}", "title": "" }, { "docid": "3bfb8e75aec7dcdd749e1eec537620cb", "score": "0.5419466", "text": "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tAccessModifier obj = new AccessModifier();\r\n\t\tobj.publicFunction();\r\n\t\tTestAccessModAtProjectLevel obj2= new \tTestAccessModAtProjectLevel();\r\n\t\tobj2.protectedfunction();\r\n\t}", "title": "" }, { "docid": "b21a5c6f022b9763ec5749e4a2db52cd", "score": "0.5413936", "text": "private PermissionHelper() {}", "title": "" }, { "docid": "8d73efcc4bf5e9b215f66730012d21d5", "score": "0.541135", "text": "public com.google.common.util.concurrent.ListenableFuture<\n com.google.iam.v1.TestIamPermissionsResponse>\n testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);\n }", "title": "" }, { "docid": "a7a29f2425d233f40d215c01dfba6dab", "score": "0.54086417", "text": "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "title": "" }, { "docid": "7919a4706c6da0f91365bd5b063e1166", "score": "0.5403445", "text": "public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }", "title": "" }, { "docid": "95e0e47376b2e0875075cdf1ec4a4f8f", "score": "0.53951174", "text": "public boolean checkPermission(Permission permission);", "title": "" }, { "docid": "13511de237e53f2ada435e0fefc6b6d9", "score": "0.538761", "text": "@Override\n public void onPermissionGranted() {\n }", "title": "" }, { "docid": "1e3e3e1bd58f477a073338536c80e62f", "score": "0.5384262", "text": "@Override\n public void onPermissionGranted() {\n }", "title": "" }, { "docid": "a4a4cc7404ca3c03b2b3e84d308f1d9a", "score": "0.53582454", "text": "void requestStoragePermission();", "title": "" }, { "docid": "101351591ee847eaf7e76dc5e589f574", "score": "0.5353905", "text": "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "title": "" }, { "docid": "3421f6ad9a05c86ba808a6fb4062ee14", "score": "0.5347634", "text": "boolean memberHasPermission(String perm, Member m);", "title": "" }, { "docid": "909aad5a4b7f209a3b87bca9084b8db2", "score": "0.53453916", "text": "public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }", "title": "" }, { "docid": "7f33b42b14c5cd0fb460838f55775a20", "score": "0.53214264", "text": "public static void checkAccess() throws SecurityException {\n if(isSystemThread.get()) {\n return;\n }\n //TODO: Add Admin Checking Code\n// if(getCurrentUser() != null && getCurrentUser().isAdmin()) {\n// return;\n// }\n throw new SecurityException(\"Invalid Permissions\");\n }", "title": "" }, { "docid": "b0934eec469c7257c2a80d3b32b5c827", "score": "0.5309004", "text": "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "title": "" }, { "docid": "d2e75d172e1b15d750df28b8a4236a6c", "score": "0.53070426", "text": "protected abstract boolean invokable(Resource r);", "title": "" }, { "docid": "142955e65a137bc1dfea3af3168c158c", "score": "0.5304843", "text": "public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}", "title": "" }, { "docid": "1bf7fe6ae3da4481962102245d9c6227", "score": "0.52955675", "text": "private Document runPrivileged(final PrivilegedSendMessage privilegedSendMessage) {\n final CallbackHandler handler = new ProvidedAuthCallback(username, password);\n Document result;\n try {\n final LoginContext lc = new LoginContext(\"\", null, handler, new KerberosJaasConfiguration(kerberosDebug, kerberosTicketCache));\n lc.login();\n\n result = Subject.doAs(lc.getSubject(), privilegedSendMessage);\n } catch (LoginException e) {\n throw new WinRmRuntimeIOException(\"Login failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e);\n } catch (PrivilegedActionException e) {\n throw new WinRmRuntimeIOException(\"Failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e.getException());\n }\n return result;\n }", "title": "" }, { "docid": "a3fec4651899a28585be5d42bd67445b", "score": "0.52888554", "text": "public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;", "title": "" }, { "docid": "7cbf89e7d6e626991cc25906a1e43eea", "score": "0.528595", "text": "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "title": "" }, { "docid": "5de5a5cf09a70112790296bb12021828", "score": "0.5280279", "text": "public interface IPermissionCommunicator {\n public void onRequestForPermission();\n}", "title": "" }, { "docid": "bfecde3bee027471d24f9d6c4a21922a", "score": "0.5274014", "text": "public abstract boolean impliesWithoutTreePathCheck(Permission permission);", "title": "" }, { "docid": "bb4e1b174b3fb076703d5e068f0a2365", "score": "0.5262896", "text": "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "title": "" }, { "docid": "e505c96237b5996b12f80c1436c4fa47", "score": "0.52548647", "text": "public interface AccessControlled {\r\n\r\n}", "title": "" }, { "docid": "640d195bd730010e16427a5348d59a8b", "score": "0.52530676", "text": "@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;", "title": "" }, { "docid": "7189166aa15a9b07cddae81f37b7b1b7", "score": "0.52478397", "text": "int getPermissionRead();", "title": "" }, { "docid": "d65c12bd618b56774c9e867f4710037f", "score": "0.5245876", "text": "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }", "title": "" }, { "docid": "1037e3ecac5ac7212a0aee3e56167a23", "score": "0.5237354", "text": "public void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "title": "" }, { "docid": "aadbedd4785e265f69de1d307bf42457", "score": "0.52327883", "text": "@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }", "title": "" }, { "docid": "56640a59450fb4ae7adc44b5107adeff", "score": "0.52327406", "text": "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "title": "" }, { "docid": "3806c8c6a9cab67df9a2ae96533b9cc7", "score": "0.52281106", "text": "@FunctionalInterface\npublic interface PermissionProvider {\n\n /**\n * Checks if a user can use a special kind of commands.\n *\n * @param level The {@link PermissionLevel} of the command\n * @param channel The channel the message occurred in\n * @param member The {@link Member} that send the message\n * @return True if the user has the rights to use the commands\n */\n boolean hasPermission(PermissionLevel level, TextChannel channel, Member member);\n\n /**\n * @return The default {@link PermissionProvider}.\n */\n static PermissionProvider getDefault() {\n return new IdPermissionsProvider();\n }\n\n enum PermissionLevel {\n ADMIN\n }\n}", "title": "" }, { "docid": "0dd51550ddacd354f3376f9b85a049ac", "score": "0.5221063", "text": "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "title": "" }, { "docid": "41d2a8cc0e278c6a1dc1943396aecdd7", "score": "0.5216945", "text": "public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "title": "" }, { "docid": "75e52b041a7572cc434bc53bdf314d6e", "score": "0.5216774", "text": "public String getFloodPerm() throws PermissionDeniedException;", "title": "" }, { "docid": "f4839cfc15facf42a546a92437903a87", "score": "0.52100116", "text": "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }", "title": "" }, { "docid": "3d6c45b86da579bd2f8fc8ac8a3dc83c", "score": "0.5205735", "text": "boolean hasPermission(final Player sniper, final String permission);", "title": "" }, { "docid": "d204bfa1032be93a900613c1d16a0c53", "score": "0.5185591", "text": "@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }", "title": "" }, { "docid": "3f15a8a8f37bd1f57d5d9c92c022ca6d", "score": "0.5183144", "text": "public interface PermissionResult {\n\n void permissionGranted();\n\n void permissionDenied();\n\n void permissionForeverDenied();\n\n}", "title": "" }, { "docid": "6255913ed4d7fdd022984706c7a53e59", "score": "0.5164918", "text": "boolean isWritePermissionGranted();", "title": "" }, { "docid": "46083aa9213fecb6cb1e6278887c8f28", "score": "0.5160704", "text": "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "title": "" }, { "docid": "e4dd757f850d672e977458e082dcb2dc", "score": "0.51593465", "text": "boolean hasInstantiatePermission();", "title": "" }, { "docid": "2ca9a39669d63bcc62477fc0b06131c5", "score": "0.51500994", "text": "public void runTimePermission(){\n Dexter.withActivity(this).withPermission(Manifest.permission.READ_EXTERNAL_STORAGE)\n .withListener(new PermissionListener() {\n @Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n play();\n }\n\n @Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\n token.continuePermissionRequest();\n }\n }).check();\n }", "title": "" }, { "docid": "8260413838a51a4add7c5f9a6d4b03a9", "score": "0.5147941", "text": "boolean isSecureAccess();", "title": "" }, { "docid": "adc6a23929eacf49b5f14236cc73fa16", "score": "0.51475745", "text": "@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }", "title": "" }, { "docid": "6d86905e47da24c0568e428230961843", "score": "0.51364034", "text": "@Override\n public void checkRunTimePermission(AppBaseActivity activity, String permission) {\n if (ContextCompat.checkSelfPermission(activity, permission)\n != PackageManager.PERMISSION_GRANTED) {\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(activity,\n new String[]{permission},\n REQUEST_PERMISSIONS_REQUEST_CODE);\n // REQUEST_PERMISSIONS_REQUEST_CODE is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n\n }\n }", "title": "" }, { "docid": "113a4f9ce62c76655c83a5e36957364d", "score": "0.5127466", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }", "title": "" }, { "docid": "dd7502aa9037f436490d5393df70538b", "score": "0.5115569", "text": "boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;", "title": "" }, { "docid": "3206c8fbbb5a1093c9397c90567cfa34", "score": "0.5111305", "text": "public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);\n }", "title": "" }, { "docid": "5d153edb4e10414c495dbae88230da67", "score": "0.51041466", "text": "private boolean runtime_permissions() {\n if(Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},100);\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5b6aab1bef5de2a17ca1fbc1bdaf9101", "score": "0.50924337", "text": "@Override\n public boolean testPermission(CommandSource source) {\n return source.hasPermission(\"core.tps\");\n }", "title": "" }, { "docid": "804bc6e9ff0ce5fe27b72ec021e8547c", "score": "0.50921524", "text": "Privilege getPrivilege();", "title": "" }, { "docid": "3492621d606fa859463ffa06f837cf54", "score": "0.50916034", "text": "@Override\n\tpublic void execute() {\n\t\tsecurity.on();\n\t}", "title": "" }, { "docid": "191cd7c2d32ff52778c0ab23bc08b876", "score": "0.50905794", "text": "public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }", "title": "" }, { "docid": "b20d6b038e4255fb1e9165687a1e09ea", "score": "0.5082958", "text": "boolean isPrivate();", "title": "" }, { "docid": "e29824782e1a7bf5981e2b0c7fa9e93d", "score": "0.50454897", "text": "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "title": "" }, { "docid": "22d9b867764ea193a8d7f308629be89e", "score": "0.50139755", "text": "public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;", "title": "" }, { "docid": "228d5e0c499b70bd72b767e2e1a47ede", "score": "0.50100446", "text": "public interface PermissionsInstance {\n\n\t/**\n\t * Check whether the specified member has permission for the following action\n\t * @param perm The permission name\n\t * @param m The member\n\t * @return True, if the member can do the action\n\t */\n\tboolean memberHasPermission(String perm, Member m);\n\t\n}", "title": "" }, { "docid": "945116c41543d39519441c687b6d6cca", "score": "0.50097066", "text": "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "154c133f1a926669fb3fae2aa7a69cce", "score": "0.5003986", "text": "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "title": "" }, { "docid": "2427c109608f68284f5cc8f75c9881f9", "score": "0.5000224", "text": "@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}", "title": "" }, { "docid": "49ca8d8148060700a3d30db4b9ad661c", "score": "0.49944738", "text": "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "title": "" }, { "docid": "4817aa3b7d658bff6815f0e34a76ed82", "score": "0.49887297", "text": "public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }", "title": "" }, { "docid": "c503acb80d2d69b166cd192ffdfc8d62", "score": "0.49867705", "text": "public interface SysPermissionService {\n}", "title": "" }, { "docid": "dfeda7194ebfa413f22e87cdd8e28df4", "score": "0.49837816", "text": "@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }", "title": "" }, { "docid": "dcc175e91aec446a5cb56c06b3eecb0c", "score": "0.49794456", "text": "boolean process(Param param, JsrCallable callable) throws InvalidSignatureException;", "title": "" }, { "docid": "68fb34779e89c1b95006572563ec957e", "score": "0.49766678", "text": "private void requestCameraPermission(){\n requestPermissions(cameraPermissions, CAMERA_REQUESTED_CODE);\n }", "title": "" }, { "docid": "43af11fbb914929ec9fc983988a82358", "score": "0.49720907", "text": "PermissionService getPermissionService();", "title": "" } ]
a367ab60b740c14f340a0393bd0fe448
used for post request to fill in parameters.
[ { "docid": "5e59f016ccffb6b01c99405a1f1e2e04", "score": "0.0", "text": "@Override\n protected Map<String, String> getParamsFromBundle(Bundle param) {\n return null;\n }", "title": "" } ]
[ { "docid": "565705ec407abc40943c573aa4437012", "score": "0.70169574", "text": "@Override\n\tprotected void onFillRequestParams(HashMap<String, String> params) {\n\t\t\n\t}", "title": "" }, { "docid": "d5aa0426dc3eef10e8cb8d04515445fe", "score": "0.6989846", "text": "@Override\r\n protected Map<String, String> getParams () throws AuthFailureError\r\n {\r\n return postParam;\r\n }", "title": "" }, { "docid": "00ee7ebc990158685ece02c093e95f61", "score": "0.6819776", "text": "@Override\r\n\tpublic List<NameValuePair> fillParams() {\n\t\treturn build(params);\r\n\t}", "title": "" }, { "docid": "7d09cf457a4c4ed5f8850e2bdd7bc3a8", "score": "0.6819133", "text": "private void addPostParams(final Request request) {\n if (vettingProvider != null) {\n request.addPostParam(\"VettingProvider\", vettingProvider.toString());\n }\n\n if (vettingId != null) {\n request.addPostParam(\"VettingId\", vettingId);\n }\n }", "title": "" }, { "docid": "515bf960a819843227383b54611e069e", "score": "0.67564064", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"login\");\n params.put(\"firm_name\", name_firm);\n\n params.put(\"access_token\", access_token);\n params.put(\"working_hour_from\",\"10\" /*loading_from*//*loading_from*/);\n params.put(\"working_hour_to\", \"21\"/*loading_to*//*loading_to*/);\n params.put(\"survey_no\", survey_name);\n params.put(\"address\", address);\n params.put(\"city\", city_name);\n params.put(\"state\", state_name);\n params.put(\"pincode\", pincode);\n params.put(\"address_id\", \"0\");\n params.put(\"name_of_person\", name_contact);\n params.put(\"mobile\", mobile);\n params.put(\"email\", email);\n params.put(\"user_id\", \"28\");\n params.put(\"landline\", landline);\n params.put(\"landmark\", landmark);\n params.put(\"firm_type\", name_firm);\n params.put(\"order_address_id\", order_add_id);\n params.put(\"firm_type\", \"0\");\n Log.e(\"@saveAdd\", params.toString());\n return params;\n\n }", "title": "" }, { "docid": "7b601ad002c34af053faf7dbbfcf2c14", "score": "0.66486996", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"login\");\n params.put(\"firm_name\", name_firm);\n params.put(\"access_token\", access_token);\n params.put(\"working_hour_from\",time1 /*loading_from*//*loading_from*/);\n params.put(\"working_hour_to\", time2/*loading_to*//*loading_to*/);\n params.put(\"survey_no\", survey_name);\n params.put(\"address\", address);\n params.put(\"city\", city_name);\n params.put(\"state\", state_name);\n params.put(\"pincode\", pincode);\n params.put(\"address_id\", address_id);\n params.put(\"name_of_person\", name_contact);\n params.put(\"mobile\", mobile);\n params.put(\"email\", email);\n params.put(\"user_id\", \"28\");\n params.put(\"landline\", landline);\n params.put(\"landmark\", landmark);\n params.put(\"firm_type\", name_firm);\n params.put(\"order_address_id\", order_address_id);\n params.put(\"firm_type\", \"0\");\nLog.e(\"@save\", params.toString());\n return params;\n }", "title": "" }, { "docid": "a6a2a942911a739fdd9ea7e01d2fbc3a", "score": "0.6564589", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fvuniqid\", fvuniqid);\n params.put(\"byemail\", byemail);\n params.put(\"boolvar\", boolvar);\n params.put(\"genre\", genre);\n\n return params;\n }", "title": "" }, { "docid": "a73492a304ef0c9ffc368cfc8fdb5958", "score": "0.6537008", "text": "private void addPostParams(final Request request) {\n if (flexFlowSid != null) {\n request.addPostParam(\"FlexFlowSid\", flexFlowSid);\n }\n\n if (identity != null) {\n request.addPostParam(\"Identity\", identity);\n }\n\n if (chatUserFriendlyName != null) {\n request.addPostParam(\"ChatUserFriendlyName\", chatUserFriendlyName);\n }\n\n if (chatFriendlyName != null) {\n request.addPostParam(\"ChatFriendlyName\", chatFriendlyName);\n }\n\n if (target != null) {\n request.addPostParam(\"Target\", target);\n }\n\n if (chatUniqueName != null) {\n request.addPostParam(\"ChatUniqueName\", chatUniqueName);\n }\n\n if (preEngagementData != null) {\n request.addPostParam(\"PreEngagementData\", preEngagementData);\n }\n\n if (taskSid != null) {\n request.addPostParam(\"TaskSid\", taskSid);\n }\n\n if (taskAttributes != null) {\n request.addPostParam(\"TaskAttributes\", taskAttributes);\n }\n\n if (longLived != null) {\n request.addPostParam(\"LongLived\", longLived.toString());\n }\n }", "title": "" }, { "docid": "80119064e6acf33e952821b771a51df1", "score": "0.65233207", "text": "@Override\n\tpublic List<NameValuePair> getRequestPostParams() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "99f2fceaa3b1f26888afdf539d8ae6ca", "score": "0.6514372", "text": "@Override\n protected Map<String, String> getParams() {\n\n\n Map<String, String> params = new HashMap<String, String>();\n\n\n\n params.put(\"phone\", userphone);\n params.put(\"pincode\", userpin);\n params.put(\"driver_ud_id\", udid);\n\n\n return params;\n }", "title": "" }, { "docid": "d08f13f39a98b45d644802086fbc2f34", "score": "0.65117335", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", id);\n params.put(\"expected_salary\", finalSal);\n params.put(\"job_id\", ji);\n\n return params;\n }", "title": "" }, { "docid": "bf874254393c9952b01015d3ddc88e0d", "score": "0.6506972", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"first_name\", firstName);\n params.put(\"last_name\", lastName);\n params.put(\"email\", email);\n params.put(\"password0\", password0);\n params.put(\"password1\", password1);\n params.put(\"phone\", phone);\n params.put(\"college\", college);\n return params;\n }", "title": "" }, { "docid": "9762aabde229fcf41d2056e92cb0bdcd", "score": "0.6488909", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "84bb1d1dbdb3fda524b279bd3d689b17", "score": "0.64746994", "text": "private void parseRequest() {\r\n final StringBuffer sb = new StringBuffer();\r\n Map ps = getParameters();\r\n for (Iterator<String> it = ps.keySet().iterator(); it.hasNext();) {\r\n String key = (String) it.next();\r\n String value = getParameter(key);\r\n ps.put(key, value);\r\n sb.append(key).append(\"=\").append(value);\r\n if (it.hasNext()) {\r\n sb.append(\"&\");\r\n }\r\n\r\n }\r\n\r\n contentData = new byte[sb.toString().getBytes().length];\r\n contentData = sb.toString().getBytes();\r\n }", "title": "" }, { "docid": "0b4ca0482ad2ce98408bb80723ec1781", "score": "0.64714396", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"usermac\", usermac);\n params.put(\"region\", region);\n params.put(\"level\", level);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "287b607201c50982bf45200c220b1c93", "score": "0.64617795", "text": "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<>();\n\n params.put(\"user_id\", Constant.USER_ID);\n params.put(\"card_number\", edt_card_no.getText().toString().trim());\n params.put(\"expiry_month\", spn_month.getText().toString());\n params.put(\"expiry_year\", spn_year.getText().toString());\n\n return params;\n }", "title": "" }, { "docid": "ef5839c5734f7fc628e48ee078c9b634", "score": "0.6455935", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"patient_id\", SuperActivity.newBundleData.getPatientId());\n params.put(\"pef\", pef);\n params.put(\"fev1\", fev1);\n params.put(\"peftime\", peftime);\n params.put(\"evol\", evol);\n return params;\n }", "title": "" }, { "docid": "696f32afd71a3ca40ebb096d3114ab8c", "score": "0.64347875", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"mobile\", mobile);\n params.put(\"count\", count);\n params.put(\"tree1\", tree1);\n params.put(\"tree2\", tree2);\n return params;\n }", "title": "" }, { "docid": "90f1804928658fc4b1b9eb159bae7d72", "score": "0.6402365", "text": "private void set_Values_To_Paramters_And_Post_Over_Server(View snackbar_required_View) {\n\n final SweetAlertDialog loding = loading_dialogue();\n parse_ValueTO_Varaibles_from_Views();\n Log.i(TAG , \"CHECK_PARAMS->\" + check_params());\n if(check_params()){\n //TODO POST OVER SERVER .........\n boolean is_female = false ;\n boolean is_teacher = false;\n if(mSex.equals(Constants.Sinup_SEX_FEMALE)){\n is_female = true ;\n }\n if(mCheck_faculity.equals(Constants.SINUP_YES_FACULITY)){\n is_teacher = true;\n }\n\n Request_Server_And_Show_Dialogues(loding, is_female, is_teacher);\n }\n else {\n //IF DETAILS ARE INCORRECT\n if((loding != null) && loding.isShowing()) {\n loding.dismiss();\n }\n Snackbar.make(snackbar_required_View , \"Kindly Check Your Details Again !! \" , Snackbar.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "4afb201e3bc70147da5929c7d60c9691", "score": "0.63816065", "text": "@Override\n protected Map<String, String> getParams() {\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "168a5fe1d20717d4232496a1276d2442", "score": "0.6372389", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_no\", reg_no);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "79dd5d062419742fcf5d85a234957631", "score": "0.6368453", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"user_unique_id\", user_unique_id);\n params.put(\"reg_id\", regId);\n\n return params;\n }", "title": "" }, { "docid": "754979ef174c060b59a69b4363bb43a4", "score": "0.63550645", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"patient_id\", SuperActivity.newBundleData.getPatientId());\n params.put(\"pef\", pef);\n params.put(\"fev1\", fev1);\n params.put(\"fvc\", fvc);\n params.put(\"fev1_fvc\", fev1_fvc);\n params.put(\"fev6\", fev6);\n params.put(\"fef2575\", fef2575);\n return params;\n }", "title": "" }, { "docid": "4c09f215f45adedf0137f76d42d4f0c5", "score": "0.633968", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n\n //Company\n params.put(\"TestId\", Test_id);\n params.put(\"LanguageId\", Languageid);\n\n\n return params;\n }", "title": "" }, { "docid": "11925f774e1cd7a8e586a41bc7762d12", "score": "0.63062584", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n // The first argument should be same as your MySQL database table columns.\n params.put(\"FirstName\", FirstNameHolder);\n params.put(\"LastName\",LastNameHolder);\n params.put(\"EmailAddress\", EmailAddressHolder);\n params.put(\"PhoneContact\", PhoneContactHolder);\n params.put(\"Country\", CountryHolder);\n params.put(\"Address\", AddressHolder);\n params.put(\"Date_of_birth\", Date_of_birthHolder);\n params.put(\"username\", usernameHolder);\n params.put(\"Password\", PasswordHolder);\n params.put(\"Gender\", gender);\n params.put(\"Area_of_Specialization\", Area_of_SpecializationHolder);\n params.put(\"Hospital\", HospitalHolder);\n params.put(\"Doctor_Licence No\", Doctor_Licence_No);\n\n return params;\n }", "title": "" }, { "docid": "58c421c9bc7ff30bc751d19732c3f72a", "score": "0.6273289", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "58c421c9bc7ff30bc751d19732c3f72a", "score": "0.6273289", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }", "title": "" }, { "docid": "d05cdc7509dc5959820b4abebf7f253f", "score": "0.6268729", "text": "public Map.Entry[] getPostRequestParams();", "title": "" }, { "docid": "cd1531a4024963f870b9bda0b7497850", "score": "0.6264728", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "title": "" }, { "docid": "cd1531a4024963f870b9bda0b7497850", "score": "0.6264728", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "title": "" }, { "docid": "c7174d127e12184842a5fb6225ec4630", "score": "0.62529564", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"newPassword\", newPassword);\n\n return params;\n }", "title": "" }, { "docid": "dd45e3b5b22d06dccb36be14a7221223", "score": "0.6244924", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n //list of parameters to the hash map\n params.put(\"email\", email);\n\n\n return params;\n }", "title": "" }, { "docid": "dddac9d8221ef62a49d5940e73febd57", "score": "0.62226343", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"TestId\", Test_id);\n return params;\n }", "title": "" }, { "docid": "e0c98c9cf1185179ac3d70f76bd9bfac", "score": "0.6222109", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", id);\n params.put(\"training_title\", tittit);\n params.put(\"training_institution\", insins);\n params.put(\"training_topic_details\", detdet);\n params.put(\"location\", locloc);\n params.put(\"duration\", durdur);\n return params;\n }", "title": "" }, { "docid": "3aeef8d4de882d4921aa69015f0d7ebe", "score": "0.6220001", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }", "title": "" }, { "docid": "77474e740f9597e204bc239624b79beb", "score": "0.62189764", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"emailAPP\", EmailHolder.toLowerCase());\n params.put(\"senhaAPP\", SenhaHolder);\n\n return params;\n }", "title": "" }, { "docid": "4bf8958142fa231f98dc963f017726ca", "score": "0.62083733", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"picmeId\",pickmeid);\n params.put(\"DOB\",dob);\n params.put(\"deviceId\",strdeviceId);\n params.put(\"OTPCode\",otp);\n params.put(\"mobileCheck\",mobileCheck);\n Log.d(\"params--->\",params.toString());\n\n return params;\n }", "title": "" }, { "docid": "e52f18eda4adf32e841a5eff01413d7c", "score": "0.61981416", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", Email);\n params.put(\"password\", Password);\n\n return params;\n }", "title": "" }, { "docid": "63807c0361ee9d2266a30f823d205799", "score": "0.6189591", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n // params.put(\"name\", name);\n params.put(\"token\", token);\n params.put(OrgConfig.ORG_LOCATION, location);\n params.put(OrgConfig.ORG_LOCATION_lat, lat);\n params.put(OrgConfig.ORG_LOCATION_lan, lon);\n params.put(OrgConfig.ORG_NAME, name);\n params.put(OrgConfig.ORG_TYPE, type);\n params.put(OrgConfig.ORG_PH_NO, phone);\n params.put(OrgConfig.ORG_EMAIL, email);\n params.put(OrgConfig.ORG_WEBSITE, website);\n params.put(OrgConfig.ORG_DESC, desc);\n\n\n return params;\n }", "title": "" }, { "docid": "e681e46beb58fc4b07d09a71754c7da5", "score": "0.6176946", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n\n return params;\n }", "title": "" }, { "docid": "4ead5384ed14af27fb545fba33d192bf", "score": "0.6149263", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", username);\n params.put(\"email\", usermail);\n params.put(\"msg\", messagex);\n return params;\n }", "title": "" }, { "docid": "c09e3967ca2ce94c70272674eca49035", "score": "0.60905874", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n Map<String, String> parametros = new Hashtable<String, String>();\n parametros.put(\"identificador\", \"valor1\");\n\n return parametros;\n }", "title": "" }, { "docid": "13230dbdc631187669e155b8ba144e6d", "score": "0.6087068", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"username\", tempUsername);\n return params;\n }", "title": "" }, { "docid": "d525b09faac89f5fde096b6dbffa93ae", "score": "0.607682", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"custId\", \"58eb00\");\n return params;\n }", "title": "" }, { "docid": "cf15cb889c4e6f1164897770eb7960b2", "score": "0.60754186", "text": "private void doSetParameters( )\n {\n }", "title": "" }, { "docid": "18e983dd4de37f69a6330c6ef4479f09", "score": "0.60660386", "text": "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"username\", username);\r\n params.put(\"password\", password);\r\n return params;\r\n }", "title": "" }, { "docid": "f03e3c4cd9d6776cf1696a31269aa41b", "score": "0.60542434", "text": "MultivaluedMap<String, Object> reqParams();", "title": "" }, { "docid": "cc5a9ca5bdddd951a9f75030862a8d5e", "score": "0.6051963", "text": "@Override\n protected Map<String, String> getParams() {\n\n return param;\n }", "title": "" }, { "docid": "152bbcde33413ea19263df37bed6c44a", "score": "0.60439533", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"ubaid\", ubaidlocal);\n\n return params;\n }", "title": "" }, { "docid": "38a4c60cf22c806cbcc68edca8775d75", "score": "0.6042532", "text": "Map<String, String> getParameterValues();", "title": "" }, { "docid": "9e81fb019b1ec0ebeede771aba4813fc", "score": "0.60373414", "text": "@Override\n\tpublic List<NameValuePair> getRequestPutParams() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3acc7d639413f802e8b3ac7e65bda79b", "score": "0.6028726", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\t\t\t\t\tgoingto\n\n params.put(\"title\",title);\n params.put(\"message\",message );\n\n\n return params;\n }", "title": "" }, { "docid": "ce2c12c1cecfaae368ebee3b51494124", "score": "0.60258096", "text": "@Override\r\n\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\r\n\r\n\r\n params.put(\"Latitude\", String.valueOf(latlng.latitude));\r\n params.put(\"Longitude\", String.valueOf(latlng.longitude) );\r\n\r\n return params;\r\n }", "title": "" }, { "docid": "8bd92f249c2db1b45ea5e526cc43163c", "score": "0.5996214", "text": "@Override\r\n\tpublic void prepareFromRequest(PlaceRequest request) {\r\n\t\tsuper.prepareFromRequest(request);\r\n\t\t// Ziehen die Daten aus vorherige Seite\r\n\t\t// getParameter() s. PlaceRequest\r\n\t\t// tempData = request.getParameter(\"tempData\", \"temp\");\r\n\t\tcpu = request.getParameter(\"cpu\", cpu);\r\n\t\tram = request.getParameter(\"ram\", ram);\r\n\t\thdd = request.getParameter(\"hdd\", hdd);\r\n\t\tprice = request.getParameter(\"price\", price);\r\n\t\tlocation = request.getParameter(\"location\", location);\r\n\t\tcloudApps = request.getParameter(\"cloudApps\", cloudApps);\r\n\t}", "title": "" }, { "docid": "3a21cafd193a3806918af08bb28c602e", "score": "0.59924155", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"custId\", \"58eb00\");\n params.put(\"lat\",lat);\n params.put(\"lng\", lng);\n params.put(\"house_no\", flatNo);\n params.put(\"street\", street);\n params.put(\"city\", city);\n params.put(\"state\", state);\n params.put(\"country\", country);\n params.put(\"postal_code\", postalCode);\n params.put(\"title\", cmpTitle);\n params.put(\"details\", cmpDetails);\n params.put(\"status\", cmpStatus);\n\n return params;\n }", "title": "" }, { "docid": "9109f556958044eb11b7f075c8bcfc57", "score": "0.59855264", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"LoginForm[email]\", email);\n params.put(\"LoginForm[password]\", password);\n\n return params;\n }", "title": "" }, { "docid": "e77c412e9747b10d904f045bfe86800b", "score": "0.598087", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"cordinates\", address);\n\n return params;\n }", "title": "" }, { "docid": "38571860783aed47520f08d585aa27c5", "score": "0.5971719", "text": "protected abstract Response post(String path, List<Parameter> parameters) throws IOException, JSONException;", "title": "" }, { "docid": "d9a1b62b4151e08e300756e30643a4ef", "score": "0.59669524", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String fullname = editFullName.getText().toString();\n String nickname = editNickName.getText().toString();\n String userid = Integer.toString(m_Global.getUserLoginId());\n String usertelpno = editMobileNo.getText().toString();\n String useremail = editEmail.getText().toString();\n String dinasid = Integer.toString(m_User.DinasId);\n String idsatker = Integer.toString(m_User.SatkerId);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userid\", userid);\n params.put(\"nickname\", nickname);\n params.put(\"fullname\", fullname);\n params.put(\"usertelpno\", usertelpno);\n params.put(\"useremail\", useremail);\n params.put(\"dinasid\", dinasid);\n params.put(\"idsatker\", idsatker);\n return params;\n }", "title": "" }, { "docid": "bc23b9e25fd0b5d3ebd25a22be86c6f7", "score": "0.5951657", "text": "@Override\r\n\tprotected String requestText() {\n\t\tObtenerParametroRequest obtenerParametroRequest = new ObtenerParametroRequest();\r\n\t\tobtenerParametroRequest.setCodigo(codigo);\r\n\t\tobtenerParametroRequest.setDeposito(deposito);\r\n\t\tString request = JSONHelper.serializar(obtenerParametroRequest);\r\n\t\treturn request;\r\n\t}", "title": "" }, { "docid": "501d7929e2fc8ec4cab1890766b4a082", "score": "0.5945072", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", send_user_name);\n\n return params;\n }", "title": "" }, { "docid": "2eee26fc54a8fcd2a14e105501c00c23", "score": "0.594105", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"inviteCode\",\"\"+InviteCode_send);\n Log.d(TAG,\"params: \"+UserId+\"\\t\"+InviteCode_send);\n return params;\n }", "title": "" }, { "docid": "4b775255f14f5b1a679936dc42ca8a5b", "score": "0.5931552", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"AddressBook\");\n\n params.put(\"user_id\", userId);\n params.put(\"access_token\",Access_Token);\n\n return params;\n }", "title": "" }, { "docid": "7f03497db192c1b982abecc497c23e69", "score": "0.5929549", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"user_type\", globalClass.getUser_type());\n params.put(\"user_id\", globalClass.getId());\n\n Log.d(TAG, \"param: \"+params);\n\n return params;\n }", "title": "" }, { "docid": "d1a9d456ef4073b33116b67338960c3c", "score": "0.59099483", "text": "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"nomor\", nomor_hbi);\r\n params.put(\"deskripsi\", deskripsi_asset);\r\n params.put(\"jumlah\", jumlah_asset);\r\n params.put(\"merk\", merk_asset);\r\n params.put(\"type\", type_asset);\r\n params.put(\"nomor_seri\", nomor_seri);\r\n params.put(\"tanggal_akuisisi\", tanggal_akuisisi);\r\n params.put(\"userdept\", user_depart);\r\n params.put(\"hargarupiah\", harga_rupiah);\r\n params.put(\"hargadolar\", harga_dolar);\r\n params.put(\"userholder\", holder_person);\r\n params.put(\"kondisi\", kodisi_asset);\r\n params.put(\"lokasi\", lokasi_asset);\r\n params.put(\"lat\", lat);\r\n params.put(\"lng\", lng);\r\n params.put(\"foto\", foto);\r\n params.put(\"foto2\", foto2);\r\n params.put(\"foto3\", foto3);\r\n params.put(\"foto4\", foto4);\r\n params.put(\"keterangan\", ket);\r\n return params;\r\n }", "title": "" }, { "docid": "25b1522aeeaa6d564bbb0d6876383aca", "score": "0.59079903", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"material_id\", material);\n params.put(\"location\", cordinates);\n params.put(\"quality_id\", quality);\n params.put(\"size_id\", size);\n\n //params.put(\"code\", \"blst786\");\n // params.put(\"\")\n return params;\n }", "title": "" }, { "docid": "8e079dd10d7e81fa02f80708541d3574", "score": "0.5902498", "text": "@Test\n void getParameters() {\n Map<String, String> params = testedRequest.getParameters();\n Assertions.assertEquals(3, params.size());\n Assertions.assertEquals(\"16\", params.get(\"Content-Length\"));\n Assertions.assertEquals(\"text/html\", params.get(\"Content-Type\"));\n Assertions.assertEquals(\"host.com\", params.get(\"Host\"));\n }", "title": "" }, { "docid": "1f5a60750f3561da8f64a082be7ec00f", "score": "0.5901451", "text": "public static Map<String, String> constructRequestParameters(String tranId, double total) {\n\r\n String baseUrl = \"http://103.28.121.29:8080/ecommerce/\";//Request.Url.Scheme + \"://\" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + \"/\";\r\n Map<String, String> postData = new HashMap<String, String>();\r\n postData.put(\"total_amount\", total + \"\");\r\n postData.put(\"tran_id\", tranId);\r\n postData.put(\"success_url\", baseUrl + \"success?action=cartorder&trsansid=\" + tranId);\r\n postData.put(\"fail_url\", baseUrl + \"fail.jsp\");\r\n postData.put(\"cancel_url\", baseUrl + \"cancel.jsp\");\r\n postData.put(\"version\", \"3.00\");\r\n return postData;\r\n\t}", "title": "" }, { "docid": "90ac820d127cb53cabd9fff8c2f53878", "score": "0.5896081", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", id);\n\n return params;\n }", "title": "" }, { "docid": "df1cb04a78a802830eb851d28a3d8364", "score": "0.5891525", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"material_id\", \"1\");\n params.put(\"location\", \"Nairobi\");\n params.put(\"quality_id\", \"1\");\n params.put(\"size_id\", \"1\");\n\n //params.put(\"code\", \"blst786\");\n // params.put(\"\")\n return params;\n }", "title": "" }, { "docid": "9844f9ea8f08f7b1386a317a60b818ef", "score": "0.5890826", "text": "@Override\r\n protected Map<String, String> getParameterMap()\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "17b331e3a7c23907a3d23758d9638f23", "score": "0.5884665", "text": "@Override\n public Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\",name);\n params.put(\"surname\",surname);\n params.put(\"time\", time);\n params.put(\"userID\", userID);\n params.put(\"meteo\", spinner);\n params.put(\"data\", cu);\n Log.d(\"Popolazione\", time+\" \"+\" \"+ userID+ \" \"+ currentTime);\n return params;\n }", "title": "" }, { "docid": "2b9d4c8f3d9ab0b3591ee33c1913ac46", "score": "0.588289", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", Integer.toString(userentity.getID()));\n return params;\n }", "title": "" }, { "docid": "82a495bb58af09a3e37262b080465523", "score": "0.5866029", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", existing_name);\n params.put(\"cordinates\", existing_cordinates);\n\n return params;\n }", "title": "" }, { "docid": "669c394689a9616f3141e6087d9295ad", "score": "0.58525646", "text": "@Override\n\tprotected ArrayList<NameValuePair> getPostArgs() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "020e570bf7f093ef80fc25b0596728b7", "score": "0.58514744", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"picmeId\",pickmeid);\n params.put(\"mobileNo\",mob);\n\n Log.d(\"params--->\",params.toString());\n\n return params;\n }", "title": "" }, { "docid": "753cb43a63e35b9e76d79a3800207a8d", "score": "0.58514637", "text": "public void postData(){\n HashMap<String, Object> param = new HashMap<>();\n param.put(\"username\", \"new username\");\n param.put(\"address\", \"new address\");\n param.put(\"email\",\"new email\");\n\n aQuery.ajax(post_url,param,JSONArray.class, new AjaxCallback<JSONArray>(){\n @Override\n public void callback(String url, JSONArray object, AjaxStatus status) {\n super.callback(url, object, status);\n Log.i(\"response\", \"response \" + object);\n fetchData();\n }\n });\n }", "title": "" }, { "docid": "44ba66ab4a3c45768b91272984de8250", "score": "0.5846227", "text": "public void setParamMap(Map<String, Object> map)\n/* */ {\n/* 56 */ this.paramMap = map;\n/* 57 */ this.requestBody = ((String)this.paramMap.get(\"body\"));\n/* */ }", "title": "" }, { "docid": "d8091e4ff474419da8a0dd2dad8de508", "score": "0.5845672", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"restaurant_id\", id);\n return params;\n }", "title": "" }, { "docid": "b0a8614f9f864521f6f7ca2c788bab2a", "score": "0.58279943", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n // The first argument should be same sa your MySQL database table columns.\n params.put(\"username\", usernameHolder);\n params.put(\"Password\", PasswordHolder);\n return params;\n }", "title": "" }, { "docid": "33f0e0e6c08104f7a1315761a6dedcf4", "score": "0.5825952", "text": "private RequestBuilder preparePostForRegisterForm(String paramName, String paramValue) {\n MultiValueMap<String, String> parameters = new LinkedMultiValueMap<>();\n parameters.set(\"userName\", \"test1\");\n parameters.set(\"email\", \"test@test.pl\");\n parameters.set(\"password\", \"123456\");\n parameters.set(\"passwordVerification\", \"123456\");\n\n // replace value for parameter given in arguments\n parameters.set(paramName, paramValue);\n\n return post(\"/register\")//\n .params(parameters);\n }", "title": "" }, { "docid": "7b71662f5cc20531eded237e011365c1", "score": "0.58216393", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n Map<String,String> parametros=new HashMap<String, String>();\n\n //Meidante el método put, definimos los datos que vamos a enviar.\n\n parametros.put(\"Id_Grupo\",textIdGrupo.getText().toString());\n parametros.put(\"idok\",IdActualizar);\n\n\n return parametros;\n }", "title": "" }, { "docid": "485b4f7319b5621af916ed2e7370831d", "score": "0.5814814", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"username\",clientUsername);\n return params;\n }", "title": "" }, { "docid": "98af7c5b3f0c9cd08b3362f6a414acc2", "score": "0.5811912", "text": "@Override\n\t\t\t\t\tpublic HttpParams getParams() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "b8729941542a705cb26fbbc57d1a6cac", "score": "0.5799435", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String,String> params = new HashMap<String,String>();\n // jika id kosong maka simpan, jika id ada nilainya maka update\n if (id.isEmpty()){\n params.put(\"nama\", nama);\n params.put(\"posisi\", posisi);\n params.put(\"gajih\", gajih);\n } else {\n params.put(\"id\", id);\n params.put(\"nama\", nama);\n params.put(\"posisi\", posisi);\n params.put(\"gajih\", gajih);\n }\n\n return params;\n }", "title": "" }, { "docid": "aba00030f0e21eed7999902457ccf703", "score": "0.57978755", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"picmeId\",strPicmeId);\n params.put(\"DOB\",strDob);\n params.put(\"deviceId\",strdeviceId);\n params.put(\"mobileCheck\",mobileCheck);\n params.put(\"mLatitude\",mLatitude);\n params.put(\"mLongitude\",mLongitude);\n params.put(\"appversion\",versionCode);\n params.put(\"androidId\",androidId);\n\n Log.d(\"params--->\",params.toString());\n\n return params;\n }", "title": "" }, { "docid": "b1b65ac6e92af1ba5d277be659016a36", "score": "0.57900614", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"utilisateur\", s);\n return params;\n }", "title": "" }, { "docid": "b1b65ac6e92af1ba5d277be659016a36", "score": "0.57900614", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"utilisateur\", s);\n return params;\n }", "title": "" }, { "docid": "337c01c21e8526b5db695ecc408bb0b5", "score": "0.5790016", "text": "public void getParaValues(HttpServletRequest request, HttpServletResponse response) {\r\n\t\t// Add Update Or Delete Parameters\r\n\t\toperation = request.getParameter(\"operation\");\r\n\r\n\t\t// context para for json files location\r\n\t\tjsonFilePath = request.getServletContext().getInitParameter(\"JsonFilePath\");\r\n\r\n\t\t// Insert Form Parameters\r\n\r\n\t\tvanNumber = request.getParameter(\"vanNumber\");\r\n\t\tcompanyName = request.getParameter(\"companyName\");\r\n\t\tvanModel = request.getParameter(\"vanModel\");\r\n\t\townerName = request.getParameter(\"ownerName\");\r\n\t\tfitness = request.getParameter(\"fitness\");\r\n\t\tvanCapacity = request.getParameter(\"vanCapacity\");\r\n\t\tinsuranceNo = request.getParameter(\"insuranceNo\");\r\n\t\tinsStartDate = request.getParameter(\"insStartDate\");\r\n\t\tinsEndDate = request.getParameter(\"insEndDate\");\r\n\t\tpermitNo = request.getParameter(\"permitNo\");\r\n\t\tpermitStartDate = request.getParameter(\"permitStartDate\");\r\n\t\tpermitEndDate = request.getParameter(\"permitEndDate\");\r\n\r\n\t\t// Update Or Delete Parameters\r\n\t\trowId = request.getParameter(\"updatedRow[id]\");\r\n\t\tupdatedCellVanNumber = request.getParameter(\"updatedRow[vanNumber]\");\r\n\t\tupdatedCellCompanyName = request.getParameter(\"updatedRow[companyName]\");\r\n\t\tupdatedCellVanModel = request.getParameter(\"updatedRow[vanModel]\");\r\n\t\tupdatedCellOwnerName = request.getParameter(\"updatedRow[ownerName]\");\r\n\t\tupdatedCellFitness = request.getParameter(\"updatedRow[fitness]\");\r\n\t\tupdatedCellVanCapacity = request.getParameter(\"updatedRow[vanCapacity]\");\r\n\t\tupdatedCellInsuranceNo = request.getParameter(\"updatedRow[insuranceNo]\");\r\n\t\tupdatedCellInsStartDate = request.getParameter(\"updatedRow[insStartDate]\");\r\n\t\tupdatedCellInsEndDate = request.getParameter(\"updatedRow[insEndDate]\");\r\n\t\tupdatedCellPermitNo = request.getParameter(\"updatedRow[permitNo]\");\r\n\t\tupdatedCellPermitStartDate = request.getParameter(\"updatedRow[permitStartDate]\");\r\n\t\tupdatedCellPermitEndDate = request.getParameter(\"updatedRow[permitEndDate]\");\r\n\r\n\t}", "title": "" }, { "docid": "e497e923392093ffe715c6cf8648eb8e", "score": "0.5784121", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n // jika id kosong maka simpan, jika id ada nilainya maka update\n\n params.put(\"id\", id);\n params.put(\"nama\", nama);\n params.put(\"jenis_usaha\", jenis_usaha);\n params.put(\"alamat\", alamat);\n params.put(\"gambar\", gambar);\n params.put(\"isi_laporan\", isi_laporan);\n params.put(\"nama_pelapor_tmb\", nama_pelapor_tmb);\n\n\n return params;\n }", "title": "" }, { "docid": "b138e8c602197c7fb450b7d9e3e29131", "score": "0.57768136", "text": "@Override\r\n protected Map<String,String> getParams()throws AuthFailureError {\r\n Map<String,String> parametros=new HashMap<String, String>();\r\n // los datos e agregan en orden de valor asociativo y valor a registrar\r\n // El valor Asociativo es igual al que presenta la estructura de datos del webService en su apartado clave.\r\n parametros.put (\"codigo\",codigo);\r\n parametros.put (\"descripcion\",descripcion);\r\n parametros.put (\"presentacion\", presentacion+\"\");\r\n parametros.put(\"costo\",costo);\r\n parametros.put(\"precio\",precio);\r\n parametros.put(\"marca\",marca);\r\n parametros.put(\"username\",rr.fk_username);\r\n //Devuelve los parametros agregados para ser procesados en la estructura.\r\n return parametros;\r\n }", "title": "" }, { "docid": "1ab11458d37dc3784c0e932000ba491c", "score": "0.5776644", "text": "Map<String, String> parameters();", "title": "" }, { "docid": "1ab11458d37dc3784c0e932000ba491c", "score": "0.5776644", "text": "Map<String, String> parameters();", "title": "" }, { "docid": "1ee9f07a5798db4bc8307f28ae629e1e", "score": "0.5767861", "text": "public static void postRequest() {\r\n\t\t\r\n\t\tresponse = request\r\n\t\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t\t.body(webApiMap.get(\"requestBody\"))\r\n\t\t\t\t\t.when()\r\n\t\t\t\t\t\t.post(webApiMap.get(\"endpoint\"))\r\n\t\t\t\t\t.then()\r\n\t\t\t\t\t\t.extract()\r\n\t\t\t\t\t\t.response();\r\n\t\t\r\n\t\tresponse.prettyPrint();\r\n\t}", "title": "" }, { "docid": "eaed2fbf48ab70460aee7f5c942fe904", "score": "0.5758617", "text": "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n\n return params;\n }", "title": "" }, { "docid": "61b35e9fc51a72bad017d99c5e8be054", "score": "0.57555145", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(ARG_USERID, getArguments().getString(ARG_USERID));\n //params.put(ARG_STATUS, getArguments().getString(ARG_STATUS));\n return params;\n }", "title": "" }, { "docid": "58c4400419c53bdea2f827b54264ae82", "score": "0.5752164", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String params = getRequestPostStr(request);\r\n processRequest(request, response, params);\r\n }", "title": "" }, { "docid": "298ebad9e0f3754651b78eaf5ce2e8e4", "score": "0.57448524", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> parametros = new HashMap<>();\n Log.i(\"usuarioBean\",usuarioBean.toString());\n parametros.put(\"email\",usuarioBean.getEmail());\n parametros.put(\"senha\",usuarioBean.getSenha());\n parametros.put(\"nome\",usuarioBean.getNome());\n parametros.put(\"dataNascimento\",usuarioBean.getDataNascimento());\n parametros.put(\"sexo\",usuarioBean.getSexo().toString());\n parametros.put(\"telefone\",usuarioBean.getTelefone());\n return parametros;\n }", "title": "" }, { "docid": "4a5cc986fbc1cd80a2784470dedd13fc", "score": "0.57419646", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n Log.d(\"lockid\",lockid);\n params.put(\"username\",AppConfig.CURRENT_USERNAME);\n params.put(\"lockid\",AppConfig.CURRENT_LOCKID);\n params.put(\"token\",AppConfig.TOKEN);\n\n return params;\n }", "title": "" }, { "docid": "d31b5a162b01951495de1ec541150ce7", "score": "0.5739637", "text": "protected Map<String, String> updateParameters() {\n \n Map<String, String> newParams = new HashMap<>();\n newParams.put(\"FIELD_FILE\", field_fileTF.getText());\n newParams.put(\"ROBOT_FILE\", robot_fileTF.getText());\n newParams.put(\"CALC_ALLOW_WAYPOINT_REVERSALS\", Boolean.toString(calc_reversalCB.isSelected()));\n newParams.put(\"CALC_ALLOW_STRAFE\", Boolean.toString(calc_reversalCB.isSelected()));\n return newParams;\n \n }", "title": "" }, { "docid": "719b90e7d1f41bc774f9640377b7e8eb", "score": "0.5730008", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> parametros = new HashMap<>();\n Log.i(\"usuarioBean\",usuarioBean.toString());\n parametros.put(\"email\",usuarioBean.getEmail());\n parametros.put(\"senha\",usuarioBean.getSenha());\n\n return parametros;\n }", "title": "" } ]
0fa87de94069bc544c0fed81b2a4a260
Is this thread actively tracing at this moment.
[ { "docid": "1c99b03de611b23021c1f0dcfacb3634", "score": "0.7209377", "text": "public boolean isWithinTrace() {\n return isWithinTrace;\n }", "title": "" } ]
[ { "docid": "58bc351484033b6eef40396cebf3c50b", "score": "0.7367808", "text": "public static boolean isTracing()\n {\n return instance.get() != null;\n }", "title": "" }, { "docid": "811ad558b1f7bf1b9f4d9b582df58924", "score": "0.70898247", "text": "public boolean isTraceTarget() {\n\t\treturn delegateId_ == watchedCpp;\n\t}", "title": "" }, { "docid": "7422b2afa599098ebd3dae823572f0da", "score": "0.70229703", "text": "public boolean active() {\n return thread != null;\n }", "title": "" }, { "docid": "b98f9d7fcf072bfc8529acff78b40774", "score": "0.69974166", "text": "public synchronized boolean isStarted() {\n return thread != null;\n }", "title": "" }, { "docid": "ced4a73101b70d055c069ffa7dc0f9cf", "score": "0.6791771", "text": "public boolean amIInDispatcher() {\r\n return Thread.currentThread() == ntf.lastCreatedThread;\r\n }", "title": "" }, { "docid": "af883f9c4cae567ca8d5aad7b06d18d5", "score": "0.67592394", "text": "public synchronized boolean isMonitoring() { return (timer != null); }", "title": "" }, { "docid": "ad4847562625eabd419500f1d4ce43cd", "score": "0.66214734", "text": "boolean thisSessionContext() {\n return (Thread.currentThread() == myThread) ;\n }", "title": "" }, { "docid": "02d920198f86c361e443fa018ca5825c", "score": "0.66160536", "text": "public boolean isInternalThreadRunning() {\n\t\treturn m_ThreadRunning;\n\t}", "title": "" }, { "docid": "13570ab9aed735a032543aebb457100c", "score": "0.65211976", "text": "boolean isThreadLocal(Thread currentThread);", "title": "" }, { "docid": "eec4e80a9584cf9132c4df50461399b2", "score": "0.64987963", "text": "public boolean isRunning() {\n return System.currentTimeMillis() - lastActivated < milliseconds;\n }", "title": "" }, { "docid": "5a5d60ff04509b287920f65e0722a481", "score": "0.6434224", "text": "synchronized public boolean isRunning() {\n\t\treturn timer != null;\n\t}", "title": "" }, { "docid": "fd381c8e03420f4101a0923904cfd0b5", "score": "0.63679963", "text": "public boolean isTraceExecution() {\n return traceExecution;\n }", "title": "" }, { "docid": "ae4bac96adc7d268bdc53fc223d94887", "score": "0.63521314", "text": "synchronized boolean isSessionActive() {\n //return ((myThread != null) && (myThread.isAlive()));\n return ((adaptor.isActive()) && (myThread != null) && (myThread.isAlive()));\n }", "title": "" }, { "docid": "c72645694489abbd5225abb37c306220", "score": "0.6345462", "text": "final boolean isRunning() {\n return m_curNode != null;\n }", "title": "" }, { "docid": "0a3a23076b085f0e144493294f2fb552", "score": "0.6338724", "text": "private boolean threadNotInterrupted() {\n return !Thread.currentThread().isInterrupted();\n }", "title": "" }, { "docid": "8af75d374e3bd39877529e8f5aa2bdf9", "score": "0.6330594", "text": "public synchronized boolean isStarted() { return (this.mState == 4); }", "title": "" }, { "docid": "4697c83235c4783ff5352d364bb4b591", "score": "0.631491", "text": "boolean isStarted();", "title": "" }, { "docid": "34747399de66d0085dca0779964e5a10", "score": "0.6305596", "text": "public boolean isStarted();", "title": "" }, { "docid": "6ad2ad7b7c368998e81fcda4d1111c2e", "score": "0.63013846", "text": "boolean hasStarted();", "title": "" }, { "docid": "0080b10d47a475ee8b0db6233b7d4611", "score": "0.6298269", "text": "protected boolean isLogEnabled() {\n\t\treturn state().ordinal() <= State.RUNNING.ordinal();\n\t}", "title": "" }, { "docid": "01905dac8ea86a0ed6744b98fa72eed6", "score": "0.62924236", "text": "public boolean isRunning(){\n return this.isAlive();\n }", "title": "" }, { "docid": "ff35c9fa7f5efa195473ad472e3da887", "score": "0.62857974", "text": "public boolean isTraceMode() {\n return fTrace;\n }", "title": "" }, { "docid": "113bf10ede9eee9d6288b445e824681a", "score": "0.62769043", "text": "public boolean traded() {\n\t\treturn traded;\n\t}", "title": "" }, { "docid": "ec2c543629117c3493c1d7f56922208b", "score": "0.62755454", "text": "public boolean isRunning()\n\t{\n\t\treturn m_thread != null && m_thread.isAlive();\n\t}", "title": "" }, { "docid": "565e96c63dca530610ab4b122b59c32d", "score": "0.62665373", "text": "public boolean isRunning () {\n if (movieThread == null)\n return false;\n else\n return true;\n }", "title": "" }, { "docid": "82996b15161ab62337c95edb7f14b2dc", "score": "0.6254134", "text": "protected boolean isComBufferTraceOn()\n {\n // The trace flag indicates if tracing is on.\n return comBufferTraceOn;\n }", "title": "" }, { "docid": "497139f0c89589b302aefdc679493b85", "score": "0.62302846", "text": "public static boolean m9803a(Context context) {\n return Thread.currentThread().equals(context.getMainLooper().getThread());\n }", "title": "" }, { "docid": "58ce41860e5716642c305911f291eaf9", "score": "0.6226059", "text": "public boolean isRunning()\r\n {\r\n return state > 1;\r\n }", "title": "" }, { "docid": "9a6bdfe63e3c2fce308c1c0c356f8ee9", "score": "0.6215603", "text": "Boolean hasStarted();", "title": "" }, { "docid": "7a7aa401f82ea725deee33dae95f77e5", "score": "0.6195501", "text": "public static synchronized boolean isStarted() {\n\t\treturn executor_ != null;\n\t}", "title": "" }, { "docid": "8a4c249921d56af4773ab8605adc65b5", "score": "0.61560094", "text": "public static boolean isTracingEnabled() {\n final IScopeContext[] lookupOrder = new IScopeContext[] { new InstanceScope() };\n IPreferencesService prefService = Platform.getPreferencesService();\n prefService.setDefaultLookupOrder(TracingConstants.BUNDLE_ID, null, new String[] { InstanceScope.SCOPE });\n return prefService.getBoolean(TracingConstants.BUNDLE_ID, TracingConstants.PREFERENCE_ENABLEMENT_IDENTIFIER, false, lookupOrder);\n }", "title": "" }, { "docid": "a1f29dc7d791d014a5f10d4b60a31cc9", "score": "0.6146579", "text": "public boolean isThrottling() {\n\t\treturn throttleLatch.get()!=null;\n\t}", "title": "" }, { "docid": "a0c7e5735eefaa098600fdcbae669d6a", "score": "0.613564", "text": "public boolean isTargeted()\n {\n Trace trace = getTrace();\n TracePoint dataPoint = getChartView().getTargDataPoint();\n return dataPoint != null && dataPoint.getTrace() == trace;\n }", "title": "" }, { "docid": "3d518db0f00e101bf3e74a993b666284", "score": "0.6116102", "text": "public boolean isRunning() {\n return currentRunningCount.get() != 0;\n }", "title": "" }, { "docid": "617d9d1a06b3b96fa2098834f2f1d01b", "score": "0.61140066", "text": "boolean isValidThread () {\n\t\treturn control.getDisplay ().getThread () == Thread.currentThread ();\n\t}", "title": "" }, { "docid": "35f87330746ce93d03f1f485727a6aa6", "score": "0.6111153", "text": "boolean isTimelineRunning(){\n if (control == null)\n getMissionControl();\n if (control == null)\n return false;\n\n return control.isTimelineRunning();\n }", "title": "" }, { "docid": "838a299f14338e00eb64c6a13d7dd348", "score": "0.610684", "text": "public boolean isRunning()\n {\n \treturn _myTimer.isRunning();\n }", "title": "" }, { "docid": "a9c9251bafe29c66c2d653ee27a6c031", "score": "0.61058086", "text": "public boolean isRunning() {\n\treturn threadRunning;\n }", "title": "" }, { "docid": "1c7d46c0114a0d520bce449627d28b8a", "score": "0.61037976", "text": "boolean isSynchronizationContextRequested();", "title": "" }, { "docid": "f8ec1b7331e6bf991008041342602ca1", "score": "0.6092184", "text": "public boolean isSetTraceInfo() {\n return this.traceInfo != null;\n }", "title": "" }, { "docid": "87db4b44f09cc21e196c08977ffe1ecd", "score": "0.6090635", "text": "public boolean isActive()\n {\n return isAlive();\n }", "title": "" }, { "docid": "d56486d8d5171b08a4eb62fc291ec3ee", "score": "0.6080927", "text": "private boolean isInterrupted() {\n return Thread.currentThread().isInterrupted();\n }", "title": "" }, { "docid": "b92a539558ef87270994c7ff4a0dd469", "score": "0.6074514", "text": "public boolean hasTraceID() {\n return fieldSetFlags()[1];\n }", "title": "" }, { "docid": "0f2306d8a643b62fa8cdc38b24919ff0", "score": "0.60742766", "text": "public boolean isRunning() {\n\t\treturn (fSystemEventHandler != null);\n\t}", "title": "" }, { "docid": "436f9865f55a61b3a08fbadf7d28e2ea", "score": "0.6074059", "text": "protected boolean stillRunning()\n\t{\n\t\treturn !tickingRunnable.isTickingStopped();\n\t}", "title": "" }, { "docid": "c2e517377fd2373a72d8635aae258559", "score": "0.60730827", "text": "public boolean isAlive(){\n\t\treturn this.getLP()>this.getDR();\n\t}", "title": "" }, { "docid": "2097ccbe5a0df1aa246d6d62ed5b0188", "score": "0.6066336", "text": "public boolean isRunning() {\n return !isEventEmpty();\n }", "title": "" }, { "docid": "7e2c368cea9bcd4efb8982ca17913ae5", "score": "0.60656965", "text": "public boolean isAttackingNow()\r\n\t{\r\n\t\treturn getAttackEndEvtReadyToAct().isScheduled();\r\n\t}", "title": "" }, { "docid": "c467c6d8f71d9edbe800635cb1688bfd", "score": "0.60641986", "text": "public boolean isRunning() {\n\t\treturn timer.isRunning();\n\t}", "title": "" }, { "docid": "ad3fc4d4e52bf4c11457d9fbc336f810", "score": "0.6055133", "text": "protected boolean isTestThread() {\n assertNotNull(\"Test case thread not set?\", threadAndTestNameRule.testCaseThread);\n return Thread.currentThread() == threadAndTestNameRule.testCaseThread;\n }", "title": "" }, { "docid": "e4a8c1c13aa27b17d7718f33f1bff069", "score": "0.6050017", "text": "public boolean isThrottleActive()\r\n/* 30: */ {\r\n/* 31: 95 */ return this.concurrencyLimit > 0;\r\n/* 32: */ }", "title": "" }, { "docid": "b90ada9a5e623ec4d0e47871cd21e757", "score": "0.60484624", "text": "public synchronized boolean isStarted(){\n\t\treturn mStarted;\n\t}", "title": "" }, { "docid": "cf95f91b8ce71b59d00e7f73fb321aeb", "score": "0.6043245", "text": "public boolean isEdt() {\n return edt == Thread.currentThread();\n }", "title": "" }, { "docid": "ced6bc8705ddeb369d03b5f03c4fbde8", "score": "0.6031198", "text": "public boolean isHeldByCurrentThread() {\n \treturn (lockHolder == KThread.currentThread());\n }", "title": "" }, { "docid": "2edc78f3212c0c990cb5b358808ed3be", "score": "0.6019457", "text": "public boolean isRunning() {\n\t\treturn _stopException != null;\n\t}", "title": "" }, { "docid": "67cad5c8a61dbe10731dbea6c16b852c", "score": "0.6017192", "text": "public final boolean isActive() {\n return !stopped;\n }", "title": "" }, { "docid": "787421e88591d315e689eab725d48fc7", "score": "0.60124063", "text": "public boolean isActive() {\n if ((System.currentTimeMillis() - lastEventTime) <= ACTIVE_PERIOD_MS) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "f701ff4ffb0f06dd95f8b01f8a8db969", "score": "0.60020113", "text": "boolean hasImmediateStartNeeded();", "title": "" }, { "docid": "a3170be5365ca0ffc7d9ff63cf02bd20", "score": "0.5994256", "text": "public boolean isTracked() {\n return tracked;\n }", "title": "" }, { "docid": "75856f1b4076f2bba8520c39d819d4ae", "score": "0.5985388", "text": "public boolean isTraceEnabled() {\n\t\treturn traceSetting != null;\n\t}", "title": "" }, { "docid": "1db6a93501047f4ded29c0765b326298", "score": "0.5984545", "text": "public boolean isAlive() {\r\n\t\t\treturn state;\r\n\t\t}", "title": "" }, { "docid": "a118fb0a2c5092a3d31e9b5b3cea0ae7", "score": "0.5982472", "text": "public boolean isRunning() {\n\t\treturn refreshTimer.isRunning();\n\t}", "title": "" }, { "docid": "184d6cce66b8610ac93d242e95bd2a3d", "score": "0.59801495", "text": "public boolean hasOccurred() {\n return occurred_ != null;\n }", "title": "" }, { "docid": "d5cd9dbcbe5c2d10427ad538005164ff", "score": "0.5979274", "text": "protected final boolean updateInProgress() {\r\n return updatingThread == Thread.currentThread();\r\n }", "title": "" }, { "docid": "c9aff0b96486f293e5941a204664ec01", "score": "0.59777516", "text": "private static boolean isUIThread() {\n\t\treturn Thread.currentThread() == getDisplay().getThread();\n\t}", "title": "" }, { "docid": "5fecae8288496ae2c65186c2defc2a61", "score": "0.59773946", "text": "public boolean isAlive() {\r\n\t\treturn state;\r\n\t}", "title": "" }, { "docid": "f4985b1e2f9f9fbfa6b5b96efc8afd60", "score": "0.5971966", "text": "public static boolean isActivated() {\n return Tracer.enabled;\n }", "title": "" }, { "docid": "d4b8fa7763791768bc103d0a3e2cf15d", "score": "0.5966962", "text": "public boolean isInterrupted()\n {\n LOGGER.trace(\"Thread isInterrupted requested\");\n \n return this.thread.isInterrupted();\n }", "title": "" }, { "docid": "5895859953e6b53d47c332d0589a4fba", "score": "0.5966775", "text": "@MainThread\n public boolean isRecording() {\n checkMainThread();\n return mActiveRecording != null && !mActiveRecording.isClosed();\n }", "title": "" }, { "docid": "73037104de034088335359913f6795a6", "score": "0.5954823", "text": "public boolean isTimer() { return true; }", "title": "" }, { "docid": "cf94098b4062a0700652acfb927905d7", "score": "0.59506524", "text": "protected boolean didPerfettoStartSince(String date) throws Exception {\n final String PERFETTO_TAG = \"perfetto\";\n final String PERFETTO_STARTED_STRING = \"Enabled tracing\";\n final String PERFETTO_STARTED_REGEX = \".*\" + PERFETTO_STARTED_STRING + \".*\";\n // TODO: Do something more robust than this in case of delayed logging.\n Thread.sleep(1000);\n String log = getLogcatSince(date, String.format(\n \"-s %s -e %s\", PERFETTO_TAG, PERFETTO_STARTED_REGEX));\n return log.contains(PERFETTO_STARTED_STRING);\n }", "title": "" }, { "docid": "68cf97f85348137ddfce18687f41fc42", "score": "0.59500766", "text": "@Override\r\n\tpublic boolean isAlive() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9082404fea4db7240ae9e2e687bea784", "score": "0.5945794", "text": "public boolean isActive(boolean performTimeoutCheck)\n {\n if (active && performTimeoutCheck)\n {\n if (lastReceivedFrame == null)\n {\n return false;\n }\n else\n {\n long timeSinceLastReceivedFrameMs = System.currentTimeMillis()\n - lastReceivedFrame.getReceivedMs();\n\n return timeSinceLastReceivedFrameMs\n <= MediaStreamTrackDesc.SUSPENSION_THRESHOLD_MS;\n }\n }\n else\n {\n return active;\n }\n }", "title": "" }, { "docid": "de621f5e0f6039ccbf0fccb0d1ac8872", "score": "0.59456086", "text": "public static boolean isInMainThread() {\n if (!isInitialed)\n return true;\n else\n return _thread_ref != null && _thread_ref.get() == Thread.currentThread();\n }", "title": "" }, { "docid": "83c7714df5c61a07a7cfb85f632280c6", "score": "0.594491", "text": "public boolean isActive () {\n\t\treturn jniIsActive(addr);\n\t}", "title": "" }, { "docid": "d5a9ec06412fe82a449463db06f52069", "score": "0.59422874", "text": "public boolean isStarted(){\n return isStarted;\n }", "title": "" }, { "docid": "794efcd05332be26c82088c35afdb057", "score": "0.5941637", "text": "public boolean isRunning();", "title": "" }, { "docid": "794efcd05332be26c82088c35afdb057", "score": "0.5941637", "text": "public boolean isRunning();", "title": "" }, { "docid": "9dbf3a377cd6ecde824dc73590926b8f", "score": "0.5941285", "text": "public boolean isExcuting() {\n return mStarted;\n }", "title": "" }, { "docid": "cf1c53f164624da5870770630562016c", "score": "0.59370667", "text": "public boolean takeControl() {\n\t\tif(Values.Instance().justStarted(starttime)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "48ebe6cf397786dbb7339c5f971f72bf", "score": "0.59310716", "text": "public boolean isTraceEnabled() { return _trace.isEnabled(); }", "title": "" }, { "docid": "91728c34f058a5bfd45bd138285dc199", "score": "0.5925186", "text": "public boolean isMonarchyThreadOpen() {\n synchronized(LOCK) {\n return handler.get() != null;\n }\n }", "title": "" }, { "docid": "9a921cbb67970f9f941877e5b973efab", "score": "0.5924758", "text": "public boolean isAlive();", "title": "" }, { "docid": "e464de8d3a391faddff5b19d72438a5c", "score": "0.5923232", "text": "public boolean isRunning() {\n return !arret;\n }", "title": "" }, { "docid": "81ca6565b0f37b21bde21bfa56e64df7", "score": "0.591023", "text": "public boolean isStarted() {\n return (started && (!stopped));\n }", "title": "" }, { "docid": "df2633c6dad2cdb5d39308d6da39feca", "score": "0.590611", "text": "public boolean isStopped() {\n return pausedWhenRunning == false && thread == null ? true : false;\n }", "title": "" }, { "docid": "fbae3ae27f0d57074ebf0270a6156a55", "score": "0.5901721", "text": "public boolean usesAniThread() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0d03600e4fcb2d87e1b0202877e41d4f", "score": "0.5898991", "text": "@Override\n public synchronized boolean haveIWon(){\n ((Spectators)Thread.currentThread()).setSpectatorsState(SpectatorsState.WATCHING_A_RACE);\n return this.races.haveIWon();\n }", "title": "" }, { "docid": "e70422d387dc517b1508ef06fd4af5b7", "score": "0.5891344", "text": "public boolean isAlive(){\n return this.isAlive;\n }", "title": "" }, { "docid": "4c484cdfdcb245ae22a587d6758485df", "score": "0.589105", "text": "public boolean isAlive() {\n\treturn _hitPts > 0;\n }", "title": "" }, { "docid": "a81b35dddfb2dbc4e64120394ccc9d78", "score": "0.5881266", "text": "public boolean isTraceDisabled() { return _trace.isDisabled(); }", "title": "" }, { "docid": "a35c1339348664baf4ae85b9a06c32a5", "score": "0.58796936", "text": "default boolean isSchedulerThread() {\n return isSchedulerThread(Thread.currentThread());\n }", "title": "" }, { "docid": "1f4c81ea7936ce71d4c448158c37b721", "score": "0.5878123", "text": "@Override\r\n\tpublic boolean isAlive() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e9932a04deccf7aaf8919079ea51ec1d", "score": "0.5875038", "text": "boolean isRunning();", "title": "" }, { "docid": "e9932a04deccf7aaf8919079ea51ec1d", "score": "0.5875038", "text": "boolean isRunning();", "title": "" }, { "docid": "e9932a04deccf7aaf8919079ea51ec1d", "score": "0.5875038", "text": "boolean isRunning();", "title": "" }, { "docid": "e9932a04deccf7aaf8919079ea51ec1d", "score": "0.5875038", "text": "boolean isRunning();", "title": "" }, { "docid": "7bda047a9523bbd0057867c1ebe45a33", "score": "0.58748484", "text": "private static boolean isIntentServiceThread() {\n String threadName = Thread.currentThread().getName();\n return threadName != null && threadName.startsWith(\"IntentService[\");\n }", "title": "" }, { "docid": "15fbfa07216efe698eb15f62f234768c", "score": "0.58611435", "text": "public boolean isAlive(){\n\t\tif(alive){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "d841b3f739a4f4b433401194c5ad35ae", "score": "0.58585113", "text": "public boolean isActive(Long projectId) {\n return learnerThreads.containsKey(projectId);\n }", "title": "" } ]
18c74f3ba9ee1dfce6bb88142cc18b66
test no args defaulting
[ { "docid": "04ecb360a1fe7ebbd413dd335d8a7f6b", "score": "0.0", "text": "@Test\n public void testProcess() {\n runParseTest(new String[0],\n ArgParser.DEFAULT_DELIVERY_FILE,\n ArgParser.DEFAULT_PLACEMENTS_FILE,\n null,\n true);\n\n // test with all args specified\n runParseTest(new String[]{\n \"-df\", OVERWRITE_DELIVERY_FILE,\n \"-pf\", OVERWRITE_PLACEMENTS_FILE,\n \"-qf\", OVERWRITE_QUERY_FILE},\n OVERWRITE_DELIVERY_FILE,\n OVERWRITE_PLACEMENTS_FILE,\n OVERWRITE_QUERY_FILE,\n true);\n\n\n // test with all -h specified\n runParseTest(new String[]{\n \"-df\", OVERWRITE_DELIVERY_FILE,\n \"-pf\", OVERWRITE_PLACEMENTS_FILE,\n \"-qf\", OVERWRITE_QUERY_FILE,\n \"-h\"},\n OVERWRITE_DELIVERY_FILE,\n OVERWRITE_PLACEMENTS_FILE,\n OVERWRITE_QUERY_FILE,\n false);\n\n // test with all extra arg specified\n runParseTest(new String[]{\n \"-df\", OVERWRITE_DELIVERY_FILE,\n \"-pf\", OVERWRITE_PLACEMENTS_FILE,\n \"-qf\", OVERWRITE_QUERY_FILE,\n \"-extra\"},\n\n OVERWRITE_DELIVERY_FILE,\n OVERWRITE_PLACEMENTS_FILE,\n OVERWRITE_QUERY_FILE,\n false);\n\n // test with all dangling arg specified\n runParseTest(new String[]{\n \"-df\", OVERWRITE_DELIVERY_FILE,\n \"-pf\", OVERWRITE_PLACEMENTS_FILE,\n \"-qf\"},\n\n OVERWRITE_DELIVERY_FILE,\n OVERWRITE_PLACEMENTS_FILE,\n OVERWRITE_QUERY_FILE,\n false);\n }", "title": "" } ]
[ { "docid": "d758d2c1a1d497b609d28e3cf83e570a", "score": "0.7108276", "text": "@Test\n\tpublic void testAnyArg() {\n\t\tCoffeeMaker cm= new CoffeeMaker();\n\t\tassertEquals(0, cm.runArgs(\"anything\"));\n\t}", "title": "" }, { "docid": "9cc883ade7343aab21932fc2546f73fc", "score": "0.6806727", "text": "@Test\r\n public void Should_ReturnFalse_When_ArgsNotExist() {\r\n //Given\r\n String[] args = new String[0];\r\n\r\n //When\r\n boolean areArgsValid = dataReader.readNumberFromCommandLine(args);\r\n\r\n //Then\r\n Assert.assertEquals(false, areArgsValid);\r\n }", "title": "" }, { "docid": "2e33eb85f699ce75ca8980d572026f74", "score": "0.67018527", "text": "@Test\n public void oneArgumentNoReadme(){\n String[] args = {\"Hi\"};\n int argCount = args.length;\n assertEquals(Project1.parseOptions(argCount, args), -1);\n }", "title": "" }, { "docid": "4e878a26e0b6890284220f4d0f644448", "score": "0.6649635", "text": "private static void checkArguments(String[] args){\n if (args.length > 0){ // Test for correct # of args\n throw new IllegalArgumentException(\"Parameter(s): None\");\n }\n }", "title": "" }, { "docid": "9d787d03b4629feae8725f679e226c5c", "score": "0.6617972", "text": "@Test\n public void twoArgumentNoReadme(){\n String[] args = {\"hi\", \"everybody\"};\n int argCount = args.length;\n assertEquals(Project1.parseOptions(argCount, args), 0);\n }", "title": "" }, { "docid": "f6dda5f3eb0df2e10f4925294ee08558", "score": "0.660097", "text": "public static void main(String[] args) {\n optionalTest();\n }", "title": "" }, { "docid": "3975ede99b12aeca66ce32e51ffa69ee", "score": "0.64759374", "text": "@Test\n void onlyPassInOneValidOption() {\n MainMethodResult result = invokeMain(\"-print\");\n assertThat(result.getTextWrittenToStandardError(), containsString(\"Missing command line arguments\"));\n assertThat(result.getExitCode(), equalTo(1));\n }", "title": "" }, { "docid": "26dba8bfbcdcfc4ba9d3db655eaa3dc9", "score": "0.6446605", "text": "public static void main(String[] args) {\n testBoolean(null);\n }", "title": "" }, { "docid": "9083246d983a4c7be8bf5c4ed43a3f99", "score": "0.63445795", "text": "boolean hasArg();", "title": "" }, { "docid": "15bcdcca546a571d9dc0383e1729dbd7", "score": "0.6275918", "text": "public boolean requiresArgument() {\r\n return false;\r\n }", "title": "" }, { "docid": "24665e2f896decb9a9b555c61a7bf6c3", "score": "0.6267507", "text": "public abstract boolean argsCheck(String... args);", "title": "" }, { "docid": "2a7702a1a41307c9414e0507d5b9f628", "score": "0.62663877", "text": "@Test\n void testNoCommandLineArguments() {\n MainMethodResult result = invokeMain();\n assertThat(result.getExitCode(), equalTo(1));\n assertThat(result.getTextWrittenToStandardError(), containsString(\"Missing command line arguments\"));\n }", "title": "" }, { "docid": "d8fd3088cb1d5b39952d28b25ae878e5", "score": "0.6242778", "text": "@Test\r\n\tpublic void performBMDAnalsyis()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "e1148e55c6120deb6c54501bf343dd51", "score": "0.62073797", "text": "public abstract boolean supportsDefaults();", "title": "" }, { "docid": "1adf4f8389b9039f7208d8df1b7509c2", "score": "0.6199589", "text": "@Test\n\tpublic void testGetDefaultValue_1()\n\t\tthrows Exception {\n\t\tArgumentImpl fixture = new ArgumentImpl();\n\t\tfixture.setName(\"\");\n\t\tfixture.setDefaultValue(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setAssistant(new AssistantProxy(URI.createFileURI(\"\"), \"\"));\n\t\tfixture.setComment(\"\");\n\t\tfixture.element = new IIOMetadataNode();\n\t\tfixture.optionalityESet = true;\n\t\tfixture.optionality = Optionality.OPTIONAL;\n\n\t\tString result = fixture.getDefaultValue();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "cb4fa2ad9e899597d772a557662df8af", "score": "0.61895704", "text": "@Test public void noCommandLineArgsTest() {\n String[] args = {};\n SoftballPlayersPart3.main(args);\n SoftballTeam.resetTeamCount();\n \n Assert.assertEquals(\"Team count should be 0. \",\n 0, SoftballTeam.getTeamCount());\n }", "title": "" }, { "docid": "c013ee0a2997e23f9bbf2ebfc8552a76", "score": "0.6184933", "text": "@Test\n public void testCallingMainWithSafeValues() {\n String[] args1 = { \"1.0\", \"-2\", \"1\" };\n checkCallingMain(args1, 1.0, 1.0);\n\n String[] args2 = { \"1.0\", \"-3\", \"2\" };\n checkCallingMain(args2, 2.0, 1.0);\n\n String[] args3 = { \"1.0\", \"0\", \"-1\" };\n checkCallingMain(args3, 1.0, -1.0);\n }", "title": "" }, { "docid": "5be2d75fdd3476aadd69880668ddacf9", "score": "0.61324847", "text": "@Override\r\n\tpublic boolean hasNoArguments() {\n\t\treturn getInputTypes().size() <= 1 && (!isStatic());\r\n\t}", "title": "" }, { "docid": "2e83fa4ef8cd6393eea511c666e579ee", "score": "0.6120738", "text": "boolean isDefault();", "title": "" }, { "docid": "2e83fa4ef8cd6393eea511c666e579ee", "score": "0.6120738", "text": "boolean isDefault();", "title": "" }, { "docid": "c57397eb8ae57b1778cf9a40ae188187", "score": "0.6088645", "text": "private static void checkInputArgs(String[] args) {\n if (args == null || args.length == 0) {\n throw new IllegalArgumentException(\"Input arguments are not adequate. Please check input arguments!!\");\n }\n }", "title": "" }, { "docid": "2d9227ec9ccdbeb827369abda62d2d3d", "score": "0.6063559", "text": "@Override\n\tpublic void defaultCase(Object arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "56a68575a00c91387613543be7d455a3", "score": "0.60118145", "text": "@Test\r\n public void Should_ReturnTrue_When_ArgsExist() {\r\n //Given\r\n String[] args = new String[2];\r\n args[0] = \"p\";\r\n args[1] = \"i\";\r\n\r\n //When\r\n boolean areArgsValid = dataReader.readNumberFromCommandLine(args);\r\n\r\n //Then\r\n Assert.assertEquals(true, areArgsValid);\r\n }", "title": "" }, { "docid": "f3e40cdcf1975c2de10b849e26cabf2e", "score": "0.600984", "text": "@Test\n public void invalidArguments() throws Exception{\n this.failOnTheseArguments(\"1.11133778\",\"1\");\n this.failOnTheseArguments(\"2\",\"1.45312\");\n this.failOnTheseArguments(\"2.113225\",\"1.3335\");\n\n //Zweiter Wert 0\n this.failOnTheseArguments(\"10\",\"0\");\n }", "title": "" }, { "docid": "d81f5249d2e9e5b853985f4498b2e6b8", "score": "0.59831715", "text": "public boolean isDefault();", "title": "" }, { "docid": "d20c49382566257da8ce6928a5773b22", "score": "0.5910624", "text": "@Test\n void onlyPassInOneInvalidOption() {\n MainMethodResult result = invokeMain(\"-READMEE\");\n String s = result.getTextWrittenToStandardError();\n assertThat(s, containsString(\"The following argument(s) are missing:\\n\"));\n assertThat(s, containsString(\"* description of the appointment\"));\n assertThat(s, containsString(\"* begin date of the appointment\"));\n assertThat(s, containsString(\"* begin time of the appointment\"));\n assertThat(s, containsString(\"* am/pm marker of begin time of the appointment\")); \n assertThat(s, containsString(\"* end date of the appointment\"));\n assertThat(s, containsString(\"* end time of the appointment\"));\n assertThat(s, containsString(\"* am/pm marker of end time of the appointment\"));\n assertThat(s, not(containsString(\"* owner\")));\n assertThat(result.getExitCode(), equalTo(1));\n }", "title": "" }, { "docid": "2ac26b847ec3e4e565daa9fcd3fddb2f", "score": "0.5886782", "text": "@Test\n public void argsTest() {\n // TODO: test args\n }", "title": "" }, { "docid": "de877327d7aa8ea3352aa94553e1c686", "score": "0.58777434", "text": "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tlogInfo(\"this case is notGo\");\n\t}", "title": "" }, { "docid": "a4628dcebb6885e06800a28fc3c430bd", "score": "0.58765614", "text": "public void testNothing() {\n\n\t}", "title": "" }, { "docid": "34cc92c6e71a2a9ca2c4ea99ac3fdb55", "score": "0.5876384", "text": "@Test \n\tpublic void testDedupWithNullArgs()\n\t{\n\t\tDedup.main(null);\n\t}", "title": "" }, { "docid": "03cd3cd799be841acde7a2d3318ce083", "score": "0.5838413", "text": "@Test\n public void testDefaultValues() throws Exception {\n OptionsParser parser = OptionsParser.newOptionsParser(KernelServerArgumentParser.class);\n parser.parse(\n KernelServerImpl.KERNEL_SERVER_IP_OPT,\n \"127.0.0.1\",\n KernelServerImpl.KERNEL_SERVER_PORT_OPT,\n \"20000\",\n OMSServerImpl.OMS_IP_OPT,\n \"127.0.0.1\",\n OMSServerImpl.OMS_PORT_OPT,\n \"30000\");\n KernelServerArgumentParser ksArgs = parser.getOptions(KernelServerArgumentParser.class);\n assertEquals(\n ksArgs.labels.get(KernelServerImpl.REGION_KEY), KernelServerImpl.DEFAULT_REGION);\n assertEquals(ksArgs.servicePort, new Integer(0));\n }", "title": "" }, { "docid": "23e14bb9098c4c6df44e2b66cc225478", "score": "0.5834625", "text": "@Override\n\t\tpublic boolean isDefault() throws UIInvalidException {\n\t\t\tif (getContext().getSenderClass() == null || !getContext().isEntity()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tList<String> args = Lists.newArrayListWithCapacity(1);\n\t\t\taddArgs(args);\n\t\t\tString arg = args.get(0);\n\t\t\tif (optionalPlayersOnly) {\n\t\t\t\treturn \"@p\".equals(arg);\n\t\t\t} else {\n\t\t\t\treturn \"@e[c=1]\".equals(arg);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c101c733304c20449806da7b3fc6f6d9", "score": "0.5824573", "text": "@Test\n\tpublic void warnIfArgumentIsSet() {\n\t\tnew StartupPolicy(\"test\");\n\t\tassertThat(systemStream.consumeErrorOutput()).containsOnlyOnce(\"WARN\").containsOnlyOnce(\"argument\");\n\t}", "title": "" }, { "docid": "c7c74e6da1cceb65a4e8c426a09ca708", "score": "0.58191246", "text": "@Test\n public void testFailsWithNullArgs() {\n Exception expectedException = assertThrows(MvException.class, () -> mvApp.run(null, null, stdout));\n assertTrue(expectedException.getMessage().contains(ERR_NULL_ARGS));\n \n }", "title": "" }, { "docid": "2846d554b33ae63de8355f11a1931c7f", "score": "0.5791874", "text": "public static void main(String[] args) {\n skipNullValue();\n }", "title": "" }, { "docid": "7e72fb9c65caff6540606f52f9db8763", "score": "0.5790688", "text": "public void testBuildNotFilterWithNullF1() {\n try {\n ProjectFilterUtility.buildNotFilter(null);\n fail(\"IllegalArgumentException should be thrown\");\n } catch (IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "7a2b35f52abc01ae02019a2cf5f0949e", "score": "0.5752565", "text": "private void checkArgsNoValRequired( DatabaseEntry key, DatabaseEntry data){\n DatabaseUtil.checkForNullDbt(key,\"key\",false);\n DatabaseUtil.checkForNullDbt(data,\"data\",false);\n }", "title": "" }, { "docid": "cae765c2fd430fd388b7c450923ec05a", "score": "0.5747675", "text": "public void testGetParametersDocumentationWithNullOperation() {\n try {\n generator.getParametersDocumentation(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "026763d3a76f89f096a20519ceb3f17c", "score": "0.5747236", "text": "public static void main(String[] args){\n\t\t\n\t\ttestAnnoyingCase();\n\t\t\n\t}", "title": "" }, { "docid": "a67be820526e430671df8ef7d13250c9", "score": "0.5740709", "text": "@Test\n @FunctionTest\n public void testAisDefaultValue() {\n new MetaCase(\"TC_Camera_AIS_0008\")\n .addOperator(new SwitchCameraOperator())\n .addChecker(new AisSwitchOnOffChecker(),\n SettingSwitchOnOffChecker.INDEX_SWITCH_OFF)\n .run();\n }", "title": "" }, { "docid": "1fe62caa4222a5ef361574c815c72dbc", "score": "0.57349014", "text": "public void testGetDefault() {\n assertNotNull(OptionsDisplayer.getDefault());\n }", "title": "" }, { "docid": "94bae8b0f4c3c295494e19d30e912408", "score": "0.57340676", "text": "@Test\n public void testNullArguments() throws OdmlConvertException {\n assertNull(converter.layoutToOdml((Form) null));\n assertNull(converter.layoutToOdml((Collection<Form>) null));\n assertNull(converter.dataToOdml((FormData) null));\n assertNull(converter.dataToOdml((Collection<FormData>) null));\n assertNull(converter.odmlToLayoutModel((Section) null));\n assertNull(converter.odmlToDataModel((Section) null));\n }", "title": "" }, { "docid": "f64f70da7dbef87222dfbc1d0fbfe0b2", "score": "0.57220817", "text": "@Override\n public boolean withSimpleArgument() {\n return true;\n }", "title": "" }, { "docid": "08206ea190eab7065db00cb2310023b3", "score": "0.57162136", "text": "public void testTransformIfUnsupportedOptions() throws Exception {\n GridTestUtils.assertThrows(log, new Callable<Object>() {\n @Override public Object call() throws Exception {\n return GridCommandLineTransformer.transform(\"-z\", \"qwerty\", \"asd\");\n }\n }, RuntimeException.class, \"Unrecognised parameter has been found: qwerty\");\n }", "title": "" }, { "docid": "d6c812a7b70576343bde927883e52523", "score": "0.57157785", "text": "boolean hasFallbackValue();", "title": "" }, { "docid": "437c11fb0f96c1e57d401c5b0bc90998", "score": "0.56892014", "text": "@Test\n public void testIllegalArgsException() {\n \n Exception expectedException = assertThrows(MvException.class, () -> mvApp.run(new String[]{\"no-file.txt\", \"no-dir\", \"-f\"}, null, stdout));\n assertTrue(expectedException.getMessage().contains(\"illegal option\"));\n \n }", "title": "" }, { "docid": "3ee341af70dfe2b189e585418d601e45", "score": "0.5682615", "text": "private boolean validateArgs(String[] args) {\n if(args.length < 1){\n System.out.println(\"Error: No database property file specified (first argument)\");\n printUsage();\n return false;\n }\n\n if(args.length < 2){\n System.out.println(\"Error: No class name specified (second argument)\");\n printUsage();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "86095a32a9f7525c792cafb6a502c64f", "score": "0.5664127", "text": "@Test\n public void testGetInputEmpty() {\n testGetInput(\"\");\n }", "title": "" }, { "docid": "9cf18973cc967bc7d7c96b33a25d63bf", "score": "0.5659623", "text": "@Test //(expected = NullPointerException.class)\n public void testMainNegative() throws Exception {\n String[] args = null;\n App.main(args);\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n }", "title": "" }, { "docid": "c98f4edf2c601f1dcbe4905f63bffea3", "score": "0.5652351", "text": "public void testSendWithEmptyArgumentList() {\n List<Argument> arguments = new ArrayList<Argument>();\n NotificationStrategy strategy = new SnmpTrapNotificationStrategy();\n strategy.send(arguments);\n\n }", "title": "" }, { "docid": "a03b609b8a2b4b194c0cbe5537c2bacb", "score": "0.5649122", "text": "@Test\n\tpublic void testForNullInput()\n\t{\n\t\tboolean search = VegetableManager.searchVegetable(null);\n\t\tassertFalse(search);\n\t}", "title": "" }, { "docid": "dbe7facf49482b6feab084524d2945f5", "score": "0.563267", "text": "public void testOverrideDefaultMethodF() {\n x5(false);\n }", "title": "" }, { "docid": "b2dc21b296b8242c7a9cf67ab546d6b7", "score": "0.5628791", "text": "@SuppressWarnings(\"unused\")\n @Override\n public void testCanFormatFalse() {\n }", "title": "" }, { "docid": "b00f9fd8dffaef24e85fea02504fc506", "score": "0.5616816", "text": "@Test\n public void NoDefaults() {\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n log.info(\"Started test ==== \" + methodName + \" ====\");\n\n WebDriver driver = openBrowser();\n driver.manage().window().maximize();\n driver.get(ConfigFileReader.getValue(\"url\"));\n log.info(\"URL IS: \" + ConfigFileReader.getValue(\"url\"));\n\n String errorMessage = \"You missed this\";\n\n landingPage.clickDateWidget(driver);\n landingPage.clickSearchButton(driver);\n\n log.debug(\"from: \" + landingPage.getErrorMessage(driver, landingPage.fromById));\n log.debug(\"to: \" + landingPage.getErrorMessage(driver, landingPage.toById));\n log.debug(\"date: \" + landingPage.getErrorMessage(driver, landingPage.datePickerById));\n\n Assert.assertEquals(landingPage.getErrorMessage(driver, landingPage.fromById), errorMessage);\n Assert.assertEquals(landingPage.getErrorMessage(driver, landingPage.toById), errorMessage);\n Assert.assertEquals(landingPage.getErrorMessage(driver, landingPage.datePickerById), errorMessage);\n }", "title": "" }, { "docid": "a1263fd916621ea70e93c63018a9b77f", "score": "0.5609549", "text": "@Test\n public void testNoArgsNoTypesEquals() {\n final Constructor constructor = new Constructor(NO_COMMENTS, \"Whatever\", Util.<Arg>list());\n \n final StringSink sink = new StringSink(\"test\");\n try {\n \n emitter.emitEquals(sink, \" \", constructor, Util.<String>list());\n } finally {\n sink.close(); \n }\n assertEquals(NO_ARG_EQUALS, sink.result()); \n }", "title": "" }, { "docid": "46289f44b5c6ca2da4eca198ec2d8d13", "score": "0.55952936", "text": "public void setArg0(boolean value) {\n this.arg0 = value;\n }", "title": "" }, { "docid": "00d454533fc904ffbaa9022ed1fd4858", "score": "0.5590677", "text": "public static void main(String[] args) {\n\t\tString name=\"\";\n\t\tSystem.out.println(name.isEmpty());\n\t\t\n\t\t//false\n\t\tString name1=\"Stephanie\";\n\t\tSystem.out.println(name1.isEmpty());\n\n\t}", "title": "" }, { "docid": "89deee2172617cb1b3035184d5997b44", "score": "0.5580583", "text": "@Test\n public void testNoArgToString() {\n final Constructor constructor = new Constructor(NO_COMMENTS, \"Whatever\", Util.<Arg>list());\n \n final StringSink sink = new StringSink(\"test\");\n try {\n \n emitter.emitToString(sink, \" \", constructor);\n } finally {\n sink.close(); \n }\n assertEquals(NO_ARG_TO_STRING, sink.result()); \n }", "title": "" }, { "docid": "0d032cff37a086d5023d222e4eaa2a5e", "score": "0.55687", "text": "@Test\r\n public void testOnlyOneArgumentNull() {\r\n try {\r\n filterIterator = new FilterIterator<MenuItem>(null);\r\n fail(\"Should have thrown ioe\");\r\n } catch (IllegalArgumentException ioe) {\r\n assertEquals(\"Iterator cannot be null.\", ioe.getMessage());\r\n } \r\n }", "title": "" }, { "docid": "277bf58dc667c5346a6098be3aa54a95", "score": "0.5564953", "text": "@Test\n public void hasDefaultConstructor() {\n new NotEqualPredicate();\n }", "title": "" }, { "docid": "8d6d90bc2fc9c890e07bd499c1117467", "score": "0.5564826", "text": "@Test\n public void testExecute_String_barWithDefaultParams() throws JavaCommanderException {\n System.out.println(\"execute_StringbarWithDefaultParams\");\n\n // Setup JavaCommander instance.\n var jcCommander = new JavaCommander();\n jcCommander.registerFromObject(foo);\n\n // Test implicit calls, leaving out parameters (expecting default values).\n jcCommander.execute(\"barWithDefaultParams someString 15 true\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams someString 15\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams someString\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams\");\n assertArguments(\"defaultString\", 15, true);\n\n // Test explicit calls, in order, leaving out parameters (expecting default\n // values).\n jcCommander\n .execute(\"barWithDefaultParams StringDefaultParam someString IntDefaultParam 15 BoolDefaultParam true\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams StringDefaultParam someString IntDefaultParam 15\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams StringDefaultParam someString\");\n assertArguments(\"someString\", 15, true);\n\n // Test explicit calls, out of order, leaving out parameters (expecting default\n // values).\n jcCommander\n .execute(\"barWithDefaultParams IntDefaultParam 15 BoolDefaultParam true StringDefaultParam someString\");\n assertArguments(\"someString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams IntDefaultParam 15 BoolDefaultParam true\");\n assertArguments(\"defaultString\", 15, true);\n jcCommander.execute(\"barWithDefaultParams IntDefaultParam 15\");\n assertArguments(\"defaultString\", 15, true);\n }", "title": "" }, { "docid": "177a40ede0794fb6a3fcdc1a229ae9d6", "score": "0.5564433", "text": "boolean checkIfDefeated();", "title": "" }, { "docid": "fceca67f456a7745a87204e487d2359b", "score": "0.55616176", "text": "Object getDefaultValue();", "title": "" }, { "docid": "99508a9473f9530fc50c51ca09d22089", "score": "0.5561509", "text": "public boolean hasArgument()\r {\r return argument != null;\r }", "title": "" }, { "docid": "a59f8b351ee9b7fc8ad518da516bbdaa", "score": "0.5543856", "text": "@Test\n\tpublic void testSetDefaultValue_1()\n\t\tthrows Exception {\n\t\tArgumentImpl fixture = new ArgumentImpl();\n\t\tfixture.setName(\"\");\n\t\tfixture.setDefaultValue(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setAssistant(new AssistantProxy(URI.createFileURI(\"\"), \"\"));\n\t\tfixture.setComment(\"\");\n\t\tfixture.element = new IIOMetadataNode();\n\t\tfixture.optionalityESet = true;\n\t\tfixture.optionality = Optionality.OPTIONAL;\n\t\tString newDefaultValue = \"\";\n\n\t\tfixture.setDefaultValue(newDefaultValue);\n\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "47915f0ec3b84f17ea5d5d3324a3e0bf", "score": "0.55348915", "text": "public boolean isDefaultValue(IBuildObject configuration, IHoldsOptions holder, IOption option, String extraArgument) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "15c3991a4e7644cccff2a05d78beed09", "score": "0.55300176", "text": "public static void main(String[] args) {\n System.out.println(Strings.isNullOrEmpty(null));\n }", "title": "" }, { "docid": "647434c232eb9d6ce737f13ed54aa17c", "score": "0.5514936", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(optionalOrElse());\r\n\t\tSystem.out.println(optionalOrElseGet());\r\n\t\tSystem.out.println(optionalOrElseThrow());\r\n\t}", "title": "" }, { "docid": "d932ad483ec0527f926a2ae3fe3afcab", "score": "0.55101824", "text": "public boolean test(Object arg0, String arg1, Object[] arg2, Object arg3) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aa0ad61858fbc36e29bf3973e870b93f", "score": "0.5500639", "text": "@Before(\"args(String)\")\n public void argsTryOnAllStringParameters(){\n writeLogs(\"Before using any String arguments\");\n }", "title": "" }, { "docid": "f5c92bede7b43cb238eeb369598351a1", "score": "0.5498506", "text": "@Test\n public void twoArgumentYesReadme0(){\n String[] args = {\"-README\", \"everybody\"};\n int argCount = args.length;\n assertEquals(Project1.parseOptions(argCount, args), 1);\n }", "title": "" }, { "docid": "b767ce970f898a33047e8cb3feecf77f", "score": "0.54928714", "text": "boolean hasNoOp();", "title": "" }, { "docid": "ec40799f12749faa1c7c7c9b8636bea9", "score": "0.5487965", "text": "private static void checkOptions() {\n\t\tif (!BloatBenchmark.INTRA && !BloatBenchmark.SPECIALIZE\n\t\t\t\t&& !BloatBenchmark.INLINE) {\n\t\t\tBloatBenchmark.err.println(\"** There is nothing to do!\");\n\t\t\tBloatBenchmark.usage();\n\n\t\t} else if ((BloatBenchmark.MORPH != -1) && !BloatBenchmark.SPECIALIZE) {\n\t\t\tBloatBenchmark.err\n\t\t\t\t\t.println(\"** Must specialize when setting morphosity\");\n\t\t\tBloatBenchmark.usage();\n\t\t}\n\t}", "title": "" }, { "docid": "61b5283021f80bf2d0d8e8fd0a06649e", "score": "0.5485379", "text": "String getDefaultGoal();", "title": "" }, { "docid": "4128e63318be17fd51510514f1d3c527", "score": "0.5479195", "text": "@Test\n public void twoArgumentYesReadme1(){\n String[] args = {\"hi\", \"-README\"};\n int argCount = args.length;\n assertEquals(Project1.parseOptions(argCount, args), 1);\n }", "title": "" }, { "docid": "f84f4e26069262a08697b443e4671f95", "score": "0.5477348", "text": "private static boolean hasEmptyArgs (List<SortLevel> list) {\r\n \t\tfor (SortLevel s : list) {\r\n \t\t\tif (s.sortIndex == -1)\r\n \t\t\t\treturn true;\r\n \t\t}\r\n \t\treturn false;\r\n \t}", "title": "" }, { "docid": "7a6e953d50f0767074490c6b017979f1", "score": "0.54731333", "text": "public void testGetPackageWithNullClassifier() {\n try {\n generator.getPackage((Classifier) null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "d5ec3142bda3310cef4c73ab82f5c9cd", "score": "0.54714125", "text": "public static void notEmpty(String arg,String msg) {\n\t\tif(arg == null || \"\".equals(arg)) {\n\t\t\tthrow new IllegalArgumentException(msg);\n\t\t}\n\t}", "title": "" }, { "docid": "b6b7b0d7b2fda9a7a2433f2a292c8f4c", "score": "0.5470879", "text": "public static void main(String[] args) {\n\tString password=null;\n\tif(password.isEmpty())\n\t{\n\t\tSystem.out.println(\"Password Should not be Empty\");\n\t}\n\telse \n\t{\n\t\tSystem.out.println(\"Go Ahead...\");\n\t}\n\n}", "title": "" }, { "docid": "41a518ae6d8f4b901d782e6adcf5b0bf", "score": "0.5469354", "text": "public static void main(String[] args) {\n dfa.test(args, DEFAULT); \n }", "title": "" }, { "docid": "30f0906297b18322c460cf9a9e314fc0", "score": "0.5467991", "text": "@Test\n public void oneArgumentYesReadme(){\n String[] args = {\"-README\"};\n int argCount = args.length;\n assertEquals(Project1.parseOptions(argCount, args), 1);\n }", "title": "" }, { "docid": "7de2c67478919a400db6cf5162851122", "score": "0.5462402", "text": "public void applyDefaults();", "title": "" }, { "docid": "6b677adb76b3ee9486ba27f14edc1999", "score": "0.54601955", "text": "@Test\n public void testEmptyArgs() {\n {\n final String robotsTxtBody = \"\";\n\n final Matcher matcher = parse(robotsTxtBody);\n assertTrue(matcher.singleAgentAllowedByRobots(\"FooBot\", \"\"));\n assertTrue(matcher.singleAgentAllowedByRobots(\"\", \"\"));\n }\n {\n final String robotsTxtBody = \"user-agent: FooBot\\n\" + \"disallow: /\\n\";\n\n final Matcher matcher = parse(robotsTxtBody);\n assertTrue(matcher.singleAgentAllowedByRobots(\"\", \"\"));\n assertFalse(matcher.singleAgentAllowedByRobots(\"FooBot\", \"\"));\n }\n }", "title": "" }, { "docid": "bd4bef65436054bd0c8f9c5fb53ed265", "score": "0.54476833", "text": "@Test\n void testNullOutputStream() {\n try {\n String[] args = {};\n mvApp.run(args, System.in, null);\n fail();\n } catch (MvException e) {\n assertEquals(\"mv: OutputStream not provided\", e.getMessage());\n }\n }", "title": "" }, { "docid": "9efd3695d8602e2dd9b841f883cb084b", "score": "0.54471505", "text": "@Test(expected = BadArgumentsException.class)\r\n public void shouldAddOperationWithNullArgumentsThrowExceptionV2() throws Exception {\n\r\n Integer x = null;\r\n Integer y = new Integer(7);\r\n\r\n // When (Do what you are testing (\"act\"))\r\n calculator.add(x, y);\r\n }", "title": "" }, { "docid": "60b1fee5a5c71372d22f7d5db290e46c", "score": "0.54435605", "text": "boolean isDefault() {\n return !flagComma && !flagMinus && !flagParenthesis && !flagPlus && !flagSharp &&\n !flagSpace && !flagZero && width == UNSET && precision == UNSET;\n }", "title": "" }, { "docid": "9f6fd66917cc48f96740acc267cd7fbd", "score": "0.544215", "text": "public boolean isArg0() {\n return arg0;\n }", "title": "" }, { "docid": "fb68a8a264aaf9b5f925aa54e48f7ac7", "score": "0.5441179", "text": "public static <T> void notEmpty(String argDescription, T... args) {\n\t\tif (args == null) {\n\t\t\tthrow new IllegalArgumentException(argDescription + \" must not be null\");\n\t\t}\n\t\tif (args.length == 0) {\n\t\t\tthrow new IllegalArgumentException(argDescription + \" must not be empty\");\n\t\t}\n\t}", "title": "" }, { "docid": "cd694011cda6fc75cd593cd76c9076fd", "score": "0.5439713", "text": "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tlogInfo(\"not Go\");\n\t}", "title": "" }, { "docid": "d55ea098a35c0dad937e73461b92ec1b", "score": "0.543533", "text": "public void noOp() {\n }", "title": "" }, { "docid": "0ea6b6806104c057fa69f753d4380aa4", "score": "0.5433203", "text": "public void testNothing() {\n }", "title": "" }, { "docid": "b78e2e92dbedc6dcae7e8a16a6c257f3", "score": "0.5429281", "text": "@Test\n\tpublic void testIsSetOptionality_1()\n\t\tthrows Exception {\n\t\tArgumentImpl fixture = new ArgumentImpl();\n\t\tfixture.setName(\"\");\n\t\tfixture.setDefaultValue(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setAssistant(new AssistantProxy(URI.createFileURI(\"\"), \"\"));\n\t\tfixture.setComment(\"\");\n\t\tfixture.element = new IIOMetadataNode();\n\t\tfixture.optionalityESet = true;\n\t\tfixture.optionality = Optionality.OPTIONAL;\n\n\t\tboolean result = fixture.isSetOptionality();\n\n\t\t// add additional test code here\n\t\tassertEquals(true, result);\n\t}", "title": "" }, { "docid": "b8c211fdd7bd802710342e832f568347", "score": "0.54279673", "text": "@Test\n void EmptyOwner() {\n MainMethodResult result = invokeMain(\"\", \"desc\", \"12/22/2020\", \"2:52\", \"AM\", \"12/5/2020\", \"3:50\", \"PM\");\n assertThat(result.getTextWrittenToStandardError(), containsString(\"owner should not be empty\"));\n assertThat(result.getExitCode(), equalTo(1));\n }", "title": "" }, { "docid": "81775a556df679ea74aaf755e39a2999", "score": "0.54254603", "text": "public void testNoRefAnnotationDefaultMethodF() {\n x3(false);\n }", "title": "" }, { "docid": "7de47351503a4fc30dc2160e05869ae9", "score": "0.54251254", "text": "@Test(expected = IllegalArgumentException.class)\n public void startNull() {\n model.startGame(null, false, 5, 5);\n }", "title": "" }, { "docid": "74be4d2f7e9c36ba6bf6aef9af1c2ef4", "score": "0.5419817", "text": "public void checkParameters() {\n\t}", "title": "" }, { "docid": "31aefc0ad552948b464c9058af353a80", "score": "0.5411646", "text": "@Test\n public void validateDefaultConstructor() {\n assertNull(unifiedSearchProcessor.getSearchProviderRegistry());\n\n }", "title": "" }, { "docid": "244936479ba0e73cc15d9223ca947159", "score": "0.54091", "text": "private void noop() {\n\n }", "title": "" }, { "docid": "47f2b1a370d3876893fb7b513b46a4ad", "score": "0.5407888", "text": "private void checkNullOrSerializable(Object arg, String name) throws InvalidConfigurationException {\r\n if (arg != null && !(arg instanceof Serializable)) {\r\n throw new InvalidConfigurationException(name + \"should be null or a Serializable instance.\");\r\n }\r\n }", "title": "" }, { "docid": "74835efec0a4b5860bd94ed4ae55e94d", "score": "0.5405065", "text": "public boolean isThereNoFirstArgument() {\n return this.firstArgument == null;\n }", "title": "" }, { "docid": "52c5ccc2e0dda09580be8e4885dbaf0a", "score": "0.5403545", "text": "@Test\n\tpublic void testIsSetOptionality_2()\n\t\tthrows Exception {\n\t\tArgumentImpl fixture = new ArgumentImpl();\n\t\tfixture.setName(\"\");\n\t\tfixture.setDefaultValue(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setAssistant(new AssistantProxy(URI.createFileURI(\"\"), \"\"));\n\t\tfixture.setComment(\"\");\n\t\tfixture.element = new IIOMetadataNode();\n\t\tfixture.optionalityESet = false;\n\t\tfixture.optionality = Optionality.OPTIONAL;\n\n\t\tboolean result = fixture.isSetOptionality();\n\n\t\t// add additional test code here\n\t\tassertEquals(false, result);\n\t}", "title": "" } ]
b3a713265b4e158397bc50aaa92b30b0
Created by suyashg on 05/07/18.
[ { "docid": "113a768ed50d6d435f1ccba74bb92e22", "score": "0.0", "text": "public interface SchedulerProvider {\n\n Scheduler io();\n\n Scheduler ui();\n}", "title": "" } ]
[ { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6073342", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.6002899", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5981768", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.59585834", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.58635867", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5844641", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5836259", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5836259", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.58004355", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.58004355", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.58004355", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.58004355", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.58004355", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.57879025", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5786846", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.57839465", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.576719", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.57613456", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.57547987", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5751342", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.5747454", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5727743", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5727743", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.5723406", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5706993", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.5697641", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.5691591", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.56914306", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5686748", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.5671879", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86ed6713ba8e5a54203c31fb8f461898", "score": "0.56570905", "text": "protected boolean func_70814_o() { return true; }", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.56557924", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.56553763", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.56553763", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.56553763", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28fcdb48fa0b9890f9666ae29ef02f55", "score": "0.5639377", "text": "private void init() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.5638782", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5635786", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5635786", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5635786", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5635738", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5635738", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5635738", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.562786", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.5626574", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "c0901f36c71f4626aadf1d2f7aa6f423", "score": "0.56239897", "text": "@Override\n void init() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.56227934", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5622041", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.56217635", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.5619924", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.5619466", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5617607", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5617607", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "6334f7375f24699d261bdb85e665c80d", "score": "0.5616935", "text": "@Override\r\n\tpublic void init() {}", "title": "" }, { "docid": "e2294d0f36ffa5b7272e706b4b7564db", "score": "0.5607346", "text": "private void poetries() {\n\n\t}", "title": "" }, { "docid": "02a88abb18d1012583ded4c0528d64f1", "score": "0.55916363", "text": "private void m50366E() {\n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5585782", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.55839676", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "188d6377aa200bdf28a0b41fdf4297f2", "score": "0.55767494", "text": "private void kk12() {\n\n\t}", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.5574202", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.55735934", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.55558693", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "c9940a2fed925db29b582759590cb447", "score": "0.5555514", "text": "@Override\n public int describeContents() { return 0; }", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5548969", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.55471045", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.55463874", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.55463874", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.55456495", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.5545442", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5535573", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "68abbc4a91a826dbc68f986dc9168393", "score": "0.550722", "text": "private static void cajas() {\n\t\t\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.55051017", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.55051017", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.5500785", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.54962367", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "040bc29bfaa6f0b81080ca223e6934a3", "score": "0.5488763", "text": "@Override\n public void initialize() { \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5484344", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "42a58e800f8b31962353a7388593db61", "score": "0.54760206", "text": "@Override\n\t\tpublic void init() {\n\t\t}", "title": "" }, { "docid": "1a99b3a047a548e9bddf06dab6f38cd7", "score": "0.5465181", "text": "private Rekenhulp()\n\t{\n\t}", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.5438292", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.5431971", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "78f900d7088ff06de4595889e75ca646", "score": "0.54254174", "text": "public void method_4270() {}", "title": "" }, { "docid": "4a5b709a6553621aa4226737a20ba120", "score": "0.54254025", "text": "@Override\n\tpublic void debite() {\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.54143935", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "fa27b313748d3dbdbb294e8ab31beafe", "score": "0.540702", "text": "private void strin() {\n\n\t}", "title": "" }, { "docid": "dc83ea3fd4a2fbdb47a63683afc25a60", "score": "0.5399658", "text": "@Override\n\tpublic void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.5396753", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "8e9347a77be4d83f1f380bc5ca012521", "score": "0.53953844", "text": "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.53938556", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "c9423b1c25dab1dabb18b267adb2b299", "score": "0.53930616", "text": "private void init() {\n\n\n\n }", "title": "" } ]
ade9ebd64db0596efcbc26e1cfebcc67
request count to show on badge teacher home activity
[ { "docid": "e43fc193df0a905870f095a46075747c", "score": "0.7026467", "text": "public static void teacherReqCount() {\n try {\n Call<List<GroupRequests>> listCall = ServiceSingleton.getInstance().getGroupRequests(\"Bearer \" + TeacherHomeActivity.api_token);\n listCall.enqueue(new Callback<List<GroupRequests>>() {\n @Override\n public void onResponse(Call<List<GroupRequests>> call, Response<List<GroupRequests>> response) {\n if (response.isSuccessful()) { // successful responce\n List<GroupRequests> clist = response.body();\n TeacherHomeActivity.requestUpdateBadge(clist.size());\n\n } else if (response.code() == 401) {\n\n } else {\n }\n }\n\n @Override\n public void onFailure(Call<List<GroupRequests>> call, Throwable t) {\n }\n });\n } catch (Exception e) {\n Log.d(TAG, \"Background Task teacherReqCount: \" + e.getLocalizedMessage());\n }\n\n }", "title": "" } ]
[ { "docid": "f989877112c3cf35300fde59a934f657", "score": "0.6673166", "text": "public void count(View target) {\n incrementProgress();\n \n stopWatch.stop();\n int reps = count;\n if (increment == -1) {\n reps = neededCount - count;\n }\n sumTimeBetweenCounts += stopWatch.getElapsedTime();\n \n \n if ((increment == -1) && (count == 0)) {\n setResult(RESULT_OK,createIntentWithStats(reps));\n soundAlert.finishedBeep();\n finish();\n }\n stopWatch.start();\n soundAlert.progressBeep();\n }", "title": "" }, { "docid": "fa4f99b5d2cdab201346950773d15ee9", "score": "0.6572392", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t count++;\n\t\t\t Tjapa.setText(\"Your Japa count is :\"+count);\n\t\t\t for(int i=0;i<1000;i++)\n\t\t\t {\n\t\t\t\tint a;\n\t\t\t\ta=i*total_count;\n\t\t\t\tif(a==count)\n\t\t\t\t{\n\t\t\t\t\tjapa_counter_total++;\n\t\t\t\t\tT_total_japa_count.setText(japa_counter_total+\" \"+ \"rounds\");\n\t\t\t\t\tOverallchants.setText(a+\" :\"+\"Over All chat counts\");\n\t\t\t\t}\n\t\t\t }\n\t\t}", "title": "" }, { "docid": "350b4b13f2b72a3a011bac3bd574e4af", "score": "0.64542925", "text": "int getBadgesCount();", "title": "" }, { "docid": "5cf293b795500e784af3961abb5590da", "score": "0.63895136", "text": "FinalCount approveCount(UserData userData, CountContext context, FinalCount finalCount);", "title": "" }, { "docid": "7cee36455872f7174e3618126ee75c33", "score": "0.6372018", "text": "public void initializeCountDrawer() {\n\n FirebaseUser user = mAuth.getCurrentUser();\n final String myUserId = user.getUid();\n notificationCounterNumber.setGravity(Gravity.CENTER_VERTICAL);\n notificationCounterNumber.setTypeface(null, Typeface.BOLD);\n notificationCounterNumber.setTextColor(getResources().getColor(R.color.redError));\n\n notificationCounterNumber.setGravity(Gravity.CENTER_VERTICAL);\n\n notificationReference = FirebaseFirestore.getInstance();\n\n CollectionReference getNumberNotification = notificationReference.collection(\"Notification\").document(myUserId).collection(\"notif-id\");\n\n com.google.firebase.firestore.Query query = getNumberNotification.whereEqualTo(\"seen\", false);\n\n query.addSnapshotListener(MainPage.this, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) {\n int number = documentSnapshots.getDocuments().size();\n\n if (number == 0) {\n notificationCounterNumber.setText(\"\");\n// ShortcutBadger.removeCount(MainPage.this);\n\n\n } else {\n notificationCounterNumber.setText(\" \" + String.valueOf(number));\n// startService(\n// new Intent(MainPage.this, BadgeServices.class).putExtra(\"badgeCount\", number)\n// );\n }\n }\n });\n }", "title": "" }, { "docid": "95629a769ef8405a2e830b2d112c0f1a", "score": "0.628145", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(!isPraise) {\r\n\t\t\t\t\tif (!UserManager.uid.equals(\"\")) {\r\n\t\t\t\t\t\tresult_GoodWeibo = ConnectProviderGC.goodWeibo(UserManager.uid, weibo_id);\r\n\t\t\t\t\t\tif (result_GoodWeibo.status.equals(\"0\")) {\r\n\t\t\t\t\t\t\tString num = String.valueOf(Integer.parseInt((String) title_praise_count.getText()) + 1);\r\n\t\t\t\t\t\t\ttitle_praise_count.setText(num);\r\n\t\t\t\t\t\t\tisPraise = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast toast = Toast.makeText(HomeListDetailsActivity.this, \"你已经赞过该条动态\", Toast.LENGTH_LONG);\r\n\t\t\t\t\ttoast.show();\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "1dc2d19c1c4c9fe94f1978b2f437a942", "score": "0.6036593", "text": "public void setBadgeNo(int badgeNo)\n {\n this.badgeNo = badgeNo;\n }", "title": "" }, { "docid": "fddf13f7a88742ca858be60e24a6e617", "score": "0.6017842", "text": "int getActivesCount();", "title": "" }, { "docid": "79aee63693aa75413da539df485719c6", "score": "0.6017802", "text": "public void addCount(){\n helper = getScore();\n \n if(helper < 7){\n count = helper + 1;\n this.count = count;\n }else{\n count = 8;\n }\n}", "title": "" }, { "docid": "6a0aeaaf93cd9f85585440ae43c2b0ef", "score": "0.60058635", "text": "ProtocolCount approveCount(UserData userData, CountContext context, ProtocolCount protocolCount);", "title": "" }, { "docid": "1f61e7751d7a5b9459eb89a6a9d0a62c", "score": "0.59929687", "text": "public void getStatistics(View view) {\n\t\tIntent intent = new Intent(this, ClickerCounterStats.class);\n\t\tintent.putExtra(EXTRA_MESSAGE, clickerCountObject.getClickerName());\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "7d3dff9ee72bd5b0bd41e636faaefdb7", "score": "0.599166", "text": "@Override\n public void onClick(View v) {\n if(countExperiment.isEnded()) {\n Toast.makeText(view.getContext(), \"Experiment Has Ended!\", Toast.LENGTH_LONG).show();\n } else {\n totalCount++;\n totalCountTextView.setText(String.valueOf(totalCount));\n countExperiment.incrementCount(user.getUid(), location);\n trials.add(new CounterTrial(user.getUid(), new Date(), location, countExperiment.getExperimentID()));\n }\n\n }", "title": "" }, { "docid": "1c3174a4d3e4d54f917255c83ae31358", "score": "0.59915835", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n int access_count = intent.getIntExtra(\"message\",0);\n\n\n count = count + access_count;\n\n Toast.makeText(context, \"Soma Africa has had \" + count + \" \" + \"more view\", Toast.LENGTH_LONG).show();\n\n\n\n }", "title": "" }, { "docid": "3f83fcf31e62be5c6e39f4f801100017", "score": "0.5986388", "text": "public void count()\n\t{\n\t\tint countTotalBagelsInteger = bagelFlavorsComboBox.getItemCount(); //Gets number in combo box;\n\t\tint countTotalCreamCheeseInteger = creamCheeseFlavorsComboBox.getItemCount(); //Gets number in combo box\n\t\t\n\t\t//send message with instructions to user\n\t\tJOptionPane.showMessageDialog(null, \"Total number of bagels \" + countTotalBagelsInteger + \"\\n\"\n\t\t\t\t+ \"Total number of cream cheeses \" + countTotalCreamCheeseInteger + \"\\n\" );\t\t\t\t\t\n\t}", "title": "" }, { "docid": "af92d9d1e6dc03d54fee55826bb11036", "score": "0.5981953", "text": "void count(CountRequest request, ActionListener<CountResponse> listener);", "title": "" }, { "docid": "371cd9f57149ff0b4f0a73abf1beceac", "score": "0.5972251", "text": "public void incrementCount()\r\n {\r\n this.activityCount += 1;\r\n\r\n if (this.disableSurvey)\r\n return;\r\n SurveyWizardPage.Number num;\r\n if (displayFirstSurvey()) {\r\n num = SurveyWizardPage.Number.One;\r\n }\r\n else\r\n {\r\n if (displaySecondOrThirdSurvey())\r\n num = SurveyWizardPage.Number.Two;\r\n else\r\n return;\r\n }\r\n this.surveyCount += 1;\r\n SurveyUtil.displaySurvey(num);\r\n }", "title": "" }, { "docid": "9d04ef23d906979dfbd4f74cda8a0867", "score": "0.59583753", "text": "private void tryCounter() \n {\n \tremainingAttempts = new GLabel(\"Number of attempts: \" + current_Try);\n \tremainingAttempts.setColor(Color.RED);\n Font myAttemptFont = new Font(\"Serif\", Font.BOLD,24);\n remainingAttempts.setFont(myAttemptFont);\n add(remainingAttempts,((WIDTH - remainingAttempts.getWidth())/2),BRICK_Y_OFFSET/2);\n }", "title": "" }, { "docid": "b54baca210054888ec07c45b0414e7d0", "score": "0.5934717", "text": "@Override\r\n\tpublic void badgeConfiguration(int totalNotif) {\n\t\tbadge.setText(String.valueOf(totalNotif));\r\n badge.setTextSize(11);\r\n badge.setBadgeMargin(35, 20);\r\n badge.setBadgePosition(BadgeView.POSITION_TOP_RIGHT);\r\n badge.show();\r\n\t}", "title": "" }, { "docid": "643e8cf5a0ed1146eae20e3df40351b2", "score": "0.5930142", "text": "@Override\n public int getCount() {\n return UserConfig.isClientActivated() ? 15 : 0;\n }", "title": "" }, { "docid": "902f24ea594b84735d88689b414bb029", "score": "0.5925217", "text": "public void updateCount() {\n ++count;\n g.getLblCount().setText(count + \"\");\n }", "title": "" }, { "docid": "ed79cc9a18117231a299260ecd81983f", "score": "0.59201527", "text": "public void onResume() {\n super.onResume();\n if (App.isUserLoggedIn(this)) {\n setupBadge(HomeActivity.getCartCount());\n }\n }", "title": "" }, { "docid": "d39d25177d56ca580b1b7717f3cf1bdc", "score": "0.5911326", "text": "int getBonusCount();", "title": "" }, { "docid": "0d137587d5e29e4cfb8660473e152427", "score": "0.58731383", "text": "public void count() {\n Candidate candidate = getChoice();\n if (candidate != null) {\n candidate.incrementCount();\n }\n }", "title": "" }, { "docid": "a335c9e4eb8959761f9335a76a9838d2", "score": "0.5871035", "text": "void setNotificationCount(int count);", "title": "" }, { "docid": "170bd3c0d8356eb7a1dec5955efbf36c", "score": "0.58604145", "text": "public ActivitySignupCounts(){}", "title": "" }, { "docid": "2c0a2e34cb08df76079c7681853749bd", "score": "0.58601886", "text": "public int getBadgeNo()\n {\n return badgeNo;\n }", "title": "" }, { "docid": "2b38938289f9dabce2335e97382e71ca", "score": "0.58423597", "text": "int getAvailableGauntletsCount();", "title": "" }, { "docid": "37cbd74e5b6fa22d93ec420ffc4ec83c", "score": "0.582484", "text": "int getLearnersCount();", "title": "" }, { "docid": "b70531a25d5779f3c81437251fe1f461", "score": "0.58194953", "text": "int getGoalsCount();", "title": "" }, { "docid": "f1a2906fd2385e56bda1c15f2a1e646c", "score": "0.5806405", "text": "public void increament(View view) {\n if (quantity == 100) {\n Toast toast = Toast.makeText(this, R.string.Maximum_orders, Toast.LENGTH_SHORT);\n toast.show();\n return;\n } else {\n quantity = quantity + 1;\n }\n display(quantity);\n }", "title": "" }, { "docid": "56d28bfefc5d75f90e14a5a38aa44a0b", "score": "0.58045185", "text": "protected void onActivityResult(int request, int result, Intent data) {\r\n\r\n // check the request code for the intent and if the result was ok. if both\r\n // are good then take a copy of the updated count variable\r\n if(request == 16 && result == RESULT_OK) {\r\n count = data.getIntExtra(\"count\", 0);\r\n Log.i(\"MainActivity\", \"count is \" + count);\r\n appReset();\r\n upadate_list_taost.show();\r\n\r\n }\r\n }", "title": "" }, { "docid": "5d65abc0580d25792036463cc6f75741", "score": "0.5783502", "text": "void trackerSimCount() {\n\t\tif (DEBUG) {\n\t\t\treturn;\n\t\t}\n\t\tString simCount = String.valueOf(simData.getSimCount());\n\t\ttracker.send(MapBuilder.createEvent(\"Prefereces\", \"Count of Sim Cards\", simCount, null).build());\n\t\ttracker.set(Fields.SCREEN_NAME, null);\n\n\t}", "title": "" }, { "docid": "fae389065ae21181a040d854b1d8b876", "score": "0.57630086", "text": "public void increment_soup(View view) {\n if (soup_quantity <= 99) {\n soup_quantity += 1;\n displayQuantitySoup(soup_quantity);\n } else {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(getApplicationContext(), \"No. of soup cannot be greater than 100\", duration);\n toast.show();\n }\n }", "title": "" }, { "docid": "3da56e8873c03aa04a74c6708dfb57a0", "score": "0.57420254", "text": "int getEggIncubatorCount();", "title": "" }, { "docid": "b0a648ea3778348e6d323dc7cb13adab", "score": "0.574105", "text": "private void displayCount(int count)\n\t{\tDisplay the count of applications\n//\t\n\t\tTextView mTextCount = (TextView) findViewById(R.id.tv_count);\n\t\tmTextCount.setText( mStrAppCount + \" \" + count );\t\t\n\t}", "title": "" }, { "docid": "2e0d1e17fd38e0873b9404b0cf03d234", "score": "0.57339853", "text": "@Override\n public void onFinish(){\n txtCountDown = findViewById(R.id.txtCount);\n prgBar = findViewById(R.id.prgBar);\n txtCountDown.setVisibility(android.view.View.INVISIBLE);\n prgBar.setVisibility(android.view.View.INVISIBLE);\n Counter.start();\n }", "title": "" }, { "docid": "2ed5084c8e4703bae38ef0e5b9c687f2", "score": "0.5721487", "text": "PreliminaryCount approveCount(UserData userData, CountContext context, PreliminaryCount preliminaryCount);", "title": "" }, { "docid": "e2e569c5476b2ad583ada6f01c8f1601", "score": "0.57066506", "text": "int getClaimedAmountCount();", "title": "" }, { "docid": "29b0c8bb688c09f3c825bfb13656ee04", "score": "0.5697145", "text": "public int updateDownCount(int no);", "title": "" }, { "docid": "3db152400306ca555a2e65ee1842ec5c", "score": "0.56965995", "text": "int getRecentActivitiesCount();", "title": "" }, { "docid": "aa64a869c78013a6808e8394bf8037e0", "score": "0.56918186", "text": "ActionFuture<CountResponse> count(CountRequest request);", "title": "" }, { "docid": "316142e9512750e383513699fd357efc", "score": "0.56795096", "text": "public void increment_krushers(View view) {\n if (krushers_quantity <= 99) {\n krushers_quantity += 1;\n displayQuantitykrushers(krushers_quantity);\n } else {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(getApplicationContext(), \"No. of Krushers cannot be greater than 100\", duration);\n toast.show();\n }\n }", "title": "" }, { "docid": "fad52347e2f7a6739cc7b92b9ff1b544", "score": "0.5679388", "text": "int getGuideIdCount();", "title": "" }, { "docid": "dcf487eda5f02330d2dc66c78a320f8e", "score": "0.56722456", "text": "private void setMenuCounter(@IdRes int itemId, int count) {\n TextView view = (TextView) navigationView.getMenu().findItem(itemId).getActionView();\n // view.setText(count > 0 ? String.valueOf(count) : null);\n String version=AllUrl.APP_Version;\n\n }", "title": "" }, { "docid": "8af42fd652d8ab9e4d2cd4150255c917", "score": "0.5657797", "text": "private void getCurrentBookingCountJob() {\n App.get().getJobManager().addJob(new GetCurrentBookingCountJob());\n }", "title": "" }, { "docid": "9fefe0367fb6ab6b699ab12890b915f2", "score": "0.56445163", "text": "private void setTheCount() {\n int i = 0;\n for (UnitCardController unitCardController : unitCardControllers) {\n if (unitCardController != null) {\n i++;\n }\n }\n count.setText(i + \"/10\");\n }", "title": "" }, { "docid": "0806bcb7b3e65e80e54e3b3a23027421", "score": "0.5635732", "text": "int getDetailedCount();", "title": "" }, { "docid": "0806bcb7b3e65e80e54e3b3a23027421", "score": "0.5635732", "text": "int getDetailedCount();", "title": "" }, { "docid": "0806bcb7b3e65e80e54e3b3a23027421", "score": "0.5635732", "text": "int getDetailedCount();", "title": "" }, { "docid": "0806bcb7b3e65e80e54e3b3a23027421", "score": "0.5635732", "text": "int getDetailedCount();", "title": "" }, { "docid": "0f07902a7c7958f117770dc2f6ae3d8b", "score": "0.56310415", "text": "ProtocolAndPreliminaryCount approveCount(UserData userData, CountContext context, ProtocolAndPreliminaryCount protocolAndPreliminaryCount);", "title": "" }, { "docid": "bfb8503dc71954eb62dda4f2a7f32655", "score": "0.5624067", "text": "int getCurrentCount();", "title": "" }, { "docid": "42da55f7c94945cac434217bf544b8f5", "score": "0.56218547", "text": "public void setCount(int value) {\n this.count = value;\n }", "title": "" }, { "docid": "3a8d4f4f6d9c5309cd8de34e448c6d29", "score": "0.5621754", "text": "@Override\n //The public void onClick contains the action that the button should execute.\n public void onClick(View currentView)\n {\n clicks = clicks+1;\n //\"clickAmount.setText\" refreshes the TextView clickAmount to show the number of clicks.\n clickAmount.setText(\"Clicks:\"+clicks);\n isAdGoneGood();\n\n }", "title": "" }, { "docid": "1a9a85872991592398f1ebd099728579", "score": "0.5619076", "text": "int getUtxoCount();", "title": "" }, { "docid": "44d6ab39cd7fc6483e580b7bdc0704fa", "score": "0.56176686", "text": "public void increment_tea(View view) {\n if (tea_quantity <= 99) {\n tea_quantity += 1;\n displayQuantityTea(tea_quantity);\n } else {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(getApplicationContext(), \"No. of tea cannot be greater than 100\", duration);\n toast.show();\n }\n }", "title": "" }, { "docid": "17c8118795e4f10115fe0ccc7f55c2ab", "score": "0.561129", "text": "public boolean checkBadge(){\n\t\tif(flag == false){\n\t\t\tif(lifetime.getCalories() > 26000 * bigmac){\n\t\t\t\tflag = true;\n\t\t\t\tpercent = 100;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpercent = ((double)lifetime.getCalories() / (26000 * bigmac))*100;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "73a6c38d8392475970f8999b4dc6d542", "score": "0.56074905", "text": "int getGrantedItemsCount();", "title": "" }, { "docid": "eca88d7f822f0cd792c2c71e088dc48c", "score": "0.5603171", "text": "public void increment_jaljeera(View view) {\n if (jaljeera_quantity <= 99) {\n jaljeera_quantity += 1;\n displayQuantityjaljeera(jaljeera_quantity);\n } else {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(getApplicationContext(), \"No. of jaljeera cannot be greater than 100\", duration);\n toast.show();\n }\n }", "title": "" }, { "docid": "2021f6ca86ec55dd8459bd561f2c4511", "score": "0.55909985", "text": "int getRewardItemsCount();", "title": "" }, { "docid": "81e0f66315bc04c3fbf5e5afbf86e1e6", "score": "0.5581759", "text": "protected void incrementHeartCount(int increment){\n\t setHeartCount(increment + lifeCounter); \n }", "title": "" }, { "docid": "07874c63b5b6607f3099f147a11f15e7", "score": "0.5578348", "text": "@Query(\"SELECT COUNT(*) FROM \" + AppConstants.TABLE_FEEDBACKS + \" WHERE \" + AppConstants.COLUMN_FEEDBACK\n + \" == '\" + AppConstants.FEEDBACK_GOOD + \"'\")\n int total_good_sum_count();", "title": "" }, { "docid": "bcdb01e8678eb77d802775d7279269c3", "score": "0.55720073", "text": "public void handleTap(View view)\n {\n // increment the count by 1\n mCounter.incrementCount();\n // Set the text view to the new count\n mCountTextView.setText(String.valueOf(mCounter.getCount()));\n }", "title": "" }, { "docid": "f51d77eb568100a77c0dbd2b8b6867e6", "score": "0.55686617", "text": "@Override\n public void onClick(View view) {\n MainActivity.notificationCountCart++;\n NotificationCountSetClass.setNotifyCount(MainActivity.notificationCountCart);\n startActivity(new Intent(ItemDetailsActivity.this, CartListActivity.class));\n\n }", "title": "" }, { "docid": "f2dc1c2d118d524d7204b77e9073fb58", "score": "0.55676454", "text": "public void setCount(String count) {\n mCount = count;\n\n // Only draw a badge if there are notifications.\n mWillDraw = !count.equalsIgnoreCase(\"0\");\n invalidateSelf();\n }", "title": "" }, { "docid": "b2efab7bcd9210715cf18489e2d7efd9", "score": "0.5555484", "text": "public void increment(View view) {\r\n\r\n if (quantity < 100) {\r\n quantity++;\r\n displayQuantity(quantity);\r\n } else {\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Sorry! No more than 100 cups of coffee.\";\r\n int duration = Toast.LENGTH_LONG;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "f33cc2668f5f963c021bcaa8ea50c6a2", "score": "0.5554524", "text": "public void increment_nimbuPaani(View view) {\n if (nimbuPaani_quantity <= 99) {\n nimbuPaani_quantity += 1;\n displayQuantitynimbuPaani(nimbuPaani_quantity);\n } else {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(getApplicationContext(), \"No. of nimbuPaani cannot be greater than 100\", duration);\n toast.show();\n }\n }", "title": "" }, { "docid": "469d0223ea64780f31a1caf147d34d15", "score": "0.55485684", "text": "@Override\n public void onClick(View v) {\n onResume();\n\n /*Obtaining note size*/\n int noteSize = savedNotes.size();\n\n /*Displaying it in a toast*/\n Context context = getApplicationContext();\n Toast toast = Toast.makeText(context, \"Number of notes available: \" + noteSize, Toast.LENGTH_SHORT);\n toast.show();\n }", "title": "" }, { "docid": "1a1d1fcf0cffeed2665e309cf034715c", "score": "0.5547575", "text": "public void upvote(){\r\n ePoints++;\r\n }", "title": "" }, { "docid": "77c444ff796fcd1ccff3599671d2be54", "score": "0.5545328", "text": "public int getCount() {\n return count.get();\n }", "title": "" }, { "docid": "78ecbe51f49e536500b07aeba68acde7", "score": "0.5544337", "text": "public void tryTeamA(View view){\n scoreTeamA+=5;\n counterTry++;\n TextView textViewTryA=findViewById(R.id.try_text_view);\n textViewTryA.setText(String.valueOf(counterTry));\n display( scoreTeamA);\n }", "title": "" }, { "docid": "06c4852b57b3c5e742dbe0968a203109", "score": "0.5539718", "text": "int getRecommenedFriendsCount();", "title": "" }, { "docid": "711e3828564e0fa723f8c3718e634b0c", "score": "0.5538318", "text": "public void increment(View view) {\n if (quantity < 100) {\n quantity = quantity + 1;\n display(quantity);\n } else {\n Log.i(\"MainActivity\", \"Please select atleast one small pizza\");\n Context context = getApplicationContext();\n String lowerLimitToast = getString(R.string.too_much_pizza);\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, lowerLimitToast, duration);\n toast.show();\n return;\n }\n }", "title": "" }, { "docid": "348b15f81402c91a241a99306f39bd45", "score": "0.55377877", "text": "@OPERATION\n\tprotected void registeredUserCount(OpFeedbackParam<Integer> userCount) {\n\t\tuserCount.set(registeredUserAgents.size());\n\t}", "title": "" }, { "docid": "38579a033b0aa10d181c347839126152", "score": "0.5535016", "text": "int getMasterysCount();", "title": "" }, { "docid": "87efce7cc9c969d6a7fa3c3acf2003e1", "score": "0.55216825", "text": "public interface OnBadgeChangeListener {\n public void onBadgeCountChange(int badgePosition, int value);\n}", "title": "" }, { "docid": "1e875e430e3ac4c2b5219489adbf5b7b", "score": "0.5520264", "text": "@Override\n\tprotected void onResume() {\n\t\tif(EasyHomeFixApp.getNotificationcount()!=null)\n\t\t\tgetnotificationSize(Integer.parseInt(EasyHomeFixApp.getNotificationcount()));\n\t\tsuper.onResume();\n\t}", "title": "" }, { "docid": "dfe50a1f3b711795f0c025e4fcd58d89", "score": "0.5518054", "text": "public void setCount(Integer count) {\n this.count = count;\n }", "title": "" }, { "docid": "1a9d7b662dfa6cd1ff1bb58149fd6b82", "score": "0.55178773", "text": "public void setCount(java.lang.Integer value) {\n this.count = value;\n }", "title": "" }, { "docid": "d0030063672515b4bca4259ff2f31b9a", "score": "0.5517279", "text": "public void defaultUpdateCount(AcUspsInternationalCgrWorkOfferRouteTmp e)\n {\n }", "title": "" }, { "docid": "95a4bb26814f757d13a7430697f67425", "score": "0.5515847", "text": "public void increaseFollowers()\r\n {\r\n followersCount++;\r\n }", "title": "" }, { "docid": "7b65f723e4df458083ff0480a9f2385d", "score": "0.5515674", "text": "long countByExample(BtViewNewsExample example);", "title": "" }, { "docid": "297f9e37435eba51fea6d213611d6e94", "score": "0.5514122", "text": "public void verifLikeAndShareCount(String... strings)\n {\n ExtentTestManager.getTest().log(LogStatus.INFO, \" \" + strings[0] + \" :: Profile Activity Counts are Updated or not after Click on Action In Post Inner Page \");\n String action = strings[1];\n String exceptedCount= strings[2];\n try\n {\n String count= DriverManager.getDriver().findElement(By.id(\"view-profile-\"+action)).getText().replaceAll(\"[^0-9]\",\" \");\n\n //System.out.println(\"Like Data:-\"+count);\n //System.out.println(\"Like:-\"+count.replaceAll(\"[^0-9]\",\" \"));\n\n if (!count.equals(exceptedCount))\n {\n ExtentTestManager.getTest().log(LogStatus.PASS, \" \"+ \" Profile Activity Counts are :: \"+ \"<b>\"+ count+ \"</b>\");\n }\n /*else\n {\n Assert.fail(\"Profile Activity Counts are not Increased..!!!!\");\n }*/\n }\n catch (Throwable e)\n {\n Assert.fail(\"Could not perform action on \\\" Profile Activity Counts \\\" \"+ \"&\" + e.getMessage() + \"\");\n }\n }", "title": "" }, { "docid": "04da76f1e29920985a80ccc984951ffa", "score": "0.5512354", "text": "int countByExample(YpUserTaskscoreDetailExample example);", "title": "" }, { "docid": "ecd2b9ed9d006f5dedc9ec9095d0e39b", "score": "0.55082464", "text": "public void setActiveCount(int value) {\n this.activeCount = value;\n }", "title": "" }, { "docid": "fe9eca551e95faa97ddc751b7ad10639", "score": "0.55073684", "text": "public int getCountOfficialsVoting();", "title": "" }, { "docid": "1591647ed69cb092852be464cfe4f429", "score": "0.5506491", "text": "int getRatingCount();", "title": "" }, { "docid": "1201a39afabf05474e3a4ff91f96cf00", "score": "0.55021507", "text": "public void setCount(int value) {\n var uriBuilder = UriComponentsBuilder.fromUriString(counterServiceUrl + COUNT)\n .queryParam(\"setCount\", value);\n restTemplate.put(uriBuilder.toUriString(), null);\n }", "title": "" }, { "docid": "2d2db068b904bd06651cb688ed181e9b", "score": "0.54849494", "text": "int getFavoriteNumberCount();", "title": "" }, { "docid": "e71e228d10e9fb0141e5c8b2179c9adf", "score": "0.54827553", "text": "private void continueCount(){\n mRun = new Runnable(){\n @Override\n public void run() {\n countTime = countTime - 1;\n mTvCount.setText(String.format(getString(R.string.register_verify_count_format), Integer.toString(countTime)));\n if (countTime == 0){\n mTvCount.setText(getString(R.string.register_verify_count_resend));\n mResendButton.setVisibility(View.VISIBLE);\n countTime = 60;\n }else {\n continueCount();\n }\n }};\n mHandler.postDelayed(mRun\n ,1000);\n }", "title": "" }, { "docid": "114e7438adf3f900287d2590ece5d5e1", "score": "0.54824924", "text": "public int numberLikes(Post post);", "title": "" }, { "docid": "b72cabf0ef32e0b74b6d7e0c1b100fea", "score": "0.54745996", "text": "public Integer countUserss();", "title": "" }, { "docid": "9a719f074fc3c3d1c42d11b512fb5ce3", "score": "0.54738885", "text": "@Override\r\n\tpublic int unusedUserStoryCount() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "85964a2c1893d4ee2bef344463cf9320", "score": "0.5471462", "text": "public void setCount() throws SQLException, ClassNotFoundException, IOException {\n checkLoggedIn();\n checkEmpLoggedIn();\n int barcode = returnBarcode();\n if(checkIfBarcodeExistsInDB(barcode))\n {\n setDisplay();\n int count = setCount;\n Count count1 = new Count(employee);\n Controller.empId = count1.getCountDb(db, barcode);\n Controller.count = count1.getCount();\n boolean isYesClicked = checkEmpId();\n if (isYesClicked) {\n count1.setCount(count);\n displayCount.setText(\"\" + count);\n count1.updateCount(db, barcode);\n } else {\n }\n System.out.println(count);\n }\n else if(!checkIfBarcodeExistsInDB(barcode)) {\n alertLabelPane.setText(\"Barcode: \" + barcode + \" not found.\");\n }\n populateTable(barcode);\n\n }", "title": "" }, { "docid": "df96e06b0048d8eb581555b17e6f6ea4", "score": "0.5469048", "text": "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "title": "" }, { "docid": "9a9adff934e5b941f0f735db8026752f", "score": "0.54681176", "text": "@FXML\n\tvoid plus(ActionEvent event) {\n\t\tif (countVisitor == 16) {\n\t\t\tPopUp.display(\"Error\", \"The maximum visitors for an instructor is 16\");\n\t\t} else {\n\t\t\tcountVisitor++;\n\t\t\tnumOfVisitorTxt.setText(String.valueOf(countVisitor));\n\t\t}\n\t}", "title": "" }, { "docid": "c7b1dabd2b09d5169d58a42b0b2fd39c", "score": "0.54679304", "text": "public int getCount()\n\t{\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "9bf182a5f44aa329b56ed7384ae977d9", "score": "0.54666704", "text": "int getUserInfoCount();", "title": "" }, { "docid": "2828d8931a9aa36a828bea4c75368b71", "score": "0.54638225", "text": "private void increaseCounter()\n {\n if (gac.isConnected())\n {\n PutDataMapRequest putDataMapReq = PutDataMapRequest.create(DATA_COUNT_PATH);\n\n putDataMapReq.getDataMap().putInt(DATA_KEY, count++);\n\n PutDataRequest putDataReq = putDataMapReq.asPutDataRequest();\n Wearable.DataApi.putDataItem(gac, putDataReq);\n\n Log.i(\"DataItemPut!\", \"\" + count);\n }\n }", "title": "" }, { "docid": "da363a52d6b497d2e30e9b4b2addbdad", "score": "0.5463737", "text": "public int count() {\n //your code\n return 0;\n }", "title": "" } ]
a4ef33c480eb7bf55e871977106e63a4
sets the email object
[ { "docid": "95f89b1057ce63e8858cf2710ec032f8", "score": "0.0", "text": "public MailMessageObject( String emailTo, String emailFrom, String subject, String emailBody, DataSource attachment, JavaMailSender mailSender )\n\t\t\tthrows MessagingException {\n\t\tthis.mimeMessage = mailSender.createMimeMessage();\n\t\tthis.helper = new MimeMessageHelper( this.mimeMessage, true );\n\t\tthis.helper.setTo( emailTo );\n\t\tthis.helper.setFrom( new InternetAddress ( emailFrom ) );\n\t\tthis.helper.setSubject( subject );\n\t\tthis.helper.setText ( emailBody, true );\n\t\tthis.helper.addAttachment( \"Replace with file name\", attachment );\n\t}", "title": "" } ]
[ { "docid": "3565386a5a36ee43cbd17748fd796947", "score": "0.793893", "text": "public void setEmail(Object email) {\n\t\t\n\t}", "title": "" }, { "docid": "4162fac2dce29729819c770fa4a994dd", "score": "0.7604765", "text": "public void setEmail(String in) {this.storableUpdate(); this.email = in;}", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.752533", "text": "void setEmail(String email);", "title": "" }, { "docid": "4b508b835e56c5d9d7c65b29bca0a235", "score": "0.75231236", "text": "@Override\n public void setEmail(String email) {\n }", "title": "" }, { "docid": "0520af3e2daf50c27b7d4b42b78beb3e", "score": "0.7446318", "text": "void setEmail(java.lang.String email);", "title": "" }, { "docid": "81a9d50ce9537c3669cfd1e2e24e6b6a", "score": "0.7347273", "text": "public void setEmail(String e)\n {\n this.email = e;\n }", "title": "" }, { "docid": "19451360245b42f200167241cc6fd844", "score": "0.7337799", "text": "@Override\n\tpublic void setmail(String email) {\n\t\tthis.email = email;\n\t}", "title": "" }, { "docid": "25651a0eb9228a91b69803f5d754a6bd", "score": "0.7322217", "text": "public void setEmail(String email) {//creates a method to set the email in: cell number to set to\n this.email = email;//sets the email\n }", "title": "" }, { "docid": "6b4cfc1ebe4c7a04b106da23c04b6685", "score": "0.73018837", "text": "public void setEmail(String string);", "title": "" }, { "docid": "cd99f1b533293220fd73f4b32fc252c2", "score": "0.72487175", "text": "public void setEmail(String em)\n {\n email = em;\n }", "title": "" }, { "docid": "c776573bb0e013ab5c1597d3820bae32", "score": "0.7233925", "text": "void setNilEmail();", "title": "" }, { "docid": "a4222ceee40ee87d375c218094c59bbd", "score": "0.7211917", "text": "public void setEmail(String s){\n\t\tthis.email=s;}", "title": "" }, { "docid": "d2e254fec4d39a0b703e86f556c895ce", "score": "0.72077894", "text": "public void setEmail(String email);", "title": "" }, { "docid": "d2e254fec4d39a0b703e86f556c895ce", "score": "0.72077894", "text": "public void setEmail(String email);", "title": "" }, { "docid": "d2e254fec4d39a0b703e86f556c895ce", "score": "0.72077894", "text": "public void setEmail(String email);", "title": "" }, { "docid": "97824b0735699a0b83c02b5bf2e180ba", "score": "0.7179819", "text": "public void setEmail(String email)\n {\n this.email=email;\n }", "title": "" }, { "docid": "e76a323f80ae4fccb4448ea47e748c8c", "score": "0.7167709", "text": "public void setEmail(String pEmail){\n this.email = pEmail;\n }", "title": "" }, { "docid": "105574b7caf90f573bd4007020636e42", "score": "0.71633184", "text": "public void setEmail(String email) {\n if (email.length() > EMAIL_SIZE) {\n throw new CotSdkException(\"Email address cannot contain more than \"+EMAIL_SIZE+\" characters.\");\n } else {\n anyObject.put(\"email\", email);\n }\n }", "title": "" }, { "docid": "3fb18c71cd9d5007faede0a18524a54f", "score": "0.71266377", "text": "public void setEmail(String address) {\r\n email = address;\r\n }", "title": "" }, { "docid": "6fec5f8fa8e505a39b1c1e4de171e4c3", "score": "0.7102788", "text": "public void setEmail(String value) {\n m_email = value;\n }", "title": "" }, { "docid": "e754125a5bf86d204384999cd4f9cd56", "score": "0.70885974", "text": "public void setEmail(String email) {\n\t\tif (!email.isEmpty()) {\n\t\t\tif (email.contains(\"gmail\")) {\n\t\tthis.email=email;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"email must be gmail type\");\n\t\t\t}\n\t\t}else {\n\tSystem.out.println(\"Emain cannot be empty\");\n\t\t}\n\t}", "title": "" }, { "docid": "389103cf224b93d9293139c8d9bc5514", "score": "0.7071615", "text": "public void setEmail(String email)\r\n\t{ \r\n\t\t_email = email;\r\n\t}", "title": "" }, { "docid": "bee8c8bf56669cc760c3934b718cd44e", "score": "0.7033047", "text": "public void setEMail (boolean EMail);", "title": "" }, { "docid": "1c2e7aaf74895c0966437ae5dd292726", "score": "0.7002469", "text": "public TadoMe setEmail(TadoEmail email);", "title": "" }, { "docid": "8fbf8abddca72fedf2af5320f5cc2f33", "score": "0.69651645", "text": "private void setEmailAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n emailAddress_ = value;\n }", "title": "" }, { "docid": "5e2f2e3845ca9fb5ffa8f280284f4a87", "score": "0.6960094", "text": "void setEmailTo(java.lang.String emailTo);", "title": "" }, { "docid": "914c35baa1cc6dc9b2c94bcb0f9a69d5", "score": "0.6953521", "text": "public void setEmail(java.lang.String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "5f788b45e74733b27744170bdba9d7c1", "score": "0.6949362", "text": "public void setEmail(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localEmailTracker = true;\n } else {\n localEmailTracker = true;\n \n }\n \n this.localEmail=param;\n \n\n }", "title": "" }, { "docid": "d04dc5a5e2a6fc3b6999ff91c01e1a5a", "score": "0.69444597", "text": "public void setEmailAddress(EmailType newEmailAddress) {\n _emailAddress = newEmailAddress;\n }", "title": "" }, { "docid": "6d8f6f1b942a78d87eb90f8063c75207", "score": "0.69378483", "text": "void xsetEmail(org.apache.xmlbeans.XmlString email);", "title": "" }, { "docid": "d324fb905026e541f5032887881de9a2", "score": "0.69181305", "text": "@Test\n public void testSetEmail() {\n Customer customer = new Customer(\"test@mail.com\", \"testpass\", \"Tester\", \"Testerino\", \"TestAddress\", \"2457275\");\n String email = \"newEmail\";\n assertEquals(\"test@mail.com\", customer.getEmail());\n customer.setEmail(email);\n assertEquals(email, customer.getEmail());\n }", "title": "" }, { "docid": "64e69a6bff763bf595bb93c1dfbd7583", "score": "0.6912519", "text": "public void setEmail(String email)\n {\n this.email = email;\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.69045275", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "b13ac316caaf18598c10982cc277160d", "score": "0.69029164", "text": "public void setEmailAddress(java.lang.String emailAddress)\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(EMAILADDRESS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EMAILADDRESS$12);\n }\n target.setStringValue(emailAddress);\n }\n }", "title": "" }, { "docid": "b311500e6b5f03ecfe1a22831c913d4e", "score": "0.6894315", "text": "public void setEmail(java.lang.String value) {\n this.email = value;\n }", "title": "" }, { "docid": "a1ba782de7e79353d6102dcf1bdc5358", "score": "0.68915313", "text": "public void setAlternativeEmail(String altemail){\nthis.alternateEmail=altemail;\n}", "title": "" }, { "docid": "ed83c1364705062a73b430355f2cc864", "score": "0.6885921", "text": "public void setEmail(String email) {\n if (email == null) {\n this.email = \"\";\n } else {\n this.email = email;\n }\n }", "title": "" }, { "docid": "633838c3bacb77dc64616df567155964", "score": "0.6865632", "text": "public final void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "124d39ac65d4ba2be00c2ad19bc11722", "score": "0.68573785", "text": "public void setEmail(String email) {\n\t\tLog.info(\"Set the email in the input box\");\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.email))).clear();\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.email))).sendKeys(email);\n\n }", "title": "" }, { "docid": "a36242db00169e8eee1b60ffbdd9ea7d", "score": "0.68495715", "text": "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "title": "" }, { "docid": "c02b4167c1cecdfbf770f6ac6b3763a8", "score": "0.68452555", "text": "public void setEmail( String email ) {\n this.email = email;\n }", "title": "" }, { "docid": "8385521d2a3b9c7fe2c9a2f5e8b05a9b", "score": "0.6844852", "text": "public void setEmail(String email) {\n \t\tthis.email = email;\n \t}", "title": "" }, { "docid": "691de06deb5f0814f160c0da0eb182d3", "score": "0.68395543", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "5f645094ba23fbb26466748e4ee294bd", "score": "0.6830287", "text": "public void setEmailAddress(String emailAddress)\r\n {\r\n this.emailAddress = emailAddress;\r\n }", "title": "" }, { "docid": "c52f710e25f5bb62bcb4af5b76d2c46c", "score": "0.68224543", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "efc9d2d9831c0dbc17e094702256188a", "score": "0.681119", "text": "public void setRegisteredEmail(String email) {\n\t\tLog.info(\"Setting the registered email\" + email);\n\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.registeredEmail))).clear();\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.registeredEmail))).sendKeys(email);\n\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.6779616", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "f11a97ccd6e96d6cf3507c647d17ca11", "score": "0.67697245", "text": "void setNilEmailTo();", "title": "" }, { "docid": "4fb5918ea84e60515aade48ba599d5db", "score": "0.67642945", "text": "void setEmailFrom(java.lang.String emailFrom);", "title": "" }, { "docid": "65ddec6af8787f20667f4fdcf3fe3d64", "score": "0.67580175", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b329414aea43c8903bf8c613a9dc8ba6", "score": "0.674941", "text": "public void setUserEmail(String userEmail) {\n this.userEmail = userEmail;\n }", "title": "" }, { "docid": "6b0c4e29b57ed601f6f8b81141193b12", "score": "0.67486024", "text": "public WBA_ForgotPasswordPage setEmail(String email) {\n WebElement waitForClickable = new WebDriverWait(driver,DataItems.shortWait).until(ExpectedConditions.elementToBeClickable(emailFieldLocator));\n Actions clickAndType = new Actions(driver);\n clickAndType.click(driver.findElement(emailFieldLocator)).sendKeys(email).build().perform();\n return this;\n }", "title": "" }, { "docid": "69426dad8acb132f0ed5b4f36dcba849", "score": "0.674739", "text": "public com.coffeetechgaff.storm.algorithmnode.AlgorithmNode.Builder setEmail(java.lang.String value) {\n validate(fields()[6], value);\n this.email = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "title": "" }, { "docid": "3ff6616f71e365c76800b4058ef4987d", "score": "0.6738167", "text": "public void setEmail(final String value)\r\n\t{\r\n\t\tsetEmail( getSession().getSessionContext(), value );\r\n\t}", "title": "" }, { "docid": "265c5763cb303f4298030e673338d2a3", "score": "0.67375267", "text": "public void setEmail(final String em) {\n this.email = em;\n }", "title": "" }, { "docid": "851b504a8eb78319a09403087bda1754", "score": "0.67332345", "text": "public void setEmail(String email) {\n this.email = email; }", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.671831", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.671831", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.671831", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.671831", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.671831", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "46c30a961033f7dcea87ab3e4ac3c89e", "score": "0.6716802", "text": "public void xsetEmailAddress(au.gov.asic.types.EmailType emailAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.EmailType target = null;\n target = (au.gov.asic.types.EmailType)get_store().find_element_user(EMAILADDRESS$12, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.EmailType)get_store().add_element_user(EMAILADDRESS$12);\n }\n target.set(emailAddress);\n }\n }", "title": "" }, { "docid": "96a081c78374ebe26fde164e1fe6447c", "score": "0.6703728", "text": "public void setEmail(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, EMAIL,value);\r\n\t}", "title": "" }, { "docid": "ae875822a9dd0fa57acb810dd83c1c3d", "score": "0.67007184", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n email_ = value;\n \n return this;\n }", "title": "" }, { "docid": "ae875822a9dd0fa57acb810dd83c1c3d", "score": "0.67007184", "text": "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n email_ = value;\n \n return this;\n }", "title": "" }, { "docid": "2d784f0d089e34b1f5c9db6ba1251f2e", "score": "0.6669438", "text": "public void setEmail(String email) {\n\n this.email = email;\n }", "title": "" }, { "docid": "a2accf097d5f3eda632aa19d9ba6456b", "score": "0.66631645", "text": "public void setemail (String n) {\n\t\temail = n;\n\t}", "title": "" }, { "docid": "5b396a57e5eef47e872ecdaf3ed98870", "score": "0.6662128", "text": "void setNilEmailHost();", "title": "" }, { "docid": "699c7f9a36a49b2f75c9c2acc20aea10", "score": "0.66576", "text": "public void setEmail(String v) \n {\n\n if (!ObjectUtils.equals(this.email, v))\n {\n this.email = v;\n setModified(true);\n }\n\n\n }", "title": "" }, { "docid": "4bb5cd437f8a8331c036cc8c6f1ae4f7", "score": "0.665602", "text": "public void setEmail(String email) {\r\n\t\tassert(password != null); \t\t\t// NOT NULL\r\n\t\tassert(password.length() <= 256); \t// Max length = 256\r\n\t\tsuper.setChanged();\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "86a83a25f567732b3b2ff2cbf038cf8d", "score": "0.6638852", "text": "void xsetEmailTo(org.apache.xmlbeans.XmlString emailTo);", "title": "" }, { "docid": "47090c95adc75d690e88a3c4643b3ce5", "score": "0.66285354", "text": "public void enviarEmail(String email) {\n\t}", "title": "" }, { "docid": "2b322b0a5ccc36bcb7910a3f9fb21b6a", "score": "0.6627359", "text": "void setNilEmailFrom();", "title": "" }, { "docid": "c3cd902e9b8cf725dc56fa3f1feb79bc", "score": "0.66183007", "text": "private void setupMail() {\n\n String myEmailId = prof.getUserEmail();\n String myPassword = \"ensf409finalproject\";\n try {\n email = new MultiPartEmail();\n email.setSmtpPort(587);\n email.setAuthenticator(new DefaultAuthenticator(myEmailId, myPassword));\n email.setDebug(true);\n email.setHostName(\"smtp.gmail.com\");\n email.setFrom(myEmailId);\n to.setText(\"\");\n to.setEditable(false);\n from.setText(myEmailId);\n from.setEditable(false);\n email.setSSLOnConnect(true);\n }\n catch(EmailException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "96238cdb21cd020ec6eeb599d5e10103", "score": "0.66151196", "text": "void setEmailHost(java.lang.String emailHost);", "title": "" }, { "docid": "38ce733ce3dc806285caba1a3bab56c9", "score": "0.6588233", "text": "public void setEmail(String email) {\n if (email.trim().isEmpty()) {\n throw new IllegalArgumentException(\"Email do autor não pode estar\"\n + \" vazio.\");\n }\n if (email.contains(\"[()<>,;:.\\\\[\\\\]{}]\\\\\\\\\\\\\\\\\")) {\n throw new IllegalArgumentException(\"Email do autor não pode conter \"\n + \"caracteres.\");\n }\n if (!(email.matches(\".+@.+\\\\..{2,}\"))) {\n throw new IllegalArgumentException(\"Email do autor tem de obedecer\"\n + \" a estrutura\");\n }\n\n this.email = email;\n }", "title": "" }, { "docid": "e22241beadaf0c5894bad483fdf5becd", "score": "0.65828997", "text": "public void setMail(String mail) {\n this.mail = mail;\n }", "title": "" }, { "docid": "3084ceea31607c6acc2ff0101dfa681a", "score": "0.65791804", "text": "public void establecer_email(String valor_email){\r\n email= valor_email;\r\n \r\n }", "title": "" } ]
279fb6fa896daea8bffb29447833e839
~ setter method for id.
[ { "docid": "b45f55cf87ab257242b6f8c1fc270b8f", "score": "0.0", "text": "public void setId(Long id) {\n this.id = id;\n }", "title": "" } ]
[ { "docid": "edfbc8b7721acceb61c94c61154a49ea", "score": "0.8103111", "text": "public void setId( Object id ) {\n this.id = id;\n }", "title": "" }, { "docid": "0a84d43d82c7d2d5cb07feac263b380b", "score": "0.80997604", "text": "public void setId(Object id) {\n\tthis.id = id;\n }", "title": "" }, { "docid": "9c227e4905c9ed1a14c254f7e8dcd60d", "score": "0.80713785", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "1a0696356569e4528f11ba2bcab5b7ac", "score": "0.8051544", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "ff8ac98f10f1bf5cd6c69eba2e095dc5", "score": "0.80371815", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "b7cc66c70c49ae2110e4aad76be0b360", "score": "0.8022921", "text": "public void setId(String id)\r\n/* 26: */ {\r\n/* 27:43 */ this.id = id;\r\n/* 28: */ }", "title": "" }, { "docid": "61e8667c1e6a8fe1660705de0a34d386", "score": "0.80228573", "text": "void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "dcf4258285bdb7701344e6741f4cd583", "score": "0.8016642", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "b09489ce45369638c06be3e647e5f107", "score": "0.801114", "text": "public abstract void setID(String id);", "title": "" }, { "docid": "a33f329865027b03ae133a228ba7da95", "score": "0.79815745", "text": "@Override\n\t\tpublic void setId(String id) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d06f979d0c788d6efcefc00dc2bd612e", "score": "0.7976628", "text": "private void setId(long value) {\n \n id_ = value;\n }", "title": "" }, { "docid": "d06f979d0c788d6efcefc00dc2bd612e", "score": "0.7976628", "text": "private void setId(long value) {\n \n id_ = value;\n }", "title": "" }, { "docid": "c72764b96d2aafecddeb92d475d3e58a", "score": "0.7976372", "text": "public void setId(int id)\r\n {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.79754466", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.79754466", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "2b9bc884c03501b1a63b811947139741", "score": "0.79663205", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "603a4358d89d4de89cb1dc54f9f90390", "score": "0.7957033", "text": "public void setId(long id) {\r\n this.id = id;\r\n\r\n }", "title": "" }, { "docid": "68aaeaaf905e75128e6903a5e86888f3", "score": "0.79396", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "6c401e470233ecda975c32ab21f6f0f8", "score": "0.7935595", "text": "public void setId(long id)\n {\n this.id=id;\n }", "title": "" }, { "docid": "5a8b33b9bd8b285b05353dcdd2d8f244", "score": "0.79154885", "text": "protected void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "a243a79bbb8aa6fcf0989c82995593c1", "score": "0.7914391", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "a827d1c15e900909f4f078d942776f16", "score": "0.79140306", "text": "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4667bca68e3fe367f3625edeccd83627", "score": "0.7906923", "text": "public void setID(Integer id) { \r\n mId = id;\r\n }", "title": "" }, { "docid": "ed98d8f1b03990961734c3a0a3c0eafc", "score": "0.7896873", "text": "@Override\n\tpublic void setId(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "a4e720bceb9e5efae7a75a1a7286ee05", "score": "0.7884975", "text": "@Override\n\tpublic void setId(Long id) {\n\n\t}", "title": "" }, { "docid": "39b9e656066c1a2380f98232f5895105", "score": "0.787849", "text": "@Override\n public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "519f45d8e6617dfda5352225f70bfa2a", "score": "0.78768456", "text": "public void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.78650725", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.78650725", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.78650725", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.78619474", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.78619474", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.78619474", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.78619474", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.78619474", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "c1e32b961d60ff2010b4b3398f29a46e", "score": "0.78565407", "text": "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "aeab4988a1da21c6892acee4d5e8461c", "score": "0.78455645", "text": "public void setId(int id)\n {\n this.id=id;\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.7843186", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.7843186", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "61b3dc331adce5261fcf0a5bd0b0c55b", "score": "0.7838255", "text": "@Override\r\n\tpublic void setId(String id) {\n\t}", "title": "" }, { "docid": "6091d9a46855167c214a61ec7b99d632", "score": "0.783749", "text": "public void setId(String id)\n \t{\n \t\tthis.id = id;\n \t}", "title": "" }, { "docid": "3d781bc213b63f37f826edef4350867b", "score": "0.78329754", "text": "@Override\n\tpublic void setId(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.78296983", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.78296983", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.78296983", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.78296983", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "60f3f89398cb40aedd2d165dd348b624", "score": "0.78282803", "text": "@Override\n\tpublic synchronized void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "a5997307f41e56f78a15f2afb5968d92", "score": "0.78217137", "text": "protected void setID(Integer id) {\n this.id = id;\n }", "title": "" }, { "docid": "228556aa8392cbf891356b6e80e5a9cb", "score": "0.78182673", "text": "public void setId(long id) {\n\t\t\n\t}", "title": "" }, { "docid": "abc17fcc252167cb639a76a5e1f25f19", "score": "0.7813287", "text": "public void setId(long id) {\n\tmId = id;\n}", "title": "" }, { "docid": "79a1c3b4afab8caf3b73565dfd9cfbbe", "score": "0.780226", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "1c30a77634c244f12c3c4b55d8616dbc", "score": "0.78011864", "text": "@Override\n\tpublic void setId(String id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7798189", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7798189", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7798189", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "0f427331c06725548127253af10eb2d4", "score": "0.7789912", "text": "public void setId(int id){\n\t\t this.id = id;\n }", "title": "" }, { "docid": "a1f50e2b5d1777337d0e5cbe1fa79234", "score": "0.77825886", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7779256", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.77763253", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "605caa4cb7aea4133af9d212d98594d3", "score": "0.7775307", "text": "public void setId(java.lang.Integer id) { \n this.id = id; \n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.77720976", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.77720976", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" } ]
e7579e8f61d386761a6f574950ff395e
This method fetches bills related to delinquency process
[ { "docid": "29c8e3a449312c2b496ef04a9a7e8d82", "score": "0.58390915", "text": "private List<String> fetchRelatedBillObjects() {\n\t\tQuery<String> query = createQuery(CmDelinquencyProcessCancelCriteriaConstants.FETCH_BILL_LIST.toString(), \"CmDelinquencyProcessCancelCriteriaAlgComp_Impl\");\n\t\tquery.bindId(\"delinProcId\", delinquencyProcessId);\n\t\tquery.bindLookup(\"relatedObjTypeFlag\", CmDelinquencyRelatedObjTypeLookup.constants.CM_COLLECTING_ON);\n\t\tquery.addResult(\"billId\", \"dpo.id.primaryKeyValue1\");\n\n\t\treturn query.list();\n\t}", "title": "" } ]
[ { "docid": "b11bfdddf20807c980efb7c185b35417", "score": "0.6156666", "text": "public List<Biller> getBillers(Long transactionTypeId);", "title": "" }, { "docid": "506981a16226726af3dd0e99b0f23646", "score": "0.6089594", "text": "public List<BillDto> getAllBillsForSync() {\n List<BillDto> bills = new ArrayList<BillDto>();\n String selectQuery = \"SELECT * FROM \" + TABLE_BILL + \" where \" + FPSDBConstants.KEY_BILL_STATUS + \"<>'T'\";\n Cursor cursor = database.rawQuery(selectQuery, null);\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n BillDto bill = new BillDto(cursor);\n bill.setBillItemDto(getBillItems(bill.getBillLocalRefId()));\n bills.add(bill);\n cursor.moveToNext();\n }\n return bills;\n }", "title": "" }, { "docid": "3c28e3c0669fc07063e5e350f34418af", "score": "0.60339344", "text": "@Override\n\tpublic List<Bill> getAllBills() {\n\t\tLOGGER.info(\"start\");\n\t\tLOGGER.info(\"End\");\n\t\treturn billRepository.findAll();\n\t}", "title": "" }, { "docid": "9360988f9fc014518f1aba521e580116", "score": "0.5784553", "text": "public void fetchPaymentsFromLND() {\n // Fetch lightning payments\n ListPaymentsRequest paymentsRequest = ListPaymentsRequest.newBuilder()\n .setIncludeIncomplete(false)\n .build();\n\n compositeDisposable.add(LndConnection.getInstance().getLightningService().listPayments(paymentsRequest)\n .subscribe(listPaymentsResponse -> {\n mPaymentsList = Lists.reverse(listPaymentsResponse.getPaymentsList());\n mPaymentsUpdated = true;\n isHistoryUpdateFinished();\n }, throwable -> ZapLog.e(LOG_TAG, \"Exception in payment request task: \" + throwable.getMessage())));\n }", "title": "" }, { "docid": "07a0065d2fe4f5ca1b8bc7a11302bb7b", "score": "0.5722317", "text": "private static void payBills() {\n\t\t\n\t}", "title": "" }, { "docid": "6267ccf22c5d720bb576186a14b6a2fd", "score": "0.5560929", "text": "@GET(\"api/bills/bill\")\n Call<List<Bill>> listBill();", "title": "" }, { "docid": "f8b2179e64020e2215de48b0f35355b4", "score": "0.5556021", "text": "private void getAllBillingData() throws Exception {\n try {\n \n billCycleMgr = new BillingCycleMgtManager();\n billingList = billCycleMgr.getAllBillingData();\n \n } catch (Exception ex) {\n throw ex;\n }\n }", "title": "" }, { "docid": "744e70fdf3cc0aef1da5fc62c5d5079e", "score": "0.5533005", "text": "public void clearBills() {\n\t\tbills.clear();\n\t}", "title": "" }, { "docid": "c9481ae5433727f576370150005551be", "score": "0.550012", "text": "public void fetchBalanceFromLND() {\n\n Single<WalletBalanceResponse> walletBalance = LndConnection.getInstance().getLightningService().walletBalance(WalletBalanceRequest.newBuilder().build());\n Single<ChannelBalanceResponse> channelBalance = LndConnection.getInstance().getLightningService().channelBalance(ChannelBalanceRequest.newBuilder().build());\n Single<PendingChannelsResponse> pendingChannels = LndConnection.getInstance().getLightningService().pendingChannels(PendingChannelsRequest.newBuilder().build());\n\n compositeDisposable.add(Single.zip(walletBalance, channelBalance, pendingChannels, (walletBalanceResponse, channelBalanceResponse, pendingChannelsResponse) -> {\n\n setOnChainBalance(walletBalanceResponse.getTotalBalance(), walletBalanceResponse.getConfirmedBalance(), walletBalanceResponse.getUnconfirmedBalance());\n setChannelBalance(channelBalanceResponse.getBalance(), channelBalanceResponse.getPendingOpenBalance());\n setChannelBalanceLimbo(pendingChannelsResponse.getTotalLimboBalance());\n\n return true;\n }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(aBoolean -> {\n // Zip executed without error\n ZapLog.d(LOG_TAG, \"Balances Fetched!\");\n broadcastBalanceUpdate();\n\n if (!mIsWalletReady) {\n mBalancesFetched = true;\n if (mChannelsFetched) {\n mIsWalletReady = true;\n broadcastWalletLoadedUpdate();\n }\n }\n }, throwable -> ZapLog.e(LOG_TAG, \"Exception in fetch balance task: \" + throwable.getMessage())));\n }", "title": "" }, { "docid": "f0a783622c0175d306ea0dd3ad349ac8", "score": "0.53924626", "text": "@POST\n\t@Path(\"/getbills\")\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Produces({MediaType.APPLICATION_JSON})\n\tpublic JSONObject getBills(final JSONObject object){\n\t\t\n\t\treturn accountsObj.getBills(object);\n\t}", "title": "" }, { "docid": "7400102b76b2ddea9fb083680f088244", "score": "0.5338121", "text": "private void getPayments() {\n\r\n\r\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.GET_DISTRIBUTOR_PAYMENTS,\r\n AppConfig.GET_DISTRIBUTOR_PAYMENTS + Stockist_id, this, true);\r\n\r\n }", "title": "" }, { "docid": "051ae2529274f0197b243f1a9c5e76aa", "score": "0.5332549", "text": "ArrayList<Bill> findUserBills(int idUser) throws DAOException;", "title": "" }, { "docid": "67a2dcd5d48288188082b02deba1b671", "score": "0.5322085", "text": "public int unpaidBills(Apartment apartment) {\n Flat[][] temp = apartment.getApartment();\n int counter = 0;\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp[i].length; j++) {\n ArrayList<Bill> billList = temp[i][j].getListOfBills();\n for (int k = 0; k < billList.size(); k++) {\n if (billList.get(k).getPaymentInfo().equals(\"false\")) {\n counter += billList.get(k).getAmount();\n }\n }\n\n }\n }\n return counter;\n }", "title": "" }, { "docid": "2ef0f9faa7fbc0b583dbd5d56f73faa6", "score": "0.5317874", "text": "public List<BillerProduct> getBillerProducts(String billerCode);", "title": "" }, { "docid": "7df51bc34b0106855d6c979e4da6688e", "score": "0.528964", "text": "public List<Bill> getAllBills() {\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n Cursor cursor = db.query(BillTable.TABLE_NAME, null, null, null, null, null, BillTable.DATE + \" DESC\");\n //cursor.moveToFirst();\n ArrayList<Bill> billList = new ArrayList<Bill>();\n while (cursor.moveToNext()) {\n billList.add(new Bill(cursor));\n }\n db.close();\n return billList;\n }", "title": "" }, { "docid": "ba0d54f88646f0407f410d2c01d6395e", "score": "0.5221514", "text": "public NsResponse getBillDetail(String billId) throws BusinessException, SystemException;", "title": "" }, { "docid": "c6234c2aa0111875a875a7c37c079c7d", "score": "0.51828766", "text": "private double getAvailableBudget() {\n\n double currentExpenses = 0;\n\n for(Employee e : employees) {\n currentExpenses += e.getSalary();\n }\n\n return budget - currentExpenses;\n }", "title": "" }, { "docid": "7476e97bbef1c53d7b20f9163cc36274", "score": "0.5177274", "text": "public List listHistroy(YearlyBudget yb);", "title": "" }, { "docid": "b8580ea186e958d0c52aec69d5581f29", "score": "0.5163027", "text": "@Override\n\tpublic List<Bill> getBill(String id) {\n\t\treturn billRepository.getBill(id);\n\t}", "title": "" }, { "docid": "f9f00e9d8acacfdb31aaace815ee3d69", "score": "0.5162002", "text": "public BillDto getBill(long billId) {\n BillDto billDto = new BillDto();\n String selectQuery = \"SELECT * FROM \" + TABLE_BILL + \" where \" + FPSDBConstants.KEY_BILL_REF_ID + \"=\" + billId;\n Cursor cursor = database.rawQuery(selectQuery, null);\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n billDto = new BillDto(cursor);\n billDto.setBillItemDto(getBillItems(billDto.getBillLocalRefId()));\n cursor.moveToNext();\n }\n return billDto;\n }", "title": "" }, { "docid": "9e049b759576c06f19dbcb6fdbad26ee", "score": "0.5099384", "text": "private void requestBucks() {\n\t\t\n\t}", "title": "" }, { "docid": "3fd6a06f1f52e5cfd167186348626a1b", "score": "0.50893533", "text": "public abstract IBalanceList getBanlances(IApiAccess apiAccess, IExchangeSession session) throws ExchangeException;", "title": "" }, { "docid": "8bb6cf8b1d4f24cb9bf2b80a7221982c", "score": "0.50849056", "text": "public List<BillDto> getAllBillsUser(long id, int month) {\n List<BillDto> bills = new ArrayList<BillDto>();\n String selectQuery = \"SELECT * FROM \" + TABLE_BILL + \" where \" + FPSDBConstants.KEY_BILL_BENEFICIARY + \" = \" + id + \" AND \" + FPSDBConstants.KEY_BILL_TIME_MONTH + \" = \" + month + \" order by transactionId\";\n Cursor cursor = database.rawQuery(selectQuery, null);\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n BillDto billDto = new BillDto(cursor);\n bills.add(billDto);\n cursor.moveToNext();\n }\n return bills;\n }", "title": "" }, { "docid": "8fcd9b294b304ab0e27fcf61a2658252", "score": "0.50821143", "text": "public List<BLinha> GeraBalancete(String opcao, String DATAI, String DATAF, String DB) throws SQLException {\n System.out.println(opcao + \"DI \" + DATAI + \"DF\" + DATAF);\n PlanoDB plano = new PlanoDB(DB);\n List<PlanoBean> objPlano = plano.carregaComboPlano();\n\n for (PlanoBean objPlano1 : objPlano) {\n linha = new BLinha();\n linha.setConta(objPlano1.getNumero());\n linha.setDescricao(linha.formatDesc(objPlano1.getDescricao()));\n linha.setSaldoAnterior(objPlano1.getSaldo_iniv());\n linha.setDebito(0);\n linha.setCredito(0);\n linha.setSaldo(0);\n //if( !liCbxPlano.get(i).getNumero().substring(4, 4).equals(\"0000\")){\n //System.out.println(liCbxPlano.get(i).getNumero().substring(4, 4));\n this.balancete.add(linha);\n //}\n //cbCredito.addItem(liCbxPlano.get(i).getNumero()+ \" - \"+liCbxPlano.get(i).getDescricao());\n }\n\n //for (BLinha balancete1 : balancete) {\n // System.out.println(\"1\" + balancete1.toString());\n //}\n //sql=\"select * from movimento where \"+opcao+\" < '\"+DATAI+\"' order by \"+opcao;\n sql = \"select * from movimento order by \" + opcao;\n\n try {\n\n pstm = bd.conectar().prepareStatement(sql);\n rs = pstm.executeQuery();\n //System.out.println(\"Conta \"+Conta + \" valor \"+valor+\" posicao \"+ posicao);\n //System.out.println(sql);\n //System.out.println(\"datai \"+DATAI);\n //System.out.println(\"dataF \"+DATAF);\n\n while (rs.next()) {\n //System.out.println(\"1 \"+rs.getString(\"ct_debito\")+\" \"\n // + rs.getString(\"ct_credito\")+ \" \"+ rs.getFloat(\"valor10\")+\" \"+rs.getDate(\"dt_vencto\"));\n try {\n if (rs.getDate(\"dt_vencto\").before(CtoD(DATAI))) {\n W_VALOR = rs.getFloat(\"valorus\");\n //System.out.println(\" w _ valor \"+W_VALOR);\n\n //MOST()\n CT_DEB = rs.getString(\"ct_debito\");\n ACUMULA(CT_DEB, W_VALOR, 2);\n //@ 24,13 SAY MENSA1\n DESCARREGA(CT_DEB, W_VALOR, 2);\n //@ 24,13 SAY MENSA2\n CT_CRED = rs.getString(\"ct_credito\");\n SUBTRAI(CT_CRED, W_VALOR, 2);\n //@ 24,13 SAY MENSA3\n DESCARREGA(CT_CRED, -1 * W_VALOR, 2);\n //@ 24,13 SAY MENSA1\n }//else{\n //System.out.println(rs.getDate(\"dt_vencto\")+ \" maior que \"+DATAI);\n\n //}\n W_VALOR = 0;\n\n //processa periodo\n if ((rs.getDate(\"dt_vencto\").after(CtoD(DATAI)) || rs.getDate(\"dt_vencto\").equals(CtoD(DATAI))) && (rs.getDate(\"dt_vencto\").before(CtoD(DATAF)) || rs.getDate(\"dt_vencto\").equals(CtoD(DATAF)))) {\n\n //System.out.println(\"2 \"+rs.getString(\"ct_debito\")+\" \"\n //+ rs.getString(\"ct_credito\")+ \" \"+ rs.getFloat(\"valor10\")+\" \"+rs.getDate(\"dt_vencto\"));\n W_VALOR = rs.getFloat(\"valorus\");\n\n // MOST()\n // @ 24,13 SAY MENSA4\n CT_DEB = rs.getString(\"ct_debito\");\n ACUMULA(CT_DEB, W_VALOR, 3);\n // @ 24,13 SAY MENSA2\n DESCARREGA(CT_DEB, W_VALOR, 3);\n CT_CRED = rs.getString(\"ct_credito\");\n // @ 24,13 SAY MENSA3\n SUBTRAI(CT_CRED, W_VALOR, 4);\n // @ 24,13 SAY MENSA3\n DESCARREGA(CT_CRED, -1 * W_VALOR, 4);\n W_VALOR = 0;\n\n }//fim do if\n } catch (NullPointerException npe) {\n System.out.println(npe.getMessage());\n }\n }//while\n //\n\n bd.desconectar();\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n\n pstm.close();\n rs.close();\n\n }\n for (int x = 0; x < balancete.size(); x++) {\n balancete.get(x).setSaldo(balancete.get(x).getSaldoAnterior()\n + balancete.get(x).getDebito()\n + balancete.get(x).getCredito());\n }\n // this.mostraBala();\n return balancete;\n }", "title": "" }, { "docid": "8306bd3dae1c444b779b45823bfe72dd", "score": "0.5079624", "text": "public EntityProcessFeeCalculation processReduction() {\n duesList = new ArrayList<>();\n previousPeriods = nPeriods;\n float auxPreviousPeriod = 0;\n for (int i = 0; i <= listPayments.size(); i++) {\n EntityDueDetail due = new EntityDueDetail();\n due.setPresentValue(amount);\n due.setValueDue(processDueBasedOnInterest(interest, amount, previousPeriods));\n\n if (i < listPayments.size()) {\n EntityPayment pay = listPayments.get(i);\n due.setnPeriod(pay.getPeriodo());\n due.setOriginalPayment((float) pay.getAmount());\n amount = processPresentValue(interest, due.getValueDue(), (nPeriods - pay.getPeriodo() + 1));\n pay.setAmount(ajustExtraordinaryPayment(pay.getAmount(), getInterestToNextDue(amount, interest.getRate())));\n amount = amount - (float) pay.getAmount();\n previousPeriods = nPeriods - pay.getPeriodo();\n } else {\n due.setnPeriod(nPeriods);\n }\n duesList.add(due);\n }\n return fetchData();\n }", "title": "" }, { "docid": "43aa8be677f6bc613b1190d66772864a", "score": "0.50670487", "text": "public Set<Ledger> loadLedgers();", "title": "" }, { "docid": "aa9f95f3648e48b4f1b35913b055e027", "score": "0.50509757", "text": "@Override\n\tpublic <B> List<B> getBallots(Long electionId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c37a2be889c02e01ca09eec4b1d9dd8a", "score": "0.5041899", "text": "public static Bill getBill( LegislativeBranch branch,String name) {\n throw new UnsupportedOperationException(\"Fix This\"); // ToDo\n// Bill ret = new Bill(branch, name);\n// Bill existing = bills.get(ret);\n// if(existing == null) {\n// bills.put(ret,ret);\n// existing = ret;\n// }\n//\n// return existing;\n }", "title": "" }, { "docid": "49f1035f6cecf05ae26fb7b65d9c511d", "score": "0.5039599", "text": "private void calculateHistoricGrowth() {\n ExchangeRate[] updatedRates;\n for (Currency currency : currencies) {\n currency.mergeRates();\n updatedRates = currency.calculateGrowth((lap == 2));\n if (connectedToDatabase) {\n exchangeRateAPIController.put(Globals.API_ENDPOINT + Globals.EXCHANGERATE_EXTENSION, updatedRates);\n }\n if (!currency.getHistoricRates().isEmpty()) {\n currency.mergeRates();\n updatedRates = currency.calculateGrowth((lap == 2));\n if (connectedToDatabase){\n exchangeRateAPIController.post(Globals.API_ENDPOINT + Globals.EXCHANGERATE_EXTENSION, updatedRates);\n }\n }\n }\n if (lap == 1) {\n for (Currency currency : currencies) {\n currency.findGaps(firstRelevantRate);\n }\n System.out.println(\"[INFO] First lap completed. Attempting to collect failed prices.\");\n lap = 2;\n } else if (lap == 2) {\n System.out.println(\"[INFO] Finished historic collection. Switching current price mode\");\n lap = 3;\n /*\n collector.shutdownNow();\n */\n notifyObservers();\n }\n }", "title": "" }, { "docid": "da895816e6abf5966896fdd6d2a8dda0", "score": "0.5033032", "text": "public ArrayList<String> createBill(String dough){\r\n ArrayList<String> returnList = Sorter.getBillStatistics(dough);\r\n return returnList;\r\n }", "title": "" }, { "docid": "20b420e3030cc25ca3d1d40b664e0470", "score": "0.5017227", "text": "ArrayList<Long> getItemsListings(int maxx) throws Exception {\r\n int max = maxx;//ids.size();\r\n int processed = 0;\r\n while(processed < max){\r\n StringBuilder sbb = new StringBuilder();\r\n int j;\r\n for (j = processed; j < Math.min(200 + processed, max); ++j) {\r\n sbb.append(items.get((int)(long)itemIds.get(j)).id).append(\",\");\r\n }\r\n processed = j;\r\n sbb.deleteCharAt(sbb.length()-1);\r\n \r\n String response = fetchInfo(\"/v2/commerce/listings\", \"ids\", sbb.toString());\r\n \r\n System.out.println(\"items (commerce listings) processed : \"+processed+\"/\"+max);\r\n JSONParser parser = new JSONParser();\r\n try{\r\n Object obj = parser.parse(response);\r\n JSONArray itemIds = (JSONArray) obj;\r\n Iterator<?> iterator = itemIds.iterator();\r\n\r\n int curr=0;\r\n while (iterator.hasNext()) {\r\n\r\n JSONObject object = (JSONObject) iterator.next();\r\n JSONArray buys = (JSONArray) object.get(\"buys\");\r\n JSONArray sells = (JSONArray) object.get(\"sells\");\r\n int id = (int)((long)object.get(\"id\"));\r\n\r\n Iterator<?> itt = buys.iterator();\r\n while(itt.hasNext()){\r\n JSONObject listing = (JSONObject)itt.next();\r\n long listings = (long)listing.get(\"listings\");\r\n long price = (long)listing.get(\"unit_price\");\r\n long quantity = (long)listing.get(\"quantity\");\r\n if(debug)System.out.println(\"curr: \"+curr+\r\n \" Buy : [listings, price, quantity]: \"+\r\n listings+\", \"+price+\", \"+quantity);\r\n\r\n items.get(id).bListings.add(listings);\r\n items.get(id).bUnitPrice.add(price);\r\n items.get(id).bQuantity.add(quantity);\r\n }\r\n\r\n itt = sells.iterator();\r\n while(itt.hasNext()){\r\n JSONObject listing = (JSONObject)itt.next();\r\n long listings = (long)listing.get(\"listings\");\r\n long price = (long)listing.get(\"unit_price\");\r\n long quantity = (long)listing.get(\"quantity\");\r\n\r\n if(debug)System.out.println(\"curr: \"+curr+\r\n \" Sell : [listings, price, quantity]: \"+\r\n listings+\", \"+price+\", \"+quantity);\r\n items.get(id).sListings.add(listings);\r\n items.get(id).sUnitPrice.add(price);\r\n items.get(id).sQuantity.add(quantity);\r\n }\r\n curr++;\r\n }\r\n }catch (ClassCastException e){\r\n System.err.println(\"!Exception (Class Cast). Continuing...\");\r\n System.err.println(\"Item ids were : \"+sbb);\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "9a9144b2ef6bb3b9a1aea1c51661221f", "score": "0.5010706", "text": "private void createAllBids() {\n\t\tArrayList<Issue> issues = agent.utilitySpace.getDomain().getIssues();\n\n\t\tArrayList<IssueDiscrete> discreteIssues = new ArrayList<IssueDiscrete>();\n\t\t\n\t\tfor (Issue issue:issues) {\n\t\t\tdiscreteIssues.add((IssueDiscrete)issue);\n\t\t}\n\t\t\n\t\tArrayList<ArrayList<Pair<Integer, ValueDiscrete>>> result = generateAllBids(discreteIssues, 0);\n\t\t\n\t\tfor (ArrayList<Pair<Integer, ValueDiscrete>> bidSet : result) {\n\t\t\tHashMap<Integer, Value> values = new HashMap<Integer, Value>();\n\t\t\tfor (Pair<Integer, ValueDiscrete> pair : bidSet) {\n\t\t\t\tvalues.put(pair.getFirst(), pair.getSecond());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tBid bid = new Bid(agent.utilitySpace.getDomain(), values);\n\t\t\t\tdouble utility = agent.utilitySpace.getUtility(bid);\n\t\t\t\tbidsCollection.addPossibleBid(bid, utility);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1992dfa65612f82b7981597c95b8f664", "score": "0.50065106", "text": "ArrayList<Billboard> getAllBillboards() throws SQLException;", "title": "" }, { "docid": "417d11632175541735f81b5530d907cf", "score": "0.5003482", "text": "void retrievePendingPayments();", "title": "" }, { "docid": "ae0a2d2bacd9225512a1961da523e424", "score": "0.5001916", "text": "public List<Bill> getBillsInRange(long startDate, long endDate) {\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n Cursor cursor = db.query(BillTable.TABLE_NAME, null, null, null, null, null, BillTable.DATE + \" DESC\");\n //cursor.moveToFirst();\n ArrayList<Bill> billList = new ArrayList<Bill>();\n while (cursor.moveToNext()) {\n billList.add(new Bill(cursor));\n }\n db.close();\n return billList;\n }", "title": "" }, { "docid": "dfca0b1986926cfbece966ac809bc112", "score": "0.4994346", "text": "Billboard getBillboard(String bName) throws SQLException;", "title": "" }, { "docid": "bfac3cf924ed5478616a9db9eff08760", "score": "0.49888304", "text": "@Test\n public void getBilansDetailsAmountTest() {\n\n for (int i=0; i<12; i++) {\n List<BigDecimal> balance = service.getBilansDetailsAmount(i);\n\n for (BigDecimal balanceValues : balance) {\n\n System.out.println( \"i = \" + i + \" \" + balanceValues\n );\n }\n }\n\n }", "title": "" }, { "docid": "557cd055b976903145020a036598dfac", "score": "0.49607182", "text": "public void work(){\r\n/*************火币*********/\r\n// String json = this.httpService.get(this.urlbuy);\r\n// JSONObject jsonObj = JSONObject.parseObject(json);\r\n// String code = jsonObj.getString(\"code\");\r\n// if (!\"200\".equals(code)) {\r\n// return;\r\n// }\r\n// double buyPrice = 0;\r\n// \r\n// JSONArray dataArray = jsonObj.getJSONArray(\"data\");\r\n// Iterator it = dataArray.iterator();\r\n// int i = 0;\r\n// while (it.hasNext()){\r\n// JSONObject data = (JSONObject)it.next();\r\n// buyPrice = data.getDouble(\"price\").doubleValue()+buyPrice;\r\n// i++;\r\n// }\r\n/*************ma*********/\r\n//\tint size =55;\r\n//\tString json = httpService.get(\"http://api.zb.com/data/v1/kline?market=usdt_qc&type=1hour&size=\"+size);\r\n//\tJSONObject jsonObj = JSONObject.parseObject(json);\r\n//\tJSONArray jsArr = jsonObj.getJSONArray(\"data\");\r\n//\tIterator it = jsArr.listIterator();\r\n//\tdouble ma = 0;\r\n//\twhile(it.hasNext()){\r\n//\t\tJSONArray jsa = (JSONArray)it.next();\r\n//\t\tma = ma+jsa.getDoubleValue(4);\r\n//\t}\r\n//\t\t\r\n// ma =NumberUtil.formatDoubleHP(ma/size, 4);\r\n// memcachedClient.set(\"ma\", ma);\r\n// System.out.println(buyPrice);\r\n \r\n/*************gogo*********/ \r\n// double buyPrice = 0;\r\n// double top = buyPrice + 0.0350;\r\n// double bottom = buyPrice - 0.0350;\r\n \r\n AskBid ab_qc = compService.getAskBid(\"usdt_qc\");\r\n \r\n AccountInfo ai = compService.getAccountInfo();\r\n Double qc = ai.getQcAvailable() + ai.getQcfreez();\r\n Double usdt = ai.getUsdtAvailable() + ai.getUsdtfreez();\r\n Double ma = (Double)memcachedClient.get(\"ma\");//取得均线\r\n List<Order> orderList = this.orderService.getUnfinishedOrdersIgnoreTradeType(\"usdt_qc\");\r\n boolean ifsell = true;\r\n boolean ifbuy = true;\r\n \r\n if(orderList!=null) {\r\n for(Order o : orderList) {\r\n \tif(o.getType()==0 && o.getPrice().compareTo(ab_qc.getAsk2())==0) {//如果是卖单,且是卖一价格\r\n \t\tifsell = false;\r\n \t}\r\n \tif(o.getType()==1 && o.getPrice().compareTo(ab_qc.getBid1())==0) {//如果是买单,且是买一价格\r\n \t\tifbuy = false;\r\n \t}\r\n \t\r\n \tlong sys = System.currentTimeMillis();\r\n \tif (sys - o.getTrade_date().longValue() > this.second.intValue() * 2 * 1000) {//如果当前价格等于卖一或者买一\r\n \t\t\tif(o.getPrice().compareTo(ab_qc.getAsk2())!=0 && o.getPrice().compareTo(ab_qc.getBid1())!=0)\r\n \t\t\t\torderService.cancelOrder(o);\r\n \t}\r\n }\r\n }\r\n\r\n if(ifbuy && qc>3000) {\r\n\t if (ab_qc.getBid1().doubleValue() < ma-0.04){//买单\r\n\t \tdouble amount = NumberUtil.geScaretDouble(1,2);\r\n\t \tif (ab_qc.getBid1().doubleValue() < ma-0.05){\r\n\t \t\tamount = NumberUtil.geScaretDouble(5,10);\r\n\t \t}\r\n\t \tif (ab_qc.getBid1().doubleValue() < ma-0.06){\r\n\t \t\tamount = NumberUtil.geScaretDouble(25,50);\r\n\t \t}\r\n\t \tif (ab_qc.getBid1().doubleValue() < ma-0.07){\r\n\t \t\tamount = NumberUtil.geScaretDouble(125,250);\r\n\t \t}\r\n\t \tif (ab_qc.getBid1().doubleValue() < ma-0.08){\r\n\t \t\tamount = NumberUtil.geScaretDouble(300,450);\r\n\t \t}\r\n\t \tamount = Math.min(amount, new Double(NumberUtil.doubleDiv(qc, ab_qc.getBid1().doubleValue(), 4)).intValue());\r\n\t \torderService.order(\"usdt_qc\", \"1\", String.valueOf(ab_qc.getBid1().doubleValue() + 0.0001), String.valueOf(amount));\r\n\t }\r\n }\r\n \r\n if(\"t\".equals(bsusdt) && qc<680) {//如果qc小于680\r\n \torderService.order(\"usdt_qc\", \"0\", String.valueOf(ab_qc.getAsk2().doubleValue() - 0.0001), \"50\");//卖出100\r\n }\r\n \r\n if(ifsell && usdt>460) {\r\n \tif(smma!=null && !\"\".equals(smma)) {//如果mma有值,就是说明要手动控制价格了\r\n \t\tma = Double.parseDouble(smma);\r\n \t}\r\n \tif (ab_qc.getAsk2().doubleValue() > ma+0.03){//卖单\r\n \t\tdouble amount = NumberUtil.geScaretDouble(1,2);\r\n\t \tif (ab_qc.getAsk2().doubleValue() > ma+0.04){\r\n\t \t\tamount = NumberUtil.geScaretDouble(5,10);\r\n\t \t}\r\n\t \tif (ab_qc.getAsk2().doubleValue() > ma+0.05){\r\n\t \t\tamount = NumberUtil.geScaretDouble(25,50);\r\n\t \t}\r\n\t \tif (ab_qc.getAsk2().doubleValue() > ma+0.06){\r\n\t \t\tamount = NumberUtil.geScaretDouble(125,250);\r\n\t \t}\r\n\t \tif (ab_qc.getAsk2().doubleValue() > ma+0.07){\r\n\t \t\tamount = NumberUtil.geScaretDouble(300,400);\r\n\t \t}\r\n\t \tamount = Math.min(amount, usdt.intValue());\r\n\t \torderService.order(\"usdt_qc\", \"0\", String.valueOf(ab_qc.getAsk2().doubleValue() - 0.0001), String.valueOf(amount));\r\n \t}\r\n }\r\n \r\n if(\"t\".equals(bsusdt) && usdt<100) {\r\n \torderService.order(\"usdt_qc\", \"1\", String.valueOf(ab_qc.getBid1().doubleValue() + 0.0001), \"50\");//买入50\r\n }\r\n \r\n \r\n// if(ifbuy) {\r\n//\t if (ab_qc.getBid1().doubleValue() < 6.5610){//买单\r\n//\t \tint amount = NumberUtil.geScaretInt(2, 2);\r\n//\t \tif (ab_qc.getBid1().doubleValue() < 6.5510){\r\n//\t \t\tamount = NumberUtil.geScaretInt(40, 40);\r\n//\t \t}\r\n//\t \tif (ab_qc.getBid1().doubleValue() < 6.5420){\r\n//\t \t\tamount = NumberUtil.geScaretInt(100, 100);\r\n//\t \t}\r\n//\t \tif (ab_qc.getBid1().doubleValue() < 6.5320){\r\n//\t \t\tamount = NumberUtil.geScaretInt(200, 200);\r\n//\t \t}\r\n//\t \tamount = Math.min(amount, qc.intValue());\r\n//\t \torderService.order(\"usdt_qc\", \"1\", String.valueOf(ab_qc.getBid1().doubleValue() + 0.0001), String.valueOf(amount));\r\n//\t }\r\n// }\r\n// \r\n// if(ifsell) {\r\n// \tif (ab_qc.getAsk2().doubleValue() > 6.6190){//卖单\r\n//\t \tint amount = NumberUtil.geScaretInt(2, 2);\r\n//\t \tif (ab_qc.getAsk2().doubleValue() > 6.6290){\r\n//\t \t\tamount = NumberUtil.geScaretInt(40, 40);\r\n//\t \t}\r\n//\t \tif (ab_qc.getAsk2().doubleValue() > 6.6390){\r\n//\t \t\tamount = NumberUtil.geScaretInt(100, 100);\r\n//\t \t}\r\n//\t \tif (ab_qc.getAsk2().doubleValue() > 6.6490){\r\n//\t \t\tamount = NumberUtil.geScaretInt(200, 200);\r\n//\t \t}\r\n//\t \tamount = Math.min(amount, usdt.intValue());\r\n//\t \torderService.order(\"usdt_qc\", \"0\", String.valueOf(ab_qc.getAsk2().doubleValue() - 0.0001), String.valueOf(amount));\r\n// \t}\r\n// }\r\n \r\n logger.info(\"usdt_qc.\");\r\n }", "title": "" }, { "docid": "c1d90d8a4893b1401241274ca57e4edf", "score": "0.4935223", "text": "@GetMapping(value = \"/bills/{addressId}/{apartment}\")\n public ResponseEntity<Map<Integer, List<BillEvent>>> findAllBillsOfApartmentByManager(@PathVariable(\"addressId\") BigInteger addressId,\n @PathVariable(\"apartment\") String apartment) {\n BigInteger managerId = AuthorizedUser.id();\n List<BillEvent> listBills = paymentService.findAllBillsOfApartmentByManager(managerId, addressId, apartment);\n Integer amountDebt = paymentService.getAmountDebtOfApartmentByManager(managerId, addressId, apartment);\n if (listBills == null) {\n return new ResponseEntity<>(HttpStatus.FORBIDDEN);\n } else if (listBills.isEmpty()) {\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }\n Map<Integer, List<BillEvent>> debtOfApartment = new HashMap<>();\n debtOfApartment.put(amountDebt, listBills);\n return new ResponseEntity<>(debtOfApartment, HttpStatus.OK);\n }", "title": "" }, { "docid": "691b5962c81088bb484f6225a004758f", "score": "0.49254662", "text": "@GetMapping(value = \"/bills/{addressId}\")\n public ResponseEntity<List<ApartmentsWithDebt>> getDebtOfAllApartmentsByManager(@PathVariable(\"addressId\") BigInteger addressId) {\n BigInteger managerId = AuthorizedUser.id();\n if (addressId == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n Address address = addressService.findOne(addressId);\n if (address == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n List<ApartmentsWithDebt> apartmentsWithDebt = paymentService.getDebtOfAllApartmentsByManager(managerId, addressId);\n if (apartmentsWithDebt == null) {\n return new ResponseEntity<>(HttpStatus.FORBIDDEN);\n } else if (apartmentsWithDebt.isEmpty()) {\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity<>(apartmentsWithDebt, HttpStatus.OK);\n }", "title": "" }, { "docid": "b773140f9d05bc9adcf2f79ceb95c108", "score": "0.49123284", "text": "private void processBillData(JSONObject result) throws JSONException {\n Log.d(\"DataTask::\", \"processing bill data onPostExecute\");\n int count = result.getInt(\"count\");\n if (count > 0) {\n JSONArray allRepData = result.getJSONArray(\"results\");\n JSONObject billObj;\n int repIndex = bioguideIndex.get(id);\n RepInfoObject repInfo = representatives.get(repIndex);\n\n // We want relatively recent\n count = Math.min(10, count);\n\n for (int i=0; i<count; i++) {\n billObj = allRepData.getJSONObject(i);\n repInfo.addBill(billObj);\n\n }\n // notify listener that we are done\n listener.notifyListener(BILLS_REQUEST);\n\n } else {\n Log.d(\"SunApi::\", \"FAILED bill data request\");\n listener.notifyListener(FAILED_REQUEST_CODE);\n }\n\n }", "title": "" }, { "docid": "6ba5f2e24bf96cc54033c51c12d994e5", "score": "0.49091932", "text": "public JSONArray getReconciliationData(HttpServletRequest request, String companyid, String recordid){\n JSONArray returnJArr = new JSONArray();\n try {\n KwlReturnObject extraprefresult = accountingHandlerDAOobj.getObject(ExtraCompanyPreferences.class.getName(), companyid);\n ExtraCompanyPreferences extraCompanyPreferences = (ExtraCompanyPreferences) extraprefresult.getEntityList().get(0);\n //get base currency details\n String baseCurrencySymbol = extraCompanyPreferences.getCompany().getCurrency().getSymbol();\n String baseCurrencyCode = extraCompanyPreferences.getCompany().getCurrency().getCurrencyCode();\n //get date formatters\n DateFormat globaldf = authHandler.getGlobalDateFormat();\n DateFormat userdf = authHandler.getUserDateFormatterWithoutTimeZone(request);\n //get and convert start date and end date in user date format\n String startDate = userdf.format(globaldf.parse(request.getParameter(\"stdate\")));\n String endDate = userdf.format(globaldf.parse(request.getParameter(\"enddate\")));\n //get reconciliation details\n JSONObject jobj = accReportsController.getReconciliationData(request);\n \n JSONObject detailsTableData = new JSONObject();\n JSONArray depositsDetailsTableDataArr = new JSONArray();\n JSONArray checksDetailsTableDataArr = new JSONArray();\n double debitAmountInAccountCurrency = 0, debitAmountInBaseCurrency = 0, creditAmountInAccountCurrency = 0, creditAmountInBaseCurrency = 0;\n double openingBalanceBankBook = 0, balanceBankBook = 0, unclearedDeposits = 0, unclearedChecks = 0, balanceBankStatement = 0;\n String currencySymbol = \"\", currencyCode = \"\", accountName = \"\";\n //create reconciliation details json\n if(jobj.getJSONObject(\"data\") != null){\n JSONObject data = jobj.getJSONObject(\"data\");\n JSONArray depositsDetailsJArr = data.getJSONArray(\"left\");\n JSONArray checksDetailsJArr = data.getJSONArray(\"right\");\n //build Deposits and Other Credits - details table json\n for(int ind = 0; ind < depositsDetailsJArr.length(); ind++){\n JSONObject depositsDetailsTableData = new JSONObject();\n JSONObject depositsDetailsJobj = depositsDetailsJArr.getJSONObject(ind);\n\n depositsDetailsTableData.put(CustomDesignerConstants.SrNo, ind+1);\n depositsDetailsTableData.put(CustomDesignerConstants.DATE, depositsDetailsJobj.optString(\"d_dateinuserdf\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.ChequeDate, depositsDetailsJobj.optString(\"chequedateinuserdf\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.Chequeno, depositsDetailsJobj.optString(\"chequeno\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.CUSTOMER_VENDOR_NAME, depositsDetailsJobj.optString(\"d_accountname\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.REFERENCE_NO_DESC, depositsDetailsJobj.optString(\"description\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.JOURNAL_ENTRY_NO, depositsDetailsJobj.optString(\"d_entryno\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.TRANSACTION_ID, depositsDetailsJobj.optString(\"transactionID\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.RECEIVED_FROM, depositsDetailsJobj.optString(\"paidto\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.DEBIT_AMOUNT_IN_DOCUMENT_CURRENCY, depositsDetailsJobj.optDouble(\"d_amountintransactioncurrency\", 0));\n depositsDetailsTableData.put(CustomDesignerConstants.DEBIT_AMOUNT_IN_ACCOUNT_CURRENCY, depositsDetailsJobj.optDouble(\"d_amountinacc\", 0));\n depositsDetailsTableData.put(CustomDesignerConstants.DEBIT_AMOUNT_IN_BASE_CURRENCY, depositsDetailsJobj.optDouble(\"d_amount\", 0));\n depositsDetailsTableData.put(CustomDesignerConstants.MEMO, depositsDetailsJobj.optString(\"d_memo\", \"\"));\n depositsDetailsTableData.put(CustomDesignerConstants.DOCUMENT_CURRENCY_SYMBOL, depositsDetailsJobj.optString(\"d_transCurrSymbol\", \"\"));\n //put deposits details object in details table\n depositsDetailsTableDataArr.put(depositsDetailsTableData);\n //calculate total debit amounts\n debitAmountInAccountCurrency += depositsDetailsJobj.optDouble(\"d_amountinacc\", 0);\n debitAmountInBaseCurrency += depositsDetailsJobj.optDouble(\"d_amount\", 0);\n }\n //build Checks and Payments - details table json\n for(int ind = 0; ind < checksDetailsJArr.length(); ind++){\n JSONObject checksDetailsTableData = new JSONObject();\n JSONObject checksDetailsJobj = checksDetailsJArr.getJSONObject(ind);\n\n checksDetailsTableData.put(CustomDesignerConstants.SrNo, ind+1);\n checksDetailsTableData.put(CustomDesignerConstants.DATE, checksDetailsJobj.optString(\"c_dateinuserdf\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.ChequeDate, checksDetailsJobj.optString(\"chequedateinuserdf\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.Chequeno, checksDetailsJobj.optString(\"chequeno\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.CUSTOMER_VENDOR_NAME, checksDetailsJobj.optString(\"c_accountname\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.REFERENCE_NO_DESC, checksDetailsJobj.optString(\"description\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.JOURNAL_ENTRY_NO, checksDetailsJobj.optString(\"c_entryno\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.TRANSACTION_ID, checksDetailsJobj.optString(\"transactionID\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.PAID_TO, checksDetailsJobj.optString(\"paidto\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.CREDIT_AMOUNT_IN_DOCUMENT_CURRENCY, checksDetailsJobj.optDouble(\"c_amountintransactioncurrency\", 0));\n checksDetailsTableData.put(CustomDesignerConstants.CREDIT_AMOUNT_IN_ACCOUNT_CURRENCY, checksDetailsJobj.optDouble(\"c_amountinacc\", 0));\n checksDetailsTableData.put(CustomDesignerConstants.CREDIT_AMOUNT_IN_BASE_CURRENCY, checksDetailsJobj.optDouble(\"c_amount\", 0));\n checksDetailsTableData.put(CustomDesignerConstants.MEMO, checksDetailsJobj.optString(\"c_memo\", \"\"));\n checksDetailsTableData.put(CustomDesignerConstants.DOCUMENT_CURRENCY_SYMBOL, checksDetailsJobj.optString(\"c_transCurrSymbol\", \"\"));\n //put checks details object in details table\n checksDetailsTableDataArr.put(checksDetailsTableData);\n //calculate total credit amounts\n creditAmountInAccountCurrency += checksDetailsJobj.optDouble(\"c_amountinacc\", 0);\n creditAmountInBaseCurrency += checksDetailsJobj.optDouble(\"c_amount\", 0);\n }\n //get global level fields from json\n openingBalanceBankBook = data.optDouble(\"openingbankdatainacc\", 0);\n balanceBankBook = data.optDouble(\"bankdatainacc\", 0);\n unclearedDeposits = Math.abs(data.optJSONArray(\"totalinacc\").optDouble(0, 0)) == 0 ? 0 : data.optJSONArray(\"totalinacc\").optDouble(0, 0);\n unclearedChecks = data.optJSONArray(\"totalinacc\").optDouble(1, 0);\n balanceBankStatement = balanceBankBook + unclearedChecks + unclearedDeposits;\n currencySymbol = data.optString(\"currencysymbol\", \"\");\n currencyCode = data.optString(\"currencycode\", \"\");\n accountName = data.optString(\"accountname\", \"\");\n }\n //put details table data and currency details in json\n detailsTableData.put(\"deposits_and_other_credits\", depositsDetailsTableDataArr);\n detailsTableData.put(\"checks_and_payments\", checksDetailsTableDataArr);\n detailsTableData.put(\"isDetailsTableData\", true);\n detailsTableData.put(\"currencysymbol\", currencySymbol);\n detailsTableData.put(\"currencycode\", currencyCode);\n detailsTableData.put(\"basecurrencysymbol\", baseCurrencySymbol);\n detailsTableData.put(\"basecurrencycode\", baseCurrencyCode);\n returnJArr.put(detailsTableData);\n //put global level details in json\n JSONObject summaryData = new JSONObject();\n summaryData.put(\"summarydata\", true);\n summaryData.put(CustomDesignerConstants.DEBIT_AMOUNT_IN_ACCOUNT_CURRENCY, debitAmountInAccountCurrency);\n summaryData.put(CustomDesignerConstants.DEBIT_AMOUNT_IN_BASE_CURRENCY, debitAmountInBaseCurrency);\n summaryData.put(CustomDesignerConstants.CREDIT_AMOUNT_IN_ACCOUNT_CURRENCY, creditAmountInAccountCurrency);\n summaryData.put(CustomDesignerConstants.CREDIT_AMOUNT_IN_BASE_CURRENCY, creditAmountInBaseCurrency);\n summaryData.put(CustomDesignerConstants.OPENING_BALANCE_BANK_BOOK, openingBalanceBankBook);\n summaryData.put(CustomDesignerConstants.BALANCE_BANK_BOOK, balanceBankBook);\n summaryData.put(CustomDesignerConstants.UNCLEARED_DEPOSITS, unclearedDeposits);\n summaryData.put(CustomDesignerConstants.UNCLEARED_CHECKS, unclearedChecks);\n summaryData.put(CustomDesignerConstants.BALANCE_BANK_STATEMENT, balanceBankStatement);\n summaryData.put(CustomDesignerConstants.FROM_DATE, startDate);\n summaryData.put(CustomDesignerConstants.TO_DATE, endDate);\n summaryData.put(CustomDesignerConstants.BANK_NAME, accountName);\n \n returnJArr.put(summaryData);\n } catch (Exception e) {\n Logger.getLogger(ExportrecordController.class.getName()).log(Level.SEVERE, null, e);\n }\n return returnJArr;\n }", "title": "" }, { "docid": "8741cb3fc2cfc669d0ac61bb8e865d7f", "score": "0.4908613", "text": "@Test\n\tpublic void intTest03getAllLateBorrowings() throws LibraryServiceException {\n\t\tList<BorrowingDto> lb = managerHandler.getBorrowingManager().getAllLateBorrowings();\n\t\tassertTrue(\"The list should contain 3 elements \" ,lb.size() == 3 );\n\t}", "title": "" }, { "docid": "caecb8350397a7b9df044224a9e50d9f", "score": "0.4897255", "text": "public String[] unpaidRemainingTime(Date date, Apartment apartment) {\n\n Flat[][] temp = apartment.getApartment();\n ArrayList<Bill> unpaid = new ArrayList<Bill>();\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp[i].length; j++) {\n ArrayList<Bill> billList = temp[i][j].getListOfBills();\n for (int k = 0; k < billList.size(); k++) {\n if (billList.get(k).getPaymentInfo().equals(\"false\")) {\n unpaid.add(billList.get(k));\n }\n }\n }\n }\n\n String[] unpaidString = new String[unpaid.size()];\n long difference = 0;\n for (int l = 0; l < unpaid.size(); l++) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n difference = unpaid.get(l).getDeadlineDate().getTime() - date.getTime();\n if (TimeUnit.DAYS.convert(difference, TimeUnit.MILLISECONDS) < 0) {\n unpaidString[l] = unpaid.get(l).toString() + \" Deadline date has passed.\";\n } else {\n unpaidString[l] = unpaid.get(l).toString() + \" Remaining Time = \" + TimeUnit.DAYS.convert(difference, TimeUnit.MILLISECONDS) + \" days.\";\n }\n\n }\n\n return unpaidString;\n\n }", "title": "" }, { "docid": "e6ebb9156ab80908137d9dea6a989e82", "score": "0.48957902", "text": "public interface YearlyBudgetManager {\r\n\r\n /**\r\n * get yearlyBudget by id\r\n * \r\n * @param id\r\n * @return\r\n */\r\n public YearlyBudget getYearlyBudget(Integer id);\r\n\r\n /**\r\n * insert YearlyBudget\r\n * \r\n * @param yearlyBudget\r\n * @return\r\n */\r\n public YearlyBudget insertYearlyBudget(YearlyBudget yearlyBudget, Department[] departments,User user);\r\n\r\n /**\r\n * update YearlyBudget update YearlyBudget\r\n * \r\n * @param yearlyBudget\r\n * @return\r\n */\r\n public YearlyBudget updateYearlyBudget(YearlyBudget oldYb,YearlyBudget yearlyBudget, Department[] departments,User user);\r\n\r\n /**\r\n * get YearlyBudget Count according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @return list count\r\n */\r\n public int getYearlyBudgetListCount(Map condtions);\r\n\r\n /**\r\n * get YearlyBudget according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @param pageNo\r\n * start page no(0 based), ignored if -1\r\n * @param pageSize\r\n * page size, ignored if -1\r\n * @param order\r\n * search order\r\n * @param descend\r\n * asc or desc\r\n * @return YearlyBudget list\r\n */\r\n public List getYearlyBudgetList(Map condtions, int pageNo, int pageSize, YearlyBudgetQueryOrder order, boolean descend);\r\n\r\n /**\r\n * get Departments of yearlyBudget\r\n * \r\n * @param yearlyBudget\r\n * @return\r\n */\r\n public Department[] getBudgetDepartments(YearlyBudget yearlyBudget);\r\n\r\n /**\r\n * get Yearly Budget By Code\r\n * \r\n * @param code\r\n * @return\r\n */\r\n public YearlyBudget getYearlyBudgetByCode(String code);\r\n\r\n /**\r\n * get Yearly Budget Department List of yearlyBudget\r\n * \r\n * @param yearlyBudget\r\n * @return\r\n */\r\n public List getYearlyBudgetDepartmentList(YearlyBudget yearlyBudget);\r\n\r\n /**\r\n * get Yearly Budget Department List according to conditions\r\n * \r\n * @param conditions\r\n * @return\r\n */\r\n public List getYearlyBudgetDepartmentList(Map conditions);\r\n\r\n /**\r\n * freeze/unfreeze Yearly Budget\r\n * \r\n * @param yearlyBudgetIds\r\n * @param toFreeze\r\n */\r\n public void freeze(Integer[] yearlyBudgetIds, boolean toFreeze,User user);\r\n\r\n /**\r\n * list histories of yb\r\n * \r\n * @param yb\r\n * @return\r\n */\r\n public List listHistroy(YearlyBudget yb);\r\n\r\n /**\r\n * 根据指定的Site、PurchaseCategory、PurchaseSubCategory和Department\r\n * List,返回合适的YearlyBudget列表。\r\n * \r\n * @param site\r\n * Site对象,如果pc或者psc不为null,此参数被忽略\r\n * @param pc\r\n * PurchaseCategory对象,如果psc不为null,此参数被忽略\r\n * @param psc\r\n * PurchaseSubCategory对象\r\n * @param departmentList\r\n * Department对象列表\r\n * @return 合适的YearlyBudget列表\r\n */\r\n public List getSuitableYearlyBudget(Site s, PurchaseCategory pc, PurchaseSubCategory psc, List departmentList,BudgetType budgetType, User user);\r\n \r\n /**\r\n * 为执行Flow填写额外的信息 (Department、PurchaseCategory、PurchaseSubCategory)\r\n * @param yb\r\n */\r\n public void setExtraInformationToYearlyBudgetForExecuteFlow(YearlyBudget yb);\r\n\r\n /**\r\n * 保存 YearlyBudget并执行NotifyFlow\r\n * @param yb\r\n * @param ignoreAmountCondition\r\n */\r\n public void updateAndNotifyYearlyBudget(YearlyBudget yb, boolean ignoreAmountCondition);\r\n \r\n /**\r\n * can View YearlyBudget Amount\r\n * @param yb\r\n * @return\r\n */\r\n public boolean canViewYearlyBudgetAmount(YearlyBudget yb,User user);\r\n}", "title": "" }, { "docid": "95c3f572f41ce9977656c3a0d496df6e", "score": "0.4894261", "text": "public void livrerBoissons(){\r\n commandeBoissons.forEach((boisson) -> {\r\n //malus de la quantite fournie sur le stock\r\n boisson.setQuantite(boisson.getQuantite() + quantiteParCommande);\r\n parler(\"Voila \" + quantiteParCommande + \" Litres de \" + boisson.getNom() + \" pour votre bar !\");\r\n });\r\n //recuperation du paiement\r\n if (prixCommande == 0)\r\n parler(\"Votre stock est au complet !\");\r\n else\r\n parler(\"Ca vous coutera \" + prixCommande + \"$ !\");\r\n this.setPorteMonnaie(porteMonnaie + prixCommande);\r\n prixCommande = 0;\r\n }", "title": "" }, { "docid": "a0d53dfff2e16e23110e91b913908578", "score": "0.48862144", "text": "private QueryResultRow fetchLevelAndEntityForDelinquecnyProcess() {\n\n\t\tQuery<QueryResultRow> query = createQuery(CmDelinquencyProcessCalculateTriggerDateConstants.FETCH_DELIQ_LVL_ID.toString(), \"CmDelinquencyProcessCancelCriteriaAlgComp_Impl\");\n\t\tquery.bindId(\"delinProcId\", delinquencyProcessId);\n\t\tquery.bindLookup(\"relatedObjTypeFlag\", CmDelinquencyRelatedObjTypeLookup.constants.CM_DELINQUENCY_LEVEL);\n\t\tquery.addResult(\"maintenanceObject\", \"dpo.id.maintenanceObject\");\n\t\tquery.addResult(\"primaryKeyValue1\", \"dpo.id.primaryKeyValue1\");\n\n\t\tQueryResultRow resultRow = query.firstRow();\n\n\t\treturn resultRow;\n\n\t}", "title": "" }, { "docid": "f13f0c1b0f0402c9653e45a1edcdacdc", "score": "0.48845032", "text": "public Department[] getBudgetDepartments(YearlyBudget yearlyBudget);", "title": "" }, { "docid": "7e3c21c54fc86762d0cb6a72ee24fe18", "score": "0.48758844", "text": "long getLocalBlksDirtied();", "title": "" }, { "docid": "4856a19207a49d4ea53193e33ff01657", "score": "0.48750982", "text": "List<BatchInstance> getAllUnfinshedRemotelyExecutedBatchInstance();", "title": "" }, { "docid": "0678e366d63882db0575eaf817966cc3", "score": "0.48742977", "text": "public static List<List<String[]>> checkAcct(String bid) {\n\n\t\tList<List<String[]>> result = new ArrayList<List<String[]>>();\n\t\tList<String[]> borrows = new ArrayList<String[]>(), fines = new ArrayList<String[]>(), holds = new ArrayList<String[]>();\n\t\tString title, borrowerType, dueDate, fineAmount, callNum, copyNum, borID;\n\t\ttry {\n\t\t\tPreparedStatement p = conn.prepareStatement(\"SELECT bType FROM borrower WHERE bid=?\");\n\t\t\tp.setString(1, bid);\n\t\t\tResultSet r = p.executeQuery();\n\t\t\tif (!r.next())\n\t\t\t\treturn null;\n\t\t\tborrowerType = r.getString(1);\n\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT title,borrowing.callNumber,copyNo,outDate\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" FROM borrowing,book \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE book.callNumber=borrowing.callNumber AND bid=? AND inDate IS NULL\");\n\t\t\t\n\t\t\tPreparedStatement ps2 = conn.prepareStatement(\"SELECT amount,borrowing.callNumber,title,fine.borid\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" FROM fine,borrowing,book\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE fine.borid=borrowing.borid AND borrowing.callNumber=book.callNumber AND bid=?\");\n\t\t\t\n\t\t\tPreparedStatement ps3 = conn.prepareStatement(\"SELECT book.callNumber,title\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" FROM holdRequest,book\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE holdRequest.callNumber = book.callNumber AND bid=?\");\n\t\t\tps.setString(1, bid);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\trs.getString(1);\n\t\t\t\ttitle = rs.getString(1);\n\t\t\t\tcallNum = rs.getString(2);\n\t\t\t\tcopyNum = Integer.toString(rs.getInt(3));\n\t\t\t\tdueDate = \"\" + getDueDate(rs.getDate(4), borrowerType) + \"\";\n\t\t\t\tString[] borrow = {callNum, title, copyNum, dueDate};\n\t\t\t\tborrows.add(borrow);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\tps2.setString(1, bid);\n\t\t\tResultSet rs2 = ps2.executeQuery();\n\t\t\twhile (rs2.next()) {\n\t\t\t\tfineAmount = \"$\" + Integer.toString(rs2.getInt(1)) + \".00\";\n\t\t\t\tcallNum = rs2.getString(2);\n\t\t\t\ttitle = rs2.getString(3);\n\t\t\t\tborID = Integer.toString(rs2.getInt(4));\n\t\t\t\tString[] fine = {callNum, title, fineAmount, borID};\n\t\t\t\tfines.add(fine);\n\t\t\t}\n\t\t\trs2.close();\n\t\t\tps2.close();\n\t\t\tps3.setString(1,bid);\n\t\t\tResultSet rs3 = ps3.executeQuery();\n\t\t\twhile (rs3.next()) {\n\t\t\t\tcallNum = rs3.getString(1);\n\t\t\t\ttitle = rs3.getString(2);\n\t\t\t\tString[] hold = {callNum, title};\n\t\t\t\tholds.add(hold);\n\t\t\t}\n\t\t\trs3.close();\n\t\t\tps3.close();\n\t\t\tresult.add(borrows);\n\t\t\tresult.add(fines);\n\t\t\tresult.add(holds);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "d997f6d15f01b650758d609d9982f053", "score": "0.4870781", "text": "private void getBaseDeactRequests()\n\t{\n\t\tList<Subscriber> baseDeactList = RBTPlayerUpdateDaemon.dbManager.smGetSubscriberToDeactivateInPlayer(RBTPlayerUpdateDaemon.getParamAsInt(\"FETCH_SIZE\", 5000), false, circleId , isRBT2());\n\t\tpendingRequestCount = baseDeactList == null ? 0 : baseDeactList.size();\n\t\tif(pendingRequestCount == 0)\n\t\t\treturn;\n\t\t\n\t\tfutureList = new ArrayList<Future<String>>();\n\t\tPlayerRequest playerRequest = null;\n\t\tfor(int i = 0; i < baseDeactList.size(); i++) \n\t\t{\n\t\t\tplayerRequest = new PlayerRequest(requestType);\n\t\t\tplayerRequest.setSubscriber(baseDeactList.get(i));\n\t\t\tfutureList.add(tpe.submit(playerRequest));\n\t\t}\n\t}", "title": "" }, { "docid": "51c3fc9d5b7645b49e1546f78c4d9838", "score": "0.48652545", "text": "@Override\n public NonReviewStrategy nonReviewStrategy(String token, RetailOrderBill[] retailOrderBills) {\n if (retailOrderBills == null && retailOrderBills.length == 0){\n // result.addErrorObject(\"\",\"\",\"input data is null\");\n return null;\n }\n NonReviewStrategy nonReviewStrategy = new NonReviewStrategy();\n //启动订单免审&通知配货策略总开关\n boolean switchFlag = false;\n //订单总金额设置的范围\n boolean amountTotalFlag = false;\n Double amountTotalLimt1 = 0d;\n Double amountTotalLimt2 = 0d;\n //订单商品总数量上限\n boolean qtyLimtFlag = false;\n Double qtyLimt = 100d;\n //设置延迟免审商店\n boolean delayFlag = false;\n Integer minutes = 0;\n //“指定SKU不免审 ”是否被勾选\n boolean skuFlag = false;\n //指定SKU不免审\n // List<String> skuList = new ArrayList<>();\n Set<String> existedSku = new HashSet<>();\n\n //卖家(sellerMessage)是否有留言\n boolean sellMsgFlag = false;\n //消费者(buyerMessage)是否有留言\n boolean buyerMsgFlag = false;\n\n List<RetailOrderBill> successList = new ArrayList<>();\n List<RetailOrderBill> billsList = Arrays.asList(retailOrderBills);\n\n String[] codes = {\"001\",\"002\",\"003\",\"004\",\"006\",\"007\",\"008\"};\n OrderExemptReviewStrategy[] orderExemptReviewStrategies = orderExemptReviewStrategyService.findObjectByCode(token,codes);\n Map<Long, String> shopIdMap = new HashMap<>();\n for (OrderExemptReviewStrategy oers : orderExemptReviewStrategies) {\n String code =\"\";\n if (oers.getCode() != null){\n code = oers.getCode();\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"===code=\"+code);\n }\n switch (code) {\n //启动订单免审&通知配货策略\n case \"001\" :\n //1 开启 0 关闭\n\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动订单免审,总开关:ON ===\");\n }\n switchFlag = true;\n }\n break;\n //免审订单金额范围\n case \"002\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动订单免审订单金额:ON ===\");\n }\n amountTotalFlag = true;\n amountTotalLimt1 = Double.parseDouble(oers.getVal2());\n amountTotalLimt2 = Double.parseDouble(oers.getVal3());\n }\n break;\n //免审订单商品总数量上限(包含设置的上限数量\n case \"003\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动免审订单商品总数量上限:ON ===\");\n }\n qtyLimtFlag = true;\n qtyLimt = Double.parseDouble(oers.getVal2());\n }\n break;\n //订单延迟免审\n case \"004\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动订单延迟免审:ON ===\");\n }\n delayFlag = true;\n minutes = Integer.parseInt(oers.getVal2());\n //获取配置的免审商店id\n E3Selector selector = new E3Selector();\n selector.addFilterField(new E3FilterField(\"type\", \"3\"));\n OrderExemptReviewStrategyDetail[] orderExemptReviewStrategyDetails = orderExemptReviewStrategyDetailService.queryObject(token,selector);\n if (ArrayUtils.isNotEmpty(orderExemptReviewStrategyDetails)) {\n for (OrderExemptReviewStrategyDetail oersd : orderExemptReviewStrategyDetails) {\n if (oersd.getShopId() != null && oersd.getShopName() != null ) {\n shopIdMap.put(oersd.getShopId(), oersd.getShopName());\n }\n }\n }\n }\n break;\n //指定SKU不免审\n case \"006\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动指定SKU不免审:ON ===\");\n }\n skuFlag = true;\n //获取不免审的SKU\n E3Selector e3Selector = new E3Selector();\n e3Selector.addFilterField(new E3FilterField(\"type\", \"1\"));\n OrderExemptReviewStrategyDetail[] orderExemptReviewStrategyDetails = orderExemptReviewStrategyDetailService.queryObject(token,e3Selector);\n if (ArrayUtils.isNotEmpty(orderExemptReviewStrategyDetails)) {\n for (OrderExemptReviewStrategyDetail oersd : orderExemptReviewStrategyDetails) {\n if (oersd.getSingleProductCode() != null ) {\n existedSku.add(oersd.getSingleProductCode());\n }\n }\n }\n }\n break;\n //卖家有留言则订单不免审\n case \"007\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动卖家有留言则订单不免审:ON ===\");\n }\n sellMsgFlag = true;\n }\n break;\n //消费者有留言则订单不免审\n case \"008\" :\n if (\"1\".equals(oers.getVal())) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"===== 启动消费者有留言则订单不免审:ON ===\");\n }\n buyerMsgFlag = true;\n }\n break;\n default:\n break;\n }\n }\n lableA:\n for (RetailOrderBill retailOrderBill : billsList) {\n //判断总开关是否开启\n boolean successFlag = false;\n if (!switchFlag){\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 总开关没开启,不进行自动免审\");\n continue;\n }else {\n successFlag = true;\n }\n //判断订单总金额在设置的范围内\n if (amountTotalFlag) {\n if (retailOrderBill.getTotalTaxPrice() == null) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 订单总金额为空,不进行自动免审\");\n continue;\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"==当前订单总金额:\"+retailOrderBill.getTotalTaxPrice()+\",下限金额:\"+amountTotalLimt1+\",上限总金额:\"+amountTotalLimt2);\n }\n if (retailOrderBill.getTotalTaxPrice() < amountTotalLimt1 || retailOrderBill.getTotalTaxPrice() > amountTotalLimt2) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 订单总金额大于设置的范围,不进行自动免审\");\n continue;\n }else {\n successFlag = true;\n }\n }\n //判断订单商品总数量是否大于设置的上限\n if (qtyLimtFlag) {\n if (retailOrderBill.getQty() == null) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 订单商品总数量为空,不进行自动免审\");\n continue;\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"==当前订单总数量:\"+retailOrderBill.getQty()+\",设置的上限:\"+qtyLimt);\n }\n if (retailOrderBill.getQty() > qtyLimt) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 订单商品总数量大于设置的范围,不进行自动免审\");\n continue;\n }else {\n successFlag = true;\n }\n }\n\n if (skuFlag){\n //获取订单的SKU\n //RetailOrderGoodsDetail[] goodsDetails = findAndCheckGoodsDetails(token,result,retailOrderBill);\n //if (result.hasError()) {\n // return result;\n // }\n\n if (retailOrderBill.getGoodsDetail() == null || retailOrderBill.getGoodsDetail().size() == 0) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 商品明细没有数据,不进行自动免审\");\n continue;\n }\n List<RetailOrderGoodsDetail> goodsDetails = retailOrderBill.getGoodsDetail();\n for (RetailOrderGoodsDetail goodsDetail : goodsDetails) {\n if (goodsDetail.getSingleProduct().getCode() == null ) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 订单SKU为空,不自动免审\");\n continue lableA;\n }\n String sku = goodsDetail.getSingleProduct().getCode();\n //判断订单的SKU是否包含在列表中,包含则订单不免审\n if (logger.isDebugEnabled()) {\n logger.debug(\"当前订单的SKU:\"+sku);\n }\n if (existedSku.contains(sku)){\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 指定SKU不免审\");\n continue lableA;\n }else {\n successFlag = true;\n }\n }\n\n }\n //卖家(sellerMessage)是否有留言 - 设置页面是否勾选\n if (sellMsgFlag) {\n //判断卖家(sellerMessage)是否有留言,有则不免审\n if (retailOrderBill.getSellersMsg() != null ){\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 卖家有留言,不自动免审\");\n continue;\n }else {\n successFlag = true;\n }\n }\n //消费者(buyerMessage)是否有留言 - 设置页面是否勾选\n if (buyerMsgFlag) {\n //判断消费者(buyerMessage)是否有留言,有则不免审\n if (retailOrderBill.getBuyersMsg() != null) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 买家有留言,不自动免审\");\n continue;\n }else {\n successFlag = true;\n }\n }\n //判断订单是否延迟免审,根据商店id判断订单商店是否在延迟免审商店里\n if (delayFlag) {\n if (retailOrderBill.getShopId() != null ) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"当前订单商店id:\"+retailOrderBill.getShopId());\n }\n if (shopIdMap.containsKey(retailOrderBill.getShopId())) {\n //转单时间+延迟时间 小于当前时间,还不能进行免审\n Calendar ca = Calendar.getInstance();\n if (retailOrderBill.getBillDate() == null ) {\n nonReviewStrategy.addFailureList(retailOrderBill);\n logger.info(\"当前订单转单时间为空,订单不免审\" );\n continue ;\n }\n Date billDate = retailOrderBill.getBillDate();\n ca.setTime(billDate);\n ca.add(Calendar.MINUTE, minutes);\n Date auditTime = ca.getTime();\n Date nowTime = Calendar.getInstance().getTime();\n if (logger.isDebugEnabled()) {\n logger.debug(\"当前订单转单时间:\" + billDate + \",延迟免审时间:\" + auditTime + \",当前时间:\" + nowTime);\n }\n int res = nowTime.compareTo(auditTime);\n if (res < 0) {\n retailOrderBill.setExemptAuditDelayTime(auditTime);\n nonReviewStrategy.addDelayList(retailOrderBill);\n logger.info(\"订单:\" + retailOrderBill.getBillNo() + \" -> 延迟免审时间还没到,不进行自动免审\");\n continue;\n } else {\n retailOrderBill.setExemptAuditDelayTime(auditTime);\n successFlag = true;\n }\n }\n }else {\n successFlag = true;\n }\n }\n if (successFlag) {\n successList.add(retailOrderBill);\n }\n }\n\n nonReviewStrategy.setSuccessList(successList);\n return nonReviewStrategy;\n }", "title": "" }, { "docid": "270ca93f1052fb1b2188758bf464ad61", "score": "0.48641098", "text": "private YBalance fetchYBalance(ResultSet rs) {\n YBalance temp = null;\n\n try {\n while (rs.next()) {\n double rightLimbLength, antR1, antR2, antR3, antL1, antL2, antL3, pmR1, pmR2, pmR3,\n pmL1, pmL2, pmL3, plR1, plR2, plR3, plL1, plL2, plL3;\n\n rightLimbLength = Double.parseDouble(rs.getString(\"rightLimbLength\"));\n\n antR1 = Double.parseDouble(rs.getString(\"antR1\"));\n antR2 = Double.parseDouble(rs.getString(\"antR2\"));\n antR3 = Double.parseDouble(rs.getString(\"antR3\"));\n antL1 = Double.parseDouble(rs.getString(\"antL1\"));\n antL2 = Double.parseDouble(rs.getString(\"antL2\"));\n antL3 = Double.parseDouble(rs.getString(\"antL3\"));\n\n pmR1 = Double.parseDouble(rs.getString(\"pmR1\"));\n pmR2 = Double.parseDouble(rs.getString(\"pmR2\"));\n pmR3 = Double.parseDouble(rs.getString(\"pmR3\"));\n pmL1 = Double.parseDouble(rs.getString(\"pmL1\"));\n pmL2 = Double.parseDouble(rs.getString(\"pmL2\"));\n pmL3 = Double.parseDouble(rs.getString(\"pmL3\"));\n\n plL1 = Double.parseDouble(rs.getString(\"plL1\"));\n plL2 = Double.parseDouble(rs.getString(\"plL2\"));\n plL3 = Double.parseDouble(rs.getString(\"plL3\"));\n plR1 = Double.parseDouble(rs.getString(\"plR1\"));\n plR2 = Double.parseDouble(rs.getString(\"plR2\"));\n plR3 = Double.parseDouble(rs.getString(\"plR3\"));\n\n temp = (new YBalance(rightLimbLength, antR1, antR2, antR3, antL1, antL2, antL3, pmR1, pmR2, pmR3,\n pmL1, pmL2, pmL3, plR1, plR2, plR3, plL1, plL2, plL3));\n }\n } catch (SQLException ex) {\n Logger.getLogger(Report.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return temp;\n }", "title": "" }, { "docid": "03e4d45e535329dd0f7cbda37efee2e0", "score": "0.48491037", "text": "private static Bill getABill() {\n\t\t// /New bill\n\t\tBill bill = new Bill();\n\n\t\t// Add some items to the bill\n\t\tbill.addItem(new Item(\"Spinach123\", true, 22));\n\t\tbill.addItem(new Item(\"Onion311\", true, 50));\n\t\tbill.addItem(new Item(\"Drink111\", false, 30));\n\t\tbill.addItem(new Item(\"Cleaner101\", false, 10));\n\t\tbill.addItem(new Item(\"Fish123\", true, 110));\n\t\tbill.addItem(new Item(\"Nachos901\", true, 50));\n\t\tbill.addItem(new Item(\"Container555\", false, 40));\n\t\tbill.addItem(new Item(\"Laptop555\", false, 600));\n\n\t\t// Customer with affiliate flag true\n\t\tbill.setCustomer(new Customer(\"TOM7\", false, true, new Date()));\n\n\t\treturn bill;\n\t}", "title": "" }, { "docid": "1380e587a9b4cdfca5051aabb4c405d1", "score": "0.48446164", "text": "private void getHistoricPrices() {\n int readingsTaken = 0;\n GDAXTrade[] trades;\n while (readingsTaken < 4){\n boolean needsMoreReadings = false;\n for (Currency currency : currencies){\n if (!currency.getGaps().isEmpty()){\n Gap gap = currency.getLastGap();\n if (!collectionCompleted(gap.getRatesRequired(), currency.noOfHistoricRates())){\n trades = getHistoricTrades(currency, gap);\n calculateHistoricAverages(currency, trades, gap);\n boolean noNewData = currency.dumpDuplicates(trades[trades.length - 1].getTime().isBefore(gap.getStartTime().minusMinutes(gap.getRatesRequired())));\n if (noNewData || gap.getPaginationStart() < 0) {\n currency.getGaps().remove(gap);\n } else {\n if (connectedToDatabase){\n exchangeRateAPIController.post(Globals.API_ENDPOINT + Globals.EXCHANGERATE_EXTENSION,\n currency.getHistoricRates().toArray(new ExchangeRate[currency.getHistoricRates().size()]));\n }\n currency.gradualMerge();\n }\n readingsTaken++;\n }\n if (readingsTaken == 4) {\n System.out.println(\"[INFO] 4 readings taken. 1 second break for GDAX API.\");\n break;\n } else if (!collectionCompleted(gap.getRatesRequired(), currency.noOfHistoricRates())){\n needsMoreReadings = true;\n }\n }\n }\n if (!needsMoreReadings){\n break;\n }\n }\n }", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.4844404", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3047fb61d08334bec3606ee28dcfc3e8", "score": "0.48233566", "text": "public NsResponse getBillSummaryList(Integer accountId) throws BusinessException, SystemException;", "title": "" }, { "docid": "b7d337ebd6221731182f6c5032febac7", "score": "0.48199224", "text": "public void lightBulbConsumption() {\n double costOfLED = 0.31;\n double costOfCFL = 0.32;\n double costOfIncan = 1.27;\n\n if (type_Of_Bulb == \"CFL\") {\n priceOfLightBulbs = costOfCFL * num_Of_Bulbs;\n }\n else if (type_Of_Bulb == \"LED\") {\n priceOfLightBulbs = costOfLED * num_Of_Bulbs;\n }\n else if (type_Of_Bulb == \"Incandescent\") {\n priceOfLightBulbs = costOfIncan * num_Of_Bulbs;\n }\n }", "title": "" }, { "docid": "1afb23d5fe0425a6f091a069c93bb6b1", "score": "0.48167887", "text": "@Scheduled(fixedDelay = 86400000)\n\tpublic void crawlBellboard() {\n\t\tString baseUrl = \"http://www.bb.ringingworld.co.uk/\";\n\t\tDocument doc;\n\n\t\tList<String> linkList = new ArrayList<String>();\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(baseUrl + \"list.php\").get();\n\t\t\tElements rows = doc.getElementsByClass(\"place\");\n\t\t\tfor (Element row : rows) {\n\t\t\t\tString link = row.select(\"a\").first().attr(\"href\");\n\t\t\t\tlinkList.add(link);\n\t\t\t}\n\t\t} catch (IOException e) {\n\n\t\t}\n\n\t\tList<String> finalLinkList = new ArrayList<String>();\n\n\t\tfor (String link : linkList) {\n\t\t\tString temp = link.replaceAll(\"[^0-9]\", \"\");\n\t\t\tint tempId = Integer.parseInt(temp);\n\t\t\tif (!pealService.bellboardPealExists(tempId)) {\n\t\t\t\tfinalLinkList.add(link);\n\t\t\t}\n\t\t}\n\n\t\tStringMetric metric = with(new CosineSimilarity<String>())\n\t\t\t\t.simplify(new Case.Lower()).tokenize(new QGram(2)).build();\n\t\tList<TowerDescriptor> towers = towerService.getTowerDescriptors();\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tfor (TowerDescriptor tower : towers) {\n\t\t\tmap.put(tower.getDe(), tower.getId());\n\t\t}\n\n\t\tList<String> descriptions = new ArrayList<String>(map.keySet());\n\n\t\tPeal peal;\n\t\tfor (String link : finalLinkList) {\n\n\t\t\t// for (int i = 0; i <5; i++) {\n\t\t\t// String link = finalLinkList.get(i);\n\t\t\tpeal = parsePage(baseUrl + link);\n\t\t\tString rwId = link.replaceAll(\"[^0-9]\", \"\");\n\t\t\ttry {\n\t\t\t\tint id = Integer.parseInt(rwId);\n\t\t\t\tpeal.setRingingWorldId(id);\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t}\n\t\t\tSystem.out.println(peal);\n\n\t\t\tString bbDescription = peal.getTower().getDe();\n\n\t\t\tfloat[] scores = StringMetrics.compare(metric, bbDescription,\n\t\t\t\t\tdescriptions);\n\t\t\tSystem.out.println(\"Description: \" + bbDescription);\n\t\t\tList<Float> floatScores = Arrays\n\t\t\t\t\t.asList(ArrayUtils.toObject(scores));\n\t\t\tint minIndex = floatScores.indexOf(Collections.min(floatScores));\n\t\t\tString minDesc = descriptions.get(minIndex);\n\t\t\tint maxIndex = floatScores.indexOf(Collections.max(floatScores));\n\t\t\tString maxDesc = descriptions.get(maxIndex);\n\t\t\tSystem.out.println(minDesc);\n\t\t\tSystem.out.println(maxDesc);\n\t\t\tint towerId = map.get(maxDesc);\n\t\t\tTowerDescriptor tower = towerService.getTowerDescriptor(towerId);\n\t\t\tpeal.setTower(tower);\n\n\t\t\tpealService.addPeal(peal);\n\t\t}\n\n\t}", "title": "" }, { "docid": "fda00f7625a97cded25d4b38079ced56", "score": "0.48118827", "text": "public YearlyBudget getYearlyBudget(Integer id);", "title": "" }, { "docid": "79c6736d622af01e8db3d1c0553872be", "score": "0.48098552", "text": "ObservableList<Budget> getBudgetList();", "title": "" }, { "docid": "a8c97b80fb4a4d9ba095bf653db02573", "score": "0.48058042", "text": "public void fetchInvoicesFromLND() {\n\n mTempInvoiceUpdateList = new LinkedList<>();\n\n fetchInvoicesFromLND(100);\n }", "title": "" }, { "docid": "4432fdcd5b8be6702d46ebf72dbbe7aa", "score": "0.47973922", "text": "@Override\r\n\tpublic PendingNeftTransaction getUnprocessedNeftDebit() {\n\t\tPendingNeftTransaction resp = null;\r\n\t\ttry {\r\n\t\t\t//Gson gson = new Gson();\r\n\t\t\t///ObjectMapper mapper = new ObjectMapper();\r\n\t\t\tOkHttpClient.Builder builder = new OkHttpClient.Builder();\r\n\t\t\tbuilder.connectTimeout(30, TimeUnit.SECONDS);\r\n\t\t\tbuilder.readTimeout(30, TimeUnit.SECONDS);\r\n\t\t\tbuilder.writeTimeout(30, TimeUnit.SECONDS);\r\n\t\t\tOkHttpClient client = builder.build();\r\n\t\t\t//MediaType mediaType = MediaType.parse(\"application/json\");\r\n\t\t\tRequest request = new Request.Builder().url(neftBaseUrl.concat(\"/getUnProcessedNeftDebit\")).get()\r\n\t\t\t\t\t.addHeader(\"Content-Type\", \"application/json\").build();\r\n\t\t\tResponse response = client.newCall(request).execute();\r\n\t\t\tif (response != null && response.body() != null) {\r\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\t\t\tString value = response.body().string();\r\n\t\t\t\tSystem.out.println(\"response value getUnprocessedNeftDebit ===\" + value);\r\n\t\t\t\tresp = mapper.readValue(value, PendingNeftTransaction.class);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn resp;\r\n\t}", "title": "" }, { "docid": "445facb5b9683130b12ffcc998746ca8", "score": "0.4793172", "text": "public MinBalanceCharges() {\n req = getRequest();\n try {\n String orgnBrIp = WebUtil.getClientIP(req);\n InetAddress localhost = InetAddress.getByName(orgnBrIp);\n orgnBrCode = Init.IP2BR.getBranch(localhost);\n remoteObject = (MinBalanceChargesFacadeRemote) ServiceLocator.getInstance().lookup(\"MinBalanceChargesFacade\");\n setUserName(req.getRemoteUser());\n Date date = new Date();\n setTodayDate(sdf.format(date));\n setDate();\n setCalDisable(false);\n setPostDisable(true);\n tableDateChk();\n serverDateChk();\n accountTypeDropDown();\n setAmountDisable(true);\n setGlDisable(true);\n //resetValue();\n minBalance = new ArrayList<MinBalnceChargeTable>();\n } catch (ApplicationException e) {\n setMessage(e.getLocalizedMessage());\n } catch (Exception e) {\n setMessage(e.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "b492b16d6d4ed831cc45cc251047e920", "score": "0.4791685", "text": "private List<LineItem> getLineItemsFromBillingSystem() {\n return Arrays.asList(\n lineItem(\"bread\"),\n lineItem(\"butter\"),\n lineItem(\"toilet paper\")\n );\n }", "title": "" }, { "docid": "59030748d45cfa55d747cb6eee6e7dbf", "score": "0.47862542", "text": "double getBudgetMontant();", "title": "" }, { "docid": "b210a51482e7ae7ee19cffb28b1d671d", "score": "0.47841385", "text": "public List getYearlyBudgetList(Map condtions, int pageNo, int pageSize, YearlyBudgetQueryOrder order, boolean descend);", "title": "" }, { "docid": "af397a8e1c0555524112dac95bb2f975", "score": "0.47810552", "text": "@Override\n public void handleDeadlocks() {\n // Do nothing because Banker does not have deadlocks\n }", "title": "" }, { "docid": "d9721792460d3b7118d425a30473062d", "score": "0.4765018", "text": "public int[] unpaidCertainTypeLate(String type, Apartment apartment) {\n Flat[][] temp = apartment.getApartment();\n int[] numAndTotal = new int[2];\n int total = 0;\n int count = 0;\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp[i].length; j++) {\n ArrayList<Bill> billList = temp[i][j].getListOfBills();\n for (int k = 0; k < billList.size(); k++) {\n Bill bill = billList.get(k);\n if (bill.getPaymentInfo().equals(\"false\")) {\n if (bill.getType().equals(type)) {\n Date maxDate = findLastUpdate(billList);\n if (bill.getDeadlineDate().after(maxDate)) {\n total += bill.getAmount();\n count++;\n }\n }\n }\n }\n }\n }\n numAndTotal[0] = total;\n numAndTotal[1] = count;\n return numAndTotal;\n }", "title": "" }, { "docid": "aa88fa69bea5aab3f04ae96f4745f863", "score": "0.4764966", "text": "public List<Balance> getBalances();", "title": "" }, { "docid": "52c49148202b91da852124335c87d331", "score": "0.47637576", "text": "List<SubLedger> findAllOPbalanceofsubledger(long company_id, long flag);", "title": "" }, { "docid": "4ef9c4e44ac7707adea683a75be1c1d3", "score": "0.4761448", "text": "public void getExpiredBickers(DatabaseReference ref) {\n ref.addListenerForSingleValueEvent( new ValueEventListener() {\n String res = \"\";\n public void onDataChange(DataSnapshot dataSnapshot) {\n String currId = currUser.getUid();\n for (DataSnapshot expBickerSnapshot : dataSnapshot.child(\"ExpiredBicker\").getChildren()) {\n bickers.add(expBickerSnapshot.getValue(Bicker.class));\n System.out.println(\"Expired bicker added: \" + expBickerSnapshot.getValue(Bicker.class));\n res += (expBickerSnapshot.getValue(Bicker.class)).toString();\n }\n if (!res.equals(\"\")) {\n ((TextView) findViewById(R.id.bickerText)).setText(res);\n }\n }\n public void onCancelled(DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getCode());\n }\n });\n }", "title": "" }, { "docid": "b0efb39394c9683ee6d3cb945fc658d0", "score": "0.47599247", "text": "public List<BranchOfficeDue> getBranchOfficesDueReports() {\n List<BranchOffice> offices = IteratorUtils.toList(branchOfficeDAO.findAll().iterator());\n List<BranchOfficeDue> responses = new ArrayList<>();\n offices.stream().forEach(office -> {\n responses.add(getBranchOfficeDueReport(office, false, null));\n });\n return responses;\n }", "title": "" }, { "docid": "6ee167bee119526da3e6ae9499e3706f", "score": "0.47580352", "text": "public LinkedList getGeneralLedgerList(final GeneralLedgerReportBean reportBean) throws TaskFailedException, ParseException {\n final LinkedList dataList = new LinkedList();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"Indise the loop..........\");\n new CashBook(null);\n\n String isconfirmed = \"\";\n String glCode1 = \"\";\n glCode1 = reportBean.getGlCode1();\n try {\n final String snapShotDateTime = reportBean.getSnapShotDateTime();\n if (snapShotDateTime.equalsIgnoreCase(\"\"))\n effTime = new HashMap<>();\n else\n effTime = eGovernCommon.getEffectiveDateFilter(snapShotDateTime);\n } catch (final TaskFailedException e) {\n LOGGER.error(e.getMessage(), e);\n throw taskExc;\n }\n final String fundId = reportBean.getFund_id();\n final String deptCode = reportBean.getDepartmentCode();\n final String fundSourceId = reportBean.getFundSource_id();\n reportBean.setFundName(getFundName(fundId));\n reportBean.setAccountCode(getAccountName(glCode1));\n reportBean.setAccountName(getAccountName(glCode1));\n String formstartDate = \"\";\n String formendDate = \"\";\n final SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n final SimpleDateFormat formatter1 = new SimpleDateFormat(\"dd-MMM-yyyy\");\n Date dt = new Date();\n final String endDate1 = reportBean.getEndDate();\n isCurDate(endDate1);\n try {\n endDate = reportBean.getEndDate();\n dt = sdf.parse(endDate);\n formendDate = formatter1.format(dt);\n } catch (final ParseException e) {\n LOGGER.error(\"inside the try-startdate\" + e, e);\n throw taskExc;\n }\n try {\n startDate = reportBean.getStartDate();\n if (!startDate.equalsIgnoreCase(\"null\")) {\n dt = sdf.parse(startDate);\n formstartDate = formatter1.format(dt);\n }\n\n if (startDate.equalsIgnoreCase(\"null\")) {\n final CFinancialYear finYearByDate = financialYearDAO.getFinYearByDate(dt);\n if (finYearByDate != null)\n startDate = formatter1.format(finYearByDate.getStartingDate());\n // SETTING START DATE IN reportBean\n reportBean.setStartDate(startDate);\n final Date dtOBj = sdf.parse(startDate);\n startDate = formatter1.format(dtOBj);\n } else\n startDate = formstartDate;\n } catch (final ParseException e) {\n LOGGER.error(\"inside the try-startdate\" + e, e);\n throw taskExc;\n }\n\n accEntityId = reportBean.getAccEntityId();\n accEntityKey = reportBean.getAccEntityKey();\n endDate = formendDate;\n final String startDateformat = startDate;\n String startDateformat1 = \"\";\n try {\n dt = formatter1.parse(startDateformat);\n startDateformat1 = sdf.format(dt);\n } catch (final ParseException e) {\n LOGGER.error(\"Parse Exception\" + e, e);\n throw taskExc;\n }\n Date dd = new Date();\n\n final String endDateformat = endDate;\n\n try {\n dd = formatter1.parse(endDateformat);\n } catch (final ParseException e1) {\n }\n final CFinancialYear finYearByDate = financialYearDAO.getFinYearByDate(dd);\n\n final String fyId = finYearByDate.getId().toString();\n\n if (fyId.equalsIgnoreCase(\"\")) {\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"Financial Year Not Valid\");\n throw taskExc;\n }\n CodeValidator.getInstance();\n /*\n * if (!cv.isValidCode(glCode1)) { LOGGER.error(glCode1 + \" Not Valid\");\n * throw taskExc; }\n */\n double txnDrSum = 0, txnCrSum = 0, openingBalance = 0, closingBalance = 0;\n\n final ReportEngineBean reBean = engine.populateReportEngineBean(reportBean);\n final Entry<String, Map<String, Object>> queryWithParams = engine.getVouchersListQuery(reBean).entrySet().iterator().next(); \n\n final Map<String, Map<String, Object>> query = getQuery(glCode1, startDate, endDate, accEntityId, accEntityKey, reportBean.getFieldId(),\n reBean.getFunctionId(), queryWithParams);\n final Entry<String, Map<String, Object>> entry = query.entrySet().iterator().next();\n final String functionId = reBean.getFunctionId();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"**************QUERY: \" + query);\n try {\n\n\t\ttry {\n\t\t\tpstmt = persistenceService.getSession().createSQLQuery(entry.getKey());\n\t\t\tpersistenceService.populateQueryWithParams(pstmt, entry.getValue());\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\"Exception in creating statement:\" + pstmt, e);\n\t\t\tthrow taskExc;\n\t\t}\n\n final List list = pstmt.list();\n resultset1 = list;\n list.toArray();\n final ArrayList data = new ArrayList();\n String accCode = \"\", vcNum = \"\", vcDate = \"\", narration = \"\", vcTypeName = \"\", voucherHeaderId = \"\";\n StringBuffer detail = new StringBuffer();\n StringBuffer amount = new StringBuffer();\n int vhId = 0, curVHID = 0, cout = 0, VhidPrevious = 0;\n final int lenAfterAppend = 0, lenBeforeAppend = 0, lenDetailBefore = 0, lenDetailAfter = 0;\n double txnDebit = 0, txnCredit = 0, previousDebit = 0, previousCredit = 0;\n String code = \"\", currCode = \"\", accCodePrevious = \"\", cgn = \"\";\n /**\n * When using ResultSet.TYPE_SCROLL_INSENSITIVE in createStatement\n * if no records are there, rs.next() will return true but when\n * trying to access (rs.getXXX()), it will throw an error\n **/\n int totalCount = 0, isConfirmedCount = 0;\n String vn2 = \"\";\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"resultset1---------------------------->\" + resultset1);\n if (resultset1 == null || resultset1.size() == 0) { // Will consider\n // the startdate\n // of report as\n // the end date\n // of the\n // opening\n // balance.\n // Actually it considers 1 date less than startdate or you can\n // say\n // opb<startdate\n startDate = sdf.format(formatter1.parse(startDate));\n final OpBal opbal = getOpeningBalance(glCode1, fundId, fundSourceId, fyId, accEntityId, accEntityKey,\n startDate, functionId, deptCode);\n final String arr[] = new String[15];\n openingBalance = opbal.dr - opbal.cr;\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"openingBalance--------------->\" + openingBalance);\n\n final String sqlString = \"select name as \\\"glname\\\" from chartofaccounts where glcode=?\";\n pstmt = persistenceService.getSession().createSQLQuery(sqlString);\n pstmt.setString(0, glCode1);\n final List res = pstmt.list();\n String aName = \"\";\n if (res != null && !res.isEmpty())\n aName = res.get(0).toString();\n arr[1] = \"\";\n arr[2] = arr[3] = arr[6] = arr[7] = arr[10] = arr[11] = arr[12] = arr[13] = \"\";\n arr[14] = \"\";\n if (vhId == 0)\n arr[8] = \"\";\n arr[9] = glCode1 + \"-\" + aName;\n if (openingBalance > 0) {\n arr[4] = \"\" + numberToString(((Double) Math.abs(openingBalance)).toString()).toString() + \"\";\n arr[5] = \"\";\n\n } else if (openingBalance < 0) {\n arr[4] = \"\";\n arr[5] = \"\" + numberToString(((Double) Math.abs(openingBalance)).toString()).toString() + \"\";\n } else {\n arr[4] = \"\";\n arr[5] = \"\";\n }\n arr[0] = \"Opening Balance\";\n if (vhId == 0 && !(openingBalance > 0 || openingBalance < 0)) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"Inside if condition\");\n } else\n data.add(arr);\n\n final String arr2[] = new String[15];\n closingBalance = openingBalance;\n if (closingBalance > 0) {\n arr2[4] = \"\";\n arr2[5] = \"\" + numberToString(((Double) Math.abs(closingBalance)).toString()).toString() + \"\";\n } else if (closingBalance < 0) {\n arr2[4] = \"\" + numberToString(((Double) Math.abs(closingBalance)).toString()).toString() + \"\";\n arr2[5] = \"\";\n } else {\n arr2[4] = \"\";\n arr2[5] = \"\";\n }\n arr2[2] = \"\";\n arr2[0] = \"Closing Balance\";\n arr2[1] = \"\";\n arr2[3] = arr2[6] = arr2[7] = arr2[8] = arr2[9] = arr2[10] = arr2[11] = arr[12] = arr[13] = \"\";\n arr2[14] = \"\";\n data.add(arr2);\n }\n for (final Object[] element : resultset1) {\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\" inside resultset\");\n try {\n code = element[0].toString();\n if (element[14] == null)\n isconfirmed = \"\";\n else\n isconfirmed = element[14].toString();\n // 9 is the dummy value used in the query\n // To display X in Y are unconfirmed\n if (isconfirmed != null && !isconfirmed.equalsIgnoreCase(\"\") && !isconfirmed.equalsIgnoreCase(\"9\")) {\n final String vn1 = element[5].toString();\n if (!vn1.equalsIgnoreCase(vn2)) {\n vn2 = vn1;\n totalCount = totalCount + 1;\n if (isconfirmed.equalsIgnoreCase(\"0\"))\n isConfirmedCount = isConfirmedCount + 1;\n }\n }\n\n // cout1=0;\n vhId = Integer.parseInt(element[2].toString());\n\n /**\n * When the main GLCODES are changing.We need to get the\n * opening balance first.\n */\n if (!code.equals(currCode)) {\n // glType=resultset1.getString(\"glType\");\n final String arr[] = new String[15];\n startDate = sdf.format(formatter1.parse(startDate));\n final OpBal opbal = getOpeningBalance(code, fundId, fundSourceId, fyId, accEntityId,\n accEntityKey, startDate, functionId, deptCode);\n openingBalance = opbal.dr - opbal.cr;\n String fundName = \"\";\n if (element[13].toString() != null)\n fundName = element[13].toString();\n final String sqlString1 = \"select name as \\\"glname\\\" from chartofaccounts where glcode=?\";\n pstmt = persistenceService.getSession().createSQLQuery(sqlString1);\n pstmt.setString(0, code);\n final List res = pstmt.list();\n String aName = \"\";\n if (res != null)\n aName = res.get(0).toString();\n\n arr[1] = \"\";\n arr[2] = arr[3] = arr[6] = arr[7] = arr[10] = arr[11] = arr[12] = arr[13] = \"\";\n arr[14] = \"\";\n if (vhId == 0)\n arr[8] = \"\";\n else\n arr[8] = fundName;\n arr[9] = code + \"-\" + aName;\n if (openingBalance > 0) {\n arr[4] = \"\" + numberToString(((Double) Math.abs(openingBalance)).toString()).toString()\n + \"\";\n arr[5] = \"\";\n } else if (openingBalance < 0) {\n arr[4] = \"\";\n arr[5] = \"\" + numberToString(((Double) Math.abs(openingBalance)).toString()).toString()\n + \"\";\n } else {\n arr[4] = \"\";\n arr[5] = \"\";\n }\n arr[0] = \"Opening Balance\";\n if (vhId == 0 && !(openingBalance > 0 || openingBalance < 0)) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"Inside if\");\n } else\n data.add(arr);\n\n currCode = code;\n }// End If glcodes changing\n } catch (final TaskFailedException ex) {\n LOGGER.error(\"ERROR (not an error): ResultSet is Empty\", ex);\n throw taskExc;\n }\n // Vouchers are changing\n if (curVHID > 0 && vhId != curVHID && cout == 0 && vhId != 0) {\n\n if (txnDebit > 0) {\n previousDebit = 0;\n previousCredit = 0;\n final String arr9[] = new String[15];\n arr9[0] = vcDate;\n arr9[1] = vcNum;\n arr9[14] = voucherHeaderId;\n\n arr9[2] = detail.toString();\n arr9[3] = \"\";\n arr9[4] = numberToString(((Double) txnDebit).toString()) + \"\";\n arr9[5] = \"\";\n if (narration != null)\n arr9[6] = \"\" + narration;\n else\n arr9[6] = \"\";\n arr9[7] = cgn;\n txnDrSum = txnDrSum + txnDebit;\n txnCrSum = txnCrSum + txnCredit;\n\n arr9[10] = \"\";\n arr9[11] = \"\";\n\n // End\n arr9[8] = arr9[9] = \"\";\n arr9[12] = vcTypeName;\n arr9[13] = \"\";\n data.add(arr9);\n } else if (txnCredit > 0) {\n previousDebit = 0;\n previousCredit = 0;\n final String arr9[] = new String[15];\n arr9[0] = \"\";\n arr9[1] = \"\";\n arr9[2] = \"\";\n arr9[3] = detail.toString();\n arr9[5] = numberToString(((Double) txnCredit).toString()) + \"\";\n arr9[4] = \"\";\n if (narration != null)\n arr9[6] = \"\" + narration;\n else\n arr9[6] = \"\";\n arr9[7] = cgn;\n txnDrSum = txnDrSum + txnDebit;\n txnCrSum = txnCrSum + txnCredit;\n arr9[10] = vcDate;\n arr9[11] = vcNum;\n arr9[12] = \"\";\n arr9[13] = vcTypeName;\n arr9[14] = voucherHeaderId;\n // End\n arr9[8] = arr9[9] = \"\";\n data.add(arr9);\n }\n detail.delete(0, detail.length());\n amount.delete(0, amount.length());\n // cnt = 0;\n vcDate = vcNum = voucherHeaderId = accCode = narration = vcTypeName = \"\";\n }// End If\n curVHID = vhId;\n cout = 0;\n accCode = element[6].toString();\n String detailId = null;\n if (!accEntityKey.equals(\"\"))\n detailId = element[15].toString();\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"accEntityKey---->\" + accEntityKey);\n if (!accCode.equalsIgnoreCase(accCodePrevious)) {\n previousDebit = 0;\n previousCredit = 0;\n }\n\n if (accCode.equalsIgnoreCase(code)) {\n if (detailId != null && !detailId.equals(accEntityKey)) {\n slDrAmount = slDrAmount.add(new BigDecimal(element[11].toString()));\n slCrAmount = slCrAmount.add(new BigDecimal(element[12].toString()));\n }\n } else if (!accEntityKey.equals(\"\")) {\n /*\n * if(slCrAmount.compareTo(BigDecimal.ZERO)!=0) { detail=\n * detail.append(\" \" + glCode1+\"&nbsp;&nbsp;&nbsp;\"+\n * element[8].toString()); slCrAmount=new\n * BigDecimal(\"0.00\"); } else\n * if(slDrAmount.compareTo(BigDecimal.ZERO)!=0) { detail=\n * detail.append(\" \" + glCode1+\"&nbsp;&nbsp;&nbsp;\"+\n * element[8].toString()); slDrAmount=new\n * BigDecimal(\"0.00\"); }\n */\n // detail= detail.append(\" \" + glCode1+\"&nbsp;&nbsp;&nbsp;\"+\n // element[8].toString());\n slCrAmount = new BigDecimal(\"0.00\");\n slDrAmount = new BigDecimal(\"0.00\");\n }\n\n if (vhId != 0 && (detailId == null || detailId.equals(accEntityKey)) && !accEntityKey.equals(\"\")) {\n // get the details other than patriculars\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"detailId-->\" + detailId + \"accCode-->\" + accCode + \"::code:\" + code);\n if (accCode.equalsIgnoreCase(code)) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"accCode....................\" + accCode);\n double currentDebit = 0, currentCredit = 0, debit = 0, credit = 0;\n if (vhId == VhidPrevious && accCode.equalsIgnoreCase(accCodePrevious)) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"vhId:::::::::::::::::\" + vhId);\n vcDate = element[4].toString();\n vcNum = element[5].toString();\n voucherHeaderId = element[2].toString();\n vcTypeName = element[16].toString();\n final String vhId1 = element[2].toString();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"vhId1:::\" + vhId1);\n // cgn = cashbook.getCGN(vhId1);\n // type = resultset1.getString(\"type\");\n if (detailId != null) {\n currentDebit = Double.parseDouble(element[11].toString());\n currentCredit = Double.parseDouble(element[12].toString());\n debit = previousDebit + currentDebit - (previousCredit + currentCredit);\n if (debit > 0)\n txnDebit = debit;\n else\n txnDebit = 0;\n credit = previousCredit + currentCredit - (previousDebit + currentDebit);\n if (credit > 0)\n txnCredit = credit;\n else\n txnCredit = 0;\n previousDebit = previousDebit + currentDebit;\n previousCredit = previousCredit + currentCredit;\n }\n narration = element[9] != null ? element[9].toString() : StringUtils.EMPTY;\n } else {\n vcDate = element[4].toString();\n vcNum = element[5].toString();\n voucherHeaderId = element[2].toString();\n vcTypeName = element[16].toString();\n final String vhId1 = element[2].toString();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"vhId1:::\" + vhId1);\n // cgn = cashbook.getCGN(vhId1);\n // type = resultset1.getString(\"type\");\n if (detailId != null) {\n txnDebit = Double.parseDouble(element[11].toString());\n previousDebit = txnDebit;\n txnCredit = Double.parseDouble(element[12].toString());\n previousCredit = txnCredit;\n }\n narration = element[9] != null ? element[9].toString() : StringUtils.EMPTY;\n }\n } else if (vhId == VhidPrevious && accCode.equalsIgnoreCase(accCodePrevious)) {\n double currentDebit = 0, currentCredit = 0, debit = 0, credit = 0;\n String debitAmount = \"\", creditAmount = \"\";\n amount.delete(lenBeforeAppend, lenAfterAppend);\n detail.delete(lenDetailBefore, lenDetailAfter);\n\n detail = detail.append(\" \" + element[6].toString() + \"\" + element[8].toString());\n currentDebit = Double.parseDouble(element[11].toString());\n currentCredit = Double.parseDouble(element[12].toString());\n debit = previousDebit + currentDebit - (previousCredit + currentCredit);\n if (debit > 0) {\n debitAmount = \"Dr.\" + ExilPrecision.convertToString(debit, 2) + \"0\";\n amount = amount.append(\" \" + debitAmount);\n }\n credit = previousCredit + currentCredit - (previousDebit + currentDebit);\n if (credit > 0) {\n creditAmount = \"Cr.\" + ExilPrecision.convertToString(credit, 2) + \"0\";\n amount = amount.append(\" \" + creditAmount);\n }\n\n } else {\n detail = detail.append(\" \" + element[6].toString() + \"\" + element[8].toString());\n previousDebit = Double.parseDouble(element[11].toString());\n previousCredit = Double.parseDouble(element[12].toString());\n }\n } else if (vhId != 0 && accEntityKey.equals(\"\")) {\n // if(LOGGER.isDebugEnabled())\n // LOGGER.debug(\" inside vhId != 0\");\n // get the details other than patriculars\n if (accCode.equalsIgnoreCase(code)) {\n double currentDebit = 0, currentCredit = 0, debit = 0, credit = 0;\n if (vhId == VhidPrevious && accCode.equalsIgnoreCase(accCodePrevious) // &&\n // (StringUtils.isEmpty(reBean.getFunctionId())\n // ||\n // reBean.getFunctionId().equals(resultset1.getString(\"functionid\")))\n ) {\n vcDate = element[4].toString();\n vcNum = element[5].toString();\n voucherHeaderId = element[2].toString();\n vcTypeName = element[16].toString();\n final String vhId1 = element[2].toString();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"vhId1:::\" + vhId1);\n // cgn = cashbook.getCGN(vhId1);\n // type = resultset1.getString(\"type\");\n currentDebit = Double.parseDouble(element[11].toString());\n currentCredit = Double.parseDouble(element[12].toString());\n debit = previousDebit + currentDebit - (previousCredit + currentCredit);\n if (debit > 0)\n txnDebit = debit;\n else\n txnDebit = 0;\n credit = previousCredit + currentCredit - (previousDebit + currentDebit);\n if (credit > 0)\n txnCredit = credit;\n else\n txnCredit = 0;\n narration = element[9] != null ? element[9].toString() : StringUtils.EMPTY;\n /*\n * previousDebit=currentDebit;\n * previousCredit=currentCredit;\n */\n previousDebit = txnDebit;\n previousCredit = txnCredit;\n } else // if\n // (StringUtils.isEmpty(reBean.getFunctionId())\n // ||\n // reBean.getFunctionId().equals(resultset1.getString(\"functionid\")))\n {\n vcDate = element[4].toString();\n vcNum = element[5].toString();\n voucherHeaderId = element[2].toString();\n vcTypeName = element[16].toString();\n final String vhId1 = element[2].toString();\n if (LOGGER.isInfoEnabled())\n LOGGER.info(\"vhId1:::\" + vhId1);\n cgn = \"\";\n // type = resultset1.getString(\"type\");\n txnDebit = Double.parseDouble(element[11].toString());\n previousDebit = txnDebit;\n txnCredit = Double.parseDouble(element[12].toString());\n previousCredit = txnCredit;\n narration = element[9] != null ? element[9].toString() : StringUtils.EMPTY;\n }\n /*\n * else { detail= detail.append(\" \" +\n * element[6].toString()+\"&nbsp;&nbsp;&nbsp;\"+\n * element[8].toString()); }\n */\n } else if (vhId == VhidPrevious && accCode.equalsIgnoreCase(accCodePrevious) // &&\n // (StringUtils.isEmpty(reBean.getFunctionId())\n // ||\n // reBean.getFunctionId().equals(resultset1.getString(\"functionid\")))\n ) {\n double currentDebit = 0, currentCredit = 0, debit = 0, credit = 0;\n String debitAmount = \"\", creditAmount = \"\";\n\n amount.delete(lenBeforeAppend, lenAfterAppend);\n detail.delete(lenDetailBefore, lenDetailAfter);\n\n detail = detail.append(\" \" + element[6].toString() + \"\" + element[8].toString());\n currentDebit = Double.parseDouble(element[11].toString());\n currentCredit = Double.parseDouble(element[12].toString());\n debit = previousDebit + currentDebit - (previousCredit + currentCredit);\n if (debit > 0) {\n debitAmount = \"Dr.\" + ExilPrecision.convertToString(debit, 2) + \"0\";\n amount = amount.append(\" \" + debitAmount);\n }\n credit = previousCredit + currentCredit - (previousDebit + currentDebit);\n if (credit > 0) {\n creditAmount = \"Cr.\" + ExilPrecision.convertToString(credit, 2) + \"0\";\n amount = amount.append(\" \" + creditAmount);\n }\n\n } else {\n detail = detail.append(\" \" + element[6].toString() + \"\" + element[8].toString());\n previousDebit = Double.parseDouble(element[11].toString());\n previousCredit = Double.parseDouble(element[12].toString());\n }\n } else if (vhId != 0 && !accEntityKey.equals(\"\"))\n detail = detail.append(\" \" + element[6].toString() + \"\" + element[8].toString());\n\n accCodePrevious = accCode;\n VhidPrevious = vhId;\n if (element.equals(resultset1.get(resultset1.size() - 1))) {\n\n if (txnDebit > 0) {\n final String arr[] = new String[15];\n arr[0] = vcDate;\n arr[1] = vcNum;\n arr[14] = voucherHeaderId;\n arr[2] = detail.toString();\n arr[3] = \"\";\n arr[4] = numberToString(((Double) txnDebit).toString()) + \"\";\n arr[5] = \"\";\n\n if (narration != null)\n arr[6] = \"\" + narration;\n else\n arr[6] = \"\";\n txnDrSum = txnDrSum + txnDebit;\n txnCrSum = txnCrSum + txnCredit;\n arr[8] = arr[9] = \"\";\n arr[4] = arr[4].equalsIgnoreCase(\".00\") ? \"\" : arr[4];\n arr[7] = cgn;\n arr[10] = \"\";\n arr[11] = \"\";\n arr[12] = vcTypeName;\n arr[13] = \"\";\n\n data.add(arr);\n } else if (txnCredit > 0) {\n final String arr[] = new String[15];\n arr[0] = \"\";\n arr[1] = \"\";\n arr[2] = \"\";\n arr[3] = detail.toString();\n arr[4] = \"\";\n arr[5] = numberToString(((Double) txnCredit).toString()) + \"\";\n if (narration != null)\n arr[6] = \"\" + narration;\n else\n arr[6] = \"\";\n txnDrSum = txnDrSum + txnDebit;\n txnCrSum = txnCrSum + txnCredit;\n arr[8] = arr[9] = \"\";\n arr[5] = arr[5].equalsIgnoreCase(\".00\") ? \"\" : arr[5];\n arr[7] = cgn;\n arr[10] = vcDate;\n arr[11] = vcNum;\n arr[12] = \"\";\n arr[13] = vcTypeName;\n arr[14] = voucherHeaderId;\n data.add(arr);\n }\n detail.delete(0, detail.length());\n amount.delete(0, amount.length());\n // cnt = 0;\n vcDate = vcNum = voucherHeaderId = accCode = narration = \"\";\n final String arr2[] = new String[15];\n if (openingBalance > 0)\n txnDrSum = txnDrSum + Math.abs(openingBalance);\n else\n txnCrSum = txnCrSum + Math.abs(openingBalance);\n closingBalance = txnDrSum - txnCrSum;\n if (closingBalance > 0) {\n txnCrSum = txnCrSum + Math.abs(closingBalance);\n arr2[4] = \"\";\n arr2[5] = \"\" + numberToString(((Double) Math.abs(closingBalance)).toString()).toString() + \"\";\n } else if (closingBalance < 0) {\n txnDrSum = txnDrSum + Math.abs(closingBalance);\n arr2[4] = \"\" + numberToString(((Double) Math.abs(closingBalance)).toString()).toString() + \"\";\n arr2[5] = \"\";\n } else {\n arr2[4] = \"\";\n arr2[5] = \"\";\n }\n arr2[2] = \"\";\n arr2[0] = \"Closing Balance\";\n arr2[1] = \"\";\n arr2[3] = arr2[6] = arr2[7] = arr2[8] = arr2[9] = arr2[10] = arr2[11] = arr2[12] = arr2[13] = \"\";\n data.add(arr2);\n final String arr1[] = new String[15];\n if (txnDrSum > 0)\n arr1[4] = \"\" + numberToString(((Double) txnDrSum).toString()) + \"\";\n else\n arr1[4] = \"\";\n if (txnCrSum > 0)\n arr1[5] = \"\" + numberToString(((Double) txnDrSum).toString()) + \"\";\n else\n arr1[5] = \"\";\n arr1[2] = \"\";\n arr1[0] = \"Total\";\n arr1[1] = \"\";\n arr1[3] = arr1[6] = arr1[7] = arr1[8] = arr1[9] = arr1[10] = arr1[11] = arr1[12] = arr1[13] = \"\";\n data.add(arr1);\n txnDrSum = 0;\n txnCrSum = 0;\n }// End If last\n }// End While\n\n // Adding data to 2 dimension array to pass to Linkedlist\n final String gridData[][] = new String[data.size() + 1][15];\n gridData[0][0] = \"voucherdate\";\n gridData[0][1] = \"vouchernumber\";\n gridData[0][2] = \"debitparticular\";\n gridData[0][3] = \"creditparticular\";\n gridData[0][4] = \"debitamount\";\n gridData[0][5] = \"creditamount\";\n gridData[0][6] = \"narration\";\n gridData[0][7] = \"cgn\";\n gridData[0][8] = \"fund\";\n gridData[0][9] = \"glcode\";\n gridData[0][10] = \"creditdate\";\n gridData[0][11] = \"creditvouchernumber\";\n gridData[0][12] = \"debitVoucherTypeName\";\n gridData[0][13] = \"creditVoucherTypeName\";\n gridData[0][14] = \"vhId\";\n for (int i = 1; i <= data.size(); i++)\n gridData[i] = (String[]) data.get(i - 1);\n\n for (int i = 1; i <= data.size(); i++) {\n final GeneralLedgerBean generalLedgerBean = new GeneralLedgerBean();\n generalLedgerBean.setGlcode(gridData[i][9]);\n generalLedgerBean.setVoucherdate(gridData[i][0]);\n generalLedgerBean.setVouchernumber(gridData[i][1]);\n int counter = 0;\n\n final String testTemp = gridData[i][2];\n final char testArrayTemp[] = testTemp.toCharArray();\n\n for (counter = 0; counter < testArrayTemp.length; counter++)\n if (testArrayTemp[counter] == '<'\n && (testArrayTemp[counter + 1] == 'b' || testArrayTemp[counter + 1] == 'B'))\n break;\n generalLedgerBean.setDebitparticular(gridData[i][2]);\n final String test = gridData[i][7];\n final char testArray[] = test.toCharArray();\n\n for (counter = 0; counter < testArray.length; counter++)\n if (testArray[counter] == 'r')\n break;\n\n generalLedgerBean.setNarration(gridData[i][6]);\n generalLedgerBean.setCreditparticular(gridData[i][3]);\n generalLedgerBean.setDebitamount(gridData[i][4]);\n generalLedgerBean.setCreditamount(gridData[i][5]);\n generalLedgerBean.setFund(gridData[i][8]);\n if (i == data.size())\n generalLedgerBean.setCGN(\"\");\n else\n generalLedgerBean.setCGN(gridData[i][7]);\n generalLedgerBean.setCreditdate(gridData[i][10]);\n generalLedgerBean.setCreditvouchernumber(gridData[i][11]);\n generalLedgerBean.setDebitVoucherTypeName(gridData[i][12]);\n generalLedgerBean.setCreditVoucherTypeName(gridData[i][13]);\n generalLedgerBean.setVhId(gridData[i][14]);\n reportBean.setStartDate(startDateformat1);\n reportBean.setTotalCount(Integer.toString(totalCount));\n reportBean.setIsConfirmedCount(Integer.toString(isConfirmedCount));\n dataList.add(generalLedgerBean);\n }\n\n } catch (final TaskFailedException ex) {\n LOGGER.error(\"ERROR in getGeneralLedgerList \" + ex.toString(), ex);\n throw taskExc;\n }\n return dataList;\n }", "title": "" }, { "docid": "d2652f8e40de68dd53d66d2b6362f818", "score": "0.47515392", "text": "public List<Ledger> findAllLedgers(Integer startResult, Integer maxRows);", "title": "" }, { "docid": "f77ee340e9f686174351c0465e365b7e", "score": "0.4741925", "text": "private List<Brassin> getBrewsByStates(List<BrewStatus> statuses) {\n\n\t\treturn specBrassinDAO.getBrewByStates(statuses);\n\t}", "title": "" }, { "docid": "f3c072baf9960345966d7174c7db94f0", "score": "0.4733406", "text": "List<BorrowDto> getAllBorrows() throws TechnicalException, NotFoundException;", "title": "" }, { "docid": "7b4c33c7e0f8cbec9fa48e807cf02426", "score": "0.47314966", "text": "public List<Object[]> SingleLedgerCurrentBalanceFromEntriesTable(String ledgerid,String fromDate) {\r\n return (List<Object[]>)this.sessionFactory.getCurrentSession().createQuery(\"SELECT eItems.closingAmtDr,eItems.closingAmtCr FROM Entryitems AS eItems WHERE eItems.id=(\\n\" +\r\n\"SELECT MAX(ei.id) FROM Entryitems AS ei INNER JOIN Entries AS e ON ei.entryId=e.id AND e.date<='\"+fromDate+\"' AND ei.ledgerId=\"+ledgerid+\")\" ).list();\r\n }", "title": "" }, { "docid": "0136bd120eb53778c1226dd85902ad7f", "score": "0.47221044", "text": "private QueryBidsByAccountForItemResponse() {\n initFields();\n }", "title": "" }, { "docid": "4925215f8be91e37d9244640e687fd9e", "score": "0.47159785", "text": "long getSharedBlksDirtied();", "title": "" }, { "docid": "6a2d3277c9e10d5430b18f5bfffc4cb0", "score": "0.47157133", "text": "List<BorrowDto> getBorrowsAlmostExpiredForUser(\n final Integer userId, final Integer nbDaysBeforeReminder)\n throws TechnicalException, NotFoundException;", "title": "" }, { "docid": "f7347492875acd82c8ec5f6756ce72fe", "score": "0.47087833", "text": "List<? extends AllocationBreakdown> getBreakdowns();", "title": "" }, { "docid": "fd06fc7af2facda40cd1d01f7e983c14", "score": "0.47084296", "text": "public double billDeduCtion(Cursor c, String consumption, double dl_value) {\n double intSolarRebateRate;\n double intRebateSolarMAX_VAL;\n int flagRebatesolar = Integer.parseInt(this.flagRebate);\n if (flagRebatesolar == 1) {\n if (c.getCount() > 0) {\n double consumereading = Integer.parseInt(consumption);\n String rebateSolarRate = c.getString(c.getColumnIndex(\"SOLAR_RATE\"));\n intSolarRebateRate = Double.parseDouble(rebateSolarRate);\n String rebateSolarMaxValue = c.getString(c.getColumnIndex(\"SOLAR_MAX_VAL\"));\n intRebateSolarMAX_VAL = Double.parseDouble(rebateSolarMaxValue);\n if ((dl_value + 1) > 0)\n intRebateSolarMAX_VAL = (dl_value + 1) * intRebateSolarMAX_VAL;\n double deductcalculate = consumereading * intSolarRebateRate;\n if (deductcalculate > intRebateSolarMAX_VAL) {\n finalRebate = intRebateSolarMAX_VAL;\n } else finalRebate = deductcalculate;\n }\n }\n if (tariff.equals(\"30\")) {\n if (flagRebatesolar == 2) {\n if (c.getCount() > 0) {\n double consumereading = Integer.parseInt(consumption);\n String hRebate = c.getString(c.getColumnIndex(\"HREBATE_PER\"));\n double intHRebate = Double.parseDouble(hRebate);\n finalRebate = consumereading * intHRebate;\n }\n }\n }\n if (tariff.equals(\"20\") || tariff.equals(\"21\")) {\n if (flagRebatesolar == 7) {\n double consumereading = Integer.parseInt(consumption);\n String charityrate = c.getString(c.getColumnIndex(\"CHARITY_RATE\"));\n double charity = Double.parseDouble(charityrate);\n finalRebate = consumereading * charity;\n }\n }\n return finalRebate;\n }", "title": "" }, { "docid": "9def932ca737016349b67c89b8220b3f", "score": "0.47064155", "text": "public int getCurrentBillingSd() {\n if(isBooking()) {\n for(LineItemDTO lineItem : lineItemList) {\n if(lineItem.hasOnlyBillingBits(BillingEnum.TYPE_SESSION)\n && lineItem.getInvoiceId() == invoiceId) {\n return lineItem.getBillingSd();\n }\n }\n } else if(isLoyalty()) {\n for(LineItemDTO lineItem : lineItemList) {\n if(lineItem.hasOnlyBillingBits(BillingEnum.TYPE_LOYALTY)\n && lineItem.getInvoiceId() == invoiceId) {\n return lineItem.getBillingSd();\n }\n }\n }\n // not found so return -1\n return -1;\n }", "title": "" }, { "docid": "be520d84af0dc46545dda0df84b0482b", "score": "0.47018275", "text": "public BigDecimal getBudget() {\n return budget;\n }", "title": "" }, { "docid": "e1f72e7f048d6b63f2662c80211b0b67", "score": "0.47001365", "text": "public List<CashieringItemInProcess> findRecentlyClosedItemsInProcess(String campusCode);", "title": "" }, { "docid": "89485988999b14f0bfdb8934364887dc", "score": "0.46996516", "text": "private void getBusHalts() {\n RouteService service = retrofit.create(RouteService.class);\n\n Call<List<String>> call = service.getBusHalts(journey.getRouteID());\n\n call.enqueue(new Callback<List<String>>() {\n @Override\n public void onResponse(Call<List<String>> call, Response<List<String>> response) {\n if (response.body() != null) {\n List<String> busHaltList = response.body();\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n getApplicationContext(),\n android.R.layout.simple_spinner_item,\n busHaltList\n );\n startStationSpinner.setAdapter(adapter);\n endStationSpinner.setAdapter(adapter);\n }\n }\n\n @Override\n public void onFailure(Call<List<String>> call, Throwable t) {\n //To get network errors\n GeneralUtil.toastShort(t.getMessage(), getBaseContext()).show();\n }\n });\n }", "title": "" }, { "docid": "71dd5d925e9d037ec62ba597e2a1f011", "score": "0.4696323", "text": "public void billAll() {\n\t\tSystem.out.println(\"-----BILL------\");\n\t\tfor (Vehicle v: garage) {\n\t\t\tSystem.out.println(billEach(v));\n\t\t\t}\n\t}", "title": "" }, { "docid": "b2d95097490ddbb3799ffc3917cad702", "score": "0.46961492", "text": "@Test\n public void shouldAbleToListBudgets() {\n Response response = get(ResourceURL.BUDGET);\n\t\tASTClass.instrum(\"Variable Declaration Statement\",\"38\");\n assertOk(response);\n\t\tASTClass.instrum(\"Expression Statement\",\"39\");\n List<IdentityResponse> identityResponses = identityResponses(response);\n\t\tASTClass.instrum(\"Variable Declaration Statement\",\"40\");\n\n // then\n Assert.assertTrue(identityResponses.size() >= 0);\n\t\tASTClass.instrum(\"Expression Statement\",\"43\");\n }", "title": "" }, { "docid": "9832811ae5d025ef4b466a27b67514e8", "score": "0.46915275", "text": "@Test(description= \"Verifying the Losers list which are under All section from Big Movers Widget across Dimesion values which is comming from Backend\")\n\t public void getbigmoversallLosersdata() throws Exception {\n\t\tReporter.log(\"======================get the bigmovers all losers list======================\",true);\n\t\tif(bm.getBigmoverdatanotavailable()){\n\t\t\tAssert.fail(\"No data available\");\n\t\t\t}else{\n\t\tbm.BigmoversAllButton();\n\t\tList<WebElement> bigmoversloserlist = bm.getBigmoversLoserslist();\n\t\tif(bm.getBigmoversLossersEmptyitemText())\n\t\t{\n\t\t\ttest.log(LogStatus.INFO,\"\",\"No items present in this list\");\n\t\t}\n\t\telse{\n\t\t\tbapi.Alllosersdatavalidation(bigmoversloserlist,bigmoverscategoriesppi, bigmoversbrandsppi, \"YOY\",\"DIFFERENCE_REVENUE\", \"DIMENSION\",\"brand\",\"merch_l1_name\",\"PVP\",\"DIFFERENCE_REVENUE\");\n\t\t\t//gl.getdata(bigmoversloserlist, bigmoversbrandsppi,\"DIMENSION\",\"brand\");\n\t\t\t//gl.getdata(bigmoversloserlist, bigmoverscategoriesppi,\"DIMENSION\",\"merch_l1_name\");\n\t\t}\n\t\t\t}\n\t }", "title": "" }, { "docid": "1ecc2b0406cfaaa2c9089c0ce97809c8", "score": "0.46844816", "text": "default void applyBombs() {\n IGame game = ((Entity)this).getGame();\n int gameTL = TechConstants.getSimpleLevel(game.getOptions()\n .stringOption(\"techlevel\"));\n Integer[] sorted = new Integer[BombType.B_NUM];\n // Apply the largest bombs first because we need to fit larger bombs into a single location\n // in LAMs.\n for (int i = 0; i < sorted.length; i++) {\n sorted[i] = i;\n }\n Arrays.sort(sorted, (a, b) -> BombType.bombCosts[b] - BombType.bombCosts[a]);\n for (int type : sorted) {\n for (int i = 0; i < getBombChoices()[type]; i++) {\n int loc = availableBombLocation(BombType.bombCosts[type]);\n if ((type == BombType.B_ALAMO)\n && !game.getOptions().booleanOption(OptionsConstants.ADVAERORULES_AT2_NUKES)) {\n continue;\n }\n if ((type > BombType.B_TAG)\n && (gameTL < TechConstants.T_SIMPLE_ADVANCED)) {\n continue;\n }\n\n // some bombs need an associated weapon and if so\n // they need a weapon for each bomb\n if ((null != BombType.getBombWeaponName(type))\n && (type != BombType.B_ARROW)\n && (type != BombType.B_HOMING)) {\n Mounted m = null;\n try {\n m = ((Entity)this).addBomb(EquipmentType.get(BombType\n .getBombWeaponName(type)), loc);\n // Add bomb itself as single-shot ammo.\n if (type != BombType.B_TAG) {\n Mounted ammo = new Mounted((Entity)this,\n EquipmentType.get(BombType.getBombInternalName(type)));\n ammo.setShotsLeft(1);\n m.setLinked(ammo);\n ((Entity)this).addEquipment(ammo, loc, false);\n \n }\n } catch (LocationFullException ex) {\n // throw new LocationFullException(ex.getMessage());\n }\n } else {\n try {\n ((Entity)this).addEquipment(EquipmentType.get(BombType\n .getBombInternalName(type)), loc, false);\n } catch (LocationFullException ex) {\n // throw new LocationFullException(ex.getMessage());\n }\n }\n }\n }\n clearBombChoices();\n }", "title": "" }, { "docid": "25b05184e6a9f48ac35ea65b8fa30459", "score": "0.46765545", "text": "@GetMapping(\"/order/monthlyprofitloss\")\n\t public List<Orderdb> getMonthlyProfitOrLoss() {\n\t \treturn orderRespository.getMonthlyProfitOrLoss();\n\t }", "title": "" }, { "docid": "9942b5058b214e1b2715f1ff0a44a8be", "score": "0.4674581", "text": "public float getBudget() {\n return budget;\n }", "title": "" }, { "docid": "c42a0a2083a69e200f4553fa0828fe64", "score": "0.46683764", "text": "public String getActualBilledUnit()\n\t{\n\t\treturn actualBilledUnit;\n\t}", "title": "" }, { "docid": "d7c7abf5b41342d3752a23cf5f429521", "score": "0.46619603", "text": "public static ResultSet getBowler(BowlingQueryObj obj)\n {\n return Database.query(obj.generatequery());\n }", "title": "" }, { "docid": "52c552ec241719263ab8c8e676b5a23f", "score": "0.4659501", "text": "List<Goalie> getGoalies(Team team, ProgressIndicator progressIndicator) throws IOException;", "title": "" }, { "docid": "6ca97c4d149aa478b2137c2655d7d885", "score": "0.4651444", "text": "private void run()\n\t{\n\t\tint[][] bids = new int[NUM_AGENT][NUM_GOODS];\n\t\t// testing a single SAA\n\t\tboolean isQuiescent = false;\n\n\t\tInformationState state = new InformationState(NUM_GOODS);\n\t\twhile (!isQuiescent)\n\t\t{\n\t\t\t// Supply current information state to users\n\t\t\tint[] currentBids = state.getCurrentBidPrice();\n\t\t\tint[] currentWinning = state.getCurrentBidWinning();\n\n\t\t\tfor (int i=0;i<NUM_AGENT;i++)\n\t\t\t{\n\t\t\t\tStrategy s = strategies.get(i);\n\t\t\t\tint[] newbid = s.bid(state);\n\t\t\t\t\n\t\t\t\t//System.out.print(\"Agent \" + s.getIndex() + \" bids: \");\n\t\t\t\tfor (int j=0;j<NUM_GOODS;j++)\n\t\t\t\t{\n\t\t\t\t\t//System.out.print(newbid[j] + \" \");\n\t\t\t\t\tbids[i][j] = newbid[j];\n\t\t\t\t}\n\t\t\t\t//System.out.println();\n\t\t\t}\n\t\t\tisQuiescent = true;\n\t\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t\t{\n\t\t\t\tint max = currentBids[i];\n\t\t\t\t//int agentWon = 0;\n\t\t\t\tfor (int j=0; j<NUM_AGENT;j++)\n\t\t\t\t{\n\t\t\t\t\tif (bids[j][i] > max)\n\t\t\t\t\t{\n\t\t\t\t\t\tmax = bids[j][i];\n\t\t\t\t\t\t//agentWon = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentBids[i] < max)\n\t\t\t\t{\n\t\t\t\t\tcurrentBids[i] = max;\n\t\t\t\t\tArrayList<Integer> winners = new ArrayList<Integer>();\n\t\t\t\t\tint winner = 0;\n\t\t\t\t\tfor (int j=0;j<NUM_AGENT;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (bids[j][i] == max)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twinners.add(new Integer(strategies.get(j).getIndex()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Random tie-break\n\t\t\t\t\tif (winners.size() > 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tRandom r = new Random();\n\t\t\t\t\t\twinner = winners.get(r.nextInt(winners.size())).intValue();\n\t\t\t\t\t}\n\t\t\t\t\telse winner = winners.get(0).intValue();\n\t\t\t\t\tcurrentWinning[i] = winner;\n\t\t\t\t\tisQuiescent = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstate.setBidPrice(currentBids);\n\t\t\tstate.setBidWinning(currentWinning);\n\t\t\t/*\n\t\t\tSystem.out.print(\"Current prices: \");\n\t\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(currentBids[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.print(\"Agent currently winning: \");\n\t\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(currentWinning[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\t*/\n\t\t} // end while\n\t\t\n\t\tfor (Strategy s : strategies)\n\t\t{\n\t\t\ts.addObservation(state);\n\t\t}\n\t\t\n\t\tint[] currentBids = state.getCurrentBidPrice();\n\t\tint[] currentWinning = state.getCurrentBidWinning();\n\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t{\n\t\t\tavgPrice[i] += currentBids[i];\n\t\t}\n\t\t/*\n\t\tSystem.out.print(\"Final prices: \");\n\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t{\n\t\t\tSystem.out.print(currentBids[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Agent who won the good: \");\n\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t{\n\t\t\tSystem.out.print(currentWinning[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Utility of each agent: \");\n\t\tfor (int i=0;i<NUM_AGENT;i++)\n\t\t{\n\t\t\tStrategy s = strategies.get(i);\n\t\t\tSystem.out.println(s.getIndex() + \": \" + s.getCurrentSurplus(state));\n\t\t}\n\t\tSystem.out.println();\n\t\t*/\n\t\t//this.numAgentsReceived = 0;\n\t\t//strategies.clear();\n\t}", "title": "" }, { "docid": "35ca292eb4406db3c20bc327164b1070", "score": "0.46489972", "text": "public List<Object[]> AllSubgroupLedgerOpeningBalanceFromLedgerAccount(String fromdate,String groupids) {\r\n String inIds=itemGroupZReportService.returnChildids(groupids);\r\n \r\n String id=\"\";\r\n if(\"\".equals(inIds)) \r\n { \r\n id=\"'\"+groupids+\"'\";\r\n }\r\n else\r\n {\r\n id=\"'\"+groupids+\"',\"+inIds; \r\n }\r\n System.out.println(\"groupids \" +groupids);\r\n String LedgerOPening=\"SELECT COALESCE(SUM(CASE WHEN lam.openingType = 'DR' THEN lam.openingAmount ELSE 0 END),0) AS dr,COALESCE(SUM(CASE WHEN lam.openingType = 'CR' THEN lam.openingAmount ELSE 0 END),0) AS cr FROM LedgerAccountMaster lam WHERE lam.idLedger NOT IN ( \" +\r\n \"SELECT ei.ledgerId FROM Entryitems ei INNER JOIN Entries e ON e.id=ei.entryId INNER JOIN LedgerAccountMaster lm ON \" +\r\n \"lm.idLedger=ei.ledgerId AND lm.underGroup IN(\"+id+\") \" +\r\n \"WHERE e.date<='\"+fromdate+\"' GROUP BY ei.ledgerId \" +\r\n \") AND lam.underGroup IN(\"+id+\") \";\r\n// return (List<Object[]>)this.sessionFactory.getCurrentSession().createQuery(\"SELECT coalesce(sum(CASE WHEN lam.openingType = 'DR' THEN lam.openingAmount ELSE 0 END),0) AS dr,coalesce(sum(CASE WHEN lam.openingType = 'CR' THEN lam.openingAmount ELSE 0 END),0) AS cr FROM LedgerAccountMaster lam LEFT JOIN Entryitems ei \" +\r\n//\"ON lam.idLedger=ei.ledgerId WHERE ei.ledgerId is null AND lam.underGroup IN (\"+id+\") \" ).list();\r\n return (List<Object[]>)this.sessionFactory.getCurrentSession().createQuery(LedgerOPening).list();\r\n }", "title": "" }, { "docid": "41338a5e93bf4dddc5edb42e579828bf", "score": "0.46468937", "text": "String getBudget();", "title": "" } ]
2884c5473c64b85d13d7a8947708b5b5
$ANTLR end "K_KEYSPACES" $ANTLR start "K_COLUMNFAMILY"
[ { "docid": "40b8cd92851f27bc47ba3cc037580b3a", "score": "0.68576044", "text": "public final void mK_COLUMNFAMILY() throws RecognitionException {\n try {\n int _type = K_COLUMNFAMILY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:876:15: ( ( C O L U M N F A M I L Y | T A B L E ) )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:876:16: ( C O L U M N F A M I L Y | T A B L E )\n {\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:876:16: ( C O L U M N F A M I L Y | T A B L E )\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='C'||LA2_0=='c') ) {\n alt2=1;\n }\n else if ( (LA2_0=='T'||LA2_0=='t') ) {\n alt2=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n }\n switch (alt2) {\n case 1 :\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:876:18: C O L U M N F A M I L Y\n {\n mC(); \n mO(); \n mL(); \n mU(); \n mM(); \n mN(); \n mF(); \n mA(); \n mM(); \n mI(); \n mL(); \n mY(); \n\n }\n break;\n case 2 :\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:877:20: T A B L E\n {\n mT(); \n mA(); \n mB(); \n mL(); \n mE(); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" } ]
[ { "docid": "0b4407388000ab41c7095a20888234a6", "score": "0.5517504", "text": "public interface ColumnKey {\n\tpublic static final String NAMESPACE_DIVIDOR = \":\";\n}", "title": "" }, { "docid": "de7b22fe5dfb891835f209d6e63ca1c7", "score": "0.5186773", "text": "public final void mK_KEYSPACE() throws RecognitionException {\n try {\n int _type = K_KEYSPACE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:873:11: ( ( K E Y S P A C E | S C H E M A ) )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:873:16: ( K E Y S P A C E | S C H E M A )\n {\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:873:16: ( K E Y S P A C E | S C H E M A )\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='K'||LA1_0=='k') ) {\n alt1=1;\n }\n else if ( (LA1_0=='S'||LA1_0=='s') ) {\n alt1=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 1, 0, input);\n\n throw nvae;\n }\n switch (alt1) {\n case 1 :\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:873:18: K E Y S P A C E\n {\n mK(); \n mE(); \n mY(); \n mS(); \n mP(); \n mA(); \n mC(); \n mE(); \n\n }\n break;\n case 2 :\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:874:20: S C H E M A\n {\n mS(); \n mC(); \n mH(); \n mE(); \n mM(); \n mA(); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "30c2c347135f88b88dbddfcb93e289a1", "score": "0.51182836", "text": "public abstract ColumnFamily getColumnFamily();", "title": "" }, { "docid": "246e2479882ffc176863aa8bd1f9d573", "score": "0.50098336", "text": "public String getColumnFamily();", "title": "" }, { "docid": "3f31d37b338b7cfda98d55960b3ef74c", "score": "0.49240702", "text": "public final void mK_KEYSPACES() throws RecognitionException {\n try {\n int _type = K_KEYSPACES;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:875:12: ( K E Y S P A C E S )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:875:16: K E Y S P A C E S\n {\n mK(); \n mE(); \n mY(); \n mS(); \n mP(); \n mA(); \n mC(); \n mE(); \n mS(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "128520827fae540b6737801e67ce488a", "score": "0.47759622", "text": "String getDatabaseTablePrefix();", "title": "" }, { "docid": "785ac76eb5e4f91abbf7d02a0f21d723", "score": "0.47534657", "text": "int getKeyspacesCount();", "title": "" }, { "docid": "9e2c1928ae3ab979eae6a14e792bcb00", "score": "0.46474448", "text": "public String getCassandraKeyspaceName();", "title": "" }, { "docid": "f92f28cbc3b6acc74dc9f2606d4d8f43", "score": "0.45573515", "text": "public Map<String,ColumnDescription> getTableSchema(String tableName, StringSet cacheKeys, String queryClass)\n throws ManifoldCFException;", "title": "" }, { "docid": "fdb5159180a23b756a03dae235c17a30", "score": "0.44925424", "text": "public KEY_SCHEMA parseKeySchema(String schema);", "title": "" }, { "docid": "d1e5014fc3c9aebe95d1566da66de716", "score": "0.44841224", "text": "Map<ClassNameDeclaration, List<NameOccurrence>> getClassDeclarations();", "title": "" }, { "docid": "191884df9d2491f52a83816a0301075d", "score": "0.44147187", "text": "public FN getXcn2_FamilyName() {\r\n return getTyped(1, FN.class);\r\n }", "title": "" }, { "docid": "ba15b710642841da5a16bf33e59103de", "score": "0.4365694", "text": "java.util.List<java.lang.String>\n getKeyspacesList();", "title": "" }, { "docid": "8decb9d8269d4b8f31a390b56b40d874", "score": "0.43577164", "text": "@Override\n public List<KeyValue> getColumn(byte [] family, byte [] qualifier) {\n List<KeyValue> result = new ArrayList<KeyValue>();\n\n KeyValue [] kvs = raw();\n\n if (kvs == null || kvs.length == 0) {\n return result;\n }\n int pos = binarySearch(kvs, family, qualifier);\n if (pos == -1) {\n return result; // cant find it\n }\n\n for (int i = pos ; i < kvs.length ; i++ ) {\n KeyValue kv = kvs[i];\n if (kv.matchingColumn(family,qualifier)) {\n result.add(kv);\n } else {\n break;\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "73e7d7b13cc4fe2e86c1ec5defc6674d", "score": "0.433704", "text": "public final void rule__VertigoKeywords__Group_13__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:2618:1: ( ( 'FacetedQueryDefinition' ) )\n // InternalVertigoDsl.g:2619:1: ( 'FacetedQueryDefinition' )\n {\n // InternalVertigoDsl.g:2619:1: ( 'FacetedQueryDefinition' )\n // InternalVertigoDsl.g:2620:2: 'FacetedQueryDefinition'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getVertigoKeywordsAccess().getFacetedQueryDefinitionKeyword_13_0()); \n }\n match(input,104,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getVertigoKeywordsAccess().getFacetedQueryDefinitionKeyword_13_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": "dba54dd969f7659b60cfbcc3415c7cd7", "score": "0.43103746", "text": "java.lang.String getKeyspaces(int index);", "title": "" }, { "docid": "ebfec90c03b04814f323b519262439cd", "score": "0.4291018", "text": "public final void rule__FacetedQueryDefinitionFacets__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:13688:1: ( ( ':' ) )\n // InternalVertigoDsl.g:13689:1: ( ':' )\n {\n // InternalVertigoDsl.g:13689:1: ( ':' )\n // InternalVertigoDsl.g:13690:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFacetedQueryDefinitionFacetsAccess().getColonKeyword_1()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFacetedQueryDefinitionFacetsAccess().getColonKeyword_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": "ab5f792c35f1b5a4cafa7bbbb127f316", "score": "0.4289921", "text": "public String getColumnFamilyName() {\n return columnFamilyName;\n }", "title": "" }, { "docid": "fbbd40156944b4987b7af4968d88d10a", "score": "0.42767668", "text": "public final void rule__FacetedQueryDefinitionListFilterBuilderClass__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:13580:1: ( ( ':' ) )\n // InternalVertigoDsl.g:13581:1: ( ':' )\n {\n // InternalVertigoDsl.g:13581:1: ( ':' )\n // InternalVertigoDsl.g:13582:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFacetedQueryDefinitionListFilterBuilderClassAccess().getColonKeyword_1()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFacetedQueryDefinitionListFilterBuilderClassAccess().getColonKeyword_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": "6bae26d9ffcdbdd48eae14dcfbb260d9", "score": "0.42340678", "text": "public final void rule__IndexDefinitionKeyConcept__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:14100:1: ( ( ':' ) )\n // InternalVertigoDsl.g:14101:1: ( ':' )\n {\n // InternalVertigoDsl.g:14101:1: ( ':' )\n // InternalVertigoDsl.g:14102:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIndexDefinitionKeyConceptAccess().getColonKeyword_1()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIndexDefinitionKeyConceptAccess().getColonKeyword_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": "09bf2f20dfd397a9dfaed5574400b605", "score": "0.4229014", "text": "@Override\r\n\tpublic void endPrefixMapping(String arg0) throws SAXException {\n\r\n\t}", "title": "" }, { "docid": "49ce87d8129096724d21530daa769c28", "score": "0.42255735", "text": "com.google.protobuf.ByteString\n getKeyspacesBytes(int index);", "title": "" }, { "docid": "ff27a18cdcfe3e0c3d5a3188a2179fe0", "score": "0.42227417", "text": "public StringSet getAllTables(StringSet cacheKeys, String queryClass)\n throws ManifoldCFException;", "title": "" }, { "docid": "c4589d151f6c0ceef8c14bd404a97db2", "score": "0.42143524", "text": "public Keyspace getKeyspace();", "title": "" }, { "docid": "4feb19e3049e2a5c9342af2d0d3167cc", "score": "0.41921636", "text": "public final void rule__FacetedQueryDefinitionGeoSearchQuery__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:13472:1: ( ( ':' ) )\n // InternalVertigoDsl.g:13473:1: ( ':' )\n {\n // InternalVertigoDsl.g:13473:1: ( ':' )\n // InternalVertigoDsl.g:13474:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFacetedQueryDefinitionGeoSearchQueryAccess().getColonKeyword_1()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFacetedQueryDefinitionGeoSearchQueryAccess().getColonKeyword_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": "d4e2354c209ed0fef70850892babc46a", "score": "0.4181182", "text": "public final void mK_FROM() throws RecognitionException {\n try {\n int _type = K_FROM;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:853:7: ( F R O M )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:853:16: F R O M\n {\n mF(); \n mR(); \n mO(); \n mM(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "e43d5858588cdb5b4b61ad32fecfeaa3", "score": "0.41700956", "text": "public final void rule__AssociationNN__Group_4_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:9773:1: ( ( 'tableName' ) )\n // InternalVertigoDsl.g:9774:1: ( 'tableName' )\n {\n // InternalVertigoDsl.g:9774:1: ( 'tableName' )\n // InternalVertigoDsl.g:9775:2: 'tableName'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAssociationNNAccess().getTableNameKeyword_4_0_0()); \n }\n match(input,47,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAssociationNNAccess().getTableNameKeyword_4_0_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": "0ad773bf12005e93eb397517fa1369d9", "score": "0.41552895", "text": "boolean containsColumnConstraints(\n java.lang.String key);", "title": "" }, { "docid": "c271aefbcc7de82b16a502a2a4f09f3c", "score": "0.41541812", "text": "java.lang.String getFamily();", "title": "" }, { "docid": "c271aefbcc7de82b16a502a2a4f09f3c", "score": "0.41541812", "text": "java.lang.String getFamily();", "title": "" }, { "docid": "f970fe858a8544c0fc7dcfa29f6348fd", "score": "0.41450807", "text": "String getNameSpace();", "title": "" }, { "docid": "f970fe858a8544c0fc7dcfa29f6348fd", "score": "0.41450807", "text": "String getNameSpace();", "title": "" }, { "docid": "c5f2f89b446a1434a65b9149cd4bae3d", "score": "0.4129268", "text": "public static void createKeyspace(\n String keyspaceName, String replicationStrategy, int\nreplicationFactor) {\n StringBuilder sb\n = new StringBuilder(\"DROP KEYSPACE IF EXISTS\").append(keyspaceName).append(\" ;\");\n session.execute(sb.toString());\n sb\n = new StringBuilder(\"CREATE KEYSPACE IF NOT EXISTS \")\n .append(keyspaceName).append(\" WITH replication ={\")\n .append(\"'class':'\").append(replicationStrategy)\n\n.append(\"','replication_factor':\").append(replicationFactor)\n .append(\"}; \\n\");\n //Choiser la base à utiliser\n session.execute(sb.toString());\n sb = new StringBuilder(\" Use \")\n .append(keyspaceName)\n .append(\" ;\");\n session.execute(sb.toString());\n //creation de la table City\n sb = new StringBuilder(\" CREATE TABLE IF NOT EXISTS \")\n .append(\"City\").append(\"(\")\n .append(\"IDCity int PRIMARY KEY, \")\n .append(\"CityName text,\")\n .append(\"Longitude double,\")\n .append(\"latitude double,\")\n .append(\"population double);\");\n String query = sb.toString();\n session.execute(query);\n }", "title": "" }, { "docid": "fbe6d82dc6a32a87189832b19475c997", "score": "0.41237333", "text": "String declareTableName(String name);", "title": "" }, { "docid": "765273eea212c0011a13d4a8ab8f0b1d", "score": "0.4121735", "text": "@Override\n\t\t\t\tpublic void endPrefixMapping(final String prefix) throws SAXException\n\t\t\t\t{\n\n\t\t\t\t}", "title": "" }, { "docid": "fe3ea7e9b040c859fa617ce0a4ff212f", "score": "0.4111775", "text": "public static String getSchema() {\n return \"CREATE TABLE \"\n + PokeTypeContract.TABLE_NAME + \" (\"\n \n + PokeTypeContract.COL_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT,\"\n + PokeTypeContract.COL_NOM + \" VARCHAR NOT NULL,\"\n + PokeTypeContract.COL_MODIFICATEUR + \" INTEGER NOT NULL,\"\n + PokeTypeContract.COL_POKETYPETYPEFORTINTERNAL_ID + \" INTEGER,\"\n + PokeTypeContract.COL_POKETYPETYPEFAIBLEINTERNAL_ID + \" INTEGER,\"\n + PokeTypeContract.COL_POKETYPEPOKEMONTYPESINTERNAL_ID + \" INTEGER,\"\n\n \n + \"FOREIGN KEY(\" + PokeTypeContract.COL_POKETYPETYPEFORTINTERNAL_ID + \") REFERENCES \" \n + PokeTypeContract.TABLE_NAME \n + \" (\" + PokeTypeContract.COL_ID + \"),\"\n + \"FOREIGN KEY(\" + PokeTypeContract.COL_POKETYPETYPEFAIBLEINTERNAL_ID + \") REFERENCES \" \n + PokeTypeContract.TABLE_NAME \n + \" (\" + PokeTypeContract.COL_ID + \"),\"\n + \"FOREIGN KEY(\" + PokeTypeContract.COL_POKETYPEPOKEMONTYPESINTERNAL_ID + \") REFERENCES \" \n + PokeTypePokemonContract.TABLE_NAME \n + \" (\" + PokeTypePokemonContract.COL_ID + \")\"\n + \");\"\n;\n }", "title": "" }, { "docid": "678ebc9d91ba4a6f21da300acbc0cdce", "score": "0.40947023", "text": "public abstract void createTable(String tableName, Set<String> families) throws Exception;", "title": "" }, { "docid": "6df3d79a7d5ddca7286c0d7b5cf137c1", "score": "0.40923983", "text": "@Override\n\tpublic String getCDeclaration() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "5bab86179545ef3a2337f9d95de7b49b", "score": "0.40762284", "text": "@Test\n public void test_TABLE_SCHEMA_hasSameNameAndLabel() throws SQLException {\n assertThat(rowsMetadata.getColumnName(2)).isEqualTo(\"TABLE_SCHEMA\");\n }", "title": "" }, { "docid": "e5171ef9203158ab667b15147f5e39b0", "score": "0.40596735", "text": "String getLocalName();", "title": "" }, { "docid": "34872947b6be91ad94ed649322445dfa", "score": "0.40552878", "text": "public interface SqldatabasePackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"sqldatabase\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http:///sqldatabase.ecore\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"SQLDatabase\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tSqldatabasePackage eINSTANCE = sqldatabase.impl.SqldatabasePackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link sqldatabase.impl.SQLDatabaseImpl <em>SQL Database</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see sqldatabase.impl.SQLDatabaseImpl\n\t * @see sqldatabase.impl.SqldatabasePackageImpl#getSQLDatabase()\n\t * @generated\n\t */\n\tint SQL_DATABASE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__EANNOTATIONS = ESchemaPackage.DATABASE__EANNOTATIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__NAME = ESchemaPackage.DATABASE__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Dependencies</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__DEPENDENCIES = ESchemaPackage.DATABASE__DEPENDENCIES;\n\n\t/**\n\t * The feature id for the '<em><b>Label</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__LABEL = ESchemaPackage.DATABASE__LABEL;\n\n\t/**\n\t * The feature id for the '<em><b>Comments</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__COMMENTS = ESchemaPackage.DATABASE__COMMENTS;\n\n\t/**\n\t * The feature id for the '<em><b>Extensions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__EXTENSIONS = ESchemaPackage.DATABASE__EXTENSIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Privileges</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__PRIVILEGES = ESchemaPackage.DATABASE__PRIVILEGES;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__ID = ESchemaPackage.DATABASE__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Vendor</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__VENDOR = ESchemaPackage.DATABASE__VENDOR;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__VERSION = ESchemaPackage.DATABASE__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Schemas</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__SCHEMAS = ESchemaPackage.DATABASE__SCHEMAS;\n\n\t/**\n\t * The feature id for the '<em><b>Events</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__EVENTS = ESchemaPackage.DATABASE__EVENTS;\n\n\t/**\n\t * The feature id for the '<em><b>Catalogs</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__CATALOGS = ESchemaPackage.DATABASE__CATALOGS;\n\n\t/**\n\t * The feature id for the '<em><b>Authorization Ids</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__AUTHORIZATION_IDS = ESchemaPackage.DATABASE__AUTHORIZATION_IDS;\n\n\t/**\n\t * The feature id for the '<em><b>Primitive Data Types</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__PRIMITIVE_DATA_TYPES = ESchemaPackage.DATABASE__PRIMITIVE_DATA_TYPES;\n\n\t/**\n\t * The feature id for the '<em><b>Default Primitive Data Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__DEFAULT_PRIMITIVE_DATA_TYPE = ESchemaPackage.DATABASE__DEFAULT_PRIMITIVE_DATA_TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE__DESCRIPTION = ESchemaPackage.DATABASE__DESCRIPTION;\n\n\t/**\n\t * The number of structural features of the '<em>SQL Database</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE_FEATURE_COUNT = ESchemaPackage.DATABASE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Add EAnnotation</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___ADD_EANNOTATION__STRING = ESchemaPackage.DATABASE___ADD_EANNOTATION__STRING;\n\n\t/**\n\t * The operation id for the '<em>Add EAnnotation Detail</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___ADD_EANNOTATION_DETAIL__EANNOTATION_STRING_STRING = ESchemaPackage.DATABASE___ADD_EANNOTATION_DETAIL__EANNOTATION_STRING_STRING;\n\n\t/**\n\t * The operation id for the '<em>Get EAnnotation Detail</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___GET_EANNOTATION_DETAIL__EANNOTATION_STRING = ESchemaPackage.DATABASE___GET_EANNOTATION_DETAIL__EANNOTATION_STRING;\n\n\t/**\n\t * The operation id for the '<em>Set Annotation Detail</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___SET_ANNOTATION_DETAIL__EANNOTATION_STRING_STRING = ESchemaPackage.DATABASE___SET_ANNOTATION_DETAIL__EANNOTATION_STRING_STRING;\n\n\t/**\n\t * The operation id for the '<em>Remove EAnnotation Detail</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___REMOVE_EANNOTATION_DETAIL__EANNOTATION_STRING = ESchemaPackage.DATABASE___REMOVE_EANNOTATION_DETAIL__EANNOTATION_STRING;\n\n\t/**\n\t * The operation id for the '<em>Get EAnnotation</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___GET_EANNOTATION__STRING = ESchemaPackage.DATABASE___GET_EANNOTATION__STRING;\n\n\t/**\n\t * The operation id for the '<em>Is Valid</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___IS_VALID__DIAGNOSTICCHAIN_MAP = ESchemaPackage.DATABASE___IS_VALID__DIAGNOSTICCHAIN_MAP;\n\n\t/**\n\t * The operation id for the '<em>Get User Defined Types</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___GET_USER_DEFINED_TYPES = ESchemaPackage.DATABASE___GET_USER_DEFINED_TYPES;\n\n\t/**\n\t * The operation id for the '<em>Load Primitive Datatypes</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___LOAD_PRIMITIVE_DATATYPES = ESchemaPackage.DATABASE___LOAD_PRIMITIVE_DATATYPES;\n\n\t/**\n\t * The operation id for the '<em>Initialize Foreign Key Name</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___INITIALIZE_FOREIGN_KEY_NAME__EBASETABLE_EBASETABLE = ESchemaPackage.DATABASE___INITIALIZE_FOREIGN_KEY_NAME__EBASETABLE_EBASETABLE;\n\n\t/**\n\t * The operation id for the '<em>Initialize Unique Constraint Name</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___INITIALIZE_UNIQUE_CONSTRAINT_NAME__EBASETABLE_EUNIQUECONSTRAINT = ESchemaPackage.DATABASE___INITIALIZE_UNIQUE_CONSTRAINT_NAME__EBASETABLE_EUNIQUECONSTRAINT;\n\n\t/**\n\t * The operation id for the '<em>Create New Predefined Data Type</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___CREATE_NEW_PREDEFINED_DATA_TYPE__EPRIMITIVEDATATYPE = ESchemaPackage.DATABASE___CREATE_NEW_PREDEFINED_DATA_TYPE__EPRIMITIVEDATATYPE;\n\n\t/**\n\t * The operation id for the '<em>Validate EData Type</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE___VALIDATE_EDATA_TYPE__EDATATYPE_ESQLOBJECT_STRING_OBJECT = ESchemaPackage.DATABASE___VALIDATE_EDATA_TYPE__EDATATYPE_ESQLOBJECT_STRING_OBJECT;\n\n\t/**\n\t * The number of operations of the '<em>SQL Database</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SQL_DATABASE_OPERATION_COUNT = ESchemaPackage.DATABASE_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link sqldatabase.SQLPrimitiveType <em>SQL Primitive Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see sqldatabase.SQLPrimitiveType\n\t * @see sqldatabase.impl.SqldatabasePackageImpl#getSQLPrimitiveType()\n\t * @generated\n\t */\n\tint SQL_PRIMITIVE_TYPE = 1;\n\n\n\t/**\n\t * Returns the meta object for class '{@link sqldatabase.SQLDatabase <em>SQL Database</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SQL Database</em>'.\n\t * @see sqldatabase.SQLDatabase\n\t * @generated\n\t */\n\tEClass getSQLDatabase();\n\n\t/**\n\t * Returns the meta object for enum '{@link sqldatabase.SQLPrimitiveType <em>SQL Primitive Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>SQL Primitive Type</em>'.\n\t * @see sqldatabase.SQLPrimitiveType\n\t * @generated\n\t */\n\tEEnum getSQLPrimitiveType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tSqldatabaseFactory getSqldatabaseFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link sqldatabase.impl.SQLDatabaseImpl <em>SQL Database</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see sqldatabase.impl.SQLDatabaseImpl\n\t\t * @see sqldatabase.impl.SqldatabasePackageImpl#getSQLDatabase()\n\t\t * @generated\n\t\t */\n\t\tEClass SQL_DATABASE = eINSTANCE.getSQLDatabase();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link sqldatabase.SQLPrimitiveType <em>SQL Primitive Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see sqldatabase.SQLPrimitiveType\n\t\t * @see sqldatabase.impl.SqldatabasePackageImpl#getSQLPrimitiveType()\n\t\t * @generated\n\t\t */\n\t\tEEnum SQL_PRIMITIVE_TYPE = eINSTANCE.getSQLPrimitiveType();\n\n\t}\n\n}", "title": "" }, { "docid": "de6d554a27c4bb12194a05f9e1cd43a2", "score": "0.40535605", "text": "public static Result namespaceprefixes()\n {\n \tMap<String,String> NS = Semantic.getNamespacePrefixes();\n\t\treturn ok(namespaceprefixes.render(NS));\n }", "title": "" }, { "docid": "8eb40f9d31b5c17e89dfa39ca9fcdc94", "score": "0.4050504", "text": "public void endPrefixMapping(String prefix) throws SAXException {}", "title": "" }, { "docid": "ad15ee57199c6e557e7fb1622d102dcb", "score": "0.4039654", "text": "public interface ORMapping {\n /** \n * @return a List with all table objects created during the object relational mapping\n * @see tudresden.ocl.codegen.decl.Table\n */\n public List tables();\n \n /** \n * @param classifier a classifier\n * @return a List with all table objects the classifier was mapped to\n * @see tudresden.ocl.codegen.decl.Table\n */\n public List getClassTables(String classifier);\n \n /** \n * @return a Set containing the names of all classifiers\n */\n public Set classifiers();\n \n /** \n * @param classifier a classifier\n * @return a Set containing all names of attributes that are properties of the classifier\n */\n public Set attributes(String classifier); \n \n /** \n * @param classifier a classifier\n * @return a Set containing all names of operations that are properties of the classifier\n */\n public Set operations(String classifier);\n \n /** \n * @param classifier a classifier\n * @return a Set containing all the names of direct supertypes of the classifier\n */\n public Set directSupertypeNames(String classifier);\n \n /**\n * @param classifier a classifier\n * @return a Map that maps the names of all association ends to the\n * according class name\n */\n public Map associationEnds(String classifier);\n \n /** \n * @param classifier a classifier\n * @param assEnd the name of the association end\n * @return a List that contains guides to to the specified association end from the classifier\n * @see tudresden.ocl.codegen.decl.Guide\n */\n public List guidesToAssociationEnds(String classifier, String assEnd);\n}", "title": "" }, { "docid": "f0e72c3aaa780b84a1844d80d72ab4a7", "score": "0.4039595", "text": "public void endPrefixMapping(String prefix)\r\n/* 107: */ throws SAXException\r\n/* 108: */ {}", "title": "" }, { "docid": "d5df292d79a26dd8b9b1f42389a464ca", "score": "0.40395272", "text": "public final void rule__FacetedQueryDefinition__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:13980:1: ( rule__FacetedQueryDefinition__Group__3__Impl rule__FacetedQueryDefinition__Group__4 )\n // InternalVertigoDsl.g:13981:2: rule__FacetedQueryDefinition__Group__3__Impl rule__FacetedQueryDefinition__Group__4\n {\n pushFollow(FOLLOW_53);\n rule__FacetedQueryDefinition__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__FacetedQueryDefinition__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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": "f693671541637c9bd90be33bb8d9942c", "score": "0.4038719", "text": "public final void mK_USING() throws RecognitionException {\n try {\n int _type = K_USING;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:861:8: ( U S I N G )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:861:16: U S I N G\n {\n mU(); \n mS(); \n mI(); \n mN(); \n mG(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "242f2da773341d62e8c6acc11297ac5e", "score": "0.4034244", "text": "public Cursor getVocabNamesAndTablesCursor (){\n String q = \"SELECT * FROM \" + VOCAB_METADATA_TABLE;\n SQLiteDatabase db = instance.getReadableDatabase();\n return db.rawQuery(q, null);\n }", "title": "" }, { "docid": "f34d49ff834d21a8453f5d3004dc1fae", "score": "0.40340105", "text": "java.util.Map<java.lang.String, alluxio.grpc.table.Domain>\n getColumnConstraintsMap();", "title": "" }, { "docid": "219f4e4a48e3d9cf8c3e30cb5597275f", "score": "0.40311688", "text": "public String getNameSpacePrefix() {\r\n/* 634 */ return this._nsPrefix;\r\n/* */ }", "title": "" }, { "docid": "298f79afdf024ddf94456e406cc88baa", "score": "0.4024377", "text": "public String getNameSpacePrefix() {\r\n/* 322 */ return this._nsPrefix;\r\n/* */ }", "title": "" }, { "docid": "4e97bf74408a278f15ebe0f58f43e1d0", "score": "0.402396", "text": "ASTNode findDeclaringNode(String bindingKey) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "049e6c8f28914ddc62ca0e9808d5e7e8", "score": "0.400247", "text": "public final void rule__FragmentDefinition__Group__5__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:7748:1: ( ( ':' ) )\n // InternalVertigoDsl.g:7749:1: ( ':' )\n {\n // InternalVertigoDsl.g:7749:1: ( ':' )\n // InternalVertigoDsl.g:7750:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFragmentDefinitionAccess().getColonKeyword_5()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFragmentDefinitionAccess().getColonKeyword_5()); \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": "b49046ccac2ad83e8a7457d127e720ea", "score": "0.39891282", "text": "public Map<String,String> getNamespaceToPrefixMap();", "title": "" }, { "docid": "2f0e2ccf0ccc9c08c552540f9da52a09", "score": "0.39827508", "text": "protected void usingClause(IASTScope scope)\n throws EndOfFileException, BacktrackException\n {\n IToken firstToken = consume(IToken.t_using);\n setCompletionValues(scope, CompletionKind.TYPE_REFERENCE, Key.POST_USING );\n \n if (LT(1) == IToken.t_namespace)\n {\n // using-directive\n consume(IToken.t_namespace);\n \n setCompletionValues(scope, CompletionKind.NAMESPACE_REFERENCE, Key.EMPTY );\n // optional :: and nested classes handled in name\n TokenDuple duple = null;\n if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON)\n duple = name(scope, CompletionKind.NAMESPACE_REFERENCE);\n else\n throw backtrack;\n if (LT(1) == IToken.tSEMI)\n {\n IToken last = consume(IToken.tSEMI);\n IASTUsingDirective astUD = null; \n \n try\n {\n astUD = astFactory.createUsingDirective(scope, duple, firstToken.getOffset(), firstToken.getLineNumber(), last.getEndOffset(), last.getLineNumber());\n }\n catch (Exception e1)\n {\n throw backtrack;\n }\n astUD.acceptElement(requestor);\n return;\n }\n else\n {\n throw backtrack;\n }\n }\n else\n {\n boolean typeName = false;\n setCompletionValues(scope, CompletionKind.TYPE_REFERENCE, Key.POST_USING );\n \n if (LT(1) == IToken.t_typename)\n {\n typeName = true;\n consume(IToken.t_typename);\n \n }\n \n setCompletionValues(scope, CompletionKind.TYPE_REFERENCE, Key.NAMESPACE_ONLY );\n TokenDuple name = null;\n if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON)\n {\n //\toptional :: and nested classes handled in name\n name = name(scope, CompletionKind.TYPE_REFERENCE);\n }\n else\n {\n throw backtrack;\n }\n if (LT(1) == IToken.tSEMI)\n {\n IToken last = consume(IToken.tSEMI);\n IASTUsingDeclaration declaration = null;\n try\n {\n declaration =\n astFactory.createUsingDeclaration(\n scope,\n typeName,\n name,\n firstToken.getOffset(),\n firstToken.getLineNumber(), last.getEndOffset(), last.getLineNumber());\n }\n catch (Exception e1)\n {\n throw backtrack;\n }\n declaration.acceptElement( requestor );\n setCompletionValues(scope, getCompletionKindForDeclaration(scope, null), Key.DECLARATION );\n }\n else\n {\n throw backtrack;\n }\n }\n }", "title": "" }, { "docid": "88b703e445117b60de1d1c338f8b3387", "score": "0.39775014", "text": "protected abstract String getTableSchema();", "title": "" }, { "docid": "8fd440553b143662e0186d6b4e0a6d2b", "score": "0.39756882", "text": "public interface KeyEntitySchemaParser<KEY_SCHEMA extends KeySchema, ENTITY_SCHEMA extends EntitySchema> {\n\n /**\n * Parse the key schema from the schema string.\n *\n * @param schema\n * The schema string\n * @return The KEY_SCHEMA\n */\n public KEY_SCHEMA parseKeySchema(String schema);\n\n /**\n * Parse the key schema from the schema string. Use the PartitionStrategy\n * passed instead of any field partitioner annotations on the schema.\n *\n * @param schema\n * The schema string\n * @param partitionStrategy\n * The partition strategy that defines the key.\n * @return The KEY_SCHEMA\n */\n public KEY_SCHEMA parseKeySchema(String schema,\n PartitionStrategy partitionStrategy);\n\n /**\n * Parse the raw entity schema.\n * \n * @param schema\n * The schema string\n * @return The ENTITY_SCHEMA\n */\n public ENTITY_SCHEMA parseEntitySchema(String schema);\n\n /**\n * Parse the entity schema. Use the ColumnMapping passed instead of\n * any field mapping annotations on the schema.\n *\n * @param schema\n * The schema string\n * @param mappingDescriptor\n * The ColumnMapping that defines the column mappings for\n * this entity.\n * @return The ENTITY_SCHEMA\n */\n public ENTITY_SCHEMA parseEntitySchema(String schema,\n ColumnMapping mappingDescriptor);\n}", "title": "" }, { "docid": "230e72487ee74f3fcda08f22b218b38a", "score": "0.3973964", "text": "private void namespaceQualifyFragment(Element next, List<String> declaredPrefixes) {\n String elementUri = next.getNamespaceURI();\n String elementPrefix = next.getPrefix();\n if (elementPrefix != null) {\n //see if this prefix is already declared if yes - do nothing, if no declare\n Attr namespaceDeclaration = next.getAttributeNode(XMLConstants.XMLNS +\":\" + elementPrefix);\n if ((null == namespaceDeclaration) && !declaredPrefixes.contains(elementPrefix)) {\n ((Element)next).setAttributeNS(XMLConstants.XMLNS_URL, XMLConstants.XMLNS + \":\" + elementPrefix, elementUri);\n declaredPrefixes.add(elementPrefix);\n }\n }\n\n //check all attributes prefixes and if any of them arent declared add them also. \n NamedNodeMap attributes = next.getAttributes();\n int attributesSize = attributes.getLength();\n for (int i = 0; i < attributesSize; i++) {\n Attr nextAttribute = (Attr)attributes.item(i);\n String attributePrefix = nextAttribute.getPrefix();\n if (attributePrefix != null) {\n //if attribute is a namespace declaration add to declared list \n if (XMLConstants.XMLNS_URL.equals(nextAttribute.getNamespaceURI())) {\n declaredPrefixes.add(nextAttribute.getLocalName());\n } else {\n Attr namespaceDeclaration = next.getAttributeNode(XMLConstants.XMLNS +\":\" + attributePrefix);\n if ((null == namespaceDeclaration) && !declaredPrefixes.contains(attributePrefix)) {\n String attributeUri = nextAttribute.getNamespaceURI();\n ((Element)next).setAttributeNS(XMLConstants.XMLNS_URL, XMLConstants.XMLNS + \":\" + attributePrefix, attributeUri);\n declaredPrefixes.add(attributePrefix);\n }\n\n //if xsi:type declaration deal with that value\n if (XMLConstants.SCHEMA_INSTANCE_URL.equals(nextAttribute.getNamespaceURI()) && XMLConstants.SCHEMA_TYPE_ATTRIBUTE.equals(nextAttribute.getLocalName())) { \n String value = nextAttribute.getValue();\n int colonIndex = value.indexOf(':');\n if (colonIndex > -1) {\n String prefix = value.substring(0, colonIndex);\n namespaceDeclaration = next.getAttributeNode(XMLConstants.XMLNS +\":\" + prefix);\n if ((null == namespaceDeclaration) && !declaredPrefixes.contains(prefix)) { \n String uri = XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(next, prefix);\n ((Element)next).setAttributeNS(XMLConstants.XMLNS_URL, XMLConstants.XMLNS + \":\" + prefix, uri);\n declaredPrefixes.add(prefix);\n }\n }\n }\n }\n }\n }\n\n NodeList children = next.getChildNodes();\n for (int i = 0; i < children.getLength(); i++) {\n Node nextNode = (Node)children.item(i);\n if (nextNode.getNodeType() == Node.ELEMENT_NODE) {\n Element child = (Element)nextNode;\n namespaceQualifyFragment(child, declaredPrefixes);\n }\n }\n }", "title": "" }, { "docid": "498acfa06612e85eacb845d6a4c22b13", "score": "0.396614", "text": "public final void rule__IndexDefinitionKeyConcept__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:14153:1: ( ( ( ',' )? ) )\n // InternalVertigoDsl.g:14154:1: ( ( ',' )? )\n {\n // InternalVertigoDsl.g:14154:1: ( ( ',' )? )\n // InternalVertigoDsl.g:14155:2: ( ',' )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIndexDefinitionKeyConceptAccess().getCommaKeyword_3()); \n }\n // InternalVertigoDsl.g:14156:2: ( ',' )?\n int alt99=2;\n int LA99_0 = input.LA(1);\n\n if ( (LA99_0==110) ) {\n alt99=1;\n }\n switch (alt99) {\n case 1 :\n // InternalVertigoDsl.g:14156:3: ','\n {\n match(input,110,FOLLOW_2); if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIndexDefinitionKeyConceptAccess().getCommaKeyword_3()); \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": "22a7df8dfb6c193b57b4df3d6b53b350", "score": "0.39579976", "text": "@Test\n public void test_TABLE_SCHEMA_isAtRightPosition() throws SQLException {\n assertThat(rowsMetadata.getColumnLabel(2)).isEqualTo(\"TABLE_SCHEMA\");\n }", "title": "" }, { "docid": "66f1f3f0985339db5bb204f161efa0e9", "score": "0.39534387", "text": "alluxio.grpc.table.Domain getColumnConstraintsOrThrow(\n java.lang.String key);", "title": "" }, { "docid": "bb4486c17f66a7293baf8aee3986c40a", "score": "0.3948763", "text": "SpellPrefixGroup selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "6fcc0b2a277059c2ac99b3bcdfe53ef6", "score": "0.3946904", "text": "@Test\n public void testCamelCaseKeyspaceCreation() throws Exception {\n createKeyspace(KEYSPACE_UPPER);\n Assert.assertNotNull(mCassandraCluster.getMetadata().getKeyspace(KEYSPACE_UPPER));\n }", "title": "" }, { "docid": "8d93a5b228b945d8cc0bd04ba9898542", "score": "0.39458764", "text": "public final void rule__TableColumnFX__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalJavaFXDsl.g:7670:1: ( ( 'column' ) )\r\n // InternalJavaFXDsl.g:7671:1: ( 'column' )\r\n {\r\n // InternalJavaFXDsl.g:7671:1: ( 'column' )\r\n // InternalJavaFXDsl.g:7672:2: 'column'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTableColumnFXAccess().getColumnKeyword_1()); \r\n }\r\n match(input,92,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTableColumnFXAccess().getColumnKeyword_1()); \r\n }\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": "6633c8e007f986d95a9e3f4dc88ad594", "score": "0.3942893", "text": "public Map<String,IndexDescription> getTableIndexes(String tableName, StringSet cacheKeys, String queryClass)\n throws ManifoldCFException;", "title": "" }, { "docid": "26dcf625f8c17014cd83b00e92a56356", "score": "0.39426583", "text": "public final void rule__FacetedQueryDefinitionListFilterBuilderQuery__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:13364:1: ( ( ':' ) )\n // InternalVertigoDsl.g:13365:1: ( ':' )\n {\n // InternalVertigoDsl.g:13365:1: ( ':' )\n // InternalVertigoDsl.g:13366:2: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFacetedQueryDefinitionListFilterBuilderQueryAccess().getColonKeyword_1()); \n }\n match(input,108,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFacetedQueryDefinitionListFilterBuilderQueryAccess().getColonKeyword_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": "b13ebfff93891d1b7776937dc70548c3", "score": "0.39329892", "text": "public interface SkillSchema {\n\tString TABLE_NAME = \"skills\";\n\n\tString COLUMN_ID = \"id\";\n\tString COLUMN_NAME = \"name\";\n\tString COLUMN_DESCRIPTION = \"description\";\n\tString COLUMN_CATEGORY_ID = \"categoryId\";\n\tString COLUMN_REQUIRES_SPECIALIZATION = \"requiresSpecialization\";\n\tString COLUMN_USE_CATEGORY_STATS = \"useCategoryStats\";\n\tString COLUMN_REQUIRES_CONCENTRATION = \"requiresConcentration\";\n\tString COLUMN_IS_LORE = \"isLore\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ID + \" INTEGER PRIMARY KEY, \"\n\t\t\t+ COLUMN_NAME + \" TEXT NOT NULL, \"\n\t\t\t+ COLUMN_DESCRIPTION + \" TEXT NOT NULL, \"\n\t\t\t+ COLUMN_CATEGORY_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REQUIRES_SPECIALIZATION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_USE_CATEGORY_STATS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REQUIRES_CONCENTRATION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_IS_LORE + \" INTEGER NOT NULL, \"\n\t\t\t+ \"FOREIGN KEY (\" + COLUMN_CATEGORY_ID + \") REFERENCES \" + SkillCategorySchema.TABLE_NAME + \"(\" + SkillCategorySchema.COLUMN_ID + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ID, COLUMN_NAME, COLUMN_DESCRIPTION, COLUMN_CATEGORY_ID,\n\t\t\tCOLUMN_REQUIRES_SPECIALIZATION, COLUMN_USE_CATEGORY_STATS, COLUMN_REQUIRES_CONCENTRATION, COLUMN_IS_LORE};\n}", "title": "" }, { "docid": "2d509ea9696237bd53d2c2eea3307a75", "score": "0.3932434", "text": "org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();", "title": "" }, { "docid": "aa89a86576708d48ae9a47912b2a60b4", "score": "0.39318472", "text": "public String getCreateTableQuery() {\n return \" `\" + key() + \"` \" + getSqliteType() + getAnnotations() + \" ,\";\n }", "title": "" }, { "docid": "c4795013df35d524833d8f88abb20c74", "score": "0.3931069", "text": "public String getTableSpaceName() {\r\n\t\treturn tableSpaceName;\r\n\t}", "title": "" }, { "docid": "c7312733241e726f47e781c286cd142a", "score": "0.3930265", "text": "String use_schema_nav();", "title": "" }, { "docid": "ecddcc9d2342b5aff967c2e366faee95", "score": "0.39281183", "text": "public Declaration declarator();", "title": "" }, { "docid": "6e91d2527e3448b33eb9485e50c00a15", "score": "0.3923585", "text": "String getPrimaryKeyColumnName();", "title": "" }, { "docid": "3d09f68d87c31baa3e7f05e37e32b701", "score": "0.3922212", "text": "public interface SuperColumnQuery<SN, N, V> extends Query<HSuperColumn<SN, N, V>>{\n\n SuperColumnQuery<SN, N, V> setKey(String key);\n\n SuperColumnQuery<SN, N, V> setSuperName(SN superName);\n\n SuperColumnQuery<SN, N, V> setColumnFamily(String cf);\n\n}", "title": "" }, { "docid": "c031a66f8c210fd49631e9eb33c67c80", "score": "0.39210597", "text": "org.apache.xmlbeans.XmlString xgetFamily();", "title": "" }, { "docid": "ced95cb5b3de227639ab5b0a7d0c0094", "score": "0.39192712", "text": "public Builder withColumn(String family, String qualifier) {\n return withColumn(new FijiColumnName(family, qualifier));\n }", "title": "" }, { "docid": "2977baf45cfaeb2fa08bfd5b30cb266f", "score": "0.3917745", "text": "public final BqlParser.groupbyClause_return groupbyClause() throws RecognitionException {\n BqlParser.groupbyClause_return retval = new BqlParser.groupbyClause_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token GROUPBY31=null;\n Token COMMA33=null;\n BqlParser.columnName_return columnName32 = null;\n\n BqlParser.columnName_return columnName34 = null;\n\n\n CommonTree GROUPBY31_tree=null;\n CommonTree COMMA33_tree=null;\n RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n RewriteRuleTokenStream stream_GROUPBY=new RewriteRuleTokenStream(adaptor,\"token GROUPBY\");\n RewriteRuleSubtreeStream stream_columnName=new RewriteRuleSubtreeStream(adaptor,\"rule columnName\");\n try {\n // /home/nhsan/dremel/workspace/DremelParser/src/dremel/parser/impl/Bql.g:51:20: ( GROUPBY columnName ( COMMA columnName )* -> ^( N_GROUPBY ( columnName )+ ) )\n // /home/nhsan/dremel/workspace/DremelParser/src/dremel/parser/impl/Bql.g:51:22: GROUPBY columnName ( COMMA columnName )*\n {\n GROUPBY31=(Token)match(input,GROUPBY,FOLLOW_GROUPBY_in_groupbyClause502); \n stream_GROUPBY.add(GROUPBY31);\n\n pushFollow(FOLLOW_columnName_in_groupbyClause504);\n columnName32=columnName();\n\n state._fsp--;\n\n stream_columnName.add(columnName32.getTree());\n // /home/nhsan/dremel/workspace/DremelParser/src/dremel/parser/impl/Bql.g:51:41: ( COMMA columnName )*\n loop12:\n do {\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==COMMA) ) {\n alt12=1;\n }\n\n\n switch (alt12) {\n \tcase 1 :\n \t // /home/nhsan/dremel/workspace/DremelParser/src/dremel/parser/impl/Bql.g:51:42: COMMA columnName\n \t {\n \t COMMA33=(Token)match(input,COMMA,FOLLOW_COMMA_in_groupbyClause507); \n \t stream_COMMA.add(COMMA33);\n\n \t pushFollow(FOLLOW_columnName_in_groupbyClause509);\n \t columnName34=columnName();\n\n \t state._fsp--;\n\n \t stream_columnName.add(columnName34.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n\n\n // AST REWRITE\n // elements: columnName\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 51:66: -> ^( N_GROUPBY ( columnName )+ )\n {\n // /home/nhsan/dremel/workspace/DremelParser/src/dremel/parser/impl/Bql.g:51:70: ^( N_GROUPBY ( columnName )+ )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(N_GROUPBY, \"N_GROUPBY\"), root_1);\n\n if ( !(stream_columnName.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_columnName.hasNext() ) {\n adaptor.addChild(root_1, stream_columnName.nextTree());\n\n }\n stream_columnName.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\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": "32ea308ca6e30ab43e520b5ce3341a24", "score": "0.39150915", "text": "public final void ruleFacetedQueryDefinition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:1391:2: ( ( ( rule__FacetedQueryDefinition__Group__0 ) ) )\n // InternalVertigoDsl.g:1392:2: ( ( rule__FacetedQueryDefinition__Group__0 ) )\n {\n // InternalVertigoDsl.g:1392:2: ( ( rule__FacetedQueryDefinition__Group__0 ) )\n // InternalVertigoDsl.g:1393:3: ( rule__FacetedQueryDefinition__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFacetedQueryDefinitionAccess().getGroup()); \n }\n // InternalVertigoDsl.g:1394:3: ( rule__FacetedQueryDefinition__Group__0 )\n // InternalVertigoDsl.g:1394:4: rule__FacetedQueryDefinition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__FacetedQueryDefinition__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFacetedQueryDefinitionAccess().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": "7f0ffc8fb6fa4508a75d6dcd2b1c541e", "score": "0.39088064", "text": "public Declaration actualDeclaration() throws LookupException;", "title": "" }, { "docid": "7f087f51186a4c4d6f5cb2f722975a69", "score": "0.3907574", "text": "public int countStagedFamiliesInGFSEntityXref();", "title": "" }, { "docid": "62330c74027d707eb78eba32dc81dc27", "score": "0.39064163", "text": "String getTableName();", "title": "" }, { "docid": "62330c74027d707eb78eba32dc81dc27", "score": "0.39064163", "text": "String getTableName();", "title": "" }, { "docid": "62330c74027d707eb78eba32dc81dc27", "score": "0.39064163", "text": "String getTableName();", "title": "" }, { "docid": "ff73aba1150a2b499419d67201e51781", "score": "0.39027342", "text": "public Map<String,List<String>> getNamespaceToPrefixesMap();", "title": "" }, { "docid": "5f1ff665765bcda95f40fd0216554a39", "score": "0.3901586", "text": "private void map(final DBRoot r, final String tableName, final Set<String> tableNames) throws SQLException {\n assert tableName == null ^ tableNames == null;\r\n final SetMap<String, String> metadataFKs = new SetMap<String, String>();\r\n @SuppressWarnings(\"unchecked\")\r\n final List<Object[]> importedKeys = this.base.getDataSource().useConnection(new ConnectionHandlerNoSetup<List, SQLException>() {\r\n @Override\r\n public List handle(final SQLDataSource ds) throws SQLException {\r\n final DatabaseMetaData metaData = ds.getConnection().getMetaData();\r\n return (List) SQLDataSource.ARRAY_LIST_HANDLER.handle(metaData.getImportedKeys(r.getBase().getMDName(), r.getSchema().getName(), tableName));\r\n }\r\n });\r\n // accumulators for multi-field foreign key\r\n final List<SQLField> from = new ArrayList<SQLField>();\r\n final List<SQLField> to = new ArrayList<SQLField>();\r\n final SQLSystem sys = this.base.getServer().getSQLSystem();\r\n Rule updateRule = null;\r\n Rule deleteRule = null;\r\n String name = null;\r\n // Follow the JDBC to the letter and order by PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME,\r\n // KEY_SEQ : thus ignoring FK_NAME\r\n if (sys == SQLSystem.MSSQL) {\r\n Collections.sort(importedKeys, IMPORTED_KEYS_COMP);\r\n }\r\n final Iterator<Object[]> ikIter = importedKeys.iterator();\r\n while (ikIter.hasNext()) {\r\n final Object[] m = ikIter.next();\r\n\r\n // FKTABLE_SCHEM\r\n assert CompareUtils.equals(m[5], r.getSchema().getName());\r\n // FKTABLE_NAME\r\n final String fkTableName = (String) m[6];\r\n assert tableName == null || tableName.equals(fkTableName);\r\n if (tableNames != null && !tableNames.contains(fkTableName))\r\n continue;\r\n // not by name, postgresql returns lowercase\r\n // \"FKCOLUMN_NAME\"\r\n final String keyName = (String) m[7];\r\n // \"KEY_SEQ\"\r\n final short seq = ((Number) m[8]).shortValue();\r\n // \"PKCOLUMN_NAME\"\r\n final String foreignTableColName = (String) m[3];\r\n // \"FK_NAME\"\r\n final String foreignKeyName = (String) m[11];\r\n\r\n final SQLField key = r.getTable(fkTableName).getField(keyName);\r\n\r\n final SQLTable foreignTable;\r\n try {\r\n foreignTable = getTableFromJDBCMetaData(r.getBase(), (String) m[0], (String) m[1], (String) m[2]);\r\n } catch (Exception e) {\r\n throw new IllegalStateException(\"Could not find what \" + key.getSQLName() + \" references\", e);\r\n }\r\n\r\n metadataFKs.add(fkTableName, keyName);\r\n if (seq == 1) {\r\n // if we start a new link add the current one\r\n if (from.size() > 0)\r\n addLink(from, to, name, updateRule, deleteRule);\r\n from.clear();\r\n to.clear();\r\n }\r\n from.add(key);\r\n assert seq == 1 || from.get(from.size() - 2).getTable() == from.get(from.size() - 1).getTable();\r\n to.add(foreignTable.getField(foreignTableColName));\r\n assert seq == 1 || to.get(to.size() - 2).getTable() == to.get(to.size() - 1).getTable();\r\n\r\n final Rule prevUpdateRule = updateRule;\r\n final Rule prevDeleteRule = deleteRule;\r\n // \"UPDATE_RULE\"\r\n updateRule = getRule((Number) m[9], sys);\r\n // \"DELETE_RULE\"\r\n deleteRule = getRule((Number) m[10], sys);\r\n if (seq > 1) {\r\n if (prevUpdateRule != updateRule)\r\n throw new IllegalStateException(\"Incoherent update rules \" + prevUpdateRule + \" != \" + updateRule);\r\n if (prevDeleteRule != deleteRule)\r\n throw new IllegalStateException(\"Incoherent delete rules \" + prevDeleteRule + \" != \" + deleteRule);\r\n }\r\n\r\n name = foreignKeyName;\r\n // MAYBE DEFERRABILITY\r\n }\r\n if (from.size() > 0)\r\n addLink(from, to, name, updateRule, deleteRule);\r\n\r\n if (Boolean.getBoolean(INFER_FK)) {\r\n final Set<String> tables = tableName != null ? Collections.singleton(tableName) : tableNames;\r\n for (final String tableToInfer : tables) {\r\n final SQLTable table = r.getTable(tableToInfer);\r\n final Set<String> lexicalFKs = SQLKey.foreignKeys(table);\r\n // already done\r\n lexicalFKs.removeAll(metadataFKs.getNonNull(table.getName()));\r\n // MAYBE option to print out foreign keys w/o constraint\r\n for (final String keyName : lexicalFKs) {\r\n final SQLField key = table.getField(keyName);\r\n addLink(singletonList(key), singletonList(SQLKey.keyToTable(key).getKey()), null, null, null);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "31b2ddc884192d1eb2b3ec92b45c143f", "score": "0.38975018", "text": "public final void rule__TableColumnFX__Group_3__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalJavaFXDsl.g:7886:1: ( ( 'name:' ) )\r\n // InternalJavaFXDsl.g:7887:1: ( 'name:' )\r\n {\r\n // InternalJavaFXDsl.g:7887:1: ( 'name:' )\r\n // InternalJavaFXDsl.g:7888:2: 'name:'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTableColumnFXAccess().getNameKeyword_3_0()); \r\n }\r\n match(input,74,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTableColumnFXAccess().getNameKeyword_3_0()); \r\n }\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": "7f759e48ca81a25fe489a34a9108357e", "score": "0.38914075", "text": "public String getLocalName() {\n/* 82 */ return this.localName;\n/* */ }", "title": "" }, { "docid": "fe23dc17ff8206b7511ddb877f46a7d8", "score": "0.38888806", "text": "public void endPrefixMapping(String prefix) throws SAXException {\n\t//System.out.println(\"Fin de traitement de l'espace de nommage : \" + prefix);\n }", "title": "" }, { "docid": "9f9e94d4ad2c52b00cd4d37370d1bb5b", "score": "0.38833603", "text": "public final void mK() throws RecognitionException {\n try {\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:952:11: ( ( 'k' | 'K' ) )\n // /home/pschulam/data/habeascorpus-workspace/apache-cassandra-1.2.0/src/java/org/apache/cassandra/cql3/Cql.g:952:13: ( 'k' | 'K' )\n {\n if ( input.LA(1)=='K'||input.LA(1)=='k' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "title": "" }, { "docid": "74f0e404d88bbc2f9cfd64556a22f4c7", "score": "0.38832316", "text": "@Test\n public void test_TABLE_NAME_hasSameNameAndLabel() throws SQLException {\n assertThat(rowsMetadata.getColumnName(3)).isEqualTo(\"TABLE_NAME\");\n }", "title": "" }, { "docid": "b3ec4559123de7dbf76dfcd84b48435a", "score": "0.38790575", "text": "public String getSchemaLocation();", "title": "" }, { "docid": "f5413f79594d6de7dac1867c9c18a7e0", "score": "0.38733515", "text": "private static void caso2() throws ConnectionException {\n\t\tColumnFamily<String, Integer> cfUsers = new ColumnFamily<String, Integer>(\n\t\t\t\tcolumnFamilyName3, StringSerializer.get(),\n\t\t\t\tIntegerSerializer.get());\n\n\t\ttry {\n\t\t\tksUsers.createColumnFamily(cfUsers, ImmutableMap\n\t\t\t\t\t.<String, Object> builder()\n\t\t\t\t\t// cómo almacenará cassandra internamente las column keys\n\t\t\t\t\t.put(\"key_validation_class\", \"IntegerType\")\n\t\t\t\t\t// cómo se ordenarán las column keys\n\t\t\t\t\t.put(\"comparator_type\", \"IntegerType\").build());\n\n\t\t\tMutationBatch m = ksUsers.prepareMutationBatch();\n\n\t\t\tColumnListMutation<Integer> clm = m.withRow(cfUsers, rowKey);\n\n\t\t\tfor (int i = 80; i < 100; i++) {\n\t\t\t\tclm.putColumn(i, \"user\" + i + \"@void.com\");\n\t\t\t}\n\n\t\t\tm.execute();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ya existe el column family \"\n\t\t\t\t\t+ columnFamilyName3);\n\t\t}\n\t\tColumnList<Integer> result = ksUsers.prepareQuery(cfUsers)\n\t\t\t\t.getKey(rowKey).execute().getResult();\n\t\tif (!result.isEmpty()) {\n\t\t\tfor (int i = 0; i < result.size(); i++) {\n\t\t\t\tString value = result.getColumnByIndex(i).getStringValue();\n\t\t\t\tSystem.out.println(\"email for user \"\n\t\t\t\t\t\t+ result.getColumnByIndex(i).getName() + \" is: \"\n\t\t\t\t\t\t+ value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c3274f819322d5f6bb28b109980b2c8f", "score": "0.38670686", "text": "public final void mCOLON() throws RecognitionException {\n try {\n int _type = COLON;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // D:\\\\Gemlite\\\\vmgemlite\\\\Gemlite-bundle\\\\Gemlite-runtime\\\\src\\\\main\\\\resources\\\\CreateIndex.g:74:7: ( ':' )\n // D:\\\\Gemlite\\\\vmgemlite\\\\Gemlite-bundle\\\\Gemlite-runtime\\\\src\\\\main\\\\resources\\\\CreateIndex.g:74:9: ':'\n {\n match(':'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "f5cbb8529c5d426e9c36ff5a30bb7c18", "score": "0.38651088", "text": "public Namespace findNamespace (Symbol name);", "title": "" }, { "docid": "b7eb146ef616c2d2b87c449c226da180", "score": "0.38638392", "text": "public String getFamily() {\n return COMPONENT_FAMILY;\n }", "title": "" }, { "docid": "35710cfd36658e01c46ad0cd494c6f1f", "score": "0.3859954", "text": "@Override\n\tprotected String getKeyspaceName() {\n\t\treturn environment.getProperty(\"spring.data.cassandra.keyspace-name\");\n\t}", "title": "" }, { "docid": "4e6394ece43fe70d68530ca5164d3b69", "score": "0.3857681", "text": "@Override\n\tpublic void visit(ClassDecl node) {\n\t\t\n\t}", "title": "" }, { "docid": "8e4c4062f175f5f13250683573f2cb14", "score": "0.38576227", "text": "private TableColumnName() {\n\t}", "title": "" }, { "docid": "509205ce1e90854f0a79b5700bd267dc", "score": "0.38551033", "text": "private static void createKeyspaceAndTables(DseSession session, Properties prop) {\n\t\t// Local Keyspace\n\t\t// Statement createKS = new SimpleStatement(\n\t\t// \"CREATE KEYSPACE IF NOT EXISTS delta WITH replication = {'class':\n\t\t// 'SimpleStrategy', 'replication_factor': 1}\");\n\n\t\t// DROP KEYPSACE if EXIST\n\t\tStatement createKS = new SimpleStatement(\n\t\t\t\t\"CREATE KEYSPACE IF NOT EXISTS delta WITH replication = {'class': 'NetworkTopologyStrategy', '\"\n\t\t\t\t\t\t+ prop.getProperty(\"writeDC\") + \" ': 3, '\" + prop.getProperty(\"readDC\") + \"' :3}\");\n\t\tSystem.out.println(createKS);\n\n\t\tsession.execute(createKS);\n\n\t\tStatement createTable = new SimpleStatement(\n\t\t\t\t\"CREATE TABLE If NOT EXISTS delta.latencyfind ( id bigInt,writeTime bigInt, PRIMARY KEY(id)) ;\");\n\t\tcreateTable.setConsistencyLevel(ConsistencyLevel.ALL);\n\t\tSystem.out.println(createTable);\n\t\tsession.execute(createTable);\n\t}", "title": "" }, { "docid": "6dcf527b2bd7fb1521d96da9f78104cf", "score": "0.38510746", "text": "public abstract String getTableName();", "title": "" } ]
31a6c28c0c4b4e7e249f8add9c218078
API para inserir uma nova categoria
[ { "docid": "577a0d92770268f1a1deedd26b94c72d", "score": "0.6144484", "text": "@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody CategoriaDTO catDto) {\n\t\tCategoria cat = categoriaService.fromDTO(catDto);\n \t\tcat = categoriaService.insert(cat);\n \t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n \t\t\t\t.path(\"/{id}\").buildAndExpand(cat.getId()).toUri();\n\t \treturn ResponseEntity.created(uri).build();\n\t}", "title": "" } ]
[ { "docid": "e60ab171f621e449aac9adb3954f8368", "score": "0.71611077", "text": "private void createNewCategory() {\n\t\t\n\t}", "title": "" }, { "docid": "774dbbe51eb9ce14ec5b628e44e69d86", "score": "0.7134202", "text": "void createCategory(Category category);", "title": "" }, { "docid": "379b28c2f4b2c08c567abb017a5795ab", "score": "0.7044198", "text": "Category createCategory();", "title": "" }, { "docid": "f2c95a6a398e0d1b61a97cf669d0dff8", "score": "0.6984349", "text": "public schemas.categoryschema.Category createCategory();", "title": "" }, { "docid": "f6f178dfd86e4661a1caf7b7abc1bac4", "score": "0.69619054", "text": "org.dhis2.ns.schema.dxf2.CategoryCombosDocument.CategoryCombos addNewCategoryCombos();", "title": "" }, { "docid": "3e8cfb820e8b95a19ddefd7c24c43ab2", "score": "0.6922593", "text": "@Override\n\tpublic void insertCategory(CategoryDTO pro) {\n\t\t\n\t}", "title": "" }, { "docid": "126949e3a54fe6ad06bba66f0ca7f7b2", "score": "0.6912801", "text": "int insert(Category record);", "title": "" }, { "docid": "126949e3a54fe6ad06bba66f0ca7f7b2", "score": "0.6912801", "text": "int insert(Category record);", "title": "" }, { "docid": "126949e3a54fe6ad06bba66f0ca7f7b2", "score": "0.6912801", "text": "int insert(Category record);", "title": "" }, { "docid": "406a37a944d7238513cc753eb87c661e", "score": "0.6873882", "text": "Category createCategory(String name) throws EntityAlreadyExistsException;", "title": "" }, { "docid": "2344758b627de15d92db76bf8beaa980", "score": "0.6855814", "text": "public int createCategory(Category category);", "title": "" }, { "docid": "0b7ff09fefb29a0b00d8b084affd8745", "score": "0.68439996", "text": "@Insert\n void insert(Category... categories);", "title": "" }, { "docid": "3586269d6975eea29f6f7843dd3f5744", "score": "0.6794385", "text": "public com.sage.ideatool.model.sageCategory create(long categoryId);", "title": "" }, { "docid": "134b9b611913990e7c153f4210223b87", "score": "0.67606634", "text": "void save(Category category);", "title": "" }, { "docid": "b7e0fe62515b24c614aeff30e7888e30", "score": "0.67218447", "text": "@Insert\n public long insertCategory(Category category);", "title": "" }, { "docid": "eed80f6a03584f8edf54a3e49ccab750", "score": "0.66975135", "text": "public void addCategory(Category category);", "title": "" }, { "docid": "f16e717cf60f79ebcc3ace4f620c53b4", "score": "0.6696183", "text": "int insertSelective(Category record);", "title": "" }, { "docid": "f16e717cf60f79ebcc3ace4f620c53b4", "score": "0.6696183", "text": "int insertSelective(Category record);", "title": "" }, { "docid": "3cb5357b1f67ae7dbcbcac71cbc5a11f", "score": "0.66494936", "text": "public void saveCreateCategory() {\n\n // Checks which task to perform either addCategory or removeCategory\n if (addCategory.getText().isBlank()){\n\n removeCreateCategory();\n\n }\n else {\n\n addCreateCategory();\n\n }\n\n }", "title": "" }, { "docid": "0c63b9a70a81e3990cf645fe924cdae0", "score": "0.6626281", "text": "public CategoryPk insert(Category dto) throws CategoryDaoException;", "title": "" }, { "docid": "d8c6b00dbb5fd8f7e2494878a6058941", "score": "0.6608501", "text": "org.dhis2.ns.schema.dxf2.CategoryComboDocument.CategoryCombo insertNewCategoryCombo(int i);", "title": "" }, { "docid": "51e9a520d3c3c69ba703f65a32f45219", "score": "0.66032475", "text": "public int registerCategory(Category i) {\n int ok = 0;\n try {\n String query = \"INSERT INTO category (id_Category, category) VALUES (?, ?);\";\n\n PreparedStatement st = con.prepareStatement(query); \n st.setInt(1, 0);\n st.setString(2, i.getCategory());\n\n ok = st.executeUpdate(); //Execute the insert\n st.close(); //Close the Statment\n con.close(); //Close the connection\n \n } catch (SQLException e) {\n e.printStackTrace();\n }\n \n return ok;\n }", "title": "" }, { "docid": "7b91d804b2f8b374aa1a3d0d50928d39", "score": "0.6589376", "text": "@Transactional\n\t@PostMapping\n\tpublic ResponseEntity<CategoriaRequest> insert(@Valid @RequestBody CategoriaRequest request) {\n\t\tCategoria entity = request.toModel(manager);\n\t\tmanager.persist(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "title": "" }, { "docid": "64e2a34972fb23fdeccdbaa87c5ba9a6", "score": "0.6560356", "text": "public void createCategory (Long contextId, Category category) throws UnstructuredCAException;", "title": "" }, { "docid": "c7627e031525a754e1e1cbddf23ab87e", "score": "0.6537436", "text": "@Test\n\tpublic void criarCategoriaTest() {\n\t\tCategoria categoria = new Categoria(\"Feijões\");\n\t\trepositorioCategorias.save(categoria);\n\t\tassertThat(repositorioCategorias.count()).isEqualTo(1);\n\t\tassertThat(repositorioCategorias.findByDescricao(\"Feijões\")).isNotNull();\n\t}", "title": "" }, { "docid": "0ea9f4ae37142bf2302aaf865e8bd0db", "score": "0.6524351", "text": "public Category create(long categoryId);", "title": "" }, { "docid": "777fc5bdc237898047f1793975c87f02", "score": "0.647332", "text": "org.dhis2.ns.schema.dxf2.CategoryComboDocument.CategoryCombo addNewCategoryCombo();", "title": "" }, { "docid": "3b725c60a0afa780385b6682401e68a8", "score": "0.64680165", "text": "private void add() {\t\t\r\n\t\tmodel.insertCategory(category);\r\n\t\t\r\n\t\tNotification.show(\"Success\", \"Category added to the database\", Notification.Type.HUMANIZED_MESSAGE);\r\n\t}", "title": "" }, { "docid": "2beab5627c9d6d7fea7755bda52572a7", "score": "0.6423619", "text": "void add(Category category);", "title": "" }, { "docid": "6bb7bd71d91388ff990ec7bfb3117c64", "score": "0.6420792", "text": "@Override\n\tpublic int create(Prod_Categorias P) {\n\t\treturn jdbcTemplate.update(\"call PKG_ALM_CRUD_PRODCATEGORIAS.pa_mat_prodcategorias_ins(?,?)\",P.getNombre(),P.getEstado());\n\t}", "title": "" }, { "docid": "e3ced5efa619d163ba6c72dee6c6d3de", "score": "0.64170116", "text": "@Override\n\tpublic Categorie addCategorie() {\n\t\tCategorie c = new Categorie();\n\t\tSystem.out.println(\"Entrer l'id \\n\");\n\t\tString id = \"\";\n\t\tid = sc.nextLine();\n\t\tc.setId(Integer.parseInt(id));\n\t\tSystem.out.println(\"Entrer le nom de la categorie \\n\");\n\t\t String nom = sc.nextLine();\n\t\t c.setNom(nom);\n\t\treturn c;\n\t}", "title": "" }, { "docid": "04b9ef8a1cab063698408d8c1791f50c", "score": "0.6387839", "text": "ConfigurationCategory save(ConfigurationCategory category);", "title": "" }, { "docid": "842f0b28b4edd4472d5b0899b07fb84a", "score": "0.63411653", "text": "public boolean crearCategoria(){\r\n Connection con = Conexion.getSessionConn();\r\n if(con == null) return false;\r\n Statement st;\r\n boolean flag = false;\r\n \r\n try {\r\n st = con.createStatement();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n try {\r\n st.executeUpdate(\"INSERT INTO CATEGORIA(nombre, Usuario_nombre) VALUES(\"\r\n + \" '\" + getNombre() + \"',\"\r\n + \" '\" + getUsuario() + \"')\");\r\n flag = true;\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try{ \r\n st.close();\r\n } catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n return flag;\r\n }", "title": "" }, { "docid": "5d4182c6583f6dc3e183d720a61e8331", "score": "0.6338621", "text": "public void addNewCategory(Category c){\n ContentValues values = new ContentValues();\n values.put(\"_id\", c.getCategory_title());\n values.put(KEY_AUDIOURI, c.getAudio_uri());\n values.put(KEY_MOTIVATION, c.getMotivation());\n SQLiteDatabase db = getWritableDatabase();\n db.insert(TABLE_CATEGORIES, null, values);\n db.close();\n }", "title": "" }, { "docid": "2f442cabfe154cf61b854aa9cd96f0b4", "score": "0.63270396", "text": "public void createCategory(Category category) \n\t{\n\t\t\n\tsessionFactory.getCurrentSession().saveOrUpdate(category);\n\t\t\n\t}", "title": "" }, { "docid": "c377ebe5ac35b4f13e83eb9db9cef177", "score": "0.6305081", "text": "@Override\n\tpublic void insertCategory(String cname) throws SQLException {\n\t\tQueryRunner qr = new QueryRunner(C3P0util.getDataSource());\n\t\tqr.update(\"insert into category values (?,?)\",UUID.randomUUID().toString().replace(\"-\", \"\"),cname);\n\t}", "title": "" }, { "docid": "d79a4527dfa61da9901a660b6c3a951b", "score": "0.6303371", "text": "@Override\n\tpublic CategoriaSitio agregarCategoriaDeSitio(CategoriaSitio categoriaSitio) {\n\t\t new CategoriaSitioJpaController().create(categoriaSitio);\n\t\t return categoriaSitio;\n\t}", "title": "" }, { "docid": "75ca2a6447d56c753e0db7229680ea9e", "score": "0.62864566", "text": "int insertSelective(CmcCommodityCategory record);", "title": "" }, { "docid": "83705621337ef921f2b7786e1bec6873", "score": "0.62810135", "text": "int insert(CmcCommodityCategory record);", "title": "" }, { "docid": "fbe0e968376eda657d4ffdcc0b860071", "score": "0.62677413", "text": "@Override\r\n\tpublic void add(CategoriaRutaDTO categoria) {\n\r\n\t}", "title": "" }, { "docid": "f1dc594b80fee6797a5bae6380765a8e", "score": "0.62561613", "text": "int insertCat(String cat, String type){\n\n SQLiteDatabase db=this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(CATEGORY_NAME, cat);\n contentValues.put(TYPE, type);\n long result = db.insert(TABLE_CATEGORIES, null, contentValues);\n Log.e(\"res\",\"\"+result);\n return (int)result;\n }", "title": "" }, { "docid": "f7a6f358b4b8af8219aeb7fa96b0b2f4", "score": "0.6232815", "text": "@PostMapping ////Anotação para mapear POST solicitações de HTTP em métodos de tratamento específicos.\n\tpublic ResponseEntity<Categoria> post(@RequestBody Categoria categoria){\n\t\treturn ResponseEntity.status(HttpStatus.CREATED).body(repository.save(categoria)); // end point de postagem\n\t}", "title": "" }, { "docid": "481d22543bff0b60683c527f5f4a2854", "score": "0.6212859", "text": "@Override\n\tpublic Boolean save(Object obj) {\n\t\tCategory cat = (Category) obj;\n\t\tsql = \"insert into amazon (catname) values('\"+cat.getCatname()+\"')\";\n\t\treturn super.save(obj);\n\t}", "title": "" }, { "docid": "98632ca72f8f8d5b4b94fac7136c385b", "score": "0.61740863", "text": "@PutMapping //Anotação para mapear PUT solicitações de HTTP em métodos de tratamento específicos.\n\tpublic ResponseEntity<Categoria> put(@RequestBody Categoria categoria){\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(repository.save(categoria)); // end point de postagem\n\t}", "title": "" }, { "docid": "b3bc7db778aee6fa3edd905ab9de52ba", "score": "0.6173315", "text": "public void addCategoryAttribute(CategoryAttribute attribute);", "title": "" }, { "docid": "3857d4a312ddc05d2ca4bd395d099b8f", "score": "0.617129", "text": "public int insertarCategoria(String idCategoriaInsertar, String nombreCategoriaInsertar) {\r\n\t\tfinal SQLiteDatabase db = dbHelper.getReadableDatabase();\r\n\t\tString insertQuery = \"\";\r\n\t\tString selectQuery = \"\";\r\n\t\t\t \t\t \r\n\t\tselectQuery = \"SELECT nombreCategoria FROM categorias WHERE idCategoria='\" + idCategoriaInsertar + \"';\";\r\n\r\n\t\tLog.e(\"ENRICO\", \"Query comprobar existe categoria realizada\");\r\n\t\tfinal Cursor a = db.rawQuery(selectQuery, null);\r\n\t\tif (a.moveToFirst()) {\r\n\t\t\ta.close();\r\n\t\t\t\r\n\t\t\tinsertQuery = \"INSERT INTO categorias (idCategoria, nombreCategoria) VALUES ('\" \r\n\t\t\t+ idCategoriaInsertar + \"','\" \r\n\t\t\t+ nombreCategoriaInsertar + \"');\";\r\n\t\t\t\r\n\t\t\tLog.e(\"ENRICO\", \"Query insertar categoria realizada\");\r\n\t\t\tfinal Cursor b = db.rawQuery(insertQuery, null);\r\n\t\t\t\r\n\t\t\tb.close();\t\r\n\t\t\treturn 0; //Todo correcto\r\n\t\t}\r\n\t\ta.close();\r\n\t\treturn -1; //No se inserta nada\r\n\t}", "title": "" }, { "docid": "57ac14eb6b1b4370407579cb963842d1", "score": "0.6162543", "text": "public void setupInsertToCategories(String values){\n try{\n DBAdapter db = new DBAdapter(context);\n db.open();\n db.insert(\"categories\",\n \"_id, category_name, category_parent_id, category_icon, category_note\",\n values);\n db.close();\n }\n catch (SQLiteException e){\n // Toast.makeText(context, \"Error; Could not insert categories.\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "928bf854b7021c279dc41a14d61a9498", "score": "0.6103818", "text": "private void addSomeCategory() {\n\tmySQLiteAdapter.openToWrite(mySQLiteAdapter.MYCATEGORY_TABLE);\n\tmySQLiteAdapter.insertCategory(\"None\");\n\tmySQLiteAdapter.close();\n}", "title": "" }, { "docid": "f260fb4728c9a015ea55cf8af1e74c4f", "score": "0.6099157", "text": "public abstract void salvar(Categoria cat);", "title": "" }, { "docid": "dd46b0aac0fd4d3b2bccbcefd9e1070d", "score": "0.60944223", "text": "public Images insertCategory(Images obj){\n obj.setImage_id(null);\n obj.setSubCategory(null);\n obj.setItem(null);\n return imagesRepository.save(obj);\n }", "title": "" }, { "docid": "561a2b5299e5429e39996187492be66e", "score": "0.6066494", "text": "@Override\n\tpublic int insertCategory(CategoryVO categoryVO) {\n\t\tint count = categoryDAO.insertCategory(categoryVO);\n\t\tCacheManager.clearOnly(\"cg\"); // insert 성공 경우에 캐시 지우기\n\t\treturn count;\n\t}", "title": "" }, { "docid": "8eb0b4d435f446b27ad2b77592eca35a", "score": "0.6057954", "text": "public void addCreateCategory(){\n\n String categoryAdd = addCategory.getText();\n AuthenticationDatabaseConnection connect = new AuthenticationDatabaseConnection();\n Connection connectDB = connect.getConnection();\n\n ResultSet resultSet = null;\n\n // Checks if category is already available or not\n try {\n String query = \"SELECT * FROM category WHERE category= ? \";\n PreparedStatement preparedStmt = connectDB.prepareStatement(query);\n preparedStmt.setString(1, categoryAdd);\n resultSet = preparedStmt.executeQuery();\n\n if (resultSet.isBeforeFirst()) {\n successMessage.setText(\"\");\n warningMessage.setText(\"Category already available!\");\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert into category table\n try {\n String query = \"INSERT INTO category(category) VALUES(?)\";\n PreparedStatement preparedStmt = connectDB.prepareStatement(query);\n preparedStmt.setString(1, categoryAdd);\n preparedStmt.executeUpdate();\n\n warningMessage.setText(\"\");\n successMessage.setText(\"Category added successfully.\");\n\n\n System.out.println(\"Data insert Successfully\");\n\n addCategory.setText(\"\");\n\n } catch (Exception e) {\n e.printStackTrace();\n e.getCause();\n }\n }", "title": "" }, { "docid": "6f65e8c78b27e812d86a90d6cbb829db", "score": "0.59910554", "text": "@Override\n\tpublic void saveOrUpdate(Category category) {\n\t\tString sql = \"INSERT INTO category (objectid,categoryname)\"\n\t\t\t\t+ \" VALUES (?, ?)\";\n\t\tjdbcTemplate.update(sql, category.getObjectid(),category.getCategoryname());\n\n\t}", "title": "" }, { "docid": "58929c3ee006d793b7ae0b9f38de8489", "score": "0.5970842", "text": "public String createShoppingListCategory(ShoppingListCategory shoppingListCategory);", "title": "" }, { "docid": "52962f0d27d0466fd91bf2260c75f324", "score": "0.5965987", "text": "CategoryDto createCategory(CategoryDto category);", "title": "" }, { "docid": "9dbd1efd2e118cd9fdd915d00e7be748", "score": "0.59571797", "text": "@Override\n\tpublic void insert(Category category) {\n\t\ttry {\n\t\t\tint result = categoryDAO.insert(category);\n\n\t\t} catch (RuntimeException e) {\n\t\t\tthrow new RuntimeException(\"등록 실패\");\n\t\t}\n\t}", "title": "" }, { "docid": "64188b3495009a840949cddcc8a43a18", "score": "0.59528697", "text": "public void insert( Category category )\n {\n int nParam = 0;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT );\n\n daoUtil.setInt( ++nParam, getNewPrimaryKey( ) );\n daoUtil.setString( ++nParam, category.getName( ) );\n daoUtil.setString( ++nParam, category.getDescription( ) );\n daoUtil.setBytes( ++nParam, category.getIconContent( ) );\n daoUtil.setString( ++nParam, category.getIconMimeType( ) );\n daoUtil.setString( ++nParam, category.getWorkgroup( ) );\n\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }", "title": "" }, { "docid": "338da0719b6b53cd2b2a2a666ff18c16", "score": "0.594889", "text": "public void testUpdateCategory_notExistCategory()throws Exception{\r\n \t persistence = new InformixRoleCategoryPersistence(TestHelper.INFORMIX_ROLE_CATEGORY_PERSISTENCE_NAMESPACE);\r\n \t Statement stmt = this.conn.createStatement();\r\n \t stmt.execute(\"insert into principal values(1,'ivern')\");\r\n \t \r\n \t try {\r\n this.persistence.updateCategories(\"ivern\", new Category[] { new Category(1, \"manager\", \"desc\", true),new Category(2, \"worker\", \"desc\", true) });\r\n fail(\"The categories does not exist.\");\r\n } catch (CategoryNotFoundException e) {\r\n //good\r\n }\r\n \t \r\n }", "title": "" }, { "docid": "f848a844ba4be8a6eca4e3dad1189d88", "score": "0.59315616", "text": "public void setCategoria(String categoria) {\n this.categoria = categoria;\n }", "title": "" }, { "docid": "fa3c419603ec07096d1085a9c7aff83e", "score": "0.59112", "text": "private void createCategory(Map<String, Object> jsonrpc2Params) throws Exception {\n \n Map<String, Object> params = getParams(jsonrpc2Params,\n new NullableExtendedParam(Constants.Param.Name.TYPE, false),\n new NullableExtendedParam(Constants.Param.Name.HEADLINE, false),\n new NullableExtendedParam(Constants.Param.Name.COLOR_CODE, true));\n \n String type = (String) params.get(Constants.Param.Name.TYPE);\n Integer colorCode = (Integer)params.get(Constants.Param.Name.COLOR_CODE);\n Object category = null;\n \n if(colorCode == null){\n colorCode = Constants.Database.DEFAULT_COLOR_CODE;\n }\n \n if(type.equals(Constants.Param.Value.PUBLIC)){\n category = new Category(\n (String) params.get(Constants.Param.Name.HEADLINE),\n colorCode,\n null);\n \n }else if(type.equals(Constants.Param.Value.PRIVATE)){\n category = new PrivateCategory(\n (String) params.get(Constants.Param.Name.HEADLINE),\n colorCode,\n null,\n em.find(Account.class, accountId));\n \n }else{\n throwJSONRPC2Error(JSONRPC2Error.INVALID_PARAMS, Constants.Errors.PARAM_VALUE_NOT_ALLOWED, \"Type: \" + type);\n }\n persistObjects(category);\n \n responseParams.put(Constants.Param.Status.STATUS, Constants.Param.Status.SUCCESS);\n responseParams.put(Constants.Param.Name.CATEGORY, Serializer.serialize((Serializable) category));\n }", "title": "" }, { "docid": "b846a5f649b2a579393bfce71ea548ff", "score": "0.5900209", "text": "public InsertCategoria() {\n initComponents();\n ImageIcon icon = new ImageIcon(\"C:\\\\Users\\\\Melvin\\\\Desktop\\\\RepositorioProyecto2Algoritmos\\\\src\\\\Imagenes\\\\Logo.PNG\");\n Icon icon2 = new ImageIcon(icon.getImage().getScaledInstance(lbl_LOGO.getWidth(), lbl_LOGO.getHeight(), Image.SCALE_DEFAULT));\n lbl_LOGO.setIcon(icon2);\n this.repaint();\n this.setLocationRelativeTo(null);\n // listaCategoria \n id = 0;\n System.out.println(LoginPanel.categoria.size() + \"AQUI\");\n if (LoginPanel.categoria.isEmpty()) {\n lbl_ID2.setText(\"1\");\n } else {\n\n// Iterator it = LoginPanel.categoria.keySet().iterator();\n// while (it.hasNext()) {\n// \n// String key = \"\" + it.next();\n// System.out.println(LoginPanel.categoria.get(key).getId()+\"JAJA\");\n// id = LoginPanel.categoria.get(key).getId() + 1;\n//\n// }\n// lbl_ID2.setText(id + \"\");\n id = LoginPanel.categoria.size() + 1;\n lbl_ID2.setText(id + \"\");\n }\n }", "title": "" }, { "docid": "aa9c71ae6d195d8217dfc4761aca29e0", "score": "0.587479", "text": "Category saveOrUpdate(CategoryDto categoryDto);", "title": "" }, { "docid": "d516ee56fca00ee0d157974b848bd073", "score": "0.5866583", "text": "SubCategory createSubCategory();", "title": "" }, { "docid": "7313c7b4ffadccf439c527b2655338c8", "score": "0.5854207", "text": "@PostMapping(\"/new\")\n public @ResponseBody\n Category createCategory(@RequestBody Category category){\n return categoryDao.save(category);\n }", "title": "" }, { "docid": "f33aa20f01463cc33f454a19c1a8e5a2", "score": "0.58437854", "text": "private static void addCategory() {\n String categoryName = \"romance\";\n HttpURLConnection con = null;\n try {\n categoryName = URLEncoder.encode(categoryName, StandardCharsets.UTF_8.toString());\n URL url = new URL(ROOT_DOMAIN.toString() + \"/addCategories?name=\" + categoryName);\n System.out.println(url.toString());\n con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"GET\");\n con.connect();\n printResponse(con);\n con.disconnect();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0527ee9d36d0a33e18489997bdfe1dee", "score": "0.58316916", "text": "public void setCategoria(java.lang.String categoria) {\n this.categoria = categoria;\n }", "title": "" }, { "docid": "95639a7e902248dac71aadac8dc01bde", "score": "0.5810044", "text": "public void insertCategory(String categoryName) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COL_CATEGORY_NAME, categoryName);\n\n database.insert(TABLE_NAME_CATEGORIES, null, values);\n database.close();\n }", "title": "" }, { "docid": "716ae17c28f5d953485d8fbd191aff28", "score": "0.57878757", "text": "private void defCategory(SQLiteDatabase db) {\n int x=0;\n ContentValues contentValues = new ContentValues();\n\n while(x<4){\n contentValues.put(CATEGORY_NAME, EX_CATEGORIES[x]);\n contentValues.put(TYPE, \"E\");\n db.insert(TABLE_CATEGORIES, null, contentValues);\n x++;\n }\n x=0;\n while(x<3){\n contentValues.put(CATEGORY_NAME, IN_CATEGORIES[x]);\n contentValues.put(TYPE, \"I\");\n db.insert(TABLE_CATEGORIES, null, contentValues);\n x++;\n }\n }", "title": "" }, { "docid": "8c3a940d130514036b3d649b8f5852d9", "score": "0.5783462", "text": "@Override\n\tpublic void save(ChapterCategory t) {\n\t\tchapterCategoryDAO.save(t);\n\t\t\n\t}", "title": "" }, { "docid": "6e73a34678716752478378cf50f4e0f8", "score": "0.57776403", "text": "void create(Category cat, UserWcm user) throws WcmAuthorizationException, WcmException;", "title": "" }, { "docid": "33ef0262c1d48a8f6ea6443ce3e31dbd", "score": "0.5776286", "text": "public void categorize(){\r\n\t\t//Discover the categories with the current settings and attach them to the datasets\r\n\t\tfor(Dataset dataset : m_Datasets){\r\n\t\t\tdataset.clearCategories();\r\n\t\t\tEnumMap<BabelDomain, Float> newCats = selectCategories(dataset);\r\n\t\t\tfor(BabelDomain cat : newCats.keySet())\r\n\t\t\t\tdataset.addCategory(cat, newCats.get(cat));\r\n\t\t}\r\n\t\tupdateCategoryFrequencies();\r\n\t}", "title": "" }, { "docid": "a9dd6344260864c66d0ec67be03bc215", "score": "0.57751364", "text": "public void addCategoryAttribute(Category category, CategoryAttribute attribute);", "title": "" }, { "docid": "42163541ac47fc61c5a9cd654e082f15", "score": "0.5774066", "text": "private void addCategory() {\n final EditText editText = (EditText) findViewById(R.id.newCategory);\n String categoryName = editText.getText().toString();\n\n if (!categoryName.equals(\"\")) {\n mCategoryColour = getCategoryColour();\n\n if (mCategoryColour == 0) {\n mCategoryColour = mRandomColour[0];\n }\n\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);\n mTaskManager.createCategory(categoryName, mCategoryColour);\n editText.setText(\"\");\n makeToast(getString(R.string.category_added));\n generateColourShape();\n } else {\n makeToast(getString(R.string.category_name_empty_error));\n }\n\n }", "title": "" }, { "docid": "03e8c6103f5d5f2f77b8773eddb20cf6", "score": "0.57475954", "text": "public Category createCategory(Category category)\n {\n if (category.getName().equals(\"\"))\n {\n throw new BadRequestException(\"name is empty\");\n }\n session.beginTransaction();\n session.persist(category);\n session.getTransaction().commit();\n return category;\n }", "title": "" }, { "docid": "c3dc16ba236cbf481642e34edcf7386f", "score": "0.57469976", "text": "public void addCategory(Category category) {\n SQLiteDatabase db = getWritableDatabase();\n\n // It's a good idea to wrap the insert in a transaction.\n // This helps with performance and ensures consistency of the database\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(COLUMN_CATEGORY_NAME, category.getName());\n values.put(COLUMN_CATEGORY_IS_INCOME, category.getIsIncome());\n\n // Don't specify the primary key. SQLite auto increments the primary key\n db.insertOrThrow(TABLE_CATEGORIES, null, values);\n db.setTransactionSuccessful();\n } catch (Exception e) {\n Log.e(TAG, \"Error while trying to add category to database\", e.getCause());\n } finally {\n db.endTransaction();\n }\n }", "title": "" }, { "docid": "94476e4835c7968ab4a0650bc8891fa1", "score": "0.57194465", "text": "void setCategory(String category);", "title": "" }, { "docid": "4eaca26fc12c585a6c650361e63607b1", "score": "0.57193494", "text": "public void insertReviewCategory(String name, String metrics) throws SQLException {\n String query = \"INSERT INTO Review_Category(name,metrics) VALUES(?,?)\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setString(1, name);\n preStmt.setString(2, metrics);\n preStmt.executeUpdate();\n }\n }", "title": "" }, { "docid": "20d06cf26952db354c28c1a20537b9d8", "score": "0.5718584", "text": "public boolean add(String arr[])throws CostManagerException\n {\n String sql = \"INSERT INTO Category (name) \" + \"VALUES ('\" + arr[0] + \"')\";\n if (db.set(sql)) {\n System.out.println(\"The new category was added to table\");\n return true;\n } else {\n\n return false;\n }\n }", "title": "" }, { "docid": "533010b571b2ebb6620d5f5c5dc8655a", "score": "0.56988823", "text": "public void addCategory(Category category) {\n entityManager.persist(category);\n }", "title": "" }, { "docid": "8cd1cc1f932d7d6fcbf04f55806e315a", "score": "0.56905484", "text": "@Test\n\tpublic void insertCategoricalTrait() throws Exception {\n\n\t\twhen(this.measurementDto.getVariableValue()).thenReturn(TEST_TERM_NAME);\n\t\twhen(this.measurementDto.getMeasurementVariable()).thenReturn(new MeasurementVariableDto(TEST_TRAIT_ID, TEST_TRAIT_NAME));\n\t\twhen(this.mockSession.save(isA(Phenotype.class))).thenAnswer(new Answer<Serializable>() {\n\n\t\t\t@Override\n\t\t\tpublic Serializable answer(final InvocationOnMock invocation) throws Throwable {\n\t\t\t\tfinal Object[] arugment = invocation.getArguments();\n\t\t\t\tfinal Phenotype phenotype = (Phenotype) arugment[0];\n\t\t\t\tphenotype.setPhenotypeId(GENERATED_PHENOTYPE_ID);\n\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t});\n\t\tfinal String programUuid = UUID.randomUUID().toString();\n\t\tfinal Variable mockVariable = Mockito.mock(Variable.class);\n\t\tfinal Scale mockScale = Mockito.mock(Scale.class);\n\t\twhen(mockVariable.getScale()).thenReturn(mockScale);\n\t\twhen(mockScale.getCategories()).thenReturn(\n\t\t\t\tCollections.singletonList(new TermSummary(TEST_TERM_ID, TEST_TERM_NAME, TEST_CATEGORICAL_DESCRIPTION)));\n\t\twhen(mockScale.getDataType()).thenReturn(DataType.CATEGORICAL_VARIABLE);\n\t\twhen(this.mockOntologyVariableDataManager.getVariable(programUuid, 999, false)).thenReturn(mockVariable);\n\n\t\tthis.observation.updataObsevationTraits(this.observationDto, programUuid);\n\n\t\tverify(this.mockSession, times(1)).save(isA(Phenotype.class));\n\n\t\tverify(this.mockSession, times(1)).save(\n\t\t\t\tnew Phenotype(new Integer(GENERATED_PHENOTYPE_ID), null, Integer.toString(TEST_TRAIT_ID), new Integer(TEST_TRAIT_ID), null,\n\t\t\t\t\t\tTEST_TERM_NAME, new Integer(1234), null, null, null));\n\t\t// add additional test code here\n\t}", "title": "" }, { "docid": "65a64c284ef4b719cc4de746309eebbc", "score": "0.56799614", "text": "@Override\n\tpublic CategoriaContenido agregarCategoriaDeContenido(CategoriaContenido categoriaContenido) {\n\t\t new CategoriaContenidoJpaController().create(categoriaContenido);\n\t\t return categoriaContenido;\n\t}", "title": "" }, { "docid": "7bc9f003f0356bd099f46a52e30dfdbc", "score": "0.5647102", "text": "public void store( Category category )\n {\n int nParam = 0;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_UPDATE );\n daoUtil.setString( ++nParam, category.getName( ) );\n daoUtil.setString( ++nParam, category.getDescription( ) );\n daoUtil.setBytes( ++nParam, category.getIconContent( ) );\n daoUtil.setString( ++nParam, category.getIconMimeType( ) );\n daoUtil.setString( ++nParam, category.getWorkgroup( ) );\n daoUtil.setInt( ++nParam, category.getId( ) );\n\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }", "title": "" }, { "docid": "ce8e1437cbbaa4ebb2883bc1ad6a884a", "score": "0.5645868", "text": "int insert(MallCatagory record);", "title": "" }, { "docid": "550990a9f73dac6147b0edcb58fa1541", "score": "0.5639851", "text": "public void addCase(List<String> lista, String categoria, String respuesta){\r\n\t\t\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement pst2 = null;\r\n\t\t\r\n\t\tlogger.info(lista);\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\r\n\t\t\tpst = con.prepareStatement(\"INSERT INTO casedescription \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"(keyWord1,keyWord2,keyWord3,keyWord4,keyWord5,keyWord6,keyWord7, categoria) \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?,?)\");\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<lista.size();i++)\r\n\t\t\t\tpst.setString(i+1, removeEspecialChar(lista.get(i)));\r\n\t\t\t\r\n\t\t\tfor(int i=lista.size(); i<7;i++)\r\n\t\t\t\tpst.setNull(i+1, java.sql.Types.VARCHAR);\r\n\t\t\t\r\n\t\t\tpst.setString(8, removeEspecialChar(categoria));\r\n\t\t\t\r\n\t\t\tpst.executeUpdate();\r\n\t\t\t\r\n\t\t\tpst2 = con.prepareStatement(\"INSERT INTO casesolution \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"(answer) \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES (?)\");\r\n\t\t\tpst2.setString(1, respuesta);\r\n\t\t\tpst2.executeUpdate();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.toString());\r\n\t\t} finally{\r\n\t\t\tdbu.close(pst);\r\n\t\t\tdbu.close(pst2);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2d0bdf2edca92d9e25c95a836193ad00", "score": "0.5618648", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n String categoryName = input.getText().toString();\n String url = getString(R.string.insert_category_url);\n FileCategory fileCategory = new FileCategory(subjectId, categoryName);\n insertCategory(getApplicationContext(), url, fileCategory);\n }", "title": "" }, { "docid": "27bb40660f858c813cf7bc8601f2885f", "score": "0.56105554", "text": "@POST\n public Response saveCategory(CategoryCommand categoryCommand) {\n Category modelCateg = categoryCommand.toCategory();\n Category categoryPersisted = categoryService.save(modelCateg);\n return Response.ok(new CategoryCommand(categoryPersisted)).build();\n }", "title": "" }, { "docid": "4ad553a5fe641d3ad83aa431d7087544", "score": "0.5609086", "text": "public void createCategory(String categoryName) {\n WebElement catalog = driver.findElement(By.xpath(\".//li[@id = 'subtab-AdminCatalog']/a\"));\n Actions builder = new Actions(driver);\n builder.moveToElement(catalog).build().perform();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//li[@id = 'subtab-AdminCategories']/a\")));\n WebElement category = driver.findElement(By.xpath(\".//li[@id = 'subtab-AdminCategories']/a\"));\n category.click();\n waitForContentLoad();\n WebElement addCategory = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n addCategory.click();\n waitForContentLoad();\n WebElement nameCategory = driver.findElement(By.id(\"name_1\"));\n JavascriptExecutor executor = (JavascriptExecutor)driver;\n executor.executeScript(\"$(window).on(\\\"scroll\\\", function() {\\n\" +\n \"\\tvar scrollHeight = $(document).height();\\n\" +\n \"\\tvar scrollPosition = $(window).height() + $(window).scrollTop();\\n});\");\n WebElement saveCategory = driver.findElement(By.id(\"category_form_submit_btn\"));\n nameCategory.sendKeys(categoryName);\n saveCategory.click();\n waitForContentLoad();\n }", "title": "" }, { "docid": "1012c42a62e782905468943701f486e0", "score": "0.5588525", "text": "@PostMapping(\"category/create\")\n\tpublic ResponseEntity<Category> addCategory(@RequestBody Category category) throws CategoryException {\n\n\t\tCategory newCategory = categoryService.createCategory(category);\n\n\t\treturn new ResponseEntity<>(newCategory, HttpStatus.OK);\n\n\t}", "title": "" }, { "docid": "ab83d7d0450fd4534caf29c147ed958b", "score": "0.5571376", "text": "public boolean addCategory( String catName, String catOmschrijving ) {\n boolean success = false;\n\n String sql = \"INSERT INTO `categorie` (`categorie_id`, `naam`, `omschrijving`, `datum_aangemaakt`, `datum_gewijzigd`, `parent_id`) VALUES (NULL, '\" + catName + \"', '\" + catOmschrijving + \"', 0, 0, 0);\";\n\n try {\n ResultSet result = dbmanager.insertQuery(sql);\n success = result.next();\n } catch (SQLException e) {\n System.out.println(\"connectivity.QueryManager.setOrder() Exception:\" + e.getMessage());\n }\n\n return success;\n }", "title": "" }, { "docid": "b2055f28270b827a38311f13de4a6bc0", "score": "0.55615664", "text": "public void addCategoria(String nome, String valor) {\n\t\tcategorias.add(new Categoria (nome,valor));\n\t}", "title": "" }, { "docid": "7209c21e1bb3a4c893a739c0e3f89dd5", "score": "0.5547886", "text": "public Chevet(){\n super();\n this.setCategory(categorie);\n }", "title": "" }, { "docid": "b3b146fcd05c37d31d8617b48d501e94", "score": "0.55463976", "text": "@Override\n\tpublic void addCategory(String categoryName) {\n\t\t\n\t}", "title": "" }, { "docid": "d62302d580492f99ea0351e10ab4607d", "score": "0.5540876", "text": "public Status insertCategory(String name) {\n\t\tList<Category> categoryList = categoryDao.getAll();\n\n\t\tfor (Category category : categoryList) {\n\t\t\tif (category.getName().equals(name)) {\n\t\t\t\treturn Status.DUPLICATE;\n\t\t\t}\n\t\t}\n\t\treturn ((CategoryDao) categoryDao).insert(name);\n\t}", "title": "" }, { "docid": "f53e768cab2e685dbbca41e3c87015f4", "score": "0.55179316", "text": "public Images insertSubCategory(Images obj){\n obj.setImage_id(null);\n obj.setCategory(null);\n obj.setItem(null);\n return imagesRepository.save(obj);\n }", "title": "" }, { "docid": "6467580155e0bd341938ca6ad289aa82", "score": "0.5460838", "text": "void addTrackerListCategory(TrackerListCategory trackerListCategory);", "title": "" }, { "docid": "3d42816c33d76e804723774a0b359125", "score": "0.544914", "text": "@Override\n public Long createCategory(CategoryEntity newCategory) {\n newCategory.setRentalRate(newCategory.getRentalRate());\n em.persist(newCategory);\n em.flush();\n return newCategory.getCategoryId();\n }", "title": "" }, { "docid": "2a5901e09d4cfc7f5629c5fb511958ab", "score": "0.54400676", "text": "@Override\n\tpublic Cat_contac add(Cat_contac p) {\n\t\treturn dao.save(p);\n\t}", "title": "" }, { "docid": "1d09265b2527d4f35cff889668158745", "score": "0.54302037", "text": "@RequestMapping(value = \"ajouterCategorie\", method = RequestMethod.POST)\r\n\tpublic String soumettreAjoutCategorie(Model modele,\r\n\t\t\t@Valid @ModelAttribute(\"categorieAjoutee\") Categorie categorie,\r\n\t\t\tBindingResult br, RedirectAttributes redirectAttributes) {\r\n\t\tif (br.hasErrors()) {\r\n\t\t\treturn \"ajoutCategorie\";\r\n\t\t}\r\n\t\tCategorie caOut = categorieService.addCategorie(categorie);\r\n\t\tif (caOut != null) {\r\n\t\t\t// TODO : updater la liste de catégorie pour si on veut un menu\r\n\t\t\t// déroulant ou un autre truc\r\n\t\t\tList<Produit> listeProduit = produitService.getAllProduits();\r\n\t\t\tmodele.addAttribute(\"listeProduits\", listeProduit);\r\n\t\t\treturn \"accueil\";\r\n\t\t} else {\r\n\t\t\tredirectAttributes.addFlashAttribute(\"message\",\r\n\t\t\t\t\t\"Problème lors de l'ajout de la catégorie.\");\r\n\t\t\treturn \"redirect:ajout\";\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e7f03f726aef50ea03c15c26efe2085c", "score": "0.541915", "text": "@Test\n\t(priority = 2)\n\tpublic void add_new_category_with_valid_value(){\n\t\tString nameCategorie=\"Categorie99888\";\n\t\tgoToCalendarPage();\n\t\tlog.info(\"Go to calendar page\");\n\t\t/* Step 1 & 2 : Add the category in the form */\n\t\taddCategorie(nameCategorie);\n\t\tlog.info(\"Add category : \"+nameCategorie);\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\n\t\t// check if the categories is displayed in the list on the right top.\n\t\tAssert.assertTrue(driver.findElement(By.xpath(ELEMENT_CALENDAR_DROPDOWM_LIST_CATEGORIE.replace(\"${name}\",nameCategorie))).isDisplayed(), \"test fail\");\n\t\t// check if the category is add in the event category form\n\t\tdriver.findElement(ELEMENT_CALENDAR_BUTTONPLUS).click();\n\t\tdriver.findElement(ELEMENT_CALENDAR_BUTTONPLUS_ADD_EVENT_CATEGORIES).click();\t\t\t\t\n\t\tAssert.assertTrue(driver.findElement(By.xpath(ELEMENT_FIND_CATEGORIE_EXISTANT.replace(\"${name}\",\"\"+nameCategorie))).isDisplayed(), \"test fail\");\n\t\tdriver.findElement(ELEMENT_CALENDAR_CLOSE_EVENT_CATEGORIE).click();\t\n\t\t// Clean the data\n\t\tdeleteCategorie(nameCategorie);\n\t\tlog.info(\"Delete category : \"+nameCategorie);\n\t}", "title": "" }, { "docid": "14c1eaa1d5730ffa119bd6794a202923", "score": "0.5415672", "text": "void setAddToCategory() {\n if (categoryIds != null)\n openCategoryAdd(categoryNames, categoryIds, categoryChecked);\n else\n loadCategories();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "b32dc3defd64903fd01f2ce179cde7b3", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tThread T=Thread.currentThread();\r\n\t\tT.setName(\"Main Boss\");\r\n\t\tnew MultipleThread();\r\n\t\tSystem.out.println(\"Main called by \"+Thread.currentThread().getName());\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\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": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\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": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\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": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "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": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\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": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\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": "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": "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": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
f44490e44c3cd74dd30bc869252227e0
please create the methods as instructed below then call each of those methods from here, within the main()
[ { "docid": "5a258893be1209d0a4ba31807b99de70", "score": "0.0", "text": "public static void main(String[] args) {\n System.out.println(multiply(3, 4));\n System.out.println(divide(420, 42));\n joke();\n System.out.println(yearsToSeconds(25));\n int[] arr = {4, 5, 6};\n System.out.println(varargs(arr));\n\n }", "title": "" } ]
[ { "docid": "8bedded97ace2ff3557ffde88f38cc4d", "score": "0.7046255", "text": "public static void main (String[] args) {\n //Basics\n //Basics();\n\n //For Loop\n //ForLoopMethod();\n\n //While Loop\n //WhileLoopMethod();\n\n //Calculator\n CalculatorMethod();\n \n //SWitch Method\n SwitchMethod();\n }", "title": "" }, { "docid": "56a886014f001682f5fd4a81d1cc0873", "score": "0.69591224", "text": "public static void main(String[] args) {\n AnimalFeederMachene animalFeederMachene1_2334 = new AnimalFeederMachene();\n\n //let me show you how they work\n animalFeederMachene1_2334.dispenseFood();\n //Disensing food for our animals\n animalFeederMachene1_2334.dispenseWater();\n //Disensing water for our animals\n animalFeederMachene1_2334.throwAwayOldFood();\n //Throwing away the old food that the animals did not eat\n\n\n\n FarmVendingMachene farmVendingMachene = new FarmVendingMachene();\n\n //we have started doing tours on the farm\n //people wanted to buy our wine and cheese\n //so we created this vending machene\n farmVendingMachene.takeOutTheGarbadge();\n //throwing away garbage of farm visitors\n farmVendingMachene.dispenseCheese();\n //Disensing cheese for our farm visitors\n farmVendingMachene.dispenseWine();\n //Disensing wine for our farm visitors\n\n //this worked great\n //but our farmer was getting confused with have all these difrent controlls\n //since he was an expert in the old machene we made an adaper for him\n FeedMachine farmVendingMacheneWithAdapter = new FarmVendingMacheneAdapter(farmVendingMachene);\n\n farmVendingMacheneWithAdapter.throwAwayOldFood();\n //Throwing away garbage of farm visitors\n farmVendingMacheneWithAdapter.dispenseWater();\n //Disensing wine for our farm visitors\n farmVendingMacheneWithAdapter.dispenseFood();\n //Disensing cheese for our farm visitors\n\n\n\n }", "title": "" }, { "docid": "f07becaef56e059effcc9a0888a36456", "score": "0.691532", "text": "public static void main(String[] args) { // creates an entry point method that expects no returns\n ObjectMasterHuman humi1 = new ObjectMasterHuman(); // creates 'humi1', a new instance of 'ObjectMasterHuman'\n ObjectMasterHuman humi2 = new ObjectMasterHuman(); // creates 'humi2', a new instance of 'ObjectMasterHuman'\n ObjectMasterWizard wiz1 = new ObjectMasterWizard(); // creates 'wiz1', a new instance of 'ObjectMasterWizard'\n ObjectMasterWizard wiz2 = new ObjectMasterWizard(); // creates 'wiz2', a new instance of 'ObjectMasterWizard'\n ObjectMasterNinja nin1 = new ObjectMasterNinja(); // creates 'nin1', a new instance of 'ObjectMasterNinja'\n ObjectMasterNinja nin2 = new ObjectMasterNinja(); // creates 'nin2', a new instance of 'ObjectMasterNinja'\n ObjectMasterSamurai sam1 = new ObjectMasterSamurai(); // creates 'sam1', a new instance of 'ObjectMasterSamurai'\n ObjectMasterSamurai sam2 = new ObjectMasterSamurai(); // creates 'sam2', a new instance of 'ObjectMasterSamurai'\n\n humi1.getStats(); // uses the 'getStats' method of 'humi1'\n wiz1.getStats(); // uses the 'getStats' method of 'wiz1'\n nin1.getStats(); // uses the 'getStats' method of 'nin1'\n sam1.getStats(); // uses the 'getStats' method of 'sam1'\n\n humi1.attack(humi2); // uses the 'attack' method of 'humi1' on 'humi2'\n wiz2.heal(humi2); // uses the 'heal' method of 'wiz2' on 'humi2'\n wiz1.fireball(wiz2); // uses the 'fireball' method of 'wiz1' on 'wiz2'\n nin1.steal(humi2); // uses the 'steal' method of 'nin1' on 'humi2'\n nin1.runAway(); // uses the 'runAway' method of nin1\n sam1.deathBlow(nin2); // uses the 'deathBlow' method of 'sam1' on 'nin2'\n sam1.meditate(); // uses the 'meditate' method of 'sam1'\n sam1.howMany(); // uses the 'howMany' method of 'sam1'\n System.out.println(\"The current number of samurai is: \" + ObjectMasterSamurai.counter); // another way of showing the total count of samurai\n }", "title": "" }, { "docid": "cb6fdb41b6caf07d3f0187e0f386d300", "score": "0.66963196", "text": "public void main() {\n //testDiscoveredLocation();\n //testCheckinData();\n //testFindClosestOverlappingLocation(42.411159, -88.007088, 75);\n //testConsolidate();\n //testMockLocationConsolidate();\n //testIncrementalConsolidate();\n //testWifiMatch();\n //testContentProviderUri();\n testConsolidateUri();\n }", "title": "" }, { "docid": "61925dc91716b028bab67486451baf46", "score": "0.6644305", "text": "public static void main(String[] args) {\n\r\n\t\tstate();\r\n\t\taddition(5,6);\r\n\t\tcountry();\r\n\t\tmassaddition(5,6,7,8);\r\n\t}", "title": "" }, { "docid": "3eb829a378f1b34df4cc88410f41ed44", "score": "0.6632107", "text": "public static void main(String[] args) throws IOException {\n\tr.fillStudentList();\n\tr.fillCourses();\n\tr.calculateGPA();\n\tr.createLastNames();\n\tr.displayStudents();\n mainMenu();\n\n System.out.println(\"Pull on 2.1.21\");\n\n\n r.fillStudentList();\n r.fillCourses();\n r.calculateGPA();\n r.createLastNames();\n mainMenu();\n\n }", "title": "" }, { "docid": "25a17df8b53bc7cb76a384612b41c239", "score": "0.6593284", "text": "public static void main(String args[]) \r\n\t{\n\t\t\r\n\t\tMethod1(); //Will search for Method1 and follow tasks set for it\r\n\t\tMethod2();\r\n\t\tMethod4();\r\n\t\tMethod3();\r\n\t\tMethod2();\r\n\t}", "title": "" }, { "docid": "352e74fe9be7236a67e8703f282c8a70", "score": "0.65732336", "text": "public static void main() {\n\n\t}", "title": "" }, { "docid": "eca93871a61c4ff1d12392e1c5796d0e", "score": "0.6564744", "text": "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\tname();\r\n\tage();\r\n\tfavorite();\r\n\taddition();\r\n\tmultiply();\r\n\tplace();\r\n\trows();\r\n\t}", "title": "" }, { "docid": "7d814e06eb38ac2a39d382af9f0ebc1d", "score": "0.6535099", "text": "public static void main(String[] args) {\n\t\tRectangle myRectangle;\n\t\tmyRectangle = new Rectangle(40, 50, 140, 120, \"Yellow\");\n\t\tmyRectangle.drawRectangle();\n\t\tmyRectangle.perimeter();\n\t\tmyRectangle.area();\n\t\tmyRectangle.move(20, 30);\n\t\tCircle myCircle;\n\t\tmyCircle = new Circle(200, 300, 200, \"black\");\n\t\tmyCircle.drawCircle();\n\t\tmyCircle.circumference();\n\t\tmyCircle.area();\n\t\tmyCircle.move(200, 200);\n\t\t// I ALSO call RockPaperScissors\n\t\tRockPaperScissors myRockPaperScissors;\n\t\tmyRockPaperScissors = new RockPaperScissors();\n\t\t// And call Blackjack\n\t\tBlackjack myBlackjack;\n\t\tmyBlackjack = new Blackjack();\n\t\t\n\t}", "title": "" }, { "docid": "20d6841dcad3b0057975db13f796d836", "score": "0.6508503", "text": "public static void main(String[] args) {\r\n\r\n//\t\t\t// now call these methods\r\n//\t\t\tonePrintArea(); \r\n//\t\t\tuserInputPi(); \r\n//\t\t\tradiusByte();\r\n//\t\t\tuserInputFormatSpecifiers(); \r\n\r\n\t\tfor (;;) {\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d35b697b91f21b9a2ba768c066bd275b", "score": "0.64766103", "text": "static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "title": "" }, { "docid": "6abc5e06452614fe422729e69c94c22a", "score": "0.64594185", "text": "static public void main(String name1[]){\n\n\n train.attend();\n //train.attend2();\n \n System.out.println();\n \n \n}", "title": "" }, { "docid": "749092e7ceabd7a6b4804bad29e77731", "score": "0.6437412", "text": "public static void main(String[] args) {\n EnfieldModels r=new EnfieldModels(); \r\nr.noOfWheels();\r\nr.price();\r\nr.models();\r\n\t}", "title": "" }, { "docid": "395f7c0972e6e30cd0362aeac9ed1884", "score": "0.64307535", "text": "public static void main(String[] args) {\r\n\t /// public is access modifire \r\n\t\t// void is return type\r\n\t\t//main or display is method name\r\n\t\t\r\n\t\tLearing_Methods L= new Learing_Methods();// we can creat n no of objects of the class\r\n\t\tL.show(1, 'h', \"mani\");\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5d8a0a346ab9dfa5c8cfb97635b441cf", "score": "0.6409351", "text": "public static void main(String [] args) {\n\t\tMyCal my = new MyCal();\n\t\tOne tom = new One(5,'A');\n\t\tTwo joe = new Two(\"Harry\");\n\t\tOne amy = new One(12,'B');\n\t\t\n\t\t// make the following methods so the method calls DISPLAY something\n\t\t// if there is a System.out below, then return the appropriate value\n\t\tmy.addNumbers(4,6);\n\t\ttom.divideNumbers(7,3);\n\t\tSystem.out.println(joe.reverseString(\"upside\"));\n\t\tamy.getCharacterAt(\"Banana Peal\",6);\n\t\tSystem.out.println(amy.divideNumbers(4.5,6.2));\n\t\tSystem.out.println(my.addNumbers(4,5,6,2));\t\n\t\tjoe.doubleNumber(13324353353);\n\t\tjoe.toThePower(4353353,2);=\n\t\ttom.concatStrings(\"Thank\",\"You\",'A',\"Lot\",'!');\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "94ad20b02253e35175bb84957a1f186e", "score": "0.64073884", "text": "public static void main(String[] args) {\n\t\tcheckTel();\r\n\t\tsplitDemo();\r\n\t\treplaceAllDemo();\r\n\t\tgetDemo();\r\n\t}", "title": "" }, { "docid": "86af73ac454beecae259c3211abe576e", "score": "0.6407248", "text": "public static void main(String args[]) {\n NewAndImprovedBeeperSweeperRobot karel = new NewAndImprovedBeeperSweeperRobot(2, 2, North, 0);\r\n karel.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel2 = new NewAndImprovedBeeperSweeperRobot(4, 7, North, 0);\r\n karel2.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel3 = new NewAndImprovedBeeperSweeperRobot(2, 13, North, 0);\r\n karel3.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel4 = new NewAndImprovedBeeperSweeperRobot(5, 7, East, 0);\r\n karel4.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel5 = new NewAndImprovedBeeperSweeperRobot(9, 15, North, 0);\r\n karel5.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel6 = new NewAndImprovedBeeperSweeperRobot(15, 20, East, 0);\r\n karel6.taskMainDriver2();\r\n NewAndImprovedBeeperSweeperRobot karel7 = new NewAndImprovedBeeperSweeperRobot(19, 2, North, 0);\r\n karel7.taskMainDriver2();\r\n }", "title": "" }, { "docid": "8ce87335592753a4df97bb717ac73a6d", "score": "0.6401719", "text": "public static void main(String[] args){\n\t\t\n\t\tCar c1 = new Car();\n\t\tVehicle v1 = new Car();\n\t\t\n\t\tv1.method2(); //car protected method\n\t\tv1.method3(); // car public method\n\t\tv1.method4(); // car default method*/\n\t\t\n\t\t\n\t\tc1.method2(); // car protected method\n\t\tc1.method3(); // cat public method\n\t\tc1.method4(); // car default method\n\t\tc1.method5(); // car methd 5 method*/\n\t\t\n\t\tSportsCar s1 = new SportsCar();\n\t\tCar c2 = new SportsCar();\n\t\tVehicle v2 = new SportsCar();\n\t\t\n\t\tc2.method3(); \n\t\tc2.method5(); \n\t\n\t\ts1.method6(); \n\t\ts1.method5(); \t\n\t}", "title": "" }, { "docid": "a9cf9f0a61dd454b30a68efc90579cc8", "score": "0.63921267", "text": "public static void main(String[] args) {\n\n Eagle eagle = new Eagle();\n eagle.live();\n eagle.fly();\n eagle.hunting();\n eagle.eat();\n eagle.sleep();\n eagle.say();\n eagle.hear();\n eagle.wingsPower();\n eagle.wingsRange();\n\n Crow crow = new Crow();\n crow.live();\n crow.fly();\n crow.nightVisibility();\n crow.eat();\n crow.sleep();\n crow.say();\n crow.hear();\n crow.wingsPower();\n crow.wingsRange();\n\n Swan swan = new Swan();\n swan.live();\n swan.fly();\n swan.ableToSwim();\n swan.eat();\n swan.sleep();\n swan.say();\n swan.hear();\n swan.wingsPower();\n swan.wingsRange();\n\n }", "title": "" }, { "docid": "618f71055bf77ca6cefcadb8c226e3de", "score": "0.6383238", "text": "public static void main(String[] args) {\n NumberCounter counter = new NumberCounter();\r\n // call function to add numbers\r\n // print results\r\n counter.getInput(); // calling the other methods from within this method\r\n\r\n }", "title": "" }, { "docid": "e99b59add5a14e455a98719e45b35465", "score": "0.63699114", "text": "public static void main(String[] args) {\n greeting();\n budget();\n time();\n landArea();\n }", "title": "" }, { "docid": "131b9d43c056b1e099746853fb9bfec4", "score": "0.63674766", "text": "public static void main(String[] args) {\r\n\t\tGibbonsB.HelloWorld();\r\n\t\tAkumaUkpoA.HelloWorld();\r\n\t\tMuleC.HelloWorld();\r\n\t\tStaffordP.Helloworld();\r\n\t\tMatimuM.HelloWorld();\r\n\t\tSalahuddinZ.HelloWorld();\r\n\t\tBroschJ.HelloWorld();\r\n\t\tFerrisR.HelloWorld();\r\n\t\tArceA.HelloWorld();\r\n\t\tArcillaM.HelloWorld();\r\n\t\tJohnsonZ.HelloWorld();\r\n\t\tSedighHaghighatF.HelloWorld();\r\n\t\tZhongW.HelloWorld();\r\n\t\tVasquezJ.HelloWorld();\r\n\t\tGarciaG.HelloWorld();\r\n\t\tKreidlerC.HelloWorld();\r\n\t\tCutsailC.HelloWorld();\r\n\t\tSteigerM.Helloworld();\r\n\t\tFrommA.HelloWorld();\r\n\t\tGulaM.HelloWorld();\r\n\t\tSidotiG.HelloWorld();\r\n\t\tCaballeroD.HelloWorld();\r\n\t\tFrickC.HelloWorld();\r\n\t\tAlshammariA.HelloWorld();\r\n\t\tCarlsonM.HelloWorld();\r\n\t\tOribioyeJ.HelloWorld();\r\n\t\tMaddenA.HelloWorld();\r\n\t\tClarkE.HelloWorld();\r\n\t\tKroneE.HelloWorld();\r\n\t\tMurrayR.HelloWorld();\r\n\t\tMcDanielsD.HelloWorld();\r\n\t\tDehnC.HelloWorld();\r\n\t\tDavisM.HelloWorld();\r\n\t\tAlsinaidiA.HelloWorld();\r\n\t\tNorthC.HelloWorld();\r\n\t\tMercadoJ.HelloWorld();\r\n\t\tDindiA.HelloWorld();\r\n\t\tFoxC.HelloWorld();\r\n\t\tMarkB.HelloWorld();\r\n\t\tEzzaherJ.HelloWorld();\r\n\t\tPompettiN.HelloWorld();\r\n\t}", "title": "" }, { "docid": "9129f9edadbecfe6dc3eb1a7154d1aa4", "score": "0.6356995", "text": "public static void main(String[] args) {\n user();\n information();\n }", "title": "" }, { "docid": "3388c4334dabc331ba4c096206bd4fe7", "score": "0.6347605", "text": "public static void main(String[] args) {\n initClassrooms();\n initSubjects();\n initTeachers();\n initGroups();\n initPeriods();\n initStudents();\n rosterGenerator();\n }", "title": "" }, { "docid": "7121b40451a726a127bea9de70e4e37d", "score": "0.63392174", "text": "public static void main (String args[]) {\n testOddFunction();\n /*\n + and += / ex 2\n */\n plusEgalThing();\n /*\n Letters and numbers / ex 3\n */\n WhatDoesThisPrint();\n /*\n Class name / ex 4\n */\n Me.tell();\n /*\n Auto-increment / ex 5\n */\n AutoIncrement();\n /*\n Barking\n */\n Dog woofer = new Dog();\n Dog nipper = new Basengi();\n woofer.bark();\n nipper.bark();\n \n }", "title": "" }, { "docid": "5005db76d31ac7cd9f9fd6742f6243f4", "score": "0.63388515", "text": "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"1st Random Number: \" + Math.random()); \n\t\tSystem.out.println(\"2nd Random Number: \" + Math.random()); \n\t\tSystem.out.println(\"3rd Random Number: \" + Math.random()); \n\t\tSystem.out.println(\"4th Random Number: \" + Math.random()); \n\t\t\n\t\tSystem.out.println(\"======================second method output=================\" );\n\t\trange();\n\t\tSystem.out.println(\"======================third method output===================\" );\n\t\ttet();\n\t\tSystem.out.println(\"==========================fourth method output=====================\" );\n\t\ttest();\n\t\tSystem.out.println(\"======================fifth method output========================\" );\n\t\ttests();\n\n\t}", "title": "" }, { "docid": "73dfd6191043310a77283621d2eef7b2", "score": "0.63184595", "text": "public static void main(String[] args)\n {\n\n\n displayMotto();\n displayAllTheDetails();\n\n\n }", "title": "" }, { "docid": "893a454d9a7dd5930ae830aa38bc2041", "score": "0.63154274", "text": "public static void main(String[] args) {\n\n\t\tselstrt();\n\t\tcodegetParse();\n\t\tGetAcessCode();\n\t\tGetcourseDetail();\n\n\t}", "title": "" }, { "docid": "553ca58dc4bd9136530bbfe80e31a2d9", "score": "0.63098633", "text": "public static void main(String[] args) {\n\t\tHuman h = new Human();\n\t\tHuman hu = new Human();\n\t\tWizard w1 = new Wizard();\n\t\tNinja n1 = new Ninja();\n\t\tSamurai s1 = new Samurai();\n\t\tSamurai s2 = new Samurai();\n\t\t\n\t\th.attack(hu);\n\t\thu.displayInfo();\n\t\t\n\t\tn1.steal(w1);\n\t\tw1.displayInfo();\n\t\tw1.fireball(n1);\n\t\tn1.displayInfo();\n\t\ts1.deathBlow(n1);\n\t\tn1.displayInfo();\n\t\ts1.displayInfo();\n\t\tw1.heal(s2);\n\t\ts2.displayInfo();\n\t\ts1.howMany();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "79c1dd54ad7527221d59ecfa84dbadcd", "score": "0.6305293", "text": "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\tcountry();\r\n\t\tstate();\r\n\t\tage();\r\n\t\taddition(5,9,t);\r\n\t\tSocialSecurity();\r\n\t\t//massaddition(66,87,67,6);\r\n\t\tSystem.out.println(t);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0d2a5c53ece9431a3ff4ffc68e325a0d", "score": "0.62805283", "text": "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"enter values of functions\");\n\t\tScanner s=new Scanner(System.in);\n\t\tint x1= s.nextInt();\n\t\tint x2= s.nextInt();\n\t\tint x3= s.nextInt();\n\t\tint x4= s.nextInt();\n\t\tint x5 = s.nextInt();\n\t\tint x6 = s.nextInt();\n\t\tSystem.out.println(\"values of function x1 \" +x1);\n\t\tSystem.out.println(\"x2= \" +x2);\n\t\tSystem.out.println(\" x3= \" +x3);\n\t\tSystem.out.println(\"x4=\" +x4);\n\t\tSystem.out.println(\"x5=\" +x5);\n\t\tMethodCalling m=new MethodCalling();\n\t\tint sumresult=m.sum(x1, x2);\n\t\tSystem.out.println(sumresult);\n\t\tint subtractresult=m.subtract(sumresult, x3);\n\t\tSystem.out.println(subtractresult);\n\t int mulresult=\tm.mul(subtractresult, x4);\n\t System.out.println(mulresult);\n\t int addtwo=m.sum(mulresult, x5);\n\t System.out.println(addtwo);\n\t m.divide(addtwo, x6);\n\t \n\t \n\t \n\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d13a223a9ea626dee5f5a44cbf9eceb4", "score": "0.62746173", "text": "public static void main(String[] args) {\n //System.out.println(recFatorial(2));\n System.out.println(somaAte(3));\n System.out.println(fatorial(5));\n System.out.println(potencia(3,2)); \n \n \n }", "title": "" }, { "docid": "041ebf1690524cc42ae6dcdc70f5143a", "score": "0.626749", "text": "public static void main(String[] args) {\n\t\tint[] intReturnArray = getNumbers();\r\n\t\tif( returnChoices() == \"Divide\"){\r\n\t\t\tdivideNumbers(intReturnArray[0], intReturnArray[1]);\r\n\t\t}else if( returnChoices() == \"Multiply\"){\r\n\t\t\tmultiplyNumbers(intReturnArray[0], intReturnArray[1]);\r\n\t\t}else if( returnChoices() == \"Addition\"){\r\n\t\t\taddNumbers(intReturnArray[0], intReturnArray[1]);\r\n\t\t}else if( returnChoices() == \"Subtraction\"){\r\n\t\t\tsubtractNumbers(intReturnArray[0], intReturnArray[1]);\r\n\t\t}else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "312f2d44660910201c94ef285f74fce3", "score": "0.62599516", "text": "public static void main(String[] args) {\n\n\t\tMoreMethodsExample MoreMethodsExample=new MoreMethodsExample();\n\t\tSystem.out.println(MoreMethodsExample.print());\n\t\tSystem.out.println(MoreMethodsExample.doubleTheValue(10));\n\t\tMoreMethodsExample.isRaining(true);\n\t\t\n\t\t\n\t\tMoreMethodsExample.batch();\n\t\tSystem.out.println(MoreMethodsExample.greater(10, 12));\n\t\tMoreMethodsExample.oddOrEven(7);\n\t\t\n\t\tdouble [] arr={10.2 ,2, 25};\n\t\tSystem.out.println(MoreMethodsExample.theArraySum(arr));\n\t\n\t\tSystem.out.println(\"aba\");\n\t\tSystem.out.println(\"abcdef\");\n\t\n\t}", "title": "" }, { "docid": "781c53bcaca30039278eed15e02d5ca9", "score": "0.62521195", "text": "public static void main(String[] args) {\n \n\t\t\n\t\t\t\n\t\n\n}", "title": "" }, { "docid": "e45244436130ed5e7bf0bbe0b8ba06bb", "score": "0.62510276", "text": "public static void main(String[] args) {\n\t\tArrayNumbers s=new ArrayNumbers();\r\n\t\ts.getInput();\r\n\t\ts.findBusinessLogic();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "acbf5624115cc72feb4f9849ec30b0b1", "score": "0.62473524", "text": "public static void main(String[] args) {\n try {\n// testMethod1(system);\n// testMethod1_0(system);\n// testMethod1_1(system);\n } catch (Exception e) {\n e.printStackTrace();\n }\n// testMethod2(system);\n// testMethod3(system);\n testMethod4();\n }", "title": "" }, { "docid": "703c4039c5c75196acd793a2e1a410da", "score": "0.6247242", "text": "public static void main(String[] args) {\n\t\tFord f1 = new Ford();\n\t\t\n\t\tf1.flightMode();\n\n\t\tf1.manualAudioDashboard();\n\t\t\n\t\tf1.manualFMAddon();\n\t\t\n\t\t//f1.helperMethod();\n\t\t\n\t\t//BoseAudioPlayer.helperMethod();\n\t}", "title": "" }, { "docid": "06f09b9ab4382182eb6015d507096254", "score": "0.62463313", "text": "public static void main(String[] args){//plublic = accessibility, .i.e can be where it can be viewed, static = method employed main instance\n\t//have to be created each time i want to use the method, void = it will return nothing, alternatives are string,int etc if void is present\n\t//return statement is not needed, main == parameters\n\t//System.out.println(\"Hello World\\nI'm at Stewart's house\");//every statement needs to end in a semicolon, always use double quotation\n\n\t\tTurtle mrJackson = new Turtle(27,6,true,\"fish\"); //creates a new instance on an object\n\t\tTurtle eel = new Turtle();\n\t\tTurtle jack = new Turtle(12,100,\"cheese\");\n\t\tSystem.out.println(jack.toString());\n\t\tSystem.out.println(mrJackson.food);\n}", "title": "" }, { "docid": "cbf1ff923dbca7abdaba4783a2856df9", "score": "0.6237443", "text": "public static void main(String[] args) {\n\t\tSquare sq=new Square(5, 3);\n\t\tCircle c =new Circle(4);\n\t\tgetAnyShape(sq);\n\t\tgetAnyShape(c);\n\t\tShape circle =returnAnyShape(0);\n\t\tShape square =returnAnyShape(2);\n\t\tcircle.getArea();\n\t\tcircle.getLength();\n\t\tgetSpecial(new Circle(6));\n\t\t\n\t}", "title": "" }, { "docid": "0bde49478c4376a38fc0710b360e0810", "score": "0.6230355", "text": "public static void main(String[] args) {\n\t\tview();\r\n\t\tstar();\r\n\t\tview();\r\n\t\tstar();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9bac7524701f4eb41eee861a53390d27", "score": "0.6219088", "text": "public static void main(String[] args) {\n\n\t\texams school=new exams();\n\t\tschool.setPhy(50);\n\t\tschool.setChe(60);\n\t\tschool.showResults();\n\t\t\n\t\texams college = new exams(100,60);\n\t\tcollege.setPhy(59);\n\t\tcollege.setChe(59);\n\t\tcollege.showResults();\n\t\t\n\t\texams university = new exams (150,70);\n\t\tuniversity.setPhy(100);\n\t\tuniversity.setChe(100);\n\t\tuniversity.showResults();\n\t\t\n\t\tConstructorOverloading x=new ConstructorOverloading();\n\t}", "title": "" }, { "docid": "cf32bc6fb450ae78d53168f07a4df92d", "score": "0.6218793", "text": "static void SampleItinerary() {\n\n\t}", "title": "" }, { "docid": "acf8db0500782fe293d41a55d73044f5", "score": "0.6217972", "text": "public static void main(String[] args) {\n\t\t/*\n\t\tint num1 = 10;\n\t\tint num2 = 20;\n\t\tint num3 = num1 + num2;\n\t\tSystem.out.println(num1+\" and \"+num2+\" adds up to \"+num3);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t// we have another requirement to add some other numbers\n\t\tnum1 = 11;\n\t\tnum2 = 33;\n\t\tnum3 = num1 + num2;\n\t\tSystem.out.println(num1+\" and \"+num2+\" adds up to \"+num3);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t// we have another requirement to add some other numbers but now we have 3 numbers\n\t\tnum1 = 11;\n\t\tnum2 = 22;\n\t\tnum3 = 33;\n\t\tint num4 = num1 + num2 + num3;\n\t\tSystem.out.println(num1+\" and \"+num2+\" and \"+num3+\" adds up to \"+num4);\n\t\t*/\n\t\t// Challenge : We have to write same statements again and again\n\t\t// Solution : Create a Function/Method instead and execute it again and again\n\t\t\n\t\t// Lets create Object of Class Functions\n\t\tFunctions fRef = new Functions(); // Object Construction Statement | A detailed discussion is pending in future\n\n\t\t// Execution of Non Static Methods:\n\t\tfRef.add2Numbers(10, 20);\n\t\tfRef.add2Numbers(11, 33);\n\t\tfRef.add3Numbers(11, 22, 33);\n\t\t// To execute non static methods we need objects\n\t\n\t\t// Execution of static Methods:\n\t\tFunctions.add2NumbersAgain(12, 13);\n\t\t// To execute static methods we need Class Name\n\t\t\n\t\tdouble result = fRef.areaOfCircle(2.2);\n\t\tSystem.out.println(\"Area of Circle with radius 2.2 is: \"+result);\n\t\tSystem.out.println(\"Area of Circle with radius 2.2 is: \"+fRef.areaOfCircle(2.2));\n\t\t\n\t\t// We are post processing the result given by Method\n\t\tif(result > 2){\n\t\t\tSystem.out.println(\"We shall find the diameter\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Lets switch to other problem\");\n\t\t}\n\t}", "title": "" }, { "docid": "e987062c2677ed72ada9fd67a28d87eb", "score": "0.6217901", "text": "public static void main(String[] args) {\n\t\tController controller=new Controller();\n\t\t//CREATE RUBRIC\n\t\tString name=\"Construction\";\n\t\tRubric rubric=controller.createRubric(name);\n\t\t//CREATE CRITERION\n\t\tString designCriterion=\"Design\";\n\t\tString testingCriterion=\"Testing\";\n\t\t//ADD CRITERION TO RUBRIC\n\t\tcontroller.addCriterionToRubric(rubric, designCriterion);\n\t\tcontroller.addCriterionToRubric(rubric, testingCriterion);\n\t\t//test\n\t\tSystem.out.println(\"rubric: \"+rubric.getName());\n\t\tfor(String criterion:rubric.getCriteria()) {\n\t\t\tSystem.out.println(\"Criterion \"+criterion);\n\t\t}\n\t\t//GET LIST OF RUBRICS\n\t\tcontroller.getAllRubrics();\n\t\t//test\n\t\tfor(Rubric rubric1:controller.getAllRubrics()) {\n\t\t\tSystem.out.println(rubric1.getName());\n\t\t}\n\t\t//GET RUBRIC BY NAME\n\t\tRubric rubric2=controller.getRubricByName(name);\n\t\tSystem.out.println(rubric2.getName());\n\t\t//CREATE NEW STUDENT GRADE\n\t\tString student=\"Adam\";\n\t\tint score=3;\n\t\tStudentGrade grade=controller.createStudentGrade(rubric,student,score);\n\t\t//ADD SCORE FOR PARTICULAR CRITERION TO A GRADE\n\t\tcontroller.addMark(grade, designCriterion, 4); \n\t\tfor (String i : grade.getMarks().keySet()) {\n\t\t\t System.out.println(\"key: \" + i + \" value: \" + grade.getMarks().get(i));\n\t\t\t}\n\t\t//GET ALL GRADES ASSOCIATED WITH A SPECIFIC RUBRIC\n\t\tList<StudentGrade> grades=controller.getAllGradesInRubric(rubric);\n\t\t//SUMMARY CALCULATIONS\n\t\tSystem.out.println(\"Average: \"+ controller.getAverageForRubric(rubric));\n\t\tSystem.out.println(\"max: \"+ controller.getMaxForRubric(rubric));\n\t\tSystem.out.println(\"min: \"+ controller.getMinForRubric(rubric));\n\t\tSystem.out.println(\"stdv: \"+ controller.getStandardDeviationForRubric(rubric));\n\t\tSystem.out.println(\"Average: \"+ controller.getAverageForCriterion(rubric,designCriterion));\n\t\tSystem.out.println(\"max: \"+ controller.getMaxForCriterion(rubric,designCriterion));\n\t\tSystem.out.println(\"min: \"+ controller.getMinForCriterion(rubric,designCriterion));\n\t\tSystem.out.println(\"stdv: \"+ controller.getStandardDeviationForCriterion(rubric,designCriterion));\n\t}", "title": "" }, { "docid": "b390b1b41f64b83c0bf7dc6921c8a066", "score": "0.6217118", "text": "public static void main(String[]arg) {\n\t\tdouble hours = 25;\r\n\t\tdouble yourHoursWorked = 37.5;\r\n\t\tfinal double STD_RATE = 13.75;\r\n\t\tSystem.out.println(\"Adding Parameters to Methods\");\r\n\t\tSystem.out.println(\"==========\");\r\n\t\tcalculateGross(12,10);//loop 1\r\n\t\tcalculateGross(hours,STD_RATE);//loop 2\r\n\t\tcalculateGross(yourHoursWorked,15);//loop3\r\n\t\tcalulateNetPay(12,10);\r\n\t}", "title": "" }, { "docid": "d97da3c0c2f4683318765f916fb9b874", "score": "0.6202398", "text": "public static void main(String[] args) {\n\t\tSquare square = new Square();\r\n\t\tsquare.setSide(2);\r\n\t\tRectangle rectangle = new Rectangle();\r\n\t\trectangle.setBreadth(3);\r\n\t\trectangle.setLength(4);\r\n\t\tsquare.calcArea();\r\n\t\tsquare.calcPeri();\r\n\t\trectangle.calcArea();\r\n\t\trectangle.calcPeri();\r\n\r\n\t}", "title": "" }, { "docid": "575cc692a53491d0de8bee2d70c5f7ca", "score": "0.61957294", "text": "public static void main(String[] args)\r\n {\r\n \tgetInput();\r\n \t\r\n \tsetOutput();\r\n \t\r\n }", "title": "" }, { "docid": "2ce0fc76fee84c3726d591d2aaf21712", "score": "0.6193863", "text": "public static void main(String[] args) {\n\t\tstars1 (); //displays first method\n\t\tstars2 (); //displays second method\n\t\tstars3 (); //displays third method\n\t}", "title": "" }, { "docid": "632a7ab7fd55fa838423bfd961858d03", "score": "0.61913806", "text": "public static void main(String[] args){\n CreateProcesses();\n FCFS fcfs = new FCFS(processes);\n fcfs.Run();\n\n //Shortest Job First\n CreateProcesses();\n SJF sjf = new SJF(processes);\n sjf.Run();\n\n //Multi-Level Feedback Queues\n CreateProcesses();\n MLFQ mlfq = new MLFQ(processes);\n mlfq.Run();\n\n //Final results display\n System.out.println(\"\\n==========================================\\n\");\n System.out.println(\"Final Results\\n\");\n System.out.println(\"Results for FCFS\");\n fcfs.PrintResults();\n System.out.println(\"Results for SJF\");\n sjf.PrintResults();\n System.out.println(\"Results for MLFQ\");\n mlfq.PrintResults();\n }", "title": "" }, { "docid": "922a1737d9d5e4cd3bf44b6a3fff5585", "score": "0.61891246", "text": "public static void main(String args[]) {\n\n\t\t/*\n\t\t * // parsing of user.data file\n\t\t * \n\t\t * Parsing parserUserObj = new Parsing(); Map<Integer, User> userData =\n\t\t * parserUserObj.getUserData(); System.out.println(userData);\n\t\t * \n\t\t * // parsing of movie.data file\n\t\t * \n\t\t * \n\t\t * Parsing parserMovieObj = new Parsing(); Map<Integer, Movie> movieData\n\t\t * = parserMovieObj.getMovieData(); System.out.println(movieData);\n\t\t * \n\t\t * //parsing of rating.data file\n\t\t * \n\t\t * Parsing parserRatingObj = new Parsing(); List<Rating> userRating =\n\t\t * parserRatingObj.getRating(); System.out.println(\"userRating \" +\n\t\t * userRating);\n\t\t */\n\t\t\n\t\t\n\t\t/**\n\t\t * top movie by genre\n\t\t */\n\t\tMovie movieObj = new Movie();\n\n\t\tList<Integer> movieIdList = movieObj.getMovieIdList();\n\t\t//System.out.println(\"movieIdList \" + movieIdList);\n\n\t\tRating ratingObj = new Rating();\n\n\t\tString topMovieByGenre = ratingObj.getTopMovieByGenre(movieIdList);\n\t\tSystem.out.println(\"top movie by genre \" + topMovieByGenre);\n\n\t\t\n\t}", "title": "" }, { "docid": "c0b3e89ecea8643e52b2aa5e92420dbf", "score": "0.61889595", "text": "public static void main(String[] args) {\n\t\t\n\t\tAutoLoans obj = new AutoLoans();\n\t\t\n\t\t//Test Case: \n\t\t// MSEdge browser\n\t\t\n\t\t// Over riding : if methods with same name are present in child class and parent class\n\t\t//Then only method of current class will be called\n\t\tobj.browser(); // which class method will be called when both class have same method names\n\t\t\n\t\t//1. Loginto Banking application\n\t\tobj.login();\n\t\t//2. Create an New Customer account\n\t\tobj.AccountCreation();\n\t\t//3. Apply for Auto loan for new cusotmer created\n\t\tobj.applyAutoLoan();\n\t\t//4.Logout of application\n\t\tobj.logout();\n\t\tchromebrowser();\n\t\t//5. Loginto the application\n\t\tobj.login();\n\t\t//6. Search for an exisitng customer\n\t\tobj.CustomerDetails();\n\t\t//7. Generate loan payment details\n\t\tobj.LoanPayments();\n\t\t// 8. logout of the application.\n\t\tobj.login();\n\n\t}", "title": "" }, { "docid": "3577147b643a471505795cecaa44439b", "score": "0.61844194", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"The Great Hero Eira is on a journey now.\");\n\t\tArmor eirasarmor = new Armor(1, 250, 12.50, true, 275);\n\t\tBow eirasbow = new Bow(1, 1, 3.75, 190, 120);\n\t\tSword esword = new Sword(1, 234, 13, 175);\n\t\tSystem.out.println(\"Eira took his/her bow and suited up his/her armor.\");\n\t\tSystem.out.println(\"While she/he was in the journey. She/he saw a flying sword and it was evil.\");\n\t\teirasarmor.getHit(esword);\n\t\tSystem.out.println(\"The evil sword has had \" + esword.getDmgAmount() + \" damage.\");\n\t\tSystem.out.println(\"His/her defence left:\" + eirasarmor.getDefPoints());\n\t\teirasbow.useItem();\n\t\tSystem.out.println(\"The evil sword died with -15 defence points.\");\n\t\tSystem.out.println(\"She/he has \" + eirasbow.getItemQuantity() + \" items\");\n\t\tSystem.out.println(\"She/he went to a strong blacksmith.\");\n\t\teirasarmor.upgrade();\n\t\tSystem.out.println(\"Bought some arrows \");\n\t\teirasbow.upgrade();\n\t\tSystem.out.println(\"upgraded his/her armor.\");\n\t\tSystem.out.println(eirasbow.getNumberOfArrows() + \" arrows, \" + eirasarmor.getDefPoints() + \" defence points\");\n\n\t}", "title": "" }, { "docid": "40f2cebb2faa0b48f655979d5b06a89f", "score": "0.618346", "text": "public static void main(String args[]) {\n\t\tCalculator calculator = new Calculator(75, 34);\n\t\tcalculator.add();\n\t\tcalculator.substract();\t\t\n\t\tcalculator.multiply();\t\n\t\tcalculator.divide();\t\t\t\n\t}", "title": "" }, { "docid": "f1b16805b7cc4d7e41550154109220d9", "score": "0.6181047", "text": "public mainalgo()\n {\n \n }", "title": "" }, { "docid": "4019eb3b5457915ea4063dfe1c83c545", "score": "0.61763483", "text": "public static void main(String[] args) {\n\t\tmethod05();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "dde4c970571dd174d3cc8076043ccc48", "score": "0.617401", "text": "public static void main(String[] args) {\n ReviewProcessor businessData =\n new ReviewProcessor(\"yelp_training_set/yelp_training_set_business.json\", true);\n ReviewProcessor userData =\n new ReviewProcessor(\"yelp_training_set/yelp_training_set_user.json\", true);\n ReviewProcessor reviewData =\n new ReviewProcessor(\"yelp_training_set/yelp_training_set_review.json\", true);\n\n //Read and print the User, Business, and Review Objects\n readUserData(userData);\n readBusinessData(businessData);\n readReviewData(reviewData);\n\n //PRINT STATEMENTS FOR DEBUGGING; Unomment if you want to see output.\n \n //printReviews();\n //printUsefulVoteCountDist();\n\n //BREAK THE TEXT UP TO BE TAGGED BY STANFORD CORE NLP\n //NOTE: In GitHub repo, the data sets are not included because they are too large\n //If you want to run this with the Yelp data set you must download it, put in the project\n //directory, and uncomment the following line.\n //batchFileCreation();\n\n \n }", "title": "" }, { "docid": "6795e18f9a76b8bafd11ea6c48c26f06", "score": "0.61691386", "text": "public static void main(String[] args) {\n Chef normalChef = new Chef();\n ItalianChef italianChef = new ItalianChef();\n ChineseChef chineseChef = new ChineseChef();\n \n italianChef.makesSpecialDish();\n chineseChef.makesSpecialDish();\n normalChef.makesSpecialDish();\n \n \n \n\n }", "title": "" }, { "docid": "fd7b14dac1b584d37152cb9ba7d05894", "score": "0.61638397", "text": "public static void main(String[] args){\n\n Human human1 = pattern.factory.five.HumanFactory.createHuman(\"yellow\");\n human1.getColor();\n human1.talk();\n Human human2 = pattern.factory.five.HumanFactory.createHuman(\"yellow\");\n human2.getColor();\n human2.talk();\n Human human3 = pattern.factory.five.HumanFactory.createHuman(\"yellow\");\n human3.getColor();\n human3.talk();\n }", "title": "" }, { "docid": "76ceb723d8151411ae51bcd9b6a7684e", "score": "0.61607766", "text": "public static void main(String[] args) {\n testCompareTo();\n testSlopeTo();\n testSlopeOrder();\n /* YOUR CODE HERE */\n }", "title": "" }, { "docid": "95cddddaeb929484dec45106db6b79e1", "score": "0.61596406", "text": "public static void main(String[] args) {\n Titlecase(\"HapPy saINt paTrickS dAy\");\n\n /**\n * Write a method that will tell grade to student for given score and MaxScore\n */\n gradeCal(900.05);\n\n\n /**\n * Write a method that will reverse any given int-array\n */\n int[] mrArray = {11, 44, 22, 66, 44, 76};\n intReverse(mrArray);\n /**\n * Write a method that return the number of words in given sentence.\n */\n wordsInSentenceCount(\" Will this method be able to count words correctly \");\n\n\n }", "title": "" }, { "docid": "e85416331d63d4b1ed05c6d861fde41c", "score": "0.6155929", "text": "public static void main(String[] args){\n\t\tarrayRip();\n\t\tSystem.out.println(\"\\n\\nEsercizio 1\\n\");\n\t\tesercizio1();\n\t\tSystem.out.println(\"\\n\\nEsercizio 2\\n\");\n\t\tesercizio2();\n\t\tSystem.out.println(\"\\n\\nEsercizio 3\\n\");\n\t\tesercizio3();\t\n\t\tSystem.out.println(\"\\nEsercizio 4\\n\");\n\t\tesercizio4();\n\t\tSystem.out.println(\"\\nEsercizio 5\\n\");\n\t\tesercizio5();\n\t\tSystem.out.println(\"\\n\\nSimmetria\\n\");\n\t\tsimmetria();\n\t\tSystem.out.println(\"\\n\\nNumeri ordinati\\n\");\n\t\tsorting();\n\t}", "title": "" }, { "docid": "a5f6eb38c2b4a40a95fe6c270afd8f1b", "score": "0.61557275", "text": "public static void main(String[] args) {\n\t\tMathematics m = new Mathematics();\r\n\t\tSystem.out.println(\"Adding three numbers \"+m.addThreeNumbers(22.5, 26.5, 35.9));\r\n\t\tSystem.out.println(\"Adding three numbers \"+m.subTwoNumbers(1136677, 1135365));\r\n\t\tSystem.out.println(\"Adding three numbers \"+m.muntiplyThreeNumbers(113, 11, 22));\r\n\t\tSystem.out.println(\"Adding three numbers \"+m.divideTwoNumbers(25.5, 2.5));\r\n\r\n\t}", "title": "" }, { "docid": "a9d7ab696b2fd9e6723e92ec2cdff4a8", "score": "0.6152816", "text": "private void experiment() {\n }", "title": "" }, { "docid": "17d1a56b5cd992768c1c387e6cec1eba", "score": "0.6151134", "text": "public static void main(String[] args) {\n\r\n\r\n\tname();\r\n\tage ();\r\n\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "6bcd6cd3ad16f508ad20aeb7589f68da", "score": "0.61386484", "text": "public static void main(String[]args)\n\t{\n\t\tlowAndHighReturnMethod addedMethods = new lowAndHighReturnMethod();\n\t\t\n\t\t//Call the object's lower method, passing 100 as an argument.\n\t\taddedMethods.lower(100);\n\t\t\n\t\t//Call the objects higher method, passing 1 as an argument. \n\t\taddedMethods.higher(1);\n\t\t\n\t\t//Display the object's getLower and getHigher methods and getCurrentGuess method\n\t\tSystem.out.println(\"The high value is \" + addedMethods.getLower());\n\t\tSystem.out.println(\"The low value is \" + addedMethods.getHigher());\n\t\tSystem.out.println(\"The mid value is \" + addedMethods.getCurrentGuess());\n\t\t}", "title": "" }, { "docid": "bbcf01ad617f1544c63fc7b73180beb4", "score": "0.61385393", "text": "public static void main(String[] args) {\n\r\n\t\tMotionlessHuman motionlessHuman = new MotionlessHuman();\r\n\t\t\r\n\t\tWalkHuman walkHuman = new WalkHuman(); // 1\r\n\t\t\r\n\t\tRunHuman runHuman = new RunHuman(); // 2\r\n\t\t\r\n\t\tHuman human = new Human(); // 3\r\n\t\t\r\n\t\tPlane plane = new Plane(); // 4\r\n\t\t\r\n//\t\tFlyHuman flyHuman = new FlyHuman(); // 5\r\n\t\t\r\n\t\t// 각 객체가 접근가능한 멤버를 작성하시오\r\n\t\t// 자바 용어를 사용하시오\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e9e49c10e1892c0ce2cdd62478cf55ad", "score": "0.6138451", "text": "public static void main(String[] args) {\n dataTypes(); // Shows you all datatypes and how to write them\n math(); // Shows all basic math actions and their uses\n checks(); // Shows all checks and switches and their uses\n while_for(); // Shows all loops and uses\n exceptions(); // Shows a way to detect error messages\n output(); // Shows all forms of input and output\n\n // Carrying values into a fuction\n int x = 0;\n String value = \"The value of x is: \";\n System.out.println(example(x, value));\n }", "title": "" }, { "docid": "9ef0dc5bd3c866dd26714955bfca4de4", "score": "0.6138433", "text": "public static void main(String[] args) {\n Student first = new Student(2020,\"Analytics\",3.9); //call first method contstructor with in string and int\r\n Student second = new Student(2020, \"Analytics\"); // calling second constructor with int and string \r\n Student third = new Student(2020);// calling third method constructor with one int input\r\n ;\r\n\r\n first.display(); // allows you to display the output called in the main class \r\n second.display();\r\n third.display();\r\n ;\r\n }", "title": "" }, { "docid": "3ebb1fb5538b8cf38011e5584f71b81c", "score": "0.6134721", "text": "public static void main(String[] args) {\n\t\tBanking_class bc = new Banking_class();\n\t\tbc.balancecheck();\n\t\tbc.doposit();\n\t\tbc.ministatement();\n\t\tbc.transfer();\n\t\tbc.credit();\n\t\tTransferclass tfs = new Transferclass();\n\t\ttfs.balancecheck();\n\t\ttfs.doposit();\n\t\ttfs.ministatement();\n\t\ttfs.transfer();\n\t\t\n\t}", "title": "" }, { "docid": "5e878606a68c836e445a63320de8bdac", "score": "0.61327904", "text": "public static void main(String[] args) {\n\t\t\t \n\t\t\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0e2b47089a06043868ae00f53dbb71b9", "score": "0.61326206", "text": "public static void main(String[] args) {\n\t\tIIPLMatch m = FactoryIplMatch.calledFactory(\"Bowler\");\r\n\t\t\tm.country();\r\n\t\t\tm.batName();\r\n\t\t\tm.balName();\r\n\t\t\tm.runs();\r\n\t\t\tm.wickets();\r\n\t\t\tm.bestScores();\r\n\t\t\tm.bestWickets();\r\n\t\t\tm.strikeAvg();\r\n\t\t\tm.bowlingAvg();\r\n\t\t\tm.batRecords();\r\n\t\t\tm.balRecords();\r\n\t\t\tm.batRanking();\r\n\t\t\tm.balRanking();\r\n\t}", "title": "" }, { "docid": "f995995c7ebe58f53325079253110d1b", "score": "0.6129253", "text": "public static void main(String[] args) {\n\t\tBike b1=new Bike (\"Red\",\"Kawaasaki\",25.0);\r\n\t\tBike b2=new Bike (\"Red\",\"ZMR\",25.0);\r\n\t\tTwoWheeler t1=new TwoWheeler(\"Green\",\"HD\");\r\n\t\tVehicl v1=new Vehicl(\"Orange\");\r\n\t\tdisplay(b1);\r\n\t\tdisplay(t1);\r\n\t\tdisplay(v1);\r\n\t\tdisplay(b2);\r\n\t}", "title": "" }, { "docid": "0c3a32d1bb0c0284ea068c22ad62c508", "score": "0.6120643", "text": "public static void main(String[] args) {\n\n Fighter marc = new Fighter(\"Marc\" , 15 , 100, 90, 5);\n Fighter alex = new Fighter(\"Alex\" , 25 , 100, 100, 20);\n Ring r = new Ring(marc,alex , 90 , 100);\n r.run();\n }", "title": "" }, { "docid": "6156660a8b77b00cd2d0f80aa660c9e5", "score": "0.6120195", "text": "public static void main(String[] args) throws IOException {\n\t\tdemo1();\n\t\tprint(1);\n\t\t\n\t\tdemo2();\n\t\tprint(2);\n\t}", "title": "" }, { "docid": "92b3c173a9ad5d54b309071728e1bcc1", "score": "0.61173296", "text": "public static void main(String[] args) {\n\t\tUniversity BVB=new University(\"E30\");\r\n\t\tUniversity kletech=new University(\"E241\");\r\n\t\tSystem.out.println(\"***** BVB : E30 *****\");\r\n\t\tBVB.createobject();\r\n\t\tBVB.calculate();\r\n\t\tSystem.out.println(\"\\n\\n\\n\");\r\n\t\tSystem.out.println(\"***** KLETECH : E241 *****\");\r\n\t\tkletech.createobject1();\r\n\t\tkletech.calculate1();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "04da58ba0f45a3d005fe4d8982fe0af9", "score": "0.61169857", "text": "public static void main(String[] args) {\n System.out.println(\"Welcome to My MIS\\n\\n\");\n // retriveFromFile();\n controller();\n return;\n }", "title": "" }, { "docid": "ca5c1cf76d9783b5345f5e3f36c8ea7c", "score": "0.61169094", "text": "public static void main(String[] args)\n {\n Film film7 = new Film(\"The African Queen\"); \n Film film3 = new Film(\"Spellbound\");\n \n DVD dvd2 = new DVD(film7); \n DVD dvd4 = new DVD(film7);\n DVD dvd7 = new DVD(film3);\n \n Loan loan23 = new Loan(dvd2);\n Loan loan27 = new Loan(dvd7);\n Loan loan29 = new Loan(dvd4);\n \n Collection<Loan> loans = new HashSet<Loan>();\n loans.add(loan23);\n loans.add(loan27);\n loans.add(loan29);\n \n Member member6 = new Member(loans);\n \n /** Part 2 -- create the coordinating object */\n LibCoord library = new LibCoord();\n \n /** Part 3 -- send the coordinating message */\n Map<Loan, Film> results =\n library.getLoansAndFilms(member6);\n \n /** Part 4 -- simulate the user interface displaying the results */\n Film aFilm;\n /** for each Loan, aLoan, in the map results... */\n for (Loan aLoan : results.keySet())\n {\n /** ...get the Film corresponding to aLoan */\n aFilm = results.get(aLoan);\n System.out.println(\"Film: \" + aFilm.getTitle());\n System.out.println(\"Return date: \" + aLoan.getReturnDate());\n }\n }", "title": "" }, { "docid": "d1ff69fd74fc30f4cd0c06af435c7e8a", "score": "0.6108132", "text": "public static void main(String[] args) {\n\t\t\r\n\t\r\n\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9e382e0d20c25ab1fbbc74c9ee03e79f", "score": "0.6108096", "text": "public static void main(String[] args){\n Tiles tiles = new Tiles();\n //regular tiles\n tiles.BasketWeave(0);\n tiles.Med1();\n tiles.Med2();\n tiles.OpenWeave(0);\n tiles.Pythagorean(0);\n \n // tiles with mortar\n tiles.BasketWeave(1);\n tiles.Brick(1);\n tiles.OpenWeave(1);\n tiles.Pythagorean(1);\n \n \n }", "title": "" }, { "docid": "071255f9620b644617a4466d2cc79dc2", "score": "0.6106855", "text": "public static void main(String[] args) {\n\t\t\n\t\tsayHi(500);\n\t\tsayHi(\"Santosh\");\n\t\t\n\t\t//addNumber(10, 15);\n\t\t//addNumber(15, 15, 15);\n\n\t\t// 2. Method Overriding\n\n}", "title": "" }, { "docid": "0761493288b05007c7a8db2c2c717a43", "score": "0.6106543", "text": "public static void main(String[] args){\n\t TBA tba = new TBA();\n\t TBA.setID(\"frc4587\", \"Scouting application\", \"V1\");\n\t Settings.GET_EVENT_MATCHES = true;\n\t Settings.GET_EVENT_TEAMS = true;\n\t Settings.FIND_TEAM_RANKINGS = true;\n\t //Settings.GET_EVENT_STATS = true;\n\t \n\t Methods methods = new Methods();\n\t \n\t //methods.findEventClimbs(\"lake\",\"ClimbTest3\",\"Drew\");\n\t methods.findEventClimbPastAvgs(\"txsa\",\"ClimbTest2\",\"Drew\");\n\t //methods.findEventClimbPastAvgs(\"lake\");\n\t \n\t //Match[] matches = bayou.matches; \n\t /*String filename = \"csvTest\";\n\t\tFileWriter m_writer;\n\t try {\n\t\t\tm_writer = new FileWriter(\"C:/home/Users/Drew/Desktop/\"+filename+\".csv\", false);\n\t\t\tm_writer.write(\"aLeft,vLeft,xLeft,aRight,vRight,xRight,desiredAngle,currentAngle,realLeftEncoder,realRightEncoder,leftMotorLevel,rightMotorLevel,System.nanoTime()\" + \"\\n\");\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(e);\n\t\t\tm_writer = null;\n\t\t}\n\t \n\t if(m_writer != null){try{\n\t\t\t\tm_writer.write(\"\\n\");\n\t\t\t}catch(Exception e){}}\n\t \n \ttry{m_writer.close();}catch(Exception e){}*/\n\t}", "title": "" }, { "docid": "f2d4238e72dd21dd478510fa04ea1f6a", "score": "0.61047965", "text": "public static void main(String[] args) {\r\n \r\n\t\t\r\n\t\tmacbook Macbook = new macbook();\r\n\t\tMacbook.editing();\r\n\t\t\r\n\t\thp Hp = new hp ();\r\n\t\tHp.game();\r\n\t\t\r\n\t\tasus Asus = new asus();\r\n\t\tAsus.editing();\r\n\t\tAsus.game();\r\n\t}", "title": "" }, { "docid": "c80d7f2a064e4d4585eab0e7920b2234", "score": "0.6103689", "text": "public static void main (String[] args){\n Simulation newSim = new Simulation();\n\n\n /* Load items for Phase 1 and Phase 2 */\n\n\n /* Load a fleet of U1 rockets tor Phase 1 and then for\n * phase 2 */\n\n\n /* Run the simulation using fleet of U1 rockets\n * and display the total budget*/\n\n\n /* Repeat the steps above for U2 */\n\n\n }", "title": "" }, { "docid": "2fb490b087313b232585a4b94986f41f", "score": "0.61032295", "text": "public static void main(String[] args) throws Exception {\n\n try (BufferedReader br = new BufferedReader(new FileReader(ORIGINAL_API_FILE))) {\n\n //Creating a map with the original api's data\n Map<String, Collection<ApiMethod>> originalApi = getApi(br);\n br.close();\n\n //Generating \"New_API_file.txt\"\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(NEW_API_FILE)));\n writer.write(CompleteApiScraper.getApi().toString());\n writer.flush();\n writer.close();\n BufferedReader br2 = new BufferedReader(new FileReader(NEW_API_FILE));\n\n //Creating a map with the new api's data\n Map<String, Collection<ApiMethod>> newApi = getApi(br2);\n br2.close();\n\n //Begins comparison and increases report\n System.out.println(\"=================================================================\");\n checkClassAdditionAndDeletion(originalApi, newApi);\n checkMethodChanges(originalApi, newApi);\n System.out.println(\"REPORT FINISHED\");\n }\n }", "title": "" }, { "docid": "50fc5d13da59f6d695fb1135d3a46014", "score": "0.6101221", "text": "public static void main(String[] args) { // main method\n /* Abstractly calling each separate child class method as separate object\n although both Cirle_16 and Rectangle_17 both extend to Shape_17\n */\n\n Shape_16 obj = new Circle1_16(); // object obj for Circle1_16 class\n obj.draw(); // calling method in main method like getShape()method\n\n Shape_16 obj1 = new Rectangle_16(); // 2nd object obj1 created for Rectangle_16\n obj1.draw(); // calling method in main method like getShape()method\n }", "title": "" }, { "docid": "2a838be0ec54b30bccf705a776ece55e", "score": "0.61011714", "text": "public static void main(String args[]) \r\n\t{\r\n\t\tTurn turn = new Turn();\r\n\t\tUtilities utilities = new Utilities();\r\n\t\tutilities.intro();\r\n\t\tturn.getUserShips();\r\n\t\tturn.getComputerShips();\r\n\t\tturn.switchTurns();\r\n\t\tutilities.end(turn.getHumanShipsRemaining(), turn.getComputerShipsRemaining());\r\n\t}", "title": "" }, { "docid": "a6dae3578bc4b4e57e3b9816a3dc3f5f", "score": "0.6097412", "text": "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "98af8e8b6ea1fecb0f61f0082b2b70b8", "score": "0.6094687", "text": "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7801ce8fc6c3b9825d624866570fce19", "score": "0.6092053", "text": "public static void main(String[] args) {\n\t\trawDemo();\n\t\tlistDemo();\n\t\tmethodDemo();\n\t\tcomparableDemo();\n\t\tclassDemo();\n\t\twildcardDemo();\n\t}", "title": "" }, { "docid": "8492c3b6683bd01f002a7b59ad09c673", "score": "0.60919917", "text": "public static void main(String[] args) {\n\t\tString projectPath = \"G:/DurationImpl.java\";\n\t//\tString projectPath = \"UserManagement.java\";\n//\t\tFileHandler fileHandler = new FileHandler();\n//\t\tList<File> files = fileHandler.getJavaFiles(projectPath);\n\t\t\n\t\tList<File> files = new ArrayList<File>();\n\t\tfiles.add(new File(projectPath));\n\t\tfor (File file: files){\n \t\t\tSystem.out.println(file.getAbsolutePath());\n\t\t\tproceed(file);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tMatWithComments(files);\n\t\t\n\t\tList<List<Method>> methodClusters = mergeResults();\n\t\t\n\t\tClassGeneration cg = new ClassGeneration();\n\t\t\n\t\tfor(int i=0;i<methodClusters.size();i++){\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tcg.createNewClass(methodClusters.get(i), i);\n\t\t}\n\t}", "title": "" }, { "docid": "e63af9cb7e8ca5d9d09f97d1414ecd32", "score": "0.60891104", "text": "public static void main(String[] args) throws IOException {\n// cv.update();\n// cv.read();\n// cv.delete();\n// cv.read();\n\n// CustomerView cv = new CustomerView();\n// cv.create();\n// cv.create();\n// cv.read();\n// cv.update();\n// cv.read();\n// cv.delete();\n// cv.read();\n\n ConsoleHelper consoleHelper = new ConsoleHelper();\n consoleHelper.menu();\n\n }", "title": "" }, { "docid": "3f05504717af60b976add826ffb9d635", "score": "0.6087935", "text": "public static void main (String[] args) throws FileNotFoundException, IOException {\n\t\tString[] aList = reader(\"animes.txt\");\r\n\t\t\r\n\t\t//Creates an array of personality scores by reading them from a textfile\t\r\n\t\tString[] pList = reader(\"PersonalityMeasures.txt\");\r\n\t\t\r\n\t\t//Creates an array of usernames names by reading them from a textfile\t\r\n\t\tString[] uList = reader(\"FilteredUsers.txt\");\r\n\t\t\t\r\n\t\t//Populates array of users with all anime names from array of anime names\r\n\t\tuser[] users = namer(uList, aList, pList);\r\n\t\t\r\n\t\t//Extracts users' ratings from text file and populates utility matrix\r\n\t\tusers = rater(users, \"FilteredMatrix.txt\", \"PersonalityScores.txt\");\r\n\t\t\t\r\n\t\t//Populates users' sims\r\n\t\tsimser(users);\r\n\t\t\t\r\n\t\t//Calculates mean rating of all users\r\n\t\tmeaner(users);\r\n\t\t\r\n\t\t//Predicts ratings from neighbors' animes\r\n\t\tpredict(users);\r\n\t\t\t\t\t\r\n\t\t//Tests\r\n\t\ttester(users);\r\n\t}", "title": "" }, { "docid": "5081ac0d9975cdebd80a0223415301dc", "score": "0.60825735", "text": "public static void main(String args[]) {\r\n\t\tMergeLead ml = new MergeLead();\r\n\t\tml.login();\r\n\t\tml.crmsfa();\r\n\t\tml.createLead();\r\n\t\tml.findlead();\r\n\t\tml.editLead();\r\n\t\tml.callMergeLead();\r\n \t}", "title": "" }, { "docid": "562f28e553eee7a878a69f9572d24624", "score": "0.60820943", "text": "public static void main(String args[]) {\n TapestryController controllerInstance = new TapestryController();\n //call method\n ArrayList<Pattern> patternInstances = new ArrayList<>();\n patternInstances.add(controllerInstance.crossStitchWigglePatternInstance);\n patternInstances.add(controllerInstance.zigZagLinesPatternInstance);\n patternInstances.add(controllerInstance.baublePatternInstance);\n patternInstances.add(controllerInstance.blockyBaublePatternInstance);\n patternInstances.add(controllerInstance.brokenWigglePatternInstance);\n\n //ArrayList iterator\n for (Pattern currentPattern: patternInstances){\n\n controllerInstance.printWideTapestries(currentPattern);\n }\n\n out.println(\" \");\n out.println(\" \");\n\n for (Pattern currentPattern: patternInstances){\n\n controllerInstance.printTallTapestries(currentPattern);\n }\n }", "title": "" }, { "docid": "27978ec4238c3115a815b47ba394a9d0", "score": "0.6079977", "text": "public static void main( final String[] args ) throws Exception\n {\n final AppLoader appLoader = new AppLoader();\n appLoader.start();\n //*************************************************//\n //************* then display :) *******************//\n final AppViewer appViewer = new AppViewer();\n appViewer.display();\n //*************************************************//\n\n if(true) {\n return;\n }\n // Name name;\n // DumbParse dumb;\n // try {\n // name = new Name();\n // name.getDatasInFile();\n //\n // dumb = new DumbParse();\n // dumb.getDatasInFile();\n // } catch (final Exception e) {\n // e.printStackTrace();\n // }\n final Person karl = new Person(\"Age\",\"Karl\",100);\n final Person jean = new Person(\"Bon\",\"Jean\",100);\n for(int i = 0 ; i < 1000; i++){\n karl.setLifePercent(100);\n jean.setLifePercent(100);\n Ring.fight(karl, jean);\n }\n System.out.println(karl + \" : \" + karl.getVictoriaNumber());\n System.out.println(jean + \" : \" + jean.getVictoriaNumber());\n\n\n\n }", "title": "" }, { "docid": "3e811ac59088347968f506a86f50bd63", "score": "0.6079536", "text": "public Main(){\n\n\t\tlector = new Scanner(System.in);\n\t\tcreateMCS();\n\t}", "title": "" }, { "docid": "d94e8be8cbef0028ff0e17c19af8be8e", "score": "0.60785425", "text": "public static void main(String[] args) {\n System.out.println(\"Now Running... SWISS ARMY KNIFE!!!\");\n \n\n //Checks what to do in the case that the user types -Help, in a case insensitive way.\n if ((args.length < 1) || (args[0].equalsIgnoreCase(\"-Help\"))) {\n \n //Checks if there are no arguments input, throws invalid error and displays -Help to provide user help.\n if (args.length < 1) {\n System.out.println(\"Invalid: Please refer to the -Help information which will be printed below:\");\n }\n help.provideHelp();\n System.exit(0);\n }\n\n //Checks what to do in the case that the user types -HttpRequest or -HttpRequestIndex and there is not a valid URL, in a case insensitive way.\n else if (((args[0].equalsIgnoreCase(\"-HttpRequest\")) || (args[0].equalsIgnoreCase(\"-HttpRequestIndex\"))) && (args.length != 2)) {\n System.out.println(\"Invalid: -HttpRequest and -HttpRequestIndex need a valid URL. Please use the -Help for more info\");\n System.exit(0);\n }\n\n //Checks to see if the input arguments are valid.\n else if ((args.length > 2) || (args.length < 2)) {\n System.out.println(\"Invalid: Not a valid function. Please use the -Help argument for more info\");\n System.exit(0);\n }\n\n String URLa = args[1];\n \n //Checks what to do in the case that the user types -HttpRequest or -HttpRequestIndex with a valid index in a case insensitive way.\n if (args[0].equalsIgnoreCase(\"-HttpRequest\")) {\n HttpRequest request = new HttpRequest();\n \n \n //Creates new HttpRequest and runs the command to read the URL and print the response\n System.out.println(\"-Running HttpRequest...\");\n \n if (request.readRQURL(URLa)) {\n System.out.println(request);\n }\n\n //In the case that the URL cannot be accessed, an error will be thrown.\n else {\n System.out.format(\"Invalid: Can't access URL: \", URLa);\n } \n }\n\n //Creates new HttpRequestIndex and runs the command to read the URL and print the response\n else if (args[0].equalsIgnoreCase(\"-HttpRequestIndex\")) {\n HttpRequestIndex requestIndex = new HttpRequestIndex();\n \n System.out.println(\"-Running HttpRequestIndex...\");\n\n if (requestIndex.readRQURL(URLa)) {\n System.out.println(requestIndex);\n }\n\n //In the case that the URL cannot be accessed, an error will be thrown.\n else {\n System.out.format(\"Can't access URL: \", URLa);\n }\n }\n }", "title": "" }, { "docid": "e9bc9492ef1386eaa5b5034bde52a8f4", "score": "0.6077216", "text": "public static void main(String[] args) {\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "4be05f780e15551755e8bb79d2bbd343", "score": "0.60753983", "text": "public static void main(String[] args) {\n Read reader = new Read();\n // Procesa el archivo\n Schedule schedule = reader.processFile(DEFINITION_FILE, WEIGHT_FILE);\n List<Solution> mogSolutions;\n List<Solution> spea2Solutions;\n MogSequence mogSequence = new MogSequence();\n Spea2Sequence spea2Sequence = new Spea2Sequence();\n double areaSpea2;\n double areaMog;\n switch (METHOD_S) {\n case \"MOG\":\n System.out.println(\"_______________MOG_______________\");\n mogSolutions = getMogSolutions(reader, mogSequence);\n System.out.println(\"Mejores soluciones: \");\n printBestSolutions(mogSolutions);\n\n areaMog = DistanceMetrics.measurePerformance(mogSolutions, xMax, twst);\n System.out.println(\"Area Mog: \" + areaMog);\n break;\n case \"SPEA2\":\n System.out.println(\"_______________SPEA_______________\");\n spea2Solutions = getSpea2Solutions(schedule, spea2Sequence);\n printBestSolutions(spea2Solutions);\n\n areaSpea2 = DistanceMetrics.measurePerformance(spea2Solutions, xMax, twst);\n System.out.println(\"Area Mog: \" + areaSpea2);\n break;\n case \"BOTH\":\n System.out.println(\"_______________MOG_______________\");\n mogSolutions = getMogSolutions(reader, mogSequence);\n System.out.println(\"_______________SPEA_______________\");\n spea2Solutions = getSpea2Solutions(schedule, spea2Sequence);\n System.out.println();\n System.out.println(\"_______________Mejores soluciones MOG_______________\");\n printBestSolutions(mogSolutions);\n System.out.println(\"_______________Mejores soluciones Spea2_______________\");\n printBestSolutions(spea2Solutions);\n\n areaSpea2 = DistanceMetrics.measurePerformance(spea2Solutions, xMax, twst);\n areaMog = DistanceMetrics.measurePerformance(mogSolutions, xMax, twst);\n\n System.out.println(\"Area Spea2: \" + areaSpea2);\n System.out.println(\"Area Mog: \" + areaMog);\n break;\n default:\n throw new RuntimeException(\"Metodo no conocido\");\n }\n }", "title": "" } ]
3553866222fb7e9e049ab77bba9c9f5c
gets called when the victim collides with the offender
[ { "docid": "26f36e3a0cd8c5fdac413d1d761a0946", "score": "0.7365408", "text": "@Override\n\tpublic void onCollsion(BaseProjectile victim, BaseEntity offender) {\n\t\tif(!(offender instanceof BaseProjectile) && (victim.doesOriginDmg || offender != victim.origin)) {\n\t\t\tlevel.fire(new DamageEvent(((BaseProjectile) victim).dmg), offender, victim);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "1c5667f6e1263866640c86e249aefed3", "score": "0.7584737", "text": "public void handleCollision(Turn actorTurn, Player victim);", "title": "" }, { "docid": "19496b0d1c4f4139313f2e06a43eb56f", "score": "0.7339634", "text": "public void collisionDetected(){\n set_alive(false);\n }", "title": "" }, { "docid": "5247b6f564dcbe6f5d660653bb14747e", "score": "0.7225689", "text": "public void collision() {\n\t\t\t\tGameScreen.game.getVibrator().vibrate(20);\r\n\t\t\t}", "title": "" }, { "docid": "a2e6ff74dc4fe4addc2eff95ad281907", "score": "0.7173539", "text": "public void collisionPlayerDetected(){\n if(game.checkCollision(this,game.getPlayer())){\r\n game.getPlayer().damage(10);\r\n this.hit=true;\r\n }\r\n }", "title": "" }, { "docid": "778637b2f8d59fe100f358896a27def5", "score": "0.71179944", "text": "@Override\r\n\tpublic void collideTo(Entity e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "50902b63f339ddf9cb916a77b875fc24", "score": "0.7094996", "text": "public void collision() {\n onHitDebuff();\r\n }", "title": "" }, { "docid": "e10fb1e69924fa9fc02d59bc3fe7b6f9", "score": "0.7074749", "text": "@Override\n public void handleCollision(Actor other) {\n }", "title": "" }, { "docid": "2b0d36789bee65c6bdd7114a971569b4", "score": "0.7054879", "text": "@Override\n\tpublic void collide(GameObject o) {\n\t\t\n\t}", "title": "" }, { "docid": "6bc773cd1188259ef99c8d08eae2c71e", "score": "0.69722533", "text": "public void collide(){\n if (getBounds().x < 0){\n x = 0;\n velX *= -1;\n y += 20;\n }\n if (getBounds().x + rect_width > 800){\n x = 800 - rect_width;\n velX *= -1;\n y += 20;\n }\n for (int i = 0; i < enemyHandler.object.size(); i++) {\n GameObject tempObject = enemyHandler.object.get(i);\n\n if (tempObject.getId() == ID.Bullet) {\n if (getBounds().intersects(tempObject.getBounds())) {\n isAlive = false;\n tempObject.x = -100;\n tempObject.y = -100;\n enemyHandler.setKills(enemyHandler.getKills() + 1);\n System.out.println(\"KIlls: \" + enemyHandler.getKills());\n enemyHandler.spawnEnemy();\n }\n }\n }\n }", "title": "" }, { "docid": "8521da2282e374fa5e5b7fca68dcdcbc", "score": "0.69586307", "text": "@Override\n public void onUserCollision() {\n }", "title": "" }, { "docid": "a2dceb488364f1338a2c33e4218f732f", "score": "0.6924897", "text": "public void onCollision(Collider hit) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "096392723d67e4141e6d07b8a20950fe", "score": "0.6920137", "text": "@Override\r\n\r\n public void collision(GameObject other) {\n }", "title": "" }, { "docid": "391aef30b3ac78e8fb4f2425b902d219", "score": "0.6897743", "text": "private void collisionDetection() {\r\n final Player PLAYER = GAMEOBJECTS.getPlayer();\r\n final PowerUp POWERUP = GAMEOBJECTS.getPowerUp();\r\n final CollisionDetector COLLDETECT = GAMEOBJECTS.getDetecter();\r\n final EnemySpawner SPAWNER = GAMEOBJECTS.getSpawner();\r\n\r\n boolean attackMask = PLAYER.isAttacking();\r\n\r\n // don't make attack mask if using charge attack\r\n if (PLAYER.isUsingCharge()) {\r\n attackMask = false;\r\n }\r\n\r\n PLAYER.makeMask();\r\n if (POWERUP.isUp()) {\r\n COLLDETECT.checkCollision(POWERUP.getType(), PLAYER, POWERUP);\r\n }\r\n\r\n if (attackMask) {\r\n PLAYER.makeAttackMask();\r\n }\r\n\r\n collisionLoop(attackMask, SPAWNER, COLLDETECT, PLAYER);\r\n SPAWNER.checkDead();\r\n updateLabels(SPAWNER.getKills() + GAMEOBJECTS.getMissileManager().getKills());\r\n }", "title": "" }, { "docid": "02dc5b1b822fc72e19ec76c0a645d265", "score": "0.68528134", "text": "public abstract void collideWith(Dmk_Entity e);", "title": "" }, { "docid": "bad24daae9c9585263d5c3b8db3de050", "score": "0.68444806", "text": "@Override\r\n\tpublic void collideTo(Block b) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c93b5c5794bfed0bfe98cb9d56acc850", "score": "0.683942", "text": "public void collision(Entity other) {\n if(other instanceof WallEntity) { //If collided with wall\n wall_collision((WallEntity) other); //Method defined in LivingEntity\n }\n else if(other instanceof EnemyEntity) {\n if(state != PlayerState.HURT && !invincible) {\n hurt_init();\n health -= 10; //For now, lose 10 health per enemy collision\n hurt_start = update_counter; //Start being invincible\n }\n }\n else if(other instanceof AttackEntity) {\n AttackEntity oth = (AttackEntity) other;\n if(oth.get_source() instanceof EnemyEntity) {\n if(state != PlayerState.HURT && !invincible) {\n hurt_init();\n health -= oth.get_damage();\n hurt_start = update_counter; //Start being invincible\n }\n }\n }\n\n }", "title": "" }, { "docid": "d4ed66180ee73212f78a0f487a9a19db", "score": "0.67968494", "text": "@Override\n\tpublic void onCollisionFrom(gameObjectPhysics g) {\n\t\t\n\t}", "title": "" }, { "docid": "f7a49e9eb1a10703302d74413bfaa33d", "score": "0.67818147", "text": "public void collideWith(MovableObject object) {\n\t}", "title": "" }, { "docid": "43a63f15990c9fa50d74885484da98f6", "score": "0.6691612", "text": "@Override\n public void applyEntityCollision(Entity e)\n {\n if (e == shootingEntity || isReleasing() || worldObj.isRemote || e instanceof EntityPokecube || e.isDead)\n {\n super.applyEntityCollision(e);\n return;\n }\n if(shootingEntity!=null && e instanceof IPokemob && ((IPokemob)e).getPokemonOwner() == shootingEntity)\n {\n return;\n }\n\n if (e instanceof EntityLivingBase && e instanceof IPokemob && ((EntityLivingBase) e).getHealth() > 0\n && tilt == -1 && !((IPokemob) e).getPokemonAIState(IPokemob.TAMED))\n {\n IPokemob hitten = (IPokemob) e;\n if (hitten.getPokemonOwner() == shootingEntity) { return; }\n\n CaptureEvent.Pre capturePre = new Pre(hitten, this);\n MinecraftForge.EVENT_BUS.post(capturePre);\n\n if (capturePre.isCanceled())\n {\n\n }\n else\n {\n int n = Tools.computeCatchRate(hitten, PokecubeItems.getCubeId(getEntityItem()));\n tilt = n;\n\n if (n == 5)\n {\n time = 10;\n }\n else\n {\n time = 20 * n;\n }\n\n hitten.setPokecubeId(PokecubeItems.getCubeId(getEntityItem()));\n setEntityItemStack(PokecubeManager.pokemobToItem(hitten));\n PokecubeManager.setTilt(getEntityItem(), n);\n ((Entity) hitten).setDead();\n Vector3 v = Vector3.getNewVectorFromPool();\n v.set(this).addTo(0, hitten.getPokedexEntry().height / 2, 0).moveEntity(this);\n motionX = 0;\n motionY = 0.1;\n motionZ = 0;\n v.freeVectorFromPool();\n\n }\n }\n else if (PokecubeManager.isFilled(getEntityItem()))\n {\n IPokemob entity1 = sendOut();\n if (entity1 != null && shootingEntity instanceof EntityLivingBase)\n {\n if (e instanceof EntityLivingBase)\n {\n EntityLivingBase entityHit = (EntityLivingBase) e;\n if (entityHit instanceof IPokemob && entity1.getPokemonOwnerName() != null\n && entity1.getPokemonOwnerName().equals(((IPokemob) entityHit).getPokemonOwnerName()))\n {\n // do not attack a mob of the same team.\n }\n else\n {\n ((EntityCreature) entity1).setAttackTarget(entityHit);\n if (entityHit != null) entity1.setPokemonAIState(IPokemob.SITTING, false);\n\n if (entityHit instanceof EntityCreature)\n {\n ((EntityCreature) entityHit).setAttackTarget((EntityLiving) entity1);\n }\n if (entityHit instanceof IPokemob)\n {\n ((IPokemob) entityHit).setPokemonAIState(IPokemob.ANGRY, true);\n ;\n }\n }\n }\n }\n }\n else\n {\n sendOut();\n }\n }", "title": "" }, { "docid": "30252b3cd571d4c08453b428893aebfd", "score": "0.66401577", "text": "public void collide (Player p)\n\t{\n\t\tp.collide(this);\n\t}", "title": "" }, { "docid": "0da6d97513a882075d40b20431ba2efd", "score": "0.6631071", "text": "void collideWith(Entity entity, int tick);", "title": "" }, { "docid": "1a9ff2ff065e35987f138ada568fb993", "score": "0.6617894", "text": "public void Collision(Entity e)\r\n\t{\r\n\t}", "title": "" }, { "docid": "dfd6f65496c39e8bbcb33d9dc9ca2114", "score": "0.6601894", "text": "@Override\n\tpublic void onHitPlayer(EntityDamageByEntityEvent e, Player damager, Player victim) {\n\t\t\n\t}", "title": "" }, { "docid": "03fb6fd3e65effc792d2902889fb5c83", "score": "0.65919185", "text": "@Override\n public void collide(CollisionEvent e) {\n if (e.getOtherBody() == rick) {\n rick.reduceLives();\n rick.zeroHealth();\n }\n if (e.getOtherBody() instanceof Bat) {\n if (e.getReportingBody() instanceof Rick) {\n rick.reduceLives();\n rick.zeroHealth();\n e.getOtherBody().destroy();\n }\n }\n if (e.getOtherBody() instanceof Cans) {\n if (e.getReportingBody() instanceof Rick) {\n rick.increaseCanCount();\n e.getOtherBody().destroy();\n }\n }\n if (e.getOtherBody() instanceof RedKey) {\n if (e.getReportingBody() instanceof Rick) {\n rick.incrementRedKeyCount();\n e.getOtherBody().destroy();\n }\n }\n if (e.getOtherBody() instanceof HealthHeart) {\n if (e.getReportingBody() instanceof Rick) {\n rick.increaseLives();\n e.getOtherBody().destroy();\n }\n }\n if (e.getOtherBody() instanceof Spikes) {\n if (e.getReportingBody() instanceof Rick) {\n rick.hitSpikes();\n rick.zeroHealth();\n }\n\n }\n }", "title": "" }, { "docid": "ccd4415d8687c728111fb259498debfc", "score": "0.656062", "text": "public void onEntityCollision(int x, int y, Entity entity, EnumDir hitDirection) {\n\t}", "title": "" }, { "docid": "08042c29d00afed05b38c361ae84c0f6", "score": "0.65600914", "text": "@Override\n public void collide(CollisionEvent e) {\n //When mainCharacter collides with coin,it will take the coin.\n if (e.getReportingBody() instanceof Coin && e.getOtherBody() == mainCharacter) {\n mainCharacter.increaseCash();\n e.getReportingBody().destroy();\n }\n //When mainCharacter collides with Monster, lose a coin and 10 health\n else if (e.getReportingBody() instanceof Monster && e.getOtherBody() == mainCharacter){\n mainCharacter.decreaseHealth();\n mainCharacter.decreaseCash();\n game.isMainDead();\n }\n }", "title": "" }, { "docid": "4a35cafa872323e427ea924b4aafd97c", "score": "0.6560013", "text": "public void onCollideWith(Enemy s) {\n setAlive(false);\n }", "title": "" }, { "docid": "a77cc420e50b29004b3bf3f219f3a578", "score": "0.6540086", "text": "@Override\r\n\tpublic void collision(int x, int y, GameObject obj) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c11b70bd884f14db8f080ad5e1510d74", "score": "0.65044385", "text": "@Override\n public boolean collideWith(ICollidable c) {\n return false;\n }", "title": "" }, { "docid": "e3c3f70ceed0ca960d346a341cf32843", "score": "0.6476361", "text": "private void checkCollisions(){\n\t\t//COLLISION FOR ENEMIES\n\t\tfor(Enemy e : getEnemies()){\n\t\t\tif(e.getBounds().overlaps(player.getBounds())){\n\t\t\t\tplayerHit = true;\n\t\t\t\tif(e.canAttack()){\n\t\t\t\t\tplayer.addStamina(-(e.getAttack()));\n\t\t\t\t\te.attack();\n\t\t\t\t\tAssets.HAWK.play();\n\t\t\t\t}\n\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tplayerHit = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//COLLISON FOR TARGETS\n\t\tfor(Target t : getTargets()){\n\t\t\tfor(Ammo a : getAmmo()){\n\t\t\t\t\n\t\t\t\tif(a.pos.y < 150){\n\t\t\t\tif(t.getBounds().contains(a.getBounds())){\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0; i<Assets.targetsTex.length; i++ ){\n\t\t\t\t\t\tif(t.texture == Assets.targetsTex[i])\n\t\t\t\t\t\t\tt.texture = Assets.targetsTexHit[i];\t\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\tt.hit = true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tentities.removeValue(a, false);\n\t\t\t\t\tGUI.addScore(t.getScore());\n\t\t\t\t\tSystem.out.println(\"HIT\");\n\t\t\t\t\tAssets.GULL1.play(0.5f);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(a.pos.y < 100){\n\t\t\t\t\ta.texture = Assets.SPLAT;\n\t\t\t\t\ta.scale = new Vector2(Assets.SPLAT.getWidth(),Assets.SPLAT.getHeight());\n\t\t\t\t\ta.direction = new Vector2(0,-scrollSpeed);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(t.hit && t.checkEnd()){\n\t\t\t\t\tentities.removeValue(t, false);\n\t\t\t\t\tSystem.out.println(\"HIT REMOVED\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//COLLISION FOR FOOD\n\t\tfor(Food f : getFood()){\n\t\t\tif(f.getBounds().overlaps(player.getBounds()) && player.hasStamina()){\n\t\t\t\tplayer.swoop();\n\t\t\t\tif(player.scale.y < 14){\n\t\t\t\tplayer.addStamina(f.getScore());\n\t\t\t\tentities.removeValue(f, false);\n\t\t\t\tSystem.out.println(\"YUM\");\n\t\t\t\t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fb2967c7e61b311ce61f91cfc890c7b2", "score": "0.64749455", "text": "public void handleCollision(Entity collider) {\n\n\t}", "title": "" }, { "docid": "238f5b175080058d791615d7e765b085", "score": "0.6461329", "text": "public void onUpdate() {\n super.onUpdate();\n\n\n if (this.getAttackTarget() == null && this.world.getClosestPlayerToEntity(this, 6D) != null && this.canEntityBeSeen(this.world.getClosestPlayerToEntity(this, 6D)) && !this.world.getClosestPlayerToEntity(this, 6D).capabilities.disableDamage)\n this.setAttackTarget(this.world.getClosestPlayerToEntity(this, 6D));\n\n if (this.getAttackTarget() != null && (!this.getAttackTarget().isEntityAlive() || this.getDistance(this.getAttackTarget()) > 12D || !this.canEntityBeSeen(this.getAttackTarget())))\n this.setAttackTarget(null);\n \n if (this.getRevengeTarget() != null && !this.getRevengeTarget().isEntityAlive())\n \tthis.setRevengeTarget(null);\n\n this.prevRearingRot = this.rearingRot;\n\n if (this.isAggressive())\n this.rearingRot = MathHelper.clamp(this.rearingRot + 0.1F, 0F, 1F);\n else \n this.rearingRot = MathHelper.clamp(this.rearingRot - 0.1F, 0F, 1F);\n\n this.setSize(0.4F, 0.2F + rearingRot);\n\n if (!this.world.isRemote) {\n this.setBesideClimbableBlock(this.collidedHorizontally);\n }\n }", "title": "" }, { "docid": "7c5c69673c85a8578f15aa883551f174", "score": "0.6442541", "text": "void dualAgentCollision(){\n\t\t\n\t\t//Calculate the new velocities using a simple collision formula\n\t\tdouble player1X = (agent1.getVelocity().x * (agent1.getMass() - agent2.getMass()) + (2 * agent2.getMass() * agent2.getVelocity().x)) / (agent1.getMass() + agent2.getMass());\n\t\tdouble player1Y = (agent1.getVelocity().y * (agent1.getMass() - agent2.getMass()) + (2 * agent2.getMass() * agent2.getVelocity().y)) / (agent1.getMass() + agent2.getMass());\n\t\tdouble player2X = (agent2.getVelocity().x * (agent2.getMass() - agent1.getMass()) + (2 * agent1.getMass() * agent1.getVelocity().x)) / (agent1.getMass() + agent2.getMass());\n\t\tdouble player2Y = (agent2.getVelocity().y * (agent2.getMass() - agent1.getMass()) + (2 * agent1.getMass() * agent1.getVelocity().y)) / (agent1.getMass() + agent2.getMass());\n\t\t\n\t\t//set the new velocities\n\t\tagent1.getVelocity().set(player1X, player1Y, 0.0);\n\t\tagent2.getVelocity().set(player2X, player2Y, 0.0);\n\t\t\n\t\t//immediately move by these velocitie - this is to ensure that the agents do not get stuck \n\t\t//(as the upcoming collision energy loss can cause the reverse displacement to be less than the original collision overlap)\n\t\tagent1.getPositionVector().add(agent1.getVelocity());\n\t\tagent2.getPositionVector().add(agent2.getVelocity());\n\t\t\n\t\t//significantly reduce the velocity to model energy loss during the collision\n\t\tagent1.getVelocity().scale(Params.collisionEnergy);\n\t\tagent2.getVelocity().scale(Params.collisionEnergy);\n\t\t\n\t\t//If the agent is a ball, set the collided value to be true\n\t\tif(agent1 instanceof Ball){\n\t\t\t((Ball)agent1).getMovement().setCollided(true);\n\t\t} \n\t\tif(agent2 instanceof Ball){\n\t\t\t((Ball)agent2).getMovement().setCollided(true);\n\t\t}\n\t}", "title": "" }, { "docid": "0574bb278cb356ae083e45a548cf0114", "score": "0.64313895", "text": "void singleAgentCollision(){\n\t\t\n\t\t//Reverse the velocities\n\t\tagent1.getVelocity().set(agent1.getVelocity().x*-1, agent1.getVelocity().y*-1,0.0);\n\t\t\n\t\t//immediately move by this velocity - this is to ensure that the agent does not get stuck \n\t\t//(as the upcoming collision energy loss can cause the reverse displacement to be less than the original collision overlap)\n\t\tagent1.getPositionVector().add(agent1.getVelocity());\n\t\t\n\t\t//reduce the velocity to model energy loss during the collision\n\t\tagent1.getVelocity().scale(Params.collisionEnergy);\n\t\t\n\t\t//If the agent is a ball, set the collided value to be true\n\t\tif(agent1 instanceof Ball){\n\t\t\t((Ball)agent1).getMovement().setCollided(true);\n\t\t}\n\t}", "title": "" }, { "docid": "7efd15af3bb56859b47d1f8f93ee3131", "score": "0.64161366", "text": "@Override\n public void collide(CollisionEvent e) {\n Rat rat = game.getPlayer();\n\n if (e.getOtherBody() == rat) {\n int a = (int) (Math.random() * (high - low)) + low;\n int b = (int) (Math.random() * (high - low)) + low;\n\n rat.incrementFoodCount();\n food = (Food) e.getReportingBody();\n food.playSound();\n e.getReportingBody().setPosition(new Vec2(a, b));\n }\n if (game.isCurrentLevelCompleted()) {\n System.out.println(\"Going to next level...\");\n game.goNextLevel();\n }\n }", "title": "" }, { "docid": "04dd3a403654f8d71982b9b52eb2baaa", "score": "0.63909787", "text": "@Override\n protected void testCollide(WorldCreator w){\n enemyBox = new Rect(x, y, x + eW, y + eH);\n for(abstractBlock b:w.blocks) {\n if(b.dst.contains(Cx() + eW/4, By()) || b.dst.contains(Cx() - eW/4, By())){\n super.collide = true;\n vector = -3;\n //System.out.println(\"yes\");\n }\n else if(b.dst.contains(Cx() + eW/4, y) || b.dst.contains(Cx() - eW/4, y)){\n super.collide = true;\n vector = 3;\n }\n else if(y < 0){\n vector = 3;\n super.collide = true;\n }\n else if(y + super.eH > msv.getHeight()){\n vector = -3;\n super.collide = true;\n }\n }\n }", "title": "" }, { "docid": "b2984edae25313d7e73f752c1b31b6cc", "score": "0.6382001", "text": "boolean collides(Actor a) {\n\treturn false;\n}", "title": "" }, { "docid": "51a3dec49dba02a88a2ac8a7fdb3c3c6", "score": "0.63790303", "text": "public void collideWithSpider() {\r\n\t\tSystem.out.println(\"You collided with a spider.\\n\");\r\n\t\tplayer.imposingDamage(2);\r\n\t\tif(player.isDead()) {\r\n\t\t\tSystem.out.println(\"You have no health so you lost a life.\\n\");\r\n\t\t\tlives--;\r\n\t\t\tif(lives <= 0) {\r\n\t\t\t\tSystem.out.println(\"Game over, you failed.\\n\");\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t\tinit();\r\n\t\t}\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "title": "" }, { "docid": "98e4504e6d9c7ecfab452cdebfb38793", "score": "0.6371736", "text": "public void checkCollision()\n\t{\n\t\ttempPlayer = map.checkCrateCollision(this);\n\t}", "title": "" }, { "docid": "32e1b9d08f014d5d467f7e1477e132cf", "score": "0.6369586", "text": "public void collisionEvent(SolidEntity other){\n\t\t\n\t}", "title": "" }, { "docid": "c4bba3f0f99a0759fc11be26e91181d8", "score": "0.6368062", "text": "public void checkEnemyCollisions() {\n\t\tfor (int i = 0; i < enemy.length; i++) {\n\t\t\tif (player.getBounds().intersects(enemy[i].getBounds())) {\n\t\t\t\tenemy[i].setVel(0);\n\t\t\t\tsetIsEnemyAttack(enemy[i].attack());\n\t\t\t\tif (enemy[i].attack() == true) {\n\t\t\t\t\tplayer.takeDamage(1);\n\t\t\t\t\tenemy[i].setAttackTimer(enemy[i].getTrueTimer());\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tenemy[i].setVel(enemy[i].getTrueVel());\n\t\t}\n\t}", "title": "" }, { "docid": "e18e761073b76204bb931b650ccbfc7d", "score": "0.63576597", "text": "@Override\r\n\t\tpublic void respondToCollision( PhysicalBody collider, Vector3 collisionPoint )\r\n\t\t{\n\t\t}", "title": "" }, { "docid": "bf974da656fb9ad2110a1ea19d72b2bc", "score": "0.63569885", "text": "public void collide (Prisoner p)\n\t{\n\t\tCGCWorld.addToDestroyList(this);\n\t\tp.collide(this);\n\t}", "title": "" }, { "docid": "bc40692917c90c9e1e0a3f44862d726a", "score": "0.6348545", "text": "public void onHit(Player target) {\n if (target != weapon.getOwner()) weapon.onHit(target);\n }", "title": "" }, { "docid": "f31a965c760d2fbcf4cd9fa331037d05", "score": "0.6345818", "text": "public void bulletCollision()\n {\n if(start == true)\n {\n if((p1.gun.x + 6 >= p2.x && p1.gun.x <= (p2.x + 28)) && (p1.gun.type < 4 || p1.gun.type == 5))\n {\n if(p1.gun.y + 6 >= p2.y && p1.gun.y <= (p2.y + 28))\n {\n p2.hit(p1.gun.getDamage());\n }\n }\n else if((p1.gun.type == 4 || p1.gun.type == 7) && p1.gun.x + 18 >= p2.x && p1.gun.x <= (p2.x + 28))\n {\n if(p1.gun.y + 18 >= p2.y && p1.gun.y <= (p2.y + 28))\n {\n p2.hit(p1.gun.getDamage());\n }\n }\n else if(p1.gun.type == 8 && p1.gun.getAngle() + 30 >= p2.x && p1.gun.getAngle() <= (p2.x + 58))\n {\n if(p1.gun.getAngle() + 30 >= p2.y && p1.gun.getAngle() <= (p2.y + 58))\n {\n p2.hit(p1.gun.getDamage());\n }\n }\n if((p2.gun.x + 6 >= p1.x && p2.gun.x <= p1.x + 28) && (p2.gun.type < 4 || p2.gun.type == 5))\n {\n if((p2.gun.y + 6 >= p1.y && p2.gun.y <= p1.y + 28))\n {\n p1.hit(p2.gun.getDamage());\n }\n }\n else if((p2.gun.type == 4 || p2.gun.type == 7) && p2.gun.x + 18 >= p1.x && p2.gun.x <= (p1.x + 28))\n {\n if(p2.gun.y + 18 >= p1.y && p2.gun.y <= (p1.y + 28))\n {\n p1.hit(p2.gun.getDamage());\n }\n }\n }\n }", "title": "" }, { "docid": "ee643b8416740fbc756570c07db71e03", "score": "0.6334959", "text": "protected void checkCollision() {\n ArrayList<Enemy> enemies = Global.getManager().getEnemies();\n targets = new ArrayList<Enemy>();\n target = null;\n double smallestDist = getHeight() * getHeight() * 2;\n for (Enemy e : enemies) {\n double dist = Math2D.distanceSquared(getX(), e.getX(), getY(), e.getY());\n // Find the enemy who is directly hit by the splash\n if (dist <= smallestDist) {\n smallestDist = dist;\n target = e;\n targets.add(e);\n } // Find enemies that are within the radius\n else if (dist <= radius) {\n targets.add(e); \n }\n }\n damageEnemy();\n }", "title": "" }, { "docid": "b73e29d6f9a82bb7f453fb0bb9e39165", "score": "0.63271683", "text": "@Override\n public void collisionEffect(Entity x) {\n DamagingEffect.INSTANCE.applyEffect(x);\n collisionEmission.pos = new SimpleVector(this.collisionPoint());\n collisionEmission.isOn=true;\n // Main.SingletonObjects.INSTANCE.soundManagement.playExplosion();//justto see if it is called\n }", "title": "" }, { "docid": "050263242dd54e1ff7475006f1b8cf7b", "score": "0.63202995", "text": "private void calculateCollisions() {\n\t\t\n\t\t// System.out.println(\"checking collisions\");\n\t\t\n\t\tfor (int i = 0; i < model.bodies.size() - 1; i++) {\n\t\t\tBody hero = model.bodies.get(i);\n\t\t\t// System.out.println(\"hero: \" + hero.getID());\n\t\t\t\n\t\t\tfor (int k = i + 1; k < model.bodies.size(); k++) {\n\t\t\t\tBody rival = model.bodies.get(k);\n\t\t\t\t// System.out.println(\"rival: \" + rival.getID());\n\t\t\t\tif (hero.doIntersect(rival, model.getFPS(), steps))\n\t\t\t\t\tcollide(hero, rival);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e99905687db39ae630e0f56d5357711c", "score": "0.631511", "text": "public abstract void collision(Player object);", "title": "" }, { "docid": "4dc419cc24c84b9e84f00249f7f29822", "score": "0.6314238", "text": "@Override\n\tpublic void handleCollision(GameObject otherObject) {\n\t\tif (!this.getCollisions().contains(otherObject) && !otherObject.getCollisions().contains(this)) {\n\t\t\tif (otherObject instanceof Ant) \n\t\t\t\tgw.collideWithFoodStation(this);\n\t\t\t\n\t\t\tthis.getCollisions().add(otherObject);\n\t\t\totherObject.getCollisions().add(this);\n\t\t}\n\t}", "title": "" }, { "docid": "474125cb0e4123f234b19d2d5e3e700a", "score": "0.6304848", "text": "@Override\n\tpublic void onManagedUpdate(final float pSecondsElapsed) \n\t{\n\t\tif (this.collidesWith(activity.getPlayer()) && !activity.getPlayer().getImmune())\n\t\t{\n\t\t\tLog.i(\"Driver\", \"Player-Enemy collision\");\n\t\t\tactivity.getPlayer().dealDamage(DAMAGE);\n\t\t\tHEALTH = 0;\n\t\t\t\n\t\t\t// add explosion animation, in same direction as car was going\n\t\t\tfinal FixtureDef objectFixtureDef = PhysicsFactory.createFixtureDef(1f, 0f, 0f, true);\n\t\t\tAnimatedSprite explosion = new AnimatedSprite(this.getX(), this.getY(), activity.explosionTextureRegion, activity.getVertexBufferObjectManager());\n\t\t\tBody b = PhysicsFactory.createBoxBody(activity.getPhysicsWorld(), explosion, BodyType.KinematicBody, objectFixtureDef);\n\t\t\texplosion.setUserData(b);\n\t\t\texplosion.animate(30);\n\t\t\tactivity.getPhysicsWorld().registerPhysicsConnector(new PhysicsConnector(explosion, b, true, true));\n\t\t\tb.setLinearVelocity(8, 0);\n\t\t\tactivity.getScene().attachChild(explosion);\n\t\t\t// add another explosion to make it look more real\n\t\t\tAnimatedSprite explosion2 = new AnimatedSprite(this.getX() + 15, this.getY(), activity.explosionTextureRegion, activity.getVertexBufferObjectManager());\n\t\t\tBody b2 = PhysicsFactory.createBoxBody(activity.getPhysicsWorld(), explosion2, BodyType.KinematicBody, objectFixtureDef);\n\t\t\texplosion2.setUserData(b2);\n\t\t\texplosion2.animate(40);\n\t\t\tactivity.getPhysicsWorld().registerPhysicsConnector(new PhysicsConnector(explosion2, b2, true, true));\n\t\t\tb2.setLinearVelocity(8, 0);\n\t\t\tactivity.getScene().attachChild(explosion2);\n\t\t}\n\t\t\n\t\t// check for collisions with boss\n\t\tif (activity.level == 1 && activity.spawner.boss != null && this.collidesWith(activity.spawner.boss))\n\t\t{\n\t\t\tLog.i(\"Driver\", \"Boss - Enemy collision\");\n\t\t\tHEALTH = 0;\n\t\t\t\n\t\t\t// add explosion animation, in same direction as car was going\n\t\t\tfinal FixtureDef objectFixtureDef = PhysicsFactory.createFixtureDef(1f, 0f, 0f, true);\n\t\t\tAnimatedSprite explosion = new AnimatedSprite(this.getX(), this.getY(), activity.explosionTextureRegion, activity.getVertexBufferObjectManager());\n\t\t\tBody b = PhysicsFactory.createBoxBody(activity.getPhysicsWorld(), explosion, BodyType.KinematicBody, objectFixtureDef);\n\t\t\texplosion.setUserData(b);\n\t\t\texplosion.animate(30);\n\t\t\tactivity.getPhysicsWorld().registerPhysicsConnector(new PhysicsConnector(explosion, b, true, true));\n\t\t\tb.setLinearVelocity(8, 0);\n\t\t\tactivity.getScene().attachChild(explosion);\n\t\t\t// add another explosion to make it look more real\n\t\t\tAnimatedSprite explosion2 = new AnimatedSprite(this.getX() + 15, this.getY(), activity.explosionTextureRegion, activity.getVertexBufferObjectManager());\n\t\t\tBody b2 = PhysicsFactory.createBoxBody(activity.getPhysicsWorld(), explosion2, BodyType.KinematicBody, objectFixtureDef);\n\t\t\texplosion2.setUserData(b2);\n\t\t\texplosion2.animate(40);\n\t\t\tactivity.getPhysicsWorld().registerPhysicsConnector(new PhysicsConnector(explosion2, b2, true, true));\n\t\t\tb2.setLinearVelocity(8, 0);\n\t\t\tactivity.getScene().attachChild(explosion2);\n\t\t}\n\t}", "title": "" }, { "docid": "f4c30215827842db6f2fe13c5b5b4aad", "score": "0.6304381", "text": "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n\n if (this.attackTimer > 0)\n {\n --this.attackTimer;\n }\n\n if (this.holdRoseTick > 0)\n {\n --this.holdRoseTick;\n }\n\n if (this.motionX * this.motionX + this.motionZ * this.motionZ > 2.500000277905201E-7D && this.rand.nextInt(5) == 0)\n {\n int i = MathHelper.floor_double(this.posX);\n int j = MathHelper.floor_double(this.posY - 0.20000000298023224D - (double)this.yOffset);\n int k = MathHelper.floor_double(this.posZ);\n Block block = this.worldObj.getBlock(i, j, k);\n\n if (block.getMaterial() != Material.air)\n {\n this.worldObj.spawnParticle(\"blockcrack_\" + Block.getIdFromBlock(block) + \"_\" + this.worldObj.getBlockMetadata(i, j, k), this.posX + ((double)this.rand.nextFloat() - 0.5D) * (double)this.width, this.boundingBox.minY + 0.1D, this.posZ + ((double)this.rand.nextFloat() - 0.5D) * (double)this.width, 4.0D * ((double)this.rand.nextFloat() - 0.5D), 0.5D, ((double)this.rand.nextFloat() - 0.5D) * 4.0D);\n }\n }\n }", "title": "" }, { "docid": "d8aa1485a9c4238cfa104564b4292f62", "score": "0.6293325", "text": "public void handleCollision(ICollider obj)\n\t{\n\t\tif(obj instanceof PlayerShip)\n\t\t{\n\t\t\tthis.alive = false;\n\t\t}\n\t\t// non-player missile collides with player missile\n\t\tif(obj instanceof PlayerMissile)\n\t\t{\n\t\t\tthis.alive = false;\n\t\t}\n\t}", "title": "" }, { "docid": "ead49423b0cad0b81dd3b348e6d702f5", "score": "0.6282599", "text": "public void hit(GameObject hitter);", "title": "" }, { "docid": "77e66671f13bb6abe33ab9cb42f932e2", "score": "0.6280884", "text": "public void npcCollide() {\r\n\t\t//\tnpcCollisionSound.play();\r\n\t\t// affect on player cyborg\r\n\t\tplayer.damageByCyborg();\r\n\t\tint affectColorPc = player.getDamageLevel() * 10;\r\n\t\tplayer.setColor(155 + affectColorPc, 0, 0);\r\n\t\tif (player.getDamageLevel() >= player.getMaxDamage())\r\n\t\t\tdamageLives();\r\n\t\tSystem.out.println(\"NPC Collision, Cyborg's damage: \" + player.getDamageLevel());\r\n\r\n\t\t// affect on non player cyborg\r\n\t\tIIterator it = objectList.getIterator();\r\n\t\tRandom rand = new Random();\r\n\t\tint counter = 1;\r\n\t\tint npcNum = rand.nextInt(3) + 1;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tGameObject ob = it.getNext();\r\n\t\t\tif (ob instanceof NonPlayerCyborg) {\r\n\t\t\t\tif (counter == npcNum) {\r\n\t\t\t\t\tNonPlayerCyborg nonPlaya = (NonPlayerCyborg) ob;\r\n\t\t\t\t\tnonPlaya.damageByCyborg(); // NPC also sustain a damage\r\n\t\t\t\t\tint affectColorNpc = nonPlaya.getDamageLevel() * 10;\r\n\t\t\t\t\tnonPlaya.setColor(155 + affectColorNpc, 0, 0);\r\n\t\t\t\t\tSystem.out.println(\"NPC Collision, NPC's damage: \" + nonPlaya.getDamageLevel());\r\n\t\t\t\t}\r\n\t\t\t\t// counter that increments and whenever it is equal to the random number\r\n\t\t\t\t// generated then that is the NPC to get damaged\r\n\t\t\t\t// generate a random number between 1-3\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.updateObservers();\r\n\t}", "title": "" }, { "docid": "ecf44bd4f314b806b72cf5815dbcf409", "score": "0.62790686", "text": "public void checkCollisions() {\n\t\tArrayList<Bullet> ms = craft.getMissiles();\n\t\tRectangle r2 = craft_en.getBounds();\n\n\t\tfor (Bullet m : ms) {\n\n\t\t\tRectangle r1 = m.getBounds();\n\t\t\tif (r1.intersects(r2)) {\n\t\t\t\tcraft_en.touched();\n\t\t\t\tm.setVisible(false);\n\t\t\t}\n\n\t\t}\n\n\t\t//Si l'ennemi touche le joueur\n\t\tms = craft_en.getMissiles();\n\t\tr2 = craft.getBounds();\n\n\t\tfor (Bullet m : ms) {\n\n\t\t\tRectangle r1 = m.getBounds();\n\t\t\tif (r1.intersects(r2)) {\n\t\t\t\tcraft.touched();\n\t\t\t\tm.setVisible(false);\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "3cc61ca6717f4233c34acae8b66d1b1b", "score": "0.6275739", "text": "public void onCollideWith(Meteor m) {\n setAlive(false);\n }", "title": "" }, { "docid": "7e47d888e6e99d64e3af4e9680bc94ef", "score": "0.6275215", "text": "public void checkCollision(){\n\t\tArrayList<Creature> creatures = map.getCreatures();\n\t\tfor (Creature c : creatures){\n\t\t\tif (Shape.overlaps(c.hit_box, this.hit_box)){\n\t\t\t\t// System.out.println(\"found creature\"); // debugging\n\t\t\t\tupdateCreature(c);\n\t\t\t\tremove();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "acc61dc5ef3cdf5c9bffed32d0d7c354", "score": "0.62734294", "text": "@Override\n public void playerCollision(Player player) {\n player.setShield(player.getShield() + shield);\n super.playerCollision(player);\n }", "title": "" }, { "docid": "84cccaee039ed7bad2790c6deaeb5665", "score": "0.6262779", "text": "public void collideVertical() { //Si hay colision con un piso (hacia abajo), se pone la velocidad en Y en 0.\n if (getVelocidadY() > 0) {\n onGround = true; \t\t//Al haber colision, el personaje esta en el piso.\n JUMP_SPEED = -.95f;\t\t// Se cambia la velocidad de salto\n }\n if(estado != Estado.CORRIENDO)//Si estaba Corriendo, sigue asi\n \t\t\testado = Estado.CAMINANDO;\n \t\t\n \t\tif (estado == Estado.CORRIENDO && (getVelocidadX() == 0)) { \t//Se revisa que el jugador este quieto\n \t\t\tif(onGround){\n \t\t\t\testado = Estado.CAMINANDO;\t// Si esta en el piso, el estado es caminando\n \t\t\t} else if(!onGround) {\n \t\t\t\testado = Estado.SALTANDO;\t// Si esta inmovil y se despega del suelo, es un salto\n \t\t\t}\n \t\t}\n setVelocidadY(0); \n }", "title": "" }, { "docid": "d2419d819a5d6442db814b1f255d17e1", "score": "0.6252507", "text": "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "title": "" }, { "docid": "d2419d819a5d6442db814b1f255d17e1", "score": "0.6252507", "text": "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "title": "" }, { "docid": "488187431b55ca27c87943c0615c0249", "score": "0.62454027", "text": "@Override\n\tpublic void handleCollision(GameObject otherObject) {\n\t\t\n\t\tif (otherObject instanceof Flag) {\n\t\t\tint sequenceNumber = ((Flag) otherObject).getSequenceNumber();\n\t\t\tthis.getGameWorld().lastFlagReached(sequenceNumber);\n\t\t}\n\t\tif (otherObject instanceof Spider) {\n\t\t\tthis.getGameWorld().gotten();\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "5e37a0a3a419c56a182fa5205c601cfc", "score": "0.6244028", "text": "@Override\n public void collide(Snake collider) {\n }", "title": "" }, { "docid": "808df2c31fb076040076b07df81c1877", "score": "0.62254846", "text": "public void tick() {\n\t\tcollision();\n\t}", "title": "" }, { "docid": "4efa6d863cbc5efc62bb9b4275fe67f2", "score": "0.62241495", "text": "public void collideCat(Dog dog, EnemyCat cat)\r\n {\r\n dog.collidedWithEnemyCat(cat);\r\n }", "title": "" }, { "docid": "049622521036ba2cef045ff1a42c7047", "score": "0.62217474", "text": "public void handleCollision(ICollider othObject) {\n\t\t\t\tif(othObject instanceof Asteroids) {\n\t\t\t\t\tthis.setFlag(true);\n\t\t\t\t}\n\t\t\t\t//Case 3: ship hits Missile\n\t\t\t\t//\texplode the ship\t\t\n\t\t\t\t//\texplode the missile\n\t\t\t\tif(othObject instanceof Missiles) {\n\t\t\t\t\tthis.setFlag(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 4: ship hits Flying Saucer\n\t\t\t\t//\texplode the ship\t\t\n\t\t\t\t//\texplode the missile\n\t\t\t\tif(othObject instanceof FlyingSaucer) {\n\t\t\t\t\tthis.setFlag(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Case 5: ship hits SpaceStation\n\t\t\t\t//\tdo not explode ship\n\t\t\t\t//\tdo not explode space station.\n\t\t\t\tif(othObject instanceof SpaceStation) {\n\t\t\t\t\tSystem.out.println(\"space ship hit!!\");\n\t\t\t\t\tthis.setFlag(false);\n\t\t\t\t\tthis.setMissiles(10);\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "8fecaf5bd55ae8b0acd36b450c3f4569", "score": "0.6173849", "text": "@Override\r\n public void collisionWith(final AbstractEntity other) {\n\r\n }", "title": "" }, { "docid": "4c2d05808548f66216c30bb9f069a36b", "score": "0.61732286", "text": "@Override\n\tpublic void onPassiveCollide(CollisionGeometryOwner activeCollider, CollisionGeometry myGeo, CollisionGeometry otherGeo) {\n\t}", "title": "" }, { "docid": "406138ff66a661786bdc628a0f4b7567", "score": "0.61723423", "text": "@Override\n public void triggerHit(Tank attacker) {\n\n if (immunity)\n return;\n\n //Basic destroy: remove from gameMap and other issues\n tankDestroy();\n Sound.play(\"/sounds/playerboom.wav\");\n\n if (isP1)\n getGameMap().setP1Tank(null);\n else\n getGameMap().setP2Tank(null);\n\n //reduce life\n int life = isP1 ? getGameMap().getP1Life() : getGameMap().getP2Life();\n if (life == 0) {\n if (getGameMap().getP1Life() == 0 &&\n (!getGameMap().isOnline() || getGameMap().getP2Life() == 0))\n getGameMap().gameOver();\n return;\n }\n life--;\n if (isP1)\n getGameMap().setP1Life(life);\n else\n getGameMap().setP2Life(life);\n\n\n TimerListener revive = new TimerListener() {\n private int frameCounter = (int) (Timeline.FPS * (BORN_SHIELD_SEC + BORN_SEC));\n PlayerTank newTank;\n\n private void revive() {\n // the old tank (PlayerTank.this) will go to gc afterwards.\n newTank = new PlayerTank(isP1, getGameMap());\n\n //When revive, the tank will appear and disappear repeatedly for a while, and becomes immune.\n //This is a 8-frame sequence, where half of the time is blank.\n ImageComponent pic1 = newTank.getSequence().get(0);\n ImageComponent pic2 = newTank.getSequence().get(1);\n ImageComponent blank = new ImageComponent(\"/images/null.png\");\n newTank.setSequence(new ArrayList<>(\n Arrays.asList(pic1.clone(), pic2.clone(), pic1.clone(), pic2.clone(), blank, blank, blank, blank)));\n newTank.gotoAndPlay(0);\n\n newTank.immunity = true;\n }\n\n private void removeShield() {\n\n if (newTank == null)\n return;\n\n newTank.immunity = false;\n\n //Remove frames after frame 2: Does not disappear anymore\n for (int i = 7; i >= 2; i--)\n newTank.getSequence().remove(i);\n }\n\n @Override\n public void onTimer() {\n\n frameCounter--;\n\n //BORN_SEC time has passed\n if (frameCounter == Timeline.FPS * BORN_SHIELD_SEC)\n revive();\n\n //another BORN_SHIELD_SEC time has passed\n else if (frameCounter == 0) {\n removeShield();\n\n //Listener is out of use\n getGameMap().getTimer().removeListener(this);\n }\n }\n };\n\n getGameMap().getTimer().registerListener(revive);\n\n }", "title": "" }, { "docid": "e0eee9ff8b110543eb16a731050ef80d", "score": "0.614705", "text": "public void onCollision(DungeonObject d){\n \tif(d instanceof\tPlayer)\n\t\t\tdealDamage((Player)d);\n \t\n \t// Test auf Massive-Attribut in super.onCollision\n\t\tsuper.onCollision(d);\n }", "title": "" }, { "docid": "83bca4ddf31f8a835b7c29b290408b2e", "score": "0.6145605", "text": "public void collidedBy(WorldObject wobj, float time) {\n\n\t}", "title": "" }, { "docid": "d312d07aec835d119c868720f0af71c9", "score": "0.6139139", "text": "public void hitCheck() \n {\n for (int i = 0; i < bombs.size (); i++) \n {\n Bomb bomb = (Bomb) bombs.get(i);\n float distBetween = dist(bomb.x, bomb.y, this.x, this.y); //distance between bullet and alien\n if (distBetween < 38) // dist betweem for hit box\n { \n bomb.y = height + 100;\n playerLives--; //remove 1 from life\n }\n }\n }", "title": "" }, { "docid": "a0d24ba522437859e46c969cfdb4525a", "score": "0.6137933", "text": "@Override\n public void reactToBeingAttacked(Unit attacker) {\n\n }", "title": "" }, { "docid": "21abe438660ced18152bdb57860715af", "score": "0.61316615", "text": "public void checkCollisions() {\n Rectangle playerRectangle = player.getBounds();\n GameObject[][] objects = tileMap.getWalls();\n ArrayList<Bomb> bombsPlaced = player.getBombsPlaced();\n ArrayList<Enemy> enemies = tileMap.getEnemies();\n ArrayList<Flame> flames = tileMap.getFlames();\n PowerUp powerUp = tileMap.getPowerUp();\n Door door = tileMap.getDoor();\n collisionManager.handleCollisions(\n objects,\n playerRectangle,\n enemies,\n bombsPlaced,\n flames,\n powerUp, door, this.tileMap.isBonusStage()\n );\n\n }", "title": "" }, { "docid": "24994ad17e0cbc8b209af5cf41cfc32a", "score": "0.6130464", "text": "public void attack(PlayerCharacter victim){\n if(coolDown == 0)\n attackStrategy.attack(this, victim, damage);\n }", "title": "" }, { "docid": "d6193545225f2a64f7b437bf1b468db0", "score": "0.61279655", "text": "public boolean causesCollisionsWith(Collidable other);", "title": "" }, { "docid": "98046d6a72ddcbcfb2b72757e757ed17", "score": "0.61184853", "text": "@Override\n\tpublic void onPassiveMovementCollide(CollisionGeometryOwner activeCollider, CollisionGeometry myGeo, CollisionGeometry otherGeo) {\n\t}", "title": "" }, { "docid": "2e23e59f7f13bc1527093d1f97adcc93", "score": "0.6114281", "text": "@Override\n public boolean collide(GameObject object) {\n if (location.equals(object.getLocation())){\n\t\t\t\tSystem.out.println(\"i'm in this location\");\n\t\t\t\tif(object instanceof Pacman){\n\t\t\t\t\tSystem.out.println(\"object is a pacman\");\n\t\t\t\t Pacman p = (Pacman)object;\n\t\t \t\t\tif (p.isInvincible()){\n\t\t\t\t\t\tSystem.out.println(\"invincible\");\n\t\t\t\t\t\tmoveToOrigin();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n }", "title": "" }, { "docid": "240d667523f6bb4a8428ab8d6be61172", "score": "0.61090446", "text": "public boolean collide(EnemyBullet mBullet, Enemy mEnemy) {\n\n if (mBullet.getBounds().intersects(this.getBounds()) && bExplode == false && bCollideActive) {\n //System.out.println(\"this happened\");\n bExplode = true;\n bCollideActive = false;\n return true;\n }\n\n if (mEnemy.getBounds().intersects(this.getBounds()) && bExplode == false && bCollideActive) {\n bExplode = true;\n bCollideActive = false;\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "c91a739d0f7963206e382520c989003d", "score": "0.6106028", "text": "public void checkCollisions(){\n //collision of katch and pop\n if(katchRect.intersects(popRect)){\n soundPlayer.play(false, \"Resources/Sound_katch.wav\");\n if(popRect.getMinY() < katchRect.getMinY()){\n if(popRect.getCenterX() > katchRect.getCenterX())\n pop.fixCollision(CollisionInterface.lowerLeftCollision);\n else if(popRect.getCenterX() < katchRect.getCenterX())\n pop.fixCollision(CollisionInterface.lowerRightCollision);\n \n pop.increaseSpeed();\n }\n }\n \n for (Obstruction bg : obstruction) {\n bgRect = bg.getRect();\n //collision of katch and wall\n if(katchRect.intersects(bgRect)){\n fixCollision(katch, katchRect, bgRect);\n }\n \n if(popRect.intersects(bgRect)){\n //collisions with unbreakable objects \n if(!bg.isBreakable()){\n soundPlayer.play(false, \"Resources/Sound_wall.wav\");\n top.setLocation((int)popRect.getCenterX(), (int)popRect.getMinY()-1);\n bottom.setLocation((int)popRect.getCenterX(), (int)popRect.getMaxY()+1);\n if(bgRect.contains(top))\n pop.setAngle(90);\n else if(bgRect.contains(bottom))\n pop.setAngle(-90);\n\n if(popRect.getCenterX()> bgRect.getCenterX()){\n if(pop.getAngle() > 0)\n pop.setAngle(35);\n else\n pop.setAngle(-35);\n }\n else{\n if(pop.getAngle() > 0)\n pop.setAngle(125);\n else\n pop.setAngle(-125);\n }\n }\n \n //collisions with breakable objects\n else {\n if(!bg.isDestroyed()){\n bg.setDestroyed(true);\n if(bg instanceof Block){\n ((Block) bg).update(this);\n soundPlayer.play(false, \"Resources/Sound_block.wav\");\n }\n if(bg instanceof Bigleg){\n ((Bigleg)bg).update(this);\n enemyCounter--;\n soundPlayer.play(false, \"Resources/Sound_bigleg.wav\");\n }\n fixCollision(pop, popRect, bgRect);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "1f011b86a5c7b0852c376476dda8fc1f", "score": "0.60980093", "text": "public void checkCollision(Person other)\n\t{\n\t\tif (other == lastCollided || !collidesWith(other))\n\t\t\treturn;\n\t\tif (shelterInPlace)\n\t\t\tother.setCollisionWithShelterInPlace(this);\n\t\telse if (other.shelterInPlace)\n\t\t\tsetCollisionWithShelterInPlace(other);\n\t\telse\n\t\t{\n\t\t\tdouble tempdx = other.dx, tempdy = other.dy;\n\t\t\tother.dx = dx;\n\t\t\tother.dy = dy;\n\t\t\tdx = tempdx;\n\t\t\tdy = tempdy;\n\t\t}\n\t\tif (other.viralState == 1 && viralState == 0 && ratePasses(infectRate))\n\t\t\tviralState = other.viralState;\n\t\telse if (viralState == 1 && other.viralState == 0 && ratePasses(infectRate))\n\t\t\tother.viralState = viralState;\n\t\tlastCollided = other;\n\t\tother.lastCollided = this;\n\t}", "title": "" }, { "docid": "be90c6395cdcd8dccaf587155b93bc17", "score": "0.60948235", "text": "public void onUpdate()\n {\n\n super.onUpdate();\n boolean releasing = isReleasing();\n\n if (shooter != null && shootingEntity == null)\n {\n shootingEntity = worldObj.getPlayerEntityByUUID(shooter);\n }\n\n if (releasing)\n {\n motionX = motionY = motionZ = 0;\n this.setDead();\n return;\n }\n if (PokecubeManager.isFilled(getEntityItem())) time--;\n\n if (time == 0 && tilt >= 4) // Captured the pokemon\n {\n PokecubeManager.setTilt(getEntityItem(), -1);\n\n int pokedexNumber = PokecubeManager.getPokedexNb(getEntityItem());\n IPokemob mob = PokecubeManager.itemToPokemob(getEntityItem(), worldObj);\n\n HappinessType.applyHappiness(mob, HappinessType.TRADE);\n if (shootingEntity != null) mob.setPokemonOwner(((EntityPlayer) shootingEntity));\n ItemStack mobStack = PokecubeManager.pokemobToItem(mob);\n this.setEntityItemStack(mobStack);\n\n CaptureEvent.Post event = new CaptureEvent.Post(this);\n MinecraftForge.EVENT_BUS.post(event);\n\n if (!event.isCanceled())\n {\n mob = event.caught;\n mobStack = PokecubeManager.pokemobToItem(mob);\n if (shootingEntity instanceof EntityPlayer && !(shootingEntity instanceof FakePlayer))\n {\n String message = StatCollector.translateToLocalFormatted(\"pokecube.caught\",\n PokecubeMod.core.getTranslatedPokenameFromPokedexNumber(pokedexNumber));\n ((EntityPlayer) shootingEntity).addChatMessage(new ChatComponentText(\"\\u00a7d\" + message));\n\n worldObj.playSoundAtEntity(shootingEntity, PokecubeMod.ID + \":pokecube_caught\", 0.5F, 1.0F);\n }\n setDead();\n }\n else\n {\n setDead();\n }\n return;\n }\n else if (time < 0 && tilt >= 4)\n {\n if (shootingEntity != null)\n {\n Vector3 here = Vector3.getNewVectorFromPool().set(this);\n Vector3 dir = Vector3.getNewVectorFromPool().set(shootingEntity);\n double dist = dir.distanceTo(here);\n dir.subtractFrom(here);\n dir.scalarMultBy(1 / (dist));\n dir.setVelocities(this);\n here.freeVectorFromPool();\n dir.freeVectorFromPool();\n\n }\n }\n else if (time <= 0 && tilt >= 0) // Missed the pokemon\n {\n IPokemob entity1 = PokecubeManager.itemToPokemob(getEntityItem(), worldObj);\n\n if (entity1 != null)\n {\n ((Entity) entity1).setLocationAndAngles(posX, posY + 1.0D, posZ, rotationYaw, 0.0F);\n boolean ret = worldObj.spawnEntityInWorld((Entity) entity1);\n\n if (ret == false)\n {\n System.err.println(String.format(\"The pokemob %1$s spawn from pokecube has failed. \",\n entity1.getPokemonDisplayName()));\n }\n\n entity1.setPokemonAIState(IPokemob.ANGRY, true);\n entity1.setPokemonAIState(IPokemob.SITTING, false);\n entity1.setPokemonAIState(IPokemob.TAMED, false);\n entity1.setPokemonOwnerByName(\"\");\n\n if (shootingEntity instanceof EntityPlayer && !(shootingEntity instanceof FakePlayer))\n {\n ((EntityPlayer) shootingEntity).addChatMessage(\n new ChatComponentText(\"\\u00a7d\" + StatCollector.translateToLocal(\"pokecube.missed\")));\n ((EntityCreature) entity1).setAttackTarget(shootingEntity);\n }\n }\n\n setDead();\n return;\n }\n\n if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F)\n {\n float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);\n this.prevRotationYaw = this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D\n / Math.PI);\n this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(this.motionY, (double) f) * 180.0D\n / Math.PI);\n }\n\n BlockPos pos = tilePos == null ? getPosition() : tilePos;\n IBlockState state = worldObj.getBlockState(pos);\n\n Block block = state.getBlock();\n\n if (block.getMaterial() != Material.air)\n {\n block.setBlockBoundsBasedOnState(this.worldObj, pos);\n AxisAlignedBB axisalignedbb = block.getCollisionBoundingBox(worldObj, pos, state);\n\n if (axisalignedbb != null && axisalignedbb.isVecInside(new Vec3(this.posX, this.posY, this.posZ)))\n {\n this.inGround = true;\n tilePos = pos;\n }\n if (block.getMaterial().isLiquid())\n {\n motionY += 0.1;\n }\n }\n\n if (motionX == motionZ && motionZ == 0)\n {\n this.inGround = true;\n }\n\n if (this.inGround || tilt >= 0)\n {\n int j = block.getMetaFromState(state);\n\n if (block == this.tile && j == this.inData)\n {\n ++this.ticksInGround;\n }\n else\n {\n this.inGround = false;\n this.ticksInGround = 0;\n }\n if (tilt < 0)\n {\n if (PokecubeManager.isFilled(getEntityItem()))\n {\n sendOut();\n }\n else\n {\n\n }\n return;\n }\n }\n if (tilt > 0 || (targetEntity != null && targetEntity.isDead))\n {\n targetEntity = null;\n }\n\n if (targetEntity != null)\n {\n Vector3 here = Vector3.getNewVectorFromPool().set(this);\n Vector3 dir = Vector3.getNewVectorFromPool().set(targetEntity);\n double dist = dir.distanceTo(here);\n dir.subtractFrom(here);\n dir.scalarMultBy(1 / (dist));\n dir.setVelocities(this);\n here.freeVectorFromPool();\n dir.freeVectorFromPool();\n }\n\n }", "title": "" }, { "docid": "4e7d6d6b9081c242699b1e9e1374785c", "score": "0.60943615", "text": "public void collision(PhysicsCollisionEvent event) {\n\t_hasColided = true;\n }", "title": "" }, { "docid": "35bf590b3747c5284f653b7535ec4cab", "score": "0.60928047", "text": "public void collidePlatform(Dog dog1, Platform platform)\r\n { \r\n \r\n dog1.hasCollided(platform);\r\n }", "title": "" }, { "docid": "fbcc996eeb28a72fca5164a6c50d8057", "score": "0.60919774", "text": "public void CarCollide(Car c) {\n\t\tRectangle r1 = new Rectangle(this.x+20, this.y+20, 25, 30);\r\n\t\t\r\n\t\t//Represent Coin as a rectangle\r\n\t\tRectangle r2 = new Rectangle(c.getX()+10, c.getY()+10, 30, 30);\r\n\t\t\r\n\t\tif(r1.intersects(r2)) {\r\n\t\t\tx=150;\r\n\t\t\ty=600;\r\n\t\t\tSystem.out.println(\"car\");\r\n\t\t\tdead = true;\r\n\t\t}\r\n\t\t//else{collide=0;}\r\n\t}", "title": "" }, { "docid": "66ddb5532c0d16d44ad9224af37ddff5", "score": "0.608847", "text": "void hitEvent(Block beingHit, Ball hitter);", "title": "" }, { "docid": "66ddb5532c0d16d44ad9224af37ddff5", "score": "0.608847", "text": "void hitEvent(Block beingHit, Ball hitter);", "title": "" }, { "docid": "6e847085120403c4762462ea906fa86c", "score": "0.60844284", "text": "@Override\n public void OnCollision(LegacyGameObject o){\n super.OnCollision(o);\n }", "title": "" }, { "docid": "e76c3c5bfce31beb1f99c973d64aacbf", "score": "0.60783756", "text": "public void collide(Wall wall){}", "title": "" }, { "docid": "06526a38bc8edd81c25cd7eda1950ea6", "score": "0.60763025", "text": "public void think()\r\n\t{\r\n\t\tif ( m_iHealth < 0 ) m_iHealth = 0;\r\n\t\t\r\n\t\t//Keep the angle between 0 and 360.\r\n\t\tthis.m_iAngle %= 360;\r\n\t\tif ( this.m_iAngle < 0 ) this.m_iAngle += 360;\r\n\t\tthis.m_iIntendedAngle %= 360;\r\n\t\tif ( this.m_iIntendedAngle < 0 ) this.m_iIntendedAngle += 360;\r\n\t\t\r\n\t\t//Make sure the collision rectangle shadows this entity.\r\n\t\tm_hCollisionRect.setBounds((int)m_fXPos, (int)m_fYPos, (int)m_hCollisionRect.getWidth(), (int)m_hCollisionRect.getHeight());\r\n\t\t\r\n\t\t//If this entity wants to move to a position, then let's glide it there.\r\n\t\t//Unless it takes too long to get there, in which case assume it's unreachable.\r\n\t\tif ( m_bIntentToGlide && (m_fIntendedXPos != m_fXPos\r\n\t\t\t|| m_fIntendedYPos != m_fYPos) && Utils.ts().g_iTicks < m_iStartMoveTime + m_iMoveTime * 2 )\r\n\t\t{\r\n\t\t\tm_iPrevCollisions = m_iCurCollisions;\r\n\t\t\tm_iCurCollisions = this.setPosition( m_fXPos + m_fMoveXSpeed, m_fYPos + m_fMoveYSpeed, true );\r\n\t\t\t//If this stops colliding with another bounding box, then re-calculate the speed to the intended position.\r\n\t\t\tif ( m_iPrevCollisions != 0 && m_iCurCollisions == 0 )\r\n\t\t\t\tthis.setIntendedPosition(m_fIntendedXPos, m_fIntendedYPos, m_iMoveTime - (Utils.ts().g_iTicks - m_iStartMoveTime));\r\n\t\t}\r\n\t\t//If this entity's near a point, then set its position to equal the position of the point.\r\n\t\tif ( (m_fIntendedXPos >= m_fXPos - 3\r\n\t\t\t&& m_fIntendedXPos <= m_fXPos + 3)\r\n\t\t\t&& (m_fIntendedYPos >= m_fYPos - 3\r\n\t\t\t\t&& m_fIntendedYPos <= m_fYPos + 3)\r\n\t\t\t\t&& m_bIntentToGlide )\r\n\t\t{\r\n\t\t\tthis.setPosition( m_fIntendedXPos, m_fIntendedYPos, false );\r\n\t\t\tm_bIntentToGlide = false;\r\n\t\t}\r\n\t\t\r\n\t\t//If we want to smoothly rotate to a target angle, then let's do just that.\r\n\t\tif ( m_bIntentToTurn && this.m_iAngle != this.m_iIntendedAngle && Utils.ts().g_iTicks > this.m_iNextRotateTime )\r\n\t\t{\r\n\t\t\tthis.m_iAngle = this.m_iAngle + (m_bRotateDir ? 1 : -1);\r\n\t\t\tthis.m_iNextRotateTime = Utils.ts().g_iTicks + this.m_iRotateSpeed;\r\n\t\t}\r\n\t\t//Since the angle turns by one degree every few ticks or so, we don't need to worry about catching it within a range,\r\n\t\t//unlike with the position (which uses floating point numbers, whereas angles here use integers).\r\n\t\telse if ( m_bIntentToTurn && this.m_iAngle == this.m_iIntendedAngle)\r\n\t\t{\r\n\t\t\tm_bIntentToTurn = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1c06988914ccc9520a14f4d8024a0e3d", "score": "0.6073844", "text": "public void tick() {\r\n LivingEntity livingentity = FlyingEnemy.this.getAttackTarget();\r\n if (FlyingEnemy.this.getBoundingBox().grow((double) 0.2F).intersects(livingentity.getBoundingBox())) {\r\n FlyingEnemy.this.attackEntityWithRangedAttack(livingentity);\r\n FlyingEnemy.this.attackPhase = FlyingEnemy.AttackPhase.CIRCLE;\r\n FlyingEnemy.this.world.playEvent(1039, new BlockPos(FlyingEnemy.this), 0);\r\n } else if (FlyingEnemy.this.collidedHorizontally || FlyingEnemy.this.hurtTime > 0) {\r\n FlyingEnemy.this.attackPhase = FlyingEnemy.AttackPhase.CIRCLE;\r\n }\r\n }", "title": "" }, { "docid": "0d91e9b9087b8d516a418f5a43c2db63", "score": "0.6064156", "text": "public void collide (GameEntity ge)\n\t{\n\t\tge.collide(this);\n\t}", "title": "" }, { "docid": "179042914d5da18d7889ea6d02bce912", "score": "0.60552824", "text": "private void collide(Body hero, Body rival) {\n\t\t\n\t\tmodel.recordCollision();\n\t\t\n\t\t// Masses\n\t\tfinal double m1 = hero.getMass();\n\t\tfinal double m2 = rival.getMass();\n\t\t\n\t\t// Initial Positions\n\t\tfinal double x1 = hero.getPosition().x;\n\t\tfinal double y1 = hero.getPosition().y;\n\t\tfinal double x2 = rival.getPosition().x;\n\t\tfinal double y2 = rival.getPosition().y;\n\t\t\n\t\t// Initial Component Velocities\n\t\tfinal double v1x = hero.getVelocity().x;\n\t\tfinal double v1y = hero.getVelocity().y;\n\t\tfinal double v2x = rival.getVelocity().x;\n\t\tfinal double v2y = rival.getVelocity().y;\n\t\t\n\t\t// define sqrt\n\t\tfinal double sqrt = Math\n\t\t .sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n\t\t\n\t\t// Initial Normal Velocities\n\t\tfinal double v1n = (v1x * (x2 - x1) + v1y * (y2 - y1)) / sqrt;\n\t\tfinal double v2n = (v2x * (x2 - x1) + v2y * (y2 - y1)) / sqrt;\n\t\t\n\t\t// Final Normal Velocities -- dependent on mass\n\t\tfinal double v1nf = (v1n * (m1 - m2) + 2 * m2 * v2n) / (m1 + m2);\n\t\tfinal double v2nf = (v2n * (m1 - m2) + 2 * m1 * v1n) / (m1 + m2);\n\t\t\n\t\t// Final Normal Component Velocities -- dependent on mass\n\t\tfinal double v1nfx = (v1nf * (x2 - x1)) / sqrt;\n\t\tfinal double v1nfy = (v1nf * (y2 - y1)) / sqrt;\n\t\tfinal double v2nfx = (v2nf * (x2 - x1)) / sqrt;\n\t\tfinal double v2nfy = (v2nf * (y2 - y1)) / sqrt;\n\t\t\n\t\t// Tangent Velocities -- not dependent on mass\n\t\tfinal double utx = -(y2 - y1) / sqrt;\n\t\tfinal double uty = (x2 - x1) / sqrt;\n\t\tfinal double v1t = (v1x * (-(y2 - y1)) + v1y * (x2 - x1)) / sqrt;\n\t\tfinal double v2t = (v2x * (-(y2 - y1)) + v2y * (x2 - x1)) / sqrt;\n\t\t\n\t\t// Tangent Component Velocities -- not dependent on mass\n\t\tfinal double v1tx = v1t * utx;\n\t\tfinal double v1ty = v1t * uty;\n\t\tfinal double v2tx = v2t * utx;\n\t\tfinal double v2ty = v2t * uty;\n\t\t\n\t\t// Final Component Velocities -- dependent on mass\n\t\tfinal double v1fx = v1nfx + v1tx;\n\t\tfinal double v1fy = v1nfy + v1ty;\n\t\tfinal double v2fx = v2nfx + v2tx;\n\t\tfinal double v2fy = v2nfy + v2ty;\n\t\t\n\t\t// Assign new velocities to bodies\n\t\thero.setVelocity(new Point.Double(v1fx, v1fy));\n\t\trival.setVelocity(new Point.Double(v2fx, v2fy));\n\t\t\n\t}", "title": "" }, { "docid": "f99ce698568bed0e3d3c16c02c94d93c", "score": "0.6044604", "text": "@Override\n public void collision(ArrayList<Game_Object> obj) {\n for (int i = 0; i < obj.size(); i++) {\n \tif(collidesWith(obj.get(i)) && (obj.get(i) instanceof Unit)) {\n \t\tUnit unit = (Unit) obj.get(i);\n \t\tdamage(unit.getColDamage());\n \t\tSystem.out.println(\"Collision!\");\n \t}\n \tif(collidesWith(obj.get(i)) && (obj.get(i) instanceof Item)) {\n \t\tItem item = (Item) obj.get(i);\n \t\titem.pickUp(this);\n \t}\n }\n }", "title": "" }, { "docid": "8b15c91bc1f1eab6831b5196ff011bf3", "score": "0.6044334", "text": "public void processCollision(float delta) {\n \t\n \tworld.step(delta, 1, 1);\n \t\n \t\n \tworld.setContactListener(new ContactListener() {\n @Override\n public void beginContact(Contact contact) {\n \t\n \t\n \tif (!gPS.getgLL().isEndLevel() && !gPS.getgLL().isGameOver()) {\n \t \n \t\n\t \tString objectStrA = (String)contact.getFixtureA().getBody().getUserData();\n\t \tString objectStrB = (String)contact.getFixtureB().getBody().getUserData();\n\t \t\n\t \t\n\t \tSpawnObject objectA = spawnPool.getElementWithCollisionById(objectStrA);\n\t \tSpawnObject objectB = spawnPool.getElementWithCollisionById(objectStrB);\n\t \t\n\t \tString msg = \"\";\n\t \t\n\t \tif ((objectA != null) && (objectB != null)) {\n\t\t \tif (((objectA instanceof Missile) || (objectA instanceof Meteor) || (objectA instanceof SimpleEnemy) || (objectA instanceof Turret) ) &&\n\t\t \t((objectB instanceof Missile) || (objectB instanceof Meteor) || (objectB instanceof SimpleEnemy) || (objectB instanceof Turret) )) {\n\t\t \t\t\n\t\t \t\t\n\t\t \t\t\n\t\t \t\tboolean isMissilePlayerA = false;\n\t\t \t\tboolean isMissilePlayerB = false;\n\t\t \t\tboolean isMissileEnemyA = false;\n\t\t \t\tboolean isMissileEnemyB = false;\n\t\t \t\tboolean isEnemyA = false;\n\t\t \t\tboolean isEnemyB = false;\n\t\t \t\tboolean isMeteorA = false;\n\t\t \t\tboolean isMeteorB = false;\n\t\t \t\tboolean isTurretA = false;\n\t\t \t\tboolean isTurretB = false;\n\t\t \t\t\n\t\t \t\tSimpleEnemy enemyA = null;\n\t\t \t\tSimpleEnemy enemyB = null;\n\t\t \t\t\n\t\t \t\tMeteor meteorA = null;\n\t\t \t\tMeteor meteorB = null;\n\t\t \t\t\n\t\t \t\tTurret turretA = null;\n\t\t \t\tTurret turretB = null;\n\t\t \t\t\n\t\t \t\tif (objectA instanceof Missile) {\n\t\t \t\t\tMissile missile = (Missile)objectA;\t\n\t\t \t\t\tisMissilePlayerA = missile.getType().equals(SpawnType.MissilePlayer);\n\t\t \t\t\tisMissileEnemyA = !isMissilePlayerA;\n\t\t \t\t\t\n\t\t \t\t}else if (objectA instanceof SimpleEnemy) {\n\t\t \t\t\tenemyA = (SimpleEnemy)objectA;\n\t\t \t\t\tisEnemyA = true;\n\t\t \t\t\t\n\t\t \t\t}else if (objectA instanceof Meteor) {\n\t\t \t\t\tmeteorA = (Meteor)objectA;\n\t\t \t\t\tisMeteorA = true;\n\t\t \t\t\t\n\t\t \t\t}else if (objectA instanceof Turret) {\n\t\t \t\t\tturretA = (Turret)objectA;\n\t\t \t\t\tisTurretA = true;\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\tif (objectB instanceof Missile) {\n\t\t \t\t\t\n\t\t \t\t\tMissile missile = (Missile)objectB;\t\n\t\t \t\t\tisMissilePlayerB = missile.getType().equals(SpawnType.MissilePlayer);\n\t\t \t\t isMissileEnemyB = !isMissilePlayerB;\n\t\t \t\t \n\t\t \t\t}else if (objectB instanceof SimpleEnemy) {\n\t\t \t\t\t\n\t\t \t\t\tenemyB = (SimpleEnemy)objectB;\n\t\t \t\t\tisEnemyB = true;\n\t\t \t\t\t\n\t\t \t\t}else if (objectB instanceof Meteor) {\n\t\t \t\t\tmeteorB = (Meteor)objectB;\n\t\t \t\t\tisMeteorB = true;\n\t\t \t\t\t\n\t\t \t\t}else if (objectB instanceof Turret) {\n\t\t \t\t\tturretB = (Turret)objectB;\n\t\t \t\t\tisTurretB = true;\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\t\n\t\t \t\tif (isMissilePlayerA && isEnemyB) {\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t\t \t\t\t\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemyB.getX(),enemyB.getY());\n\t\t \t\t\t\n\t\t \t\t}else if (isMissilePlayerB && isEnemyA) {\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t\t \t\t\t\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemyA.getX(),enemyA.getY());\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\t\n\t\t \t\tif (isMissilePlayerA && isMeteorB) {\n\t\t \t\t\t\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteorB.getX(),meteorB.getY());\n\t\t \t\t\t\n\t\t \t\t\ttoCreatedItemsWithCollision.add(new NewItem(SpawnType.Item,meteorB.getX(),meteorB.getY()));\n\t\t \t\t\t\n\t\t \t\t}else if (isMissilePlayerB && isMeteorA) {\n\t\t \t\t\t\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteorA.getX(),meteorA.getY());\n\t\t \t\t\t\n\t\t \t\t\ttoCreatedItemsWithCollision.add(new NewItem(SpawnType.Item,meteorA.getX(),meteorA.getY()));\t\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\t\n\t\t \t\tif (isMissilePlayerA && isTurretB) {\n\t\t \t\t\t\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,turretB.getX(),turretB.getY());\n\t\t \t\t\t\n\t\t \t\t\t\n\t\t \t\t}else if (isMissilePlayerB && isTurretA) {\n\t\t \t\t\t\n\t\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,turretA.getX(),turretA.getY());\n\t\t \t\t\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\t\n\t\t \t\t\n\t\t \t\t\n\t\t \t\t\n\t\t \t\tif (isEnemyA && isMeteorB) {\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemyA.getX(),enemyA.getY());\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteorB.getX(),meteorB.getY());\n\t\t \t\t\t\n\t\t \t\t\t\n\t\t \t\t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureA().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureA().getBody());\n\t\t\t \t\t\t}\n\t\t\t \t\t\n\t\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureB().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureB().getBody());\n\t\t\t \t\t\t}\n\t\t \t\t\t\n\t\t \t\t\t\n\t\t \t\t}else if (isEnemyB && isMeteorA) {\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemyB.getX(),enemyB.getY());\n\t\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteorA.getX(),meteorA.getY());\n\t\t \t\t\t\n\t\t \t\t\t\n\t\t \t\t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureA().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureA().getBody());\n\t\t\t \t\t\t}\n\t\t\t \t\t\n\t\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureB().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureB().getBody());\n\t\t\t \t\t\t}\n\t\t\t \t\t \n\t\t \t\t}\n\t\t \t\t\n\t\t \t\tif ((isMissilePlayerA && (isMissileEnemyB || isEnemyB || isMeteorB || isTurretB)) || \n\t\t \t\t (isMissilePlayerB && (isMissileEnemyA || isEnemyA || isMeteorA || isTurretA))) {\n\t\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureA().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureA().getBody());\n\t\t\t \t\t\t}\n\t\t\t \t\t\n\t\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureB().getBody())) {\n\t\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureB().getBody());\n\t\t\t \t\t\t}\n\t\t \t\t}\n\t\t\n\t\t \t}\n\t \t}\n\t \t\n\t \t\n\t \tif (((player.getCode().equals(objectStrA )) && ((objectB instanceof Meteor) || (objectB instanceof Missile) || (objectB instanceof Turret) || (objectB instanceof Bonus) || (objectB instanceof SimpleEnemy)))){\n\t \t\t\n\t \t\t\n\t \t\tboolean isMissileEnemy = false;\n\t \t\tboolean isEnemy = false;\n\t \t\tboolean isMeteor = false;\n\t \t\tboolean isBonus = false;\n\t \t\tboolean isTurret = false;\n\t \t\t\n\t \t\tBonus bonus = null;\n\t \t\t\n\t \t\t\n\t \t\tif (objectB instanceof Missile) {\n\t \t\t\tMissile missile = (Missile)objectB;\t\n\t \t\t\tisMissileEnemy = missile.getType().equals(SpawnType.MissileEnemy);\n\t \t\t\n\t \t\t}else if (objectB instanceof SimpleEnemy) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t \t\t\tSimpleEnemy enemy = (SimpleEnemy)objectB;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemy.getX(),enemy.getY()); \t\t\t\n\t \t\t\tisEnemy = true;\n\t \t\t\n\t \t\t}else if (objectB instanceof Turret) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t \t\t\tTurret turret = (Turret)objectB;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne, turret.getX(), turret.getY()); \t\t\t\n\t \t\t\tisTurret = true;\n\t \t\t\n\t \t\t} else if (objectB instanceof Meteor) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tMeteor meteor = (Meteor)objectB;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteor.getX(),meteor.getY());\n\t \t\t\t\n\t \t\t\ttoCreatedItemsWithCollision.add(new NewItem(SpawnType.Item,meteor.getX(),meteor.getY()));\n\t \t\t\t\n\t \t\t\tisMeteor = true;\n\t \t\t\t\n\t \t\t}else if (objectB instanceof Bonus) {\n\t \t\t\tbonus = (Bonus)objectB;\n\t \t\t\tsfxBonus.play(sfxBonusVolume);\n\t \t\t\tisBonus = true;\n\t \t\t}\n\t \t\t\n\t \t\t if (isBonus) { \n\t \t\t\tsetTypeShoot(bonus); \n\t \t\t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureB().getBody())) {\n\t\t\t \t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureB().getBody());\n\t\t\t \t\t}\t\n\t\t \t }\n\t \t\t\n\t \t\t\n\t \t\n\t \t\tif (isMissileEnemy || isEnemy || isMeteor || isTurret) {\n\t \t\t\tgPS.getgLL().processCollision();\n\t \t\t\tsfxCrash.play(sfxCrashVolume);\n\t \t\t\t\n\t \t\t\tif (gPS.getgLL().isGameOver()) {\n\t \t\t\t\tplayer.setEndMap(true);\n\t \t\t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeTwo,player.getX(),player.getY()); \n\t \t\t\t}\n\t \t\t\t\n\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureB().getBody())) {\n\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureB().getBody());\n\t\t \t\t\t}\n\t \t\t}\n\t \t\t\t}\n\t \t\n\t \tif (((player.getCode().equals(objectStrB )) && ((objectA instanceof Meteor) || (objectA instanceof Missile) || (objectA instanceof Turret) || (objectA instanceof Bonus) || (objectA instanceof SimpleEnemy)))){\n\t \t\t\n\t \t\tboolean isMissileEnemy = false;\n\t \t\tboolean isEnemy = false;\n\t \t\tboolean isMeteor = false;\n\t \t\tboolean isBonus = false;\n\t \t\tboolean isTurret = false;\n\t \t\t\n\t \t\tBonus bonus = null;\n\t \t\t\n\t \t if (objectA instanceof Missile) {\n\t \t\t\t\n\t \t \tMissile missile = (Missile)objectA;\t\n\t \t\t\tisMissileEnemy = missile.getType().equals(SpawnType.MissileEnemy);\n\t \t\t\t\n\t \t\t}else if (objectA instanceof SimpleEnemy) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t \t\t\tSimpleEnemy enemy = (SimpleEnemy)objectA;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,enemy.getX(),enemy.getY());\n\t \t\t\tisEnemy = true;\n\t \t\t\t\n\t \t\t}else if (objectA instanceof Turret) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tgPS.getgLL().setKills(gPS.getgLL().getKills()+1);\n\t \t\t\tTurret turret = (Turret)objectA;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne, turret.getX(), turret.getY()); \t\t\t\n\t \t\t\tisTurret = true;\n\t \t\t\n\t \t\t}else if (objectA instanceof Meteor) {\n\t \t\t\t\n\t \t\t\tgPS.getgLL().setScorePlayer(gPS.getgLL().getScorePlayer()+100);\n\t \t\t\tMeteor meteor = (Meteor)objectA;\n\t \t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeOne,meteor.getX(),meteor.getY());\n\t \t\t\t\n\t \t\t\ttoCreatedItemsWithCollision.add(new NewItem(SpawnType.Item,meteor.getX(),meteor.getY()));\n\t \t\t\t\n\t \t\t\tisMeteor = true;\n\t \t\t\t\n\t \t\t}else if (objectA instanceof Bonus) {\n\t \t\t\tbonus = (Bonus)objectA;\n\t \t\t\tsfxBonus.play(sfxBonusVolume);\n\t \t\t\tisBonus = true;\n\t \t\t}\n\t \t \n\t \t \n\t \t if (isBonus) {\n\t \t \tsetTypeShoot(bonus); \n\t \t \tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureA().getBody())) {\n\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureA().getBody());\n\t\t \t\t\t}\n\t \t \t\n\t \t }\n\t \t \n\t \t \n\t \t\tif (isMissileEnemy || isEnemy || isMeteor || isTurret) {\n\t \t\t\tsfxCrash.play(sfxCrashVolume);\n\t \t\t\tgPS.getgLL().processCollision();\n\t \t\t\t\n\t \t\t\tif (gPS.getgLL().isGameOver()) {\n\t \t\t\t\tplayer.setEndMap(true);\n\t \t\t\t\texplosionGeneration(ExplosionsEnum.ExplosionTypeTwo,player.getX(),player.getY()); \n\t \t\t\t}\n\t \t\t\t\n\t\t \t\tif (!GameElementLogic.toDeletedBodiesWithCollision.contains(contact.getFixtureA().getBody())) {\n\t\t \t\t\t\tGameElementLogic.toDeletedBodiesWithCollision.add(contact.getFixtureA().getBody());\n\t\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t\t\n\t \t\t\n\t \t\t\n\t \t\t\t}\n \t\n \t}\n }\n\n @Override\n public void endContact(Contact contact) {\n }\n\n @Override\n public void preSolve(Contact contact, Manifold oldManifold) {\n }\n\n @Override\n public void postSolve(Contact contact, ContactImpulse impulse) {\n }\n });\n }", "title": "" }, { "docid": "093f2115af56bfc7010f1a278690507e", "score": "0.60402757", "text": "public static void collide(GameObject A, GameObject B, int collisionType)\r\n {\r\n //Single detection\r\n if (A instanceof SpellObject || B instanceof SpellObject)\r\n {\r\n if (A instanceof SpellObject && !B.equals(((SpellObject)A).caster))\r\n {\r\n ((SpellObject) A).collisionEffect();\r\n }\r\n if (B instanceof SpellObject && !A.equals(((SpellObject)B).caster))\r\n {\r\n ((SpellObject) B).collisionEffect();\r\n }\r\n }\r\n\r\n\r\n else if (A instanceof Player || B instanceof Player)\r\n {\r\n A.collisionEffect(B);\r\n B.collisionEffect(A);\r\n\r\n if (A instanceof Player)\r\n {\r\n if (B.canMove())\r\n {\r\n B.move(A.getVelocityX()/2,A.getVelocityZ()/2);\r\n A.move(-A.getVelocityX()/2,-A.getVelocityZ()/2);\r\n }\r\n else\r\n {\r\n A.move(-A.getVelocityX(), -A.getVelocityZ());\r\n }\r\n }\r\n else {\r\n ;\r\n }\r\n\r\n if (B instanceof Player)\r\n {\r\n if (A.canMove())\r\n {\r\n A.move(B.getVelocityX()/2, B.getVelocityZ()/2);\r\n B.move(-B.getVelocityX()/2, -B.getVelocityZ()/2);\r\n }\r\n else\r\n {\r\n B.move(-B.getVelocityX(), -B.getVelocityZ());\r\n }\r\n }\r\n else {\r\n ;\r\n }\r\n }\r\n\r\n //They 'bump' into each other\r\n else\r\n {\r\n A.collisionEffect(B);\r\n B.collisionEffect(A);\r\n\r\n if (A.canMove() && (B.dX != 0 || B.dZ !=0))\r\n {\r\n A.mapX += B.dX;\r\n A.mapZ += B.dZ;\r\n A.getLoc();\r\n\r\n }\r\n\r\n else\r\n {\r\n A.mapX += -A.dX;\r\n A.mapZ += -A.dZ;\r\n A.getLoc();\r\n }\r\n\r\n if (B.canMove() && (A.dX != 0 || A.dZ !=0))\r\n {\r\n B.mapX += A.dX;\r\n B.mapZ += A.dZ;\r\n B.getLoc();\r\n }\r\n\r\n else\r\n {\r\n B.mapX += -B.dX;\r\n B.mapZ += -B.dZ;\r\n B.getLoc();\r\n }\r\n }\r\n\r\n\r\n\r\n //Double detection\r\n /*\r\n if (A instanceof Player || B instanceof Player)\r\n {\r\n if (A instanceof Player)\r\n {\r\n if (B.canMove())\r\n {\r\n B.setVelocityX(A.getVelocityX()/2);\r\n B.setVelocityZ(A.getVelocityZ()/2);\r\n B.changeXZ();\r\n }\r\n else;\r\n }\r\n else;\r\n\r\n if (B instanceof Player)\r\n {\r\n if (A.canMove())\r\n {\r\n A.setVelocityX(B.getVelocityX()/2);\r\n A.setVelocityZ(B.getVelocityZ()/2);\r\n A.changeXZ();\r\n }\r\n else;\r\n }\r\n else;\r\n }\r\n\r\n //They 'bump' into each other\r\n else\r\n {\r\n if (A.canMove() && B.dX != 0 || B.dZ !=0)\r\n {\r\n A.mapX += B.dX;\r\n A.mapZ += B.dZ;\r\n A.getLoc();\r\n System.out.print(\"1\\n\");\r\n\r\n }\r\n\r\n else\r\n {\r\n A.mapX += -A.dX;\r\n A.mapZ += -A.dZ;\r\n A.getLoc();\r\n System.out.print(\"2\\n\");\r\n }\r\n\r\n if (B.canMove() && A.dX != 0 || A.dZ !=0)\r\n {\r\n System.out.print(\"3\\n\");\r\n B.mapX += A.dX;\r\n B.mapZ += A.dZ;\r\n B.getLoc();\r\n }\r\n\r\n else\r\n {\r\n System.out.print(\"4\\n\");\r\n B.mapX += -B.dX;\r\n B.mapZ += -B.dZ;\r\n B.getLoc();\r\n }\r\n }\r\n */\r\n }", "title": "" }, { "docid": "34ff3fcb549c327a3c1fd2064a22ba57", "score": "0.60329753", "text": "void hitEvent(Paddle beingHit, Ball hitter);", "title": "" }, { "docid": "a1cd9326b4509411d9df46d836cca278", "score": "0.60310835", "text": "public void updateAfterCollision(DroidEnemy player)\r\n\t{\n\t\tfloat x = m_lastPosition.X;\r\n\t\tfloat y = m_lastPosition.Y;\r\n\t\tfloat lx = m_lastPosition.X;\r\n\t\tfloat ly = m_lastPosition.Y;\r\n\t\tVector pPos = player.m_lastPosition;\r\n\t\tfloat lpx = pPos.X;\r\n float lpy = pPos.Y;\r\n\t\tVector bVel = new Vector(m_velocity.X, m_velocity.Y);\r\n\t\tVector pVel = new Vector(player.m_velocity.X, player.m_velocity.Y);\r\n\t\tBody bBody = new Body(new Circle(width/2), 0);\r\n\t\tBody pBody = new Body(new Circle(player.width/3), 0);\r\n\t\t\r\n\t\tfor(int i=5;i<100;i+=5)\r\n\t\t{\r\n\t\t\tbBody.setPosition(x+ width/2 + bVel.X * i/100, y + height/2 + bVel.Y * i/100);\r\n\t\t\t//store transform, (like opengl's glPushMatrix())\r\n\t Matrix mat1 = new Matrix();\r\n\t //transform into position\r\n\t float dx = pPos.X + pVel.X * i/100;\r\n\t float dy = pPos.Y + pVel.Y * i/100;\r\n\t mat1.setRotate(player.m_angle, dx+15, dy+15);\r\n\t \r\n\t float []pointsToTrans = new float[]{dx+ (player.width)/2, dy+ (player.height)/2};\r\n\t mat1.mapPoints(pointsToTrans);\r\n\t \r\n\t\t\tpBody.setPosition(pointsToTrans[0], pointsToTrans[1]);\r\n\t\t\t\r\n\t\t\tCircleCircleCollider collider3 = new CircleCircleCollider();\r\n\t \t\r\n\t \t//Check for player ball collision....\r\n\t\t\tContact[] contacts = new Contact[] {new Contact(), new Contact()};\r\n\t\t\tint count = collider3.collide(contacts, pBody, bBody);\r\n\t\t\tif(count > 0)\r\n\t\t\t{\r\n\t\t\t\t//this is collision point...\r\n\t\t\t\tplayer.m_position.setVector(lpx, lpy);\r\n\t\t\t\tthis.m_position.setVector(lx, ly);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tlx = x + bVel.X * i/100;\r\n\t\t\tly = y + bVel.Y * i/100;\r\n\t\t\tlpx = dx;\r\n\t\t\tlpy = dy;\r\n\t\t}\r\n\t\t\r\n\t\t//Calculate resulting velocity using Momentum Laws...\r\n\t\tfloat v1ix = player.m_velocity.X, v2ix = this.m_velocity.X;// = initial (pre-collision) velocity of blocks\r\n\t\tfloat v1fx, v2fx;// = final (post-collision) velocity of blocks\r\n\t\tfloat v1iy = player.m_velocity.Y, v2iy = this.m_velocity.Y;// = initial (pre-collision) velocity of blocks\r\n\t\tfloat v1fy, v2fy;// = final (post-collision) velocity of blocks\r\n\t\tlong m1 = 100, m2 = 5;// = mass of blocks\r\n\t\t\r\n\t\tv1fx = -v1ix + 2*(m1 * v1ix + m2 * v2ix)/(m1 + m2);\r\n\t\tv2fx = -v2ix + 2*(m1 * v1ix + m2 * v2ix)/(m1 + m2);\r\n\t\t\r\n\t\tv1fy = -v1iy + 2*(m1 * v1iy + m2 * v2iy)/(m1 + m2);\r\n\t\tv2fy = -v2iy + 2*(m1 * v1iy + m2 * v2iy)/(m1 + m2);\r\n\t\t\r\n\t\tplayer.m_velocity.setVector(v1fx, v1fy);\r\n\t\tthis.m_velocity.setVector(v2fx, v2fy);\r\n\t\t//Finish Velocity Calculate...\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c949fcbe6f8880dc55d82bd3f7eab3fe", "score": "0.60296756", "text": "private void doAttack(int actorId, PositionVector actorPos, int defenderId, PositionVector defenderPos, int damage) {\n }", "title": "" } ]
634f310cbb1a2553a8aca043649eeee2
Created by Alex on 2/26/17.
[ { "docid": "893f96ae4a18cae0178ec66e6884ad60", "score": "0.0", "text": "public interface GuestReservationDao extends JpaRepository<GuestReservation, Long> {\n\n List<GuestReservation> findByReservationId(Long id);\n\n List<GuestReservation> findByGuestId(Long id);\n\n List<GuestReservation> findByGuestIdAndReservationArrivalDateBefore(Long id, Date arrivalDate);\n\n Optional<GuestReservation> findByGuestIdAndReservationId(Long guestId, Long reservationId);\n}", "title": "" } ]
[ { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5799453", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5799453", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.5760411", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.57070816", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5689084", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.56638473", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.5645949", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.56062496", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.56052804", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.55609775", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.55609775", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.5529013", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.5514284", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5506271", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.5504981", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5503002", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.5485246", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5483816", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.54834497", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.54793584", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5470024", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5470024", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.5454583", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "11d78d8d83b1b65293f5da6fb36c371b", "score": "0.5448639", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.543339", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5430975", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5424021", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a23cfe6eb1e3b4f042f03089a0f3e2f1", "score": "0.53914773", "text": "public final void mo34057y() {\n }", "title": "" }, { "docid": "8ff38dd3eaa9185a0355a9a5d33f6786", "score": "0.5384791", "text": "public static void _17 () {\n }", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.53812575", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.53797823", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.53797823", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.53797823", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5373269", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5367523", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5364718", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.53501433", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.53501433", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5349858", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5349858", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.53496325", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.53443384", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "da059b94540022e282b424f37c52abbd", "score": "0.5335134", "text": "public abstract void mo42512d();", "title": "" }, { "docid": "1e068e9a0b402d5c66c4bcd244738ebd", "score": "0.5333733", "text": "public void zamow() {\n\t\t\n\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.5321935", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.53195256", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.53189987", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5312589", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "083b1213b275772e56abee4ff39a7e1e", "score": "0.5308008", "text": "public abstract void mo2247c();", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53067094", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53067094", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53067094", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53067094", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "4967ef46e478afb6b9857c1ae38f9d31", "score": "0.53006893", "text": "private static void withraw() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.529926", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.52950686", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.5294946", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5289043", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5289043", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5289043", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5289043", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5289043", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "7b7a2c774aed222ddd92948cb7f5cf10", "score": "0.528111", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.5272803", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5270776", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5270776", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5270776", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "cb1da1c7693241eb3e67e8eebb18fd3d", "score": "0.5260874", "text": "public static void _19 () {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5256452", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5256452", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5256452", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.5254968", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.525469", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.52433956", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "22bd6b39ddec72c749f541898a9abc17", "score": "0.52433693", "text": "public abstract void mo2246b();", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.5241508", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.5240771", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "c5279e0c512854cbd0006208a1abf1e4", "score": "0.52307105", "text": "public void sprzedaj() {\n\t\t\n\t}", "title": "" }, { "docid": "bd469c63919a899125dd2e538096f15b", "score": "0.5218923", "text": "private void init() {}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5206906", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "2a64c600c4e3a5f37cd0e327a66e3da5", "score": "0.51996917", "text": "public void zwroc() {\n\t\t\n\t}", "title": "" }, { "docid": "0021e4ac28e65eeb87e0ddbe1a7a6bf9", "score": "0.51990145", "text": "public abstract void mo104718d();", "title": "" }, { "docid": "8f1e0b6c772a9b2c8e56a8a48a85e090", "score": "0.51971227", "text": "public final void mo9278a() {\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.5196153", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "04ba8cc977697122409d96df986141be", "score": "0.51908755", "text": "public abstract void mo41367d();", "title": "" }, { "docid": "617997395ed04d60c3848d3261f67272", "score": "0.5182218", "text": "public static void _08 () {\n }", "title": "" } ]
079efe43a41aa0105d689e3bf551db47
Returns the parent object of this property.
[ { "docid": "2447b1748139f6dfa0239f94da822c9f", "score": "0.7937451", "text": "public Object parent() {\n return parent;\n }", "title": "" } ]
[ { "docid": "ea8efc30a3d876d39f0032d36565c5b7", "score": "0.8090619", "text": "public Object getParent() {\n return this.parent;\n }", "title": "" }, { "docid": "6dec89e8a5348b78dfbd1c928b31cfe4", "score": "0.8069525", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "6dec89e8a5348b78dfbd1c928b31cfe4", "score": "0.8069525", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "6dec89e8a5348b78dfbd1c928b31cfe4", "score": "0.8069525", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "419bd0b80af672788d227e57d4ff1bad", "score": "0.7842871", "text": "protected BusinessPropertySheetEntry getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "9b40220eeff7623f24c8c1770f5d5a12", "score": "0.7669825", "text": "@Getter\n @Nullable\n public String getParent() {\n return this.parent;\n }", "title": "" }, { "docid": "00341ca2dab9f3aae669475cfea68cba", "score": "0.7617305", "text": "public String getParent() {\r\n\t\treturn parent;\r\n\t}", "title": "" }, { "docid": "bb251cb68ff2691d678faf709f3ac343", "score": "0.75449264", "text": "public com.sforce.soap.enterprise.sobject.Name getParent() {\n return parent;\n }", "title": "" }, { "docid": "675280aca3e40c448234adf91c2db00d", "score": "0.75046444", "text": "public XmlObject get$Parent () {\n\t\treturn (_parent_);\n\t}", "title": "" }, { "docid": "02d951f7adbc12f4cb8bebbcb5b97d90", "score": "0.7503868", "text": "protected Tela getParent()\n\t{\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "7c49ff36e9130f857d16bf8cf2061d55", "score": "0.74094045", "text": "public E getParent();", "title": "" }, { "docid": "cfa766dc50dd4b1e64205b039da87572", "score": "0.7406496", "text": "public RobotTestObject getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "40f25567979435267f37f8bb8a5add51", "score": "0.7379016", "text": "public CLocation getParent(){\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "ffe06ecea0a36621aa86a852f83e01a7", "score": "0.7334542", "text": "public Type getParent() {\n\t\treturn this.parent;\n\t}", "title": "" }, { "docid": "84f241b2aa38079b020b519243846b60", "score": "0.73249084", "text": "public BTPosition<E> getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "fc35283e80e553176f8e526b257485ca", "score": "0.730352", "text": "@DISPID(150)\r\n @PropGet\r\n com4j.Com4jObject getParent();", "title": "" }, { "docid": "df0fcacb56c2e55de7a61ff995709a31", "score": "0.72947", "text": "public Preferences getParent() {\n return (Preferences) getSource();\n }", "title": "" }, { "docid": "177a279ff03de13a03e36b3822957e58", "score": "0.72902775", "text": "public java.lang.String getParent() {\n return parent;\n }", "title": "" }, { "docid": "65eba027cd8a543351f02a74aa3094fd", "score": "0.7286052", "text": "@JsonProperty(\"parent\")\n public String parent() { return this.parent; }", "title": "" }, { "docid": "58adf491dfd65f35498ce4cd8c09bd0d", "score": "0.7272407", "text": "public java.lang.String getParent() {\n return parent;\n }", "title": "" }, { "docid": "c80f14a8c2401b1f0b764e10e8505812", "score": "0.72529036", "text": "@XmlElement(name = \"parent\")\n @JsonProperty(\"parent\")\n public RelatedResourceRep getParent() {\n return parent;\n }", "title": "" }, { "docid": "8c0e306487f8225815884059a22c850b", "score": "0.7245593", "text": "Parent getParent();", "title": "" }, { "docid": "4ea62a90d36da99da20e94a919712af1", "score": "0.7231132", "text": "public Cell getParent(){\n\t\treturn this.parent;\n\t}", "title": "" }, { "docid": "c9c1f2b1b6e549bc0237b1058a73c961", "score": "0.7216434", "text": "final public native DisplayObjectContainer getParent() /*-{\n return this.parent;\n }-*/;", "title": "" }, { "docid": "43e62804072d32b75d4e9f1e2f7b860b", "score": "0.72083294", "text": "@Override\n\tpublic DEObject getParent()\n\t{\n Element parent = subject.getOwner();\n if (parent == null)\n return null;\n \n return getEngine().locateObject(parent);\n\t}", "title": "" }, { "docid": "e1fe5b96ccfd9d97def2f77458c3df93", "score": "0.7197672", "text": "public HdsComponent getParent()\r\n\t{\r\n\t\treturn parent;\r\n\t}", "title": "" }, { "docid": "ff4e6bd41e58c9e9111ab62f62c6c33d", "score": "0.7189537", "text": "public NormalContract getParent() {\n return parent;\n }", "title": "" }, { "docid": "2e6d634a3fca62c9543b3890a05f2af4", "score": "0.71739286", "text": "public QObject getParent()\n {\n \treturn super.parent();\n }", "title": "" }, { "docid": "f1661422a741831b8f7c5bee0befd031", "score": "0.71396905", "text": "@Override\n public BaseModel getReference() {\n if (this.parent != null) {\n return this.parent;\n }\n\n return this;\n }", "title": "" }, { "docid": "abaa23c33923f693251c5ac3c74f6874", "score": "0.71334547", "text": "Coordinator getParent() {\n\n Coordinator result = nestingInfo.getParent(false).object();\n return result;\n }", "title": "" }, { "docid": "4e84facc3675f9b59f791aadb409557e", "score": "0.7120726", "text": "@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();", "title": "" }, { "docid": "4e84facc3675f9b59f791aadb409557e", "score": "0.7120726", "text": "@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();", "title": "" }, { "docid": "1edb3f8f0eb1a7ac51ee64fe3526ff7c", "score": "0.7098926", "text": "public CTNode getParent()\n\t{\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "190b2ab584a576385a205be43f9790c7", "score": "0.70988953", "text": "public Long getParentReferenceId() {\n\t\treturn parentReferenceId;\n\t}", "title": "" }, { "docid": "c0581fdccaa3b1ded68cd12f574a4472", "score": "0.70982885", "text": "public Node getParent() {\n return parent;\n }", "title": "" }, { "docid": "4eaba4a5d745362cf5c9edcf48f6820f", "score": "0.70935386", "text": "protected HierarchicalFormModel getParent() {\n\t\treturn this.parentFormModel;\n\t}", "title": "" }, { "docid": "81d1afa3f4276b84afc09bd42837482a", "score": "0.7085372", "text": "public GameTreeNode getParent() {\r\n return parent;\r\n }", "title": "" }, { "docid": "5a717abd7a88ee39f4d46865f1b01dce", "score": "0.70842505", "text": "public Directory get_parent() {\n\n return this.parent;\n }", "title": "" }, { "docid": "3655a9ab57bdce86d6a9ea07031c355f", "score": "0.7071872", "text": "public Plot getParent() { return this.parent; }", "title": "" }, { "docid": "f7ae62712a32ba34f9ce56b3f3423726", "score": "0.7059289", "text": "public Integer getiParent() {\n return iParent;\n }", "title": "" }, { "docid": "956c4c2f8a304e8d9dcdddb64bed18f7", "score": "0.7047949", "text": "@Getter\n @Nullable\n public ParentElement getParentElement(){\n return this.parentElement;\n }", "title": "" }, { "docid": "c057d31dd6f7e3cf0ab88f5f45cc4fc1", "score": "0.70436114", "text": "public String getParentid() {\n return parentid;\n }", "title": "" }, { "docid": "c057d31dd6f7e3cf0ab88f5f45cc4fc1", "score": "0.70436114", "text": "public String getParentid() {\n return parentid;\n }", "title": "" }, { "docid": "b6dfeb566cb51efcd286f4805ae4c870", "score": "0.7035047", "text": "public DocumentTree getParent()\n\t{\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "0d1b9461933f0ea48d35632013496b9e", "score": "0.70325726", "text": "public Node getParent() {\r\n\t\treturn this.parent;\r\n\t}", "title": "" }, { "docid": "1f88b8ab3a90d8864f3dc19e089cfcd0", "score": "0.7023344", "text": "public long accessParent(){\n\t\treturn this.parent;\n\t}", "title": "" }, { "docid": "5c8be77dad407e37d1f1dcf9fb6a937f", "score": "0.7020751", "text": "HCNode getParent() {\n return parent;\n }", "title": "" }, { "docid": "27835b186e699ee2d4c683a8100b1dd3", "score": "0.7016329", "text": "@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();", "title": "" }, { "docid": "563e0df9da7f3d1461ac21d58c1966eb", "score": "0.70101225", "text": "public Commit getParent() {\n return parentPointer;\n }", "title": "" }, { "docid": "97d47507f2af589193a9632738d3c58e", "score": "0.70002526", "text": "public Directory getParent() {\r\n return parent;\r\n }", "title": "" }, { "docid": "8f35b36f6294d79b993b68694ec7b778", "score": "0.69968456", "text": "public MazeCell getParent() {\r\n\t\tif (theParent != null) {\r\n\t\t\treturn theParent;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0f165dc3be013cdccf7b808827293f8c", "score": "0.6993055", "text": "public Move getParent(){\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "ff6549460be0f85753cef78551e3651a", "score": "0.69917226", "text": "public Job getParentJob() {\n return parentJob;\n }", "title": "" }, { "docid": "c7d7b9a6b0b3ac6d17708568a2f9e1d2", "score": "0.6976808", "text": "public java.lang.String getParentID() {\n return parentID;\n }", "title": "" }, { "docid": "64ef35ff004a685dc26b508dee11daae", "score": "0.69645983", "text": "public AState getParent() {\n return m_parent;\n }", "title": "" }, { "docid": "8e63569757d89fdd517cb9692a5ed7eb", "score": "0.69540423", "text": "public Serializable getParentId() {\n return this.parentId;\n }", "title": "" }, { "docid": "aa6e0ff9ec1b90267d2ed25ac2a2d1f0", "score": "0.6953245", "text": "public String getParentName()\r\n\t{\r\n\t\treturn this.parent.getName();\r\n\t}", "title": "" }, { "docid": "c597dffc9009afe95dead265be5ce130", "score": "0.69482356", "text": "@Override\r\n public IElement getParent() {\n return this.parent;\r\n }", "title": "" }, { "docid": "a6d9eff5286719fc1d37a19336700922", "score": "0.6944124", "text": "public java.lang.String getParentID() {\n return parentID;\n }", "title": "" }, { "docid": "dd9ca95012ede706a14b9d371393f763", "score": "0.69254893", "text": "@Override\r\n\t\tpublic TreePosition<E> getParent() {\r\n\t\t\treturn parent;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//returns the parent of a tree node\r\n\t\t}", "title": "" }, { "docid": "7ea8aa56d74f2b21207fe3a8a5f42010", "score": "0.69199574", "text": "public final Integer getParentId() {\n return this.parentId;\n }", "title": "" }, { "docid": "1672c5cfab17c179c4b05b9c7f643ed3", "score": "0.6916742", "text": "public Integer getParentId() {\n\t\treturn parentId;\n\t}", "title": "" }, { "docid": "ed534128f4dc6f2c916e6274a6f834f1", "score": "0.6913398", "text": "public String getParent();", "title": "" }, { "docid": "8ff6ce67591ce2d55d2373d7a2538db5", "score": "0.69120216", "text": "Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.690792", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.690792", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.690792", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.690792", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "cb776126685ec306c90d7a8b29be98aa", "score": "0.6906238", "text": "@Override\n public Optional<Node> getParent() {\n return Optional.ofNullable(parent);\n }", "title": "" }, { "docid": "81b8fde2d51bd239c108db463141156a", "score": "0.69060075", "text": "public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "81b8fde2d51bd239c108db463141156a", "score": "0.69060075", "text": "public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "160f10077dc6aef5c889583cfe1584fc", "score": "0.6905968", "text": "public String getParentId() {\r\n return parentId;\r\n }", "title": "" }, { "docid": "b424301388fc4aca7e084d9a65d05e97", "score": "0.68983024", "text": "public Component getParent()\n {\n return (Component) getParentTrait();\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.68946594", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "6bd31a02c30f1ab0f8a66ec938102d5c", "score": "0.6894524", "text": "public TNode<E> getParent( ) {\n return parent; \n }", "title": "" }, { "docid": "f6d6aba1799c4a44c7ff0dcf7750bbf1", "score": "0.68875873", "text": "public LoggingObjectInterface getParent() {\n return parentLoggingObject;\n }", "title": "" }, { "docid": "cc09f4d928c55d73b4a52a408df7fc94", "score": "0.688168", "text": "public TreeNode getParent() {\n return this.parent;\n }", "title": "" }, { "docid": "32f5224a08e9c0ac80ee7e3dfb7f40f9", "score": "0.68798625", "text": "public Fibonaccipuu getParent(){\r\n return this.parent;\r\n }", "title": "" }, { "docid": "c8d9da966ccd57c02aa763b7e1b0f92c", "score": "0.6871519", "text": "public String getParentId() {\n return mBodyMap.containsKey(BoxItem.FIELD_PARENT) ?\n ((BoxFolder) mBodyMap.get(BoxItem.FIELD_PARENT)).getId() :\n null;\n }", "title": "" }, { "docid": "cdea5593df9e69151f7bfff8a5a5a047", "score": "0.68705225", "text": "public HeapNode getParent() {\n\t\t return this.parent;\n\t }", "title": "" }, { "docid": "dab0299b3432f75a5893e73fb5a82cc8", "score": "0.6866705", "text": "public Directory getParent(){\n\t\treturn (Directory) parent;\n\t}", "title": "" }, { "docid": "a3d73b1dff24356637764742b3e8039f", "score": "0.68588835", "text": "public GridRegion getParent() {\n return parent;\n }", "title": "" }, { "docid": "1e5ce7aa42b87e49d6bd1d73efe8298d", "score": "0.68578357", "text": "public GraphImpl getParentGraph() {\n return parent;\n }", "title": "" }, { "docid": "34669b38680f9e085acf66abc5254081", "score": "0.68562835", "text": "public String getParentId() {\n return this.parentId;\n }", "title": "" }, { "docid": "34669b38680f9e085acf66abc5254081", "score": "0.68562835", "text": "public String getParentId() {\n return this.parentId;\n }", "title": "" }, { "docid": "8efba09d5b75bc5668d4086cbb975ec1", "score": "0.68547726", "text": "public PuzzleState getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "234a008d675ca2685da16a839368db11", "score": "0.6852002", "text": "public java.lang.String getParent_id() {\n return parent_id;\n }", "title": "" }, { "docid": "62c1ec88302f0f77aa164bedd7d38e0b", "score": "0.68517923", "text": "public Group3d getParent () {\r\n\t\treturn parent;\r\n\t\r\n\t}", "title": "" }, { "docid": "00aa0f3312093a6c72df05cc9e8d2a82", "score": "0.6848583", "text": "public BodyInSpace getParent() {\n\t\treturn this.parent;\n\t}", "title": "" }, { "docid": "95def48be81dc0305a2119a95322e73d", "score": "0.68390375", "text": "public SysMenu getParent() {\n return parent;\n }", "title": "" }, { "docid": "cf5cf92423fe257ca6bcae600f0e440f", "score": "0.6810703", "text": "public long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "fe9d808a4e88454b082699a5fe5dfd59", "score": "0.6806185", "text": "T getParent();", "title": "" }, { "docid": "5ca52fe5e080f402e4a5b8c5cc718473", "score": "0.6805955", "text": "public int getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "3cd30a7ed3a4af3ec1317602a91188cd", "score": "0.6798405", "text": "public Breadcrumb getParent() {\n\t\tcheckWidget();\n\t\treturn this.parentBreadcrumb;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4bb57278b620d430ee65a222924f5a07", "score": "0.0", "text": "@Override\n\t\t\tpublic void delete() {\n\t\t\t\tSystem.out.println(\"익명 DB를 삭제하다. \");\n\t\t\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\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": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\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": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\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": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\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": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\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": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "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": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\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": "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": "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": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
0ccaf5ff3fe7b402fbb2d88a1575aa5f
API Management Routines This function initializes the API. This function must be called before any other functions are executed and must only be called once. Should the function fail, no other functions should be used.
[ { "docid": "742a5265ecb56b4e3b01b7aa20fc112e", "score": "0.6201163", "text": "public static native short InitializeAPI();", "title": "" } ]
[ { "docid": "2e61ecde5e3ba52cb29c303f3784b667", "score": "0.64484066", "text": "@PostConstruct\n private void init() {\n this.accessToken = config.getAccessToken();\n //if (session != null && session.getAttribute(ACCESS_TOKEN) != null) {\n //this.accessToken = (String) session.getAttribute(ACCESS_TOKEN);\n //}\n\n // Retrieve the API\n this.api = Api.get(config.getApiEndpoint(), accessToken, cache, logger);\n\n // Ref\n //this.ref = request != null ? request.getParameter(\"ref\") : null;\n //if (this.ref == null || this.ref.trim().isEmpty()) {\n this.ref = this.api.getMaster().getRef();\n //}\n\n }", "title": "" }, { "docid": "557b91f0e453654e19428ad16354c3b4", "score": "0.6445595", "text": "private ApiInfo setApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"SyncServer REST API\")\n\t\t\t\t.description(\"Dokumentation der REST API für die Nutzung des SyncServers\")\n\t\t\t\t.contact(new Contact(\"Lukas Struppek\", \"http://www.privacy-avare.de/\", \"lukas.struppek@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\")\n\t\t\t\t.version(\"1.0\").build();\n\n\t}", "title": "" }, { "docid": "791821d95a50f5a8203c8f9391c2ffb3", "score": "0.63979363", "text": "@BeforeAll\n public static void init(){\n baseURI = \"https://swapi.dev\";\n basePath = \"/api\";\n }", "title": "" }, { "docid": "a25f2023595e99288326e8e8841ebb01", "score": "0.63614005", "text": "private ApiOperations() {\n }", "title": "" }, { "docid": "3dfff8e3cbbe01fcba4fc6795492730e", "score": "0.6345982", "text": "@PostConstruct\n\tpublic void init() {\n\t if (bibsonomyApiUser.isEmpty() || bibsonomyApiKey.isEmpty()){\n\t bibsonomy = null;\n } else {\n final RestLogicFactory rlf = new RestLogicFactory(this.bibsonomyApiUrl);\n this.bibsonomy = rlf.getLogicAccess(this.bibsonomyApiUser, this.bibsonomyApiKey);\n }\n\t}", "title": "" }, { "docid": "1e4cadb39a56b22aed8699cfad299eb0", "score": "0.63130707", "text": "APIHandler createAPIHandler();", "title": "" }, { "docid": "5a1a0784965dc2c8646d25e2fcb6a6c0", "score": "0.6276207", "text": "private final void initializeSDK () {\t\t\n\t\tString ORGNAME = getUserOrg();\n \tString APPNAME = \"sandbox\";\n\t\t// This creates an instance of the Apigee.Client class which initializes the SDK\n\t\tApigeeClient apigeeClient = new ApigeeClient(ORGNAME, APPNAME, this.getBaseContext());\n\t\tsetApplicationApigeeClient (apigeeClient);\t\t\n\t}", "title": "" }, { "docid": "f3012e72d5156faa30b14e09f2397eec", "score": "0.62671185", "text": "public void init() {\n\n // go ahead and fetch maps of interest\n IMap<String, List<Status>> hashtagMap = getClient().getMap(\"hashtagMap\");\n setHashtagMap(hashtagMap);\n\n IMap<String, List<Status>> userMap = getClient().getMap(\"userMap\");\n setUserMap(userMap);\n\n IMap<String, List<Status>> trendMap = getClient().getMap(\"trendMap\");\n setTrendMap(trendMap);\n }", "title": "" }, { "docid": "d54f2d754e6f97526dc078297046c013", "score": "0.6257802", "text": "public static void init() throws IOException {\n logger.info(\"Initialization 'Service Item Manager'\");\n ServiceItemManager.getInstance().init();\n\n // Web API Server Configuration\n logger.info(\"Config. Web API server: enabled\");\n webApiServer = new WebServerApi();\n webApiServer.start();\n\n }", "title": "" }, { "docid": "93f9c8c7fd18cf7ae5967bfa5eb088e6", "score": "0.6240426", "text": "public void initialize() {\n conf = KieServicesFactory.newRestConfiguration(URL, USER, PASSWORD);\n conf.setMarshallingFormat(FORMAT);\n conf.addExtraClasses(new HashSet<>(Arrays.asList(com.myspace.demo20210321.Reservation.class)));\n kieServicesClient = KieServicesFactory.newKieServicesClient(conf);\n }", "title": "" }, { "docid": "2e614cf7b2b103b2816e847999d71ab7", "score": "0.6240026", "text": "public interface IApiManager extends ApiInterface {\n\n @Override\n Call<RLogin> userLogin(QLogin loginRequest);\n\n @Override\n Call<RGetRequired> getRequired();\n\n @Override\n Call<RProductList> getProductionList(int page, QProductList body);\n\n @Override\n Call<RSignUp> userSignIn(QSignUp signInRequest);\n\n @Override\n Call<ROTPVerify> verifyOtp(String mobile, String otp);\n\n @Override\n Call<ROTPVerify> verifyOtpForgetPass(String mobile, String otp);\n\n @Override\n Call<RGeneralData> resendOtp(String mobile);\n\n @Override\n Call<RGeneralData> resendForgotOtp(String mobile);\n\n @Override\n Call<RChangePassword> changePassword(QChangePassword changePasswordRequest);\n\n @Override\n Call<RChangePassword> resetPassword(QChangePassword changePasswordRequest);\n\n @Override\n Call<RGeneralData> logoutCall();\n\n @Override\n Call<RGeneralData> generateOTPForMobileChange(QGenerateOtpForChangeMobile generateOtpForChangeMobile);\n\n @Override\n Call<RCartList> getCartList(String url);\n\n @Override\n Call<ROrderDetail> getOrderDetail(String orderId);\n\n @Override\n Call<RGeneralData> changeMobileNum(QChangeMobileNumber changeMobileNumberRequest);\n\n @Override\n Call<RCategoryList> getCategoryProduct();\n\n @Override\n Call<RCollectionList> getCollectionProduct();\n\n @Override\n Call<RGeneralData> notifyMe(String itemNo);\n\n @Override\n Call<RFilter> getFilter(QGetFilter reqGetFilter);\n\n @Override\n Call<RUserAddress> addAddress(QAddAddress addAddress);\n\n @Override\n Call<RStateList> getStateList(String url);\n\n @Override\n Call<RAddToCart> addToCart(QAddToCart addToCart);\n\n @Override\n Call<RGeneralData> contactUs(QContactUs qContactUs);\n\n @Override\n Call<RMyOrder> getOrderList(int page);\n\n @Override\n Call<RLogin> getProfile();\n\n @Override\n Call<RLogin> updateProfile(DataUser userData);\n\n @Override\n Call<RGeneralData> removeFromCart(String id);\n\n @Override\n Call<RLogin> getUserProfile(String s);\n\n @Override\n Call<RGeneralData> placeOrder(QPlaceOrder placeOrder);\n\n @Override\n Call<RGeneralData> reOrder(String id);\n\n @Override\n Call<RNotification> getNotificationList(int page);\n\n\n}", "title": "" }, { "docid": "b6408347296ec37434c6f8983168190e", "score": "0.62371856", "text": "APIBasics() {\n\t\tproperties = new Properties();\n\t\tFile f = new File(\"resources/connection.properties\");\n\n\t\ttry (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(f))) {\n\t\t\tproperties.load(bis);\n\n\t\t\tif (properties.getProperty(\"dandelionAPIKey\").isEmpty() || properties.getProperty(\"alchemyAPIKey\").isEmpty()\n\t\t\t\t\t|| properties.getProperty(\"meaningCloudAPIKey\").isEmpty()) {\n\t\t\t\tSystem.out.println(\"One or more API Keys are not set. Program stops now\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"connection.properties not set\");\n\t\t}\n\t}", "title": "" }, { "docid": "5846d4714527c9353beb50577e36f750", "score": "0.62070936", "text": "public KhoSuaAPIs() {\n }", "title": "" }, { "docid": "69426b2be48c43433c8fb57b601506c5", "score": "0.61950165", "text": "private void init() {\n\t\tinitID();\n getUser();\n\t}", "title": "" }, { "docid": "5f950a356396879fa904511979a26d8d", "score": "0.618299", "text": "private void initialize() {\r\n\t\tipAddress = getJsonObject().optString(JSON_IP);\r\n\t\t\r\n\t\tlruType = getJsonObject().optString(JSON_LRU_TYPE);\r\n\t\t\r\n\t\tlruInstance = getJsonObject().optString(JSON_LRU_INSTANCE);\r\n\t\t\r\n\t\ttotalSteps = getJsonObject().optInt(JSON_TOTAL_STEPS);\r\n\t\t\r\n\t\tstepNumber = getJsonObject().optInt(JSON_STEP_NUMBER);\r\n\t\t\r\n\t\tstepName = getJsonObject().optString(JSON_STEP_NAME);\r\n\t\t\r\n\t\tsubStepName = getJsonObject().optString(JSON_SUB_STEP_NAME);\r\n\t\t\r\n\t\tsubStepPercentage = getJsonObject().optString(JSON_SUB_STEP_PERCENTAGE);\r\n\t\t\r\n\t\tisStatusAvailable = getJsonObject().optBoolean(JSON_STATUS_AVAILABLE);\r\n\t\t\r\n\t\tisRunning = getJsonObject().optBoolean(JSON_RUNNING);\r\n\t}", "title": "" }, { "docid": "160f9e9086fdcf6986fa3241437bcade", "score": "0.6137162", "text": "APIResource createAPIResource();", "title": "" }, { "docid": "ec23b9fa407679e80738f863a412016d", "score": "0.6112346", "text": "public static void init() {\n oi = new OI();\r\n\r\n // Show what command your subsystem is running on the SmartDashboard\r\n SmartDashboard.putData(thePrintSystem);\r\n SmartDashboard.putData(theDrive);\r\n\tSmartDashboard.putData(theBling);\r\n\tSmartDashboard.putData(theCatapult);\r\n\tSmartDashboard.putData(theLoader);\r\n\tSmartDashboard.putData(theCatcher);\r\n\tSmartDashboard.putData(theShifter);\r\n\tSmartDashboard.putData(thePrintSystem);\r\n\tSmartDashboard.putData(theCameraFeedback);\r\n }", "title": "" }, { "docid": "bf41f4905759e666a962679c38963488", "score": "0.6109897", "text": "public void setup() throws Exception {\n\t\tsugar().calls.api.create();\n\n\t\t// Login\n\t\tsugar().login();\n\t}", "title": "" }, { "docid": "92cdfc9f245529402b19524d8092bbaf", "score": "0.6106758", "text": "@BeforeAll\n public static void init(){\n baseURI = ConfigurationReader.getProperty(\"hr.baseUri\");\n basePath = \"/ords/hr/api\";\n\n\n\n // CREATING CONNECTION WITH DB\n String url = ConfigurationReader.getProperty(\"hr.database.url\");\n String username = ConfigurationReader.getProperty(\"hr.database.username\");\n String password = ConfigurationReader.getProperty(\"hr.database.password\");\n DB_Utility.createConnection(url,username,password);\n\n\n }", "title": "" }, { "docid": "f6241f9285d010838c875d09e3f78662", "score": "0.6094626", "text": "fzmsupply.Api.RequestInitPlatform getInitPlatform();", "title": "" }, { "docid": "faaee214244f616cec3efeede05a93eb", "score": "0.60794526", "text": "@Override\n public void acquireResources() {\n initiateThoughpadAPI();\n }", "title": "" }, { "docid": "ad5b6c1287fa968428698dfd8322f646", "score": "0.60769045", "text": "abstract public void sdkInitialized();", "title": "" }, { "docid": "2db5eb2cf97003bfc523981f0a09f5dd", "score": "0.60729486", "text": "public void init(){\n\t\tif(RestUtil.MODE.equals(\"dev\")){\n\t\t\tinitParametre(URL_WEB_SERVICE_PARAMETER, \"http://localhost/rest/\");\n\t\t}else{\n\t\t\tinitParametre(URL_WEB_SERVICE_PARAMETER, \"https://apiservice4444.appspot.com/rest/\");\n\t\t}\n\t\tinitParametre(MAIL_PARAMETER, \"florent.courtiade@gmail.com\");\n\t\tinitParametre(CATEGORY_PARAMETER, EnumCategorySong.NONE.getCode());\n\t\tinitParametre(PUB_PARAMETER, \"0\");\n\t\tif(RestUtil.MODE.equals(\"dev\")){\n\t\t\tinitParametre(PUB_CONTENT_PARAMETER, \"<a href=\\\"http://www.zooplus.fr/+10pro_fr/partner/zap244755\\\"><img src=\\\"http://www.zooplus.fr/affiliate/material/zap244755\\\" alt=\\\"Hiver 2013\\\" border=\\\"0\\\"/></a>\");\n\t\t}else{\n\t\t\tinitParametre(PUB_CONTENT_PARAMETER,\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "319efb4b4833d8d9cf234e23b73b2ce7", "score": "0.6072203", "text": "private ApiClient() {\n\n }", "title": "" }, { "docid": "829a590e419284ad025f33a708ef03bf", "score": "0.60580283", "text": "public APIService() {\n this(null);\n }", "title": "" }, { "docid": "194127bda719a80efafd9e5a5ed33c67", "score": "0.60396916", "text": "@Override\n\tpublic synchronized void initialize() throws InitializationException {\n\t\tif (!this.initialized){\n\t\t\tthis.bridge = new XwikiBridgeInterfaceRestResource();\n//\t\t\ttry {\n//\t\t\t\tthis.bridge= this.manager.getInstance(XWikiRestComponent.class, \"eu.learnpad.core.impl.qm.XwikiBridgeInterfaceRestResource\");\n//\t \t} catch (ComponentLookupException e) {\n//\t \t\tthrow new InitializationException(e.getMessage(), e);\n//\t }\n\t\t\tthis.cw = new eu.learnpad.core.impl.cw.XwikiBridgeInterfaceRestResource();\n\t\t\tthis.or = new eu.learnpad.core.impl.or.XwikiBridgeInterfaceRestResource();\n\t\t\tthis.typesMap = new HashMap<String, String>();\n\t\t\t\n\t\t\tthis.initialized=true;\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b8d90d2341c25967eae7cb99c7f51044", "score": "0.6035628", "text": "protected API init(final String modelInstanceFileName) {\n\t\tApp app = this.getApp();\n\t\tthis.createModel(app, modelInstanceFileName, modelInstanceFileName);\n\t\treturn app.initAPI();\n\t}", "title": "" }, { "docid": "2fcfe913377ea1dc1cc674ef89c3220a", "score": "0.6022923", "text": "public void init() {\n httpClient = HttpClientBuilder.create().build();\n\t \n }", "title": "" }, { "docid": "be42e8f5d1734944e3ff4594e957b3b9", "score": "0.60110575", "text": "public void robotInit() {\n // instantiate the command used for the autonomous period\n //oi = new OI();\n autonomousCommand = new AutonCommandGroup();\n CommandBase.init();\n \n //SmartDashboard.putData(Scheduler.getInstance());\n \n }", "title": "" }, { "docid": "a2b1507cb4cd8027325971b6c00d2d51", "score": "0.59782124", "text": "@Override\n\tpublic void robotInit() {\n\t\t// Subsystems.\n\t\tdrive = new Drive();\n\t\tclimber = new Climber();\n\t\tcollector = new Collector();\n\n\t\t// Interfaces.\n\t\toi = new OI();\n\n\t//\ttry {\n\t//\t\tahrs = new AHRS(SPI.Port.kMXP);\n\t//\t} catch (final RuntimeException ex) {\n\t//\t\tDriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n\t//\t}\n\t\t\n\t\tcompressor = new Compressor();\n\t\tcompressor.setClosedLoopControl(true);\n\n\t\t// Autonomous chooser to display on the dashboard.\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addObject(\"Nothing\", null);\n\t\tautoChooser.addObject(\"Low Bar\", new AutoLowBar());\n\t\tautoChooser.addObject(\"Rock Wall\", new AutoRockWall());\n\t\tautoChooser.addDefault(\"Sally Port\", new AutoSallyPort());\n\t\tSmartDashboard.putData(\"Autonomous\", autoChooser);\n\t}", "title": "" }, { "docid": "a4b8555db65b1d6616021ff575a9fd5b", "score": "0.597061", "text": "public void init(Properties p) throws ApiException {\n apiHost = p.getProperty(API_HOST_PROPERTY);\n apiPort = p.getProperty(API_PORT_PROPERTY);\n }", "title": "" }, { "docid": "33f7f5c7c8d5cb247b6be0a828ff9658", "score": "0.5952218", "text": "@Test\n public void setupTest() throws ApiException {\n Setup setup = null;\n CredentialsWithSecret response = api.setup(setup);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "1d73fd6762607a9f54f452db55653585", "score": "0.5951188", "text": "public interface IAPI {\n\n /**\n * Get user UUID by user_email\n *\n * @param requestParam\n * @param completedCallback\n */\n void getUserUUID(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Ack message when receive a new message\n *\n * @param requestParam\n * @param completedCallback\n */\n void ackMessage(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Create a device\n *\n * @param requestParam\n * @param completedCallback\n */\n void createPPComDevice(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Update device\n *\n * @param requestParam\n * @param completedCallback\n */\n void updateDevice(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Create an anonymous user\n *\n * @param requestParam\n * @param completedCallback\n */\n void createAnonymousUser(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get all unacked messages\n *\n * @param requestParam\n * @param completedCallback\n */\n void getUnackedMessages(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get PPCom Default Conversation\n *\n * @param requestParam\n * @param completedCallback\n */\n void getPPComDefaultConversation(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * create PPCom Default Conversation\n *\n * @param requestParam\n * @param completedCallback\n */\n void createPPComDefaultConversation(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get App org groups\n *\n * @param requestParam\n * @param completedCallback\n */\n void getAppOrgGroupList(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n\n /**\n * Get App Info\n *\n * @param requestParam\n * @param completedCallback\n */\n void getAppInfo(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Send message by api\n *\n * @param requestParam\n * @param completedCallback\n */\n void sendMessage(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get conversation info\n *\n * @param requestParam\n * @param completedCallback\n */\n void getConversationInfo(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get user detail info\n *\n * @param requestParam\n * @param completedCallback\n */\n void getUserDetailInfo(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Update user info\n *\n * @param requestParam\n * @param completedCallback\n */\n void updateUserInfo(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get conversation list\n *\n * @param requestParam\n * @param completedCallback\n */\n void getConversationList(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Load history message\n *\n * @param requestParam\n * @param completedCallback\n */\n void getHistoryMessage(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Create PPCom Conversation\n *\n * @param requestParam\n * @param completedCallback\n */\n void createPPComConversation(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get conversation user list\n *\n * @param requestParam\n * @param completedCallback\n */\n void getConversationUserList(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Login\n *\n * @param requestParam\n * @param completedCallback\n */\n void login(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Logout\n *\n * @param requestParam\n * @param completedCallback\n */\n void logout(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Get service user list\n *\n * @param requestParam\n * @param completedCallback\n */\n void getServiceUserList(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Page conversations list\n *\n * @param requestParam\n * @param completedCallback\n */\n void pageConversationList(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Create conversation\n *\n * @param requestParam\n * @param completedCallback\n */\n void createConversation(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * Close conversation\n *\n * @param requestParam\n * @param completedCallback\n */\n void closeConversation(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * paging unacked messages\n *\n * @param requestParam\n * @param completedCallback\n */\n void pageUnackedMessages(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n\n /**\n * email valid\n *\n * @param requestParam\n * @param completedCallback\n */\n public void emailValid(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n /**\n * device valid to check the device is still logined or not\n *\n * @param requestParam\n * @param completedCallback\n */\n public void deviceValid(JSONObject requestParam, OnAPIRequestCompleted completedCallback);\n\n}", "title": "" }, { "docid": "a6066c457ebfe419f3c6f9313d92c42c", "score": "0.5945065", "text": "@Before\n\tpublic void setUp() {\n accessToken = \"123\";\n xeroTenantId = \"xyz\";\n \n // Init projectApi client\n // NEW Sandbox for API Mocking\n\t\tdefaultClient = new ApiClient(\"https://5f9f95f1-25c8-40dd-8b10-8192c658dd79.mock.pstmn.io/payroll.xro/1.0\",null,null,null,null);\n payrollAuApi = PayrollAuApi.getInstance(defaultClient); \n \n\t}", "title": "" }, { "docid": "97f572c280d8d7fb286635863f5ca4e5", "score": "0.59126633", "text": "public ApiResource() {\n }", "title": "" }, { "docid": "847d0a1afb9b9306e65ab83abd8bda71", "score": "0.59108514", "text": "@Override\n public void init() {\n robot = new KaizenRobot(hardwareMap);\n isHeld = false;\n \n telemetry.addData(\"Status\", \"Initialized\");\n }", "title": "" }, { "docid": "cccd7934dbd1c33f05d0fca7b61c7364", "score": "0.5909547", "text": "public void init() {\n\t\tcore = new CBRCore(\"travel\");\n\t\t\n PackageManager.getInstance().getPackageByName(\"Core\").setActive(true);\n PackageManager.getInstance().getPackageByName(\"User Components\").setActive(true);\n\n core.init();\n\n\t\tsetCBRApplicationConfiguration();\n\t}", "title": "" }, { "docid": "551b354bf7d7d41c6d79f9eb3b840e90", "score": "0.5900429", "text": "protected API init(final String modelInstanceFileName, final String resourceFileName) {\n\t\tApp app = this.getApp();\n\t\tthis.createModel(app, modelInstanceFileName, resourceFileName);\n\t\treturn app.initAPI();\n\t}", "title": "" }, { "docid": "c031f914760bd17de5ceb7bee3c7fac8", "score": "0.58956355", "text": "@Override\n public void init() {\n telemetry.addData(\"STATUS\", \"Beginning Initialization\");\n robot.init(hardwareMap);\n telemetry.addData(\"STATUS\", \"Initialized\");\n }", "title": "" }, { "docid": "890b845faf5eaa8b6794701b46f86a89", "score": "0.58933514", "text": "private void initializeAPISynchronization(JSONArray updatedApiIds, String username, char[] password)\n throws APISynchronizationException {\n try {\n log.info(\"Starting API Synchronization for user:\" + username);\n OAuthApplicationInfoDTO oAuthDto;\n AccessTokenDTO accessTokenDTO;\n loadTenant(username);\n initializeOnPremiseGatewayProperties();\n oAuthDto = TokenUtil.registerClient(username, password);\n accessTokenDTO = getAccessToken(oAuthDto, username, password);\n syncAPIForTenant(updatedApiIds, accessTokenDTO, username);\n log.info(\"API synchronization completed for user: \" + username);\n } catch (OnPremiseGatewayException e) {\n throw new APISynchronizationException(e);\n } finally {\n PrivilegedCarbonContext.endTenantFlow();\n }\n }", "title": "" }, { "docid": "12091ceb8eb050f54a932b8ec93b1cf0", "score": "0.5878164", "text": "private void performApiCall() {\n\t\tnew ApiCallExecutor().execute();\n\t}", "title": "" }, { "docid": "e40f4333dde74f73dc03a9aa9a3cc4df", "score": "0.58747506", "text": "public static void init() {\n BASE_URL = \"http://192.168.8.58/~Admin/Casadebolsa/v1/\";//local Red Soft/M\n CODIGO_ERROR = 2;\n }", "title": "" }, { "docid": "3baef27e2d978f8b9e618d2922a2a349", "score": "0.5872892", "text": "private void InitResource() {\n\t\tAdViewPublicId = Get(\"AdViewPublicId\",AdViewPublicId);\r\n\t\tAfterPatchPublicId = Get(\"AfterPatchPublicId\",AfterPatchPublicId);\r\n\t\tFloatLayoutPublicId = Get(\"FloatLayoutPublicId\",FloatLayoutPublicId);\r\n\t\tInterstitialPublicId = Get(\"InterstitialPublicId\",InterstitialPublicId);\r\n\t\tMiniInterPublicId = Get(\"MiniInterPublicId\",MiniInterPublicId);\r\n\t\tPatchPublicId = Get(\"PatchPublicId\",PatchPublicId);\r\n\t\tPatchMiddlePublicId = Get(\"PatchMiddlePublicId\",PatchMiddlePublicId);\r\n\t}", "title": "" }, { "docid": "7a41b24c2995c686e5335502e5b1f0b2", "score": "0.58590204", "text": "@BeforeTest\n\tpublic void setup() throws FileNotFoundException, IOException, ParseException {\n\t\tlogger = Logger.getLogger(\"APIDemo\");\n\t\tPropertyConfigurator.configure(AutomationConstants.LOG4J);\n\t\tlogger.info(\"-------------------------------------------------------------\");\t\n\t\tlogger.info(\" API Testing is Started Successfully \");\n\t\tlogger.info(\"-------------------------------------------------------------\");\t\n\t\tjsonObj = JsonReaderHelper.getJsonObject(AutomationConstants.SYSTEM_PATH + AutomationConstants.RESOURCE_PATH + \"API_TestData_IMDB.json\");\t\n\t\tif(jsonObj != null) {\n\t\trequestObj = (JSONObject) jsonObj.get(AutomationConstants.REQUEST);\t\t\t\n\t\thost = (String) requestObj.get(AutomationConstants.HOST);\n\t\tresource = (String) requestObj.get(AutomationConstants.RESOURCE);\n\t\tendpoint = RestAssuredConfig.getEndpoint(host, resource);\n\t\t}\n\t}", "title": "" }, { "docid": "1b031caae754d04ff33fb81b0c9b89a9", "score": "0.58443755", "text": "private void init() {\n\t\tmAppOps = (AppOpsManager) this\n\t\t\t\t.getSystemService(Context.APP_OPS_SERVICE);\n\t\tmPackageManager = this.getPackageManager();\n\t}", "title": "" }, { "docid": "be6037c6e1d67cc1ba3bb4e93e7e8272", "score": "0.58443666", "text": "public void autonomousInit(){\n \n\n }", "title": "" }, { "docid": "b5988b92d522546048324e4b1c5ba8b7", "score": "0.5812322", "text": "public final void init() {\r\n\t\tsetup();\r\n\t}", "title": "" }, { "docid": "7fc250a861b496931b3c8e7a1f89b245", "score": "0.58095354", "text": "public void robotInit() {\n \tcamera = CameraServer.getInstance();\n \tcamera.setQuality(50);\n \tcamera.startAutomaticCapture(\"cam0\");\n \t\n \tTEST_SUBSYSTEM = new TestSubsystem();\n \tLIFT_SYSTEM = new LiftSystem();\n \tDRIVE_SYSTEM = new DriveSystem();\n\t\toi = new OI();\n\t\t\n//\t\tultraDist = new AnalogSensor(new AnalogInput(0));\n // instantiate the command used for the autonomous period\n autonomousCommand = new AutoGroup();\n\t\t\n //SmartDashboard.putData(DRIVE_SYSTEM);\n //SmartDashboard.putData(LIFT_SYSTEM);\n \n /*autoSwitch = new SendableChooser();\n autoSwitch.addObject(\"On\", true);\n autoSwitch.addDefault(\"Off\", false);*/\n \n }", "title": "" }, { "docid": "e85045ebc67eb5b1765e9a0988012a1b", "score": "0.5807623", "text": "@Override\n public void autonomousInit() {\n logger.finest(\"autoInit\");\n addDriveBase();\n addRunElevator();\n Scheduler.getInstance().add(new RotateCollector());\n Scheduler.getInstance().add(new PistonsUp());\n }", "title": "" }, { "docid": "f2afd50ec2770c0390ae672f9aaaf4a9", "score": "0.5797157", "text": "private void retrofitInit() {\n authTwitterClient = authTwitterClient.getInstance();\n authTwitterService = authTwitterClient.getAuthTwitterService();\n }", "title": "" }, { "docid": "f32176206c73604edab0a1b0b4cb7989", "score": "0.5796797", "text": "public void init()\n {\n System.out.println(\"Initializing \" + name);\n\n // Get all tickers and orderbooks from remote\n for (CurrencyPair pair : currencyPairs)\n {\n if (!loadTicker(pair))\n {\n System.out.println(\"Ticker load failed: \" + name + \" \" + pair);\n }\n\n if (!loadOrderBook(pair))\n {\n System.out.println(\"Orderbook load failed: \" + name + \" \" + pair);\n continue;\n }\n\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException e)\n {\n System.out.println(e);\n }\n }\n }", "title": "" }, { "docid": "e4f1f339611934f13161a8b41080b768", "score": "0.57893956", "text": "private static ApiInfo apiInfo() {\n\t\treturn new ApiInfoBuilder()\n\t\t\t\t.title(\"ObjectDetectionApi\")\n\t\t\t\t.description(\"Tensorflow Springboot API\")\n\t\t\t\t.version(\"1.0.0\")\n\t\t\t\t.contact(contactInfo())\n\t\t\t\t.licenseUrl(\"No License\")\n\t\t\t\t.extensions(Collections.emptyList())\n\t\t\t\t.build();\n\t}", "title": "" }, { "docid": "ea998c5deca228c6e349bf6685f5d8ad", "score": "0.5789082", "text": "public RequestSpecification apiinit(String baseurl) {\n\t\tRequestSpecification httpRequest;\n//\t\tSystem.out.println(\"In API Initiator\");\n\t\tRestAssured.baseURI = baseurl;\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tRestAssuredConfig config = RestAssured.config()\n\t\t .httpClient(HttpClientConfig.httpClientConfig()\n\t\t .setParam(CoreConnectionPNames.CONNECTION_TIMEOUT, 100000)\n\t\t .setParam(CoreConnectionPNames.SO_TIMEOUT, 100000));\n\t\t//System.out.println(RestAssured.baseURI);\n\t\thttpRequest = RestAssured.given().config(config);\n\t\treturn httpRequest;\n\t}", "title": "" }, { "docid": "f70235211137bb2da35afd0dfc167ac2", "score": "0.5781784", "text": "public interface ILbConstants {\n String AUTH_TOKEN = \"token\";\n\n String DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssZ\";\n int MINUTES_PER_POINT = 10;\n\n String HOST_API = \"192.168.11.6:3000\";\n //String HOST_API = \"ackyla.com:3000\";\n\n String CONTENT_TYPE_JSON = \"application/json\";\n String CHARSET_UTF8 = \"UTF-8\";\n\n String PROTOCOL_HTTPS = \"http\";\n //String PROTOCOL_HTTPS = \"https\";\n\n String SEGMENT_USER = \"/user\";\n String SEGMENT_USERS = \"/users\";\n String SEGMENT_LOCATIONS = \"/locations\";\n String SEGMENT_TERRITORIES = \"/territories\";\n String SEGMENT_NOTIFICATIONS = \"/notifications\";\n String SEGMENT_CHARACTERS = \"/characters\";\n String SEGMENT_CREATE = \"/create\";\n String SEGMENT_SHOW = \"/show\";\n String SEGMENT_LIST = \"/list\";\n String SEGMENT_DESTROY = \"/destroy\";\n String SEGMENT_READ = \"/read\";\n String SEGMENT_SUPPLY = \"/supply\";\n String SEGMENT_AVATAR = \"/avatar\";\n String SEGMENT_MOVE = \"/move\";\n\n String PARAM_PAGE = \"page\";\n String PARAM_PER = \"per\";\n}", "title": "" }, { "docid": "5d010f7bfee3cf2341918e02167ff41c", "score": "0.5781538", "text": "private TcasesOpenApi()\n {\n // Static methods only\n }", "title": "" }, { "docid": "de5021b6e506894f5cdf4e0add18110c", "score": "0.5762546", "text": "@Override\n\tpublic void robotInit() {\n\t\tRobotMap.setRobot(0); // ===== ROBOT ID: 0-COMPBOT, 1-PRACTICEBOT ===== //\n\t\toi = new Controllers(); // Init subsystems\n\t\tlog = new Log();\n\t\tdriveBase = new WestCoastDrive();\n\t\tinternalData = new InternalData();\n\t\tintake = new Intake();\n\t\tvision = new Vision();\n\t\tlift = new Lift();\n\t\tpneumatics = new Pneumatics();\n\t\tdistance = new LidarLite(new DigitalInput(5));\n\t\tliftBottomLimit = new DigitalInput(0);\n\t\tliftTopLimit = new DigitalInput(1);\n\t\tInternalData.initGyro();\n\t\tInternalData.resetGyro();\n\t\tWrist.initWrist();\n\t\tLift.resetLift();\n\t\tlocam = CameraServer.getInstance().startAutomaticCapture(0);\n\t\thicam = CameraServer.getInstance().startAutomaticCapture(1);\n\t\tserver = CameraServer.getInstance().getServer();\n\t\tlocam.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n\t\thicam.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n\t\tserver.setSource(locam);\n\t\tLog.print(0, \"Robot\", \"=== ROBOT INIT COMPLETED ===\");\n\t}", "title": "" }, { "docid": "1b99c415b530863bd365b9ce0d3d1eff", "score": "0.57623", "text": "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n inputValidation = new InputValidation(activity);\n\n }", "title": "" }, { "docid": "cc2eade633abf9e05c522ec02679e172", "score": "0.57540065", "text": "public interface IApiManager {\n\n void cancelAllRequest();\n\n // region MainApiClient\n\n void login(LoginRequest loginRequest, ApiCallback.OnLoginRequestCallback onLoginRequestCallback);\n\n void logout(String accessToken, ApiCallback.OnLogoutRequestCallback callback);\n\n void register(RegisterRequest registerRequest, ApiCallback.OnRegisterRequestCallback callback);\n\n void getHistory(String id, String accessToken, ApiCallback.OnHistoryRequestCallback callback);\n\n void resetPassword(ResetPasswordRequest request, String id, String accessToken, ApiCallback.OnResetPasswordCallback callback);\n\n void editProfile(Profile request, String id, String accessToken, ApiCallback.OnEditProfileRequestCallback callback);\n\n void loadProfile(String id, String accessToken, ApiCallback.OnLoadProfileRequestCallback callback);\n\n void contactUs(String id, String accessToken, ContactUsRequest request, ApiCallback.OnPostContactUsCallback callback);\n // endregion MainApiClient\n\n\n // region EduMailApiClient\n\n void loadEmail(MailRequest mailRequest, ApiCallback.OnGetMailRequestCallback onGetMailRequestCallback);\n\n void composeEmail(PostmailRequest postmailRequest, ApiCallback.OnPostMailRequestCallback onPostMailRequestCallback);\n\n void getUnreadMail(MailRequest mailRequest, ApiCallback.OnGetUnreadMailRequestCallback onGetUnreadMailRequestCallback);\n\n void loadMailDetail(MailRequest mailRequest, ApiCallback.OnGetMailDetailRequestCallback onGetMailDetailRequestCallback);\n\n void getReplyPreference(MailRequest mailRequest, ApiCallback.OnGetReplyReferenceRequestCallback onGetReplyReferenceRequestCallback);\n\n void getReplyAllPreference(MailRequest mailRequest, ApiCallback.OnGetReplyAllReferenceRequestCallback onGetReplyAllReferenceRequestCallback);\n\n void getForwardPreference(MailRequest mailRequest, ApiCallback.OnGetForwardReferenceRequestCallback onGetForwardReferenceRequestCallback);\n\n void postAddRemoveStarInMail(MailRequest mailRequest, ApiCallback.OnPostStaringMailRequestCallback onPostStaringMailRequestCallback);\n\n void postRemoveMailToTrash(MailRequest mailRequest, ApiCallback.OnPostRemoveMailToTrashCallback onPostRemoveMailToTrashCallback);\n\n void postRemoveMailPermanently(MailRequest mailRequest, ApiCallback.OnPostRemoveMailPermanentlyRequestCallback onPostRemoveMailPermanentlyRequestCallback);\n\n void postReplyMail(ReplymailRequest replymailRequest, ApiCallback.OnPostReplyMailRequestCallback onPostReplyMailRequestCallback);\n\n void getProfile(MailRequest mailRequest, ApiCallback.OnGetEdumailProfileCallback onGetProfileCallback);\n\n void postUploadAttachment(MailRequest mailRequest, String filePath, ApiCallback.OnPostUploadAttachmentCallback onPostUploadAttachmentCallback);\n\n void postSearchMail(MailRequest mailRequest, ApiCallback.OnPostSearchMailRequestCallback onPostSearchMailRequestCallback);\n\n void postDraft(PostmailRequest postmailRequest, ApiCallback.OnPostDraftRequestCallback onPostDraftRequestCallback);\n\n void getAttachmentFile(Attachment attachment, ApiCallback.OnDownloadAttachmentCallback onDownloadAttachmentCallback);\n // endregion EduMailApiClient\n\n\n // region QbacaApiClient\n\n void getQBacaData(ApiCallback.OnQBacaRequestCallback callback);\n\n\n // endregion QbacaApiClient\n\n\n // region RuangguruApiClient\n\n\n // endregion RuangguruApiClient\n}", "title": "" }, { "docid": "67b21e499dc2d56a456def40f243a1bb", "score": "0.57527494", "text": "public static Api buildApi() {\n return new Api()//\n .withName(\"northwind\")//\n\n //-- DATABASE CONFIGURATION OPTION #1.\n //-- you can set your database connection information explicitly in the code here...\n .withDb(new JdbcDb(\"northwindDb\", //the database name used as the properties key prefix when\n \"org.h2.Driver\", //-- jdbc driver\n \"jdbc:h2:mem:northwind;DB_CLOSE_DELAY=-1\", //-- jdbc url\n \"sa\", //-- jdbc user\n \"\", //-- jdbc password\n //-- OPTIONAL: the demo db is an in-memory db that gets\n //-- reinitialized each time with the data in \"northwind-h2.ddl\"\n JdbcDb.class.getResource(\"northwind-h2.ddl\").toString()))\n\n //-- DATABASE CONFIGURATION OPTION #2 & #3\n //-- comment out the above \"withDb()\" method and uncomment below\n //.withDb(new SqlDb(\"northwind\"))\n\n //-- then add the following name value pairs to one of the following\n //-- - to an 'inversion.properties' file in the classpath\n //-- - OR as java system properties\n //-- - OR as environment variables\n //--\n //-- northwind.driver=${YOUR_JDBC_DRIVER}\n //-- northwind.url=${YOUR_JDBC_URL}\n //-- northwind.user=${YOUR_JDBC_USERNAME}\n //-- northwind.pass=${YOUR_JDBC_PASSWORD}\n\n //-- the RestAction performs CRUD operations on Db objects.\n .withEndpoint(\"GET,POST,PUT,PATCH,DELETE,/*\", new DbAction());\n\n }", "title": "" }, { "docid": "a011c89d9017f05d57319840a0b398f7", "score": "0.57403994", "text": "private void startKubernetesRestApi() {\n Log.info(\"Starting Kubernetes-related REST API services\");\n try {\n final KubernetesRestApi kubernetesRestApi = new KubernetesRestApi();\n kubernetesRestApi.start();\n Log.info(\"Kubernetes REST API services successfully started.\");\n } catch (IOException e) {\n Log.err(\"Unable to start H2O Kubernetes REST API\", e);\n System.exit(1);\n }\n }", "title": "" }, { "docid": "4e2e8f0e5d24ca497e6122b025695412", "score": "0.57377094", "text": "public void initCoreObjects() {\n theMCP = new CommandController();\n\n // ArrayList<Trajectory> trajectories = new ArrayList<>();\n // trajectories.add(TrajectoryFactory.getTrajectory(leftSwitch.objects));\n // HashMap<String, Runnable> markers = new HashMap<>();\n // theTrajectoryIntepreter = new TrajectoryIntepreter(myDriveTrain,\n // myNavigation, trajectories, markers);\n\n theMCP.init(myRobot);\n\n // The handler that handles everything JSON related\n // myAutonomousDataHandler = new AutonomousDataHandler();\n\n // Takes the CommandController in order to create AutonomousStates that work\n // with the control scheme\n // myAutonomousDataHandler.init(theMCP,\n // myDashBoard238.getAutonomusModeSelector());\n\n // Controller Object for autonomous\n // theMACP = new AutonomousController();\n theMACP2019 = new AutonomousController2019(this);\n\n // Gives the newly read JSON data to the AutonomousController for processing\n // theMACP.setAutonomousControllerData(myAutonomousDataHandler);\n\n Logger.Log(\"initCoreObjects Is Sucessful!\");\n }", "title": "" }, { "docid": "7adca224ba5b4e5d21cd8c1851e3460d", "score": "0.5719816", "text": "public abstract void init()\r\n\t\t\tthrows StatusCodeException, IOException;", "title": "" }, { "docid": "ce17806715f976e424c5336a2a4b05d4", "score": "0.57165074", "text": "private ApiInfo apiInfo() {\n return new ApiInfoBuilder()\n .title(\"Healthometer API 1.0.0\")\n .description(\"Swagger Documentation\")\n .version(\"2.0.0\")\n .build();\n }", "title": "" }, { "docid": "85d55fe9036aca15c95b2951dfa6948f", "score": "0.57153744", "text": "private void initGoogleApi() {\r\n mGoogleApiClient = getGoogleApiClient(this);\r\n retrieveDeviceNode();\r\n }", "title": "" }, { "docid": "48c6ec28de5c4b65ea579371eba37bd3", "score": "0.5710276", "text": "public void init() {\n\t\tconfigureProperties();\n\t\ttry {\n\t\t\tyoutube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, new HttpRequestInitializer() {\n\t\t\t\tpublic void initialize(HttpRequest request) throws IOException {\n\t\t\t\t}\n\n\t\t\t}).setApplicationName(\"SERACH\").build();\n\t\t\t\n\t\t\tsearch = youtube.search().list(\"snippet\");//, recordingDetails, contentDetails, statistics\");\n\t\t\tsearch.setFields(\"items(id/kind,id/videoId,snippet/title,snippet/thumbnails/default/url),nextPageToken\");\n\n\t\t\tString apiKey = properties.getProperty(\"youtube.apikey\");\n\t\t\tsearch.setType(\"video\");\n\t\t\tsearch.setKey(apiKey);\n\t\t\t\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "eab66960c478f9ddeee3ce98b18a2817", "score": "0.5698137", "text": "public ProductApi() throws IOException {\n this.configProperties = loadProperties();\n cacheEnabled = true;\n\n initProperties();\n initMapper();\n }", "title": "" }, { "docid": "025134aa73ffa1687b8ec465c2fcc51b", "score": "0.569645", "text": "@Override\n public void autonomousInit() {\n \n }", "title": "" }, { "docid": "bad218507818453eb26ef8fe6af83b3e", "score": "0.5695681", "text": "@Override\n\tpublic void autonomousInit() {\n\n\t}", "title": "" }, { "docid": "1cb2b4bd3945282b5bcbe9010dc3cd79", "score": "0.569516", "text": "@Override\n public void afterPropertiesSet() throws Exception {\n APIExposeSpecification.setIsEnabledIpAcl(enableIpAcl);\n\n // In cluster mode, the API information stored in the persistence layer is fetched and stored in the cache.\n if (enableCluster) {\n try {\n log.info(\"Loading Service Information\");\n clusterRepository.getAllServiceInfo()\n .forEach(serviceInfo -> {\n apiExposeSpecification.getServiceInfoCache().put(serviceInfo.getServiceId(), serviceInfo);\n\n String servicePath = serviceInfo.getServicePath().startsWith(\"/\")? serviceInfo.getServicePath().substring(1) : serviceInfo.getServicePath();\n apiExposeSpecification.getServiceTypeCache().put(servicePath, new ServiceRoutingInfo(serviceInfo.getServiceId(), serviceInfo.getRoutingType()));\n });\n\n log.info(\"Loading API Spec Information\");\n clusterRepository.getAllApiInfo()\n .forEach(apiInfo -> syncService.syncApiInfoToCache(new ApiSync(SyncType.CREATE, apiInfo)));\n } catch (Exception ex) {\n throw new GeneralException(ExceptionType.E_1203_FAIL_CLUSTER_SYNC, ex);\n }\n }\n\n // Whether to load the api specification information in the configuration file.\n // There is no need to load each time.\n if ( !apiExposeSpecConfig.isInitEnable() ) return ;\n\n // Loads the service information in the configuration file into the cache.\n try {\n //Enroll Service expose\n apiExposeSpecConfig.getServices().forEach(service -> {\n\n RoutingType serviceRoutingType = service.isOnlyPassRequestWithoutTransform()? RoutingType.SKIP_API_TRANSFORM : RoutingType.API_TRANSFER;\n String servicePath = service.getServicePath().startsWith(\"/\")? service.getServicePath().substring(1) : service.getServicePath();\n apiExposeSpecification.getServiceTypeCache().put(servicePath, new ServiceRoutingInfo(service.getServiceId(), serviceRoutingType));\n\n ServiceInfo serviceInfo = ServiceInfo.builder()\n .serviceId(service.getServiceId())\n .serviceName(service.getServiceName())\n .minutelyCapacity(String.valueOf(service.getServiceMinutelyCapacity()))\n .dailyCapacity(String.valueOf(service.getServiceDailyCapacity()))\n .servicePath(service.getServicePath())\n .outboundServiceHost(service.getOutboundServiceHost())\n .routingType(serviceRoutingType)\n .build();\n apiExposeSpecification.getServiceInfoCache().put(service.getServiceId(), serviceInfo);\n clusterRepository.setServiceInfo(serviceInfo);\n });\n } catch (Exception ex) {\n throw new GeneralException(ExceptionType.E_1200_FAIL_SERVICE_INFO_CONFIGURATION_INIT, ex);\n }\n\n // Loads the api specification information in the configuration file into the cache.\n try {\n //Enroll API expose\n apiExposeSpecConfig.getServices().forEach(service -> {\n if (Objects.isNull(service.getApis())) return ;\n service.getApis().forEach(apiSpec -> {\n\n ConcurrentHashMap<String, Boolean> headers = new ConcurrentHashMap<>();\n apiSpec.getHeader().forEach(header -> headers.put(header.toLowerCase(), false));\n apiSpec.getHeaderRequired().forEach(requiredHeader -> headers.replace(requiredHeader.toLowerCase(), true));\n\n ConcurrentHashMap<String, Boolean> queryParams = new ConcurrentHashMap<>();\n apiSpec.getQueryParam().forEach(param -> queryParams.put(param.toLowerCase(), false));\n apiSpec.getQueryParamRequired().forEach(requiredParam -> queryParams.replace(requiredParam.toLowerCase(), true));\n\n List<TransformData> transformRequests = Lists.newArrayList();\n Map<String, String[]> transformRequest = apiSpec.getTransform();\n if (Objects.nonNull(transformRequest)) {\n transformRequest.forEach((targetKey, transformPoint) -> {\n TransformData transformData = TransformData.builder()\n .targetKey(targetKey.toLowerCase())\n .currentPoint(TransformType.of(transformPoint[0]))\n .targetPoint(TransformType.of(transformPoint[1]))\n .newKeyName(transformPoint.length > 2? transformPoint[2]:targetKey.toLowerCase())\n .build();\n transformRequests.add(transformData);\n });\n }\n\n ApiInfo apiInfo = ApiInfo.builder()\n .apiId(apiSpec.getApiId())\n .apiName(apiSpec.getApiName())\n .serviceId(service.getServiceId())\n .headers(headers)\n .queryParams(queryParams)\n .inboundURL(apiSpec.getInboundUrl().toLowerCase())\n .outboundURL(apiSpec.getOutboundUrl().toLowerCase())\n .inboundMethod(apiSpec.getMethod())\n .outboundMethod(apiSpec.getMethod())\n .protocol(apiSpec.getProtocol().stream().map(ProtocolType::of).collect(Collectors.toList()))\n .isOpenApi(true)\n .transformData(transformRequests)\n .build();\n\n clusterRepository.setApiInfo(apiInfo);\n apiExposeSpecification.getApiInfoCache().put(apiSpec.getApiId(), apiInfo);\n\n });\n });\n\n /*\n * Enroll API Routing URL\n * Loads the api path information in the configuration file into the cache.\n * path is made to pattern for regex operations.\n */\n apiExposeSpecConfig.getServices().forEach(service -> {\n if (Objects.isNull(service.getApis())) return ;\n service.getApis().forEach(apiSpec -> {\n\n String routingUrl = apiSpec.getInboundUrl();\n String routingPathInRegex = HttpHelper.getRoutingRegex(routingUrl);\n\n String servicePath = (service.getServicePath().startsWith(\"/\"))? service.getServicePath() : \"/\" + service.getServicePath();\n Pattern routingUrlInRegex = Pattern.compile(servicePath + routingPathInRegex);\n\n apiExposeSpecification.getRoutingPathCache(MethodType.of(apiSpec.getMethod())).put(apiSpec.getApiId(), routingUrlInRegex);\n\n });\n });\n } catch (Exception ex) {\n throw new GeneralException(ExceptionType.E_1201_FAIL_API_INFO_CONFIGURATION_INIT, ex);\n }\n }", "title": "" }, { "docid": "888e8a82d923e63ec0a05c8ed526e98b", "score": "0.5691998", "text": "public void robotInit() {\n RobotMap.init();\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveSubsystem = new DriveSubsystem();\n compressorSubsystem = new CompressorSubsystem();\n shooterSubsystem = new ShooterSubsystem();\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // This MUST be here. If the OI creates Commands (which it very likely\n // will), constructing it during the construction of CommandBase (from\n // which commands extend), subsystems are not guaranteed to be\n // yet. Thus, their requires() statements may grab null pointers. Bad\n // news. Don't move it.\n oi = new OI();\n // instantiate the command used for the autonomous period\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n }", "title": "" }, { "docid": "f9ebdb5d49ab62ce1cf32ae9ce2a9994", "score": "0.56897867", "text": "@PostConstruct\n @Profile(\"cse\")\n public void init() {\n configureSwagger();\n }", "title": "" }, { "docid": "cf048e4022bbd9f6a21e58e50edfa791", "score": "0.56800866", "text": "public void robotInit() {\n \t\n statsTimer = new Timer();\t// Initializes the timer for sending Smart Dashboard data\n statsTimer.start();\t\t// Starts the timer for the Smart Dashboard\n \n\t\t\n \n// Subsystem Initialization\n\n drivetrain \t\t= new Drivetrain();\n shooter\t\t\t= new Shooter();\n intake_ball\t\t= new Intake_Ball();\n intake_gear\t\t= new Intake_Gear();\n pivot_gear\t\t= new Pivot_Gear();\n loader\t\t\t= new Loader();\n led1\t\t\t= new LED();\n climber\t\t\t= new Climber();\n \n\toi \t\t\t\t= new OI();\t\t// Initializes the OI. \n\t\t\t\t\t\t\t\t\t// This MUST BE LAST or a NullPointerException will be thrown\n\t\n//\tUsbCamera ucamera=CameraServer.getInstance().startAutomaticCapture(\"cam0\", 0);\n//\tAxisCamera camera=CameraServer.getInstance().addAxisCamera(\"cam1\", \"10.7.8.11\");\n\t\n\tsendDashboardSubsystems();\t\t// Sends each subsystem's currently running command to the Smart Dashboard\n\tqueueAutonomousModes();\t\t\t// Adds autonomous modes to the selection box \n }", "title": "" }, { "docid": "4d39c0a4c58af387347f80e64e2cd32f", "score": "0.56685776", "text": "@Override\r\n\tpublic void robotInit()\r\n\t{\r\n\t\t// SUBSYSTEM INSTANTIATION //\r\n\t\t/*autoChooser=new SendableChooser();\r\n\t\tautoChooser.addDefault(\"Switch\", object);\r\n\t\tautoChooser.addDefault(\"Baseline\", object);*/\r\n\t\t\r\n\t\t\r\n\t\tdrivetrain = new Drivetrain();\r\n\t\tdrivetrain.newMecanumDrive();\r\n\t\t\r\n\t\tpneumatics = new Pneumatics();\r\n\t\t\r\n\t\tclaw = new Claw();\r\n\t\tarm = new Arm();\r\n\t\twrist = new Wrist();\r\n\t\twinch = new Winch();\r\n\t\t//gyro=new AnalogGyro();\r\n\t\t// INSTANTIATE ROBOT MODES (COMMAND GROUPS) //\r\n\t\t\r\n\t\tteleop = new Teleop();\r\n\t\t//auto = new Auto();\r\n\t\tCameraServer.getInstance().startAutomaticCapture();\r\n\t\tclaw.clawPiston.retract();\r\n\t\t/*\r\n\t\tchooser.addDefault(\"Default Auto\", new ExampleCommand());\r\n\t\tchooser.addObject(\"My Auto\", new MyAutoCommand());\r\n\t\tSmartDashboard.putData(\"Auto mode\", chooser);\r\n\t\t*/\r\n\t}", "title": "" }, { "docid": "d453a87842ee396e0a2da8fa026cd8a7", "score": "0.566782", "text": "public void autonomousInit() {\n SmartDashboard.putData(autonomousCommand);\n autonomousCommand.start();\n \n \n }", "title": "" }, { "docid": "a2d620215b6b06158a289a2043833c1a", "score": "0.56623936", "text": "public static void initRetrofit() {\n\n final String tokenId = SharedPreferencesEnum.getUserToken();\n final String id = SharedPreferencesEnum.getUserId();\n final Integer versionCode = BuildConfig.VERSION_CODE;\n\n\n OkHttpClient.Builder okHttpClient = new OkHttpClient.Builder();\n\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n okHttpClient.addInterceptor(logging);\n\n okHttpClient.readTimeout(30, TimeUnit.SECONDS);\n okHttpClient.connectTimeout(30, TimeUnit.SECONDS);\n\n okHttpClient.addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request().newBuilder()\n .addHeader(\"X-Requested-With\", \"XMLHttpRequest\")\n .addHeader(\"Authorization\", tokenId)\n .addHeader(\"appVersion\", String.valueOf(versionCode))\n .addHeader(\"id\", id).build();\n return chain.proceed(request);\n }\n });\n\n Gson gson = new GsonBuilder()\n .setLenient()\n// .excludeFieldsWithoutExposeAnnotation()\n .create();\n\n\n retrofit = new Retrofit.Builder()\n .baseUrl(URLs.ROOT_URL_MAIN)\n .client(okHttpClient.build())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .addConverterFactory(ScalarsConverterFactory.create())\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }", "title": "" }, { "docid": "8bc64647043f68f3c417f95c6fe0c2ad", "score": "0.56595206", "text": "public ApiHandlerImpl(Kernel kernel) {\n this.kernel = kernel;\n this.semuxApi = new SemuxApiImpl(kernel);\n }", "title": "" }, { "docid": "f433a68354eb31d536c3bb14c6990e94", "score": "0.56575453", "text": "public void initiateThoughpadAPI() {\n try {\n if (selectedReader != null && selectedReader.isEnabled())\n selectedReader.disable();\n } catch (BarcodeException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (ToughpadApi.isAlreadyInitialized())\n ToughpadApi.destroy();\n\n ToughpadApi.initialize(MainActivity.this, this);\n }", "title": "" }, { "docid": "fff53192fe9d683311b4142580b95185", "score": "0.5656063", "text": "private APIMethods(Context context) {\n mCtx = context;\n }", "title": "" }, { "docid": "4bd2af4474cb28292990f844f554029c", "score": "0.56477207", "text": "public WeatherAPI() throws Exception {\n sendGet();\n setJsonFile();\n }", "title": "" }, { "docid": "edfce19ddbe23dd0daf90622bd3fd0bd", "score": "0.56462675", "text": "public Core() {\n\t\tthis.setup();\n\t}", "title": "" }, { "docid": "71716b22173a8750851dd7727e534da8", "score": "0.5644888", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tNoHttp.initialize(this);\n\t\tAppConfig.getInstance();\n\t}", "title": "" }, { "docid": "ed3bfa8e64e97b1969baab3092564a57", "score": "0.56432295", "text": "private ApiSendController() {\n\n }", "title": "" }, { "docid": "35beaff5e9921c25cd06ceaafba4af78", "score": "0.5641664", "text": "public Executor(String apiName) throws IOException {\n String dataFile = GetEnvironmentVariables.getInstance().getProjectRootDirectory() + \"\\\\resources\\\\\" + apiName + \".json\";\n\n InputStream is = new FileInputStream(dataFile);\n String jsonTxt = IOUtils.toString(is, \"UTF-8\");\n testData = new JSONObject(jsonTxt);\n\n currentAPI = apiName;\n methodPool = new HashMap<>();\n variables = new HashMap<>();\n softAssert = new SuiteSoftAssert();\n logger = SuiteCommon.getLogger();\n headerCreator = new HeaderCreator(SuiteCommon.GetToken(), SuiteCommon.GetSetUpDeviceId());\n bshInterpreter = new Interpreter();\n methodPassedVerifications = new ArrayList<>();\n methodFailedVerificationsExpected = new ArrayList<>();\n methodFailedVerificationsNotExpected = new ArrayList<>();\n allPassedVerifications = new ArrayList<>();\n allFailedVerificationsExpected = new ArrayList<>();\n allFailedVerificationsNotExpected = new ArrayList<>();\n checkCorrelationId = true;\n }", "title": "" }, { "docid": "cdf5a09db4081f16c70ebb3b448566e0", "score": "0.5636037", "text": "@Override\r\n public void init() {\r\n \r\n //dimension of images\r\n this.raytraceImageDimension = new Value2Di(500, 500);\r\n this.renderImageDimension = new Value2Di(500, 500);\r\n \r\n //create bitmap images\r\n this.initBitmap(ALL_RAYTRACE_IMAGE);\r\n \r\n //instantiate devices\r\n deviceRaytrace = new CDeviceRT(\r\n this.raytraceImageDimension.x, \r\n this.raytraceImageDimension.y); \r\n deviceRender = new CDeviceGI(\r\n this.renderImageDimension.x,\r\n this.renderImageDimension.y);\r\n \r\n //init default mesh before api\r\n this.initDefaultMesh();\r\n \r\n //envmap\r\n envmap = new CEnvironment(configuration);\r\n \r\n //set api\r\n deviceRender.setAPI(this);\r\n deviceRaytrace.setAPI(this);\r\n \r\n //start ray tracing\r\n deviceRaytrace.start();\r\n \r\n }", "title": "" }, { "docid": "27d38933f3f68309be2fed0e99f69032", "score": "0.56355435", "text": "public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n // make sure the gyro is calibrated before continuing\n robot.gyro.calibrate();\n while (robot.gyro.isCalibrating()) {\n telemetry.addData(\"calibrating gyro...\",true);\n telemetry.update();\n }\n telemetry.addData(\"Done calibrating gyro...\",true);\n telemetry.update();\n\n\n }", "title": "" }, { "docid": "7235075e7c555b54dfd6307437898180", "score": "0.56315845", "text": "private ApiInfo apiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Travels Java API\")\n\t\t\t\t.description(\"Travels Java API - Endpoint's documentation\").version(releaseVersion.concat(\"_\").concat(apiVersion))\n\t\t\t\t.build();\n\t}", "title": "" }, { "docid": "180b4e25a3796cf985edf1f4a121a0da", "score": "0.56302893", "text": "public static void setup() {\n readCredentials();\n loadService();\n }", "title": "" }, { "docid": "da920630fe60a52c089df2c89af49c3b", "score": "0.5628953", "text": "public void buildAndGetApiData() {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(NetworkUtils.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n }", "title": "" }, { "docid": "cbb1c14837cf194c89013cabd54f52ec", "score": "0.56277215", "text": "public void initNetworkCalls() {\n }", "title": "" }, { "docid": "0d8364fd849154e2f14ea2d89a5d8de1", "score": "0.561867", "text": "@Override\n public synchronized void init() {\n startLoading();\n // set the interop ability\n this.interop = new PluginsInteropService(this);\n\n try {\n initializePlugins();\n initWebResources();\n } catch (Exception e) {\n logger.error(\"Could not initialize plugins configurations\", e);\n }\n stopLoading();\n }", "title": "" }, { "docid": "d1b2f311c2a82cb58fc781a34d44d34c", "score": "0.5618507", "text": "@Override\n\tpublic void autonomousInit() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a0d2a8cde60f898edf3c1ce56c2fc2df", "score": "0.5616174", "text": "public void init() {\n robot.init(hardwareMap, telemetry, false);\n sleep(100);\n\n //Start the robot at zero power, using encoders, and float zero power\n robot.brake();\n robot.runUsingEncoders();\n robot.baseBrake();\n\n // Send telemetry message to signify robot waiting\n telemetry.addData(\"Status\", \"Ready\");\n telemetry.update();\n }", "title": "" }, { "docid": "9beb7a776b814ef19f3094ec7139086d", "score": "0.56137294", "text": "public void initialize() {\n // TODO\n }", "title": "" }, { "docid": "ef9f2bd2b1d7c58e0d52d38a5afec557", "score": "0.56135726", "text": "public static void setupCoreTools(JSONObject config){\n\t\tif (config.containsKey(\"defaultAssistAPI\"))\t\t\n\t\t\tdefaultAssistAPI = JSON.getString(config, \"defaultAssistAPI\");\n\t\tif (config.containsKey(\"defaultTeachAPI\"))\t\t\n\t\t\tdefaultTeachAPI = JSON.getString(config, \"defaultTeachAPI\");\n\t\tif (config.containsKey(\"defaultAuthModule\"))\t\t\n\t\t\tdefaultAuthModule = JSON.getString(config, \"defaultAuthModule\");\n\t\tif (config.containsKey(\"clusterKey\"))\t\t\n\t\t\tclusterKey = JSON.getString(config, \"clusterKey\");\n\t\tif (config.containsKey(\"defaultAssistantUserId\"))\t\t\n\t\t\tdefaultAssistantUserId = JSON.getString(config, \"defaultAssistantUserId\");\n\t\tif (config.containsKey(\"privacyPolicy\"))\n\t\t\tprivacyPolicyLink = JSON.getString(config, \"privacyPolicy\");\n\t\t\t\t\n\t\t//Microservices API-Keys\n\t\tif (config.containsKey(\"DeutscheBahnOpenApiKey\"))\t\t\n\t\t\tDbStationResults.setApiKey(JSON.getString(config, \"DeutscheBahnOpenApiKey\"));\n\t}", "title": "" }, { "docid": "dab962b8fa706bdf046683f997923b5b", "score": "0.56128246", "text": "@Override\n protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // Set up the queue for our API requests\n requestQueue = Volley.newRequestQueue(this);\n startAPICall();\n setContentView(R.layout.activity_main);\n Button getImage = (Button) findViewById(R.id.getImage);\n getImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(final View v) {\n startAPICall();\n }\n });\n\n }", "title": "" }, { "docid": "088a0ac7969ebf8c328ff6f5abd03414", "score": "0.5610848", "text": "void init() {\n if (getLimit() != 0) {\n // Limit 0 is a special case. We never bother to do a request then.\n futureResponse = fetchNextPage(null);\n }\n }", "title": "" }, { "docid": "3737fcd0346a88672f50e4e914437ce9", "score": "0.5602472", "text": "private void InitResource() {\n\t\tif(Debug)Log.d(TAG,\"InitResource()\");\n\t\ttry {\n\t\t\tmManager = new AdBootScreenManager(AdBoot.getInstance()\n\t\t\t\t\t.getApplicationContext(), getPUBLISHERID(), true);\n\t\t\tmManager.setListener(new Listener());\n\t\t\tmManager.UpdateAdvert();\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}", "title": "" }, { "docid": "36f910f03b8d87353cf029f3f065b4c7", "score": "0.5602222", "text": "private ApiInfo apiInfo() {\n return new ApiInfo(\n \"Shepherd REST API\",\n \"Shepherd public API to handle the application's resources\",\n \"v1.0\",\n \"about:blank\",\n new Contact(\n \"Team FISÆ\",\n \"https://github.com/pbouillon/shepherd\",\n \"shepherd@fisæ.eu\"),\n \"API License\",\n \"about:blank\",\n Collections.emptyList());\n }", "title": "" }, { "docid": "1fa1484e0fc45787a202de1ba124c2ad", "score": "0.5598609", "text": "public interface ApiInterface {\n //Make all the request to the endpoints\n}", "title": "" }, { "docid": "336e973740b0d5f2298df6e0ba6f8b8a", "score": "0.55964077", "text": "private void initialize() throws JarvisConfigurationException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlog.trace(\"Initializing java client api\");\r\n\r\n\t\t\tthis.jarvisUrl = PropertiesHolder.getInstance().getProperty(JARVIS_URL_PROPERTY_NAME) != null\r\n\t\t\t\t\t? PropertiesHolder.getInstance().getProperty(JARVIS_URL_PROPERTY_NAME) + \"/api\"\r\n\t\t\t\t\t: null;\r\n\t\t\tthis.sessionId = PropertiesHolder.getInstance().getProperty(DEFAULT_SESSION_ID_PROPERTY_NAME) != null\r\n\t\t\t\t\t? PropertiesHolder.getInstance().getProperty(DEFAULT_SESSION_ID_PROPERTY_NAME)\r\n\t\t\t\t\t: null;\r\n\r\n\t\t\tinternalClient = ClientBuilder.newClient();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\tlog.error(e);\r\n\t\t\tthrow new JarvisConfigurationException(e);\r\n\t\t}\r\n\r\n\t\tif (this.jarvisUrl == null)\r\n\t\t{\r\n\t\t\tthrow new JarvisConfigurationException(\"Jarvis url cannot be empty.\");\r\n\t\t}\r\n\t}", "title": "" } ]
eafce1741751a590b9879f327c8c437e
end display THE CORE METHODS ENDS THE PRIVATE METHODS OF THE CLASS BEGIN Method to find the node which comes before the given node
[ { "docid": "0fa279d52c3ca45fd1c3050caf22ce63", "score": "0.67113614", "text": "private Node getPreviousNode(Node aNode){\r\n\t\t\r\n\t\tNode currentNode = firstNode;\r\n\t\tNode previousNode = null;\r\n\t\t\r\n\t\twhile((currentNode != null) && (compareNodes(aNode.comp, currentNode.comp) >= 0)){\r\n\t\t\t\r\n\t\t\tpreviousNode = currentNode;\r\n\t\t\tcurrentNode = currentNode.getNextNode();\r\n\t\t}\r\n\t\t\r\n\t\treturn previousNode;\r\n\t}", "title": "" } ]
[ { "docid": "1a5d793cf5c178ecfc73efab3271c85a", "score": "0.7433835", "text": "private Node<T> getNodeBefore(T anEntry)\n {\n Node<T> currentNode = this.firstNode;\n Node<T> nodeBefore = null;\n\n while ( (currentNode != null) &&\n (anEntry.compareTo(currentNode.data) > 0) )\n {\n nodeBefore = currentNode;\n currentNode = currentNode.next;\n } // end while\n\n return nodeBefore;\n }", "title": "" }, { "docid": "43ee0b588904ba0cfda29c3a1a620040", "score": "0.67715096", "text": "public MyList1<T> locateBefore(T x) {\n\t MyList1<T> n = this;\n\t while (n.next != null) {\n\t if (n.next.value == x)\n\t return n;\n\t n = n.next;\n\t }\n\t return null;\n\t }", "title": "" }, { "docid": "c01ae89253cbcfc29a0d75575c703391", "score": "0.65979135", "text": "public Node getPrev(){\n return prev;\n }", "title": "" }, { "docid": "44e56edf37831cacfbe7935e678b4840", "score": "0.6463087", "text": "public Node getPrev()\n {\n return prev;\n }", "title": "" }, { "docid": "c35e813bc8ed5e50359997121790934b", "score": "0.64465475", "text": "private ListNode2<String> addBefore( ListNode2<String> node, String msg )\r\n {\r\n ListNode2<String> getNode = new ListNode2<String>( msg,\r\n node.getPrevious(),\r\n node );\r\n node.getPrevious().setNext( getNode );\r\n node.setPrevious( getNode );\r\n return getNode;\r\n }", "title": "" }, { "docid": "cca9772dd3514329fceeb13a755442e8", "score": "0.644049", "text": "private NodeDouble getPrecedingNode(double value) {\r\n\t\tNodeDouble cursor = null;\r\n\t\tNodeDouble precursor;\r\n\t\t\t\r\n\t\t\tfor (precursor = listHead; precursor != null; precursor = precursor.getLink( )) {\r\n\t\t\t\tcursor = precursor.getLink();\r\n\t\t\t\tif(value >= precursor.getData() && cursor != null && value <= cursor.getData()){\r\n\t\t\t\t\treturn(precursor);\r\n\t\t\t\t}\r\n\t\t\t\telse if(value >= precursor.getData() && cursor == null) {\r\n\t\t\t\t\treturn(precursor);\r\n\t\t\t\t}\t\r\n\t\t\t}\t\t\t\r\n\t\treturn(null);\r\n\t}", "title": "" }, { "docid": "3f4f3020ddee47f3729cc5227b6b1a20", "score": "0.6423573", "text": "public Node getPredecessor(int pos){\n\t\treturn predecessors[pos];\n\t}", "title": "" }, { "docid": "c0c90a700127c67e31fe176e09dc950f", "score": "0.64220715", "text": "StreamData getPredecessor();", "title": "" }, { "docid": "955cf16b7abebca1b92b71c6d087d744", "score": "0.63623255", "text": "public Node<E> getPrev() {\r\n\t\t\treturn prev;\r\n\t\t}", "title": "" }, { "docid": "e908c4c3e700f4b6ff3ab0bd86f678db", "score": "0.63490057", "text": "public void addBefore (Node n, E obj) {\n\t\tNode before = n.prev;\n\t\tNode after = n;\n\n\t\tNode newNode = new Node(obj);\n\t\tnewNode.prev = before;\n\t\tnewNode.next = after;\n\t\tbefore.next = newNode;\n\t\tafter.prev = newNode;\n\t\tcount++;\n\t}", "title": "" }, { "docid": "7d43a6e1cd3ba65f1298d39387fbad66", "score": "0.6344355", "text": "@Override\r\n \tpublic Node previousSibling() {\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "8de59458f020373bdb82c9be01f0376e", "score": "0.63388395", "text": "public Node getLinkPrev() {\r\n return below;\r\n }", "title": "" }, { "docid": "45158de6e449c7ae36515bcfae75ac9a", "score": "0.6318297", "text": "public abstract int getPredecessorOf(int idx);", "title": "" }, { "docid": "11e1693a0cadc098aaf457fd66338711", "score": "0.6316073", "text": "public Node<K> getPrev(){\n\t\treturn this.prev;\n\t}", "title": "" }, { "docid": "9720a666c3692e1768087949701ba683", "score": "0.63103724", "text": "private OrderedDictionaryNode predecessor(OrderedDictionaryNode start) {\n\t\t// check if a node was passed to method\n\t\tif (start == null)\n\t\t\t// return null if no node passed\n\t\t\treturn null;\n\t\t// check if there is a left child to the passed node\n\t\tif (start.getLeftChild() != null) {\n\t\t\t// move to the left child\n\t\t\tstart = start.getLeftChild();\n\t\t\t// find the farthest right child of that node\n\t\t\twhile (start.getRightChild() != null) {\n\t\t\t\tstart = start.getRightChild();\n\t\t\t}\n\t\t\t// return the found node\n\t\t\treturn start;\n\t\t}\n\n\t\t// otherwise, check the parents for predecessor\n\t\telse {\n\t\t\t// store the parent\n\t\t\tparent = start.getParent();\n\t\t\t// continue traversing until reach a right child or root of tree\n\t\t\twhile (parent != null && start == parent.getLeftChild()) {\n\t\t\t\t// move the current node to its parent\n\t\t\t\tstart = parent;\n\t\t\t\t// move the parent to the parent of itself\n\t\t\t\tparent = parent.getParent();\n\t\t\t}\n\t\t\t// return the found node\n\t\t\treturn parent;\n\t\t}\n\t}", "title": "" }, { "docid": "b903c19314a059a97ec112e3ae8bcb63", "score": "0.62905777", "text": "private Node findpre(int index){\r\n Node rnode = head;\r\n int dex = -1;\r\n while(rnode.next != null){\r\n if( dex== index - 1){\r\n return rnode;\r\n }\r\n rnode = rnode.next;\r\n dex++;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "339f2a321ad401d5a03ab7935cad54ef", "score": "0.6276519", "text": "@Override\r\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "73aabad907a48b5843915ea88bad84ec", "score": "0.62760174", "text": "public Node getPreviousNode()\n\t{\n\t\treturn mPreviousNode;\n\t}", "title": "" }, { "docid": "9fad7b5d38cdf672213172444d862bd1", "score": "0.6224893", "text": "private E getPredecessor( AVLNode<E> node ){\n\t\twhile( node.right != null ){\n\t\t\tnode = node.right;\n\t\t}\n\t\treturn node.data;\n\t}", "title": "" }, { "docid": "494907abf4c356a26bfcbe00c9bbec14", "score": "0.62160575", "text": "private E getPredecessor ( BSTNode<E> n ) {\n //Check if n is null.\n if (n.left == null)\n return null;\n else {\n BSTNode<E> current = n.left;\n while (current.right != null) {\n current = current.right;\n }\n return current.data;\n }\n }", "title": "" }, { "docid": "19b70c89ca2369257b45aa96226a8551", "score": "0.6203357", "text": "@Override\r\n public Node previousSibling() {\n return null;\r\n }", "title": "" }, { "docid": "d797a24909445c13b121622edd0c86bf", "score": "0.62004477", "text": "public int getPreviousSibling(int nodeHandle) {\n/* 835 */ if (this._dom != null) {\n/* 836 */ return this._dom.getPreviousSibling(nodeHandle);\n/* */ }\n/* */ \n/* 839 */ return super.getPreviousSibling(nodeHandle);\n/* */ }", "title": "" }, { "docid": "cf4e843e9df6d3267a785a3b5f9619de", "score": "0.6172758", "text": "public DListNode<E> getPrevNode() {\r\n return prev;\r\n }", "title": "" }, { "docid": "8d788b2330cbea4c1870dc9a53bfa0a8", "score": "0.61693573", "text": "public void prev ()\r\n {\n if (node.right == null)\r\n {\r\n RBTree tree = (RBTree)node.nodeData;\r\n \r\n // make sure that the node hasn't been removed from the tree\r\n assert tree != null;\r\n \r\n node = tree.getMax();\r\n return;\r\n }\r\n\r\n // okay, I got a legitimate node here\r\n RBNode currentNode = node;\r\n\r\n // if I'm not looking at a logical leaf\r\n if (currentNode.left.right != null)\r\n {\r\n currentNode = currentNode.left;\r\n while (currentNode.right.right != null)\r\n currentNode = currentNode.right;\r\n \r\n node = currentNode;\r\n return;\r\n }\r\n\r\n RBNode parent = currentNode.parent;\r\n\r\n while (parent != null && currentNode == parent.left)\r\n {\r\n currentNode = parent;\r\n parent = currentNode.parent;\r\n }\r\n \r\n // if parent == null, I have asked for a prev of the first\r\n // element which is illegal!\r\n assert parent != null;\r\n\r\n node = parent;\r\n }", "title": "" }, { "docid": "3bbc3e20b1006e02623c9a5b566540e7", "score": "0.61512566", "text": "public void addBefore(NLinkedListNode<E> node){\n\t\tassert node != null : \"Cannot add a node before null\";\n\t\tNLinkedListNode<E> prev = node.previous;\n\t\tthis.setNext(node);\n\t\tthis.setPrevious(prev);\n\t}", "title": "" }, { "docid": "f04b9a3e7653dae219eb2b889398e692", "score": "0.6108317", "text": "public boolean lessThan(int node1, int node2) {\n/* 346 */ if (this._dom != null) {\n/* 347 */ return this._dom.lessThan(node1, node2);\n/* */ }\n/* */ \n/* 350 */ return super.lessThan(node1, node2);\n/* */ }", "title": "" }, { "docid": "164d8e1baf8a471ead9bc6a98864b226", "score": "0.60921836", "text": "public int getSibling();", "title": "" }, { "docid": "220b1db8bfd1569c506474e9d8f9222b", "score": "0.6080066", "text": "public void preOrderTrav(){\n node curNode;\n if ( root == null ){\n return;\n }\n curNode = root;\n while ( curNode != null ){\n if ( curNode.left == null ){\n //Nothing to find on left of tree so print root and go right\n System.out.print(curNode.value+\" \");\n curNode = curNode.right;\n }else{\n //Go to left child and find the predecessor\n node predecessor = curNode.left;\n while ( predecessor.right != curNode && predecessor.right != null ){\n predecessor = predecessor.right;\n }\n //Creating link between root and inorder predecessor\n if (predecessor.right == null){\n predecessor.right = curNode;\n System.out.print(curNode.value+ \" \");\n curNode = curNode.left;\n }else {\n //The node has been visited break the link and move to right\n predecessor.right = null;\n curNode = curNode.right;\n }\n\n }\n }\n }", "title": "" }, { "docid": "7d9b54510197754d43dd3356702f6ee8", "score": "0.6077906", "text": "void insertBefore(Object entry) {\n\t\tif (length > 0 && index >= 0) {\r\n\t\t\tNode temp = new Node(entry, cursor, cursor.prev);\r\n\t\t\tif (cursor.prev != null) {\r\n\t\t\t\tcursor.prev.next = temp;\r\n\t\t\t} else {\r\n\t\t\t\tfront = temp;\r\n\t\t\t}\r\n\t\t\tcursor.prev = temp;\r\n\t\t}\r\n\t\tindex++;\r\n\t\tlength++;\r\n\t}", "title": "" }, { "docid": "f1d4856c718b8a45912467148a0e2343", "score": "0.60606", "text": "public EWebElement prev() {\r\n\t\tEWebElement eWebElement = new EWebElement(firstElement().findElement(\r\n\t\t\t\tBy.xpath(\"preceding-sibling::*[1]\")));\r\n\t\treturn eWebElement;\r\n\t}", "title": "" }, { "docid": "de3e3c633313502e25a4851ca315de4e", "score": "0.6060049", "text": "Node getStart();", "title": "" }, { "docid": "4e29954d727b14d60a9b3bf4bda7ebdd", "score": "0.60502625", "text": "public Node<T> getPrev() {\n return prev;\n }", "title": "" }, { "docid": "4d7dd404818c33ef9c3b223bbef9c33e", "score": "0.60337126", "text": "public CPointer<bNodeTreePath> getPrev() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 8);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 4);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{bNodeTreePath.class};\n\t\treturn new CPointer<bNodeTreePath>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, bNodeTreePath.__DNA__SDNA_INDEX), __io__blockTable);\n\t}", "title": "" }, { "docid": "52b9a6444d15b09ecd6e3f8cb0ca2379", "score": "0.6029841", "text": "public abstract int getPredecessor(int v);", "title": "" }, { "docid": "718c6fa696575775c3c4908e227ca410", "score": "0.6004967", "text": "public OMNode getPreviousOMSibling() {\n return previousSibling;\n }", "title": "" }, { "docid": "17e252904794801354d4a6a4383c225c", "score": "0.5992041", "text": "void linkBefore(E e, Node<E> succ) {\n // assert succ != null;\n final Node<E> pred = succ.prev;\n final Node<E> newNode = new Node<>(pred, e, succ);\n succ.prev = newNode;\n if (pred == null)\n first = newNode;\n else\n pred.next = newNode;\n size++;\n modCount++;\n }", "title": "" }, { "docid": "9307a80836a08e8a24db3a4abac9e237", "score": "0.59836906", "text": "@Override\r\n\tpublic boolean isLessThan(Node node) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "dcdf6c29261aa273738d45df8a98aa43", "score": "0.59813535", "text": "private INode<T, V> predecessor(T key) {\n\t\tINode<T, V> t = getNode(key);\n\t\tif (!t.getRightChild().isNull()) {\n\t\t\treturn minimum(t);\n\t\t}\n\t\tINode<T, V> p = t.getParent();\n\t\twhile (!p.isNull() && t == t.getParent().getRightChild()) {\n\t\t\tt = p;\n\t\t\tp = p.getParent();\n\t\t}\n\t\treturn p;\n\t}", "title": "" }, { "docid": "4bde425bed387a7c7b88cbfb9fac6c7c", "score": "0.5960955", "text": "@Override\n\tDOMNode getPreviousSibling();", "title": "" }, { "docid": "b138af80e0f90263bda5cb9e131569ec", "score": "0.59597266", "text": "public DLNode<T> getPrevious(){\n return previous;\n }", "title": "" }, { "docid": "d255545e27560b46e50becc4d174fdb1", "score": "0.59575844", "text": "public Node<T> getPrevious() {\n\t\t\treturn this.previous;\n\t\t}", "title": "" }, { "docid": "f311d4706b9b64ec7fe433137d5a3968", "score": "0.5957167", "text": "public int getPreviousNode(XPathContext var1_1, int var2_2) throws TransformerException {\n block8 : {\n var3_3 = this.getCountMatchPattern(var1_1, var2_2);\n var4_4 = var1_1.getDTM(var2_2);\n var5_5 = var2_2;\n if (3 == this.m_level) break block8;\n do lbl-1000: // 3 sources:\n {\n var2_2 = var5_5;\n if (-1 == var5_5) return var2_2;\n var5_5 = var7_8 = var4_4.getPreviousSibling(var5_5);\n if (-1 == var7_8) ** GOTO lbl-1000\n var2_2 = var7_8;\n if (var3_3 == null) return var2_2;\n var5_5 = var7_8;\n } while (var3_3.getMatchScore(var1_1, var7_8) == Double.NEGATIVE_INFINITY);\n return var7_8;\n }\n var6_6 = this.m_fromMatchPattern;\n var5_5 = var2_2;\n do lbl-1000: // 3 sources:\n {\n var2_2 = var5_5;\n if (-1 == var5_5) return var2_2;\n var2_2 = var4_4.getPreviousSibling(var5_5);\n if (-1 == var2_2) {\n var2_2 = var5_5 = var4_4.getParent(var5_5);\n if (-1 != var5_5) {\n if (var6_6 != null) {\n if (var6_6.getMatchScore(var1_1, var5_5) != Double.NEGATIVE_INFINITY) return -1;\n }\n var2_2 = var5_5;\n if (var4_4.getNodeType(var5_5) == 9) {\n return -1;\n }\n }\n } else {\n var7_7 = var2_2;\n var5_5 = var2_2;\n do {\n var2_2 = var5_5;\n if (-1 == var7_7) break;\n var7_7 = var2_2 = var4_4.getLastChild(var5_5);\n if (-1 == var2_2) continue;\n var5_5 = var2_2;\n var7_7 = var2_2;\n } while (true);\n }\n if (-1 == (var5_5 = var2_2)) ** GOTO lbl-1000\n var2_2 = var5_5;\n if (var3_3 == null) return var2_2;\n } while (var3_3.getMatchScore(var1_1, var5_5) == Double.NEGATIVE_INFINITY);\n return var5_5;\n }", "title": "" }, { "docid": "bc3e86beb713b4c14c7eec978b7dbcb6", "score": "0.594287", "text": "public DoublyNode getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "7678f9187776f5268628224c99defbd4", "score": "0.5937512", "text": "@Override\r\n public Node insertBefore(Node newChild, Node refChild) throws DOMException {\n return null;\r\n }", "title": "" }, { "docid": "e1783f921c871d472d9a582fa453e2ca", "score": "0.59340495", "text": "public void preorder(){\n\t\tthis.visit();\n\t\tif(firstChild != null){\n\t\t\tfirstChild.preorder();\n\t\t}\n\t\tif(nextSibling != null){\n\t\t\tnextSibling.preorder();\n\t\t}\n\t}", "title": "" }, { "docid": "854cec8219b3ced21b25eaa4fa648922", "score": "0.5920909", "text": "public void insertBefore(Node inNode, Node inToBeInserted) {\n Node prevNode = inNode.prev;\n inNode.prev = inToBeInserted;\n inToBeInserted.next = inNode;\n prevNode.next = inToBeInserted;\n inToBeInserted.prev = prevNode;\n }", "title": "" }, { "docid": "3a1e348b161fdf5d89d6186c3eeae5b9", "score": "0.59208", "text": "Position<T> getPrevious(Position<T> p);", "title": "" }, { "docid": "b0bb43884f43e6bc0dfb3016f2ae4abd", "score": "0.59190226", "text": "String getTextFromPrevNode() {\n if (activeNodeNumber > 0) activeNodeNumber--; else printErrMessage(\"No previous node.\");\n return getTextFromThisNode();\n }", "title": "" }, { "docid": "8c9a11fc98f5387f3b2155318ea7b807", "score": "0.5911146", "text": "public Node<T> getPrevious() {\r\n return previous;\r\n }", "title": "" }, { "docid": "ffcd762509e9b3f6dc45decbae381bb1", "score": "0.59020734", "text": "@Override\n\tpublic VertexInterface getPredecessor() {\n\t\treturn previousVertex;\n\t}", "title": "" }, { "docid": "c5a2f6a8af5e0a0d75ab30fcf97de290", "score": "0.5895969", "text": "public void movePrev() {\n if(cursor_index < 1 || cursor_node == null) {\n cursor_index = -1;\n cursor_node = null;\n return;\n // throw new RuntimeException();\n }\n\n cursor_node = cursor_node.getPrev();\n cursor_index--;\n return;\n }", "title": "" }, { "docid": "b0fd6748d2a95e95601366caf8ad36c2", "score": "0.58885795", "text": "public Node<T> getPreviousNode() {\n\t\t\treturn previousNode;\n\t\t}", "title": "" }, { "docid": "f6b4ce0af0e684d797f717c11308153d", "score": "0.5860721", "text": "public Element getParent() {\n/* 541 */ return this.prev;\n/* */ }", "title": "" }, { "docid": "058756e3ea511a62f94eb0bb078587d3", "score": "0.5855735", "text": "public node predecessor(node x){\n if (x.right != null){\n return max(x.left);\n }\n \n node y = x.parent;\n \n while (y != null && x == y.left){\n x = y;\n y = y.parent;\n }\n \n return y;\n }", "title": "" }, { "docid": "ce8315afc1bff1db6fd84ac8e7e3e68a", "score": "0.5852916", "text": "public void insertBefore(T anEntry, T toInsert){\n if(head == null) return;\n\n if(head.data.equals(anEntry))\n {\n addFirst(toInsert);\n return;\n }\n\n Node<T> prev = null;\n Node<T> cur = head;\n\n while(cur != null && !cur.data.equals(anEntry))\n {\n prev = cur;\n cur = cur.next;\n }\n //insert between cur and prev\n if(cur != null)\n prev.next = new Node<T>(toInsert, cur);\n }", "title": "" }, { "docid": "590dce411cdd1e7ba7012f3d52aedfd0", "score": "0.5843151", "text": "private boolean isLessThan(Node curreNode,T item) { return curreNode.getItem().compareTo(item) == -1; }", "title": "" }, { "docid": "bb7cecfc702fcbb614bd6a82d2a29508", "score": "0.5841799", "text": "public abstract void findPredecessor(ValueSortedMap<IntVar> front, IntVar vi, int p);", "title": "" }, { "docid": "5bc84f05e718f80e66082ce13f1578d9", "score": "0.58372486", "text": "E frontElement();", "title": "" }, { "docid": "c6ab5e1369243fd9093771af1200fb2e", "score": "0.58275235", "text": "@Override\r\n\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "46a7fd355fbe27001069c5c13b3fbe14", "score": "0.5826252", "text": "TwoThreeNode firstChild() {\n \n return firstChild;\n \n }", "title": "" }, { "docid": "1e751e849cd0b60305c325178ba6b930", "score": "0.58212614", "text": "Node getCurrentNode();", "title": "" }, { "docid": "88b622f486aa51b8f7d83d7de623b5bd", "score": "0.58109856", "text": "public Node getPreviousSibling ()\n {\n\tif (parent == null)\n\t return null;\n\tif (parentIndex < 0 || parent.item (parentIndex) != this)\n\t parentIndex = parent.getIndexOf (this);\n\treturn parent.item (parentIndex - 1);\n }", "title": "" }, { "docid": "818460de0836661518c2816a79d7329e", "score": "0.58055234", "text": "public void beforeFirst() {\n if (!this.tblinfo.isSorted()) {\n currentscan = null;\n s1.beforeFirst();\n hasmore1 = s1.next();\n if (s2 != null) {\n s2.beforeFirst();\n hasmore2 = s2.next();\n }\n } else {\n table.beforeFirst();\n }\n }", "title": "" }, { "docid": "c4f8a394823608d3a0f0917c9bc19c2d", "score": "0.5805102", "text": "public abstract NodePosition getInsertPosition();", "title": "" }, { "docid": "8933a88ae64e158f620477ef2e0f429a", "score": "0.580504", "text": "boolean nodeHasPredecessor(N node);", "title": "" }, { "docid": "967afc9d9f479449847ed9f2a973444b", "score": "0.5803893", "text": "@Override\n\tpublic Entry<Key, Value> predecessor(Key key) {\n\t\tif (head != null) {\n\t\t\tint compared = -1;\n\t\t\tNode found = null;\n\t\t\tfor (Node n = head; n != null; n = n.next) {\n\t\t\t\tcompared = ((((String) n.key).compareToIgnoreCase((String) key)));\n\t\t\t\tif (compared == 0) {\n\t\t\t\t\tfound = n;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (compared > 0) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (found.previous != null)\n\t\t\t\treturn found.previous;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6cc1d3034d501ba9208bfea4280b1f12", "score": "0.57946205", "text": "public int findPredecessor(int id) {\n\t\tint nodeId = this.id;\n\t\tint m = BasicPeer.M;\n\t\tint nodeSucc = this.getLocalSuccessor();\n\t\t// (n, n.successor]\n\t\twhile ( !Util.isInClosedRange(id, Util.next(nodeId,m), nodeSucc, m) ) {\n\t\t\t//System.out.println(\"id : \" + id + \" nodeId \" + nodeId + \" nodeSucc \" + nodeSucc);\n\t\t\tif (nodeId == this.id) {\n\t\t\t\tnodeId = getLocalClosestPrecFinger(id);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnodeId = getPeerClosestPredFinger(nodeId, id);\n\t\t\t}\n\t\t\tnodeSucc = getPeerSuccessor(nodeId);\n\t\t\t\n\t\t\tif (nodeId == nodeSucc) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"findPredecessor returned \" + nodeId + \" for id \" + id);\n\t\treturn nodeId;\n\t}", "title": "" }, { "docid": "f3e95c8317cd88d40214216868a0f5ba", "score": "0.5777292", "text": "void preOrderTraversal();", "title": "" }, { "docid": "4534cde42876d2f37fc66f144f241ab0", "score": "0.5768987", "text": "@Override\n\tpublic List<TreeNode<E>> preOrder(TreeNode<E> e) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1f7832a85f789e3ca82b9cd625667820", "score": "0.57639694", "text": "public Node getNodeInPos()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bbc5b29300463e9da2299e172a9dab41", "score": "0.5762663", "text": "public static void main (String[] args) {\n\n ListNode head = new ListNode(-10);\n ListNode a = new ListNode(-3);\n ListNode b = new ListNode(0);\n ListNode c = new ListNode(5);\n ListNode d = new ListNode(9);\n\n head.next = a;\n a.next = b;\n b.next = c;\n c.next = d;\n// d.next = e;\n\n TreeNode treeNode = sortedHeadToBST(head);\n List<Integer> list = lc_144_二叉树前序遍历.preOrder(treeNode);\n System.out.println(list);\n }", "title": "" }, { "docid": "7036789fd2d805edfbfdcd30126c00c0", "score": "0.5756731", "text": "public void insertBefore(T key, T toInsert) {\r\n\t\tif (head == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (head.data == key) {\r\n\t\t\taddFirst(toInsert);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tNode<T> prev = null;\r\n\t\tNode<T> cur = head;\r\n\r\n\t\twhile (cur != null && !cur.data.equals(key)) {\r\n\t\t\tprev = cur;\r\n\t\t\tcur = cur.next;\r\n\t\t}\r\n\t\t// insert between cur and prev\r\n\t\tif (cur != null)\r\n\t\t\tprev.next = new Node<T>(toInsert);\r\n\t\tcur = cur.next;\r\n\t}", "title": "" }, { "docid": "265a11f9fcff2ec9e1d2f1d31c693eb9", "score": "0.5742214", "text": "void insertBefore(String key, String data) {\n\t\tSingleLinkedListNode temp;\n\t\tSingleLinkedListNode newNode;\n\t\t//SingleLinkedListNode insertPosition = new SingleLinkedListNode(key);\n\t\ttemp=head;\t\t\t\t\n\t\twhile(!temp.getNext().getData().equals(key))\n\t\t{\n\t\t\ttemp=temp.getNext();\n\t\t}\n\t\tnewNode=new SingleLinkedListNode(data);\n\t\tnewNode.setNext(temp.getNext());\n\t\ttemp.setNext(newNode);\n\t}", "title": "" }, { "docid": "f93216ff0236dc4e15adfc42d38b7e0b", "score": "0.57304084", "text": "public Nodo getPreviousPos() {\r\n\t\treturn previousPos;\r\n\t}", "title": "" }, { "docid": "5f6793dec15a451e4dcb7bc7b5bfbbb7", "score": "0.5729249", "text": "Node firstChildNode();", "title": "" }, { "docid": "67df827c7408b7e2b1c0cdc91d3ab0fe", "score": "0.57171005", "text": "static Node insertAtTheBegin( Node start_ref, int data) \r\n\t{ \r\n\t Node ptr1 = new Node(); \r\n\t ptr1.data = data; \r\n\t ptr1.next = start_ref; \r\n\t if (start_ref != null) \r\n\t (start_ref).prev = ptr1; \r\n\t start_ref = ptr1; \r\n\t return start_ref; \r\n\t}", "title": "" }, { "docid": "0deb63c6afda757015a7c637dbb23b4f", "score": "0.57109094", "text": "public NodeBST predecessor(NodeBST node) {\n\t\tif(node.getLeft() != null) {\n\t\t\treturn max(node.getLeft());\n\t\t} \n\t\t\n\t\tNodeBST aux = node;\n\t\twhile(aux.getParent() != null) {\n\t\t\tif(aux.getParent().getValue() < aux.getValue()) {\n\t\t\t\treturn aux.getParent();\n\t\t\t}\n\t\t\taux = aux.getParent();\n\t\t}\n\t\treturn null; // Não há predecessor\n\t}", "title": "" }, { "docid": "1a61331bd2c1550c215725f7eac7c608", "score": "0.570422", "text": "public abstract DeviceTreeNode getParentNode();", "title": "" }, { "docid": "83f0422c8c2baf210bc759169d972212", "score": "0.5700171", "text": "SkipListItem<T> getFirstNode() {\n\t\t\tSkipListItem<T> temp = this.head;\n\n\t\t\twhile (temp.down != null) {\n\t\t\t\ttemp = temp.down;\n\t\t\t}\n\n\t\t\tif (temp.next != null) {\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn temp;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "9a14c0c1740abe89ac8ecfd338e20a07", "score": "0.56887364", "text": "void inorderTraversal(Node node) {\r\n\t\tif(node==null)\r\n\t\t\treturn;\r\n\t\tNode current=node;\r\n\t\twhile(current!=null){\r\n\t\t\t//if node doesn't have any left child, print data and move to right side\r\n\t\t\tif(current.left==null){\r\n\t\t\t\tSystem.out.print(current.key+\" \");\r\n\t\t\t\tcurrent=current.right;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{ \r\n\t\t\t\t\r\n\t\t\t\tNode pre=current.left;\r\n\t\t\t\t//Go more the inorder predecessor of the current\r\n\t\t\t\twhile(pre.right!=null && pre.right!=current){\r\n\t\t\t\t\tpre=pre.left;\r\n\t\t\t\t}\r\n\t\t\t\t//making current as the right child of the inorder predecessor of current\r\n\t\t\t\tif(pre.right==null){\r\n\t\t\t\t\tpre.right=current;\r\n\t\t\t\t\tcurrent=current.left;\r\n\t\t\t\t}\r\n\t\t\t\t\t//if the right child of the inorder predecessor is not null i.e. It is already assigned \r\n\t\t\t\telse{\r\n\t\t\t\t\tpre.right=null;\r\n\t\t\t\t\tSystem.out.print(current.key+\" \");\r\n\t\t\t\t\tcurrent=current.right;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47316e29089b5b4e32235c7321d8eb59", "score": "0.5684251", "text": "@Override\n\t\tpublic BinaryHeapEntry leftSibling() {\n\t\t\tif (index <= 1)\n\t\t\t\treturn null;\n\t\t\telse if ((index & 0x01) == 0)\n\t\t\t\treturn BinaryHeap.this.elements[index - 1];\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "08a4ef1169bad7e2e0761a973c14f9ec", "score": "0.56808966", "text": "public Boolean isXbeforeY(Node node, Node.Type x, Node.Type y){\n while(node.nodeType != x || node.nodeType != y){\n if(node.nodeType == x){\n return true;\n }else if (node.nodeType == y){\n return false;\n }else if(node.nodeType == Node.Type.ROOT){\n return false;\n }\n node = node.parent;\n }\n return false;\n }", "title": "" }, { "docid": "11e4995327dfb4b64325f2faf71b54a2", "score": "0.56785434", "text": "private Point leftestVertex()\n {\n if (this._head == null)\n {\n return null;\n }\n else\n {\n PointNode pointer = _head;\n PointNode leftest = _head;\n while (pointer != null)\n {\n if ((pointer.getPoint().isLeft(leftest.getPoint())))\n {\n leftest = pointer;\n }\n pointer = pointer.getNext();\n }\n return (new Point(leftest.getPoint()));\n }\n }", "title": "" }, { "docid": "7a91648256c4fd0543a399f9e2a9ae8a", "score": "0.56732464", "text": "public void setPrev(Node<T> n){\n this.prev = n; \n }", "title": "" }, { "docid": "7834e478c72f616c3601319aa7cd73a2", "score": "0.56725353", "text": "public Node insertBefore (Node newChild, Node refChild)\n throws DOMException\n\t{ throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR); }", "title": "" }, { "docid": "51e924095c27a3288707439fdad6edef", "score": "0.5666634", "text": "public void preorder() {\n System.out.println(\"Preorder traversal of this tree is:\");\n preOrder(this.root);\n System.out.println(); // for next li\n }", "title": "" }, { "docid": "919fa1f11b4706c662d4f2eb83227626", "score": "0.5666255", "text": "private BinomialNode findMinimumNode() {\n\t\t\tBinomialNode p = this, q = this;\n\t\t\tint minimum = p.key;\n\t\t\t//iterate over all nodes\n\t\t\twhile (p != null) {\n\t\t\t\t//find minimum and keep it updated\n\t\t\t\tif (p.key < minimum) {\n\t\t\t\t\tq = p;\n\t\t\t\t\tminimum = p.key;\n\t\t\t\t}\n\t\t\t\tp = p.sibling;\n\t\t\t}\n\n\t\t\treturn q;\n\t\t}", "title": "" }, { "docid": "bf6a379ef25ef0d08630d74adc31641d", "score": "0.56641436", "text": "Node parentNode();", "title": "" }, { "docid": "29a05ce41df2da91beb1d604259801a1", "score": "0.5653751", "text": "public Node getPrevThreaded()\n {\n return this.prevThreaded;\n }", "title": "" }, { "docid": "3171edadd1d935b978c43f6f20d319b8", "score": "0.5653368", "text": "public void addBeforeElement(Item item, D_Element next) {\n // FIXME\n // END \n }", "title": "" }, { "docid": "02bba8b10a7e14d8207c4f9947816dab", "score": "0.56505674", "text": "private node<T> removeInorderPredecessor(node<T> entry) {\n\t\tif (entry == null)\n\t\t\tthrow new NoSuchElementException();\n\t\telse if (entry.right != null) {\n\t\t\tentry.right = removeInorderPredecessor(entry.right);\n\t\t\treturn entry;\n\t\t} else\n\t\t\treturn entry.left;\n\t}", "title": "" }, { "docid": "8a7897726620b1e62c08d14d9a7cec2d", "score": "0.5648476", "text": "TreeNode findInOrderSuccessor(TreeNode inputNode) {\r\n\t\tTreeNode n; \r\n\t if(inputNode.right!=null){\r\n\t n=inputNode.right;\r\n\t while(n.left!=null){\r\n\t n=n.left;\r\n\t }\r\n\t \r\n\t return n;\r\n\t \r\n\t } else {\r\n\t n=inputNode.parent;\r\n\t while(n!=null){\r\n\t if(n.val>inputNode.val){\r\n\t return n;\r\n\t } else {\r\n\t n=n.parent;\r\n\t }\r\n\t }\r\n\t }\r\n\t \r\n\t return null;\r\n\t \r\n\t }", "title": "" }, { "docid": "7d8f6502cc3f9b89d71d826f8ebc6f77", "score": "0.5647436", "text": "public TreeNode getLeft();", "title": "" }, { "docid": "66cccd17a7351432a637b11842bb4982", "score": "0.5639223", "text": "@Override\n\tDOMNode insertBefore(Node newChild, Node refChild) throws DOMException;", "title": "" }, { "docid": "dac894a86cf2e85e2868470f271c06a1", "score": "0.5636661", "text": "private void preOrder(Node node) {\r\n if (node != null) {\r\n System.out.print(node.element + \" \");\r\n preOrder(node.left);\r\n preOrder(node.right);\r\n }\r\n\r\n }", "title": "" }, { "docid": "464593af8ced37ef80842d375b38ea9d", "score": "0.56363493", "text": "public OperationEntry<E,S> getPrev();", "title": "" }, { "docid": "a31ca0b51aa74b30a3c6cf5d7e1e990f", "score": "0.5635132", "text": "public Node getFirstChild () { return null; }", "title": "" }, { "docid": "dab859e4551a362064088e765981470b", "score": "0.5629735", "text": "private boolean pointLessThanNode(Node compNode, Point2D compPoint){\r\n if(compNode.orientation == HORIZONTAL){\r\n return compPoint.y() < compNode.point.y();\r\n }\r\n else{\r\n return compPoint.x() < compNode.point.x();\r\n }\r\n }", "title": "" }, { "docid": "de0c75e688a51902ca5eff3ccf75ef79", "score": "0.56277394", "text": "private ListLoc findFront(E item){\r\n\r\n\t\tif(size == 0){\r\n\t\t\treturn new ListLoc(0,0);\r\n\t\t}\r\n\t\t\r\n\t\tint x = 0; //current Array 1 index\r\n\t\tint y = 0; //current Array 2 index\r\n\t\t\r\n\t\twhile(x <= l1NumUsed){\r\n\t\t\tL2Array curtl2 = (L2Array)l1Array[x];\r\n\t\t\tif(comp.compare(item, curtl2.items[0]) < 0){\r\n\t\t\t\tx--;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tx++;\r\n\t\t}\r\n\t\t\r\n\t\tif(x==-1){\r\n\t\t\treturn new ListLoc(0,0);\r\n\t\t}\r\n\t\t\r\n\t\tL2Array l2 = (L2Array) l1Array[x];\r\n\t\twhile(l2.items[y] != null && y < l2.numUsed){\r\n\t\t\tint cmp = comp.compare(item, l2.items[y]);\r\n\t\t\tif(cmp <=0){\r\n\t\t\t\treturn new ListLoc(x,y);\r\n\t\t\t}\r\n\t\t\ty++;\r\n\t\t}\r\n\t\treturn new ListLoc(x,y);\r\n}", "title": "" }, { "docid": "77513fe590420d244d5641dae474be10", "score": "0.5617867", "text": "private Node inOrderPredecessor(Node current, Node parent) {\n while (current.right != null) {\n parent = current;\n current = current.right;\n }\n parent.right = null;\n return current;\n }", "title": "" } ]
04993b2d2357296c513f53472c9d12af
Helper method for negative saturation
[ { "docid": "d7cec972d2c3c644d21b8f3b3b75892c", "score": "0.68634826", "text": "public double negSaturation(double num, double f, double brightness) {\n return num * (1.0 + (f / 100.0)) - (brightness * f / 100.0);\n }", "title": "" } ]
[ { "docid": "eaabf6958aef663f227ee31b917e01e8", "score": "0.64216584", "text": "public void negative(int start, int end)\r\n{\r\n //initialize all variables\r\n Pixel[] pixelArray = this.getPixels();\r\n Pixel p = null;\r\n \r\n int i = start;\r\n int c = 0;\r\n \r\n //loop makes the colors set to negative counterpart\r\n while(i <= end)\r\n {\r\n //Define pixel p to be the ith pixel of the array of pixels\r\n p = pixelArray[i];\r\n \r\n //Set c to the red value\r\n c = p.getRed();\r\n \r\n //Set the pixel value to 255-c\r\n p.setRed(255-c);\r\n \r\n //Reset pixel value to green value\r\n c = p.getGreen();\r\n \r\n //Set the green value to 255 - c\r\n p.setGreen(255-c);\r\n \r\n //Reset c to the blue value \r\n c = p.getBlue();\r\n \r\n //Set blue value to 255-c\r\n p.setBlue(255-c);\r\n \r\n //next recursive step\r\n i++;\r\n \r\n \r\n }\r\n}", "title": "" }, { "docid": "3a5244754f88aa86c9b0d93149214457", "score": "0.619278", "text": "public Paint getNegativePaint();", "title": "" }, { "docid": "311ae20e1db8e2368b2b52311b0658dd", "score": "0.60320985", "text": "@Override\n public Color modulate(float s) {\n\treturn null;\n }", "title": "" }, { "docid": "a6365312397a7935a099305f134ce301", "score": "0.5866924", "text": "@Override\n public Scalar additivelyInvert() {\n return new Scalar(-value);\n }", "title": "" }, { "docid": "4889bb95d36c40dfaa0bf12ab12718c8", "score": "0.58263785", "text": "private int sign(int x){\n return flip((x>>31) & 1);\n }", "title": "" }, { "docid": "522b082538e208125fd61a8a9d75dc79", "score": "0.5809232", "text": "@Override\n public Color clip() {\n\treturn null;\n }", "title": "" }, { "docid": "e021a154d55a219992bb2331d9e90fff", "score": "0.58072925", "text": "public void subtractColor(int red, int green, int blue)\r\n{\r\n //initilization \r\n Pixel[] pixelArray = this.getPixels();\r\n Pixel p = null;\r\n int c = 0;\r\n \r\n //Loop subtracts the colors from the parameters from the picture\r\n for(int i = 0; i<pixelArray.length; i++)\r\n {\r\n //Set p to the ith pixel starting from 0\r\n p = pixelArray[i];\r\n \r\n //Make c the red value of the pixel\r\n c = p.getRed();\r\n \r\n //Set the color of the pixel to c - parameter value\r\n p.setRed(c-red);\r\n \r\n //Re-set c to the green value of the pixel\r\n c = p.getGreen();\r\n \r\n //Set the green value of the pixel to c - second parameter value\r\n p.setGreen(c-green);\r\n \r\n //Re-set c to the blue value\r\n c = p.getBlue();\r\n \r\n //Set blue value to c - 3rd parameter value\r\n p.setBlue(c-blue);\r\n \r\n \r\n }\r\n}", "title": "" }, { "docid": "9d002c150a64dd478bdc2709ba716bd5", "score": "0.57935226", "text": "public DBSColor invertLightness(){\n\t\tHSLA xHSLA = this.toHSLA();\n\t\tfloat xLightness = xHSLA.getLightness();\n\t\tif (xLightness > 50){\n\t\t\txLightness -= 75;\n\t\t\tif (xLightness < 0){\n\t\t\t\txLightness = 0;\n\t\t\t}\n\t\t}else{\n\t\t\txLightness += 75;\n\t\t\tif (xLightness > 100){\n\t\t\t\txLightness = 100;\n\t\t\t}\n\t\t}\n\t\tDBSColor xInverted = new DBSColor(TYPE.HSLA, xHSLA.getHue(), xHSLA.getSaturation(), xLightness, xHSLA.getAlpha());\n\t\treturn xInverted;\n\t}", "title": "" }, { "docid": "42f611bd7fd9ba2b73700f380e114293", "score": "0.5763948", "text": "@Test\n\tpublic void failOnInvalidSaturation() {\n\t\t// Given any white, red > 200, blue > 200, and yellow <= 200\n\t\t// And any finish\n\t\tint blue = 201;\n\t\tint red = 201;\n\t\tint yellow = 200;\n\t\tint white = Any.dropsGreaterThanOrEqualTo(50);\n\t\tPaintFinish finish = Any.finish();\n\n\t\t// When: initialize a Paint object with given blue, red, yellow, and\n\t\t// white drops and given finish\n\t\ttry {\n\t\t\tnew PaintFactory().createPaint(red, blue, yellow, white, finish);\n\t\t\tfail(\"Saturation validator not invoked\");\n\t\t} catch (SaturationException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "f7fa9a7d9cca9667434c37157a4e38ac", "score": "0.5744468", "text": "public void abs() {\n\t\tfor (int k = 0; k < size; k++)\n\t\t\tpixels[k] = Math.abs(pixels[k]);\n\t}", "title": "" }, { "docid": "3a043388867cbf7ccbaef467a2559911", "score": "0.5698278", "text": "public double posSaturation(double num, double f, double a) {\n return num * ((a + ((1.0 - a) * (f / 100.0))) / a);\n }", "title": "" }, { "docid": "3c36b558b4c22313827ab85c452d68ed", "score": "0.56644696", "text": "public void lowRed()\r\n{\r\n// Initialize\r\nPixel[] pixArray = this.getPixels();\r\nPixel p = null;\r\n\r\n// Goes through the entire pixel array\r\n for(Pixel pix : pixArray)\r\n {\r\n // if redvalue is above 127, divide it by 2\r\n if(pix.getRed()>255/2)\r\n pix.setRed(pix.getRed()/2);\r\n }\r\n \r\n \r\n}", "title": "" }, { "docid": "9538bcc3c9f70e3a8d7d9adebcec0abb", "score": "0.55598515", "text": "public HeftyInteger negate() {\n\t\tbyte[] neg = new byte[val.length];\n\t\tint offset = 0;\n\n\t\t// Check to ensure we can represent negation in same length\n\t\t// (e.g., -128 can be represented in 8 bits using two's\n\t\t// complement, +128 requires 9)\n\t\tif (val[0] == (byte) 0x80) { // 0x80 is 10000000\n\t\t\tboolean needs_ex = true;\n\t\t\tfor (int i = 1; i < val.length; i++) {\n\t\t\t\tif (val[i] != (byte) 0) {\n\t\t\t\t\tneeds_ex = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if first byte is 0x80 and all others are 0, must extend\n\t\t\tif (needs_ex) {\n\t\t\t\tneg = new byte[val.length + 1];\n\t\t\t\tneg[0] = (byte) 0;\n\t\t\t\toffset = 1;\n\t\t\t}\n\t\t}\n\n\t\t// flip all bits\n\t\tfor (int i = 0; i < val.length; i++) {\n\t\t\tneg[i + offset] = (byte) ~val[i];\n\t\t}\n\n\t\tHeftyInteger neg_li = new HeftyInteger(neg);\n\n\t\t// add 1 to complete two's complement negation\n\t\treturn neg_li.add(new HeftyInteger(ONE));\n\t}", "title": "" }, { "docid": "e8bc39d47af71db85b16e76359980b58", "score": "0.5514023", "text": "public void Negativo(BufferedImage imgOriginal){\n LookupTable slt = LookupTableProducer.createLookupTable(LookupTableProducer.TYPE_NEGATIVE);\n LookupOp lop = new LookupOp(slt, null);\n imgDestino = lop.filter(imgOriginal,null);\n }", "title": "" }, { "docid": "5f75c51fefb1a28c36a67f595c47df53", "score": "0.54841834", "text": "public Pixel clip() {\n int[] c = new int[3];\n for (int i = 0; i < 3; i ++){\n if (component[i] < 0) \n { c[i] = 0; }\n else if (component[i] > 255) \n { c [i] = 255; }\n else \n { c[i] = component[i]; }\n }\n return new Pixel(c);\n }", "title": "" }, { "docid": "993bd4ba017d56e78a9c5e60d8a96021", "score": "0.5464331", "text": "private static int getSign(int n) {\n return flip(n>>31 & 0x1);\n }", "title": "" }, { "docid": "9de717b098fabd919176d8dec1775b86", "score": "0.54612774", "text": "public void setSaturation(float sat) {\n reset();\n float[] m = mArray;\n\n final float invSat = 1 - sat;\n final float R = 0.213f * invSat;\n final float G = 0.715f * invSat;\n final float B = 0.072f * invSat;\n\n m[0] = R + sat; m[1] = G; m[2] = B;\n m[5] = R; m[6] = G + sat; m[7] = B;\n m[10] = R; m[11] = G; m[12] = B + sat;\n }", "title": "" }, { "docid": "44c5f94fced0e319429ff83bfec49f82", "score": "0.5435173", "text": "public void negate()\n\t{\n\t\t// compl�ter\n\n\t\tfor (int i=0; i< this.height; i++) {\n\t\t\tfor(int j=0; j< this.width; j++)\n\t\t\t{\n\t\t\t\tthis.imageData[i][j] = (this.imageData[i][j]).Negative();\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "f0e8a7d38813ddfc4f248ef1a5b3a2d1", "score": "0.5433595", "text": "private static int negate(final int n) {\n int newSign = n > 0 ? -1 : 1;\n int delta = newSign;\n int result = 0;\n int count = n;\n while (count != 0) {\n boolean signsChange = (count + delta > 0) != (n > 0);\n if (signsChange && count+delta != 0) {\n delta = newSign;\n }\n count += delta;\n result += delta;\n delta += delta;\n }\n return result;\n }", "title": "" }, { "docid": "7c4a3e9b24d9c6414be166a8a5d24318", "score": "0.5433214", "text": "public Cdouble neg() {\n return new Cdouble(-r,-i);\n }", "title": "" }, { "docid": "f0542275fb9dcc5b9a5f3ec9ed51dded", "score": "0.54263586", "text": "public double getTileSaturation()\n {\n return m_TileSaturation;\n }", "title": "" }, { "docid": "fe10fae53f74498bc5f9e0f107f43c3a", "score": "0.5422463", "text": "public void toSharpen() {\n\t\tfloat[] data = { 0.0f, -0.75f, 0.0f, -0.75f, 4.0f, -0.75f, 0.0f, -0.75f, 0.0f };\n\t\tConvolveOp cop = new ConvolveOp(new Kernel(3, 3, data));\n\t\timage = cop.filter(image, null);\n\t}", "title": "" }, { "docid": "9f49943c5bc5f6845a391fcfd034dedc", "score": "0.5410819", "text": "public dfp negate()\n {\n dfp result = newInstance(this);\n result.sign = (byte) -result.sign;\n return result;\n }", "title": "" }, { "docid": "3e89781c8fba090be93fa884f96c9df9", "score": "0.5372747", "text": "public static float convertMixRange2NegativeOneToOne (float in) {\n in += 1.0f;\n in *= 0.5f;\n return in;\n }", "title": "" }, { "docid": "48cdd5696b3da6007c0a9da7e5ecf267", "score": "0.5313098", "text": "private static boolean isMinusP255(final Bytes32 v) {\n if (v.get(0) != (byte) 0x80) return false;\n\n byte b = 0;\n for (int i = 1; i < v.size(); i++) {\n b |= v.get(i);\n }\n return b == 0;\n }", "title": "" }, { "docid": "03a77aca1ade4813223c87917d0f6711", "score": "0.52941066", "text": "private void darken() {\n \tColor c = getColor(); // get cur color\n \tint red = c.getRed(), green = c.getGreen(), blue = c.getBlue();\n \tif (red >= 10) { \n red -= 10;\n }\n \tif (green >= 10) {\n green -= 10;\n }\n \tif (blue >= 10) {\n blue -= 10;\n }\n \tsetColor(new Color(red, green, blue)); // set the new color\n }", "title": "" }, { "docid": "d0382a8741dbf4963762f1fe330e4023", "score": "0.52879673", "text": "@SideOnly(Side.CLIENT)\r\n/* 57: */ public float getStarBrightness(World world, float f)\r\n/* 58: */ {\r\n/* 59: 61 */ return 0.0F;\r\n/* 60: */ }", "title": "" }, { "docid": "043f6ff024df3347143adaaaeb0f53c7", "score": "0.5244203", "text": "public static float convertMixRange2ZeroToOne (float in) {\n in *= 2.0f - 1.0f;\n return in;\n }", "title": "" }, { "docid": "5aaa26bbd47c35cf0928366fdcbe14e4", "score": "0.5222785", "text": "private static boolean negate(int[] dest, int[] src, int len)\n {\n long carry = 1;\n boolean negative = src[len-1] < 0;\n for (int i = 0; i < len; i++)\n {\n carry += ((long) (~src[i]) & 0xffffffffL);\n dest[i] = (int) carry;\n carry >>= 32;\n }\n return (negative && dest[len-1] < 0);\n }", "title": "" }, { "docid": "0d12f86bfc104c1e718f10d0e6326873", "score": "0.5218968", "text": "public boolean getRemoveNegativeStresses() {\n\t\treturn removeNegativeStresses_;\n\t}", "title": "" }, { "docid": "70e26a88307befad379cb925e35a3a2c", "score": "0.52131003", "text": "public int sign(int n) {\n\t\t// MSB is 0 is positive, 1 if negative\n\t\treturn flip((n>>31) & 0x1);\n\t}", "title": "" }, { "docid": "0ed7e8c5f0171b58887b2375b9f5ea44", "score": "0.5206369", "text": "private void setNegativeFlagFor(int value){\n setFlagTo(Flag.NEGATIVE, isNegative(value));\n }", "title": "" }, { "docid": "42928420a548e624b8ee3c694ace86de", "score": "0.5204531", "text": "private byte[] buildSaturationPayload(int milightZone) {\n byte[] payload = new byte[]{(byte) 128, (byte) 0, (byte) 0, (byte) 0, (byte) 17, milightSessionByte1, milightSessionByte2, (byte) 0, (byte) (-128 + noOnce), (byte) 0, (byte) 49, milightPasswordByte1, milightPasswordByte2, (byte) 8, (byte) 2, (byte) newSaturation, (byte) 0, (byte) 0, (byte) 0, (byte) milightZone, (byte) 0, (byte) 0};\n\n\t\t/* Checksum */\n payload[21] = (byte) ((char) (0xFF & payload[10]) + (char) (0xFF & payload[11]) + (char) (0xFF & payload[12]) + (char) (0xFF & payload[13]) + (char) (0xFF & payload[14]) + (char) (0xFF & payload[15]) + (char) (0xFF & payload[16]) + (char) (0xFF & payload[17]) + (char) (0xFF & payload[18]) + (char) (0xFF & payload[19]) + (char) (0xFF & payload[20]));\n\n\t\t/* Increment sequential number */\n noOnce = (noOnce + 1) % 256;\n\n return payload;\n }", "title": "" }, { "docid": "42ae7a00d0a2f5857e71572b1bcc4325", "score": "0.51997465", "text": "public Cubism setTileSaturation(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 10.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 10.00);\n\t }\n\n m_TileSaturation = value;\n setProperty(\"tile-saturation\", value);\n return this;\n }", "title": "" }, { "docid": "fa7118805f03c036d40c6ae47267131c", "score": "0.5199291", "text": "public void zeroGreen() {\n //TODO: Write this method. \n }", "title": "" }, { "docid": "aa86c429941d665559c99330afe0956b", "score": "0.518887", "text": "public void setHsvBlack(){\n \tmLowerBound.val[0] = 0;\n \tmUpperBound.val[0] = 255;\n \t\n \tmLowerBound.val[1] = 0;\n \tmUpperBound.val[1] = 247;\n \t\n \tmLowerBound.val[2] = 0;\n \tmUpperBound.val[2] = 49;\n \t\n \tmLowerBound.val[3] = 0;\n mUpperBound.val[3] = 255;\n \n Mat spectrumHsv = new Mat(1, 255-0, CvType.CV_8UC3);\n\n for (int j = 0; j < 255-0; j++) {\n byte[] tmp = {(byte)(0+j), (byte)255, (byte)255};\n spectrumHsv.put(0, j, tmp);\n }\n\n Imgproc.cvtColor(spectrumHsv, mSpectrum, Imgproc.COLOR_HSV2RGB_FULL, 4);\n\n }", "title": "" }, { "docid": "afb466e6cd398b87017fd8010514862e", "score": "0.5183648", "text": "public static void alterImage() {\r\n\t\r\n\timgAltered = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB);\r\n //contrast = 2.0 + (5.0 - 2.0) * rand.nextDouble(); //values from 2.0 to 5.0\r\n \r\n \r\n for(int i = 0; i < img.getWidth(); i++) {\r\n for(int j = 0; j < img.getHeight(); j++) {\r\n Color c = new Color(img.getRGB(i, j));\r\n int red = (int) contrast * c.getRed();\r\n int green = (int) contrast * c.getGreen();\r\n int blue = (int) contrast * c.getBlue();\r\n\r\n if(red > 255) { // the values of the color components must be between 0-255\r\n red = 255;\r\n } else if(red < 0) {\r\n red = 0;\r\n }\r\n if(green > 255) {\r\n green = 255;\r\n } else if(green < 0) {\r\n green = 0;\r\n }\r\n if(blue > 255) {\r\n blue = 255;\r\n } else if(blue < 0) {\r\n blue = 0;\r\n }\r\n imgAltered.setRGB(i, j, new Color(red, green, blue).getRGB());\r\n }\r\n }\r\n \r\n}", "title": "" }, { "docid": "b18a27ca53f904eda6214d40784441cd", "score": "0.51684713", "text": "private boolean isNegative(int valor){\r\n\t\tif(valor<0) return true;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "fbee78c4196b4c535b3c3618ae0b9b85", "score": "0.5165351", "text": "double getThermalIrEmissivityBack();", "title": "" }, { "docid": "f1890bfc4292e90e5880ee030790727c", "score": "0.5155652", "text": "double getBrightness();", "title": "" }, { "docid": "78dd51631b0b12e0e5336fe45263d549", "score": "0.5155629", "text": "private int findClosestColor(int oldColor) {\n if (oldColor < 128) {\n return 0;\n } else {\n return 255;\n }\n }", "title": "" }, { "docid": "f3d3a855d99be13edb20ee837dfee619", "score": "0.51413864", "text": "@Test\n public void test_highToLow_neg10x_minus20() {\n // polynomial is -10x - 20\n int [] coeffsLowToHigh = new int [] {-20, -10, 0, 0};\n int [] actual = Polynomial.highToLow(coeffsLowToHigh);\n int [] expected = new int [] {-10, -20};\n assertArrayEquals(expected, actual);\n }", "title": "" }, { "docid": "e920183f3d0bc57f9ad130f1d2b90007", "score": "0.5135916", "text": "public void updateInvertPaint(float f) {\n float f2 = 1.0f - (2.0f * f);\n float f3 = 255.0f * f;\n this.mMatrix.set(new float[]{f2, 0.0f, 0.0f, 0.0f, f3, 0.0f, f2, 0.0f, 0.0f, f3, 0.0f, 0.0f, f2, 0.0f, f3, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f});\n this.mGrayscaleMatrix.setSaturation(1.0f - f);\n this.mMatrix.preConcat(this.mGrayscaleMatrix);\n this.mDarkPaint.setColorFilter(new ColorMatrixColorFilter(this.mMatrix));\n }", "title": "" }, { "docid": "680e6b3df03d7ebbb7a071726021a595", "score": "0.5109402", "text": "@Test\n public void test_lowToHigh_neg10x_minus_20() {\n // polynomial: -10x - 20\n int [] coeffsHighToLow = new int [] {0, 0, -10, -20};\n int [] actual = Polynomial.lowToHigh(coeffsHighToLow);\n int [] expected = new int [] {-20, -10};\n assertArrayEquals(expected, actual);\n }", "title": "" }, { "docid": "31da5209c792c20307ade74cec6ed427", "score": "0.51050234", "text": "public static void findNegativeCycle()\n {\n\n }", "title": "" }, { "docid": "868290af5364a57aea819de096743933", "score": "0.50980806", "text": "public void decreaseContrast() {\n\t\tif (grayscaleArray==null) getGrayscaleArray();\n\t\tif (averageBrightness==0) averageBrightness=(int) getAvgGrayscale();\n\t\tif (stdDevBrightness==0) stdDevBrightness=getStdDevGrayscale(averageBrightness);\n\t\tcurrentContrast--;\n\t\tif (currentContrast>=0)\n\t\t\tim=changeBrightness(imOriginal,averageBrightness,(int)stdDevBrightness,1+currentContrast);\n\t\telse\n\t\t\tim=changeBrightness(imOriginal,averageBrightness,(int)stdDevBrightness,-1.0/currentContrast);\n\t}", "title": "" }, { "docid": "9864bd0fe95846cff3f9876656b1ff4f", "score": "0.50923526", "text": "@Test\n public void test_highToLow_neg10x() {\n // Polynomial is -10x\n int [] coeffsLowToHigh = new int [] {0, -10, 0, 0};\n int [] actual = Polynomial.highToLow(coeffsLowToHigh);\n int [] expected = new int [] {-10, 0};\n assertArrayEquals(expected, actual);\n }", "title": "" }, { "docid": "41c22ddb25330d3e22ceb4a4d01b5637", "score": "0.5087347", "text": "@VTID(15)\n void transparency(\n float rhs);", "title": "" }, { "docid": "f48d8698f76557865b5454f7019f00e4", "score": "0.50845677", "text": "public void zeroRed() {\n //TODO: Write this method.\n }", "title": "" }, { "docid": "7aa2b0898cd5bc02a80bf9bc16df4e72", "score": "0.50817394", "text": "int getBrightness();", "title": "" }, { "docid": "3fd0d2b570f9023bbb2f57b0755dd5a4", "score": "0.50772697", "text": "private static byte computeAlpha(int val) {\n byte value = (byte) ((val & 0xFF));\r\n //System.out.println(\"In:\"+ (value & 0xFF));\r\n if((value & 0xFF) > 10){\r\n return 0;\r\n }else{\r\n return (byte) (255 - value);\r\n }\r\n }", "title": "" }, { "docid": "326211fa674cd71d1defca994f30af8b", "score": "0.5072422", "text": "public Vector3D neg(){\n\t\tif(this == INF){\n\t\t\treturn INF;\n\t\t}\n\t\treturn new Vector3D(-x, -y, -z);\n\t}", "title": "" }, { "docid": "f518fde3c0e7738f61c24566e3c5c239", "score": "0.50697976", "text": "static Point2D neg(Point2D a) {\n return new Point2D.Double(-a.getX(), -a.getY());\n }", "title": "" }, { "docid": "5d83af61dae3b4e59355b835855964d9", "score": "0.5057851", "text": "public void negate() {\n PM.check(PM.TRAP_ECPOINT_NEGATE_1);\n \t\n // Operation will dump point into uncompressed_point_arr, negate Y and restore back\n ech.fnc_negate_yBN.lock();\n ech.lock(ech.uncompressed_point_arr1);\n thePoint.getW(ech.uncompressed_point_arr1, (short) 0);\n PM.check(PM.TRAP_ECPOINT_NEGATE_2);\n ech.fnc_negate_yBN.set_size(this.theCurve.COORD_SIZE);\n ech.fnc_negate_yBN.from_byte_array(this.theCurve.COORD_SIZE, (short) 0, ech.uncompressed_point_arr1, (short) (1 + this.theCurve.COORD_SIZE));\n PM.check(PM.TRAP_ECPOINT_NEGATE_3);\n \tech.fnc_negate_yBN.mod_negate(this.theCurve.pBN);\n PM.check(PM.TRAP_ECPOINT_NEGATE_4);\n \n // Restore whole point back\n ech.fnc_negate_yBN.prepend_zeros(this.theCurve.COORD_SIZE, ech.uncompressed_point_arr1, (short) (1 + this.theCurve.COORD_SIZE));\n ech.fnc_negate_yBN.unlock();\n this.setW(ech.uncompressed_point_arr1, (short) 0, this.theCurve.POINT_SIZE);\n ech.unlock(ech.uncompressed_point_arr1);\n PM.check(PM.TRAP_ECPOINT_NEGATE_5);\n }", "title": "" }, { "docid": "53019a585538e339c2f0478d4f8f4a8f", "score": "0.50536543", "text": "public Image darken(int amount) {\n String newName = \"darken\"+amount+\"-\";\n for (Pixel p : image.getPixels()){\n p.setValue(p.getValue()-amount);\n }\n image.setTitle(newName+image.getTitle());\n image.updateCanvas();\n return image;\n }", "title": "" }, { "docid": "1412429ec07a428013c32efafc1e4fa0", "score": "0.50472283", "text": "public double negative() {\n return negative / (double) total();\n }", "title": "" }, { "docid": "8b90cf96c1d7561d8e7b015330b83202", "score": "0.5041657", "text": "private static double deadband(double rawValue){\r\n if(Math.abs(rawValue) < .15) return 0.0;\r\n else return rawValue;\r\n }", "title": "" }, { "docid": "c0e634281985b6574b677c37a910052b", "score": "0.5041308", "text": "@VTID(9)\n void tintAndShade(\n float rhs);", "title": "" }, { "docid": "6b36419145b140344df8275537328647", "score": "0.5021836", "text": "private void desaturate(Mat input, Mat output) {\n\t\tswitch (input.channels()) {\n\t\t\tcase 1:\n\t\t\t\t// If the input is already one channel, it's already desaturated\n\t\t\t\tinput.copyTo(output);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tImgproc.cvtColor(input, output, Imgproc.COLOR_BGR2GRAY);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tImgproc.cvtColor(input, output, Imgproc.COLOR_BGRA2GRAY);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Input to desaturate must have 1, 3, or 4 channels\");\n\t\t}\n\t}", "title": "" }, { "docid": "973f1a8d80bb7f1e11fa529e5fea34c6", "score": "0.5015789", "text": "private int abs(int number) {\n\treturn (number < 0) ? -number : number;\n }", "title": "" }, { "docid": "8acf27f35e0734581c94a3012ff2dcde", "score": "0.5015032", "text": "private void removeSurface(float s) {\n\t\tthis.currentSurface -= s;\n\t}", "title": "" }, { "docid": "9d6b56b60d8306ef0247f2ed14d75bf9", "score": "0.50119674", "text": "public static Cdouble neg(Cdouble x) {\n return new Cdouble(-x.r,-x.i);\n }", "title": "" }, { "docid": "2147319c798279a86a980f0d8168eaec", "score": "0.5009843", "text": "private float getPositiveDiffernce(float a, float b){\n\t\tif (a < 0 && b >= 0)\n\t\t\treturn b - a;\n\t\telse if (a >= 0 && b < 0)\n\t\t\treturn a - b;\n\t\telse return Math.abs(a - b);\n\t}", "title": "" }, { "docid": "dc55e15202bb53365c19213cb5c171e4", "score": "0.4999947", "text": "public static void startSaturationAnimation(Context c, final ImageView target) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n target.setHasTransientState(true);\n final AnimUtils.ObservableColorMatrix matrix = new AnimUtils.ObservableColorMatrix();\n final ObjectAnimator saturation = ObjectAnimator.ofFloat(\n matrix, AnimUtils.ObservableColorMatrix.SATURATION, 0f, 1f);\n saturation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener\n () {\n @Override\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n target.setColorFilter(new ColorMatrixColorFilter(matrix));\n }\n });\n saturation.setDuration(\n SettingsOptionManager.getInstance(c).getSaturationAnimationDuration());\n saturation.setInterpolator(AnimUtils.getFastOutSlowInInterpolator(c));\n saturation.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n target.clearColorFilter();\n target.setHasTransientState(false);\n }\n });\n saturation.start();\n }\n }", "title": "" }, { "docid": "4349294b3c56c5315e2361e23dc4f51d", "score": "0.49975038", "text": "public boolean isNegative() {\n return sign != 0;\n }", "title": "" }, { "docid": "2ff7836eb4c9d57e3a561b7c1664c037", "score": "0.49957126", "text": "public MathVector getNegative() {\r\n\t\treturn getScalarMultiply(-1);\r\n\t}", "title": "" }, { "docid": "fa9537ce6b9560bfd7e7ee1dec32679b", "score": "0.49788654", "text": "private int absVal(int num)\r\n {\r\n // declare integer and initialize to num\r\n int v = num;\r\n \r\n // if v is less than zero change value\r\n if ( v < 0 )\r\n {\r\n // change value by multiplying by negative 1\r\n v *= (-1);\r\n }\r\n \r\n // returns a positive value\r\n return v;\r\n }", "title": "" }, { "docid": "2d8dfa8cfedd6af857304379316a1324", "score": "0.49689615", "text": "private static void subtract() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3948be42e387f19e712d2c960848ce36", "score": "0.49664775", "text": "@Override\n public double back(double pixels) {\n return forward(-pixels);\n }", "title": "" }, { "docid": "57fc6dc87c47a3f6c13bd233340ad6e4", "score": "0.49625704", "text": "public Bitmap applyInvertEffect(Bitmap src) {\n Bitmap bmOut = Bitmap.createBitmap(src.getWidth(), src.getHeight(), src.getConfig());\n // color info\n int A, R, G, B;\n int pixelColor;\n // image size\n int height = src.getHeight();\n int width = src.getWidth();\n\n // scan through every pixel\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n // get one pixel\n pixelColor = src.getPixel(x, y);\n // saving alpha channel\n A = Color.alpha(pixelColor);\n // inverting byte for each R/G/B channel\n R = 255 - Color.red(pixelColor);\n G = 255 - Color.green(pixelColor);\n B = 255 - Color.blue(pixelColor);\n // set newly-inverted pixel to output image\n bmOut.setPixel(x, y, Color.argb(A, R, G, B));\n }\n }\n\n // return final bitmap\n return bmOut;\n }", "title": "" }, { "docid": "2de8b6da27ac67fe88df8e5b94c97483", "score": "0.4960729", "text": "public void negate()\n {\n if (m_sValue.startsWith(\"-\"))\n {\n m_sValue = m_sValue.substring(1);\n }\n else\n {\n m_sValue = \"-\" + m_sValue;\n }\n }", "title": "" }, { "docid": "0e2970ac2137567c057cfd9f000b52da", "score": "0.49561286", "text": "@VTID(14)\n float transparency();", "title": "" }, { "docid": "112e54ff92f879afbe087d3102066552", "score": "0.4953149", "text": "@DISPID(1019)\n @PropPut\n void shadowBlur(\n float rhs);", "title": "" }, { "docid": "1aeabe009e84479f4de709c11bb51048", "score": "0.4945011", "text": "double getSolarReflectanceBack();", "title": "" }, { "docid": "ee6200196d76709a6b9faffc9e86aabc", "score": "0.49431944", "text": "double abs(double a) {\n if (a < 0) {\n return -a;\n }\n return a;\n }", "title": "" }, { "docid": "e19bea07bcab3379b5e97c8e9989bb41", "score": "0.4934364", "text": "public static int abs(int a) {\n return a >= 0? a : negate(a);\n }", "title": "" }, { "docid": "9919719aea2c63e7acb103ca49539dc3", "score": "0.49333698", "text": "public void minus() \r\n\t{\r\n\t\tapplyOperator('-');\r\n\t}", "title": "" }, { "docid": "e839249b6faa3ad835dd98d9f799139f", "score": "0.49315745", "text": "public void setRemoveNegativeStresses(boolean removeNegativeStresses) {\n\t\tremoveNegativeStresses_ = removeNegativeStresses;\n\t}", "title": "" }, { "docid": "05a0b7ae52bf1e6dc9d52d301740c9cc", "score": "0.49227345", "text": "@Test\n public void testNegate2() {\n factory.setCombineOperation(CostFunction.Combine.SUM);\n fa = fa.negate();\n CostFunction res = factory.buildCostFunction(new Variable[]{a}, 0);\n res.setValues(new double[]{\n -0.3, -0.7\n });\n assertEquals(fa, res);\n assertSame(fa.getFactory(), res.getFactory());\n }", "title": "" }, { "docid": "1a47cad4dc1587219586c043d9eff893", "score": "0.49203214", "text": "static int abs(int a)\n {\n\tif (a < 0)\n\t return -a;\n\telse return a;\n }", "title": "" }, { "docid": "3e49de35b006a0dcb97911e65df24efe", "score": "0.4918564", "text": "int getNoise();", "title": "" }, { "docid": "149bef5a842676ba99805c5d71ee38bf", "score": "0.49142906", "text": "public BlendFunc getCustomSfactorAlpha() {\r\n return sfactorAlpha;\r\n }", "title": "" }, { "docid": "bb48cad7a5ed563eab87a869c6c4ac5c", "score": "0.49028963", "text": "public void negate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.renderscript.Int3.negate():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.Int3.negate():void\");\n }", "title": "" }, { "docid": "27bb55460beaa7049a6515c788ce4f91", "score": "0.4897435", "text": "private int del_energyCal(int x1, int y1, int x2, int y2) {\n Color a = picture.get(x1, y1);\n Color b = picture.get(x2, y2);\n\n int Red = a.getRed() - b.getRed();\n int Green = a.getGreen() - b.getGreen();\n int Blue = a.getBlue() - b.getBlue();\n\n int RedGreenBlue = (Red * Red) + (Green * Green) + (Blue * Blue);\n return RedGreenBlue;\n\n }", "title": "" }, { "docid": "cd4fcc02925bb864f3a62fcf8da20886", "score": "0.48856476", "text": "private double skim(double val) {\n return (Math.abs(val) > 1)\n ? ((Math.abs(val)>0 ? 1 : -1) - val) * RandomConstants.SKIM_GAIN\n : 0;\n }", "title": "" }, { "docid": "68f19ecfdc9fe4c117db320e9c5e4bca", "score": "0.48838052", "text": "@Test\n public void test_lowToHigh_neg10x() {\n // Polynomial is -10x\n int [] coeffsHighToLow = new int [] {0, 0, -10, 0};\n int [] actual = Polynomial.lowToHigh(coeffsHighToLow);\n int [] expected = new int [] {0, -10};\n assertArrayEquals(expected, actual);\n }", "title": "" }, { "docid": "bb64b1ce59303973e61265be69e33d45", "score": "0.48760396", "text": "@VTID(13)\n void rgb(\n int rhs);", "title": "" }, { "docid": "6f2726ccfdd024321d43735ecff890f3", "score": "0.48727313", "text": "private void getMaxAndMinBrightnessLevel() {\n }", "title": "" }, { "docid": "706564c1f270fee42844ccd0ab4d6a5d", "score": "0.48593864", "text": "public static BufferedImage contrastEnhancement(Image img) {\n\t\t\n\t\t// Convert image from type Image to BufferedImage\n\t\tBufferedImage originalImg = convert(img);\n\t\t\n\t\t// Set up three arrays to store the RGB values of pixels\n\t\tint numOfPixel = originalImg.getHeight() * originalImg.getWidth();\n\t\tint[] greyVal = new int[numOfPixel];\n\t\t\n\t\t// Read RGB values of pixels from left to right and up to down, and store them in the arrays\n\t\tfor(int j = 0; j < originalImg.getHeight(); j++)\n\t\t{\n\t\t\tfor(int i = 0; i < originalImg.getWidth(); i++)\n\t\t\t{\n\t\t\t\tint values = originalImg.getRGB(i, j);\n\t\t\t\tColor oldColor= new Color(values);\n\t\t\t\t\n\t\t\t\tgreyVal[i + j*i] = oldColor.getRed();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Call in two methods 'min' and 'max' to calculate the scalefactor\n\t\tdouble ScaleFactor = 255.0 / (max(greyVal) - min(greyVal));\n\t\t\n\t\t// Using the factor to change the value of each pixel of the picture, and store them in the copy\n\t\tfor(int j = 0; j < originalImg.getHeight(); j++)\n\t\t{\n\t\t\tfor(int i = 0; i < originalImg.getWidth(); i++)\n\t\t\t{\n\t\t\t\tint values = originalImg.getRGB(i, j);\n\t\t\t\tColor oldColor= new Color(values);\n\t\t\t\t\n\t\t\t\tdouble newGreyValue = ScaleFactor * oldColor.getRed();\n\n\t\t\t\tColor newColor = new Color((int)newGreyValue, (int)newGreyValue, (int)newGreyValue);\n\t\t\t\toriginalImg.setRGB(i, j, newColor.getRGB());\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn originalImg;\n\t}", "title": "" }, { "docid": "76ea57d4657f2162421191cab3546030", "score": "0.48581102", "text": "int mo256f();", "title": "" }, { "docid": "587b86eeec88b31335d4c6f1555e9c87", "score": "0.48541424", "text": "public Vec3 negate(Vec3 dest) {\n\t\tdest.x = -x;\n\t\tdest.y = -y;\n\t\tdest.z = -z;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "08b38dbdaf15282f3a611a0335d4b3ca", "score": "0.48496905", "text": "@Override\n\tpublic int minus(int a, int b) {\n\t\treturn a - b;\n\t}", "title": "" }, { "docid": "3fb79c96ff517ec3403ebdab40610d2d", "score": "0.48496544", "text": "private static void makeDisabledImage(GreenfootImage img) {\n if (img == null) return;\n final float RED_LUMINANCE = 0.229f;\n final float GREEN_LUMINANCE = 0.587f;\n final float BLUE_LUMINANCE = 0.114f;\n final int RGB_MIN = 148;\n final int RGBA_MAX = 255;\n for (int x = 0; x < img.getWidth(); x++) {\n for (int y = 0; y < img.getHeight(); y++) {\n Color c = img.getColorAt(x, y);\n if (c.getAlpha() >= RGBA_MAX) {\n float red = c.getRed() * RED_LUMINANCE;\n float green = c.getGreen() * GREEN_LUMINANCE;\n float blue = c.getBlue() * BLUE_LUMINANCE;\n int luminance = (int) (red + green + blue);\n if (luminance < RGB_MIN) luminance = RGB_MIN;\n Color color = new Color(luminance, luminance, luminance);\n img.setColorAt(x, y, color);\n }\n }\n }\n }", "title": "" }, { "docid": "b2abe30739eae5edafd1822b3506770f", "score": "0.48478386", "text": "public boolean isNegative() {\n\t\treturn (val[0] < 0);\n\t}", "title": "" }, { "docid": "2c0be446df2550bc6d36308e142e032b", "score": "0.48472118", "text": "int tryGetTransparency() throws X;", "title": "" }, { "docid": "309921db109165a10bf6d6dc147add2b", "score": "0.48460734", "text": "private int sub(final int w, final int dst, final int src, final int flags) {\n int res = dst - src;\n\n // Handle overflow.\n if (w == 0b0 && res < 0)\n res += 0x100;\n else if (w == 0b1 && res < 0)\n res += 0x10000;\n\n // Carry Flag\n if ((flags & CF) == CF) {\n if (dst < src)\n this.flags |= CF;\n else\n this.flags &= ~CF;\n }\n\n res &= w == 0b0 ? 0xff : 0xffff;\n\n // Zero Flag\n if ((flags & ZF) == ZF) {\n if (res == 0)\n this.flags |= ZF;\n else\n this.flags &= ~ZF;\n }\n\n // Sign Flag\n if ((flags & SF) == SF) {\n if (w == 0b0 && (res >> 7 & 0b1) == 0b1 || w == 0b1 && (res >> 15 & 0b1) == 0b1)\n this.flags |= SF;\n else\n this.flags &= ~SF;\n }\n\n return res;\n }", "title": "" }, { "docid": "c1517e746d51abb228eb655f1e1a8f2d", "score": "0.48439363", "text": "@SideOnly(Side.CLIENT)\r\n/* 149: */ public float[] calcSunriseSunsetColors(float par1, float par2)\r\n/* 150: */ {\r\n/* 151:150 */ return null;\r\n/* 152: */ }", "title": "" }, { "docid": "bad7890c8c51765cac2adda56a5c0056", "score": "0.48427838", "text": "@Override\n public int minus(int x, int y) {\n return x - y;\n }", "title": "" }, { "docid": "6ca244b0b474a6837499a5393c09d4dc", "score": "0.48357132", "text": "@Test\n public void test_highToLow_neg10x4_minus20x3_minus40() {\n // polynomial: -10x^4 - 20x^3 -40\n int [] coeffsLowToHigh = new int [] {0, -40, 0, -20, -10, 0};\n int [] actual = Polynomial.highToLow(coeffsLowToHigh);\n int [] expected = new int [] {-10, -20, 0, -40, 0};\n assertArrayEquals(expected, actual);\n }", "title": "" }, { "docid": "1a75bff9acfac610eef0590d39c84c88", "score": "0.48327807", "text": "static String convertXGMMLTransparencyValue(String s) {\n\t\ttry {\n\t\t\tfloat f = Float.parseFloat(s);\n\t\t\treturn \"\" + Math.round(f * 255);\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"Cannot convert XGMML transparency value: \" + s, e);\n\t\t}\n\n\t\treturn \"255\";\n\t}", "title": "" } ]
b8c9455ad310ab7a2653a0be7c663104
Test case number: 103 /Coverage entropy=0.7522927744064238
[ { "docid": "c1289180a4309c6552295b7d3f7f8d2f", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test103() throws Throwable {\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)94;\n byteArray0[1] = (byte)88;\n byteArray0[2] = (byte)44;\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n assertEquals(9, byteArrayInputStream0.available());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(byteArrayInputStream0);\n \n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n assertEquals(9, byteArrayInputStream0.available());\n assertEquals(0, javaCharStream0.getBeginLine());\n assertEquals(0, javaCharStream0.getBeginColumn());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(javaCharStream0);\n assertFalse(JavaCharStream.staticFlag);\n assertEquals((-1), javaCharStream0.bufpos);\n \n javaCharStream0.adjustBeginLineColumn((byte)94, (byte)94);\n assertEquals(9, byteArrayInputStream0.available());\n assertEquals(95, javaCharStream0.getBeginLine());\n assertEquals(94, javaCharStream0.getBeginColumn());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertFalse(JavaCharStream.staticFlag);\n assertEquals((-1), javaCharStream0.bufpos);\n \n JavaCharStream javaCharStream1 = new JavaCharStream(byteArrayInputStream0);\n assertEquals(9, byteArrayInputStream0.available());\n assertEquals(0, javaCharStream1.getBeginColumn());\n assertEquals(0, javaCharStream1.getBeginLine());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(javaCharStream1);\n assertFalse(javaCharStream1.equals((Object)javaCharStream0));\n assertFalse(JavaCharStream.staticFlag);\n assertEquals((-1), javaCharStream1.bufpos);\n \n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream1);\n assertEquals(9, byteArrayInputStream0.available());\n assertEquals(0, javaCharStream1.getBeginColumn());\n assertEquals(0, javaCharStream1.getBeginLine());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(javaParserTokenManager0);\n assertFalse(javaCharStream1.equals((Object)javaCharStream0));\n assertFalse(JavaCharStream.staticFlag);\n assertEquals((-1), javaCharStream1.bufpos);\n \n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, byteArrayInputStream0.available());\n assertEquals(1, javaCharStream1.getEndLine());\n assertEquals(1, javaCharStream1.getColumn());\n assertEquals(1, javaCharStream1.getBeginColumn());\n assertEquals(1, javaCharStream1.getEndColumn());\n assertEquals(1, javaCharStream1.getBeginLine());\n assertEquals(1, javaCharStream1.getLine());\n assertEquals(\"^\", token0.toString());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(token0);\n assertNotSame(javaCharStream1, javaCharStream0);\n assertFalse(javaCharStream1.equals((Object)javaCharStream0));\n assertFalse(JavaCharStream.staticFlag);\n assertEquals(0, javaCharStream1.bufpos);\n assertEquals(107, token0.kind);\n assertEquals(1, token0.beginLine);\n assertEquals(1, token0.endColumn);\n assertEquals(1, token0.beginColumn);\n assertEquals(1, token0.endLine);\n \n Token token1 = javaParserTokenManager0.getNextToken();\n assertEquals(0, byteArrayInputStream0.available());\n assertEquals(1, javaCharStream1.getEndLine());\n assertEquals(2, javaCharStream1.getColumn());\n assertEquals(2, javaCharStream1.getBeginColumn());\n assertEquals(2, javaCharStream1.getEndColumn());\n assertEquals(1, javaCharStream1.getBeginLine());\n assertEquals(1, javaCharStream1.getLine());\n assertEquals(\"X\", token1.toString());\n assertArrayEquals(new byte[] {(byte)94, (byte)88, (byte)44, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertNotNull(token1);\n assertNotSame(javaCharStream1, javaCharStream0);\n assertNotSame(token1, token0);\n assertFalse(javaCharStream1.equals((Object)javaCharStream0));\n assertFalse(token1.equals((Object)token0));\n assertFalse(JavaCharStream.staticFlag);\n assertEquals(1, javaCharStream1.bufpos);\n assertEquals(1, token1.beginLine);\n assertEquals(2, token1.beginColumn);\n assertEquals(1, token1.endLine);\n assertEquals(2, token1.endColumn);\n assertEquals(74, token1.kind);\n }", "title": "" } ]
[ { "docid": "c40bf506d7139506e0e2b9f810637cff", "score": "0.6845081", "text": "public void calculateCoverageTest(){\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"calculateCoverageTest()\");\r\n\t}", "title": "" }, { "docid": "eb91d6f4cebb8fb86024a8fa2618303a", "score": "0.6422661", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.globalInfo();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.size();\n jRip0.getDebug();\n jRip0.setCheckErrorRate(false);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 0.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 0.0;\n byte[] byteArray0 = new byte[26];\n byteArray0[0] = (byte)10;\n byteArray0[1] = (byte) (-2);\n byteArray0[2] = (byte) (-1);\n byteArray0[3] = (byte)100;\n byteArray0[4] = (byte) (-46);\n byteArray0[5] = (byte)106;\n byteArray0[6] = (byte)72;\n byteArray0[7] = (byte)11;\n byteArray0[8] = (byte) (-34);\n jRip0.toString();\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0.0, doubleArray0);\n Attribute attribute0 = new Attribute(string0);\n jRip_RipperRule0.toString(attribute0);\n jRip0.getDebug();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n \n jRip_NumericAntd0.cover = (-1091.9115547);\n jRip_NumericAntd0.toString();\n assertFalse(jRip0.getCheckErrorRate());\n }", "title": "" }, { "docid": "65391dbb206bafb8d8395ba7252c3498", "score": "0.634765", "text": "@Test(timeout = 4000)\n public void test138() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(2, 1649);\n resultMatrixHTML0.getColCount();\n resultMatrixCSV0.getSummaryTitle((-171));\n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(110, 2);\n }", "title": "" }, { "docid": "742c56fb00af785789d33bec058e92d3", "score": "0.62207997", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"%T%/\");\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"66o(tHi}Zli]pz%!x\", 3124);\n Attribute.typeToString(attribute0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(6766);\n boolean boolean0 = jRip_NominalAntd0.covers(binarySparseInstance0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertFalse(jRip0.getDebug());\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "982865ef0ad77c5327874dda09708b7a", "score": "0.6219639", "text": "@Test(timeout = 4000)\n public void test136() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setSize(1, 593);\n resultMatrixHTML0.setMeanPrec(593);\n resultMatrixHTML0.getSummaryTitle(614);\n resultMatrixHTML0.LOSS_STRING = \"F`YC\\\")'yLI\";\n resultMatrixHTML0.clearHeader();\n resultMatrixHTML0.toStringSummary();\n assertEquals(593, resultMatrixHTML0.getMeanPrec());\n }", "title": "" }, { "docid": "6df1526a5f5a493255d4a3aa388d4804", "score": "0.6197038", "text": "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tsuper.setUp();\r\n\t\tSIRJavaFactory sir = new SIRJavaFactory();\r\n\t\tsir.setExperimentRoot(EXPERIMENTROOT);\r\n\t\tApplication testapp = sir.extract(appname,TraceType.CODECOVERAGE_EMMA);\r\n\t\tp = testapp.getProgram(ProgramVariant.orig, 0);\r\n\t\tsfe = new SourceFileEntity(p,\"default.package\",\"test.java\",null);\r\n\t\ts1 = new StatementEntity(sfe,10,\"int i=0\");\r\n\t\ts2 = new StatementEntity(sfe,20,\"int j=0\");\r\n\t\ts3 = new StatementEntity(sfe,120,\"int k=0\");\r\n\t\ts4 = new StatementEntity(sfe,140,\"int h=0\");\r\n\t\t\r\n\t\ttca = new ArrayList<>();\r\n\t\ttcb = new ArrayList<>();\r\n\t\ttca.add(a);tca.add(b);tca.add(c);tca.add(d);tca.add(e);tca.add(f);\r\n\t\ttcb.add(a);tcb.add(b);tcb.add(c);\r\n\t\tList<StatementEntity> sea = new ArrayList<>();\r\n\t\tsea.add(s1);sea.add(s2);sea.add(s3); sea.add(s4);\r\n\t\tcodeCoverage =new CodeCoverage<StatementEntity>(TraceType.CODECOVERAGE_EMMA,tca,sea,null);\r\n\t\tcodeCoverage.setLink(a, s1);\r\n\t\tcodeCoverage.setLink(a, s3);\r\n\t\tcodeCoverage.setLink(c, s1);\r\n\t\tcodeCoverage.setLink(c, s3);\r\n\t\tcodeCoverage.setLink(d,s4);\r\n\t\tcodeCoverage.setLink(e, s3);\r\n\t\tcodeCoverage.setLink(f,s1);\r\n\t}", "title": "" }, { "docid": "b2c672cd196ce0334e927b551a596765", "score": "0.61477494", "text": "@Test // bao cho JVM biet day la ham main\n /**\n * trong ham nay chua cac lenh test code chinh ben mathUtil test cac tinh\n * huong thanh cong o day: cF(5) = 120\n */\n public void testSuccessfulCasees() {\n assertEquals(120, computeFactorial(5));\n assertEquals(720, computeFactorial(6));\n assertEquals(1, computeFactorial(1));\n assertEquals(1, computeFactorial(0));\n assertEquals(2, computeFactorial(2));\n /**\n * full xanh = xanh full xanh 1 do = do\n *\n */\n }", "title": "" }, { "docid": "596420852834f7cc15e474f4038d7dd0", "score": "0.6121608", "text": "@Test(timeout = 4000)\n public void test135() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(2, 1649);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n resultMatrixSignificance0.getDefaultMeanPrec();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[0][7];\n resultMatrixGnuPlot0.setRanking(intArray0);\n int int0 = 784;\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(1649, 3277);\n }", "title": "" }, { "docid": "8317d28d905ccd521d675bf84350cf2a", "score": "0.6112234", "text": "public void test_stats() throws BoostingAlgorithmException {\n\t\tboolean class_list[];\n\t\tint result;\n\t\tint[] statistics = {0, 0, 0, 0};\n\t\tint s = 0;\n\t\t//System.out.println(data.classes[150]);\n\t\tfor (int i = 0; i < data.linecount-1; i++) {\n\t\t\t//only test against data not in the training set\n\t\t\tif (s<training_indices.length && i == training_indices[s]) {\n\t\t\t\ts++;\n\t\t\t} else {\n\t\t\t\tclass_list = this.classify(i);\n\t\t\t\tresult = this.compare(class_list, i);\n\t\t\t\t//System.out.println(s+\", \"+i+\": \"+result);\n\t\t\t\tstatistics[result] += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"General Test Data results:\");\n\t\tthis.print_statistics(statistics);\n\t}", "title": "" }, { "docid": "94440c49880a6be2f9d3d69e9fdf0a25", "score": "0.60967153", "text": "@Test\r\n\tpublic void BigTest() {\r\n\t\tReadFile();\r\n\t\t\r\n\t\tfor (int i=0; i<m_cases.size(); i++){\r\n\t\t\tTestCase testCase = m_cases.get(i);\r\n\t\t\tCoverageCalculator calc = new CoverageCalculator(testCase.getLength());\r\n\t\t\tfor (int j=0; j<testCase.numTowers(); j++){\r\n\t\t\t\tPair tower = testCase.getTower(j);\r\n\t\t\t\tcalc.addTower(tower.loc(), tower.size());\r\n\t\t\t}\r\n\t\t\tint answer = calc.getCoverage();\t\t\t\t\r\n\t\t\tif (answer == testCase.getAnswer()){\r\n\t\t\t\tSystem.out.println(\"Test \" + i + \" successful.\");\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Test \" + i + \" failed.\");\r\n\t\t\t}\r\n\t\t\tassertEquals(testCase.getAnswer(), answer);\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1099629f20964a48befdf5fe1e9a6452", "score": "0.6074389", "text": "@Test(timeout = 4000)\n public void test206() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n resultMatrixCSV0.m_ShowAverage = true;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixPlainText0.getDefaultCountWidth();\n resultMatrixPlainText0.rowNameWidthTipText();\n String[] stringArray0 = new String[7];\n stringArray0[0] = \" \";\n stringArray0[2] = \"value2\";\n stringArray0[4] = \"*\";\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 2);\n resultMatrixLatex0.setEnumerateColNames(true);\n assertEquals(0, resultMatrixLatex0.getColCount());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1584);\n resultMatrixGnuPlot0.toStringSummary();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixHTML0);\n resultMatrixSignificance0.assign(resultMatrixPlainText0);\n assertEquals(1, resultMatrixCSV0.getRowCount());\n \n resultMatrixSignificance0.getDefaultShowStdDev();\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n }", "title": "" }, { "docid": "293d324d37d1c970799bc2d7c31da965", "score": "0.60649157", "text": "@Test(timeout = 4000)\n public void test71() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n resultMatrixSignificance0.TIE_STRING = \"\";\n resultMatrixSignificance0.m_ShowStdDev = false;\n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n resultMatrixSignificance0.toStringKey();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.setCountWidth(0);\n String[][] stringArray1 = new String[1][5];\n stringArray1[0] = stringArray0;\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n resultMatrixSignificance1.setOptions(stringArray0);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n \n resultMatrixSignificance1.getRevision();\n assertEquals(0, resultMatrixSignificance1.getStdDevPrec());\n }", "title": "" }, { "docid": "dee5bdf2d872a9712b54aa8f9450c1bb", "score": "0.60484374", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.findNumBinsTipText();\n String[] stringArray0 = new String[5];\n discretize0.setInvertSelection(false);\n stringArray0[0] = \"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\";\n stringArray0[1] = \"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\";\n stringArray0[2] = \"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\";\n stringArray0[3] = \"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\";\n stringArray0[4] = \"weka.filters.unsupervised.attribute.Discretize\";\n Discretize.main(stringArray0);\n discretize0.getRevision();\n // Undeclared exception!\n try { \n discretize0.calculateCutPoints();\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": "8d06b1082d78f37437b450a29fd4ad44", "score": "0.60052174", "text": "@Test(timeout = 4000)\n public void test190() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[2][1];\n resultMatrixGnuPlot0.setRanking(intArray0);\n resultMatrixGnuPlot0.toStringSummary();\n resultMatrixGnuPlot0.trimString(\"-summary data not set-\", 1);\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "c8a9a7cd31754ba3524f69c020e9dca3", "score": "0.5994128", "text": "@Test(timeout = 4000)\n public void test134() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(2, 1649);\n resultMatrixHTML0.setCountWidth(1);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1649, 1649);\n }", "title": "" }, { "docid": "65a2d6ec685ccbeaf4c13442d730e99b", "score": "0.598945", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.usePruningTipText();\n Attribute attribute0 = new Attribute(\",Z2^\");\n Attribute.typeToString(attribute0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n \n jRip_NominalAntd0.cover = (double) 4;\n jRip_NominalAntd0.toString();\n jRip0.getOptions();\n boolean boolean0 = jRip0.getCheckErrorRate();\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "92aae021c954a11be0241ffd8cdf43d9", "score": "0.5982977", "text": "@Test\n\tpublic void testCid31() throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "407ad6ccbe8a3e06eaacaf41360dc98d", "score": "0.597811", "text": "@Test(timeout = 4000)\n public void test196() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRowName(10);\n resultMatrixSignificance0.globalInfo();\n int int0 = 4;\n resultMatrixSignificance0.getDefaultMeanPrec();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[2][1];\n resultMatrixGnuPlot0.setRanking(intArray0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(788, 788);\n }", "title": "" }, { "docid": "a3baecb1ba9892912274a6cc9f526e0c", "score": "0.5975499", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.setStdDevWidth(1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n \n String string0 = resultMatrixSignificance0.toStringKey();\n assertEquals(\"Key:\\n(1) col0\\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertNotNull(string0);\n \n int int0 = resultMatrixSignificance0.getVisibleColCount();\n assertEquals(1, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\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 assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertNotNull(resultMatrixLatex0);\n \n String string1 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\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 assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixSignificance0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertNotNull(resultMatrixLatex1);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n resultMatrixLatex1.setRowName(1, \" & \");\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n resultMatrixSignificance1.assign(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\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 assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixLatex1);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n double double0 = resultMatrixCSV0.getCount(47);\n assertEquals(0.0, double0, 0.01);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\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(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertNotNull(resultMatrixCSV1);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n double double1 = resultMatrixCSV0.getCount((-2112));\n assertEquals(0.0, double1, 0.01);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertEquals(double1, double0, 0.01);\n \n resultMatrixSignificance1.setShowAverage(true);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\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(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertNotNull(resultMatrixHTML0);\n \n boolean boolean0 = resultMatrixHTML0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\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(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n \n String string2 = resultMatrixLatex1.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string2);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertNotNull(string2);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertTrue(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertNotNull(resultMatrixHTML1);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n \n String string3 = resultMatrixHTML1.getDisplayName();\n assertEquals(\"HTML\", string3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertNotNull(string3);\n assertNotSame(resultMatrixHTML1, resultMatrixHTML0);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string2));\n \n int int1 = resultMatrixCSV0.getDefaultRowNameWidth();\n assertEquals(25, int1);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\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.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(int1 == int0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n }", "title": "" }, { "docid": "d35af53f08bd9b9050e4b1638a316322", "score": "0.59654796", "text": "@org.junit.Test(timeout = 10000)\n public void testHighCardinality_cf18131_failAssert14_literalMutation18688_literalMutation20376_failAssert1() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_10_1 = 20000000;\n long start = java.lang.System.currentTimeMillis();\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(0, 25);\n int size = 20000000;\n // MethodAssertGenerator build local variable\n Object o_10_0 = size;\n for (int i = 0; i < size; i++) {\n hyperLogLogPlus.offer(com.clearspring.analytics.stream.cardinality.TestICardinality.streamElement(i));\n }\n java.lang.System.out.println((((((\"expected: \" + size) + \", estimate: \") + (hyperLogLogPlus.cardinality())) + \", time: \") + ((java.lang.System.currentTimeMillis()) - start)));\n long estimate = hyperLogLogPlus.cardinality();\n double err = (java.lang.Math.abs((estimate - size))) / ((double) (size));\n java.lang.System.out.println((\"Percentage error \" + err));\n // StatementAdderOnAssert create random local variable\n long vc_1169 = -9005164045801625663L;\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_1167 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_1167.offerHashed(vc_1169);\n // MethodAssertGenerator build local variable\n Object o_26_0 = err < 0.1;\n org.junit.Assert.fail(\"testHighCardinality_cf18131 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"testHighCardinality_cf18131_failAssert14_literalMutation18688_literalMutation20376 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "643b64a782d8cb1bf11b398f7688e5ca", "score": "0.5954887", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"]Ale-:gak\", 5);\n attribute0.addStringValue(\"\");\n String string0 = jRip0.getRevision();\n assertEquals(\"8118\", string0);\n \n int int0 = jRip0.getOptimizations();\n assertEquals(2, int0);\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 assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "9c14cdf6ef72d981803b44ca369eac46", "score": "0.5943469", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.toStringMatrix();\n resultMatrixHTML0.getCountWidth();\n resultMatrixHTML0.m_ShowAverage = true;\n resultMatrixHTML0.getDefaultSignificanceWidth();\n resultMatrixHTML0.setCountWidth(0);\n ResultMatrixLatex.main((String[]) null);\n }", "title": "" }, { "docid": "c08aa012fbba08deb4b6c7861d5af5ff", "score": "0.59356844", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Discretize discretize0 = new Discretize(\"Ca-1c\");\n double[][] doubleArray0 = new double[6][5];\n double[] doubleArray1 = new double[6];\n doubleArray1[0] = 0.0;\n doubleArray1[1] = 1.0E-6;\n doubleArray1[2] = 0.0;\n doubleArray1[3] = 3746.59130554;\n doubleArray1[4] = 2.0;\n doubleArray1[5] = 5.55555;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[1];\n doubleArray2[0] = 3746.59130554;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[0];\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[2];\n doubleArray4[0] = 1.0E-6;\n doubleArray4[1] = 5.55555;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[6];\n doubleArray5[0] = 0.0;\n doubleArray5[1] = 0.0;\n doubleArray5[2] = 3746.59130554;\n doubleArray5[3] = 2.0;\n doubleArray5[4] = 3746.59130554;\n doubleArray5[5] = 5.55555;\n doubleArray0[4] = doubleArray5;\n double[] doubleArray6 = new double[1];\n doubleArray6[0] = 2.0;\n doubleArray0[5] = doubleArray6;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.m_UseBinNumbers = true;\n // Undeclared exception!\n try { \n discretize0.getCutPoints(1041);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1041\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "bd737bcc5de5d2ade1e14bdd8bffadab", "score": "0.5934094", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.globalInfo();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.size();\n jRip0.getDebug();\n assertTrue(jRip0.getCheckErrorRate());\n \n jRip0.setCheckErrorRate(false);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 0.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 0.0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0.0, doubleArray0);\n Attribute attribute0 = new Attribute(string0);\n jRip0.getRevision();\n Utils.log2 = 2.0;\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n boolean boolean0 = jRip_NumericAntd0.covers(binarySparseInstance0);\n assertFalse(jRip0.getCheckErrorRate());\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "ca7a665a18c19a947114cba6e41f03bc", "score": "0.59339917", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n JRip jRip0 = new JRip();\n Utils.log2 = 1.0E-4;\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\";\n stringArray0[1] = \"+$8y0pNSg jErQE2Y\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n AbstractClassifier.runClassifier(jRip0, stringArray0);\n jRip0.globalInfo();\n jRip0.setOptimizations(380);\n Attribute attribute0 = new Attribute(\"\", \"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n attribute0.addStringValue(\"\");\n jRip_NumericAntd0.maxInfoGain = 841.8918058;\n attribute0.getRevision();\n jRip_NumericAntd0.att = attribute0;\n jRip_NumericAntd0.getAttr();\n jRip0.getFolds();\n jRip0.getRevision();\n jRip0.getUsePruning();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n DecisionTable decisionTable0 = new DecisionTable();\n Instances instances0 = decisionTable0.m_theInstances;\n MockRandom mockRandom0 = new MockRandom();\n try { \n costMatrix0.applyCostMatrix((Instances) null, mockRandom0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.CostMatrix\", e);\n }\n }", "title": "" }, { "docid": "72a0e53a22527717ff4084800acd1052", "score": "0.59150577", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n JRip jRip1 = new JRip();\n Attribute attribute0 = new Attribute(\"weka.core.neighboursearch.PerformanceStats\", (String) null, 103);\n JRip.NumericAntd jRip_NumericAntd0 = jRip1.new NumericAntd(attribute0);\n jRip_NumericAntd0.cover = (double) 2;\n jRip_NumericAntd0.getCover();\n assertEquals(2.0, jRip_NumericAntd0.getCover(), 0.01);\n \n JRip.NominalAntd jRip_NominalAntd0 = jRip1.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.toString();\n assertEquals(\"weka.core.neighboursearch.PerformanceStats = \", string0);\n }", "title": "" }, { "docid": "d8d24cfb2e3fa7b35a224afa30cfe700", "score": "0.59137315", "text": "@Test(timeout = 4000)\n public void test161() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.m_StdDevPrec = 0;\n assertFalse(resultMatrixCSV0.getShowAverage());\n \n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n resultMatrixCSV0.m_ShowAverage = true;\n resultMatrixCSV0.setShowStdDev(true);\n resultMatrixCSV0.globalInfo();\n boolean boolean0 = resultMatrixCSV0.isSignificance(0);\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "26a75db86035a665ce7e8da9a4df2dfb", "score": "0.5911266", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(2, 6);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(6, resultMatrixSignificance0.getVisibleRowCount());\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 assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(6, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n \n String string0 = resultMatrixSignificance0.stdDevPrecTipText();\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(6, resultMatrixSignificance0.getVisibleRowCount());\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 assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(6, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertNotNull(string0);\n \n int[] intArray0 = new int[4];\n intArray0[0] = 2;\n intArray0[1] = 0;\n intArray0[2] = 2;\n intArray0[3] = 2;\n resultMatrixSignificance0.setColOrder(intArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(6, resultMatrixSignificance0.getVisibleRowCount());\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 assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(6, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(4, intArray0.length);\n assertArrayEquals(new int[] {2, 0, 2, 2}, intArray0);\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(6, resultMatrixSignificance0.getVisibleRowCount());\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 assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(6, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n }", "title": "" }, { "docid": "44857a4d5158cdc200f0284f56904506", "score": "0.59091175", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd((Attribute) null);\n double[] doubleArray0 = new double[5];\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"cOK-<snNelHhSlbp\";\n stringArray0[1] = \"|-Hv)GWO6gl.|cI@\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n stringArray0[4] = \">AXl\";\n stringArray0[5] = \"\";\n stringArray0[6] = \"Should never happen: repDLin optmz. stage NaN or infinite!\";\n jRip0.setOptions(stringArray0);\n jRip0.getRevision();\n jRip0.setDebug(true);\n double double0 = jRip_NumericAntd0.getAccu();\n assertTrue(jRip0.getDebug());\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "aa8c8c448c4de15d6bf5319c4f049039", "score": "0.5896818", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Attribute attribute0 = new Attribute(\"]Ale-:gak\", 5);\n attribute0.addStringValue(\"\");\n JRip jRip0 = new JRip();\n long long0 = jRip0.getSeed();\n assertEquals(3, jRip0.getFolds());\n assertEquals(1L, long0);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "38418bdaba7ce7b121aed0e1cac7c768", "score": "0.5886809", "text": "@org.junit.Test(timeout = 10000)\n public void testHighCardinality_cf18183_failAssert16_literalMutation18780() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n long start = java.lang.System.currentTimeMillis();\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(18, 0);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.cardinality.HyperLogLogPlus)hyperLogLogPlus).sizeof(), 174764);\n int size = 10000000;\n for (int i = 0; i < size; i++) {\n hyperLogLogPlus.offer(com.clearspring.analytics.stream.cardinality.TestICardinality.streamElement(i));\n }\n java.lang.System.out.println((((((\"expected: \" + size) + \", estimate: \") + (hyperLogLogPlus.cardinality())) + \", time: \") + ((java.lang.System.currentTimeMillis()) - start)));\n long estimate = hyperLogLogPlus.cardinality();\n double err = (java.lang.Math.abs((estimate - size))) / ((double) (size));\n java.lang.System.out.println((\"Percentage error \" + err));\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_1185 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_1185.cardinality();\n // MethodAssertGenerator build local variable\n Object o_24_0 = err < 0.1;\n org.junit.Assert.fail(\"testHighCardinality_cf18183 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "9bad301473cee8123f14a9cdc2f90670", "score": "0.5881223", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(resultMatrixSignificance0);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\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(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertNotNull(resultMatrixHTML0);\n \n resultMatrixHTML0.setCountWidth(0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\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(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(2, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n int int0 = resultMatrixSignificance0.getVisibleColCount();\n assertEquals(1, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\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(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertNotNull(resultMatrixLatex0);\n \n String string0 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\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(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertNotNull(string0);\n \n String string1 = resultMatrixSignificance1.getColName(489);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertNull(string1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n resultMatrixLatex0.setRowName((-1528), \"v\");\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\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(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\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(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n \n resultMatrixSignificance0.assign(resultMatrixSignificance1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\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(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\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.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\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 assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixCSV0);\n \n Object object0 = new Object();\n assertNotNull(object0);\n \n Predicate<Object> predicate0 = Predicate.isEqual((Object) resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n Object object1 = new Object();\n assertNotNull(object1);\n assertFalse(object1.equals((Object)object0));\n \n Predicate<Object> predicate1 = Predicate.isEqual((Object) \"mean-prec\");\n assertNotNull(predicate1);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate1.equals((Object)predicate0));\n \n Integer integer0 = new Integer(1);\n assertEquals(1, (int)integer0);\n assertNotNull(integer0);\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate2 = Predicate.isEqual((Object) integer0);\n assertNotNull(predicate2);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate3 = predicate2.or(predicate0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate3);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate1));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate4 = predicate2.and(predicate3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate4);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertFalse(predicate2.equals((Object)predicate3));\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate4.equals((Object)predicate2));\n assertFalse(predicate4.equals((Object)predicate0));\n assertFalse(predicate4.equals((Object)predicate3));\n assertFalse(predicate4.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate1));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate5 = predicate3.and(predicate1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate5);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate5, predicate4);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertNotSame(predicate1, predicate2);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate2.equals((Object)predicate3));\n assertFalse(predicate2.equals((Object)predicate4));\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate3.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate2));\n assertFalse(predicate5.equals((Object)predicate0));\n assertFalse(predicate5.equals((Object)predicate3));\n assertFalse(predicate5.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate4));\n assertFalse(predicate1.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate3));\n assertFalse(predicate1.equals((Object)predicate4));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate6 = predicate1.negate();\n assertNotNull(predicate6);\n assertNotSame(predicate1, predicate2);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate6.equals((Object)predicate2));\n assertFalse(predicate6.equals((Object)predicate5));\n assertFalse(predicate6.equals((Object)predicate3));\n assertFalse(predicate6.equals((Object)predicate0));\n assertFalse(predicate6.equals((Object)predicate4));\n assertFalse(predicate6.equals((Object)predicate1));\n assertFalse(predicate1.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate3));\n assertFalse(predicate1.equals((Object)predicate4));\n assertFalse(predicate1.equals((Object)predicate5));\n \n Predicate<Object> predicate7 = predicate6.or(predicate5);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate7);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate3, predicate7);\n assertNotSame(predicate5, predicate4);\n assertNotSame(predicate7, predicate3);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertNotSame(predicate1, predicate2);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate2.equals((Object)predicate3));\n assertFalse(predicate2.equals((Object)predicate5));\n assertFalse(predicate2.equals((Object)predicate4));\n assertFalse(predicate2.equals((Object)predicate6));\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate5));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate6));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate3.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate2));\n assertFalse(predicate5.equals((Object)predicate0));\n assertFalse(predicate5.equals((Object)predicate3));\n assertFalse(predicate5.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate6));\n assertFalse(predicate5.equals((Object)predicate1));\n assertFalse(predicate6.equals((Object)predicate2));\n assertFalse(predicate6.equals((Object)predicate5));\n assertFalse(predicate6.equals((Object)predicate3));\n assertFalse(predicate6.equals((Object)predicate0));\n assertFalse(predicate6.equals((Object)predicate4));\n assertFalse(predicate6.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate4));\n assertFalse(predicate7.equals((Object)predicate6));\n assertFalse(predicate7.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate3));\n assertFalse(predicate7.equals((Object)predicate5));\n assertFalse(predicate7.equals((Object)predicate0));\n assertFalse(predicate7.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate5));\n assertFalse(predicate0.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate4));\n assertFalse(predicate0.equals((Object)predicate6));\n assertFalse(predicate1.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate3));\n assertFalse(predicate1.equals((Object)predicate4));\n assertFalse(predicate1.equals((Object)predicate5));\n assertFalse(predicate1.equals((Object)predicate6));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate8 = predicate7.negate();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate8);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate3, predicate7);\n assertNotSame(predicate5, predicate4);\n assertNotSame(predicate6, predicate8);\n assertNotSame(predicate7, predicate3);\n assertNotSame(predicate8, predicate6);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertNotSame(predicate1, predicate2);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate2.equals((Object)predicate3));\n assertFalse(predicate2.equals((Object)predicate5));\n assertFalse(predicate2.equals((Object)predicate4));\n assertFalse(predicate2.equals((Object)predicate6));\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate7));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate5));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate6));\n assertFalse(predicate3.equals((Object)predicate7));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate3.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate2));\n assertFalse(predicate5.equals((Object)predicate0));\n assertFalse(predicate5.equals((Object)predicate3));\n assertFalse(predicate5.equals((Object)predicate7));\n assertFalse(predicate5.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate6));\n assertFalse(predicate5.equals((Object)predicate1));\n assertFalse(predicate6.equals((Object)predicate2));\n assertFalse(predicate6.equals((Object)predicate5));\n assertFalse(predicate6.equals((Object)predicate3));\n assertFalse(predicate6.equals((Object)predicate0));\n assertFalse(predicate6.equals((Object)predicate4));\n assertFalse(predicate6.equals((Object)predicate7));\n assertFalse(predicate6.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate4));\n assertFalse(predicate7.equals((Object)predicate6));\n assertFalse(predicate7.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate3));\n assertFalse(predicate7.equals((Object)predicate5));\n assertFalse(predicate7.equals((Object)predicate0));\n assertFalse(predicate7.equals((Object)predicate2));\n assertFalse(predicate8.equals((Object)predicate0));\n assertFalse(predicate8.equals((Object)predicate2));\n assertFalse(predicate8.equals((Object)predicate6));\n assertFalse(predicate8.equals((Object)predicate4));\n assertFalse(predicate8.equals((Object)predicate3));\n assertFalse(predicate8.equals((Object)predicate7));\n assertFalse(predicate8.equals((Object)predicate1));\n assertFalse(predicate8.equals((Object)predicate5));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate5));\n assertFalse(predicate0.equals((Object)predicate7));\n assertFalse(predicate0.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate4));\n assertFalse(predicate0.equals((Object)predicate6));\n assertFalse(predicate1.equals((Object)predicate7));\n assertFalse(predicate1.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate3));\n assertFalse(predicate1.equals((Object)predicate4));\n assertFalse(predicate1.equals((Object)predicate5));\n assertFalse(predicate1.equals((Object)predicate6));\n assertTrue(integer0.equals((Object)int0));\n \n Predicate<Object> predicate9 = predicate7.negate();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertNotNull(predicate9);\n assertNotSame(predicate2, predicate1);\n assertNotSame(predicate2, predicate0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(predicate3, predicate7);\n assertNotSame(predicate5, predicate4);\n assertNotSame(predicate6, predicate8);\n assertNotSame(predicate6, predicate9);\n assertNotSame(predicate7, predicate3);\n assertNotSame(predicate9, predicate6);\n assertNotSame(predicate9, predicate8);\n assertNotSame(predicate0, predicate2);\n assertNotSame(predicate0, predicate1);\n assertNotSame(predicate1, predicate2);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate2.equals((Object)predicate3));\n assertFalse(predicate2.equals((Object)predicate5));\n assertFalse(predicate2.equals((Object)predicate4));\n assertFalse(predicate2.equals((Object)predicate6));\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate7));\n assertFalse(predicate2.equals((Object)predicate8));\n assertFalse(predicate2.equals((Object)predicate0));\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(predicate3.equals((Object)predicate5));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate6));\n assertFalse(predicate3.equals((Object)predicate8));\n assertFalse(predicate3.equals((Object)predicate7));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate3.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate2));\n assertFalse(predicate5.equals((Object)predicate0));\n assertFalse(predicate5.equals((Object)predicate3));\n assertFalse(predicate5.equals((Object)predicate8));\n assertFalse(predicate5.equals((Object)predicate7));\n assertFalse(predicate5.equals((Object)predicate4));\n assertFalse(predicate5.equals((Object)predicate6));\n assertFalse(predicate5.equals((Object)predicate1));\n assertFalse(predicate6.equals((Object)predicate2));\n assertFalse(predicate6.equals((Object)predicate5));\n assertFalse(predicate6.equals((Object)predicate3));\n assertFalse(predicate6.equals((Object)predicate8));\n assertFalse(predicate6.equals((Object)predicate0));\n assertFalse(predicate6.equals((Object)predicate4));\n assertFalse(predicate6.equals((Object)predicate7));\n assertFalse(predicate6.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate4));\n assertFalse(predicate7.equals((Object)predicate6));\n assertFalse(predicate7.equals((Object)predicate1));\n assertFalse(predicate7.equals((Object)predicate3));\n assertFalse(predicate7.equals((Object)predicate5));\n assertFalse(predicate7.equals((Object)predicate0));\n assertFalse(predicate7.equals((Object)predicate2));\n assertFalse(predicate7.equals((Object)predicate8));\n assertFalse(predicate9.equals((Object)predicate6));\n assertFalse(predicate9.equals((Object)predicate4));\n assertFalse(predicate9.equals((Object)predicate1));\n assertFalse(predicate9.equals((Object)predicate5));\n assertFalse(predicate9.equals((Object)predicate8));\n assertFalse(predicate9.equals((Object)predicate0));\n assertFalse(predicate9.equals((Object)predicate7));\n assertFalse(predicate9.equals((Object)predicate2));\n assertFalse(predicate9.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate0.equals((Object)predicate3));\n assertFalse(predicate0.equals((Object)predicate5));\n assertFalse(predicate0.equals((Object)predicate8));\n assertFalse(predicate0.equals((Object)predicate7));\n assertFalse(predicate0.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate4));\n assertFalse(predicate0.equals((Object)predicate6));\n assertFalse(predicate1.equals((Object)predicate7));\n assertFalse(predicate1.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate8));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate3));\n assertFalse(predicate1.equals((Object)predicate4));\n assertFalse(predicate1.equals((Object)predicate5));\n assertFalse(predicate1.equals((Object)predicate6));\n assertTrue(integer0.equals((Object)int0));\n \n Vector<Integer> vector0 = new Vector<Integer>();\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertEquals(0, vector0.size());\n assertTrue(vector0.isEmpty());\n assertNotNull(vector0);\n assertFalse(vector0.contains(2));\n \n // Undeclared exception!\n try { \n vector0.removeIf((Predicate<? super Integer>) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.Objects\", e);\n }\n }", "title": "" }, { "docid": "b7df041a188e56a62216fe60fa803ad3", "score": "0.58720124", "text": "@Test(timeout = 4000)\n public void test081() 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 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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.setStdDevWidth(1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n \n String string0 = resultMatrixSignificance0.toString();\n assertEquals(\"Dataset (1)\\n-----------\\nrow0 \\n\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertNotNull(string0);\n \n resultMatrixSignificance0.m_EnumerateRowNames = true;\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n \n String string1 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(\"0.\", string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixSignificance0.m_SignificanceWidth = 0;\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n \n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n assertEquals(1, int0);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(0, 3);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(3, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n int int1 = resultMatrixSignificance1.getVisibleColCount();\n assertEquals(0, int1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(3, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(int1 == int0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertNotNull(resultMatrixLatex0);\n \n String string2 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertNotNull(string2);\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n \n String string3 = resultMatrixSignificance0.getColName((-2647));\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertNull(string3);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n resultMatrixLatex0.setRowName((-1524), \"L0_5sObK,\");\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n \n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertNotNull(resultMatrixSignificance2);\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n \n resultMatrixSignificance2.m_StdDevWidth = 54;\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(54, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n \n resultMatrixSignificance2.assign(resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(3, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(3, resultMatrixSignificance2.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance2.getColCount());\n assertEquals(0, resultMatrixSignificance2.getVisibleColCount());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(3, resultMatrixSignificance2.getRowCount());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance2);\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance2));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\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.getDefaultMeanWidth());\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 assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\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 assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertNotNull(resultMatrixCSV0);\n \n double double0 = resultMatrixCSV0.getCount(0);\n assertEquals(0.0, double0, 0.01);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\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.getDefaultMeanWidth());\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 assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\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 assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n \n resultMatrixSignificance1.setShowAverage(false);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(3, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance2);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance2));\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertNotNull(resultMatrixHTML0);\n \n boolean boolean0 = resultMatrixHTML0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n \n String string4 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string4);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertNotNull(string4);\n assertFalse(string4.equals((Object)string0));\n assertTrue(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string1));\n \n String string5 = resultMatrixHTML0.getDisplayName();\n assertEquals(\"HTML\", string5);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertNotNull(string5);\n assertFalse(string5.equals((Object)string0));\n assertFalse(string5.equals((Object)string4));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string1));\n \n int int2 = resultMatrixCSV0.getDefaultRowNameWidth();\n assertEquals(25, int2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\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.getDefaultMeanWidth());\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 assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\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 assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(int2 == int1);\n assertFalse(int2 == int0);\n \n boolean boolean1 = resultMatrixCSV0.getPrintColNames();\n assertFalse(boolean1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\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.getDefaultMeanWidth());\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 assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\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 assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(boolean1 == boolean0);\n }", "title": "" }, { "docid": "58e9dd28c1545f541fa8cf889992aa28", "score": "0.58719224", "text": "@org.junit.Test(timeout = 10000)\n public void testComputeCount_cf11699_failAssert10_literalMutation12093_failAssert4() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(14, 12);\n int count = 70000;\n for (int i = 0; i < count; i++) {\n hyperLogLogPlus.offer((\"i\" + i));\n }\n long estimate = hyperLogLogPlus.cardinality();\n double se = count * (1.04 / (java.lang.Math.sqrt(java.lang.Math.pow(2, 14))));\n long expectedCardinality = count;\n java.lang.System.out.println((((((\"Expect estimate: \" + estimate) + \" is between \") + (expectedCardinality - (3 * se))) + \" and \") + (expectedCardinality + (3 * se))));\n // MethodAssertGenerator build local variable\n Object o_16_0 = estimate >= (expectedCardinality - (3 * se));\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_177 = new java.lang.Object();\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_174 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_174.offer(vc_177);\n // MethodAssertGenerator build local variable\n Object o_23_0 = estimate <= (expectedCardinality + (3 * se));\n org.junit.Assert.fail(\"testComputeCount_cf11699 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"testComputeCount_cf11699_failAssert10_literalMutation12093 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "0abcef5ba9914bb6ce04b5edc6354292", "score": "0.5866584", "text": "@Test\n public void test4() {\n _659Test.nums = new int[]{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 };\n Assert.assertEquals(true, _659Test.solution1.isPossible(_659Test.nums));\n }", "title": "" }, { "docid": "01210c7584cc92210b740f7445a8dd25", "score": "0.5865488", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, 26);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 3;\n doubleArray0[3] = 0.0;\n doubleArray0[4] = (double) 0;\n doubleArray0[5] = (double) 2;\n SparseInstance sparseInstance0 = new SparseInstance(26, doubleArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(sparseInstance0);\n binarySparseInstance0.deleteAttributeAt((-59));\n SparseInstance sparseInstance1 = new SparseInstance(106);\n boolean boolean0 = jRip_NominalAntd0.covers(sparseInstance1);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertFalse(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "f012f7dc19e42c67323ef355fce0a0aa", "score": "0.5864774", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Discretize discretize0 = new Discretize(\"\\\"X(k@$BA!/\");\n double double0 = 0.0;\n byte[] byteArray0 = new byte[4];\n byteArray0[0] = (byte)2;\n byteArray0[1] = (byte)71;\n byteArray0[2] = (byte) (-59);\n byteArray0[3] = (byte)25;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval(0.0);\n double[][] doubleArray0 = new double[0][3];\n discretize0.m_CutPoints = doubleArray0;\n discretize0.toString();\n int int0 = 11;\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(11);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 11\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "b1272446634fa95b586bb2c5218e00c9", "score": "0.5863768", "text": "@Test\n public void testProbabilityViaConstructor() {\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.5859602", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.5859602", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "88c303bb35d5e45b8cee22755b60269f", "score": "0.5859149", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.debugTipText();\n Attribute attribute0 = new Attribute(\"Ne{&T5y\", 1273);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n DecisionTable decisionTable0 = new DecisionTable();\n double[] doubleArray0 = new double[6];\n jRip0.getTechnicalInformation();\n doubleArray0[0] = 3568.22714686639;\n doubleArray0[1] = (double) 1;\n doubleArray0[2] = (double) 4;\n jRip0.setMinNo(0);\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 4;\n jRip0.setOptions((String[]) null);\n jRip0.getUsePruning();\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "d9e31aa037353abcb655746fbff4624d", "score": "0.5851751", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n JRip jRip0 = new JRip();\n String[] stringArray0 = new String[0];\n jRip0.setOptions(stringArray0);\n jRip0.setOptimizations(0);\n ArrayList<Locale.LanguageRange> arrayList0 = new ArrayList<Locale.LanguageRange>();\n Locale locale0 = Locale.ENGLISH;\n Set<String> set0 = locale0.getUnicodeLocaleKeys();\n Locale.FilteringMode locale_FilteringMode0 = Locale.FilteringMode.IGNORE_EXTENDED_RANGES;\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) arrayList0, (Collection<String>) set0, locale_FilteringMode0);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"zCe\", list0, protectedProperties1);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n jRip_NumericAntd0.getSplitPoint();\n boolean boolean0 = jRip_NumericAntd0.covers(binarySparseInstance0);\n assertEquals(0, jRip0.getOptimizations());\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "758a6d7ae1f0d61a27416b28fd706653", "score": "0.58477914", "text": "@Test(timeout = 4000)\n public void test101() 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 assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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 enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertNotNull(resultMatrixSignificance0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\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(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertNotNull(resultMatrixGnuPlot0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\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(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\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.getDefaultMeanPrec());\n assertNotNull(resultMatrixLatex0);\n \n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.setRanking((int[][]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "9f9b4fc8ccae0a4380f679c8e604edb2", "score": "0.58427525", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n JRip jRip0 = new JRip();\n byte[] byteArray0 = new byte[6];\n byteArray0[0] = (byte)46;\n byteArray0[1] = (byte) (-23);\n byteArray0[2] = (byte)46;\n byteArray0[3] = (byte)108;\n byteArray0[4] = (byte)46;\n byteArray0[5] = (byte)108;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"\", arrayList0, (-2751));\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n JRip jRip1 = new JRip();\n JRip.NumericAntd jRip_NumericAntd1 = jRip1.new NumericAntd(attribute0);\n String string0 = jRip_NumericAntd1.toString();\n assertEquals(\" <= NaN\", string0);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getCover(), 0.01);\n assertEquals(0.0, jRip_NumericAntd1.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccuRate(), 0.01);\n \n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"\", arrayList1, 3);\n jRip_RipperRule0.prune(instances0, true);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n }", "title": "" }, { "docid": "83661a77baf716ecab386fc31e2277e7", "score": "0.5841383", "text": "@Test\n public void findBiggestContourTest() throws Exception {\n }", "title": "" }, { "docid": "41c23bf73f9327d8ad7b40b5b1b3ab91", "score": "0.5836462", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.listOptions();\n jRip0.toString();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"\\r^H\", linkedList0, (-580));\n attribute0.copy();\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd0.copy();\n Object object0 = jRip_NominalAntd0.copy();\n attribute0.equals(object0);\n linkedList0.clear();\n PrincipalComponents principalComponents0 = new PrincipalComponents();\n JRip.NominalAntd jRip_NominalAntd1 = jRip0.new NominalAntd(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"@attribute\", arrayList0, 492);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.splitData(instances0, (-580), 1);\n assertEquals(0.0, jRip_NumericAntd0.getAttrValue(), 0.01);\n \n JRip jRip1 = new JRip();\n double double0 = jRip_NominalAntd1.getAccuRate();\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "fda95715b298222fcd6c8a1aa73f0a77", "score": "0.58312756", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n JRip jRip0 = new JRip();\n assertEquals(2, jRip0.getOptimizations());\n \n jRip0.setOptimizations(0);\n jRip0.getTechnicalInformation();\n jRip0.listOptions();\n Utils.SMALL = 0.0;\n Attribute attribute0 = new Attribute((String) null, \"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.toString();\n jRip0.setFolds(2);\n jRip_NumericAntd0.getRevision();\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd0.getRevision();\n jRip_NominalAntd0.copy();\n assertEquals(1L, jRip0.getSeed());\n }", "title": "" }, { "docid": "234f4606af541ea2e96432ced82ae132", "score": "0.58250576", "text": "@org.junit.Test(timeout = 10000)\n public void testComputeCount_cf11710_failAssert14_literalMutation12360_failAssert3() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(14, 50);\n int count = 70000;\n for (int i = 0; i < count; i++) {\n hyperLogLogPlus.offer((\"i\" + i));\n }\n long estimate = hyperLogLogPlus.cardinality();\n double se = count * (1.04 / (java.lang.Math.sqrt(java.lang.Math.pow(2, 14))));\n long expectedCardinality = count;\n java.lang.System.out.println((((((\"Expect estimate: \" + estimate) + \" is between \") + (expectedCardinality - (3 * se))) + \" and \") + (expectedCardinality + (3 * se))));\n // MethodAssertGenerator build local variable\n Object o_16_0 = estimate >= (expectedCardinality - (3 * se));\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_181 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_181.offerHashed(estimate);\n // MethodAssertGenerator build local variable\n Object o_21_0 = estimate <= (expectedCardinality + (3 * se));\n org.junit.Assert.fail(\"testComputeCount_cf11710 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"testComputeCount_cf11710_failAssert14_literalMutation12360 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "52370d36c81bd726fb8d5d35a301d293", "score": "0.5802547", "text": "@Test(timeout = 4000)\n public void test62() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setCountWidth((-1186));\n resultMatrixLatex0.toStringRanking();\n resultMatrixLatex0.getStdDevPrec();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.toString();\n resultMatrixSignificance0.setShowAverage(false);\n resultMatrixSignificance0.toStringMatrix();\n String[] stringArray0 = new String[5];\n resultMatrixLatex0.setStdDevPrec((-1420));\n stringArray0[0] = \"(\";\n stringArray0[1] = \"-ranking data not set-\";\n stringArray0[2] = \"Dataset (1)\\n-----------\\nrow0 \\n\";\n stringArray0[3] = \" \";\n stringArray0[4] = \"$circ$\";\n resultMatrixSignificance0.m_RowNames = stringArray0;\n resultMatrixLatex0.getShowStdDev();\n resultMatrixLatex0.setRemoveFilterName(false);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.toStringMatrix();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "98d44ed6eb20a459b15be96c558b4dbd", "score": "0.5801012", "text": "@Test(timeout = 4000)\n public void test077() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.setStdDevWidth(1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n String string0 = resultMatrixSignificance0.toStringKey();\n assertEquals(\"Key:\\n(1) col0\\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertNotNull(string0);\n \n int int0 = resultMatrixSignificance0.getVisibleColCount();\n assertEquals(1, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\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 assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\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 assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertNotNull(resultMatrixLatex0);\n \n String string1 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\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 assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\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 assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixSignificance0);\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(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\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 assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotNull(resultMatrixLatex1);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n resultMatrixLatex1.setRowName(1, \" & \");\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(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex1.getStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\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 assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n int[] intArray0 = new int[2];\n intArray0[0] = 1;\n intArray0[1] = 0;\n resultMatrixLatex0.setRowOrder(intArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\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 assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\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 assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, intArray0.length);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertArrayEquals(new int[] {1, 0}, intArray0);\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertNotNull(resultMatrixLatex2);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n \n String[] stringArray0 = resultMatrixLatex2.getOptions();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertNotNull(stringArray0);\n assertEquals(18, stringArray0.length);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex1);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n \n resultMatrixLatex2.setPrintRowNames(true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertNotSame(resultMatrixLatex2, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex1);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n \n ResultMatrixLatex resultMatrixLatex3 = new ResultMatrixLatex(2, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex3.getShowAverage());\n assertEquals(0, resultMatrixLatex3.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex3.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex3.meanWidthTipText());\n assertEquals(2, resultMatrixLatex3.getStdDevPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex3.globalInfo());\n assertTrue(resultMatrixLatex3.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex3.getShowStdDev());\n assertTrue(resultMatrixLatex3.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex3.getEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex3.getDisplayName());\n assertEquals(0, resultMatrixLatex3.getSignificanceWidth());\n assertFalse(resultMatrixLatex3.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex3.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex3.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex3.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex3.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex3.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex3.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex3.stdDevPrecTipText());\n assertEquals(2, resultMatrixLatex3.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex3.getRowNameWidth());\n assertEquals(2, resultMatrixLatex3.getMeanPrec());\n assertEquals(0, resultMatrixLatex3.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex3.getColNameWidth());\n assertEquals(0, resultMatrixLatex3.getMeanWidth());\n assertEquals(2, resultMatrixLatex3.getRowCount());\n assertFalse(resultMatrixLatex3.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex3.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex3.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex3.countWidthTipText());\n assertFalse(resultMatrixLatex3.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex3.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex3.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex3.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex3.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex3.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex3.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex3.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex3.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex3.meanPrecTipText());\n assertEquals(0, resultMatrixLatex3.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex3.getEnumerateRowNames());\n assertFalse(resultMatrixLatex3.getRemoveFilterName());\n assertFalse(resultMatrixLatex3.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex3.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex3.getVisibleColCount());\n assertFalse(resultMatrixLatex3.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex3.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex3.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex3.showStdDevTipText());\n assertNotNull(resultMatrixLatex3);\n assertFalse(resultMatrixLatex3.equals((Object)resultMatrixLatex2));\n assertFalse(resultMatrixLatex3.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex3.equals((Object)resultMatrixLatex0));\n \n resultMatrixLatex2.setEnumerateColNames(true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertNotSame(resultMatrixLatex2, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex1);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex3);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex3));\n \n boolean boolean0 = resultMatrixLatex0.isAverage(1);\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\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 assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\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 assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex3);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex2));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex3));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\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 assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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 assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\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(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n int int1 = resultMatrixCSV0.getStdDevWidth();\n assertEquals(1, int1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\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 assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\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 assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\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 assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\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(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertTrue(int1 == int0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(245, 1897);\n }", "title": "" }, { "docid": "2fafcc96f13da37436b2e824dfbc2ea4", "score": "0.5798066", "text": "@Test(timeout = 4000)\n public void test066() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixSignificance0);\n \n String string0 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertNotNull(string0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\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 width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\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(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getRowCount());\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.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertNotNull(resultMatrixLatex0);\n \n int[] intArray0 = new int[1];\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixLatex0);\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getRowCount());\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.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n int[][] intArray1 = new int[6][0];\n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n intArray1[2] = intArray0;\n intArray1[3] = intArray0;\n intArray1[4] = intArray0;\n intArray1[5] = intArray0;\n resultMatrixGnuPlot1.setSummary(intArray1, intArray1);\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(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getRowCount());\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.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(6, intArray1.length);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot2.getCountWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot2.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertNotNull(resultMatrixGnuPlot2);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot3 = new ResultMatrixGnuPlot(0, 32);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertEquals(32, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(32, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n assertNotNull(resultMatrixGnuPlot3);\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot2));\n \n resultMatrixGnuPlot3.setMeanWidth(0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertEquals(32, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(32, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot0);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot2);\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot2));\n \n resultMatrixGnuPlot3.setRemoveFilterName(false);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot3.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot3.getMeanPrec());\n assertFalse(resultMatrixGnuPlot3.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot3.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot3.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot3.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot3.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot3.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot3.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot3.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot3.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot3.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot3.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot3.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot3.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot3.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot3.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot3.getDefaultRowNameWidth());\n assertEquals(32, resultMatrixGnuPlot3.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot3.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot3.showAverageTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot3.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot3.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot3.colNameWidthTipText());\n assertEquals(32, resultMatrixGnuPlot3.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot3.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot3.globalInfo());\n assertEquals(2, resultMatrixGnuPlot3.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot3.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot3.countWidthTipText());\n assertFalse(resultMatrixGnuPlot3.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot3.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot3.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot3.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot3.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot3.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot3.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot3.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot3.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot3.showStdDevTipText());\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot0);\n assertNotSame(resultMatrixGnuPlot3, resultMatrixGnuPlot2);\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot3.equals((Object)resultMatrixGnuPlot2));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot4 = new ResultMatrixGnuPlot(131, 1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixGnuPlot4.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot4.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot4.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot4.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot4.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot4.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot4.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot4.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot4.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot4.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot4.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot4.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot4.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot4.getDefaultShowStdDev());\n assertEquals(50, resultMatrixGnuPlot4.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot4.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot4.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot4.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot4.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot4.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot4.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot4.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot4.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot4.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot4.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot4.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot4.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot4.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot4.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot4.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot4.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot4.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot4.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot4.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot4.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot4.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot4.meanWidthTipText());\n assertEquals(131, resultMatrixGnuPlot4.getColCount());\n assertTrue(resultMatrixGnuPlot4.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot4.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot4.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot4.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot4.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot4.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot4.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultCountWidth());\n assertEquals(131, resultMatrixGnuPlot4.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot4.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot4.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot4);\n assertFalse(resultMatrixGnuPlot4.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot4.equals((Object)resultMatrixGnuPlot2));\n assertFalse(resultMatrixGnuPlot4.equals((Object)resultMatrixGnuPlot3));\n assertFalse(resultMatrixGnuPlot4.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot4.m_Significance = intArray1;\n assertEquals(0, resultMatrixGnuPlot4.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot4.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot4.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot4.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot4.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot4.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot4.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot4.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot4.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot4.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot4.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot4.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot4.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot4.getDefaultShowStdDev());\n assertEquals(50, resultMatrixGnuPlot4.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot4.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot4.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot4.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot4.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot4.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot4.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot4.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot4.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot4.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot4.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot4.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot4.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot4.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot4.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot4.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot4.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot4.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot4.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot4.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot4.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot4.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot4.meanWidthTipText());\n assertEquals(131, resultMatrixGnuPlot4.getColCount());\n assertTrue(resultMatrixGnuPlot4.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot4.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot4.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot4.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot4.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot4.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot4.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot4.getDefaultCountWidth());\n assertEquals(131, resultMatrixGnuPlot4.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot4.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot4.getStdDevWidth());\n \n boolean boolean0 = resultMatrixGnuPlot2.getDefaultEnumerateRowNames();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot2.getCountWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot2.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot4);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot0);\n assertNotSame(resultMatrixGnuPlot2, resultMatrixGnuPlot3);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot4));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot3));\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.assign(resultMatrixGnuPlot4);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "731f1a36c45b86ab64dfa72b92b57c08", "score": "0.5789558", "text": "@Test\n public void highRiskTest() {\n // TODO: test highRisk\n }", "title": "" }, { "docid": "8485e79cae9660318dcb3a7414ed97f0", "score": "0.57839", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.invertSelectionTipText();\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(\"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.\", string0);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "4e85987342b917833c29ffbf0d673da0", "score": "0.5771724", "text": "@Test(timeout = 4000)\n public void test188() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n resultMatrixLatex0.getDisplayRow(2);\n resultMatrixSignificance0.stdDevWidthTipText();\n int int0 = 249;\n int int1 = 565;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(249, 565);\n }", "title": "" }, { "docid": "ac8cb9f9d77f2fb6cba6967edddc51c2", "score": "0.5766187", "text": "@Test\n public void testBinomialTrainingMetrics() {\n try {\n Scope.enter();\n Frame train = parseTestFile(\"smalldata/glm_test/binomial_20_cols_10KRows.csv\");\n Random rnd = RandomUtils.getRNG(train.byteSize());\n // change training data frame\n int response_index = train.numCols() - 1;\n train.replace((response_index), train.vec(response_index).toCategoricalVec()).remove();\n String[] enumCnames = new String[]{\"C1\", \"C2\", \"C3\", \"C4\", \"C5\", \"C6\", \"C7\", \"C8\", \"C9\", \"C10\", \"C21\"};\n int[] eCol = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, response_index};\n int count = 0;\n for (String cname : enumCnames) {\n train.replace((eCol[count]), train.vec(cname).toCategoricalVec()).remove();\n count++;\n }\n Scope.track(train);\n DKV.put(train);\n double threshold = 0.9;\n GAMModel.GAMParameters params = new GAMModel.GAMParameters();\n params._family = GLMModel.GLMParameters.Family.binomial;\n params._response_column = \"C21\";\n params._max_iterations = 3;\n params._gam_columns = new String[][]{{\"C11\"}};\n params._train = train._key;\n params._solver = GLMModel.GLMParameters.Solver.IRLSM;\n GAMModel gam = new GAM(params).trainModel().get();\n Scope.track_generic(gam);\n assertTrue(Math.abs(gam._output._training_metrics._MSE-gam._output._glm_training_metrics._MSE) < TOLERANCE);\n assertTrue(gam._output._training_metrics._nobs==gam._output._glm_training_metrics._nobs);\n } finally {\n Scope.exit();\n }\n }", "title": "" }, { "docid": "23139d690575b5706c86158c636cb209", "score": "0.576518", "text": "int getTypeofCoverage();", "title": "" }, { "docid": "a8d225e6e9facb3990b5e4f331596919", "score": "0.5758349", "text": "private double getEntropy(){//Returns the entropy of the node\n\t\tdouble tempEntropy=0;\n\t\tint casesByOutputValues[]=new int[classHeader.getNumCategories()];\n\t\tArrays.fill(casesByOutputValues, 0);\n\t\tfor (int i=0; i<data.size(); i++){\n\t\t\tcasesByOutputValues[data.get(i)[attributeHeaderList.size()]]++; //Here we add-up all the instances observed in the node for each output value.\n\t\t}\n\t\tfor (int i=0; i<classHeader.getNumCategories(); i++){\n\t\t\tdouble p=((double)casesByOutputValues[i]/(double)data.size());\n\t\t\tif (p!=0 & !Double.isNaN(p)){\n\t\t\ttempEntropy+=((double)(-p)*((double)(Math.log(p))/(double)Math.log(classHeader.getNumCategories())));//We add-up the entropy for each output value.\n\t\t\t}\n\t\t}\n\t\treturn tempEntropy;\n\t}", "title": "" }, { "docid": "8d920fb5ff9d16efdc12b8957a16af18", "score": "0.5757955", "text": "@Test(timeout = 4000)\n public void test37() 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(boolean0);\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n \n Attribute attribute0 = new Attribute(\"!XVfD7*h^t\", 1717986918);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\nNo pruning: growing a rule ...\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"numeric\", arrayList0, 2);\n JRip.NominalAntd jRip_NominalAntd1 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd1.splitData(instances0, 2, 0.5);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getCover(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccuRate(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd1.getMaxInfoGain(), 0.01);\n }", "title": "" }, { "docid": "efaab60db5351c8f42443222ccb90cbd", "score": "0.5757047", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[6][3];\n discretize0.m_CutPoints = doubleArray0;\n String string0 = discretize0.getBinRangesString(3);\n assertEquals(10, discretize0.getBins());\n assertNotNull(string0);\n assertEquals(\"(-inf-0],(0-0],(0-0],(0-inf)\", string0);\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "c5806fff213deab5a9831aefe2d66be4", "score": "0.5754871", "text": "@Test(timeout = 4000)\n public void test56() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.getDefaultMeanWidth();\n resultMatrixGnuPlot0.getDisplayCol(655);\n resultMatrixGnuPlot0.getSignificanceCount(1694, (-840));\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n resultMatrixSignificance0.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n int[] intArray0 = new int[3];\n intArray0[0] = 2;\n intArray0[1] = 0;\n intArray0[2] = 2;\n resultMatrixCSV0.m_RankingWins = intArray0;\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n \n resultMatrixCSV0.clear();\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n }", "title": "" }, { "docid": "140c0031aaed01f68835e7935ecf2485", "score": "0.57532424", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\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 \n resultMatrixSignificance0.clearSummary();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\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_RemoveFilterName = false;\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n resultMatrixSignificance1.clear();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n String string0 = resultMatrixSignificance0.stdDevWidthTipText();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotNull(string0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n String string1 = resultMatrixSignificance0.showStdDevTipText();\n assertEquals(\"Whether to display the standard deviation column.\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotNull(string1);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixSignificance1.clearRanking();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n resultMatrixSignificance1.setShowAverage(false);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n resultMatrixSignificance0.setMean(2148, (-783), 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n int int0 = resultMatrixSignificance0.getDefaultStdDevPrec();\n assertEquals(2, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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 assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\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 column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n boolean boolean0 = resultMatrixSignificance1.getDefaultRemoveFilterName();\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n int int1 = resultMatrixSignificance1.getVisibleColCount();\n assertEquals(1, int1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(int1 == int0);\n \n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertNotNull(resultMatrixSignificance2);\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n \n String string2 = resultMatrixSignificance2.stdDevWidthTipText();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance2.getMeanPrec());\n assertFalse(resultMatrixSignificance2.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance2.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance2.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance2.getRowCount());\n assertTrue(resultMatrixSignificance2.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance2.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance2.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance2.getVisibleRowCount());\n assertFalse(resultMatrixSignificance2.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance2.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance2.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance2.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance2.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance2.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance2.getRowNameWidth());\n assertFalse(resultMatrixSignificance2.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance2.countWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance2.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance2.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance2.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance2.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance2.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance2.colNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance2.getCountWidth());\n assertEquals(1, resultMatrixSignificance2.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance2.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance2.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance2.significanceWidthTipText());\n assertTrue(resultMatrixSignificance2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance2.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance2.getRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance2.getDisplayName());\n assertEquals(2, resultMatrixSignificance2.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance2.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance2.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance2.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance2.getShowStdDev());\n assertEquals(0, resultMatrixSignificance2.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance2.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance2.globalInfo());\n assertTrue(resultMatrixSignificance2.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance2.getMeanWidth());\n assertNotNull(string2);\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance2, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance2.equals((Object)resultMatrixSignificance0));\n assertFalse(string2.equals((Object)string1));\n \n resultMatrixSignificance1.setColHidden((-2742), false);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance2);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance2));\n }", "title": "" }, { "docid": "087e7886e0425f91287349233852fe66", "score": "0.5749632", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(70, 5);\n resultMatrixSignificance0.toStringRanking();\n String string0 = resultMatrixSignificance0.getSummaryTitle(37);\n assertEquals(\"l\", string0);\n \n resultMatrixSignificance0.getDisplayName();\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(5, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n }", "title": "" }, { "docid": "e4d654a7d971c4e2644a4281ca3b62f1", "score": "0.57482874", "text": "@Test(timeout = 4000)\n public void test097() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixLatex0);\n \n int[] intArray0 = new int[7];\n intArray0[0] = 26;\n intArray0[2] = 0;\n intArray0[3] = 71;\n String[] stringArray0 = resultMatrixLatex0.getOptions();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertNotNull(stringArray0);\n assertEquals(18, stringArray0.length);\n \n resultMatrixLatex0.setStdDevPrec(71);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(71, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n \n resultMatrixLatex0.setPrintRowNames(true);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(71, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n \n boolean boolean0 = resultMatrixLatex0.isStdDev(651);\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(71, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(71, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(71, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\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(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertNotNull(resultMatrixHTML0);\n \n String string0 = resultMatrixLatex0.meanPrecTipText();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(71, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertNotNull(string0);\n }", "title": "" }, { "docid": "c6b70128b18db72b5ad67fd6913dff20", "score": "0.57460135", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"replace\", (-1907));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n int[] intArray0 = new int[8];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 4;\n intArray0[3] = 1;\n intArray0[4] = 2;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n intArray0[5] = 0;\n intArray0[6] = (-1907);\n Attribute.typeToString(2);\n intArray0[7] = 1;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((-1325.8), intArray0, 2);\n jRip_NominalAntd0.covers(binarySparseInstance0);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"relational\";\n binarySparseInstance0.toString(0);\n stringArray0[1] = \"@end\";\n jRip0.setOptions(stringArray0);\n jRip_NominalAntd0.covers(binarySparseInstance0);\n jRip_NominalAntd0.copy();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"real\", arrayList0, 2);\n jRip_NumericAntd0.splitData(instances0, (-663.879), (-2115.216195467077));\n assertEquals(0.0, jRip_NumericAntd0.getAttrValue(), 0.01);\n }", "title": "" }, { "docid": "cf5808b7c7ca93b3d6731401d98381ad", "score": "0.57431036", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.setSeed(1369L);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"Ypm8Q_^]rEG<i!3z?\";\n AbstractClassifier.runClassifier(jRip0, stringArray0);\n jRip_RipperRule0.setConsequent(0.9);\n jRip_RipperRule0.size();\n jRip_RipperRule0.setConsequent(2854.1119);\n assertEquals(1369L, jRip0.getSeed());\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "c781567ba96a1e0d126fa1aaacf88172", "score": "0.57369316", "text": "public static void main(String args[]){\n String coverageFile = \"data/raise/reduce/setCovers/ADCoverage.dat\";\n String timingFile = \"data/raise/reduce/setCovers/ADTime.dat\";\n String matrixCoverage = \"data/raise/reduce/setCovers/ADMatrix.dat\";\n \n SetCover sc;\n \n sc = SetCover.constructSetCoverFromCoverageAndTime(coverageFile, timingFile,false); \n GenerateCoverageEffectivenessData g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n \t \n \t /*\n // RP\n String setCoverFile = \"data/diatoms/reduce/xmlSetCovers/RP-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n String matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/RPMatrix.dat\";\n \n SetCover sc;\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n GenerateCoverageEffectivenessData g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // LF\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/LF-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/LFMatrix.dat\";\n \n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // RM\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/RM-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/RMMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // SK\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/SK-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/SKMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // TM\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/TM-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/TMMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // DS\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/DS-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/DSMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n \n // GB\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/GB-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/GBMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n \n // JD\n setCoverFile = \"data/diatoms/reduce/xmlSetCovers/JD-setCover.xml\";\n //String coverageFile = \"data/diatoms/reduce/xmlSetCovers/RPCoverage.dat\";\n //String timingFile = \"data/diatoms/reduce/xmlSetCovers/RPTime.dat\";\n matrixCoverage = \"data/diatoms/reduce/xmlSetCovers/JDMatrix.dat\";\n \n sc = SetCover.constructSetCoverFromXML(setCoverFile);\n \n g = new GenerateCoverageEffectivenessData(sc);\n //g.saveTimingData(timingFile);\n // g.saveCoverageData(coverageFile);\n g.saveMatrixData(matrixCoverage);\n */\n\t\t}", "title": "" }, { "docid": "b1a5ced663fac9b2972f44f0055d84a1", "score": "0.57363564", "text": "@Test(timeout = 4000)\n public void test090() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.clearSummary();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n resultMatrixSignificance0.m_RemoveFilterName = false;\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n resultMatrixSignificance0.clear();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(0, resultMatrixLatex0.getCountWidth());\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(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertNotNull(resultMatrixLatex0);\n \n resultMatrixLatex0.setRemoveFilterName(false);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(0, resultMatrixLatex0.getCountWidth());\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(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n \n resultMatrixLatex0.setOptions((String[]) null);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(0, resultMatrixLatex0.getCountWidth());\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(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n \n Vector<Integer> vector0 = new Vector<Integer>();\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertEquals(0, vector0.size());\n assertTrue(vector0.isEmpty());\n assertNotNull(vector0);\n assertFalse(vector0.contains(0));\n \n int int0 = (-2286);\n resultMatrixSignificance0.setMeanWidth(0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\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(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\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.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n ResultMatrixSignificance resultMatrixSignificance1 = null;\n try {\n resultMatrixSignificance1 = new ResultMatrixSignificance((-2286), 1205);\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": "1aca911b587df3392cadb5121644a0f6", "score": "0.5735402", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertNotNull(resultMatrixSignificance0);\n \n int int0 = 1;\n resultMatrixSignificance0.setStdDevWidth(1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n \n resultMatrixSignificance0.m_EnumerateRowNames = true;\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n \n String string0 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(\"0.\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertNotNull(string0);\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n \n int int1 = 2465;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(1, 2465);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2465, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(2465, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertNotNull(resultMatrixLatex0);\n \n String string1 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2465, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(2465, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n String string2 = resultMatrixSignificance0.getColName(18);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\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(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\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(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertNull(string2);\n \n resultMatrixLatex0.setRowName(2465, \"!X7uLyECr=5T`HhYP8a\");\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2465, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n \n // Undeclared exception!\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n }", "title": "" }, { "docid": "ee471281793145f12c5d19363d68507a", "score": "0.5734162", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd((Attribute) null);\n double[] doubleArray0 = new double[6];\n doubleArray0[0] = Double.NaN;\n doubleArray0[1] = Double.NaN;\n doubleArray0[2] = (-0.243000810544857);\n Attribute attribute0 = new Attribute(\"\", \"\", Integer.MIN_VALUE);\n JRip.NumericAntd jRip_NumericAntd1 = jRip0.new NumericAntd(attribute0);\n JRip.NumericAntd jRip_NumericAntd2 = jRip0.new NumericAntd(attribute0);\n String string0 = jRip_NumericAntd2.toString();\n assertEquals(\" <= NaN\", string0);\n \n double double0 = jRip_NumericAntd1.getCover();\n assertFalse(jRip0.getDebug());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(0.0, jRip_NumericAntd1.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAttrValue(), 0.01);\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1L, jRip0.getSeed());\n }", "title": "" }, { "docid": "f4dc6a275f56eca46b703c87e1b26411", "score": "0.5733588", "text": "@Test\n\tpublic void test08_height_of_100_nodes() {\n\n\t}", "title": "" }, { "docid": "28082153ed6315a745870990a3b4c103", "score": "0.5725524", "text": "@Test(timeout = 4000)\n public void test094() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.setStdDevWidth(1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n String string0 = resultMatrixSignificance0.toString();\n assertEquals(\"Dataset (1)\\n-----------\\nrow0 \\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotNull(string0);\n \n resultMatrixSignificance0.m_EnumerateRowNames = true;\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n String string1 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(\"0.\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixSignificance0.m_SignificanceWidth = 0;\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n \n boolean boolean1 = resultMatrixSignificance0.getDefaultEnumerateColNames();\n assertTrue(boolean1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(boolean1 == boolean0);\n \n boolean boolean2 = resultMatrixSignificance0.isAverage(0);\n assertFalse(boolean2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(boolean2 == boolean0);\n assertFalse(boolean2 == boolean1);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertNotNull(resultMatrixGnuPlot0);\n \n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.m_RowOrder = intArray0;\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n \n String string2 = resultMatrixGnuPlot0.getColName((-1107));\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertNull(string2);\n \n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n \n String string3 = resultMatrixGnuPlot0.toStringRanking();\n assertEquals(\"-ranking data not set-\", string3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertNotNull(string3);\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\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(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertNotNull(resultMatrixCSV0);\n \n boolean boolean3 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(boolean3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertTrue(boolean3 == boolean0);\n assertTrue(boolean3 == boolean2);\n assertFalse(boolean3 == boolean1);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n boolean boolean4 = resultMatrixSignificance1.getPrintRowNames();\n assertTrue(boolean4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertFalse(boolean4 == boolean2);\n assertTrue(boolean4 == boolean1);\n assertFalse(boolean4 == boolean0);\n assertFalse(boolean4 == boolean3);\n \n ResultMatrixSignificance.main((String[]) null);\n boolean boolean5 = resultMatrixSignificance0.getEnumerateRowNames();\n assertTrue(boolean5);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertTrue(boolean5 == boolean4);\n assertFalse(boolean5 == boolean3);\n assertFalse(boolean5 == boolean0);\n assertFalse(boolean5 == boolean2);\n assertTrue(boolean5 == boolean1);\n \n String string4 = resultMatrixGnuPlot0.toStringKey();\n assertEquals(\"Key:\\n(1) col0\\n\", string4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\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 assertFalse(resultMatrixSignificance0.getShowAverage());\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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\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 assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertNotNull(string4);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string0));\n }", "title": "" }, { "docid": "12300bb82fb2690f6f3cf3a6caf31923", "score": "0.5724364", "text": "@Test(timeout = 4000)\n public void test201() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n resultMatrixHTML0.m_Counts = doubleArray0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixHTML0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n resultMatrixLatex0.getSignificanceWidth();\n resultMatrixHTML0.toStringRanking();\n resultMatrixHTML0.getCount(0);\n String[][] stringArray0 = new String[7][2];\n String[] stringArray1 = new String[1];\n stringArray1[0] = \"v\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[3];\n stringArray2[1] = \"\";\n stringArray2[2] = \"*\";\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[1];\n stringArray3[0] = \"*\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[1];\n stringArray4[0] = \"(\";\n stringArray0[3] = stringArray4;\n String[] stringArray5 = new String[7];\n stringArray5[0] = \"&plusmn;&nbsp;\";\n stringArray5[1] = \"*\";\n stringArray5[2] = \"*\";\n stringArray5[3] = \"(\";\n stringArray5[4] = \"(\";\n stringArray5[5] = \")\";\n stringArray5[6] = \"*\";\n stringArray0[4] = stringArray5;\n String[] stringArray6 = new String[0];\n String[] stringArray7 = new String[0];\n stringArray0[6] = stringArray7;\n // Undeclared exception!\n try { \n resultMatrixHTML0.getColSize(stringArray0, 0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "1303c0fa9a2ae02a806dcbef9b5c5a4f", "score": "0.5719375", "text": "@Test(timeout = 4000)\n public void test211() 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 intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\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 intArray2[7] = 0;\n intArray2[8] = 1;\n intArray0[1] = intArray2;\n resultMatrixLatex0.setPrintColNames(false);\n resultMatrixLatex0.m_NonSigWins = intArray0;\n resultMatrixLatex0.assign(resultMatrixHTML0);\n resultMatrixLatex0.m_MeanWidth = 2;\n resultMatrixLatex0.isStdDev(1);\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n \n resultMatrixHTML0.m_RemoveFilterName = false;\n resultMatrixHTML0.getSignificance(1, 72);\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n }", "title": "" }, { "docid": "349963f3736381779f0fd3ccff12ee3f", "score": "0.57167983", "text": "@Test(timeout = 4000)\n public void test130() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n resultMatrixHTML0.m_Counts = doubleArray0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixHTML0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n resultMatrixLatex0.getSignificanceWidth();\n resultMatrixHTML0.toStringRanking();\n resultMatrixHTML0.getCount(0);\n String[][] stringArray0 = new String[7][2];\n String[] stringArray1 = new String[1];\n stringArray1[0] = \"v\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[3];\n stringArray2[0] = \"v\";\n stringArray2[1] = \"\";\n stringArray2[2] = \"*\";\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[1];\n stringArray3[0] = \"*\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[1];\n stringArray4[0] = \"(\";\n stringArray0[3] = stringArray4;\n String[] stringArray5 = new String[7];\n stringArray5[0] = \"&plusmn;&nbsp;\";\n stringArray5[1] = \"*\";\n stringArray5[2] = \"*\";\n stringArray5[3] = \"(\";\n stringArray5[4] = \"(\";\n stringArray5[5] = \")\";\n stringArray5[6] = \"*\";\n stringArray0[4] = stringArray5;\n String[] stringArray6 = new String[0];\n stringArray0[5] = stringArray6;\n String[] stringArray7 = new String[0];\n stringArray0[6] = stringArray7;\n // Undeclared exception!\n try { \n resultMatrixHTML0.getColSize(stringArray0, 0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "243f4b61d0d4348e69ca52e8d5e386a3", "score": "0.57159007", "text": "@Test(timeout = 4000)\n public void test159() 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 intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 0;\n intArray2[4] = 0;\n intArray1[2] = 1;\n intArray2[6] = 2;\n intArray2[7] = 0;\n intArray2[8] = 1;\n intArray0[1] = intArray2;\n resultMatrixLatex0.m_NonSigWins = intArray0;\n resultMatrixLatex0.assign(resultMatrixHTML0);\n resultMatrixLatex0.m_MeanWidth = 2;\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n \n double double0 = resultMatrixHTML0.getStdDev(45, 1550);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "ab0dbbd6da5b1f9b6832dc733a593229", "score": "0.5714346", "text": "@Test(timeout = 4000)\n public void test056() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.setStdDevWidth(111);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n \n String string0 = resultMatrixSignificance0.toString();\n assertEquals(\"Dataset (1)\\n-----------\\nrow0 \\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertNotNull(string0);\n \n resultMatrixSignificance0.m_EnumerateRowNames = true;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n \n String string1 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(\"0.\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n \n boolean boolean1 = resultMatrixSignificance0.getDefaultEnumerateColNames();\n assertTrue(boolean1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(boolean1 == boolean0);\n \n boolean boolean2 = resultMatrixSignificance0.isAverage(0);\n assertFalse(boolean2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(boolean2 == boolean0);\n assertFalse(boolean2 == boolean1);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\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 assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertNotNull(resultMatrixGnuPlot0);\n \n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.m_RowOrder = intArray0;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n \n String string2 = resultMatrixGnuPlot0.getColName(2);\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 assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertNull(string2);\n \n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\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 assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n \n String string3 = resultMatrixGnuPlot0.toStringRanking();\n assertEquals(\"-ranking data not set-\", string3);\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 assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertNotNull(string3);\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string1));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\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 assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(111, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\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.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\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 width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertNotNull(resultMatrixCSV0);\n \n int[][] intArray1 = new int[2][3];\n intArray1[0] = intArray0;\n intArray1[1] = null;\n resultMatrixCSV0.setSummary(intArray1, intArray1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\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 assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(111, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\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.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\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 width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, intArray1.length);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertNotNull(resultMatrixLatex0);\n \n resultMatrixGnuPlot0.m_MeanWidth = 0;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\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(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(111, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n \n resultMatrixLatex0.setEnumerateColNames(true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n \n boolean boolean3 = resultMatrixLatex0.isAverage(88);\n assertFalse(boolean3);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(boolean3 == boolean1);\n assertTrue(boolean3 == boolean2);\n assertTrue(boolean3 == boolean0);\n \n int int0 = resultMatrixLatex0.getSignificance(95, 0);\n assertEquals(0, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n \n String string4 = resultMatrixLatex0.meanWidthTipText();\n assertEquals(\"The width of the mean (0 = optimal).\", string4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertNotNull(string4);\n assertFalse(string4.equals((Object)string0));\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string1));\n \n resultMatrixLatex0.setColOrder(intArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, intArray0.length);\n assertArrayEquals(new int[] {}, intArray0);\n \n boolean boolean4 = resultMatrixSignificance0.getDefaultPrintColNames();\n assertFalse(boolean4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(111, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\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(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\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(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\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(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(boolean4 == boolean2);\n assertFalse(boolean4 == boolean1);\n assertTrue(boolean4 == boolean3);\n assertTrue(boolean4 == boolean0);\n \n Enumeration enumeration0 = resultMatrixLatex0.listOptions();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\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 mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\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(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertNotNull(enumeration0);\n }", "title": "" }, { "docid": "6b97325f88a8c69e2fec5bbc4b02e720", "score": "0.5714251", "text": "@Test(timeout = 4000)\n public void test94() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 1961);\n int[][] intArray0 = new int[6][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[1];\n intArray2[0] = 45;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[4];\n intArray3[0] = 2;\n intArray3[1] = 45;\n intArray3[2] = 45;\n intArray3[3] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[2];\n intArray4[0] = 1961;\n intArray4[1] = 1961;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[9];\n intArray5[0] = 45;\n intArray5[1] = 1;\n intArray5[2] = 1961;\n intArray5[3] = 1961;\n intArray5[4] = 2;\n intArray5[5] = 1961;\n intArray5[6] = 1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(97, 2);\n resultMatrixHTML0.setCountWidth(761);\n ResultMatrixLatex.main((String[]) null);\n }", "title": "" }, { "docid": "9ce79901406272609df93cf294812ea6", "score": "0.571285", "text": "@org.junit.Test\n public void testHighCardinality_literalMutation18081_failAssert4() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n long start = java.lang.System.currentTimeMillis();\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(18, 50);\n int size = 10000000;\n for (int i = 0; i < size; i++) {\n hyperLogLogPlus.offer(com.clearspring.analytics.stream.cardinality.TestICardinality.streamElement(i));\n }\n java.lang.System.out.println((((((\"expected: \" + size) + \", estimate: \") + (hyperLogLogPlus.cardinality())) + \", time: \") + ((java.lang.System.currentTimeMillis()) - start)));\n long estimate = hyperLogLogPlus.cardinality();\n double err = (java.lang.Math.abs((estimate - size))) / ((double) (size));\n java.lang.System.out.println((\"Percentage error \" + err));\n // MethodAssertGenerator build local variable\n Object o_21_0 = err < 0.1;\n org.junit.Assert.fail(\"testHighCardinality_literalMutation18081 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "2a52e07ef62072c51f6082e167d41141", "score": "0.5709282", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 1961);\n int[][] intArray0 = new int[6][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[1];\n intArray2[0] = 45;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[4];\n intArray3[0] = 2;\n intArray3[1] = 45;\n intArray3[2] = 45;\n intArray3[3] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[2];\n intArray4[0] = 1961;\n intArray4[1] = 1961;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[9];\n intArray5[0] = 45;\n intArray5[1] = 1;\n intArray5[2] = 1961;\n intArray5[3] = 1961;\n intArray5[4] = 2;\n intArray5[5] = 1961;\n intArray5[6] = 1;\n intArray5[7] = 0;\n intArray5[8] = 1961;\n intArray0[4] = intArray5;\n int[] intArray6 = new int[9];\n intArray6[0] = 2;\n intArray6[1] = 0;\n intArray6[2] = 1;\n intArray6[3] = 0;\n intArray6[4] = 2;\n intArray6[5] = 0;\n intArray6[6] = 45;\n intArray6[7] = 0;\n intArray6[8] = 1961;\n intArray0[5] = intArray6;\n resultMatrixSignificance0.setSummary(intArray0, intArray0);\n int int0 = resultMatrixSignificance0.getSignificanceWidth();\n assertEquals(0, int0);\n assertEquals(1961, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n }", "title": "" }, { "docid": "5e3047cdd9cd66c15a8d5602ccf3085e", "score": "0.5707369", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Attribute attribute0 = new Attribute(\"\\nTime taken to test model on training split: \");\n Attribute attribute1 = new Attribute(\"real\", 0);\n Attribute attribute2 = attribute1.copy(\"@end\");\n JRip jRip0 = new JRip();\n JRip jRip1 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip1.new RipperRule();\n String string0 = jRip_RipperRule0.toString(attribute1);\n assertEquals(\" => real=\", string0);\n \n boolean boolean0 = jRip_RipperRule0.hasAntds();\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n \n JRip.NumericAntd jRip_NumericAntd0 = jRip1.new NumericAntd(attribute2);\n SparseInstance sparseInstance0 = new SparseInstance(2);\n boolean boolean1 = jRip_NumericAntd0.covers(sparseInstance0);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertFalse(jRip1.getDebug());\n assertTrue(jRip1.getCheckErrorRate());\n assertEquals(1L, jRip1.getSeed());\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(2, jRip1.getOptimizations());\n assertTrue(boolean1 == boolean0);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(2.0, jRip1.getMinNo(), 0.01);\n assertTrue(jRip1.getUsePruning());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(3, jRip1.getFolds());\n assertFalse(boolean1);\n }", "title": "" }, { "docid": "4f39097a2f45a5050a449a462e28417e", "score": "0.56983936", "text": "@Test(timeout = 4000)\n public void test63() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n resultMatrixSignificance0.TIE_STRING = \"\";\n resultMatrixSignificance0.m_ShowStdDev = false;\n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n resultMatrixSignificance0.toStringKey();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.setCountWidth(0);\n String[][] stringArray1 = new String[1][5];\n stringArray1[0] = stringArray0;\n resultMatrixSignificance0.getColSize(stringArray1, 0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(10, 0);\n resultMatrixLatex0.setEnumerateColNames(false);\n resultMatrixLatex0.rowNameWidthTipText();\n resultMatrixSignificance0.clearHeader();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.getDefaultPrintColNames();\n resultMatrixSignificance0.clearHeader();\n ResultMatrixSignificance resultMatrixSignificance1 = null;\n try {\n resultMatrixSignificance1 = new ResultMatrixSignificance((-1689), 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": "6d283f4e63fc8cb3fd7f0f9d83cedfee", "score": "0.5697235", "text": "@Test(timeout = 4000)\n public void test123() throws Throwable {\n int[] intArray0 = new int[1];\n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n assertEquals(1, int0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 87);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(87, resultMatrixSignificance0.getRowCount());\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.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(87, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\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.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n \n int int1 = resultMatrixSignificance0.getVisibleColCount();\n assertEquals(1, int1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(87, resultMatrixSignificance0.getRowCount());\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.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(87, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\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(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\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.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(int1 == int0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\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.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\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.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixLatex0);\n \n String string0 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\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.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\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.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertNotNull(string0);\n \n resultMatrixLatex0.setRowName(1232, \"\\begin{table}[thb]\\ncaption{label{labelname}Table Caption (Key)}\\nscriptsize\\n{centering\\n\\begin{tabular}{cl}\\\\\\n(1) & col0 \\\\\\nend{tabular}\\n}\\nend{table}\\n\");\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\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.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\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.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n \n resultMatrixLatex0.m_RankingWins = intArray0;\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\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.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\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.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "f4d3fc7f043fd09cb78e19c2218ed9f3", "score": "0.5695938", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Discretize discretize0 = new Discretize(\"\\\"X(k@$BA!/\");\n byte[] byteArray0 = new byte[4];\n byteArray0[0] = (byte)2;\n byteArray0[1] = (byte)2;\n byteArray0[2] = (byte) (-1);\n byteArray0[3] = (byte)96;\n double[][] doubleArray0 = new double[0][3];\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": "2a608463269e3aabcdb7a69a967c6efa", "score": "0.568493", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, 26);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double double0 = jRip_NominalAntd0.getMaxInfoGain();\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(0.0, double0, 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n }", "title": "" }, { "docid": "21cfe88194bc7cbe5eb9cb0ad82e515b", "score": "0.5681404", "text": "@Test(timeout = 4000)\n public void test85() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n resultMatrixSignificance0.m_ShowStdDev = false;\n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n resultMatrixSignificance0.toStringKey();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.setCountWidth(0);\n String[][] stringArray1 = new String[1][5];\n stringArray1[0] = stringArray0;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 1;\n intArray0[2] = 0;\n resultMatrixCSV0.setRowOrder(intArray0);\n resultMatrixSignificance0.headerKeys();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n resultMatrixGnuPlot0.isMean(0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 16);\n // Undeclared exception!\n try { \n resultMatrixLatex0.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": "43c078a5a300664f2f2e9773051bfd2e", "score": "0.5679227", "text": "@Test(timeout = 4000)\n public void test168() 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 intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\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 intArray2[7] = 0;\n intArray2[8] = 1;\n intArray0[1] = intArray2;\n resultMatrixLatex0.m_NonSigWins = intArray0;\n resultMatrixLatex0.assign(resultMatrixHTML0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n \n resultMatrixLatex0.m_MeanWidth = 2;\n resultMatrixLatex0.isStdDev(1);\n resultMatrixHTML0.m_RemoveFilterName = false;\n resultMatrixHTML0.getSignificance((-617), 0);\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n }", "title": "" }, { "docid": "244f9c9f0a8aa5ae00cb71a38025e9b9", "score": "0.56778413", "text": "@Test \r\n\tpublic void testdiff(){\r\n\t\t/* s1 s2 s3\r\n\t\t * a x x\r\n\t\t * b x \r\n\t\t * c x \r\n\t\t * d x \r\n\t\t * f x\r\n\t\t */\r\n\t\tSIRJavaFactory sir = new SIRJavaFactory();\r\n\t\tApplication testapp = sir.extract(appname,TraceType.CODECOVERAGE_EMMA);\r\n\t\tProgram p1 = testapp.getProgram(ProgramVariant.orig, 1);\r\n\t\tSourceFileEntity sfe1 = new SourceFileEntity(p1,\"default.package\",\"test.java\",null);\r\n\t\tStatementEntity s1 = new StatementEntity(sfe1,10,\"int i=0\");\r\n\t\tStatementEntity s2 = new StatementEntity(sfe1,20,\"int j=0\");\r\n\t\tStatementEntity s3 = new StatementEntity(sfe1,120,\"int k=0\");\r\n\t\tList<TestCase> tcc = new ArrayList<>();\r\n\t\ttcc.add(a);tcc.add(b);tcc.add(c);tcc.add(d);tcc.add(f);\r\n\t\tList<StatementEntity> sea = new ArrayList<>();\r\n\t\tsea.add(s1);sea.add(s2);sea.add(s3);\r\n\t\tCodeCoverage cc =new CodeCoverage<StatementEntity>(TraceType.CODECOVERAGE_EMMA,tcc,sea,null);\r\n\t\tcc.setLink(a, s1);\r\n\t\tcc.setLink(a, s3);\r\n\t\tcc.setLink(b, s3);\r\n\t\tassertEquals(\"changed elements\",4,codeCoverage.diff(cc,new StatementEntityComparator()));\r\n\t\tcc.setLink(c, s1);\r\n\t\tassertEquals(\"changed elements\",3,codeCoverage.diff(cc,new StatementEntityComparator()));\r\n\t\tcc.setLink(d, s1);\r\n\t\tassertEquals(\"changed elements\",4,codeCoverage.diff(cc,new StatementEntityComparator()));\r\n\t\tcc.setLink(f,s1);\r\n\t\tassertEquals(\"changed elements\",3,codeCoverage.diff(cc,new StatementEntityComparator()));\r\n\t}", "title": "" }, { "docid": "4c87dd960df1cbd0b4bce85ddaeff866", "score": "0.56741595", "text": "@org.junit.Test(timeout = 10000)\n public void testHighCardinality_cf18121_failAssert10_literalMutation18482_failAssert7() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n long start = java.lang.System.currentTimeMillis();\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(18, 50);\n int size = 10000000;\n for (int i = 0; i < size; i++) {\n hyperLogLogPlus.offer(com.clearspring.analytics.stream.cardinality.TestICardinality.streamElement(i));\n }\n java.lang.System.out.println((((((\"expected: \" + size) + \", estimate: \") + (hyperLogLogPlus.cardinality())) + \", time: \") + ((java.lang.System.currentTimeMillis()) - start)));\n long estimate = hyperLogLogPlus.cardinality();\n double err = (java.lang.Math.abs((estimate - size))) / ((double) (size));\n java.lang.System.out.println((\"Percentage error \" + err));\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_1164 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_1164.offerHashed(size);\n // MethodAssertGenerator build local variable\n Object o_24_0 = err < 0.1;\n org.junit.Assert.fail(\"testHighCardinality_cf18121 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"testHighCardinality_cf18121_failAssert10_literalMutation18482 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "f421243308604cd83cd19f128b5b7461", "score": "0.5672599", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n JRip jRip0 = new JRip();\n String[] stringArray0 = new String[3];\n stringArray0[1] = \"\";\n ArrayList<String> arrayList0 = new ArrayList<String>();\n arrayList0.add(\">0:sk]FC4TJt3:2x\");\n Attribute attribute0 = new Attribute(\"Trim white space from each end of attribute names and nominal values before matching.\", arrayList0, (-100));\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.toString();\n jRip0.setDebug(true);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 4;\n doubleArray0[1] = (double) 3;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n int[] intArray0 = new int[1];\n intArray0[0] = 1;\n attribute0.copy();\n jRip0.getOptions();\n jRip_NumericAntd0.copy();\n System.setCurrentTimeMillis(2);\n System.setCurrentTimeMillis(0);\n }", "title": "" }, { "docid": "3cf29a510f327f81384d3b8c7e377310", "score": "0.56687224", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(7, stringArray0.length);\n \n discretize0.getCapabilities();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "4ba167c1f97e4c1ea4c627d1d066f02b", "score": "0.5663588", "text": "@Test(timeout = 4000)\n public void test054() 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 assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertNotNull(resultMatrixSignificance0);\n \n String string0 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertNotNull(string0);\n \n int int0 = resultMatrixSignificance0.getDefaultMeanPrec();\n assertEquals(2, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertNotNull(resultMatrixGnuPlot0);\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(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\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(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertNotNull(resultMatrixLatex0);\n \n int[] intArray0 = new int[1];\n int[][] intArray1 = new int[9][7];\n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n resultMatrixLatex0.assign(resultMatrixSignificance0);\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 assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\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 assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\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(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n \n boolean boolean0 = resultMatrixLatex0.isStdDev(1);\n assertFalse(boolean0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\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(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\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 assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(26, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\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 assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(26, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(26, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\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 assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertNotNull(resultMatrixHTML0);\n \n int int1 = resultMatrixHTML0.getSignificance(2, 0);\n assertEquals(0, int1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\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 assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(26, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(26, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\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 assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(int1 == int0);\n }", "title": "" }, { "docid": "a3fff2406020a3a9fbced3b75b2c7c8e", "score": "0.56628525", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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 mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(resultMatrixSignificance0);\n \n String string0 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\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 mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(string0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\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 assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertNotNull(resultMatrixLatex0);\n \n int[] intArray0 = new int[1];\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertNotNull(resultMatrixGnuPlot1);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n int[][] intArray1 = new int[6][0];\n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n intArray1[2] = intArray0;\n intArray1[3] = intArray0;\n intArray1[4] = intArray0;\n intArray1[5] = intArray0;\n resultMatrixGnuPlot1.setSummary(intArray1, intArray1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(6, intArray1.length);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixGnuPlot2.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot2.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot2.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot2.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot2.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertFalse(resultMatrixGnuPlot2.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot2.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot2.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot2.showAverageTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot2.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot2.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot2.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot2.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot2.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot2.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot2.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot2.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot2.removeFilterNameTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot2.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot2.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot2.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot2.getColCount());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot2.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot2.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot2.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot2.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot2.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot2.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot2.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot2.getDefaultStdDevWidth());\n assertNotNull(resultMatrixGnuPlot2);\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot2.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot0.toStringRanking();\n assertEquals(\"-ranking data not set-\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\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 assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertNotNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot2);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot2));\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertNotNull(resultMatrixCSV0);\n \n resultMatrixCSV0.setSummary(intArray1, intArray1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(6, intArray1.length);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\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 assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getPrintColNames());\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.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotNull(resultMatrixLatex1);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n resultMatrixLatex1.setEnumerateColNames(false);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\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 assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getPrintColNames());\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.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n boolean boolean0 = resultMatrixLatex0.isAverage(32);\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n \n int int0 = resultMatrixLatex1.getSignificance(0, 0);\n assertEquals(0, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\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 assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getPrintColNames());\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.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertNotNull(resultMatrixLatex2);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n \n String string2 = resultMatrixLatex0.meanWidthTipText();\n assertEquals(\"The width of the mean (0 = optimal).\", string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertNotNull(string2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex2));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixLatex2.setColOrder(intArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(1, intArray0.length);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex2, resultMatrixLatex1);\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n assertArrayEquals(new int[] {0}, intArray0);\n \n int int1 = resultMatrixCSV0.getDefaultRowNameWidth();\n assertEquals(25, int1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\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 assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\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(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex2));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(int1 == int0);\n \n resultMatrixLatex1.setRowHidden(1635, true);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\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 assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getPrintColNames());\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.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex2);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex2));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML((-711), 0);\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": "6548729be9bbdbb145fc2d09f2ca78de", "score": "0.5662215", "text": "@Test(timeout = 4000)\n public void test122() 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 assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertNotNull(resultMatrixSignificance0);\n \n String string0 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertNotNull(string0);\n \n int int0 = resultMatrixSignificance0.getDefaultMeanPrec();\n assertEquals(2, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\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).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\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 standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertNotNull(resultMatrixGnuPlot0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\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 assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertNotNull(resultMatrixLatex0);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\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 assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\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 standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertNotNull(resultMatrixLatex1);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n String string1 = resultMatrixLatex1.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\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 assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\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 standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertNotNull(string1);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(string1.equals((Object)string0));\n \n String string2 = resultMatrixLatex0.toStringKey();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption (Key)}\\n\\\\scriptsize\\n{\\\\centering\\n\\\\begin{tabular}{cl}\\\\\\\\\\n(1) & col0 \\\\\\\\\\n\\\\end{tabular}\\n}\\n\\\\end{table}\\n\", string2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\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 assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertNotNull(string2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertTrue(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n String string3 = resultMatrixSignificance0.getColName(2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertNull(string3);\n \n resultMatrixLatex0.setRowName(0, \"\");\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\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 assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n \n resultMatrixSignificance0.assign(resultMatrixLatex1);\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, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\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 assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\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 assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\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 standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\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 assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\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(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixCSV0);\n \n Object object0 = new Object();\n assertNotNull(object0);\n \n Predicate<Object> predicate0 = Predicate.isEqual((Object) \"$circ$\");\n assertNotNull(predicate0);\n \n Object object1 = new Object();\n assertNotNull(object1);\n assertFalse(object1.equals((Object)object0));\n \n Predicate<Object> predicate1 = Predicate.isEqual((Object) \"Only outputs the significance indicators. Can be used for spotting patterns.\");\n assertNotNull(predicate1);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate1.equals((Object)predicate0));\n \n Predicate<Object> predicate2 = Predicate.isEqual((Object) null);\n assertNotNull(predicate2);\n assertFalse(predicate2.equals((Object)predicate1));\n assertFalse(predicate2.equals((Object)predicate0));\n \n Predicate<Object> predicate3 = predicate0.or(predicate1);\n assertNotNull(predicate3);\n assertNotSame(predicate0, predicate1);\n assertNotSame(predicate1, predicate0);\n assertFalse(predicate3.equals((Object)predicate0));\n assertFalse(predicate3.equals((Object)predicate2));\n assertFalse(predicate3.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate1));\n assertFalse(predicate0.equals((Object)predicate2));\n assertFalse(predicate1.equals((Object)predicate0));\n assertFalse(predicate1.equals((Object)predicate2));\n \n Predicate<Object> predicate4 = null;\n // Undeclared exception!\n try { \n predicate1.and((Predicate<? super Object>) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.Objects\", e);\n }\n }", "title": "" }, { "docid": "8ea1f18209c6dcef67913715bd203b78", "score": "0.56604224", "text": "@Test(timeout = 4000)\n public void test137() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.globalInfo();\n resultMatrixSignificance0.getDefaultMeanPrec();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n int[] intArray0 = new int[1];\n int[][] intArray1 = new int[9][7];\n String string0 = resultMatrixGnuPlot0.getRowName(0);\n assertEquals(\"row0\", string0);\n \n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n intArray1[2] = intArray0;\n resultMatrixSignificance0.m_CountWidth = 32;\n intArray1[3] = intArray0;\n intArray1[4] = intArray0;\n intArray1[5] = intArray0;\n resultMatrixLatex0.m_RankingWins = intArray0;\n intArray1[6] = intArray0;\n intArray1[7] = intArray0;\n intArray1[8] = intArray0;\n resultMatrixGnuPlot0.setSummary(intArray1, intArray1);\n intArray0[0] = 0;\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n \n Object object0 = new Object();\n Predicate<Object> predicate0 = Predicate.isEqual((Object) intArray0);\n Object object1 = new Object();\n Predicate<Object> predicate1 = Predicate.isEqual((Object) intArray0);\n Predicate<Object> predicate2 = predicate0.and(predicate1);\n Predicate<Object> predicate3 = predicate2.or(predicate1);\n Predicate<Object> predicate4 = predicate1.or(predicate2);\n Predicate<Object> predicate5 = predicate0.and(predicate4);\n predicate4.or(predicate5);\n predicate0.negate();\n Vector<Integer> vector0 = new Vector<Integer>();\n vector0.removeIf(predicate3);\n resultMatrixSignificance0.setCount((-1585), 0.0);\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n \n resultMatrixLatex0.toArray();\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n }", "title": "" }, { "docid": "d1e4a1dc61280c900f76f2b5580add3f", "score": "0.566042", "text": "@Test\n public void testSmallValues()\n {\n }", "title": "" }, { "docid": "de45280193f4e27687b128aaa74d42a9", "score": "0.56588626", "text": "@org.junit.Test(timeout = 10000)\n public void testHighCardinality_cf18121_failAssert10_literalMutation18477_failAssert5() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n long start = java.lang.System.currentTimeMillis();\n com.clearspring.analytics.stream.cardinality.HyperLogLogPlus hyperLogLogPlus = new com.clearspring.analytics.stream.cardinality.HyperLogLogPlus(36, 25);\n int size = 10000000;\n for (int i = 0; i < size; i++) {\n hyperLogLogPlus.offer(com.clearspring.analytics.stream.cardinality.TestICardinality.streamElement(i));\n }\n java.lang.System.out.println((((((\"expected: \" + size) + \", estimate: \") + (hyperLogLogPlus.cardinality())) + \", time: \") + ((java.lang.System.currentTimeMillis()) - start)));\n long estimate = hyperLogLogPlus.cardinality();\n double err = (java.lang.Math.abs((estimate - size))) / ((double) (size));\n java.lang.System.out.println((\"Percentage error \" + err));\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.cardinality.HyperLogLog vc_1164 = (com.clearspring.analytics.stream.cardinality.HyperLogLog)null;\n // StatementAdderMethod cloned existing statement\n vc_1164.offerHashed(size);\n // MethodAssertGenerator build local variable\n Object o_24_0 = err < 0.1;\n org.junit.Assert.fail(\"testHighCardinality_cf18121 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"testHighCardinality_cf18121_failAssert10_literalMutation18477 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "title": "" }, { "docid": "915a7ba5ed81484928ac913271f24143", "score": "0.5658829", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.toString();\n assertEquals(\"JRIP: No model built yet.\", string0);\n \n String[] stringArray0 = new String[8];\n stringArray0[0] = \"JRIP: No model built yet.\";\n stringArray0[1] = \"JRIP: No model built yet.\";\n stringArray0[2] = \"JRIP: No model built yet.\";\n stringArray0[3] = \"JRIP: No model built yet.\";\n stringArray0[4] = \"JRIP: No model built yet.\";\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n double[] doubleArray0 = new double[9];\n doubleArray0[0] = 537.63303;\n doubleArray0[1] = 537.63303;\n doubleArray0[2] = (-2276.33660783979);\n doubleArray0[3] = 537.63303;\n doubleArray0[4] = 537.63303;\n doubleArray0[6] = 537.63303;\n doubleArray0[7] = 537.63303;\n doubleArray0[8] = 537.63303;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(537.63303, doubleArray0);\n Attribute attribute0 = new Attribute(\"\", \"\", protectedProperties0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n boolean boolean0 = jRip_NumericAntd0.covers(binarySparseInstance0);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertTrue(boolean0);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n }", "title": "" }, { "docid": "28be998e001884a3e2013d9f8a115a5a", "score": "0.5658182", "text": "@Test(timeout = 4000)\n public void test093() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(15, 15);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(15, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(15, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(15, resultMatrixLatex0.getColCount());\n assertEquals(15, resultMatrixLatex0.getVisibleRowCount());\n assertNotNull(resultMatrixLatex0);\n \n int[] intArray0 = new int[2];\n intArray0[0] = 15;\n intArray0[1] = 2;\n resultMatrixLatex0.setColOrder(intArray0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(15, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(15, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(15, resultMatrixLatex0.getColCount());\n assertEquals(15, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, intArray0.length);\n assertArrayEquals(new int[] {15, 2}, intArray0);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n String string0 = resultMatrixSignificance0.toStringRanking();\n assertEquals(\"-ranking data not set-\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertNotNull(string0);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n resultMatrixLatex0.setRowOrder(intArray0);\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(15, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(15, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(15, resultMatrixLatex0.getColCount());\n assertEquals(15, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, intArray0.length);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertArrayEquals(new int[] {15, 2}, intArray0);\n \n int[] intArray1 = resultMatrixLatex0.getColOrder();\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(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(15, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\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 assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\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(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(15, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\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.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(15, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(15, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\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(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(15, resultMatrixLatex0.getColCount());\n assertEquals(15, resultMatrixLatex0.getVisibleRowCount());\n assertNull(intArray1);\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n }", "title": "" }, { "docid": "57714473dc6a0b2be85ea58e873359ff", "score": "0.5655631", "text": "@Test(timeout = 4000)\n public void test153() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.m_StdDevPrec = 0;\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n resultMatrixCSV0.m_ShowAverage = true;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixPlainText0.getDefaultCountWidth();\n resultMatrixPlainText0.rowNameWidthTipText();\n String[] stringArray0 = new String[7];\n stringArray0[0] = \" \";\n stringArray0[2] = \"value2\";\n stringArray0[4] = \"*\";\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n resultMatrixHTML0.getStdDev(2060, 2060);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(0, 0);\n resultMatrixCSV1.removeFilterName(\"\");\n resultMatrixCSV1.globalInfo();\n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex(2, (-2880));\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": "9e405aebefc9abf57303f95fae3fc78d", "score": "0.5655188", "text": "@Override\n\tpublic void covid19Test() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f4331dd38097add62cd2ae03dfaa3c33", "score": "0.56499493", "text": "@Test(timeout = 4000)\n public void test195() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.m_StdDevPrec = 0;\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n resultMatrixCSV0.m_ShowAverage = true;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixPlainText0.getDefaultCountWidth();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n resultMatrixLatex0.assign(resultMatrixPlainText0);\n resultMatrixLatex0.getSignificance(0, 2);\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.meanWidthTipText();\n int[] intArray0 = new int[9];\n intArray0[0] = 1;\n intArray0[1] = 1;\n intArray0[2] = 0;\n intArray0[3] = 2;\n intArray0[4] = 1;\n intArray0[6] = 2;\n intArray0[7] = 0;\n intArray0[8] = 1;\n resultMatrixLatex1.setColOrder(intArray0);\n ResultMatrixCSV resultMatrixCSV1 = null;\n try {\n resultMatrixCSV1 = new ResultMatrixCSV(47, (-3194));\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": "" } ]
6b73b93d88a93e0e76c7075b2b0c91aa
Parses the RMSURL.xml file (under src folder) and generates an easy to use Hashmap.
[ { "docid": "02dd2a2933b0fcf2e78fe4b37062ad88", "score": "0.79239655", "text": "public static HashMap<String, String> parseRMSURL() throws SAXException {\n\n HashMap<String, String> values = new HashMap<String, String>();\n File xmlFile = new File(getRMSTestingSrcFolder() + File.separator\n + \"RMS-URL.xml\");\n\n // File xmlFile = new File(\"src\" + File.separator + \"CMS-URL.xml\");\n\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n Document doc = null;\n try {\n doc = dBuilder.parse(xmlFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n doc.getDocumentElement().normalize();\n NodeList nameValuePairs = doc.getElementsByTagName(\"Variable\");\n Element node = null;\n Node nameNode = null, valueNode = null;\n for (int i = 0; i < nameValuePairs.getLength(); i++) {\n node = (Element) nameValuePairs.item(i);\n nameNode = node.getElementsByTagName(\"Name\").item(0);\n valueNode = node.getElementsByTagName(\"Value\").item(0);\n\n //values.put(nameNode.get getTextContent(), valueNode.getTextContent());\n values.put(valueNode.getNodeValue(), valueNode.getNodeValue());\n\n // System.out.println(\"Added: \" + nameNode.getTextContent() +\n // \" <-> \"\n // + valueNode.getTextContent());\n }\n return values;\n }", "title": "" } ]
[ { "docid": "dcb4a5821206c4066de61fc5c7881021", "score": "0.56483483", "text": "public static Map<String, String> parseXml(String xmlName,String testName) {\r\n\t\t\r\n\t\tMap<String, String> requestMap = new HashMap<String, String>();\r\n\t\t\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\ttry {\t\t\t\t\t\t\r\n\t\t\tInputStream f = GetResourceXML.class.getResourceAsStream(\"/\"+xmlName);\r\n\t\t\t\r\n\t\t\tDocument doc = reader.read(f);\r\n\t\t\tElement root = doc.getRootElement(); \t\t\t\t\t\t\t\t//get xml root ,getName() get root names\r\n\t\t\t\r\n\t\t\tfor(Object fo : root.elements(\"TEST\")){\t\t\t\t\t\t\t\t//cycle TEST element\r\n\t\t\t\tElement foo = (Element)fo;\r\n\t\t\t\t\r\n\t\t\t\tString xmlTestName = foo.attributeValue(\"testname\");\t\t\t//get testname\r\n\t\t\t\t\r\n\t\t\t\tif (testName.equals(xmlTestName)){\t\t\t\t\t\t\t\t// get test element\r\n\t\t\t\t\trequestMap.put(\"testname\", xmlTestName);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Object o :foo.elements()){\r\n\t\t\t\t\t\tElement e = (Element)o;\t\t\t\t\t\t\r\n\t\t\t\t\t\trequestMap.put(e.getName(), e.getText());\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.println(e.getName());\r\n\t\t\t\t\t\t//System.out.println(e.getText());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn requestMap;\r\n\t}", "title": "" }, { "docid": "ebcc83d47fe80605ba50be37dcc42fd9", "score": "0.54883236", "text": "public Map<String, String> getExternalSource();", "title": "" }, { "docid": "0e668424ddc1140c622593c43ad0450d", "score": "0.5427208", "text": "private static HashMap<String,String> parseXMLExternalResult(StringBuffer sb) throws Exception {\r\n\t\tHashMap<String,String> externalData = new HashMap<String,String>();\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db = dbf.newDocumentBuilder();\r\n InputSource is = new InputSource();\r\n is.setCharacterStream(new StringReader(sb.toString()));\r\n\r\n Document doc = db.parse(is);\r\n NodeList nodes = doc.getElementsByTagName(\"result\");\r\n\r\n // iterate through data\r\n for (int i = 0; i < nodes.getLength(); i++) {\r\n Element element = (Element) nodes.item(i);\r\n externalData.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\r\n }\r\n\t\treturn externalData;\r\n\t}", "title": "" }, { "docid": "54fa6ac9a8ef1512aabbebb47a8f9616", "score": "0.5393435", "text": "public Map<Locale, String> getWebsiteURLMap();", "title": "" }, { "docid": "aa93c34c0aa7cf64e65b8ddbc5b391a2", "score": "0.53686684", "text": "private Map<String, String> parseConfig(String filename) throws ParserConfigurationException, SAXException, IOException {\r\n \t\t\tSAXParserFactory spf = SAXParserFactory.newInstance(); // get a factory\r\n \t\t\tSAXParser sp = spf.newSAXParser(); // get a new instance of parser\r\n \t\t\tsp.parse(VFS.getManager().resolveFile(new File(\".\"), filename).getContent().getInputStream(), this); // parse the file and also register this class for call backs\r\n \t\t\treturn this.params;\r\n \t\t}", "title": "" }, { "docid": "66f39e0b5c22170dc27db9eb18c7492c", "score": "0.5326964", "text": "public static VersionMap getVersionMap(String manifestXMLUrlS)\n throws TException\n {\n try {\n VersionMap versionMap = VersionMap.getVersionMap(manifestXMLUrlS);\n return versionMap;\n \n } catch (Exception ex) {\n ex.printStackTrace();\n throw new TException(ex);\n }\n }", "title": "" }, { "docid": "0d7f51ae228896affe13f0b42e021251", "score": "0.53057677", "text": "private HashMap<String, String> loadConfigXMLFile(String filePath) throws LACSDException {\r\n\r\n\tHashMap<String, String> variableMap = new HashMap<String, String>();\r\n\ttry {\r\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder parser = factory.newDocumentBuilder();\r\n\t\tFile theFile = new File(filePath);\r\n\t\tif (!theFile.exists()) {\r\n\t\t\tthrow new Exception(\"Cannot find application config file! [\" + filePath + \"]\");\r\n\t\t}\r\n\t\tDocument document = parser.parse(theFile);\r\n\t\tNodeList xmlRoot = document.getElementsByTagName(CONFIG_FILE_TOP_LEVEL);\r\n\t\tfor (int i=0; i<xmlRoot.getLength(); i++) {\r\n\t\t\tNode rootNode = xmlRoot.item(i);\r\n\t\t\tNodeList attribs = rootNode.getChildNodes();\r\n\t\t\tfor (int j=0; j<attribs.getLength(); j++) {\r\n\t\t\t\tNode node = attribs.item(j);\r\n\t\t\t\tshort nodeType = node.getNodeType();\r\n\t\t\t\t// filter XML comment tags out of HashMap!\r\n\t\t\t\tif ((nodeType != Node.TEXT_NODE) && (nodeType != Node.COMMENT_NODE)) {\r\n\t\t\t\t\tvariableMap.put(node.getNodeName(),node.getFirstChild().getNodeValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tcatch (Exception e) {\r\n\t\tthrow new LACSDException(\"Could not load config XML file!\", e.fillInStackTrace());\r\n\t}\r\n\treturn variableMap;\r\n}", "title": "" }, { "docid": "e5744e895bedda83d1778410efb21d95", "score": "0.51848006", "text": "protected static Map<String, String> loadReferences(File xmlFile, DocumentBuilder documentBuilder) throws IOException, SAXException {\n\t\tMap<String, String> references = new LinkedHashMap<String, String>();\n\n\t\tDocument document = documentBuilder.parse(xmlFile);\n\t\tNode itemsNode = XmlUtils.findFirstChild(document, \"refs\");\n\n\t\tfor (Node itemNode : XmlUtils.findAllChildren(itemsNode, \"ref\")) {\n\t\t\tNode keyNode = itemNode.getAttributes().getNamedItem(\"key\");\n\t\t\tNode uuidNode = itemNode.getAttributes().getNamedItem(\"uuid\");\n\t\t\treferences.put(keyNode.getTextContent(), uuidNode.getTextContent());\n\t\t}\n\n\t\treturn references;\n\t}", "title": "" }, { "docid": "01f1ec4a379d987230e976a3500e3272", "score": "0.51628596", "text": "public static void InstantiateXMLFile() {\n try{\n String webRoot = sContext.getRealPath(\"\");\n\n File xmlFile = new File(webRoot + \"/\" + Constants.CONFIG_XML);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document doc = builder.parse(xmlFile);\n doc.getDocumentElement().normalize();\n\n NodeList Queries = doc.getElementsByTagName(Constants.XML_ROOT_NODE_QURIES);\n NodeList QueryList = Queries.item(0).getChildNodes();\n\n for(int i = 0; i < QueryList.getLength(); i++) {\n Node current = QueryList.item(i);\n //Only want stuff from ELEMENT nodes\n if(current.getNodeType() == Node.ELEMENT_NODE) {\n QueryParams.put(((Element) current).getAttribute(\"id\"), current.getTextContent());\n }\n }\n\n }catch (ParserConfigurationException | IOException| SAXException e){\n CatchException.Handle(e);\n }\n }", "title": "" }, { "docid": "ca2686e1b88443cf4a47f2a03eb53d14", "score": "0.51391333", "text": "@Override\n public Map<String, String> parseXmlToMap() throws IOException, XMLStreamException {\n logger.info(\"Method parseXmlToMap() was called\");\n Map<String, String> map = new HashMap<>();\n String val = EMPTY;\n String key = EMPTY;\n\n XMLInputFactory factory = XMLInputFactory.newInstance();\n Resource resource = resourceLoader.getResource(xsdLocation);\n XMLStreamReader parser = factory.createXMLStreamReader(resource.getInputStream());\n\n while (parser.hasNext()) {\n\n int event = parser.next();\n if (event == XMLStreamConstants.START_ELEMENT) {\n for (int i = 0; i < parser.getAttributeCount(); i++) {\n if (parser.getLocalName().equals(\"element\") && parser.getAttributeLocalName(i).equals(\"name\")) {\n key = parser.getAttributeValue(i);\n }\n }\n }\n\n if (event == XMLStreamConstants.CHARACTERS) {\n if (!parser.isWhiteSpace()) {\n val = parser.getText();\n if (map.get(key) != null) {\n val = map.get(key) + val;\n }\n map.put(key, val);\n }\n }\n }\n logger.info(\"Method parseXmlToMap()return: \" + map);\n\n return map;\n }", "title": "" }, { "docid": "a4b46f779d3a9117a2fef1c200fa1a4e", "score": "0.5094513", "text": "public static final HashMap readMapXml(InputStream in) {\n String className = \"com.android.internal.util.XmlUtils\";\n String methodName = \"readMapXml\";\n Class[] type = new Class[]{InputStream.class};\n Object[] parameters = new Object[]{in};\n return (HashMap) ReflectionUtils.invokeStaticMethod(className, methodName, type, parameters);\n }", "title": "" }, { "docid": "8b112ebe77fb946642e1a28a215dbd84", "score": "0.50797045", "text": "private Document getDocument(String currentUrl, ServletContext application) throws ParserConfigurationException, SAXException, IOException {\n\t\tString filepath = null;\n\t\t\n\t\tif (_useXRef) {\n\t\t\tfilepath = application.getRealPath(EMPTY_STRING) + findApplicationCrossReference(currentUrl);\n\t\t} else if (_overridePath != null && _overridePath.length() > 0) {\n\t\t\tfilepath = application.getRealPath(EMPTY_STRING) + _overridePath;\n\t\t}\n\t\telse {\n\t\t\tfilepath = application.getRealPath(currentUrl);\n\t\t\tint lastDelimiter = filepath.lastIndexOf(File.separator);\n\t\t\tif (lastDelimiter > -1) {\n\t\t\t\tfilepath = filepath.substring(0, lastDelimiter + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tStringBuilder contents = new StringBuilder();\n\t\tcontents.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\");\n\t\tcontents.append(\"<siteMap>\");\n\t\tcontents.append(xmlFromFile(filepath));\n\t\tcontents.append(\"</siteMap>\");\n\t\t\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\n\t\tInputSource inStream = new InputSource();\n\t\tinStream.setCharacterStream(new StringReader(contents.toString()));\n\t\tDocument doc = docBuilder.parse(inStream);\n\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "51ae6acb80c7435796be74893e5099a7", "score": "0.5078241", "text": "public static Map<String, String> getXmlFormCust() {\n Exception e;\n FileNotFoundException e2;\n XmlPullParserException e3;\n Throwable th;\n XmlPullParser xmlPullParser = null;\n Map<String, String> xmlpackages = new HashMap();\n File file = HwCfgFilePolicy.getCfgFile(CONFIG_FILE_PATH, 0);\n if (file == null || !file.exists()) {\n return null;\n }\n InputStream in;\n InputStream inputStream = null;\n try {\n in = new FileInputStream(file);\n try {\n xmlPullParser = Xml.newPullParser();\n xmlPullParser.setInput(in, \"utf-8\");\n while (true) {\n int xmlEventType = xmlPullParser.next();\n if (xmlEventType == 1) {\n break;\n } else if (xmlEventType == 2 && \"package\".equals(xmlPullParser.getName())) {\n String mPackage = xmlPullParser.getAttributeValue(null, \"name\");\n String type = xmlPullParser.getAttributeValue(null, \"type\");\n if (!\"\".equals(mPackage) && mPackage != null) {\n if (type != null) {\n if (!\"\".equals(type)) {\n xmlpackages.put(mPackage, type);\n }\n }\n xmlpackages.put(mPackage, \"0\");\n } else if (xmlPullParser != null) {\n try {\n ((KXmlParser) xmlPullParser).close();\n } catch (Exception e4) {\n Log.e(\"AppCloneUtils\", \"close XmlPullParser error, error msg: \" + e4.getMessage());\n e4.printStackTrace();\n }\n }\n }\n }\n if (xmlPullParser != null) {\n ((KXmlParser) xmlPullParser).close();\n }\n if (in != null) {\n try {\n in.close();\n } catch (IOException e5) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e5.getMessage());\n e5.printStackTrace();\n }\n }\n return xmlpackages;\n } catch (FileNotFoundException e6) {\n e2 = e6;\n inputStream = in;\n } catch (XmlPullParserException e7) {\n e3 = e7;\n inputStream = in;\n } catch (Exception e8) {\n e4 = e8;\n inputStream = in;\n } catch (Throwable th2) {\n th = th2;\n inputStream = in;\n }\n } catch (FileNotFoundException e9) {\n e2 = e9;\n try {\n Log.w(\"AppCloneUtils\", \"Error FileNotFound while trying to read from hw_clone_app_list\", e2);\n if (xmlPullParser != null) {\n try {\n ((KXmlParser) xmlPullParser).close();\n } catch (Exception e42) {\n Log.e(\"AppCloneUtils\", \"close XmlPullParser error, error msg: \" + e42.getMessage());\n e42.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e52) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e52.getMessage());\n e52.printStackTrace();\n }\n }\n return xmlpackages;\n } catch (Throwable th3) {\n th = th3;\n if (xmlPullParser != null) {\n try {\n ((KXmlParser) xmlPullParser).close();\n } catch (Exception e422) {\n Log.e(\"AppCloneUtils\", \"close XmlPullParser error, error msg: \" + e422.getMessage());\n e422.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e522) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e522.getMessage());\n e522.printStackTrace();\n }\n }\n throw th;\n }\n } catch (XmlPullParserException e10) {\n e3 = e10;\n Log.e(\"AppCloneUtils\", \"Error XmlPullParser while trying to read from hw_clone_app_list\", e3);\n if (xmlPullParser != null) {\n try {\n ((KXmlParser) xmlPullParser).close();\n } catch (Exception e4222) {\n Log.e(\"AppCloneUtils\", \"close XmlPullParser error, error msg: \" + e4222.getMessage());\n e4222.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e5222) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e5222.getMessage());\n e5222.printStackTrace();\n }\n }\n return xmlpackages;\n } catch (Exception e11) {\n e4222 = e11;\n Log.e(\"AppCloneUtils\", \"Error while trying to read from hw_clone_app_list\", e4222);\n if (xmlPullParser != null) {\n try {\n ((KXmlParser) xmlPullParser).close();\n } catch (Exception e42222) {\n Log.e(\"AppCloneUtils\", \"close XmlPullParser error, error msg: \" + e42222.getMessage());\n e42222.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e52222) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e52222.getMessage());\n e52222.printStackTrace();\n }\n }\n return xmlpackages;\n }\n if (in != null) {\n try {\n in.close();\n } catch (IOException e522222) {\n Log.e(\"AppCloneUtils\", \"close FileInputStram error, error msg: \" + e522222.getMessage());\n e522222.printStackTrace();\n }\n }\n return xmlpackages;\n return xmlpackages;\n }", "title": "" }, { "docid": "04801e76b54fe682029dbb85de0ebb36", "score": "0.50588256", "text": "public Map<Integer, String> getRsrcMap() {\r\n return rsrcMap;\r\n }", "title": "" }, { "docid": "bb456666c179d46bff77965f570fe709", "score": "0.49610037", "text": "public void GetURLInfo(String URL){\n try {\n String query2 = \"SELECT RANK FROM Documents WHERE URL = ?\";\n \n pstmt2 = c1.prepareStatement(query2);\n pstmt2.setString(1, URL);\n \n rs2 = pstmt2.executeQuery();\n \n while(rs2.next())\n {\n //Adds Url if new\n if(URL_URLINFO.get(URL) == null)\n URL_URLINFO.put(URL, rs2.getDouble(\"RANK\"));\n }\n } catch (SQLException ex) {\n }\n }", "title": "" }, { "docid": "a39f11022d1197c0bb410325cf9b8ac0", "score": "0.4960957", "text": "@Override\n protected Element parseXml(URL url) throws IOException {\n lastXmlUrl[0] = url;\n return null;\n }", "title": "" }, { "docid": "762775062aef628b6824540312d039bc", "score": "0.4931867", "text": "public static Map<String, String> readUrls(String file, int n) \n throws Exception {\n Map<String, String> hash = new HashMap<String, String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(\n new FileInputStream(file)));\n String line;\n int count = 0;\n while ((line = br.readLine()) != null) {\n count++; \n if( count > n ) break;\n int index = line.indexOf(':');\n hash.put( line.substring(0,index).trim(), \n line.substring(index+1).trim());\n }\n return hash;\n }", "title": "" }, { "docid": "cab0a3c5039e032bc657defb678b0293", "score": "0.49239042", "text": "private Map<String, RhqTask> readDocument() {\n\t\ttry {\n\t\t\t\n\t\t\tURL fXmlFile = Activator.getFileURL(RhqConstants.RHQ_MODEL_SOURCEFILE);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile.toString());\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tMap<String,RhqEntity> entities = new HashMap<>();\n\t\t\t//find all entities in file\n\t\t\tNodeList entity = doc.getElementsByTagName(\"entity\");\n\t\t\tfor(int i = 0; i != entity.getLength(); i++){\n\t\t\t\tRhqEntity currentEntity = new RhqEntity();\n\t\t\t\tElement elEntity = (Element) entity.item(i);\n\t\t\t\tcurrentEntity.setName(elEntity.getAttribute(\"name\"));\n\t\t\t\tSystem.out.println(currentEntity.getName());\n\t\t\t\tNodeList values = elEntity.getChildNodes();\n\t\t\t\tfor(int j = 0; j != values.getLength(); j++){\n\t\t\t\t\tif(values.item(j).getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t\t\tcurrentEntity.getValues().add(((Element)values.item(j)).getAttribute(\"name\"));\n\t\t\t\t}\n\t\t\t\tentities.put(currentEntity.getName(), currentEntity);\n\t\t\t}\n\t\t\t\n\t\t\t//find all replacement variables\n\t\t\tfReplacements = new ArrayList<>();\n\t\t\tNodeList replacements = doc.getElementsByTagName(\"replacemnet\");\n\t\t\tfor(int i = 0; i != replacements.getLength(); i++){\n\t\t\t\tif(replacements.item(i).getNodeType() == Node.ELEMENT_NODE){\n\t\t\t\t\tfReplacements.add(((Element)replacements.item(i)).getAttribute(\"name\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t\tMap<String, RhqTask> tasks = new HashMap<>();\n\t\t\tNodeList task = doc.getElementsByTagName(\"task\");\n\t\t\t// iterates over all tasks\n\t\t\tfor (int i = 0; i != task.getLength(); i++) {\n\t\t\t\tRhqTask currentTask = new RhqTask();\n\t\t\t\tNode node = task.item(i);\n\t\t\t\tElement taskHead;\n\t\t\t\ttaskHead = (Element) node;\n\t\t\t\tcurrentTask.setName(taskHead.getAttribute(\"name\"));\n\t\t\t\tcurrentTask.setPaired((taskHead.getAttribute(\"paired\")\n\t\t\t\t\t\t.equalsIgnoreCase(\"true\") ? true : false));\n\n\t\t\t\ttasks.put(currentTask.getName(), currentTask);\n\t\t\t\tNodeList taskChildren = taskHead.getChildNodes();\n\t\t\t\t// iterates over children of current task\n\t\t\t\tfor (int j = 0; j != taskChildren.getLength(); j++) {\n\n\t\t\t\t\tif (taskChildren.item(j).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tswitch (taskChildren.item(j).getNodeName()) {\n\t\t\t\t\t\tcase \"antparents\":\n\t\t\t\t\t\t\tNodeList antParents = taskChildren.item(j)\n\t\t\t\t\t\t\t\t\t.getChildNodes();\n\t\t\t\t\t\t\tSet<String> setAntParents = new HashSet<>();\n\t\t\t\t\t\t\tfor (int k = 0; k != antParents.getLength(); k++) {\n\t\t\t\t\t\t\t\tif (antParents.item(k).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\t\tElement name = (Element) antParents.item(k);\n\t\t\t\t\t\t\t\t\t//check whether can be in all ant tasks\n\t\t\t\t\t\t\t\t\tif(name.getAttribute(\"name\").equals(RhqConstants.RHQ_ALL_POSSIBLE_PARENTS)){\n\t\t\t\t\t\t\t\t\t\tcurrentTask.setCanBePlacedInAnyTask(true);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tsetAntParents.add(name.getAttribute(\"name\"));\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\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcurrentTask.setAntParents(setAntParents);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"attributes\":\n\t\t\t\t\t\t\tNodeList attributes = taskChildren.item(j)\n\t\t\t\t\t\t\t\t\t.getChildNodes();\n\t\t\t\t\t\t\tSet<RhqAttribute> setAttributes = new HashSet<>();\n\t\t\t\t\t\t\tfor (int k = 0; k != attributes.getLength(); k++) {\n\t\t\t\t\t\t\t\tRhqAttribute currentAttribute = new RhqAttribute();\n\t\t\t\t\t\t\t\tif (attributes.item(k).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\t\tElement el = (Element) attributes.item(k);\n\t\t\t\t\t\t\t\t\tcurrentAttribute.setName(el\n\t\t\t\t\t\t\t\t\t\t\t.getAttribute(\"name\"));\n\t\t\t\t\t\t\t\t\tcurrentAttribute.setRequired((el\n\t\t\t\t\t\t\t\t\t\t\t.getAttribute(\"required\")\n\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"true\") ? true\n\t\t\t\t\t\t\t\t\t\t\t: false));\n\t\t\t\t\t\t\t\t\tcurrentAttribute.setVisible((el\n\t\t\t\t\t\t\t\t\t\t\t.getAttribute(\"visible\")\n\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"true\") ? true\n\t\t\t\t\t\t\t\t\t\t\t: false));\n\t\t\t\t\t\t\t\t\tString entityName = el.getAttribute(\"entity\");\n\t\t\t\t\t\t\t\t\tcurrentAttribute.setEntity(entities.get(entityName));\n\t\t\t\t\t\t\t\t\tcurrentAttribute.setDescription(el\n\t\t\t\t\t\t\t\t\t\t\t.getTextContent());\n\t\t\t\t\t\t\t\t\tsetAttributes.add(currentAttribute);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcurrentTask.setAttributes(setAttributes);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"description\":\n\t\t\t\t\t\t\tcurrentTask.setDescription(taskChildren.item(j)\n\t\t\t\t\t\t\t\t\t.getTextContent());\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// complete parent and children references\n\t\t\tNodeList parents = doc.getElementsByTagName(\"parent\");\n\t\t\tfor (int parentIndex = 0; parentIndex != parents.getLength(); parentIndex++) {\n\t\t\t\tElement elParent = (Element) parents.item(parentIndex);\n\t\t\t\tif (elParent.getParentNode().getNodeName()\n\t\t\t\t\t\t.equalsIgnoreCase(\"rhqparents\")) {\n\t\t\t\t\tRhqTask parentTask = tasks.get(elParent\n\t\t\t\t\t\t\t.getAttribute(\"name\"));\n\t\t\t\t\tRhqTask descendentTask = tasks.get(((Element) elParent\n\t\t\t\t\t\t\t.getParentNode().getParentNode())\n\t\t\t\t\t\t\t.getAttribute(\"name\"));\n\t\t\t\t\tparentTask.getDescendents().add(descendentTask);\n\t\t\t\t\tdescendentTask.getParents().add(parentTask);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//add ant children\n\t\t\tNodeList nodes = doc.getElementsByTagName(\"antchild\");\n\t\t\tfor(int i = 0; i != nodes.getLength(); i++){\n\t\t\t\tRhqTask parentTask = tasks.get(((Element)nodes.item(i).getParentNode().getParentNode()).getAttribute(\"name\"));\n\t\t\t\tparentTask.getAntChildren().add(((Element)nodes.item(i)).getAttribute(\"name\"));\n\t\t\t}\n\n\t\t\treturn tasks;\n\n\t\t} catch (Exception e) {\n\t\t\tActivator.getLog().log(new Status(IStatus.WARNING,RhqConstants.PLUGIN_CORE_ID,\"RhqModel_4_6_0.readDocument \" + e.getMessage()));\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ff445a5e7a23accfd043c4700e9b4dc4", "score": "0.491217", "text": "private Map<String, String> xmlToStringMap(String xml) {\n Map<String, String> map = null;\n XNode mapNode = _xnodeParser.parse(xml);\n if (mapNode != null) {\n map = new Hashtable<String, String>();\n for (XNode item : mapNode.getChildren()) {\n map.put(item.getAttributeValue(\"id\"), item.getText());\n }\n }\n return map; \n }", "title": "" }, { "docid": "80dfa72bfb70395e86d9ee3a87a39347", "score": "0.48711187", "text": "public URL getMapFile ()\r\n {\r\n return mapFile;\r\n }", "title": "" }, { "docid": "8565362674fec5208328dce096412c31", "score": "0.48630106", "text": "Map<String, Object> parseMap(InputStream source);", "title": "" }, { "docid": "ad641f2c269b50d22c6cc7a0eaec5b9a", "score": "0.48542693", "text": "public void loadConfigurationFromFile()\r\n\t{\r\n\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\r\n\t\tFile configFile = new File(\"config.xml\");\r\n\t\t\r\n\t\tif(!configFile.exists()) createDefaultConfigurationFile();\r\n\t\t\r\n\t\ttry \r\n\t\t{ \r\n\t\t\tDocument document = builder.build(configFile);\r\n\t\t\tElement rootNode = document.getRootElement();\r\n\t\t\t\r\n\t\t\turl = rootNode.getChildText(\"url\");\r\n\t\t\t\r\n\t\t\t//Checks the arch of the OS for the proper library path\r\n\t\t\tif(System.getProperty(\"sun.arch.data.model\").equals(\"64\"))\r\n\t\t\t{\r\n\t\t\t\tlibLocation = rootNode.getChildText(\"vlcLibPath64bit\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlibLocation = rootNode.getChildText(\"vlcLibPath32bit\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdefaultUsername = rootNode.getChildText(\"defaultUsername\");\r\n\r\n\t \r\n\t\t } \r\n\t\t catch (IOException io) \r\n\t\t {\r\n\t\t\tSystem.out.println(io.getMessage());\r\n\t\t } \r\n\t\t catch (JDOMException jdomex) \r\n\t\t {\r\n\t\t\tSystem.out.println(jdomex.getMessage());\r\n\t\t }\r\n\t}", "title": "" }, { "docid": "059471d6668d4e773bbe0f54a79a456e", "score": "0.48470697", "text": "private void loadXslFileHash() throws IOException \n\t{\n\t\tfXSLHash = new Hashtable<String, String>();\n\t\tFile xslDir = new File(fXSLPath);\n\t\tArrayList<File> xslFiles = getAllXslFiles(new ArrayList<File>(), xslDir);\n\t\tListIterator<File> itr = xslFiles.listIterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tFile file = itr.next();\n\t\t\tString filename = file.getName();\n\t\t\tString key = filename.substring(0, filename.indexOf(\".\")).toLowerCase();\n\t\t\tString value = file.getAbsolutePath();\n\t\t\tfXSLHash.put(key, value);\n\t\t}\n\t}", "title": "" }, { "docid": "bd71d89627645109f70177d90ca96b64", "score": "0.48431063", "text": "default void parseWMOXml() {\n\t\ttry (InputStream is = new FileInputStream(getRegisterFileName())) {\n\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\n\t\t\t// this.getClass().getResourceAsStream(registerFileName);\n\t\t\tDocument doc = docBuilder.parse(is);\n\n\t\t\t// normalize text representation\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\t// Create XPathFactory object\n\t\t\tXPathFactory xpathFactory = XPathFactory.newInstance();\n\n\t\t\t// Create XPath object\n\t\t\tXPath xpath = xpathFactory.newXPath();\n\n\t\t\tXPathExpression expr = xpath.compile(xpathToConcept); // \"/RDF/RegisterItem/register/Register/member/Concept\");\n\n\t\t\tNodeList listOfElements = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);// root.getElementsByTagName(\"member\");\n\t\t\tint totalElements = listOfElements.getLength();\n\t\t\tregisterLogger\n\t\t\t\t\t.debug(String.format(\"Total members in register %s: %d\", this.getClass().getName(), totalElements));\n\n\t\t\tfor (int i = 0; i < listOfElements.getLength(); i++) {\n\n\t\t\t\tNode currentNode = listOfElements.item(i);\n\t\t\t\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tString wmoCode = \"\";\n\t\t\t\t\tString wmoUrl = \"\";\n\t\t\t\t\tString bufrUrl = \"\";\n\t\t\t\t\tString description = \"\";\n\t\t\t\t\tString label = \"\";\n\n\t\t\t\t\tElement concept = (Element) currentNode;\n\t\t\t\t\twmoUrl = concept.getAttribute(\"rdf:about\");\n\n\t\t\t\t\tNodeList notationList = concept.getElementsByTagName(\"skos:notation\");\n\t\t\t\t\tif (notationList != null && notationList.getLength() > 0) {\n\t\t\t\t\t\tElement notation = (Element) notationList.item(0);\n\t\t\t\t\t\twmoCode = notation.getTextContent();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// extract code from url if notation is absent\n\t\t\t\t\tif (wmoCode.isEmpty()) {\n\t\t\t\t\t\tint lastSlashIndex = wmoUrl.lastIndexOf(\"/\");\n\t\t\t\t\t\twmoCode = wmoUrl.substring(lastSlashIndex + 1);\n\t\t\t\t\t}\n\n\t\t\t\t\tNodeList bufrList = concept.getElementsByTagName(\"skos:related\");\n\t\t\t\t\tif (bufrList != null && bufrList.getLength() > 0) {\n\t\t\t\t\t\tElement bufr = (Element) bufrList.item(0);\n\t\t\t\t\t\tbufrUrl = bufr.getAttribute(\"rdf:resource\");\n\n\t\t\t\t\t}\n\n\t\t\t\t\tNodeList descriptionList = concept.getElementsByTagName(\"dct:description\");\n\t\t\t\t\tif (descriptionList != null && descriptionList.getLength() > 0) {\n\t\t\t\t\t\tfor (int index = 0; index < descriptionList.getLength(); index++) {\n\t\t\t\t\t\t\tElement descr = (Element) descriptionList.item(index);\n\t\t\t\t\t\t\tString xmlLang = descr.getAttribute(\"xml:lang\");\n\t\t\t\t\t\t\tif (xmlLang.equalsIgnoreCase(getLocale().getLanguage())) {\n\t\t\t\t\t\t\t\tdescription = descr.getTextContent();\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\tif (description.isEmpty()) {\n\t\t\t\t\t\t\tElement descr = (Element) descriptionList.item(0);\n\t\t\t\t\t\t\tdescription = descr.getTextContent();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tNodeList labelList = concept.getElementsByTagName(\"rdfs:label\");\n\t\t\t\t\tif (labelList != null && labelList.getLength() > 0) {\n\t\t\t\t\t\tfor (int index = 0; index < labelList.getLength(); index++) {\n\t\t\t\t\t\t\tElement lab = (Element) labelList.item(index);\n\t\t\t\t\t\t\tString xmlLang = lab.getAttribute(\"xml:lang\");\n\t\t\t\t\t\t\tif (xmlLang.equalsIgnoreCase(getLocale().getLanguage())) {\n\t\t\t\t\t\t\t\tlabel = lab.getTextContent();\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\tif (label.isEmpty()) {\n\t\t\t\t\t\t\tElement lab = (Element) labelList.item(0);\n\t\t\t\t\t\t\tlabel = lab.getTextContent();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (wmoCode.length() > 0)\n\t\t\t\t\t\tputToContent(wmoCode, new WMORegisterDescription(wmoUrl, description, bufrUrl, label));\n\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SAXParseException err) {\n\t\t\tregisterLogger.error(\"Error in parsing \", err);\n\t\t} catch (SAXException e) {\n\t\t\tregisterLogger.error(\"SAX Exception\", e);\n\t\t} catch (Throwable t) {\n\t\t\tregisterLogger.error(\"Unknown error\", t);\n\t\t}\n\n\t}", "title": "" }, { "docid": "d4f938742a3a56d901010853e59afd5a", "score": "0.48231804", "text": "public HashMap<String, String> getResDomains();", "title": "" }, { "docid": "043b4946cf3b4ae20cc0fb49e502bd70", "score": "0.4819922", "text": "private void calculateURI(Element link){ //throws URISyntaxException{\n \ttry{\n Date date = new Date(Long.parseLong(link.attr(\"data-d\")));\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n String url_string = \"http://stats.grok.se/json/en/\" + cal.get(Calendar.YEAR) + (cal.get(Calendar.MONTH) + 1) + \"/\" + link.attr(\"data-t\");\n try{\n uri = new URI(url_string.replace(\" \", \"%20\"));\n }\n catch(URISyntaxException se){\n se.printStackTrace(pw);\n }\n \t}\n \tcatch(NumberFormatException nfe){\n \t nfe.printStackTrace(pw);\n \t}\n }", "title": "" }, { "docid": "21fe383bcbc25f293178c6130e05ec01", "score": "0.4799701", "text": "public HashMap<String, LinkAnchor> readLinkAnchorFromFile(String file){\n\t\tHashMap<String, LinkAnchor> hmLinkAnchor = new HashMap<String, LinkAnchor>(); \n\t\tFileInputStream fstream;\n\t\ttry {\n\t\t\tfstream = new FileInputStream(file);\n\t\t\tDataInputStream in = new DataInputStream(fstream);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in, \"UTF8\"));\n\t\t\t\n\t\t\tString strLine;\n\t\t\twhile ((strLine = br.readLine()) != null){\n\t\t\t\t\t//strLine = strLine.replaceAll(\"\\\\|\\t\", \"|\").replaceAll(\"\\\\[\\\\[\\t\", \"[[\");\t\t//this should not be here - problem is probably in named LinkAnchor\n\t\t\t\t\t//strLine = strLine.replaceAll(\"\\\\]\\\\]\", \"]]]]\");\n\t\t\t\t\t//String[] sSplit = strLine.split(\"]]\\t\");\n\t\t\t\t\tString[] sSplit = strLine.split(\"\\t\");\n\t\t\t\t\tLinkAnchor pomLA = new LinkAnchor(sSplit[0].trim());\n\t\t\t\t\t\n\t\t\t\t\tif(sSplit.length>2){\n\t\t\t\t\t\tSystem.out.println(sSplit.length);\n\t\t\t\t\t\tSystem.out.println(strLine);\n\t\t\t\t\t}\n\n\t\t\t\t\tpomLA.setOccurrence(Integer.parseInt(sSplit[1]));\n\t\t\t\t\thmLinkAnchor.put(pomLA.getLink()+pomLA.getAnchor(), pomLA);\t\t\t\t\t\n\t\t\t}\t\t\n\t\t\tbr.close();\n\t\t\tin.close();\n\t\t\tfstream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException 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\treturn hmLinkAnchor;\n\t}", "title": "" }, { "docid": "d72020ef152c26301109c17021f3703f", "score": "0.4791981", "text": "private void loadFromFile()\r\n\t{\r\n\t\ttry {\r\n\t\t\tFileInputStream input = new FileInputStream(m_propertiesFile);\r\n\t\t\t//Using factory get an instance of document builder\r\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\t//parse using builder to get DOM representation of the XML file\r\n\t\t\tDocument dom = db.parse(input);\r\n\t\t\t\r\n\t\t\t//get the root element\r\n\t\t\tElement docEle = dom.getDocumentElement();\r\n\t\t\tNodeList children = docEle.getChildNodes();\r\n\t\t\tfor (int i = 0; i < children.getLength(); i++ )\r\n\t\t\t{\r\n\t\t\t\tElement child = (Element) children.item(i);\r\n\t\t\t\tString name = child.getNodeName();\r\n\t\t\t\tString value = child.getTextContent();\r\n\t\t\t\tm_propertiesMap.put(new QualifiedName(null, name), value);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "40842c65dc3f6e09a3a63bc10cf9f7b7", "score": "0.4787796", "text": "public void readMappingFile(File source) throws Exception {\n\t\tDocument doc = Dom4jUtils.getXmlDocument(source);\n\t\tList mappings = doc.selectNodes(\"//mapping\");\n\t\tString fileName = source.getName();\n\t\t// prtln (\"\\nreading \" + fileName);\n\t\tString subject = source.getName().substring(0, fileName.length() - 4);\n\t\t// prtln (mappings.size() + \" mappings found\");\n\t\tfor (Iterator i = mappings.iterator(); i.hasNext(); ) {\n\t\t\tElement mapping = (Element) i.next();\n\t\t\tXPath acsrXpath = DocumentHelper.createXPath(\"acsrInfo/@id\");\n\t\t\tString acsrId = acsrXpath.valueOf(mapping);\n\t\t\tXPath asnXpath = DocumentHelper.createXPath(\"asnInfo/@id\");\n\t\t\tString asnId = asnXpath.valueOf(mapping);\n\t\t\t// prtln (acsrId + \" -> \" + asnId);\n\t\t\tthis.asnIdMap.put(asnId, acsrId);\n\t\t\tthis.acsrIdMap.put(acsrId, asnId);\n\t\t}\n\t}", "title": "" }, { "docid": "59a598a6e13c33ed0fa9752b7de55c85", "score": "0.47864333", "text": "public void parse(String feedurl) {\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n URL url = new URL(feedurl);\r\n Document doc = builder.parse(url.openStream());\r\n NodeList nodes = null;\r\n Node element = null;\r\n /**\r\n * Titre du flux\r\n */\r\n nodes = doc.getElementsByTagName(\"channel\");\r\n Node node = doc.getDocumentElement();\r\n System.out.println(\"Flux RSS: \" + this.readNode(node, \"channel|title\"));\r\n System.out.println();\r\n /**\r\n * Elements du flux RSS\r\n **/\r\n \r\n // enregistrer dans un fichier \r\n \t\t PrintWriter out = new PrintWriter (\"doc-copie.txt\");\r\n \t\r\n nodes = doc.getElementsByTagName(\"item\");\r\n for (int i = 0; i < nodes.getLength(); i++) {\r\n element = nodes.item(i);\r\n \r\n System.out.println(\"Titre: \" + readNode(element, \"title\"));\r\n out .println(\"Titre: \" + readNode(element, \"title\")) ;\r\n \r\n System.out.println(\"Lien: \" + readNode(element, \"link\"));\r\n out .println(\"Lien: \" + readNode(element, \"link\")) ;\r\n \r\n System.out.println(\"Description: \" + readNode(element, \"description\"));\r\n out .println(\"Description: \" + readNode(element, \"description\")) ;\r\n \r\n \r\n \r\n // extraction du lien de la source principale\r\n String s =readNode(element, \"link\");\r\n int j =0;\r\n int compte=0;\r\n while(compte<3){\r\n \tif(s.charAt(j)=='/')\r\n \t\tcompte=compte+1;\r\n \tj=j+1;\t\r\n }\r\n \t\r\n System.out.println(\"Source: \" + s.substring(0, j-1));\r\n out .println(\"Source: \" + s.substring(0, j-1));\r\n \r\n out .println(\"Date de publication: \" + readNode(element, \"pubDate\")) ;\r\n System.out .println(\"Date de publication: \" + readNode(element, \"pubDate\")) ;\r\n \r\n System.out.println();\r\n }\r\n \r\n \r\n \tout . close ();\r\n } catch (SAXException ex) {\r\n \t System.out.println(\"erreur\");\r\n } catch (IOException ex) {\r\n \t System.out.println(\"erreur\");\r\n } catch (ParserConfigurationException ex) {\r\n System.out.println(\"erreur\");\r\n }\r\n }", "title": "" }, { "docid": "1dabbd21fc7dafc6e9829b41f9c0a43e", "score": "0.47853827", "text": "private void extractEntry(URL sourceName) throws IOException {\n \t\tZipInputStream zis = null;\n \t\tzis = new ZipInputStream(sourceName.openStream());\n \t\tnetworkURLs = new HashMap();\n \n \t\t// Extract list of entries\n \t\tZipEntry zen = null;\n \t\tString entryName = null;\n \t\twhile ((zen = zis.getNextEntry()) != null) {\n \n \t\t\tentryName = zen.getName();\n \t\t\tif (entryName.endsWith(XML_EXT)) {\n \t\t\t\tcysessionFileURL = new URL(\"jar:\" + sourceName.toString()\n \t\t\t\t\t\t+ \"!/\" + entryName);\n \t\t\t} else if (entryName.endsWith(\"vizmap.props\")) {\n \t\t\t\tvizmapFileURL = new URL(\"jar:\" + sourceName.toString() + \"!/\"\n \t\t\t\t\t\t+ entryName);\n \t\t\t} else if (entryName.endsWith(\"cytoscape.props\")) {\n \t\t\t\tcytoscapePropsURL = new URL(\"jar:\" + sourceName.toString()\n \t\t\t\t\t\t+ \"!/\" + entryName);\n \t\t\t} else if (entryName.endsWith(XGMML_EXT)) {\n \t\t\t\tURL networkURL = new URL(\"jar:\" + sourceName.toString() + \"!/\"\n \t\t\t\t\t\t+ entryName);\n \t\t\t\tnetworkURLs.put(entryName, networkURL);\n \t\t\t}\n \t\t}\n \t\tzis.close();\n \t}", "title": "" }, { "docid": "e51dccc8dc62d5b8ff06407252ac448e", "score": "0.47783154", "text": "Map<String,URI> getNamespaces();", "title": "" }, { "docid": "a91d52e052983a154e23e31fdf4e22f7", "score": "0.47590682", "text": "private static Map<String,Rule> loadRules(String resourceName) {\n logger.log(Level.FINEST, \"resourceName: [{0}]\", resourceName);\n Map<String,Rule> result = null;\n\n InputStream is = PublicSuffixes.class.getResourceAsStream(resourceName);\n if (is != null) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n result = loadRules(reader);\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unexpected error\", ex);\n } finally {\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unexpected error\", ex);\n }\n }\n } else {\n logger.log(Level.WARNING, \"Resource not found: [{0}]\",\n resourceName);\n }\n\n result = result != null\n ? Collections.unmodifiableMap(result)\n : Collections.<String,Rule>emptyMap();\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FINEST, \"result: {0}\", toLogString(result));\n }\n return result;\n }", "title": "" }, { "docid": "a5f1e0a43a59817496ca2f67e47ef1fd", "score": "0.4750183", "text": "@Override\r\n\tprotected String doInBackground(String... params) {\n\t\tmyParser = new XMLParser();\r\n\t\t\r\n\t//\tLog.d(\"return myParser.getXmlFromUrl(URL): \",\"return myParser.getXmlFromUrl(URL):\"+ myParser.getXmlFromUrl(URL));\r\n\t\t\r\n\t\treturn myParser.getXmlFromUrl(StaticString.XML_URL);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1b28e4fc52a45dbab706b5680f31342a", "score": "0.4739906", "text": "public static HashMap<String,List<String>> getProductInfo(String url) throws IOException{\n\t\tHashMap<String,List<String>> results = new HashMap<String,List<String>>();\n\t\t\n\n\t InputStream is = null;\n\t BufferedReader br;\n\t String line;\n\t try {\n\t URL url2 = new URL(url);\n\t is = url2.openStream(); // throws an IOException\n\t br = new BufferedReader(new InputStreamReader(is));\n\t \n\t while ((line = br.readLine()) != null) {\n\t if(line.contains(\"<title>\")){\n\t \t//matches title\n\t \t//remove formatting html\n\t \tline = Jsoup.parse(line).text();\n\t \t\tresults.put(\"DESC_EN\",new ArrayList(Arrays.asList(line.replaceAll(\" | AST Bearings\", \"\")) ));\t\t\n\t }\n\t else if(line.contains(\"cds-al_\")){\n\t \tline = Jsoup.parse(line).text();\n\t \t//technical data\n\t \tString attributeName = Jsoup.parse(line).text().replace(\"\\u00a0\", \"\");\n\t \t//read next lines to get data value\n\t \tbr.readLine();\n\t \tString attributeValue = Jsoup.parse(line).text().replace(\"\\u00a0\", \"\");\n\t \t//System.out.println(attributeName+\" : \"+ attributeValue);\n\t \tresults.put(attributeName, new ArrayList(Arrays.asList(attributeValue)));\n\t }\n\t }\n\t } catch (MalformedURLException mue) {\n\t throw mue;\n\t } catch (IOException ioe) {\n\t throw ioe;\n\t } finally {\n\t try {\n\t if (is != null) is.close();\n\t } catch (IOException ioe) {\n\t // nothing to see here\n\t }\n\t }\n\t return results;\n\t}", "title": "" }, { "docid": "f21dd8c57fe3213a79180e08a1c98d46", "score": "0.47148842", "text": "private void loadDictionary() throws IOException, SAXException, ParserConfigurationException\r\n\t{\r\n\t\t//System.err.println(\"loading dictionary: \" + filename);\r\n\t\tif(this.filename == null) throw new IOException(\"Dictionary file name can not be null!\");\r\n\t\t\r\n\t\tURL url = new URL(dictionaryBaseURL + \"/\" + this.filename);\r\n\t\tURLConnection urlcon = url.openConnection();\r\n\t\tBufferedInputStream xml = new BufferedInputStream(\r\n\t\t\turlcon.getInputStream()\r\n\t\t);\r\n\t\t\r\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\tfactory.setNamespaceAware(false);\r\n\t\tfactory.setValidating(false);\r\n\t\tXMLReader xmlReader = factory.newSAXParser().getXMLReader();\r\n\t\t\r\n\t\t//setup the content handler and give it the maps for tags and functions\r\n\t\txmlReader.setContentHandler(\r\n\t\t\tnew DictionaryContentHandler(syntaxelements,functions,scopeVars, scopes)\r\n\t\t);\r\n\t\t\r\n\t\tInputSource input = new InputSource(xml);\r\n\t\t//System.err.println(\"sid: \" + url.toString() );\r\n\t\tinput.setSystemId(url.toString());\r\n\t\t\r\n\t\txmlReader.parse(input);\r\n\t}", "title": "" }, { "docid": "0141226b26b8bcb402603f77298f1c4c", "score": "0.4699678", "text": "private static HashMap<String, Location> getLocations(final Document doc) {\n // create time layouts\n final NodeList locationNodes = doc.getElementsByTagName(\"location\");\n final HashMap<String, Location> locations = new HashMap<String, Location>();\n for (int i = 0; i < locationNodes.getLength(); ++i) {\n final Location location = new Location((Element) locationNodes.item(i));\n locations.put(location.getKey(), location);\n }\n return locations;\n }", "title": "" }, { "docid": "57db00e7a1206dd3af8090cb58cb7959", "score": "0.46912518", "text": "public void loadExternalTargetReferences(){\n\n int status=0;\n String dir = ManageProperties.loadPropertyValue(\"externalproperties\");\n\n //println(dir);\n //println(dir+File.separator+\"OMHT_external_matches_phase_1.cfg\");\n\n try(BufferedReader br = new BufferedReader(new FileReader(dir+File.separator+\"OMHT_external_matches_phase_1.cfg\"))) {\n\n //println(\"Entrou qui....\");\n\n String line = br.readLine();\n String[] content = new String[12];\n CurationEntity er;\n // exclude hearder\n line = br.readLine();\n String property = \"\";\n\n while (line != null) {\n content = line.split(\";\");\n // this due the lack of value on the last column\n if(content.length<13){\n property = \"\";\n }else{\n property = content[12];\n }\n //println(\"-->\"+line+\"<--\");\n er = new CurationEntity(content[0],content[1],content[2],content[3],0,content[5],content[6],content[7],content[8],content[9],content[10],Integer.parseInt(content[11]),property);\n\n //println(\"CURATED_TARGETS: \"+content[0]+\" - \"+content[1]+\" - \"+content[2]+\" - \"+content[3]+\" - \"+\"0\"+\" - \"+content[5]+\" - \"+content[6]+\" - \"+content[7]+\" - \"+content[8]+\" - \"+content[9]+\" - \"+content[10]+\" - \"+content[11]+\" - \"+property);\n\n if(er.getStatus()>0){\n er.setCounter(Integer.parseInt(content[4]));\n }\n // TODO ATTENTION TO THIS LOWERCASE\n externalTargetReferenceHashMap.put(content[1].toLowerCase(),er);\n line = br.readLine();\n }\n\n } catch (IOException e) {\n errorLogger.error(\"Error trying to load external target references txt file located in: \"+dir+\" message:\"+e.getMessage());\n }\n println(\"External target curated references loaded: \"+externalTargetReferenceHashMap.size()+\" valid targets\");\n }", "title": "" }, { "docid": "b02d1fdb3cb55ef4c7c47253d6fd8cf2", "score": "0.46902233", "text": "public static void analyzeURLs() {\n Iterator<String> iterator = Main.possibleURLs.iterator();\n String final_url = null;\n while (iterator.hasNext()) {\n String url = iterator.next();\n String replace_url = url.substring(url.indexOf(\"/www\") + 1);\n final_url = \"/\" + replace_url;\n System.out.println(\"-> Locating file: \" + final_url);\n }\n // Now we have the URL, we have to search for the possible index file in the directory\n File f = new File(Main.html_assets_dir + final_url);\n if (f.exists() && !f.isDirectory()) {\n //Now we must remove all jquery script lines to a new index.html (to prevent infinite looping during callgraph creation)\n removeMisclleanous(f.getAbsolutePath());\n try {\n //Create HTML callgraph on the new html file\n createHTMLCallGraph(Main.index_html_file);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (CancelException e) {\n e.printStackTrace();\n } catch (WalaException e) {\n e.printStackTrace();\n }\n } else {\n System.out.println(\"-> File: \" + final_url + \" not found\");\n System.out.println(\"-> Anaylsis failed //terminating\");\n System.exit(0);\n }\n }", "title": "" }, { "docid": "a0c79f0e920ca4c1a1ce00d831e439bd", "score": "0.46832752", "text": "String getLinkedUmlResource();", "title": "" }, { "docid": "e07f2760fad0a204b0fa996b71f516df", "score": "0.4674844", "text": "Map<String, Map> getSiteMap();", "title": "" }, { "docid": "f0112435a123305cfc446f59a1791de4", "score": "0.46654734", "text": "Iterator<URL> getResources(String name);", "title": "" }, { "docid": "054170144c99fda6bef408eb0ed02674", "score": "0.46629032", "text": "public static Map<String, String> translate(ServiceContext context, String type, String key) throws JDOMException, IOException {\n Path appPath = context.getAppPath();\n XmlCacheManager cacheManager = context.getXmlCacheManager();\n Path loc = appPath.resolve(\"loc\");\n String typeWithExtension = \"xml\"+File.separator+type+\".xml\";\n Map<String, String> translations = new HashMap<String, String>();\n try (DirectoryStream<Path> paths = Files.newDirectoryStream(loc)) {\n for (Path path : paths) {\n if(Files.isDirectory(path) && Files.exists(path.resolve(typeWithExtension))) {\n final String filename = path.getFileName().toString();\n Element xml = cacheManager.get(context, true, loc, typeWithExtension, filename, filename);\n String translation = Xml.selectString(xml, key);\n if(translation != null && !translation.trim().isEmpty()) {\n translations.put(filename, translation);\n }\n }\n }\n }\n\n return translations;\n }", "title": "" }, { "docid": "b9dbaca6837ddd0160d3f6cc34726002", "score": "0.46570787", "text": "private ParkLocation loadXmlFromNetwork(String urlString)\n throws XmlPullParserException, IOException {\n InputStream stream = null;\n ParkLocation parkLoc;\n\n try {\n stream = downloadUrl(urlString);\n parkLoc = MetersXMLParser.parse(stream);\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n return parkLoc;\n }", "title": "" }, { "docid": "cd6c573548c30fb59beb4307bc517c80", "score": "0.46565783", "text": "Map<String, String[]> getTaglibMap(WebModule wm) throws IOException;", "title": "" }, { "docid": "d7fd8bb736548e960f39e231603a3a4b", "score": "0.46432227", "text": "@Override\n protected ParkLocation doInBackground(String... urls) {\n\n ParkLocation temp = null;\n try {\n temp = loadXmlFromNetwork(urls[0]);\n } catch (IOException e) {\n Log.e(\"ERROR: \", context.getResources().getString(R.string.connection_error));\n } catch (XmlPullParserException e) {\n Log.e(\"ERROR: \", context.getResources().getString(R.string.xml_error));\n }\n return temp;\n }", "title": "" }, { "docid": "9c6098a8c6e62573be86bd312d77c3ef", "score": "0.4625143", "text": "public NSDictionary<String, String> links()\n {\n return null;\n }", "title": "" }, { "docid": "b827822d223331726bdcd7c35986869f", "score": "0.4620394", "text": "public IHttpRequestResponse[] getSiteMap(String urlPrefix);", "title": "" }, { "docid": "ff44067b4f94c28e064c395328e42211", "score": "0.46103477", "text": "public static Map<String, String> getServerConfiguration(File file){\n\t\tpluginLog(\"getServerConfiguration:\"+file.getAbsolutePath());\n\t\tDocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\n\t\tdomFactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder;\n\t\tMap<String, String> serverValues = null;\n\t\t\n\t\ttry {\n\t\t\tbuilder = domFactory.newDocumentBuilder();\n\t\t\tDocument document = builder.parse(file);\n\t\t\tdocument.getDocumentElement ().normalize ();\n\t\t\tNodeList nodelist = document.getElementsByTagName(\"server\");\n\t\t\t\n\t\t\tfor(int i=0; i< nodelist.getLength(); i++){\n\t\t\t\tElement elElmnt = (Element) nodelist.item(i);\n\t\t\t\tString serverType = elElmnt.getAttribute(\"baseServerName\");\n\t\t\t\t if(\"WebSphere_Portal\".equals(serverType)){\n\t\t\t\t\t serverValues = new HashMap<String,String>();\n\t\t\t\t\t serverValues.put(\"webSphereProfileName\", elElmnt.getAttribute(\"webSphereProfileName\"));\n\t\t\t\t\t serverValues.put(\"portal.installLocation\", elElmnt.getAttribute(\"portal.installLocation\"));\n\t\t\t\t\t return serverValues;\n\t\t\t\t }\n\t\t\t}\n\t\t\tthrow new PluginException(\"First add a Portal Server to the workspace (missing configuration)\");\n\t\t} catch (SAXException e) {\n\t\t\tthrow new PluginException(\"Error getting the WAS Location\",e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tthrow new PluginException(\"Error getting the WAS Location\",e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new PluginException(\"Error getting the WAS Location\",e);\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "4e9a2596cd096f6cbb67d3c2702f1bb7", "score": "0.46030772", "text": "public void loadProperties() {\n Pattern pattern = Pattern.compile(\"rss_feed_\\\\d+\");\n feedsLinks = propertiesContainer.getProperties().stringPropertyNames().stream()\n .filter(key -> pattern.matcher(key).matches())\n .collect(Collectors.toMap(\n key -> propertiesContainer.getProperties().getProperty(key),\n key -> Integer.valueOf(key.replace(\"rss_feed_\", \"\"))));\n\n feedsLinks = new LinkedHashMap<>(feedsLinks);\n }", "title": "" }, { "docid": "cc3f20f026cd19183a2eb7e50f74cd7c", "score": "0.4591504", "text": "public List<MLetContent> parseURL(String urlname) throws IOException {\n // Parse the document\n //\n URL url;\n if (urlname.indexOf(':') <= 1) {\n String userDir = System.getProperty(\"user.dir\");\n String prot;\n if (userDir.charAt(0) == '/' ||\n userDir.charAt(0) == File.separatorChar) {\n prot = \"file:\";\n } else {\n prot = \"file:/\";\n }\n url =\n new URL(prot + userDir.replace(File.separatorChar, '/') + \"/\");\n url = new URL(url, urlname);\n } else {\n url = new URL(urlname);\n }\n // Return list of parsed MLets\n //\n return parse(url);\n }", "title": "" }, { "docid": "c9410adb2891d9d0ebda7176983a6f3a", "score": "0.45834997", "text": "private static void parserURL()\n\t\t\tthrows UnsupportedEncodingException, IOException {\n\t\tFileInputStream fin = new FileInputStream(\"out.txt\");\n\n\t\tbyte[] b = new byte[fin.available()];\n\t\tSystem.out\n\t\t\t\t.println(\"开始---------------------------------------------------\");\n\t\tString urlcontent = new String(\"\");\n\t\twhile ((fin.read(b)) != -1) {\n\t\t\turlcontent += new String(b, \"Utf-8\");\n\t\t\t// String regex =\n\t\t\t// \"<[aA][^>]*href=(\\\"([^\\\"]*)\\\"|\\'([^\\']*)\\'|([^\\\\s>]*))[^>]*>(.*?)</[aA]>\";\n\t\t}\n\t\tPattern pattern = Pattern.compile(linkContent, Pattern.DOTALL);\n\t\tMatcher mat = pattern.matcher(urlcontent);\n\t\t/*\n\t\t * while (mat.find()) { System.out.println(mat.group() + \" \"); }\n\t\t */\n\t\tSystem.out.println(\"meiyoume \");\n\t\twhile (mat.find()) {\n\t\t/*\tSystem.out.println(mat.group(1).trim() + \" 2\"\n\t\t\t\t\t+ mat.group(2).trim() + \" 3\" + mat.group(3).trim());*/\n\t\t\tSystem.out.println(mat.group(1)+\" \");\n\t\t}\n\t}", "title": "" }, { "docid": "016bd039ac24376f80615cd9544495c5", "score": "0.45751148", "text": "public String uri() {\n/* 162 */ return this.uri;\n/* */ }", "title": "" }, { "docid": "ee4f62f0a9956da5534265fa84bf58ba", "score": "0.4559033", "text": "public static String loadMappingXml(){\n\t\t\n\t\t\n\t\t\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "4bb5a3eed427170a0e905fb47fe53dd8", "score": "0.4553438", "text": "public WOComponent linksViaMapping() {\n\t\treset();\n\t\tif (mappingURL == null) {\n\t\t\tURL anURL = application().resourceManager().pathURLForResourceNamed(mappingFile, null, null);\n\t\t\tif (anURL != null)\n\t\t\t\tmappingURL = anURL.toString();\n\t\t}\n\t\ttry {\n\t\t\trelatedLinks = MappingHelper.relatedLinks(mappingURL, webSite);\n\t\t} catch (Throwable e) {\n\t\t\trelatedLinksInfo = \"The Related Link data for this website doesn't contain proper XML\";\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8698a8b7fc19592a11fe6f1213a9bb47", "score": "0.45533794", "text": "Map<String, Object> parseMap(Reader source);", "title": "" }, { "docid": "ba8b83a303a3667c46ed9232cb14e55c", "score": "0.45517033", "text": "public HashMap<String, GregorianCalendar> parseTimings(InputStream inStream, GregorianCalendar pickedDate)\n throws IOException{\n int year = pickedDate.get(GregorianCalendar.YEAR);\n int month = pickedDate.get(GregorianCalendar.MONTH)+1;\n int day = pickedDate.get(GregorianCalendar.DAY_OF_MONTH);\n\n //create the hashmap and populate it with null values\n HashMap<String, GregorianCalendar> timings = new HashMap<String, GregorianCalendar>();\n String[] pNames = {\"fajr\", \"sunrise\", \"dhuhr\", \"asr\", \"maghrib\", \"isha\"};\n for( String pName : pNames) {\n timings.put(pName, null);\n }\n\n // instantiate the parser\n XmlPullParser parser = Xml.newPullParser();\n \n //initialize formatter\n SimpleDateFormat format = new SimpleDateFormat(\"HH:mm\", Locale.getDefault());\n String jTime;\n GregorianCalendar jCal;\n String pName;\n\n // parse the XML file\n try{\n parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n parser.setInput(inStream, null);\n\n parser = getTag(parser, \"year\", \"value\", Integer.toString(year));\n parser = getTag(parser, \"month\", \"value\", Integer.toString(month));\n parser = getTag(parser, \"date\", \"day\", Integer.toString(day));\n\n\n //Fajr\n pName=\"fajr\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n jCal.set(year, month - 1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Fajr Time\");\n\n //Sunrise\n pName=\"sunrise\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n jCal.set(year, month - 1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Sunrise Time\");\n\n //Dhuhr\n pName=\"dhuhr\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n //Dhuhr AM-PM is tricky since its on the cusp, here is some logic to work around\n //permanent solution is to embed this information in the XML files\n int dhuhrHour = jCal.get(GregorianCalendar.HOUR);\n if(dhuhrHour >= 1 && dhuhrHour < 4){ // if dhuhr is between 1 and 9 it is AM\n // add 12 hours\n jCal.add(GregorianCalendar.HOUR, 12);\n }\n jCal.set(year, month-1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Dhuhr Time=\"+jCal);\n\n //Asr\n pName=\"asr\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n jCal.add(GregorianCalendar.HOUR, 12); //change to PM\n jCal.set(year, month - 1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Asr Time\");\n\n //Maghrib\n pName=\"maghrib\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n jCal.add(GregorianCalendar.HOUR, 12); //change to PM\n jCal.set(year, month - 1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Maghrib Time\");\n\n //Isha\n pName=\"isha\";\n parser = getTag(parser, pName);\n jTime = parser.nextText();\n jCal = new GregorianCalendar();\n jCal.setTime(format.parse(jTime));\n jCal.add(GregorianCalendar.HOUR, 12); //change to PM\n jCal.set(year, month - 1, day);\n timings.put(pName, jCal);\n //Log.v(\"ParseXML:\", \"Got Isha Time\");\n\n } catch (ParseException | XmlPullParserException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n return timings;\n }", "title": "" }, { "docid": "dfe7e204f79adcb21435c297570a2334", "score": "0.45456737", "text": "private void LoopThroughSiteMap () { int k=0;\r\n while (((SiteURL = siteMap.getNextURL()) != null) && (k<40))\r\n {\r\n System.out.println(\"asdfélkj\");\r\n //SiteURL = siteMap.getNextURL();\r\n \r\n unhcrsp.parseASite(SiteURL);\r\n unhcrsp.WriteASite(SiteURL);\r\n \r\n k++;\r\n \r\n }\r\n unhcrsp.WriteToFile();\r\n }", "title": "" }, { "docid": "08451be212bf225a69be52968e085d31", "score": "0.45445505", "text": "public HashMap<String, String> extract(String file) {\n\t\t// using jaxen\n\t\tHashMap<String, String> c2v = new HashMap<String, String>();\n\n\t\tTagNode tagNode;\n\t\ttry {\n\t\t\ttagNode = cleaner.clean(file);\n\n\t\t\tNode rootNode = domSerializer.createDOM(tagNode);\n\n\t\t\tList nodes;\n\t\t\tfor (int i = 0; i < _xPathExprs.size(); i++) {\n\t\t\t\tString xPathExpression = _xPathExprs.get(i).getExpression();\n\t\t\t\tXPath xpath = xPathCache.get(xPathExpression);\n\t\t\t\tif (xpath == null) {\n\t\t\t\t\txpath = new DOMXPath(xPathExpression);\n\t\t\t\t\txPathCache.put(xPathExpression, xpath);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnodes = xpath.selectNodes(rootNode);\n\n\t\t\t\t\tfor (Object node : nodes) {\n\t\t\t\t\t\tNode n = (Node) node;\n\t\t\t\t\t\tString content;\n\t\t\t\t\t\tif (c2v.containsKey(_xPathExprs.get(i).getName()))\n\t\t\t\t\t\t\tcontent = c2v.get(_xPathExprs.get(i).getName())\n\t\t\t\t\t\t\t\t\t+ n.getTextContent().toString();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcontent = n.getTextContent().toString();\n\t\t\t\t\t\tif (_toTrim)\n\t\t\t\t\t\t\tc2v.put(_xPathExprs.get(i).getName(),\n\t\t\t\t\t\t\t\t\tStringUtils.trim(content));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tc2v.put(_xPathExprs.get(i).getName(),content);\n\t\t\t\t\t\tlogger.info(\"Extract result: \"\n\t\t\t\t\t\t\t\t+ _xPathExprs.get(i).getName() + \" - \"\n\t\t\t\t\t\t\t\t+ n.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tSystem.out.println(\"ERROR: XPathExpression is \"\n\t\t\t\t\t\t\t+ xPathExpression);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JaxenException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn c2v;\n\t}", "title": "" }, { "docid": "c8357f63acdacbe21344be5e30178628", "score": "0.454323", "text": "public Map<String, String> csvRecordParser(String strLink) {\n\t System.out.println(\"\\nImporting \"+ strLink + \" file\");\n\t\tHashMap<String, String> strMapItems = new HashMap<String, String>();\n//\t\tHashMap<String, Integer> strMapItems2= new HashMap<String, Integer>();\n\t\tint number1 = (occAttReq.getFirstSelectedValues()-1);\n\t\tint number2 = (occAttReq.getSecondSelectedValues()-1);\n\n\t\tArrayList<String> distinct = null;\n//\t\tArrayList<String> distinct2 = null;\n\t\t\n\t\ttry {\n\t\t\toccReader = new BufferedReader(new FileReader(new File(strLink)));\n\t\t\toccReader.readLine();\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\twhile ((inputLine = occReader.readLine()) != null ) {\t\n\t\t\t\toccurrenceItems = Arrays.asList(inputLine.split(\",\"));\n\t\t\t\tif(!masterOccurrenceItems.contains(occurrenceItems)) {\n\t\t\t\t\tmasterOccurrenceItems.add(occurrenceItems);\n\n\t\t\t\t}\n\t\t\t\tdistinct = getDistinctTypes(occurrenceItems,number2);\n\t\t\t}\t\n\t\t\tSystem.out.println(\"System Processing....................\");\n\t\t System.out.println(\"Started Processing\" + strLink + \"file Data.\");\n\t\t\tfor(int i=0;i<distinct.size(); i++) {\n\t\t\t\telement=distinct.get(i);\n\t\t\t\tfilteredList = getFilteredList(masterOccurrenceItems,number2);\n\t\t\t\tString mineral = filteredList.get(i).get(number1);\n\t\t\t\tstrMapItems.put(element, mineral);\n\t\t\t}\n\t\t\t\n\t\t\tfor (String key : strMapItems.keySet()) { \n\t\t\t\tif(strMapItems.get(key).contains(\"Au\")){\n\t\t\t\t\toccurrenceMapItems.put(key, \"Au\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\toccurrenceMapItems.put(key, null);\n\t\t\t\t}\n\t\t\t}\n\t\t System.out.println(strLink + \" Data Processing Completed.\\n\"); \t\t\n\t\t\toccReader.close();\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\treturn occurrenceMapItems;\n\t}", "title": "" }, { "docid": "5e764ce0ccee7374c42338c9a6d1dc1b", "score": "0.45394057", "text": "public static Map<String,Star> parseToBodyMap(final String inputSource) throws MalformedURLException, IOException {\n final InputStream is = new URL(inputSource).openStream();\n final Map<String,Star> m = parseToBodyMap(is);\n is.close();\n return m;\n }", "title": "" }, { "docid": "9a80881c3c603b02ccec9f36a3008fd7", "score": "0.4528081", "text": "private String readLink(XmlPullParser parser) throws IOException, XmlPullParserException {\n /*String link = \"\";\n parser.require(XmlPullParser.START_TAG, ns, \"link\");\n String tag = parser.getName();\n String relType = parser.getAttributeValue(null, \"rel\");\n if (tag.equals(\"link\")) {\n if (relType.equals(\"alternate\")){\n link = parser.getAttributeValue(null, \"href\");\n parser.nextTag();\n }\n }\n parser.require(XmlPullParser.END_TAG, ns, \"link\");\n return link;*/\n parser.require(XmlPullParser.START_TAG, ns, \"link\");\n String link = readText(parser);\n addToLinksMap(link);\n parser.require(XmlPullParser.END_TAG, ns, \"link\");\n return link;\n }", "title": "" }, { "docid": "d09c06f909a9070b416553e4adce256d", "score": "0.4526164", "text": "private void findInfo() {\n \n try {\n\n Enumeration<URL> urls = loader.getResources(VERSION_FILENAME);\n \n while (urls.hasMoreElements()) {\n \n Properties props = new Properties();\n URL url = urls.nextElement();\n String products;\n StringTokenizer tokenizer;\n \n props.load(url.openStream());\n products = props.getProperty(PRODUCTS);\n\n if (products == null || products.equals(\"\")) {\n\n System.err.println(\"No Version info found for \" + url.toString());\n }\n else {\n\n tokenizer = new StringTokenizer(products, \",\", false);\n\n while (tokenizer.hasMoreTokens()) {\n\n String product = tokenizer.nextToken().trim();\n String name = props.getProperty(product + '.' + NAME);\n Version v;\n\n if (name == null) {\n\n System.err.println(\"Name for product \" + product + \" not found\");\n continue;\n }\n \n /*\n * First check to see if there is a fully qualified version\n * string available. If there is, then we can skip the\n * individual property checks.\n */\n String version = props.getProperty(product + \".\" + VERSION);\n \n if (version != null) {\n \n v = parseVersion(name, product, version);\n \n }\n else {\n \n v = buildVersion(name, product, props);\n }\n \n if (v != null) {\n \n productHash.put(product, v);\n }\n }\n }\n }\n }\n catch (IOException e) {\n\n System.err.println(\"Cannot get version information because exception \" \n + e.getMessage());\n }\n }", "title": "" }, { "docid": "4953811cfbb8a39eaf54c6709ac749bb", "score": "0.4516345", "text": "default Map<String, Resource> scan()\n throws IOException, URISyntaxException, ExecutionException, InterruptedException {\n return scan(getClass().getClassLoader());\n }", "title": "" }, { "docid": "da340c7020c0df64287f73b7901ef678", "score": "0.45118698", "text": "public static Map<String, String> read() throws Exception\n {\n Map<String, String> configValues = new HashMap<>();\n\n // Lit le fichier de déploiement pour déterminer les valeurs non typées\n File configFile = new File(__filename);\n \n __fileExists = configFile.exists();\n if (__fileExists)\n {\n __lastModified = configFile.lastModified();\n SAXParserFactory.newInstance().newSAXParser().parse(configFile, new MapHandler(configValues));\n }\n else\n {\n __lastModified = -1;\n }\n\n return configValues;\n }", "title": "" }, { "docid": "82229eba1dff52e3664e938b7f04115f", "score": "0.4509287", "text": "private static Map initializeConfigProperties()\n throws SecurityException, IOException {\n Map mapFileNameToContent = new HashMap();\n List dataFiles = getTagSwapConfigFiles();\n \n Map map = ServicesDefaultValues.getDefaultValues();\n String basedir = (String)map.get(\n SetupConstants.CONFIG_VAR_BASE_DIR);\n \n String deployuri =\n (String)map.get(SetupConstants.CONFIG_VAR_SERVER_URI);\n try {\n File fhm = new File(basedir + deployuri + \"/\" + SMS_STR);\n fhm.mkdirs();\n } catch (SecurityException e){\n Debug.getInstance(SetupConstants.DEBUG_NAME).error(\n \"AMSetupServlet.initializeConfigProperties\", e);\n throw e;\n }\n \n for (Iterator i = dataFiles.iterator(); i.hasNext(); ) {\n String file = (String)i.next();\n StringBuffer sbuf = null;\n \n /*\n * if the file's not there, just skip it\n * usually will be about a file included with OpenSSO Enterprise,\n * so it's informational, rather than a \"real\" error.\n */\n try {\n sbuf = readFile(file);\n } catch (IOException ioex) {\n break;\n }\n \n int idx = file.lastIndexOf(\"/\");\n String absFile = (idx != -1) ? file.substring(idx+1) : file;\n \n if (absFile.equalsIgnoreCase(SetupConstants.AMCONFIG_PROPERTIES)) {\n String dbOption = \n (String)map.get(SetupConstants.CONFIG_VAR_DATA_STORE);\n boolean embedded = \n dbOption.equals(SetupConstants.SMS_EMBED_DATASTORE);\n boolean dbSunDS = false;\n boolean dbMsAD = false;\n if (embedded) {\n dbSunDS = true;\n } else { // Keep old behavior for now.\n dbSunDS = dbOption.equals(SetupConstants.SMS_DS_DATASTORE);\n dbMsAD = dbOption.equals(SetupConstants.SMS_AD_DATASTORE);\n }\n \n if (dbSunDS || dbMsAD) {\n int idx1 = sbuf.indexOf(\n SetupConstants.CONFIG_VAR_SMS_DATASTORE_CLASS);\n if (idx1 != -1) {\n sbuf.replace(idx1, idx1 +\n (SetupConstants.CONFIG_VAR_SMS_DATASTORE_CLASS)\n .length(),\n SetupConstants.CONFIG_VAR_DS_DATASTORE_CLASS);\n }\n }\n }\n \n /*\n * if Linux, the default PAM service name is \"password\",\n * rather than \"other\"\n */\n if (determineOS().equals(SetupConstants.LINUX)) {\n map.put(SetupConstants.PAM_SERVICE_NAME,\n SetupConstants.LINUX_PAM_SVC_NAME);\n }\n \n String swapped = ServicesDefaultValues.tagSwap(sbuf.toString(),\n file.endsWith(\"xml\"));\n \n if (absFile.equalsIgnoreCase(SetupConstants.AMCONFIG_PROPERTIES) ||\n absFile.equalsIgnoreCase(SystemProperties.CONFIG_FILE_NAME)\n ) {\n mapFileNameToContent.put(absFile, swapped);\n } else if (absFile.equalsIgnoreCase(\n SetupConstants.SECURID_PROPERTIES))\n {\n writeToFile(basedir + deployuri + \"/auth/ace/data/\" + absFile,\n swapped);\n } else {\n writeToFile(basedir + \"/\" + absFile, swapped);\n }\n }\n return mapFileNameToContent;\n }", "title": "" }, { "docid": "8bb8703234d670faed015151fa6e1e10", "score": "0.45013103", "text": "private static Map<String, SNode> init() {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "16ccaf4d73a64faae41d2810deb5acc6", "score": "0.44961065", "text": "protected Map<Resource, String[]> scan(Resource[] fromResources, File toDir) {\n return buildMap(fromResources, toDir, getMapper());\n }", "title": "" }, { "docid": "8c90a0db2bc1e973729c944e1b1050db", "score": "0.44831115", "text": "public Map<String, Map<String, String>> getReturnsPageMap() {\n Map<String, Map<String, String>> retour = new HashMap<String, Map<String, String>>();\n Element racine = getXmlRoot();\n NodeList actions = racine.getElementsByTagName(\"action\");\n for (int i = 0; i < actions.getLength(); i++) {\n NodeList pages = ((Element) actions.item(i)).getElementsByTagName(\"retour\").item(0).getChildNodes();\n Map<String, String> mapPages = new HashMap<String, String>();\n for (int j = 0; j < pages.getLength(); j++) {\n mapPages.put(pages.item(j).getNodeName(), pages.item(j).getTextContent());\n }\n retour.put(((Element) actions.item(i)).getElementsByTagName(\"action-name\").item(0).getTextContent(),mapPages);\n }\n return retour;\n }", "title": "" }, { "docid": "77aa52da6ea896e8bf92393ded160611", "score": "0.44773275", "text": "private String parseTldForUri(String resourcePath, InputStream in) \n throws JasperException\n {\n ParserUtils pu = new ParserUtils();\n TreeNode tld = pu.parseXMLDocument(resourcePath, in);\n TreeNode uri = tld.findChild(\"uri\");\n if (uri != null) {\n String body = uri.getBody();\n if (body != null)\n return body;\n }\n return null; // No <uri> element is present\n\n }", "title": "" }, { "docid": "13475d1a6ba1c988b65689d1ae372611", "score": "0.44764507", "text": "public static Map xml2Map(String xml) {\n try {\n Map map = new HashMap();\n Document document = DocumentHelper.parseText(xml);\n Element nodeElement = document.getRootElement();\n List node = nodeElement.elements();\n for (Iterator it = node.iterator(); it.hasNext();) {\n Element elm = (Element) it.next();\n map.put(elm.attributeValue(\"label\"), elm.getText());\n elm = null;\n }\n node = null;\n nodeElement = null;\n document = null;\n return map;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "bd07b995dd826a7c5446e8ea1f979982", "score": "0.44748676", "text": "void getGoogleInfo(int x) throws IOException, MalformedURLException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader((new URL(\"https://trends.google.com/trends/hottrends/atom/feed?pn=p\" + x)).openStream()));\n\t\tString line, sourceCode = \"\";\n\t\twhile((line = br.readLine()) != null)\n\t\t\tsourceCode += line + \"\\n\";\n\t\t//parses through source code\n\t\tsourceCode = sourceCode.substring(sourceCode.indexOf(\"<item>\") + 6);\n\t\twhile(sourceCode.contains(\"<ht:approx_traffic>\")) {\n\t\t\t//isolates search title\n\t\t\tsearches += sourceCode.substring(0, sourceCode.indexOf(\"<ht:approx_traffic>\")).replace(\"<title>\", \"\").replace(\"</title>\", \"\").replace(\"<item>\", \"\").trim() + \"\\n\";\n\t\t\tsearchLines++;\n\t\t\tif(!sourceCode.contains(\"<item>\"))\n\t\t\t\tbreak;\n\t\t\tsourceCode = sourceCode.substring(sourceCode.indexOf(\"<item>\") + 6);\n\t\t}\n\t\tbr.close();\n\t}", "title": "" }, { "docid": "1b71a61361cecb748acc8d99af182ba9", "score": "0.447423", "text": "private Document getRemoteXML(String url) {\n\t\t\ttry {\n\t\t\t\tDocumentBuilderFactory bf = DocumentBuilderFactory\n\t\t\t\t\t\t.newInstance();\n\t\t\t\tDocumentBuilder db = bf.newDocumentBuilder();\n\t\t\t\tInputSource i = new InputSource(url);\n\t\t\t\treturn db.parse(i);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.print(\"Error: \" + e);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ea91f4cad2d93680c3be526d2318c23d", "score": "0.44699717", "text": "public static Map<String, String> getAllColorsForRepo(final String repoBaseUrl) throws SAXException, IOException, ParserConfigurationException {\n\t\tfinal CookieForUrl cookieForUrl = getCookieAndUrlJobForRepo(repoBaseUrl);\n\t\tString response = RestConnectionUtils.makeConnectionAndRead(cookieForUrl.getCookies(),\n\t\t new URL(repoBaseUrl.concat(HudsonPluginConstants.SUFFIX_API_XML)));\n\t\treturn ListingXMLReader.getAllNodesInMap(response, \"name\", \"color\");\n\t}", "title": "" }, { "docid": "0d061e5e9d8ad95a700c764ec87dd7ca", "score": "0.44682816", "text": "public void fetchXML(AssetManager assetManager) {\n\n\t\ttry {\n\n\t\t\t// InputStream stream = assetManager.open(\"Files/choice_fixed.xml\");\n\t\t\tInputStream stream = assetManager.open(finalUrl);\n\t\t\t//xml parser factory object\n\t\t\txmlFactoryObject = XmlPullParserFactory.newInstance();\n\t\t\t//parser object\n\t\t\tXmlPullParser myparser = xmlFactoryObject.newPullParser();\n\t\t\tmyparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n\t\t\tmyparser.setInput(stream, null);\n\t\t\t// start parsing and storing\n\t\t\tparseXMLAndStoreIt(myparser);\n\t\t\tstream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "2892e4af1654c7be83699a6f46e74852", "score": "0.446137", "text": "public void setWebsiteURLMap(Map<Locale, String> websiteURLMap);", "title": "" }, { "docid": "a02d180ea27f41c75b8b5c5d60f349f6", "score": "0.44602066", "text": "private static Map<String, DroidData> readFromXMLFile(final File file) throws FileNotFoundException {\n\t\tDroidHashMapType map = null;\n\t\tif (!file.exists()) {\n\t\t\tthrow new FileNotFoundException();\n\t\t}\n\t\ttry {\n\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(\n\t\t\t\t\t\t\tDroidHashMapType.class);\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\n\t\t\tmap = (DroidHashMapType) jaxbUnmarshaller.unmarshal(file);\n\n\t\t}\n\t\tcatch (JAXBException ex) {\n\t\t\tLogger.getLogger(DroidManager.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn map.getHashMap();\n\t}", "title": "" }, { "docid": "915b80f4fd751a8f952417662505af07", "score": "0.44560438", "text": "public Map getRelationMap(String mapType) throws ServiceLocatorException{\n \n Map processMap = new TreeMap(); // Key-Description\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n String queryString = null;\n \n connection = ConnectionProvider.getInstance().getConnection();\n try {\n statement = connection.createStatement();\n \n \n // resultSet = statement.executeQuery(\"SELECT ID,FLOWNAME FROM MSCVP_ROLES LEFT OUTER JOIN M_USER_ROLES on (MSCVP_ROLES.ID=M_USER_ROLES.ROLE_ID) where USER_ID=\"+userId+\" AND ID != 1 ORDER BY ROLE_NAME\");\n resultSet = statement.executeQuery(\"SELECT REL_ID,RELNAME FROM PROCESSRELATEDINFO WHERE FLAG='\"+mapType+\"'\");\n while(resultSet.next()) {\n processMap.put(resultSet.getString(\"REL_ID\"),resultSet.getString(\"RELNAME\"));\n }\n \n \n } catch (SQLException sql) {\n throw new ServiceLocatorException(sql);\n }finally{\n try {\n // resultSet Object Checking if it's null then close and set null\n if(resultSet != null) {\n resultSet.close();\n resultSet = null;\n }\n \n if(statement != null) {\n statement.close();\n statement = null;\n }\n \n if(connection != null) {\n connection.close();\n connection = null;\n }\n } catch (SQLException ex) {\n throw new ServiceLocatorException(ex);\n }\n }\n return processMap; // returning the object.\n }", "title": "" }, { "docid": "0ffa35f93c3fdb04e432fea03a25c99c", "score": "0.4447563", "text": "public static Map<String, Model> readAllRDFs() {\n\n Map<String, Model> modelMap = new HashMap<>();\n Path path = Paths.get(Paths.get(System.getProperty(\"user.dir\")).getParent().toString(), \"webapps\",\n \"rpo.org\", \"WEB-INF\", \"classes\");\n\n if (Files.exists(path)) {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(path, \"*.rdf\")) {\n for (Path filePath : stream) {\n Model model = ModelFactory.createDefaultModel();\n model.read(Files.newInputStream(filePath), null);\n modelMap.put(filePath.getFileName().toString(), model);\n }\n } catch (DirectoryIteratorException | IOException ex) {\n throw new RuntimeException(\"Failed to read rdf files from path: \" + path.toString(), ex);\n }\n }\n\n return modelMap;\n }", "title": "" }, { "docid": "25e77631c46f97b587a69ffe534559f8", "score": "0.444422", "text": "public void start()\r\n {\r\n content.append(\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\r\\n\" +\r\n \"<kml xmlns=\\\"http://earth.google.com/kml/2.2\\\">\\r\\n\" +\r\n \" <Document>\\r\\n\" +\r\n \" <name>stage: \" + this.scenario + \" maze of waze</name>\" +\r\n \" <Style id=\\\"node\\\">\\r\\n\" +\r\n \" <IconStyle>\\r\\n\" +\r\n \" <Icon>\\r\\n\" +\r\n \" <href>http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png</href>\\r\\n\" +\r\n \" </Icon>\\r\\n\" +\r\n \" <hotSpot x=\\\"32\\\" y=\\\"1\\\" xunits=\\\"pixels\\\" yunits=\\\"pixels\\\"/>\\r\\n\" +\r\n \" </IconStyle>\\r\\n\" +\r\n \" </Style>\" +\r\n \" <Style id=\\\"fruit-banana\\\">\\r\\n\" +\r\n \" <IconStyle>\\r\\n\" +\r\n \" <Icon>\\r\\n\" +\r\n \" <href>http://maps.google.com/mapfiles/kml/pal5/icon57.png</href>\\r\\n\" +\r\n \" </Icon>\\r\\n\" +\r\n \" <hotSpot x=\\\"32\\\" y=\\\"1\\\" xunits=\\\"pixels\\\" yunits=\\\"pixels\\\"/>\\r\\n\" +\r\n \" </IconStyle>\\r\\n\" +\r\n \" </Style>\" +\r\n \" <Style id=\\\"fruit-apple\\\">\\r\\n\" +\r\n \" <IconStyle>\\r\\n\" +\r\n \" <Icon>\\r\\n\" +\r\n \" <href>http://maps.google.com/mapfiles/kml/pal5/icon56.png</href>\\r\\n\" +\r\n \" </Icon>\\r\\n\" +\r\n \" <hotSpot x=\\\"32\\\" y=\\\"1\\\" xunits=\\\"pixels\\\" yunits=\\\"pixels\\\"/>\\r\\n\" +\r\n \" </IconStyle>\\r\\n\" +\r\n \" </Style>\" +\r\n \" <Style id=\\\"robot\\\">\\r\\n\" +\r\n \" <IconStyle>\\r\\n\" +\r\n \" <Icon>\\r\\n\" +\r\n \" <href>http://maps.google.com/mapfiles/kml/pal4/icon57.png</href>\\r\\n\" +\r\n \" </Icon>\\r\\n\" +\r\n \" <hotSpot x=\\\"32\\\" y=\\\"1\\\" xunits=\\\"pixels\\\" yunits=\\\"pixels\\\"/>\\r\\n\" +\r\n \" </IconStyle>\\r\\n\" +\r\n \" </Style>\\r\\n\"\r\n );\r\n\t}", "title": "" }, { "docid": "86cf3ca7d57acb95de1aeb6ea6fc9811", "score": "0.44440466", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic static Map<String, String> getMapfromFile(String filename){\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\ttry {\n\t\t\tProperties props = getFromFile(filename,\"UTF-8\");\n\t\t\t\n\t\t\tIterator it = props.keySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tString key = (String) it.next();\n\t\t\t\tmap.put(key, (String) props.get(key));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\treturn map;\n\t}", "title": "" }, { "docid": "71134fd74263dd24298722903e2ce7bc", "score": "0.44264606", "text": "private String parseURL(RouteSegment rs) {\n String srcMarker = FROM_MARKER + rs.getSrc().getLatitude() + \",\" + rs.getSrc().getLongitude();\n String dstMarker = TO_MARKER + rs.getDst().getLatitude() + \",\" + rs.getDst().getLongitude();\n String path = \"&path=color:\" + COLOURS.get(\"blue\") + \"|weight:2|enc:\" + rs.getGeometry();\n\n return BEGIN_OF_URL + srcMarker + dstMarker + path + END_OF_URL;\n }", "title": "" }, { "docid": "f41c558a0fc83f43c1d74c1124a92441", "score": "0.44042012", "text": "abstract protected Uri entriesURI();", "title": "" }, { "docid": "d1e8aa2a09fdf0c1fae26c43d7a0400f", "score": "0.44026592", "text": "public void setRsrcMap(Map<Integer, String> rsrcMap) {\r\n this.rsrcMap = rsrcMap;\r\n }", "title": "" }, { "docid": "d68c0ded1066d92dd365ce33f5d9a9a1", "score": "0.4399879", "text": "Map<String, Map<String, Object>> extractMetadata(String filePath);", "title": "" }, { "docid": "4f25ad1a034a070aba4b10d751505f0b", "score": "0.43940526", "text": "public HashMap<String, Integer> getResources()\r\n\t{\r\n\t\treturn this.resources;\r\n\t}", "title": "" }, { "docid": "5f386d090728a995fffc695aa320371f", "score": "0.4391053", "text": "public static Map<Integer, DataSource> getAvailableDataSources() {\n\t\tLoadRessources lr;\n\t\ttry {\n\t\t\tlr = new LoadRessources();\n\t\t} catch (JDOMException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"The configuration file dataSource.xml is corrupted. Please check that this file is a valid XML file!\");\n\t\t\treturn null;\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"Unable to open the configuration file dataSources.xml\");\n\t\t\treturn null;\n\t\t}\n\t\tMap<Integer, DataSource> dataSources = lr.extractData();\n\t\treturn dataSources;\n\t}", "title": "" }, { "docid": "767e0e9b27779e2777baf4a8b2fdc2f5", "score": "0.4390315", "text": "public static HashMap<String, String> parseTagsToMap(String line)\n {\n HashMap<String, String> toReturn = new HashMap<>();\n if (line != null)\n {\n line = line.substring(1);\n String[] parts = line.split(\";\");\n for (String part : parts)\n {\n String[] objectPair = part.split(\"=\");\n //Don't add this key/pair value if there is no value.\n if (objectPair.length <= 1) continue;\n toReturn.put(objectPair[0], objectPair[1].replaceAll(\"\\\\\\\\s\", \" \"));\n }\n }\n return toReturn;\n }", "title": "" }, { "docid": "45f2bbb04dbb24212b16c6b07c286b4d", "score": "0.43885607", "text": "private void updateResourceURL() {\n\n try (ResourceResolver serviceResourceResolver = resolverFactory.getServiceResourceResolver(Collections.singletonMap(ResourceResolverFactory.SUBSERVICE, SUB_SERVICE))) {\n Resource resource = serviceResourceResolver.getResource(resourceURL);\n if (resource == null) {\n return;\n }\n Page page = resource.adaptTo(Page.class);\n if (page != null) {\n log.debug(\"Page URL {}\", page.getPath());\n resourceURL += \".html\";\n log.debug(\"Resource URL {}\", resourceURL);\n setJcrContentMetadataAsJSON(page);\n }\n resourcePrimaryType = resource.getResourceType();\n } catch (LoginException re) {\n log.error(\"Login Exception {}\", re.getMessage());\n }\n }", "title": "" }, { "docid": "efe5e1e8dfec45c0f00f93d618546589", "score": "0.4383305", "text": "public static HashMap<String, String> DeserializeDiagramLinker(Context oContext){\n\n HashMap<String, String> oLinker = new HashMap<String, String>();\n try {\n InputStream oLinkerStream = oContext.getAssets().open(DIAG_SEC_LINKER_FILE_NAME);\n InputStreamReader oReader = new InputStreamReader(oLinkerStream);\n BufferedReader bufferedReader = new BufferedReader(oReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //format: pic# section#\n int spaceIndex = line.indexOf(' ');\n String picNum = line.substring(0, spaceIndex);\n String sectionNum = line.substring(spaceIndex+1, line.indexOf('.'));//line.length());\n oLinker.put(sectionNum, picNum);\n }\n oLinkerStream.close();\n oReader.close();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return oLinker;\n }", "title": "" }, { "docid": "b1156e5166c5f8a950adc07c2dd1d115", "score": "0.43824255", "text": "public void readWebsite(){\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\tprop.load(new FileInputStream(\"D:/properties/url.properties\"));\n\t\t\tString[] values = prop.getProperty(\"site.url\").toString().split(\";\");\n\t\t\t\t\tfor(int k = 0; k < values.length; k++) {\n\t\t\t\t\t\tRACE_URL = values[k];\n\t\t\t\t\t\tDocument doc=null;\n\t\t\t\t \t\ttry {\n\t\t\t\t\t \t\tdoc = Jsoup.connect(RACE_URL).get();\n\t\t\t\t \t\t} catch (IOException e) {\n\t\t\t\t \t\t\t// TODO Auto-generated catch block\n\t\t\t\t \t\t\te.printStackTrace();\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tString[] getting_date_from_url = RACE_URL.split(\",\");\n\t\t\t\t String[] getting_date = getting_date_from_url[0].split(\"=\"); \n\t\t\t\t DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyyMMMd\");\n\t\t\t\t LocalDate raceDate= LocalDate.parse(getting_date[1].replaceAll(\"\\\\s+\",\"\"), formatter);\n\t\t\t\t \t\t\n\t\t\t\t \t\tElements raceList = doc.select(\"table.race-title\");\n\t\t\t\t \t\tString cityN = doc.select(\".race-venue\").select(\".top\").get(0).text();\n\t\t\t\t \t\tString cityName = cityN.substring(0, cityN.indexOf(\":\"));\n\t\t\t\t \t\tList<Race> raceDetailsList = new ArrayList<Race>();\n\t\t\t\t \t\t\n\t\t\t\t \t\traceList.forEach(race ->{\n\t\t\t\t \t\t\tRace raceObj = new Race();\n\t\t\t\t \t\t\tString raceTitle = race.select(\"tbody > tr > th > span\").first().text();\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tMatcher m = Pattern.compile(\"\\\\(([^)]+)\\\\)\").matcher(raceTitle);\n\t\t \t\tString next_race_length = \"\";\n\t\t \t while(m.find()) {\n\t\t \t \tnext_race_length = m.group(1);\n\t\t \t }\n\t\t \t \n\t\t \t String nextRaceTime = raceTitle.substring(9, 15);\n\t\t \t \n\t\t\t\t \t\t\t// retrieve the second tr\n\t\t\t\t \t\t\tElement raceDescription = race.select(\"tbody > tr \").get(1);\n\t\t\t\t \t\t\tlog.info(\"Race description ==>\"+raceDescription.text());\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tString state = RACE_URL;\n\t\t\t\t \t\t\tstate = state.substring(state.indexOf(\",\") + 1);\n\t\t\t\t \t\t\tstate = state.substring(0, state.indexOf(\",\"));\n\t\t\t\t \t\t\tSystem.err.println(\"Race state===========>\" +state);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\traceObj.setCity(cityName);\n\t\t\t\t \t\t\traceObj.setState(state);\n\t\t\t\t \t\t\traceObj.setRaceDate(raceDate);\n\t\t\t\t \t\t\traceObj.setRaceName(raceTitle);\n\t\t\t\t \t\t\traceObj.setRaceDescription(raceDescription.text());\n\t\t\t\t \t\t\traceObj.setRace_length(next_race_length);\n\t\t\t\t \t\t\traceObj.setRace_time(nextRaceTime);\n\t\t\t\t \t\t\traceObj = raceService.save(raceObj);\n\t\t\t\t \t\t\traceDetailsList.add(raceObj);\n\t\t\t\t \t\t});\n\t\t\t\t Elements raceTablesList = doc.select(\"table.race-strip-fields\");\n\t\t\t\t if(raceTablesList.size()==raceDetailsList.size()){\n\t\t\t\t \tlog.info(\"********* ON TRACK - RACE TITLE MATCHES RACE DETAILS ***********\");\n\t\t\t\t }else{\n\t\t\t\t \tlog.error(\"********** PROBLEM IN PARSING -- RACE TITLE COUNT DOES NOT MATCH RACE DETAILS\" );\n\t\t\t\t }\n\t\t\t\t raceTablesList.forEach(raceTable -> {\n\t\t\t\t \tElements raceInfoHeader = raceTable.getElementsByTag(\"tr\");\n\t\t\t\t \tList<RaceInfo> raceInfoList = new ArrayList<RaceInfo>();\n\t\t\t\t \t\n\t\t\t\t \traceInfoHeader.forEach(row -> {\n\t\t\t\t \t\tRaceInfo info = new RaceInfo();\n//\t\t\t\t \t\tElements cellValues = row.getAllElements();\n\t\t\t\t \t\tString finishValue = row.getElementsByIndexEquals(1).first().text();\n\t\t\t\t \t\tString startPosition = row.getElementsByIndexEquals(2).text();\n\t\t\t\t \t\tElement horsesName = row.getElementsByIndexEquals(3).first();\n\t\t\t\t \t\t\n\t\t\t\t \t\tif(horsesName.text().equalsIgnoreCase(\"horse\")){\n\t\t\t\t \t\t\t// do nothing for header\n\t\t\t\t \t\t}else{\n\t\t\t\t \t\t\tElement trainerName = row.getElementsByIndexEquals(4).first();\n\t\t\t\t \t\tElement jockeyName = row.getElementsByIndexEquals(5).first();\n\t\t\t\t \t\tElement margin = row.getElementsByIndexEquals(6).get(0);\n//\t\t\t\t \t\tElement bar = row.getElementsByIndexEquals(7).get(0);\n//\t\t\t\t \t\tElement weight = row.getElementsByIndexEquals(8).get(0);\n\t\t\t\t \t\tElement penalty = row.getElementsByIndexEquals(9).get(0);\n\t\t\t\t \t\tElement startingPrice = row.getElementsByIndexEquals(10).get(0);\n\t\t\t\t \t\tinfo.setCreatedDate(LocalDate.now());\n\t\t\t\t \t\tif(finishValue!=null){\n\t\t\t\t \t\t\ttry {\n\t\t\t\t \t\t\t\t\t\tinfo.setFinishPosition(new Integer(finishValue));\n\t\t\t\t \t\t\t\t\t} catch (Exception e) {\n\t\t\t\t \t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t \t\t\t\t\t\tlog.error(\"Excepiton occured in parsing finish position\" +e.getMessage());\n\t\t\t\t \t\t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\tif(startPosition!=null){\n\t\t\t\t \t\t\ttry {\n\t\t\t\t \t\t\t\t\t\tinfo.setStartPosition(new Integer(startPosition));\n\t\t\t\t \t\t\t\t\t} catch (Exception e) {\n\t\t\t\t \t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t \t\t\t\t\t\tlog.error(\"Excepiton occured in parsing start position\" +e.getMessage());\n\t\t\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\tinfo.setHorseName(horsesName.text());\n\t\t\t\t \t\tinfo.setTrainer(trainerName.text());\n\t\t\t\t \t\tinfo.setJockey(jockeyName.text()); \n\t\t\t\t \t\tinfo.setRace_name(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getRaceName());\n\t\t\t\t \t\tinfo.setCity(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getCity());\n\t\t\t\t \t\tinfo.setState(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getState());\n\t\t\t\t \t\tinfo.setRace_id(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getId());\n\t\t\t\t \t\tinfo.setNext_race_length(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getRace_length());\n\t\t\t\t info.setNext_race_time(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getRace_time());\n\t\t\t\t info.setNext_race_date(raceDetailsList.get(raceTablesList.indexOf(raceTable)).getRaceDate().toString());\n\t\t\t\t info.setSource(RACE_URL);\n\t\t\t\t info.setLast_margin_date(raceDate);\n\t\t\t\t \t\t//info.setRace(raceDetailsList.get(index));\n\t\t\t\t \t\tLong marginValue = null;\n\t\t\t\t \t\tif(margin.text()== null || margin.text().equalsIgnoreCase(\"\")){\n\n\t\t\t\t \t\t} else {\n//\t\t\t\t \t\t\tlog.info(\"Margin value ==>\"+margin.text().trim().substring(0, 1));\n\t\t\t\t \t\t\ttry {\n\t\t\t\t \t\t\t\tString marginn = margin.text();\n\t\t\t\t \t\t\t\tString marValue = marginn.substring(0, marginn.indexOf(\"L\"));\n\t\t\t\t \t\t\t\tif(marValue.length() > 3) {\n\t\t\t\t \t\t\t\t\tinfo.setMargin(\"0\");\n\t\t\t\t \t\t\t\t} else {\n\t\t\t\t\t\t\t \t\tinfo.setMargin(marValue);\n\t\t\t\t\t \t\t\t\tSystem.err.println(\"Margin value=================>\"+marValue);\n\t\t\t\t \t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\tlog.error(\"Error occured in processing margin value ==>\"+marginValue);\n\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t \t\t\tlog.info(\"Margin value converted ==>\"+margin.text());\n\t\t\t\t \t\t}\n\t\t\t\t \t\tinfo.setPenalty(penalty.text());\n\t\t\t\t \t\tinfo.setStartingPrice(startingPrice.text());\n\t\t\t\t \t\traceInfoList.add(info);\n\t\t\t\t \t\traceInfoService.save(info);\n\t\t\t\t \t\t}\n\t\t\t\t \t});\n\t\t\t\t });\n\t\t\t\t \n\t\t\t\t raceService.findByState(cityName);\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\traceService.saveJson();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4a3087034402ff5d65a618bd2ffb346e", "score": "0.43799308", "text": "public void reloadConfig() {\n if (!mXmlFile.exists()) {\n // No config file\n return;\n }\n try (FileInputStream stream = new FileInputStream(mXmlFile)){\n final List<byte[]> crc32DomainList = new ArrayList<>();\n final List<byte[]> sha256DomainList = new ArrayList<>();\n final List<byte[]> crc32IpList = new ArrayList<>();\n final List<byte[]> sha256IpList = new ArrayList<>();\n\n XmlPullParser parser = Xml.newPullParser();\n parser.setInput(stream, StandardCharsets.UTF_8.name());\n parser.nextTag();\n parser.require(XmlPullParser.START_TAG, null, XmlTags.WATCHLIST_CONFIG);\n while (parser.nextTag() == XmlPullParser.START_TAG) {\n String tagName = parser.getName();\n switch (tagName) {\n case XmlTags.CRC32_DOMAIN:\n parseHashes(parser, tagName, crc32DomainList);\n break;\n case XmlTags.CRC32_IP:\n parseHashes(parser, tagName, crc32IpList);\n break;\n case XmlTags.SHA256_DOMAIN:\n parseHashes(parser, tagName, sha256DomainList);\n break;\n case XmlTags.SHA256_IP:\n parseHashes(parser, tagName, sha256IpList);\n break;\n default:\n Log.w(TAG, \"Unknown element: \" + parser.getName());\n XmlUtils.skipCurrentTag(parser);\n }\n }\n parser.require(XmlPullParser.END_TAG, null, XmlTags.WATCHLIST_CONFIG);\n mDomainDigests = new CrcShaDigests(new HarmfulDigests(crc32DomainList),\n new HarmfulDigests(sha256DomainList));\n mIpDigests = new CrcShaDigests(new HarmfulDigests(crc32IpList),\n new HarmfulDigests(sha256IpList));\n Log.i(TAG, \"Reload watchlist done\");\n } catch (IllegalStateException | NullPointerException | NumberFormatException |\n XmlPullParserException | IOException | IndexOutOfBoundsException e) {\n Slog.e(TAG, \"Failed parsing xml\", e);\n }\n }", "title": "" }, { "docid": "cc9991c493ab5e74c954a15ac7e6deeb", "score": "0.43798184", "text": "public void buildMap(String filename) throws IOException;", "title": "" }, { "docid": "9243924b4e2554b6136cf0e9dd5b743e", "score": "0.4374436", "text": "private Element parseKml(String kmlUrl) throws Exception {\n if (kmlUrl == null) {\n return null;\n }\n Element root = null;\n InputStream is = IOUtil.getInputStream(kmlUrl);\n BufferedInputStream bin = new BufferedInputStream(is);\n ZipInputStream zin = null;\n try {\n Trace.call1(\"zin\");\n zin = new ZipInputStream(bin);\n Trace.call2(\"zin\");\n } catch (Exception exc) {}\n\n boolean anyEntries = false;\n if ((zin != null) && (zin.available() > 0)) {\n Trace.call1(\"getInputStream\");\n Trace.call2(\"getInputStream\");\n\n ZipEntry ze = null;\n while ((ze = zin.getNextEntry()) != null) {\n anyEntries = true;\n String name = ze.getName().toLowerCase();\n if (name.endsWith(\".kml\") && (root == null)) {\n isZip = true;\n Trace.call1(\"readBytes\");\n String xml = new String(IOUtil.readBytes(zin, null,\n false));\n if ( !xml.startsWith(\"<\")) {\n //Strip off the crap I keep finding in the kmz files\n int idx = xml.indexOf(\"<\");\n if (idx >= 0) {\n xml = xml.substring(idx);\n }\n }\n Trace.call2(\"readBytes\", \" size=\" + xml.length());\n String newName = IOUtil.getFileTail(name);\n xml = cleanupXml(xml);\n IOUtil.writeFile(newName, xml);\n Trace.call1(\"KmlDataSource.getRoot\");\n root = XmlUtil.getRoot(xml);\n Trace.call2(\"KmlDataSource.getRoot\");\n // break;\n } else {\n pathToFile.put(ze.getName(), kmlUrl);\n zin.closeEntry();\n }\n }\n zin.close();\n }\n\n if ((root == null) && !anyEntries) {\n Trace.call1(\"KmlDataSource.readContents\");\n String xml = IOUtil.readContents(kmlUrl);\n Trace.call2(\"KmlDataSource.readContents\");\n xml = cleanupXml(xml);\n // is = IOUtil.getInputStream(kmlUrl);\n isZip = false;\n Trace.call1(\"KmlDataSource.getRoot\");\n // root = XmlUtil.getRoot(is);\n root = XmlUtil.getRoot(xml);\n Trace.call2(\"KmlDataSource.getRoot\");\n }\n return root;\n }", "title": "" }, { "docid": "d07314afda241ebba6393932598d5c54", "score": "0.43698055", "text": "public Map<String, List<APIRequestBO>> fileReader(String file1, String file2) throws IOException\n\t{\n\t\t//For Batch Processing of 1000 records at a time\n\t\tcounter = counter + 1000;\n\t\tMap<String, List<APIRequestBO>> urlListMap = new LinkedHashMap<String, List<APIRequestBO>>();\n\t\ttry\n\t\t{\n\t\t\tList<APIRequestBO> urlList1 = readFile(file1, counter);\n\t\t\turlListMap.put(file1, urlList1);\n\t\t\tList<APIRequestBO> urlList2 = readFile(file2, counter);\n\t\t\turlListMap.put(file2, urlList2);\n\n\t\t\tif (urlList1.size() == 0 && urlList2.size() == 0)\n\t\t\t{\n\t\t\t\turlListMap = null;\n\t\t\t}\n\t\t\tpreviousCounter = counter;\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"Please check file\" + file1 + \" , \" + file2 + \" and its content,it should be readable.\", ioe);\n\t\t}\n\n\t\treturn urlListMap;\n\t}", "title": "" }, { "docid": "f8474b9df588bd1544c104efc91669b4", "score": "0.43692392", "text": "public abstract HashMap<String, String> createContentSet();", "title": "" }, { "docid": "14f6d8c1c3e3b785668a3be8ba7dfcfb", "score": "0.4368519", "text": "private void parseURL() {\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"continue to parse URL\");\r\n\t\tif(!url.contains(\"?\")) {\r\n\t\t\tthis.requestURI = url;\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\tString [] data = url.split(\"[?]\");\r\n\t\t\trequestURI = data[0];\r\n\t\t\tif(data.length > 1) {\r\n\t\t\t\tqueryString = data[1];\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.queryString = URLDecoder.decode(queryString, \"utf-8\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\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\t\t\t\r\n\t\t\tdata = queryString.split(\"[&]\");\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < data.length; i++) {\r\n\t\t\t\t\r\n\t\t\t\tString [] data2 = data[i].split(\"[=]\");\r\n\t\t\t\tif(data2.length > 1) {\r\n\t\t\t\t\tparameters.put(data2[0], data2[1]);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tparameters.put(data2[0],null);\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}\r\n\t\tSystem.out.println(\"requestURI: \" + requestURI);\r\n\t\tSystem.out.println(\"queryString: \" + queryString);\r\n\t\tSystem.out.println(\"parameter: \" + parameters);\r\n\t\tSystem.out.println(\"HttpRequest: Finish parse url\");\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4c8c5e89e53c0ff02e80d4289eccb3fe", "score": "0.43664888", "text": "private XmlMapper createWebMapper() {\n\n XmlMapper mapper = new XmlMapper();\n if (debug > 0)\n mapper.setDebug(3);\n mapper.setValidating(true);\n mapper.registerDTDRes(Constants.WebDtdPublicId_22,\n Constants.WebDtdResourcePath_22);\n mapper.registerDTDRes(Constants.WebDtdPublicId_23,\n Constants.WebDtdResourcePath_23);\n\n mapper.addRule(\"web-app\",\n new SetPublicIdAction(\"setPublicId\"));\n\n mapper.addRule(\"web-app/context-param\",\n mapper.methodSetter(\"addParameter\", 2));\n mapper.addRule(\"web-app/context-param/param-name\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/context-param/param-value\",\n mapper.methodParam(1));\n\n mapper.addRule(\"web-app/display-name\",\n mapper.methodSetter(\"setDisplayName\", 0));\n\n mapper.addRule(\"web-app/distributable\",\n new SetDistributableAction());\n\n mapper.addRule(\"web-app/ejb-local-ref\",\n mapper.objectCreate(\"org.apache.catalina.deploy.ContextLocalEjb\"));\n mapper.addRule(\"web-app/ejb-local-ref\",\n mapper.addChild(\"addLocalEjb\",\n \"org.apache.catalina.deploy.ContextLocalEjb\"));\n mapper.addRule(\"web-app/ejb-local-ref/description\",\n mapper.methodSetter(\"setDescription\", 0));\n mapper.addRule(\"web-app/ejb-local-ref/ejb-ref-name\",\n mapper.methodSetter(\"setName\", 0));\n mapper.addRule(\"web-app/ejb-local-ref/ejb-ref-type\",\n mapper.methodSetter(\"setType\", 0));\n mapper.addRule(\"web-app/ejb-local-ref/local-home\",\n mapper.methodSetter(\"setHome\", 0));\n mapper.addRule(\"web-app/ejb-local-ref/local\",\n mapper.methodSetter(\"setLocal\", 0));\n mapper.addRule(\"web-app/ejb-local-ref/ejb-link\",\n mapper.methodSetter(\"setLink\", 0));\n\n mapper.addRule(\"web-app/ejb-ref\",\n mapper.objectCreate(\"org.apache.catalina.deploy.ContextEjb\"));\n mapper.addRule(\"web-app/ejb-ref\",\n mapper.addChild(\"addEjb\",\n \"org.apache.catalina.deploy.ContextEjb\"));\n mapper.addRule(\"web-app/ejb-ref/description\",\n mapper.methodSetter(\"setDescription\", 0));\n mapper.addRule(\"web-app/ejb-ref/ejb-ref-name\",\n mapper.methodSetter(\"setName\", 0));\n mapper.addRule(\"web-app/ejb-ref/ejb-ref-type\",\n mapper.methodSetter(\"setType\", 0));\n mapper.addRule(\"web-app/ejb-ref/home\",\n mapper.methodSetter(\"setHome\", 0));\n mapper.addRule(\"web-app/ejb-ref/remote\",\n mapper.methodSetter(\"setRemote\", 0));\n mapper.addRule(\"web-app/ejb-ref/ejb-link\",\n mapper.methodSetter(\"setLink\", 0));\n\n mapper.addRule(\"web-app/env-entry\",\n mapper.objectCreate(\"org.apache.catalina.deploy.ContextEnvironment\"));\n mapper.addRule(\"web-app/env-entry\",\n mapper.addChild(\"addEnvironment\",\n \"org.apache.catalina.deploy.ContextEnvironment\"));\n mapper.addRule(\"web-app/env-entry/env-entry-description\",\n mapper.methodSetter(\"setDescription\", 0));\n mapper.addRule(\"web-app/env-entry/env-entry-name\",\n mapper.methodSetter(\"setName\", 0));\n mapper.addRule(\"web-app/env-entry/env-entry-type\",\n mapper.methodSetter(\"setType\", 0));\n mapper.addRule(\"web-app/env-entry/env-entry-value\",\n mapper.methodSetter(\"setValue\", 0));\n\n mapper.addRule(\"web-app/error-page\",\n mapper.objectCreate(\"org.apache.catalina.deploy.ErrorPage\"));\n mapper.addRule(\"web-app/error-page\",\n mapper.addChild(\"addErrorPage\",\n \"org.apache.catalina.deploy.ErrorPage\"));\n mapper.addRule(\"web-app/error-page/error-code\",\n mapper.methodSetter(\"setErrorCode\", 0));\n mapper.addRule(\"web-app/error-page/exception-type\",\n mapper.methodSetter(\"setExceptionType\", 0));\n mapper.addRule(\"web-app/error-page/location\",\n mapper.methodSetter(\"setLocation\", 0));\n\n mapper.addRule(\"web-app/filter\",\n mapper.objectCreate(\"org.apache.catalina.deploy.FilterDef\"));\n mapper.addRule(\"web-app/filter\",\n mapper.addChild(\"addFilterDef\",\n \"org.apache.catalina.deploy.FilterDef\"));\n mapper.addRule(\"web-app/filter/description\",\n mapper.methodSetter(\"setDescription\", 0));\n mapper.addRule(\"web-app/filter/display-name\",\n mapper.methodSetter(\"setDisplayName\", 0));\n mapper.addRule(\"web-app/filter/filter-class\",\n mapper.methodSetter(\"setFilterClass\", 0));\n mapper.addRule(\"web-app/filter/filter-name\",\n mapper.methodSetter(\"setFilterName\", 0));\n mapper.addRule(\"web-app/filter/icon/large-icon\",\n mapper.methodSetter(\"setLargeIcon\", 0));\n mapper.addRule(\"web-app/filter/icon/small-icon\",\n mapper.methodSetter(\"setSmallIcon\", 0));\n mapper.addRule(\"web-app/filter/init-param\",\n mapper.methodSetter(\"addInitParameter\", 2));\n mapper.addRule(\"web-app/filter/init-param/param-name\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/filter/init-param/param-value\",\n mapper.methodParam(1));\n\n mapper.addRule(\"web-app/filter-mapping\",\n mapper.objectCreate(\"org.apache.catalina.deploy.FilterMap\"));\n mapper.addRule(\"web-app/filter-mapping\",\n mapper.addChild(\"addFilterMap\",\n \"org.apache.catalina.deploy.FilterMap\"));\n mapper.addRule(\"web-app/filter-mapping/filter-name\",\n mapper.methodSetter(\"setFilterName\", 0));\n mapper.addRule(\"web-app/filter-mapping/servlet-name\",\n mapper.methodSetter(\"setServletName\", 0));\n mapper.addRule(\"web-app/filter-mapping/url-pattern\",\n mapper.methodSetter(\"setURLPattern\", 0));\n\n mapper.addRule(\"web-app/listener/listener-class\",\n mapper.methodSetter(\"addApplicationListener\", 0));\n\n mapper.addRule(\"web-app/login-config\",\n mapper.objectCreate(\"org.apache.catalina.deploy.LoginConfig\"));\n mapper.addRule(\"web-app/login-config\",\n mapper.addChild(\"setLoginConfig\",\n \"org.apache.catalina.deploy.LoginConfig\"));\n mapper.addRule(\"web-app/login-config/auth-method\",\n mapper.methodSetter(\"setAuthMethod\", 0));\n mapper.addRule(\"web-app/login-config/realm-name\",\n mapper.methodSetter(\"setRealmName\", 0));\n mapper.addRule(\"web-app/login-config/form-login-config/form-login-page\",\n mapper.methodSetter(\"setLoginPage\", 0));\n mapper.addRule(\"web-app/login-config/form-login-config/form-error-page\",\n mapper.methodSetter(\"setErrorPage\", 0));\n\n mapper.addRule(\"web-app/mime-mapping\",\n mapper.methodSetter(\"addMimeMapping\", 2));\n mapper.addRule(\"web-app/mime-mapping/extension\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/mime-mapping/mime-type\",\n mapper.methodParam(1));\n\n\n mapper.addRule(\"web-app/resource-env-ref\",\n mapper.methodSetter(\"addResourceEnvRef\", 2));\n mapper.addRule(\"web-app/resource-env-ref/resource-env-ref-name\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/resource-env-ref/resource-env-ref-type\",\n mapper.methodParam(1));\n\n mapper.addRule(\"web-app/resource-ref\",\n mapper.objectCreate(\"org.apache.catalina.deploy.ContextResource\"));\n mapper.addRule(\"web-app/resource-ref\",\n mapper.addChild(\"addResource\",\n \"org.apache.catalina.deploy.ContextResource\"));\n mapper.addRule(\"web-app/resource-ref/description\",\n mapper.methodSetter(\"setDescription\", 0));\n mapper.addRule(\"web-app/resource-ref/res-auth\",\n mapper.methodSetter(\"setAuth\", 0));\n mapper.addRule(\"web-app/resource-ref/res-ref-name\",\n mapper.methodSetter(\"setName\", 0));\n mapper.addRule(\"web-app/resource-ref/res-sharing-scope\",\n mapper.methodSetter(\"setScope\", 0));\n mapper.addRule(\"web-app/resource-ref/res-type\",\n mapper.methodSetter(\"setType\", 0));\n\n mapper.addRule(\"web-app/security-constraint\",\n mapper.objectCreate(\"org.apache.catalina.deploy.SecurityConstraint\"));\n mapper.addRule(\"web-app/security-constraint\",\n mapper.addChild(\"addConstraint\",\n \"org.apache.catalina.deploy.SecurityConstraint\"));\n mapper.addRule(\"web-app/security-constraint/auth-constraint\",\n new SetAuthConstraint());\n mapper.addRule(\"web-app/security-constraint/auth-constraint/role-name\",\n mapper.methodSetter(\"addAuthRole\", 0));\n mapper.addRule(\"web-app/security-constraint/display-name\",\n mapper.methodSetter(\"setDisplayName\", 0));\n mapper.addRule(\"web-app/security-constraint/user-data-constraint/transport-guarantee\",\n mapper.methodSetter(\"setUserConstraint\", 0));\n mapper.addRule(\"web-app/security-constraint/web-resource-collection\",\n mapper.objectCreate(\"org.apache.catalina.deploy.SecurityCollection\"));\n mapper.addRule(\"web-app/security-constraint/web-resource-collection\",\n mapper.addChild(\"addCollection\",\n \"org.apache.catalina.deploy.SecurityCollection\"));\n mapper.addRule(\"web-app/security-constraint/web-resource-collection/http-method\",\n mapper.methodSetter(\"addMethod\", 0));\n mapper.addRule(\"web-app/security-constraint/web-resource-collection/url-pattern\",\n mapper.methodSetter(\"addPattern\", 0));\n mapper.addRule(\"web-app/security-constraint/web-resource-collection/web-resource-name\",\n mapper.methodSetter(\"setName\", 0));\n\n mapper.addRule(\"web-app/security-role\",\n mapper.methodSetter(\"addSecurityRole\", 1));\n mapper.addRule(\"web-app/security-role/role-name\",\n mapper.methodParam(0));\n\n mapper.addRule(\"web-app/servlet\",\n new WrapperCreate(context));\n mapper.addRule(\"web-app/servlet\",\n mapper.addChild(\"addChild\",\n \"org.apache.catalina.Container\"));\n mapper.addRule(\"web-app/servlet/init-param\",\n mapper.methodSetter(\"addInitParameter\", 2));\n mapper.addRule(\"web-app/servlet/init-param/param-name\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/servlet/init-param/param-value\",\n mapper.methodParam(1));\n mapper.addRule(\"web-app/servlet/jsp-file\",\n mapper.methodSetter(\"setJspFile\", 0));\n mapper.addRule(\"web-app/servlet/load-on-startup\",\n mapper.methodSetter(\"setLoadOnStartupString\", 0));\n mapper.addRule(\"web-app/servlet/run-as/role-name\",\n mapper.methodSetter(\"setRunAs\", 0));\n mapper.addRule(\"web-app/servlet/security-role-ref\",\n mapper.methodSetter(\"addSecurityReference\", 2));\n mapper.addRule(\"web-app/servlet/security-role-ref/role-link\",\n mapper.methodParam(1));\n mapper.addRule(\"web-app/servlet/security-role-ref/role-name\",\n mapper.methodParam(0));\n mapper.addRule(\"web-app/servlet/servlet-class\",\n mapper.methodSetter(\"setServletClass\", 0));\n mapper.addRule(\"web-app/servlet/servlet-name\",\n mapper.methodSetter(\"setName\", 0));\n\n mapper.addRule(\"web-app/servlet-mapping\",\n mapper.methodSetter(\"addServletMapping\", 2));\n mapper.addRule(\"web-app/servlet-mapping/servlet-name\",\n mapper.methodParam(1));\n mapper.addRule(\"web-app/servlet-mapping/url-pattern\",\n mapper.methodParam(0));\n\n mapper.addRule(\"web-app/session-config\",\n mapper.methodSetter(\"setSessionTimeout\", 1,\n new String[]{\"int\"}));\n mapper.addRule(\"web-app/session-config/session-timeout\",\n mapper.methodParam(0));\n\n mapper.addRule(\"web-app/taglib\",\n mapper.methodSetter(\"addTaglib\", 2));\n mapper.addRule(\"web-app/taglib/taglib-location\",\n mapper.methodParam(1));\n mapper.addRule(\"web-app/taglib/taglib-uri\",\n mapper.methodParam(0));\n\n mapper.addRule(\"web-app/welcome-file-list/welcome-file\",\n mapper.methodSetter(\"addWelcomeFile\", 0));\n\n return (mapper);\n\n }", "title": "" }, { "docid": "ae83a6206a8171a74a3fe1a4d580f28e", "score": "0.43632242", "text": "public static void main(String[] args) throws Exception {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint n = Integer.parseInt(reader.readLine());\r\n\t\tmap = new HashMap<Integer, ArrayList<Integer>>();\r\n\t\tdomain = new ArrayList<String>();\r\n\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tString tempD = reader.readLine();\r\n\t\t\tif (!domain.contains(tempD)) {\r\n\t\t\t\tdomain.add(tempD);\r\n\t\t\t}\r\n\t\t\tif (!map.containsKey(domain.indexOf(tempD))) {\r\n\t\t\t\tmap.put(domain.indexOf(tempD), new ArrayList<Integer>());\r\n\t\t\t}\r\n\t\t\t// System.out.println(\"tempD: \" + tempD);\r\n\t\t\twhile (true) {\r\n\t\t\t\tString line = reader.readLine();\r\n\t\t\t\tif (line.equals(\"</HTML>\")) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int ii = 0; ii < line.length() - 2; ii++) {\r\n\t\t\t\t\tif (line.charAt(ii) == '<' && line.charAt(ii + 1) == 'A') {\r\n\t\t\t\t\t\tif (ii + 8 < line.length() - 2) {\r\n\t\t\t\t\t\t\tint index = ii + 2;\r\n\t\t\t\t\t\t\tboolean valid = false;\r\n\t\t\t\t\t\t\tif (line.charAt(index) == ' ') {\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (line.substring(index, index + 6).equals(\"HREF=\\\"\")) {\r\n\t\t\t\t\t\t\t\tvalid = true;\r\n\t\t\t\t\t\t\t\tindex += 6;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\t\t\tString holder = \"\";\r\n\r\n\t\t\t\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\t\t\tif (line.charAt(index) == '\\\"' || !(index < line.length())) {\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tholder += line.charAt(index);\r\n\t\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!domain.contains(holder)) {\r\n\t\t\t\t\t\t\t\t\tdomain.add(holder);\r\n\t\t\t\t\t\t\t\t\t// System.out.println(\"add: \" + holder + \" into DOMAIN\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!map.containsKey(domain.indexOf(holder))) {\r\n\t\t\t\t\t\t\t\t\tmap.put(domain.indexOf(holder), new ArrayList<Integer>());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tmap.get(domain.indexOf(tempD)).add(domain.indexOf(holder));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tii = index + 2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// end of for loop\r\n\t\t}\r\n\r\n\t\tfor (String p : domain) {\r\n\t\t\tif (map.containsKey(domain.indexOf(p))) {\r\n\t\t\t\tfor (int i : map.get(domain.indexOf(p))) {\r\n\t\t\t\t\tSystem.out.println(\"Link from \" + p + \" to \" + domain.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (true) {\r\n\t\t\tString a = reader.readLine();\r\n\t\t\tif (a.equals(\"The End\")) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tString b = reader.readLine();\r\n\t\t\t/*\r\n\t\t\t * System.out.println(\"DOMAIN: \"); for (String s : domain) {\r\n\t\t\t * System.out.println(s); } System.out.println();\r\n\t\t\t */\r\n\t\t\t// System.out.println(\"domain SIZE: \" + domain.size());\r\n\t\t\tvisited = new boolean[domain.size()];\r\n\t\t\tif (!domain.contains(a) || !domain.contains(b)) {\r\n\t\t\t\tSystem.out.println(\"Can't surf from \" + a + \" to \" + b + \".\");\r\n\t\t\t} else {\r\n\t\t\t\tdfs(domain.indexOf(a));\r\n\t\t\t\t// System.out.println(\"index of B: \" + domain.indexOf(b));\r\n\t\t\t\tif (visited[domain.indexOf(b)]) {\r\n\t\t\t\t\tSystem.out.println(\"Can surf from \" + a + \" to \" + b + \".\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Can't surf from \" + a + \" to \" + b + \".\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// map debug print out\r\n\t\t/*\r\n\t\t * System.out.println(); System.out.println(); System.out.println(); for (int i\r\n\t\t * = 0; i < domain.size(); i++) { System.out.println(domain.get(i)); for (String\r\n\t\t * s : map.get(domain.get(i))) { System.out.print(s + \" \"); }\r\n\t\t * System.out.println(); System.out.println(); }\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "10b631e55bb891b9c2c434ade17aba0a", "score": "0.43584794", "text": "Map<String, Resource> scan(final ClassLoader classLoader)\n throws IOException, URISyntaxException, ExecutionException, InterruptedException;", "title": "" } ]
cc2f2f96fe2bab874e20eaf8a18a1ecb
Meta information name. See the name attribute definition in HTML 4.01.
[ { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.0", "text": "public void setName(String name);", "title": "" } ]
[ { "docid": "41eab29adf4dc89197aa9a189d77425e", "score": "0.70614046", "text": "public void handle_name(final String data, final AttributeList meta) throws SAXException;", "title": "" }, { "docid": "24de39163983257b75c9d14f9965d29e", "score": "0.6757043", "text": "@Override\r\n\tpublic String name() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "870f73d5319a6e43a7a8d8ac452f17f6", "score": "0.67395073", "text": "public String getName( ) { return name; }", "title": "" }, { "docid": "30ecacd84b5bb88c98f88d4d5df98ce6", "score": "0.6731096", "text": "@Override\r\n\t\t\tpublic String getName() {\n\t\t\t\treturn Name;\r\n\t\t\t}", "title": "" }, { "docid": "440038d0fb8bc00f0d376b76bfa18bd3", "score": "0.6720695", "text": "@Override\r\n\tpublic String getName() {\n\t\t\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "795518b92aaf71ae010b270e8e979509", "score": "0.67150927", "text": "public void name(String n) {\n/* 270 */ this.name = n;\n/* */ }", "title": "" }, { "docid": "c95dc0aba40c617012da9576fafcb9d3", "score": "0.67089385", "text": "@Override\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "b966581fba2585ddc932a0babe56d3d7", "score": "0.66935515", "text": "public String getName() {return name;}", "title": "" }, { "docid": "b966581fba2585ddc932a0babe56d3d7", "score": "0.66935515", "text": "public String getName() {return name;}", "title": "" }, { "docid": "b966581fba2585ddc932a0babe56d3d7", "score": "0.66935515", "text": "public String getName() {return name;}", "title": "" }, { "docid": "eed5e376bbd257452f459ed0336073b4", "score": "0.66757303", "text": "@Override\r\n public String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "ff7ff3762dd55d085a17ca2f98e080ec", "score": "0.6670048", "text": "@Override\n\t public String getName()\n\t {\n\t return name();\n\t }", "title": "" }, { "docid": "cbb2a53a03ad45e32ad1961bd0f9ad88", "score": "0.66666335", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "cbb2a53a03ad45e32ad1961bd0f9ad88", "score": "0.66666335", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "cbb2a53a03ad45e32ad1961bd0f9ad88", "score": "0.66666335", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "7400413a248fc124782ad70f8e44e9d5", "score": "0.6658153", "text": "public final String getName() {\n return meta.getName();\n }", "title": "" }, { "docid": "872afa9e91a0ea1794a9e37a4451df41", "score": "0.663517", "text": "public String getName() { return name; }", "title": "" }, { "docid": "3954d08215c52eb41d853d9dfdac78f0", "score": "0.6617348", "text": "public String getName() {\n/* 155 */ return this.name;\n/* */ }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "54d520e5100874a820ed920292eb0206", "score": "0.66152954", "text": "public String getName() { return name; }", "title": "" }, { "docid": "c9fa09438b6b3b0f0b6d33a23b68a311", "score": "0.6609917", "text": "public void getName(String name){\n\t this.name = name;\n\t}", "title": "" }, { "docid": "5cfa29e30353421cb2c29c3569efa56d", "score": "0.66035265", "text": "@Override\n\tpublic String getName() {\n\t\treturn NAME;\n\t}", "title": "" }, { "docid": "e6aa2dc55ad69af512d007d1332a7499", "score": "0.6599357", "text": "@Override\r\n public final String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "00687fcba1452fa2117f034dfc5c2529", "score": "0.65944695", "text": "protected String getName()\r\n \t{\r\n \t return _name;\r\n \t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f9a7ac3b0f0fb2910ac1af651d0d8123", "score": "0.6592443", "text": "@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "f787aa5b9b28a244ae1cb7cd9be3a462", "score": "0.6588755", "text": "public String getName() {\n/* 434 */ return this.name;\n/* */ }", "title": "" }, { "docid": "ce090d6c0ecb42e75b788a302bb477ab", "score": "0.6583938", "text": "public String getName() { return name; }", "title": "" }, { "docid": "1b5fe8e2071475c6b0fceeb254acfc4c", "score": "0.6580903", "text": "public String getName()\r\n/* 38: */ {\r\n/* 39:36 */ return this.name;\r\n/* 40: */ }", "title": "" }, { "docid": "0f5728fa36b59f345182190a1e0f8aed", "score": "0.65659684", "text": "@Override\n\tpublic String getName(){\n\t\treturn name;\n\t}", "title": "" }, { "docid": "a12063cd80a7b931e0e9885a0a4d8b31", "score": "0.6552079", "text": "@Override\n public String getName()\n {\n return name;\n }", "title": "" }, { "docid": "2251e504ad861637c4a4ef99179c3e88", "score": "0.6548302", "text": "public String getName() {\r\n \t\treturn name;\r\n \t}", "title": "" }, { "docid": "f4a154f5cdf19e1615508803b50b524b", "score": "0.6531431", "text": "@Override\n public String getName()\n {\n return getStringValue(\"name\");\n }", "title": "" }, { "docid": "182015d63d4c39510c6302a36bd243a5", "score": "0.65269816", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn \"\";\r\n\r\n\t}", "title": "" }, { "docid": "8d1d082a38a20e050c0d8bc0a987d2dc", "score": "0.6520154", "text": "public String getName()\n\t{ \n\t\treturn name; \n\t}", "title": "" }, { "docid": "100689e04187724b9fbba662c9c11da3", "score": "0.65181583", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "100689e04187724b9fbba662c9c11da3", "score": "0.65181583", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "100689e04187724b9fbba662c9c11da3", "score": "0.65181583", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "100689e04187724b9fbba662c9c11da3", "score": "0.65181583", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "4c203c55ef4ac987b51b1fbcd81503ee", "score": "0.6511931", "text": "public String getName() {return this.name;}", "title": "" }, { "docid": "03568af2c597203929ea8047c5a2d8e8", "score": "0.6506178", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "03568af2c597203929ea8047c5a2d8e8", "score": "0.6506178", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "03568af2c597203929ea8047c5a2d8e8", "score": "0.6506178", "text": "@Override\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "516cf2268a85a97795a0bccbd15ac09e", "score": "0.6500111", "text": "private String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "79b8ed0bc905af6e5a63468494becb05", "score": "0.64865357", "text": "String name()\n\t{\n\t\treturn artiName;\n\t}", "title": "" }, { "docid": "3a9ae0c620a439f9b863f65689eb4b6e", "score": "0.6469187", "text": "@Override\n public String describe() {\n return name;\n }", "title": "" }, { "docid": "7d99a1520bc865f73d210beca1d82b3d", "score": "0.6454867", "text": "@Override\n public String getName() {\n\t\treturn this.name;\n\t}", "title": "" }, { "docid": "b9800dfb3a2def48c6a2dfbbde1c3fc7", "score": "0.645256", "text": "public final String getName()\n\t{\n\t\treturn tag.getString(\"name\");\n\t}", "title": "" }, { "docid": "3cb99d499bc276e3979f51daaab2105c", "score": "0.6451227", "text": "public void handle_sname(final String data, final AttributeList meta) throws SAXException;", "title": "" }, { "docid": "5e44c0503832000351ff0717590e8cfa", "score": "0.644827", "text": "public String getname(){\n\t\treturn name;\n\t}", "title": "" }, { "docid": "2af35c10b075d3f7375a24ebc70700dd", "score": "0.6441887", "text": "@Override\r\n String getName();", "title": "" }, { "docid": "17df91ba8e1ed334994bdc53ff89dddc", "score": "0.644024", "text": "public String getName()\r\n {\r\n \treturn name;\r\n }", "title": "" }, { "docid": "5f08db5617fa38c9d23dd8234ffe7eb8", "score": "0.64354193", "text": "public String getName() { return this.name; }", "title": "" }, { "docid": "5f08db5617fa38c9d23dd8234ffe7eb8", "score": "0.64354193", "text": "public String getName() { return this.name; }", "title": "" }, { "docid": "bc6730e616d41c0c5bdec247427d5a84", "score": "0.6434469", "text": "public String name() {\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "36778a74255d8315a21e53d45bdf1c1e", "score": "0.6434124", "text": "@Override\n\tpublic void getName() {\n\t}", "title": "" }, { "docid": "446f46a328d0d951a484b5ae5ccb5fd3", "score": "0.6429788", "text": "@Override\n\tpublic String getName() {\n\t\treturn _name;\n\t}", "title": "" }, { "docid": "91f70997811dee5634892628edb847c0", "score": "0.64244974", "text": "@Override\n\tpublic String getName() {\n\t\treturn name();\n\t}", "title": "" }, { "docid": "f33334ed2f235a3a2dcc1c77420f2c0e", "score": "0.64172685", "text": "@Override\n\tpublic String getName() {\n\n\t\treturn name;\n\t}", "title": "" }, { "docid": "5ac06b1e0aca590d6df865dfdc354182", "score": "0.641696", "text": "public String getName()\r\n/* 310: */ {\r\n/* 311:495 */ return this.name;\r\n/* 312: */ }", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416614", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416614", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416614", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416614", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416592", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416592", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416592", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6416391", "text": "java.lang.String getName();", "title": "" } ]
721e3f86164fe4febc1e78d821bd4417
Fetch And Insert Weather from network by city coords.
[ { "docid": "fda8f59b07270cb2bfd81b3359c710c1", "score": "0.6256845", "text": "public void requestCurrentWeatherByCityCoords(String lat, String lon) {\n Executors.newSingleThreadScheduledExecutor().execute(() -> {\n mNetworkDataSource.fetchCurrentWeatherByCityCoord(lat, lon);\n });\n }", "title": "" } ]
[ { "docid": "82cd21bfb23fc8ce391b97f8ea2ae531", "score": "0.682621", "text": "private void updateWeatherData(final String city, final String lat, final String lon) {\n //prepare connection request\n APICallService serviceDownloader = new APICallService();\n if (city != null) {\n serviceDownloader.getWeatherDataFromLocation(weatherCallback, city);\n serviceDownloader.getForecastFromLocation(forecastCallback, city, 7 + \"\");\n } else if ((lat != null) && (lon != null)) {\n serviceDownloader.getWeatherDataFromCoord(weatherCallback, lat, lon);\n serviceDownloader.getForecastFromCoord(forecastCallback, lat, lon, 7 + \"\");\n }\n\n }", "title": "" }, { "docid": "3645a0362f909cffc9897b451dff4e47", "score": "0.6522153", "text": "private void getWeatherForNewCity(String city) {\n Log.d(LOGCAT_TAG, \"Getting weather for new city\");\n RequestParams params = new RequestParams();\n params.put(\"q\", city);\n params.put(\"appid\", APP_ID);\n\n letsDoSomeNetworking(params);\n }", "title": "" }, { "docid": "00ff6969d15dd4991e01bcf1dd43525e", "score": "0.62043095", "text": "@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(ForecastCity city);", "title": "" }, { "docid": "4db1a940e51b69264cda22d8ccfd0c61", "score": "0.6144104", "text": "public void requestCurrentWeathersByCityIDs() {\n Executors.newSingleThreadScheduledExecutor().execute(() -> {\n List<Integer> list = getAllWeathersId(); //We get the list of weather ID from the DB\n String idList = Utils.listToCommaValues(list);\n\n mNetworkDataSource.fetchCurrentWeathersByCityIDs(idList);\n });\n }", "title": "" }, { "docid": "2f779582da78534b07f7f38a7a7a4727", "score": "0.5983915", "text": "public void fetch(final String city ) {\n //TODO : chargement depuis le réseau\n AsyncTask<Void , Void , ArrayList<WeatherElement>> asyncTask =\n new AsyncTask<Void, Void, ArrayList<WeatherElement>>() {\n @Override\n protected ArrayList<WeatherElement> doInBackground(Void... voids) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n //La precision du sleep n'est pas importante\n }\n return randomWeatherElements(city);\n }\n\n @Override\n protected void onPostExecute(ArrayList<WeatherElement> res) {\n mElements.clear();\n mElements.addAll(res);\n if (onFetchListener!=null) {\n onFetchListener.onFetch();\n }\n }\n\n };\n asyncTask.execute();\n }", "title": "" }, { "docid": "c8626d3d82052af99911a94f9bc1e9b5", "score": "0.5950606", "text": "private void addCity(String cityName, double lat, double lon) {\r\n\t\t\tcities.put(cityName, new City(cityName,lat,lon));\r\n\t\t\tedges.put(cityName, new LinkedList<>());\r\n\t\t\tbestCost.put(cityName,Double.MAX_VALUE);\r\n\t\t}", "title": "" }, { "docid": "3b681e48af6d6d478e0369ff44f9446c", "score": "0.58431286", "text": "public void insertData(City city) {\n\t\tcityDao.insertData(city);\r\n\t}", "title": "" }, { "docid": "55e9791c003d58a210fcc11ecfe23ac2", "score": "0.58318156", "text": "public void requestCurrentWeatherByCityName(String cityName) {\n Executors.newSingleThreadScheduledExecutor().execute(() -> {\n mNetworkDataSource.fetchCurrentWeatherByCityName(cityName);\n });\n }", "title": "" }, { "docid": "281de751dce0e5f73d27740fa21657d3", "score": "0.5746411", "text": "@GET(\"/data/2.5/weather\")\n Call<WResponse> getWeatherByCity(@Query(\"q\") String city, @Query(\"appid\") String apiKey);", "title": "" }, { "docid": "416b86fb2960940e8346a1bf3816624b", "score": "0.5643768", "text": "public Weather(String newCity) {\n if (newCity.equals(\"\")) {\n newCity = \"Prešov\";\n }\n this.cityName = newCity;\n this.connection = new Connection(cityName);\n }", "title": "" }, { "docid": "f9b88fcdfc50e99bd233561446d9a4ef", "score": "0.56422067", "text": "public void addLocation(int cityId, double lon, double lat, String cityName, Set<WeatherConditionsEntry> weatherConditionsEntries) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = null;\r\n\r\n\t\ttry {\r\n\t\t\ttx = session.beginTransaction();\r\n\t\t\tLocationEntry LE = new LocationEntry(cityId, lon, lat, cityName);\r\n\t\t\tLE.setWeatherConditionsEntries(weatherConditionsEntries);\r\n\t\t\tsession.save(LE); \r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tif (tx!=null) tx.rollback();\r\n\t\t\te.printStackTrace(); \r\n\t\t} finally {\r\n\t\t\tsession.close(); \r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0a166cc0c0d3e9736252b24bc88c7fc7", "score": "0.5630749", "text": "public List<RailwayStation> getAllStationByCityName(String cityName) {\n\t\tList<RailwayStation> railwayStations=new ArrayList<>();\n\t\tString graphQuery=\"\"\n\t\t\t\t+ \"PREFIX a: <https://www.wikidata.org/wiki/Property:> \"\n\t\t\t\t+ \"PREFIX wd:<https://www.wikidata.org/wiki/> \"\n\t\t\t\t+ \"PREFIX schema:<http://www.w3.org/2000/01/rdf-schema#> \"\n\t\t\t\t+ \"PREFIX schemaOrg:<https://schema.org/> \"\n\t\t\t\t+ \"SELECT DISTINCT ?comment ?stationComment ?city ?station ?stationLabel ?stationCoordination ?branchCode {\"\n\t\t\t\t+ \" ?city a:P31 wd:Q484170 ; \"\n\t\t\t\t+ \" schema:label \\\"\"+cityName.toUpperCase()+\"\\\";\"\n\t\t\t\t+ \" schema:comment ?comment .\"\n\t\t\t\t+ \" ?station a:P31 schemaOrg:TrainStation ; \"\n\t\t\t\t+ \" a:P625 ?stationCoordination; \"\n\t\t\t\t+ \" schemaOrg:branchCode ?branchCode; \"\n\t\t\t\t+ \" a:P131 ?city; \"\n\t\t\t\t+ \" schema:comment ?stationComment; \"\n\t\t\t\t+ \" schema:label ?stationLabel . \"\n\t\t\t\t+ \"}\";\n\t\t QueryExecution queryExecution = prepaerQueryExecution(graphQuery);\n\t\t LOG.info(\"EXECUTING SPAREQL QUERY\"); \n\t\t try {\n\t\t for (ResultSet results = queryExecution.execSelect(); results.hasNext();) {\n\t\t QuerySolution qs = results.next();\n\t\t RailwayStation station=new RailwayStation();\n\t\t station.stationUri=qs.get(\"?station\").toString();\n\t\t station.coordination=qs.get(\"?stationCoordination\").toString();\n\t\t station.cityUri=qs.get(\"?city\").toString();\n\t\t station.cityLabel=cityName;\n\t\t station.branchCode=qs.get(\"?branchCode\").toString();\n\t\t station.stationLabel=qs.get(\"?stationLabel\").toString();\n\t\t \n\t\t station.comment=qs.get(\"?stationComment\").toString();\n\t\t station.instanceOf=\"Q484170\";\n\t\t railwayStations.add(station);\n\t\t } \n\t\t queryExecution.close();\n\t\t return railwayStations;\n\t\t } catch (Exception e) {\n\t\t\t e.printStackTrace();\n\t\t\t LOG.info(e.getMessage());\n\t\t\t return null;\n\t\t }\n\t}", "title": "" }, { "docid": "f3f5464bc00885b3df84d4bf0b2411be", "score": "0.56257033", "text": "private void bulkInsert(WeatherEntity[] weathersFromNetwork) {\n Executors.newSingleThreadScheduledExecutor().execute(() -> {\n mWeatherDao.bulkInsert(weathersFromNetwork);\n });\n }", "title": "" }, { "docid": "9f6f3e9f8bdb6a5441923a7614ca3567", "score": "0.5598275", "text": "public void weather(String city){\n ApiInterface apiInterface= ApiClient.getClient().create(ApiInterface.class);\n\n Call<Example> call= apiInterface.getWeatherData(city);\n call.enqueue(new Callback<Example>() {\n @Override\n public void onResponse(Call<Example> call, Response<Example> response) {\n\n temp.setText(\"Temp\"+\" \"+response.body().getMain().getTemp()+\" C\");\n feel.setText(\"Feels Like\"+\" \"+response.body().getMain().getFeels_like());\n humidity.setText(\"Humidity\"+\" \"+response.body().getMain().getHumidity());\n\n }\n\n @Override\n public void onFailure(Call<Example> call, Throwable t) {\n\n }\n });\n }", "title": "" }, { "docid": "64de8815e7a0d97b30dc0cf0bc96e437", "score": "0.5540159", "text": "@Test(enabled = true)\n public void getWeatherByLatAndLng() throws IOException {\n Response<WeatherDetails> responseWeatherCity=weatherWorkflow.getWeatherCity(cityName,apiKey);\n Assert.assertEquals(responseWeatherCity.code(),200,\"Status code does not match\");\n\n WeatherDetails weatherDetailsCity=responseWeatherCity.body();\n Weather weatherCity=weatherDetailsCity.getWeather().get(0);\n\n double lat=weatherDetailsCity.getCoord().getLat();\n double lon=weatherDetailsCity.getCoord().getLon();\n\n Response<WeatherDetails> responseLatLon=weatherWorkflow.getWeatherLatLng(lat,lon,apiKey);\n Assert.assertEquals(responseLatLon.code(),200,\"Status code does not match\");\n\n WeatherDetails weatherDetailsLatLon=responseLatLon.body();\n Weather weatherLatLon=weatherDetailsLatLon.getWeather().get(0);\n\n Assert.assertEquals(weatherDetailsLatLon.getCoord().getLat(),lat,\"Latitude does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getCoord().getLon(),lon,\"Longitude does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getBase(),weatherDetailsCity.getBase(),\"Base does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getName(),weatherDetailsCity.getName(),\"City name does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getId(),weatherDetailsCity.getId(),\"Id does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getCod(),weatherDetailsCity.getCod(),\"Cod does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getVisibility(),weatherDetailsCity.getVisibility(),\"Visibility does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getDt(),weatherDetailsCity.getDt(),\"Dt does not match\");\n\n Assert.assertEquals(weatherLatLon.getId(),weatherCity.getId(),\"Weather id does not match\");\n Assert.assertEquals(weatherLatLon.getMain(),weatherCity.getMain(),\"Weather main does not match\");\n Assert.assertEquals(weatherLatLon.getDescription(),weatherCity.getDescription(),\"Weather description does not match\");\n Assert.assertEquals(weatherLatLon.getIcon(),weatherCity.getIcon(),\"Weather icon does not match\");\n\n Assert.assertEquals(weatherDetailsLatLon.getMain().getTemp(),weatherDetailsCity.getMain().getTemp(),\"Main Temp does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getMain().getTemp_min(),weatherDetailsCity.getMain().getTemp_min(),\"Main Temp min does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getMain().getTemp_max(),weatherDetailsCity.getMain().getTemp_max(),\"Main Temp max does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getMain().getFeels_like(),weatherDetailsCity.getMain().getFeels_like(),\"Main Feel's like does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getMain().getHumidity(),weatherDetailsCity.getMain().getHumidity(),\"Main humidity does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getMain().getPressure(),weatherDetailsCity.getMain().getPressure(),\"Main Pressure does not match\");\n\n Assert.assertEquals(weatherDetailsLatLon.getSys().getType(),weatherDetailsCity.getSys().getType(),\"Sys type does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getSys().getId(),weatherDetailsCity.getSys().getId(),\"Sys id does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getSys().getCountry(),weatherDetailsCity.getSys().getCountry(),\"Sys country does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getSys().getSunrise(),weatherDetailsCity.getSys().getSunrise(),\"Sys sunrise does not match\");\n Assert.assertEquals(weatherDetailsLatLon.getSys().getSunset(),weatherDetailsCity.getSys().getSunset(),\"Sys sunset does not match\");\n }", "title": "" }, { "docid": "92eac062086fe1eab49f99a6f696420e", "score": "0.54872084", "text": "public static WeatherData getWeather(Context context, String city){\n try{\n URL url = new URL(String.format(OPEN_WEATHER_MAP_API, city, context.getString(R.string.open_weather_map_api_key)));\n JSONObject jsonObject = new GetJSONObjectTask().execute(url).get();\n if(jsonObject == null){\n //Something went wrong\n return null;\n }\n\n //Parse the JSONObject into a WeatherData object\n String description = jsonObject.getJSONArray(\"weather\").getJSONObject(0).getString(\"description\");\n String temperature = jsonObject.getJSONObject(\"main\").getString(\"temp\");\n\n return new WeatherData(description, temperature, city);\n } catch (JSONException ex){\n ex.printStackTrace();\n return null;\n } catch (MalformedURLException ex){\n ex.printStackTrace();\n return null;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return null;\n } catch (ExecutionException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "a833669bb4878b6db6165a7c04d93ce7", "score": "0.5482458", "text": "public static void insert(String city, double x, double y)\n {\n root = insert(root, city, x, y);\n System.out.println(city + \" is inserted to the database\"); //show a message when inserting a new element\n }", "title": "" }, { "docid": "ec22f0f0fee8268eea0e6750f1b901c1", "score": "0.5439694", "text": "public void insert(City record) {\n getSqlMapClientTemplate().insert(\"city.ibatorgenerated_insert\", record);\n }", "title": "" }, { "docid": "fbe2b813f0ba2705dfd38e4ecaff04bd", "score": "0.54386944", "text": "public String getCity() throws IOException\r\n {\r\n System.out.println(\"\\nCode-Check-1\\n\");\r\n try{\r\n \r\n System.out.println(\"\\nCode-Check-2\\n\");\r\n GeocodingResult[] results = GeocodingApi.geocode(context, getAddress()).await();\r\n System.out.println(\"\\nCode-Check-3\\n\");\r\n double[] latlng = new double[2];\r\n latlng[0] = results[0].geometry.location.lat;\r\n latlng[1] = results[0].geometry.location.lng;\r\n System.out.println(\"\\nCode-Check-4\\n\");\r\n \r\n System.out.println(\"\\n\" + latlng[0] + \" \" + latlng[1] + \"\\n\");\r\n \r\n LatLng loc = new LatLng(latlng[0], latlng[1]);\r\n \r\n GeocodingResult[] rResults = GeocodingApi.reverseGeocode(context, loc).await();\r\n \r\n String add = results[0].geometry.toString();\r\n \r\n return add;\r\n \r\n \r\n \r\n \r\n }catch(ApiException e){\r\n System.out.println(\"\\n\" + e.toString() + \"\\n\");\r\n System.out.println(\"\\nApi Exception\\n\");\r\n }catch(InterruptedException b){\r\n System.out.println(\"\\n\" + b.toString() + \"\\n\");\r\n }catch(IOException x){\r\n System.out.println(\"\\n\" + x.toString() + \"\\n\");\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "7a39baa5ec0d827537b2e6e77fb59607", "score": "0.5431091", "text": "protected void createAndLoadTableCities() {\n createTableCities();\n insertRow(1, \"USA\", \"San Francisco\");\n insertRow(2, \"USA\", \"Sunnyvale\");\n insertRow(3, \"Czech Republic\", \"Brno\");\n insertRow(4, \"USA\", \"Palo Alto\");\n }", "title": "" }, { "docid": "4b08873b604c618b64e2cd8b85af2def", "score": "0.5410984", "text": "@Override\n\tpublic void insertCity(City city) {\n\t\t\n\t\t\n\t\tcityDao.addCity(city);\n\n\t}", "title": "" }, { "docid": "b559fb54ee77b7704a77316a9be483d9", "score": "0.5407876", "text": "public void fetchWeather() {\n\t\tif (!connected) {\n\t\t\tnoConnectionAlert();\n\t\t} else {\n\t\t\t// Go get the weather!\n\t\t\tHandler dataServieHandler = new Handler() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t\t// Use the respose to populate the weather data table.\n\t\t\t\t\tString response = null;\n\t\t\t\t\tif (msg.arg1 == RESULT_OK && msg.obj != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = (String) msg.obj;\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tLog.e(\"\", e.getMessage().toString());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Parse the weather json object.\n\t\t\t\t\t\tLog.i(\"response\", response);\n\n\t\t\t\t\t\tdisplayWeatherProvider();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tMessenger dataMessenger = new Messenger(dataServieHandler);\n\t\t\tIntent startDataServiceIntent = new Intent(context, DataService.class);\n\t\t\tstartDataServiceIntent.putExtra(DataService.MESSENGER_KEY, dataMessenger);\n\t\t\tString cityNameString = _preferences.getString(\"defaultCity\", \"dallas\");\n\t\t\tstartDataServiceIntent.putExtra(DataService.CITY_KEY, cityNameString);\n\t\t\tstartService(startDataServiceIntent);\n\n\t\t\tLog.i(\"Waiting on servie to end: \", \"Waiting...\");\n\t\t}\n\t}", "title": "" }, { "docid": "b0e864cd1ac8c7a73c1a4accf9a099f4", "score": "0.5394691", "text": "int insert(DisCityregion record);", "title": "" }, { "docid": "a76d93265513e70807d1e23d78f77954", "score": "0.538289", "text": "public ForecastModel getForecastData(String city) throws InterruptedException, ParseException, IOException, net.minidev.json.parser.ParseException {\n JSONObject jsonData = owm.fetch(city, 20);\n ForecastModel weatherModel = new ForecastModel();\n JSONParser parser = new JSONParser();\n\n if( jsonData.size() == 2) {\n // JSONArray jsonError = (JSONArray) parser.parse(jsonData.toString());\n weatherModel.setErrorMessage(jsonData.toString());\n weatherModel.listWeather = null;\n } else {\n\n JSONObject jsonCity = (JSONObject) parser.parse(jsonData.getAsString(\"city\"));\n weatherModel.setCity(jsonCity.getAsString(\"name\"));\n\n List<Weather> weathers = new ArrayList<>();\n\n JSONArray jsonArray = (JSONArray) parser.parse(jsonData.getAsString(\"list\"));\n\n int lastDate = -1;\n int dayCount = 0;\n for (int i = 0; i < jsonArray.size(); i++) {\n if ( dayCount == 3) {\n break;\n }\n Weather weather = new Weather();\n JSONObject jsonItem = (JSONObject) parser.parse(jsonArray.get(i).toString());\n String strDate = jsonItem.get(\"dt_txt\").toString();\n weather.setDate(strDate);\n\n int ttDate = Integer.parseInt(strDate.substring(8,10));\n if (ttDate != lastDate) {\n dayCount++;\n lastDate = ttDate;\n } else {\n continue;\n }\n\n JSONObject jsonMain = (JSONObject) parser.parse(jsonItem.get(\"main\").toString());\n weather.setMinTemp(jsonMain.get(\"temp_min\").toString());\n weather.setMaxTemp(jsonMain.get(\"temp_max\").toString());\n\n JSONArray jsonWeather = (JSONArray) parser.parse(jsonItem.get(\"weather\").toString());\n\n JSONObject jsonInnerMain = (JSONObject) parser.parse(jsonWeather.get(0).toString());\n\n weather.setDesc(jsonInnerMain.get(\"main\").toString());\n weathers.add(weather);\n }\n\n weatherModel.setWeather(weathers);\n }\n\n return weatherModel;\n }", "title": "" }, { "docid": "eca6febfcba256870ffd6dc7993e6427", "score": "0.53761804", "text": "public void saveCity() {\n\t\tindex = 0;\n\t\tStartToGetProvinceList();\n\t}", "title": "" }, { "docid": "2edbf1dd6f8dfbb90643fcdb615aa109", "score": "0.5369235", "text": "void addCity(ICity city);", "title": "" }, { "docid": "b943d12103801511041f5d9cc3fb4c73", "score": "0.5354504", "text": "@Test\n public void insertWeatherTest() throws InterruptedException {\n WeatherModel mStockholm=new WeatherModel();\n mStockholm.setCityName(\"Stockholm\");\n mWeatherDao.insertWeather(mStockholm);\n\n List<WeatherModel> actualValues =LiveDataTestUtil.getValue(mWeatherDao.getAllWeathersLiveData());\n assertNotNull(actualValues);\n int expectedSize=1;\n assertEquals(expectedSize,actualValues.size());\n assertEquals(actualValues.get(0).getCityName(),mStockholm.getCityName());\n }", "title": "" }, { "docid": "389ba54d3fa705bc30e273f4e46e1286", "score": "0.53506094", "text": "public LiveData<Resource<WeatherEntity>> responseFromCurrentWeatherByCityCoord() {\n return mNetworkDataSource.responseFromCurrentWeatherByCityCoord();\n }", "title": "" }, { "docid": "81c45bd95830b39ca31172700a8a8253", "score": "0.532582", "text": "@Override\n protected Void doInBackground(String... params) {\n String jsonUrl = \"http://api.openweathermap.org/data/2.5/forecast/daily?\" +\n \"q=Malang&units=metric&cnt=6&APPID=a4f161b4c56a2e0a250cf9c5ecf892b8\";\n\n // Creating service handler class instance\n ServiceHandler sh = new ServiceHandler();\n\n // Making a request to url and getting response\n String jsonStr = sh.makeServiceCall(jsonUrl, ServiceHandler.GET);\n\n// ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n// NetworkInfo info = cm.getActiveNetworkInfo();\n// if (info != null) {\n// if (!info.isConnected()) {\n// Toast.makeText(mContext, \"Koneksi Gagal\", Toast.LENGTH_SHORT).show();\n// jsonStr = null;\n// }\n// }\n\n// HttpURLConnection urlConnection = null;\n//\n// try {\n// URL url = new URL(jsonUrl);\n// urlConnection = (HttpURLConnection) url.openConnection();\n// InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n// readStream(in);\n// } catch (IOException e) {\n// e.printStackTrace();\n// } finally{\n// urlConnection.disconnect();\n// }\n\n Log.d(\"Response: \", \"> \" + jsonStr);\n DatabaseHelper db = new DatabaseHelper(mContext);\n\n if (jsonStr != null) {\n try {\n JSONObject jsonObj = new JSONObject(jsonStr);\n\n JSONObject cityObj = jsonObj.getJSONObject(\"city\");\n String cityName = cityObj.getString(\"name\");\n\n JSONArray weatherArray = jsonObj.getJSONArray(\"list\");\n\n Time dayTime = new Time();\n dayTime.setToNow();\n\n // we start at the day returned by local time. Otherwise this is a mess.\n int julianStartDay = Time.getJulianDay(System.currentTimeMillis(), dayTime.gmtoff);\n\n // now we work exclusively in UTC\n dayTime = new Time();\n\n // looping through All Contacts\n for (int i = 0; i < weatherArray.length(); i++) {\n long dt;\n int weatherId;\n Date dateWeather = new Date();\n double windSpeed;\n int high;\n int low;\n double humidity;\n String description;\n int id_status;\n JSONObject dailyWeather = weatherArray.getJSONObject(i);\n\n // Cheating to convert this to UTC time, which is what we want anyhow\n\n dt = dailyWeather.getLong(\"dt\");\n humidity = dailyWeather.getDouble(\"humidity\");\n windSpeed = dailyWeather.getDouble(\"speed\");\n\n JSONObject weatherObject =\n dailyWeather.getJSONArray(\"weather\").getJSONObject(0);\n description = weatherObject.getString(\"description\");\n id_status = weatherObject.getInt(\"id\");\n JSONObject tempObject = dailyWeather.getJSONObject(\"temp\");\n high = tempObject.getInt(\"max\");\n low = tempObject.getInt(\"min\");\n\n String date = ConvertFromUnixString(dt);\n //check if table Weather has same data\n// IDWeather = db.getIDWeather();\n// for(int j= 0; j < IDWeather.size();j++){\n// if(String.valueOf(dt).equals(IDWeather.get(j))){\n// Log.d(\"Response: \", \"> \" + j);\n// }\n// }\n db.deleteWeather(dt);\n db.createWeather(dt, date, String.valueOf(high),\n windSpeed, humidity, description,id_status);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n Log.e(\"ServiceHandler\", \"Tidak bisa mendapat data dari URL yang diminta\");\n control = 0;\n }\n return null;\n }", "title": "" }, { "docid": "bfefc48e8d3ff03677613ce1f8f529cb", "score": "0.5297091", "text": "int insert(HatCity record);", "title": "" }, { "docid": "4fd1361b87c085769533474ea1a71a98", "score": "0.5281839", "text": "public void insertWeather(WeatherEntity weatherEntity) {\n Executors.newSingleThreadScheduledExecutor().execute(() -> {\n mWeatherDao.insert(weatherEntity);\n Log.d(TAG, \"Weather object inserted: \" + weatherEntity.toString());\n });\n }", "title": "" }, { "docid": "db6cdd9a7d67f7e92a776acc790a9451", "score": "0.5275295", "text": "@Override\n public void setCity(java.lang.String city) {\n _weather.setCity(city);\n }", "title": "" }, { "docid": "3533b1ab7148b102dc3c98194963a106", "score": "0.525973", "text": "int insert(AddressCity record);", "title": "" }, { "docid": "ae03d884b379c33d4f2fa585dcb1a928", "score": "0.523772", "text": "public static void fetchCities(String filename) {\r\n\t\tlog.info(\"Enter:FetchCities:fetchCities:input=\" + filename);\r\n\t\t// adding input stream and buffered reader to read data from file\r\n\t\t// kept in server classpath\r\n\t\tif (filename != null) {\r\n\t\t\ttry (InputStream inputStream = FetchCities.class.getResourceAsStream(filename);\r\n\t\t\t\t\tBufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));) {\r\n\t\t\t\tString line = \"\";\r\n\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\tif (line != null && !line.isEmpty()\r\n\t\t\t\t\t\t\t&& !FetchCitiesInterface.NA.equalsIgnoreCase(line.toLowerCase())) {\r\n\t\t\t\t\t\tnode.insert(FetchUtility.format(line));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tlog.info(\"Exit:FetchCities:fetchCities\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.info(\"Exception While reading data from cities\" + e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f7ad857c66d40a92e4f35cba07263c42", "score": "0.5213106", "text": "City createCity();", "title": "" }, { "docid": "6edfc2ee1a467c28721e9cc484ba6069", "score": "0.52036864", "text": "@Override\n public java.lang.String getCity() {\n return _weather.getCity();\n }", "title": "" }, { "docid": "6c0c3c1c825075e5b3c8864067b52d42", "score": "0.51963794", "text": "public List<Weather> getWeatherDetails(){\n List<Weather> weatherDetails = new ArrayList<>();\n\n WeatherSource consolidatedWeather = restTemplate.getForObject(\"https://www.metaweather.com/api/location/\"\n + getCityDetails().get(1) + \"/\"\n , WeatherSource.class);\n\n for(int i = 0; i< 6; i++) {\n weatherDetails.add(new Weather(\n consolidatedWeather.getConsolidatedWeather().get(i).getApplicableDate()\n , getCityDetails().get(0)\n , String.format(\"%.1f\",consolidatedWeather.getConsolidatedWeather().get(i).getTheTemp())\n , String.format(\"%.1f\",consolidatedWeather.getConsolidatedWeather().get(i).getAirPressure())\n , String.format(\"https://www.metaweather.com/static/img/weather/png/64/%s.png\"\n ,consolidatedWeather.getConsolidatedWeather().get(i).getWeatherStateAbbr())\n ));\n }\n return weatherDetails;\n }", "title": "" }, { "docid": "112260568ab38293d3dd991e18edabfa", "score": "0.51757115", "text": "public void createCity(City request, StreamObserver<CityResponsePDB> response) {\n\t\tlogger.info(\"Create city request.\");\n\t\ttry (DAO dao = new DAO(URL, USER_NAME, PASSWORD)) {\n\t\t\tContext context = Context.current();\n\n\t\t\tint res = dao.createCity(request);\n\n\t\t\tCity cityRes = request.toBuilder().setCityId(res).build();\n\t\t\tresponse.onNext(CityResponsePDB.newBuilder().setValid(true).setCity(cityRes).build());\n\t\t\tresponse.onCompleted();\n\t\t} catch (Exception e) {\n\t\t\tresponse.onError(e);\n\t\t}\n\t}", "title": "" }, { "docid": "34b1da3c8a5ae97a63ccd963b65af71f", "score": "0.51662594", "text": "@Override\n public void run() {\n appProperties.getSupportedCities()\n .stream()\n .forEach(\n city -> {\n try {\n cityWeatherGetAndSave.retrieveAndSave(city);\n } catch (Exception e) {\n log.error(\"Failed to retrieveAndSave city [{}]\", city, e);\n }\n });\n }", "title": "" }, { "docid": "d3535222b88453b420d64097d8d3a013", "score": "0.515607", "text": "public static City getWeather(City city) throws JSONException {\n if (city.getWeather() != null)\n return city;\n if (city.getName() == null)\n throw new IllegalArgumentException(\"City name cannot be null\");\n StringBuilder builder = new StringBuilder(URL_WEATHER);\n builder.append(\"?APPID=06f5d0a2897bb6ff29791c3f0ce85188\");\n builder.append(\"&lang=ru&q=\");\n builder.append(city.getName().replaceAll(\" \", \"%20\"));\n String response = makeGetRequest(builder.toString());\n if (response == null)\n return city;\n\n JSONObject body = new JSONObject(response);\n if (!body.has(\"cod\") || body.getInt(\"cod\") != 200) {\n return city;\n }\n if (!body.getJSONObject(\"sys\").getString(\"country\").equals(\"KZ\")) {\n return city;\n }\n double temp = body.getJSONObject(\"main\").getDouble(\"temp\");\n city.setWeather(String.valueOf((int)(temp - 273.15)) + \"°C\");\n return city;\n }", "title": "" }, { "docid": "89768f2a03ed01297bd0bb0a98d4e078", "score": "0.5155208", "text": "public List<Weather> _queryWeatherResult_Weather_data(String currentCity) {\n synchronized (this) {\n if (weatherResult_Weather_dataQuery == null) {\n QueryBuilder<Weather> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.CurrentCity.eq(null));\n weatherResult_Weather_dataQuery = queryBuilder.build();\n }\n }\n Query<Weather> query = weatherResult_Weather_dataQuery.forCurrentThread();\n query.setParameter(0, currentCity);\n return query.list();\n }", "title": "" }, { "docid": "ec447637693006e1b414a8ca1a506119", "score": "0.51512665", "text": "private void startFetchWeatherService() {\n mNetworkDataSource.startFetchWeatherService();\n }", "title": "" }, { "docid": "56a675dd93d5ce9e0ada6681f2c1cb6d", "score": "0.5145911", "text": "public void insertCities(City[] cities) {\r\n new insertCities(this.cityDao).execute(cities);\r\n }", "title": "" }, { "docid": "d97361c3b8ca39e1b1de164e6be2dfb3", "score": "0.5138509", "text": "@Override\n public Weather getWeatherByCityId(String cityId) throws Exception {\n String uri = WeatherConstant.WEATHER_URI;\n return this.doGetWeahter(uri);\n }", "title": "" }, { "docid": "0fba76ae25bebe31d2ff20dee71ca12f", "score": "0.5138366", "text": "@Test(enabled = true)\n public void getCitiesInCircle() throws IOException{\n double lat= Constants.lat;\n double lon=Constants.lon;\n int cnt=Constants.cnt;\n String firstCity=Constants.firstCity;\n String secondCity=Constants.secondCity;\n\n Response<CitiesData> responseWeatherCity=weatherWorkflow.getWeatherCityInCircle(lat,lon,cnt,apiKey);\n Assert.assertEquals(responseWeatherCity.code(),200,\"Status code does not match\");\n\n CitiesData citiesData= responseWeatherCity.body();\n Assert.assertEquals(citiesData.getCount(),cnt,\"Count does not match\");\n\n List<WeatherDetails> weatherDetails=citiesData.getList();\n Assert.assertEquals(weatherDetails.size(),cnt,\"List size does not match with count\");\n Assert.assertEquals(weatherDetails.get(0).getName(),firstCity,\"First city name does not match\");\n Assert.assertEquals(weatherDetails.get(1).getName(),secondCity,\"Second city name does not match\");\n\n }", "title": "" }, { "docid": "2a6bb853b98fe321f2c2f802a93bb5c4", "score": "0.51373494", "text": "@Test\n public void testCityFound() throws Exception {\n\n City test1 = new City(0, \"AwesomeTown\", \"USA\", \"District 88\", 88);\n\n // returns test1 mock city object from cityRepository\n given(cityRepository.findByName(\"AwesomeTown\")).willReturn(List.of(test1));\n\n // returns country code and country from countryRepository\n given(countryRepository.findByCode(\"USA\")).willReturn(new Country(\"USA\", \"United States\"));\n\n // return temp and time of mock city from weatherservice\n given(weatherService.getTempAndTime(\"AwesomeTown\"))\n .willReturn(new TempAndTime(304.27, 1594075040, 0));\n\n // call the cityService to retrieve converted data\n CityInfo inp_data = cityService.getCityInfo(\"AwesomeTown\");\n\n CityInfo exp_data = new CityInfo(0, \"AwesomeTown\", \"USA\", \"United States\", \"District 88\", 88,\n 88.0, \"10:37:20 PM\");\n\n // verify the actual data entered and retrieved is same as expected data\n // (exp_data)\n assertThat(inp_data).isEqualTo(exp_data);\n\n }", "title": "" }, { "docid": "78555ddf25999a38d847cfb9cd3f5d29", "score": "0.51331586", "text": "public WeatherDO getWeather(PlaceDO place) {\n\t\ttry {\r\n\t\t\tThread.sleep(200);\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//FIXME call connectors layer\r\n\t\tRandom gen = new Random();\r\n\t\tint temp = gen.nextInt(10);\r\n\t\treturn new WeatherDO(temp);\r\n\t}", "title": "" }, { "docid": "77b7b11b488b04fb75c8ca6c4303ba80", "score": "0.5128481", "text": "@Override\r\n\tpublic void updateData(City city) {\n\t\tcityDao.updateData(city);\r\n\t}", "title": "" }, { "docid": "aeb048df86d64ffff4ced9794103b358", "score": "0.51237804", "text": "static String callWeatherURL (String cityName) {\n //local variables\n StringBuilder stringFromURL = new StringBuilder();\n String line;\n //try opeing theURL and connect with HttpURL\n try {\n URL weatherURL = new URL(\"http://api.openweathermap.org/data/2.5/weather?q=\" + cityName +\"&appid=3f01dd8e1a3a11d5a104e6c56bb45be6\");\n HttpURLConnection connection = (HttpURLConnection) weatherURL.openConnection();\n connection.setRequestMethod(\"GET\");\n //bufferedReader allows for each line in website returned to be read in json\n BufferedReader oneLine = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n //so,., store the json lines into stringbuilder\n while ((line = oneLine.readLine()) != null) {\n stringFromURL.append(line);\n }\n oneLine.close();\n //then send it to be parsed\n return parseIntoReadableWeather(stringFromURL.toString());\n }\n //if something goes wrong and try catch is not able to execute completely throw error\n catch (Exception e) {\n return \"Error found! Exception \" + e + \" thrown\";\n }\n }", "title": "" }, { "docid": "3f19235dd0b44c0b1406a2c8cab4c126", "score": "0.5121604", "text": "private void insertarPuntos() {\n List <Site> sites= localDB.selectAllSitesFromRally(rallyId);\n\n for (int i=0; i<sites.size();i++) {\n\n Location nuevo = new Location(\"dummyprovider\");\n nuevo.setLatitude(Double.parseDouble(sites.get(i).getLatitud()));\n nuevo.setLongitude(Double.parseDouble(sites.get(i).getLongitud()));\n\n if (estaAdentro(nuevo)) {\n if (sites.get(i).getStatus() == 1) {\n addMarker(new GeoPoint(nuevo.getLatitude(), nuevo.getLongitude()), 1, \"1\");\n }\n if (sites.get(i).getStatus() == 2) {\n addMarker(new GeoPoint(nuevo.getLatitude(), nuevo.getLongitude()), 2, \"2\");\n }\n if (sites.get(i).getStatus()==3){\n addMarker(new GeoPoint(nuevo.getLatitude(), nuevo.getLongitude()), 3, \"3\");\n }\n }\n }\n }", "title": "" }, { "docid": "fd32ee18e172cd8984ed3f53f48e545d", "score": "0.51171076", "text": "@Test\n public void getWeatherTest() throws InterruptedException {\n final int EXPECTED_SIZE=2;\n WeatherModel mWeather1=new WeatherModel();\n mWeather1.setCityName(\"Stockholm\");\n mWeatherDao.insertWeather(mWeather1);\n WeatherModel mWeather2=new WeatherModel();\n mWeather2.setCityName(\"Tabriz\");\n mWeatherDao.insertWeather(mWeather2);\n List<WeatherModel>weathers =LiveDataTestUtil.getValue(mWeatherDao.getAllWeathersLiveData());\n assertEquals(EXPECTED_SIZE,weathers.size());\n WeatherModel actualValue =mWeatherDao.getWeather(\"Stockholm\");\n assertNotNull(actualValue);\n assertEquals(\"Stockholm\",actualValue.getCityName());\n }", "title": "" }, { "docid": "a56fa260c69dfe1052e2d3817d2ebed7", "score": "0.5115306", "text": "public void getDetails(CityInfo cityInfo);", "title": "" }, { "docid": "b4ec4717d2cd30dead774ae5eb887a38", "score": "0.5108672", "text": "private ArrayList<Weather> startServices(String city, String codeNation)\n\t{\n\n\t\tLog.v(TAG, \"Starting Services for \" + city + \",\" + codeNation);\n\t\tArrayList<Weather> list = new ArrayList<Weather>();\n\n\t\t//create the instances for the providers\n\t\tYahooHttpService yahooService = new YahooHttpService(city, codeNation);\n\t\tOpenWeatherMapHttpService openWeatherService = new OpenWeatherMapHttpService(city, codeNation);\n\t\tWorldWeatherOnlineHttpService worldWeatherService = new WorldWeatherOnlineHttpService(city, codeNation);\n\n\t\t/*\n\t\t * start the retrieval of the information, adding the new object to the\n\t\t * list only if the connection has been succesful\n\t\t */\n\t\ttry\n\t\t{\n\t\t\tWeather fromYahoo = yahooService.retrieveWeather();\n\t\t\tif (fromYahoo != null)\n\t\t\t{\n\t\t\t\tlist.add(fromYahoo);\n\t\t\t}\n\t\t\tWeather fromOpenWeather = openWeatherService.retrieveWeather();\n\t\t\tif (fromOpenWeather != null)\n\t\t\t{\n\t\t\t\tlist.add(fromOpenWeather);\n\t\t\t}\n\t\t\tWeather worldWeather = worldWeatherService.retrieveWeather();\n\t\t\tif (worldWeather != null)\n\t\t\t{\n\t\t\t\tlist.add(worldWeather);\n\t\t\t}\n\t\t} catch (InterruptedException e)\n\t\t{\n\t\t\tLog.v(TAG, e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (ExecutionException e)\n\t\t{\n\t\t\tLog.v(TAG, e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (JSONException e)\n\t\t{\n\t\t\tLog.v(TAG, e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn list;\n\t}", "title": "" }, { "docid": "5e637589b53f91e884fa713dabcfecba", "score": "0.5094762", "text": "private void initCities(){\n\t\tList<City> cities = ac.getCities();\n\t\tfor(City c: cities){\n\t\t\taddCity(c);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9616e4e87c8351a40596c07439161713", "score": "0.5090279", "text": "int insertSelective(AddressCity record);", "title": "" }, { "docid": "0c66ef39bd3c96ad26dafb3cf32ecf8c", "score": "0.5089986", "text": "public void listLocations() {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = null;\r\n\r\n\t\ttry {\r\n\t\t\ttx = session.beginTransaction();\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<LocationEntry> locations = (List<LocationEntry>) session.createQuery(\"FROM LocationEntry\").list();\r\n\r\n\t\t\tfor(Iterator<LocationEntry> iterator1 = locations.iterator(); iterator1.hasNext();) {\r\n\t\t\t\tLocationEntry location = (LocationEntry) iterator1.next();\r\n\t\t\t\tSystem.out.println(\"CityID: \" + location.getCityID());\r\n\t\t\t\tSystem.out.println(\"Longitude: \" + location.getLon());\r\n\t\t\t\tSystem.out.println(\"Latitude: \" + location.getLat());\r\n\t\t\t\tSystem.out.println(\"CityName: \" + location.getCityName());\r\n\t\t\t\tSet<WeatherConditionsEntry> weatherConditionsEntries = location.getWeatherConditionsEntries();\r\n\t\t\t\tfor(Iterator<WeatherConditionsEntry> iterator2 = weatherConditionsEntries.iterator(); iterator2.hasNext();) {\r\n\t\t\t\t\tWeatherConditionsEntry weatherCondition = (WeatherConditionsEntry) iterator2.next();\r\n\t\t\t\t\tSystem.out.println(\"Temperature: \" + weatherCondition.getTemperature());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tif (tx!=null) tx.rollback();\r\n\t\t\te.printStackTrace(); \r\n\t\t} finally {\r\n\t\t\tsession.close(); \r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f9e1ff83c70e12f8c00f3971c32ce26", "score": "0.5080083", "text": "public void setCity(String city) {\n this.city = city;\n }", "title": "" }, { "docid": "8f9e1ff83c70e12f8c00f3971c32ce26", "score": "0.5080083", "text": "public void setCity(String city) {\n this.city = city;\n }", "title": "" }, { "docid": "8f9e1ff83c70e12f8c00f3971c32ce26", "score": "0.5080083", "text": "public void setCity(String city) {\n this.city = city;\n }", "title": "" }, { "docid": "8f9e1ff83c70e12f8c00f3971c32ce26", "score": "0.5080083", "text": "public void setCity(String city) {\n this.city = city;\n }", "title": "" }, { "docid": "8f9e1ff83c70e12f8c00f3971c32ce26", "score": "0.5080083", "text": "public void setCity(String city) {\n this.city = city;\n }", "title": "" }, { "docid": "165442983de934b6613e04afd9026af5", "score": "0.5074696", "text": "public WeatherData doInBackground(String... locations) {\n mLocation = locations[0];\n return getWeatherSync(mLocation);\n }", "title": "" }, { "docid": "3c1c915ed476c3d97a2ead9b46acdbc9", "score": "0.50695086", "text": "public void loadLocations() {\n DatabaseResult result = executeQuery(\"SELECT * FROM `Locations`\");\n while(result.getResult()) {\n Location.Manager.newLocation(result.getInt(\"id\"), new Location(result.getInt(\"x\"),result.getInt(\"y\"),result.getInt(\"z\")));\n }\n result.endResult();\n }", "title": "" }, { "docid": "db075aced9d8ba1152cc0b566ddec116", "score": "0.50654316", "text": "CustomerList setCity(String city);", "title": "" }, { "docid": "1205b596162a8dcf997023459e9cb39e", "score": "0.50650764", "text": "int insertSelective(DisCityregion record);", "title": "" }, { "docid": "f1f292f7230018fae4aa1f286b8a20cc", "score": "0.5064698", "text": "int insertSelective(HatCity record);", "title": "" }, { "docid": "64559f0706e43868cca2497688a14fef", "score": "0.5050273", "text": "@Test\n public void testFindByNearCity() throws Exception {\n System.out.println(\"findByNearCity\");\n String nearCity = \"Pecky\";\n Location location = new Location();\n location.setDescription(\"Near by lake, right side of dirty road\");\n location.setNearCity(\"Nova ves\");\n location.setName(\"Hribova u vody\");\n \n Location location2 = new Location();\n location2.setDescription(\"Under big spruce on blue tourinst way\");\n location2.setNearCity(\"Jedlova\");\n location2.setName(\"Pod smrkem\");\n \n Location location3 = new Location();\n location3.setDescription(\"Around big stone\");\n location3.setNearCity(\"Pecky\");\n location3.setName(\"Kamen\");\n \n locDimpl.save(location);\n locDimpl.save(location2);\n locDimpl.save(location3);\n \n List<Location> locationList = locDimpl.findByNearCity(nearCity);\n assertEquals(locationList.size(), 1);\n compareLocation(location3, locationList.get(0));\n }", "title": "" }, { "docid": "03c019c4ee09de89fb3681a059f6484b", "score": "0.504464", "text": "public void createCities(int numCities) {\r\n\t\tresetCities(); //Reset the current set of cities before creating a new one\r\n\t\tfor(int i = 0; i < numCities; i++) {\r\n\t\t\tPoint2D location = new Point2D((double) rand.nextInt(Interface.MAP_WIDTH), \r\n\t\t\t\t\t(double) rand.nextInt(Interface.MAP_HEIGHT)); //Generate a random location for the city\r\n\t\t\taddCity(location);\r\n\t\t}\r\n\t\tcreateConnections(\"\", 0, 0);\r\n\t\tview.showAlert(\"Cities Created\", \"Finished creating \" + numCities + \" cities\");\r\n\t}", "title": "" }, { "docid": "ea54faa2ff316c1d9e03dc89d294b112", "score": "0.5043787", "text": "public static void insertDatabase(com.fpt.router.artifacter.model.entity.CityMap map) {\n RouteDAO routeDAO = new RouteDAO();\n StationDAO stationDAL = new StationDAO();\n TripDAO tripDao = new TripDAO();\n PathInfoDAO pathInfoDAO = new PathInfoDAO();\n ConnectionDAO connectionDAO = new ConnectionDAO();\n\n //insert station\n List<com.fpt.router.artifacter.model.entity.Station> stations = map.getStations();\n for (com.fpt.router.artifacter.model.entity.Station station : stations) {\n System.out.println(\"Insert Station : \" + station.getName());\n stationDAL.create(station);\n }\n\n System.out.println(\"------------------------------------------\");\n\n List<com.fpt.router.artifacter.model.entity.Route> routes = map.getRoutes();\n for (com.fpt.router.artifacter.model.entity.Route route : routes) {\n System.out.println(\"Route : \" + route.getRouteName());\n routeDAO.create(route);\n\n //insert PathInfo\n List<com.fpt.router.artifacter.model.entity.PathInfo> pathInfos = route.getPathInfos();\n for (com.fpt.router.artifacter.model.entity.PathInfo pathInfo : pathInfos) {\n if (pathInfo.getTo() != null) {\n System.out.println(\"\\tPath Info: From \" + pathInfo.getFrom().getName() +\n \"To: \" + pathInfo.getTo().getName());\n } else {\n System.out.println(\"\\tPath Info: From \" + pathInfo.getFrom().getName() +\n \"To: Null\");\n }\n\n pathInfoDAO.create(pathInfo);\n }\n\n //insert trip - connection\n List<com.fpt.router.artifacter.model.entity.Trip> trips = route.getTrips();\n for (com.fpt.router.artifacter.model.entity.Trip trip : trips) {\n System.out.println(\"Trip : \" + trip.getTripNo() +\n \"Start totalTime: \" + trip.getStartTime() + \" End Time: \" + trip.getEndTime());\n tripDao.create(trip);\n for (com.fpt.router.artifacter.model.entity.Connection conn : trip.getConnections()) {\n System.out.println(\"\\t\\tConnection : \" + conn.getArrivalTime());\n connectionDAO.create(conn);\n }\n }\n }\n }", "title": "" }, { "docid": "2c130eb3d7d669717afcb2d691a84d63", "score": "0.50352037", "text": "@CrossOrigin(origins = {\"http://localhost:9000\", \"http://34.238.121.215:9000\"})\n @RequestMapping(value = \"/cities/{idBoard}/{day}\")\n\tprivate Response findForecastByDay(\n\t\t\t@PathVariable(\"idBoard\") Long idBoard, \n\t\t\t@PathVariable(\"day\") String day) {\n\t\ttry {\n\t\t\tList<CityForecast> respCities = new ArrayList<CityForecast>();\n\t\t\tString strCitiesId = \"\";\n\t\t\tCityForecast newCity;\n\t\t\t\n\t\t\tList<City> cities = cityRepository.findByBoards_Id(idBoard);\n\t\t\t\n\t\t\tfor(City city : cities) {\n\t\t\t\tstrCitiesId += city.getWoeid() + \",\";\n\t\t\t}\n\t\t\tstrCitiesId = strCitiesId.substring(0, strCitiesId.length()-1);\n\t\t\tString query = \"select * from weather.forecast where woeid in (\"+strCitiesId+\")\";\n\t\t\t\n\t\t\tString url = \"https://query.yahooapis.com/v1/public/yql?q=\"+java.net.URLEncoder.encode(query, \"UTF-8\")+\"&format=json\";\n\t\t\t\n\t\t\tURL obj = new URL(url);\n\t\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\t\n\t\t\tBufferedReader in = new BufferedReader(\n\t\t\t new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer response = new StringBuffer();\n\t\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\t\n\t\t\tJSONObject jsonData = new JSONObject(response.toString());\n\t\t\t\n\t\t\tJSONArray jsonForecast;\n\t\t\tJSONObject objFC;\n\t\t\tif(cities.size()>1) {\n\t\t\t\tJSONArray jsonCities = jsonData.getJSONObject(\"query\").getJSONObject(\"results\").getJSONArray(\"channel\");\n\t\t\t\tfor(int i = 0; i < jsonCities.length(); i++){\n\t\t\t\t\t\n\t\t\t\t\tnewCity = new CityForecast();\n\t\t\t\t\tjsonForecast = jsonCities.getJSONObject(i).getJSONObject(\"item\").getJSONArray(\"forecast\");\n\t\t\t\t\t\n\t\t\t\t\tfor(int j = 0; j < jsonForecast.length(); j++) {\n\t\t\t\t\t\tobjFC = jsonForecast.getJSONObject(j);\n\t\t\t\t\t\tif(objFC.getString(\"day\").toString().trim().equalsIgnoreCase(day.trim())) {\n\t\t\t\t\t\t\tnewCity.setName(cities.get(i).getName());\n\t\t\t\t\t\t\tnewCity.setMaxTemp(objFC.getInt(\"high\"));\n\t\t\t\t\t\t\tnewCity.setMinTemp(objFC.getInt(\"low\"));\n\t\t\t\t\t\t\tnewCity.setText(objFC.getString(\"text\"));\n\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\t\n\t\t\t\t\trespCities.add(newCity);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tJSONObject jsonCities = jsonData.getJSONObject(\"query\").getJSONObject(\"results\").getJSONObject(\"channel\");\n\n\t\t\t\tnewCity = new CityForecast();\n\t\t\t\tjsonForecast = jsonCities.getJSONObject(\"item\").getJSONArray(\"forecast\");\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j < jsonForecast.length(); j++) {\n\t\t\t\t\tobjFC = jsonForecast.getJSONObject(j);\n\t\t\t\t\tif(objFC.getString(\"day\").toString().trim().equalsIgnoreCase(day.trim())) {\n\t\t\t\t\t\tnewCity.setName(cities.get(0).getName());\n\t\t\t\t\t\tnewCity.setMaxTemp(objFC.getInt(\"high\"));\n\t\t\t\t\t\tnewCity.setMinTemp(objFC.getInt(\"low\"));\n\t\t\t\t\t\tnewCity.setText(objFC.getString(\"text\"));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trespCities.add(newCity);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn new Response(\"success\", respCities);\n\t\t} catch (Exception ex) {\n\t\t\treturn new Response(\"error\", ex.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "8b10884a6b454e2b2133d0077c0314d9", "score": "0.5033956", "text": "public List<String> getCityDetails(){\n WeatherSource[] getParent = restTemplate.getForObject(\n String.format(\"https://www.metaweather.com/api/location/search/?query=%s\"\n , getCity.get(0).getNameCity())\n ,WeatherSource[].class);\n Map<String, String> cityparameters = new HashMap<>();\n\n for (WeatherSource weatherSource : getParent) {\n cityparameters.putIfAbsent(\"title\", weatherSource.getTitle());\n cityparameters.putIfAbsent(\"woeid\", weatherSource.getWoeid().toString());\n }\n List<String> cityDetail = new ArrayList<>();\n if(cityparameters.get(\"woeid\") == null){\n cityDetail.add(\"Warsaw\");\n cityDetail.add(\"523920\");\n return cityDetail;\n }\n cityDetail.add(cityparameters.get(\"title\"));\n cityDetail.add(cityparameters.get(\"woeid\"));\n return cityDetail;\n }", "title": "" }, { "docid": "02cf75203f5f05f4012b2c70ac6a55af", "score": "0.5032976", "text": "public static String cityOfIP(String ip) throws IOException, GeoIp2Exception {\n File database = new File(dbFile);\n System.out.println(dbFile);\n\n // This creates the DatabaseReader object. To improve performance, reuse\n // the object across lookups. The object is thread-safe\n DatabaseReader reader = new DatabaseReader.Builder(database).build();\n InetAddress ipAddress = InetAddress.getByName(ip);\n\n // Replace \"city\" with the appropriate method for your database, e.g.,\n // \"country\".\n CityResponse response = reader.city(ipAddress);\n\n City city = response.getCity();\n\n return city.getName();\n }", "title": "" }, { "docid": "eeb6bb311a67a3fbbb9a941fc4fd6a7d", "score": "0.50207514", "text": "public City() {\r\n\t\tthis.cityMap = new Street[20];\r\n\r\n\t}", "title": "" }, { "docid": "3fc1c369ec9d7994726002206a71846c", "score": "0.50155324", "text": "private void convertGpsLocToCity() {\r\n\t\tGeocoder gcd = new Geocoder(this, Locale.getDefault());\r\n\t\tList<Address> addresses = null;\r\n\t\ttry {\r\n\t\t\taddresses = gcd.getFromLocation(lat, lon, 1);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tif(addresses != null) {\r\n\t\t\tif (addresses.size() > 0) {\r\n\t\t\t\tcity = addresses.get(0).getLocality();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If we can't get a city, we set the text to Unknown\r\n\t\telse {\r\n\t\t\tcity = \"Unknown\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1346c41c3c1b0b3654d44328fb7d8ff", "score": "0.5014831", "text": "@Override\n public JsonWeatherStore loadInBackground() {\n increaseApiCalls();\n hideAllViews();\n\n URL getURL = NetUtils.buildWeatherUrl(destinationLat, destinationLong, WEATHER_FORMAT, oWeatherKey);\n try {\n String jsonWeatherResponse = NetUtils\n .getResponseFromHttpUrl(getURL);\n\n JsonWeatherStore simpleJsonWeatherData = DataUtils\n .getWeatherStringsFromJson(jsonWeatherResponse);\n\n return simpleJsonWeatherData;\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "5852cb4e6a918d49d59e8262322d558f", "score": "0.49996507", "text": "Network(LinkedList<String> cities)\n\t{\n\t\tthis.cities.addAll(cities);\n\t}", "title": "" }, { "docid": "4fa2d281294bcf6ab0e96033728ad028", "score": "0.4996094", "text": "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "title": "" }, { "docid": "4fa2d281294bcf6ab0e96033728ad028", "score": "0.4996094", "text": "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "title": "" }, { "docid": "c4873b2761c398732d0b8e5f07ed4234", "score": "0.4984516", "text": "public City(int cityID, String cityName)\n\t{\n\t\tthis.cityID = cityID;\n\t\tthis.cityName = cityName;\n\t\tneighbors = new LinkedList<City>();\n\t}", "title": "" }, { "docid": "ca2324449921572204fde2aff543cded", "score": "0.49801657", "text": "public void testGetPhotoByGeoAndWeather() {\n PhotoService photo = null;\n int weatherId = 601;\n double lat = 51.549978;\n double lng = -0.180459;\n double rad = 0.01;\n \ttry {\n \t photo = new PhotoService(dbHost, dbPort, dbName, photoHost);\n ArrayList<Photo> photos = photo.geoCoord(lat, lng, rad)\n .weatherId(weatherId).get();\n for (Photo p: photos) {\n assertEquals(p.getWeatherId(), weatherId);\n assertTrue((p.getLatitude() > lat - rad));\n assertTrue((p.getLatitude() < lat + rad));\n assertTrue((p.getLongitude() > lng - rad));\n assertTrue((p.getLongitude() < lng + rad));\n }\n \t} catch (UnknownHostException e) {\n \t} finally {\n \t if (photo != null) {\n \t photo.close(); \n \t } \t \n \t}\n }", "title": "" }, { "docid": "2edd16d4859c16904e18b1d65c27996a", "score": "0.4965511", "text": "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "title": "" }, { "docid": "2edd16d4859c16904e18b1d65c27996a", "score": "0.4965511", "text": "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "title": "" }, { "docid": "2edd16d4859c16904e18b1d65c27996a", "score": "0.4965511", "text": "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "title": "" }, { "docid": "690e0937ce4f3497a793acf70535173f", "score": "0.4962712", "text": "public static boolean addLocation(String city, int stateId, int creatorId, Connection conn)\n\t\t\tthrows NamingException, SQLException {\n\t\tPreparedStatement statement = null;\n\t\tboolean completed = false;\n\n\t\tString locationQuery = queries.getString(\"ADD_LOCATION\");\n\n\t\ttry {\n\t\t\tlogger.log(Level.FINE, \"Preparing to execute location query: \");\n\t\t\tlogger.log(Level.FINE, \" \" + locationQuery);\n\t\t\t// adding location to the table\n\t\t\tstatement = conn.prepareStatement(locationQuery);\n\t\t\tstatement.setString(1,city);\n\t\t\tstatement.setInt(2,stateId);\n\t\t\tstatement.setInt(3,0);\n\t\t\tstatement.setInt(4,creatorId);\n\n\t\t\tlogger.log(Level.FINE,\n\t\t\t\t\t\"Adding the location based on the paramaters: \");\n\t\t\tlogger.log(Level.FINE, \" String: \" + city);\n\t\t\tlogger.log(Level.FINE, \" Int: \" + stateId);\n\t\t\tlogger.log(Level.FINE, \" Int: \" + creatorId);\n\t\t\t// executing select statement\n\t\t\tstatement.executeUpdate();\n\n\t\t\t// execute complete\n\t\t\tcompleted = true;\n\t\t} finally {\n\t\t\tif (statement != null) {\n\t\t\t\tDBConnection.closePreparedStatement(statement);\n\t\t\t}\n\t\t}\n\t\treturn completed;\n\t}", "title": "" }, { "docid": "b118300ca010bf6f6501a2ecd14e725b", "score": "0.49565732", "text": "public static void insertHouseIntoBase(String Price, String Address, String Region, String HouseType,\n String floor, String size, String public_pay, String year, String heating, String state,\n String description, String owner, String lat, String longi) throws SQLException {\n Connection connection = ConnPoolInit.ConnPoolInit.Datasource.getConnection();\n Statement st;\n st = connection.createStatement();\n ResultSet set = null;\n //System.out.println(\"ekane init kai create statement k tr pame n kanoume to sqlupdate\");\n String sqlupdate = \"INSERT INTO Estates (`price`, `location`,`Region` ,`type of estate`, `floor`, `size(sq.m.)`, `public pay per month`, `year of construction/renovation`, `type of heat`, `state`, `description`, `owner_username`, `latitude`, `longitude`)\"\n + \"VALUES ('\"\n + Price + \"', '\"\n + Address + \"', '\"\n + Region + \"', '\"\n + HouseType + \"', \"\n + floor + \", \"\n + size + \", \"\n + public_pay + \", '\"\n + year + \"', '\"\n + heating + \"', '\"\n + state + \"', '\"\n + description + \"', '\"\n + owner + \"', \"\n + lat + \", \"\n + longi + \");\";\n\n st.executeUpdate(sqlupdate);\n //System.out.println(\"to kane to sqlupdate pa na kanei return\");\n st.close();\n connection.close();\n return;\n }", "title": "" }, { "docid": "4cc94a2f3074e85a0ef5154527dd9846", "score": "0.49562648", "text": "public void addCity(Point2D location) {\r\n\t\tString name = \"City \" + numCitiesCreated++;\r\n\t\tCity city = new City(this, name, location);\r\n\t\tcities.put(city.getId(), city);\r\n\t}", "title": "" }, { "docid": "27bf4b1c78c1c9718cab9b3b6fe4a67b", "score": "0.49539635", "text": "@Override\n\t\tpublic void OnCityAddress(String city) {\n\t\t\tcff_home_title.setLeftText(city);\n\t\t\tnowCity = city;\n\t\t\tlist.clear();\n\t\t\tInfoListByCityName(nowCity, \"1\", \"10\", REFRESH_DATA_FINISH);\n\t\t\tCount = 1;\n\t\t}", "title": "" }, { "docid": "5677109a7622ea34a65e8fb803df8cac", "score": "0.49472335", "text": "public void setCity(String city) {\n City = city;\n }", "title": "" }, { "docid": "bfd6ccbd10374c25f3d8b88b6a63b3ca", "score": "0.4940011", "text": "public Weather getWeather() {\n error = error || weatherMap.get(\"full\").equals(\",\");\n if (error) {\n //TODO Log\n return null;\n } else {\n final Weather weather = new Weather();\n weather.setCity(weatherMap.get(\"full\"));\n weather.setCondition(weatherMap.get(\"weather\"));\n weather.setTempf(weatherMap.get(\"temp_f\"));\n weather.setTempc(weatherMap.get(\"temp_c\"));\n weather.setHumidity(weatherMap.get(\"relative_humidity\"));\n weather.setWind(weatherMap.get(\"wind_string\"));\n weather.setWindChill(weatherMap.get(\"windchill_string\"));\n\n String localTime = weatherMap.get(\"local_time\");\n if (localTime != null && !\"\".equals(localTime.trim())) {\n String[] tokens = localTime.trim().split(\" \");\n if (tokens.length == 5) {\n StringBuilder time = new StringBuilder();\n time.append(tokens[2]).append(\" \").append(tokens[3]);\n weather.setLocalTime(time.toString());\n }\n }\n return weather;\n }\n }", "title": "" }, { "docid": "73fe8bbd48c13c658ceefaa45dd25182", "score": "0.4939957", "text": "@Override\n public void loadByCity(final int cityId, final LoadJadwalByCityCallback callback) {\n if(jadwalLocal.isJadwalExist(cityId)){\n jadwalLocal.loadByCity(cityId, new LoadJadwalByCityCallback() {\n @Override\n public void onLoaded(List<Jadwal> jadwalList) {\n callback.onLoaded(jadwalList);\n }\n @Override\n public void onNoData() {\n callback.onNoData();\n }\n\n @Override\n public void onFailed(String msg) {\n callback.onFailed(msg);\n }\n\n });\n }else{\n jadwalRemote.loadByCity(cityId, new LoadJadwalByCityCallback() {\n @Override\n public void onLoaded(List<Jadwal> jadwalList) {\n if(storeJadwal(cityId, jadwalList)){\n jadwalLocal.loadByCity(cityId, new LoadJadwalByCityCallback() {\n @Override\n public void onLoaded(List<Jadwal> jadwalList) {\n callback.onLoaded(jadwalList);\n }\n @Override\n public void onNoData() {\n callback.onNoData();\n }\n\n @Override\n public void onFailed(String msg) {\n callback.onFailed(msg);\n }\n\n });\n }else{\n callback.onFailed(\"Something Wrong yeah\");\n }\n }\n\n @Override\n public void onNoData() {\n callback.onNoData();\n }\n\n @Override\n public void onFailed(String msg) {\n callback.onFailed(msg);\n }\n });\n }\n }", "title": "" }, { "docid": "af80194ca1a275484e0596d0bb54cff7", "score": "0.49397197", "text": "@Schedules({\n @Scheduled(fixedDelay = 60*60*1000)\n })\n public void startWeather() throws InterruptedException {\n List<City> cityList = cityRepository.findAll();\n for (int i = 0; i < cityList.size() ; i++) {\n weatherService.saveWeather(cityList.get(i).getWoeid());\n }\n\n }", "title": "" }, { "docid": "7e6700b15a98e32ccaa99d6882a3cf60", "score": "0.493751", "text": "protected void updateweather(Context context) {\n\t\tmweather_widget_details_content_city.setText(\" \" + WeatherUtilites.getCityName(context, WeatherUtilites.getLan()));\n\t\tList<WeatherDetails> weatherdetails = null;\n\t\tfinal String cityName = WeatherUtilites.getCityName(context, 1);\n\t\tif (cityName != null && cityName.length()>0) {\n\t\t\tweatherdetails = WeatherUtilites.getWeatherDetails(context);\n\t\t}\n\t\tif (weatherdetails != null && weatherdetails.size() > 0) {\n \t\tConfiguration configuration = mres.getConfiguration();\n \t\tString language = configuration.locale.toString();\n \t\tfor (int i=0; i<4 && i<weatherdetails.size(); i++) {\n \t\t\tWeatherDetails weatherdetail = null;\n\t \t\tCalendar calendar = Calendar.getInstance(TimeZone.getDefault());\n\t \t\tDate now = calendar.getTime();\n\t \t\tnow.setDate(now.getDate() + i);\n\t\t\t\tfinal String data = DateFormat.format(DEFALUT_DATE_FORMAT_CN, now).toString();\n\t\t\t\tfor (int j=0; j<weatherdetails.size(); j++) {\n\t \t\t\tif (data.equals(weatherdetails.get(j).mcityDate)) {\n\t \t\t\t\tweatherdetail = weatherdetails.get(j);\n\t \t\t\t\tbreak;\n\t \t\t\t}\n\t \t\t}\n\t\t\t\tif (weatherdetail == null) {\n\t \t\t\tcontinue;\n\t \t\t}\n\n\t\t\t\tString content = null;\n\t \t\ttry {\n\t \t\tif (language.equals(\"zh_CN\")) \n\t \t\t\tcontent = weatherdetail.mcityStatus1;\n\t \t\telse if (language.equals(\"zh_TW\")) \n\t \t\t\tcontent = WeatherUtilites.ICON_SINA_TW_STRING_MAP.get(weatherdetail.mcityStatus1);\n\t \t\telse\n\t \t\t\tcontent = WeatherUtilites.ICON_SINA_EN_STRING_MAP.get(weatherdetail.mcityStatus1);\n\t \t\tif (content==null || TextUtils.isEmpty(content))\n\t \t\t\tcontent = weatherdetail.mcityStatus1;\n\t \t\t} catch(Exception e) {\n\t \te.printStackTrace();\n\t \tcontent = weatherdetail.mcityStatus1;\n\t \t\t}\n\n\t \t\tString iconimage = WeatherUtilites.ICON_SQUARE_SINA_MAP.get(weatherdetail.mcityStatus1);\n \t\t\tif (i == 0) {\n \t \tif (iconimage != null && !TextUtils.isEmpty(iconimage)) {\n \t if (!IsDaytime()) {\n \t \tif (iconimage.contains(\"d\"))\n \t \t\ticonimage = iconimage.replace(\"d\", \"n\");\n \t } else {\n \t \tif (iconimage.contains(\"n\"))\n \t \t\ticonimage = iconimage.replace(\"n\", \"d\");\n \t }\n \t int iconid = -1;\n \t \t try {\n \t\t \t\tfinal String img = \"weather_square_widget_\"+iconimage;\n \t\t \t\tR2.echo(\"img=\"+img);\n \t\t \t\tLog.d(\"czz\",i+\"img=\"+img);\n \t\t \t\ticonid = WeatherUtilites.SQUARE_ICON_MAP.get(iconimage);\n \t\t \t\tif (iconid != -1 && WeatherUtilites.isInDefaultTheme(context)) {\n \t\t \t\t\ttry {\n \t\t \t\t\t\tmweather_widget_details_content_icon.setImageDrawable(mapp.mLauncherContext.getDrawable(iconid));\n \t\t \t\t\t} catch(Exception e) {\n \t\t\t \t\te.printStackTrace();\n \t\t\t \t}\n \t\t \t\t}\n\n \t }catch(Exception e){\n \t \te.printStackTrace();\n \t }\n \t }\n \t \tif (WeatherUtilites.isInDefaultTheme(context)) {\n\t \ttry {\n\t \t\tmweather_widget_details_content_content.setText(content);\n\t \t\tmweather_widget_details_content_wind.setText((weatherdetail.mcityDirection1 == null ? \"风力\" : (weatherdetail.mcityDirection1 + \"风\")) + weatherdetail.mcityPower);\n\t\t \tmweather_widget_details_content_temp.setText(weatherdetail.mcityTemperature);\n\t\t \n\t\t if (weatherdetail.mcityZwxL == null && TextUtils.isEmpty(weatherdetail.mcityZwxL)) {\n\t\t \t\tweatherdetail.mcityZwxL = \"\";\n\t\t\t }\n\t\t mweather_widget_details_content_index_uv.setText(\" 紫外线 : \" + weatherdetail.mcityZwxL);\n\n\t\t \tif (weatherdetail.mcityPollutionL == null && TextUtils.isEmpty(weatherdetail.mcityPollutionL)) {\n\t\t \t\tweatherdetail.mcityPollutionL = \"\";\n\t\t \t}\n\t\t \t\tmweather_widget_details_content_index_polution.setText(\" 污染 : \" + weatherdetail.mcityPollutionL);\n\t\t \t\tLog.i(\"ss\", \" 污染 : \" + weatherdetail.mcityPollutionL + \" 紫外线 : \" + weatherdetail.mcityZwxL + \" language is \" + language);\n\t\t \t\t\n\t \t\t} catch(Exception e) {\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t }\n \t\t\t}\n \t\t\tif (i>0 && WeatherUtilites.isInDefaultTheme(context)) {\n \ttry {\n \t\tif (iconimage != null && !TextUtils.isEmpty(iconimage)) {\n \t \t\tif (!IsDaytime()) {\n \t \tif (iconimage.contains(\"d\"))\n \t \t\ticonimage = iconimage.replace(\"d\", \"n\");\n \t } else {\n \t \tif (iconimage.contains(\"n\"))\n \t \t\ticonimage = iconimage.replace(\"n\", \"d\");\n \t }\n \t int iconid = -1;\n \t try {\n \t \tfinal String img = \"weather_square_widget_\"+iconimage;\n \t\t \t\tLog.d(\"czz\",i+\"img=\"+img);\n \t\t \t\ticonid = WeatherUtilites.SQUARE_ICON_MAP.get(iconimage);\n \t\t \t\tif (iconid != -1) {\n \t\t \t\t\tmweather_widget_details_content_layout_icon[i - 1].setImageDrawable(mapp.mLauncherContext.getDrawable(iconid));\n \t\tmweather_widget_details_content_layout_content[i - 1].setText(content);\n \tmweather_widget_details_content_layout_temp[i - 1].setText(weatherdetail.mcityTemperature);\n \t\t \t\t}\n \t } catch(Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t \t}\n \t\t} catch(Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n }\n \t\t}\n \t\tif (weatherdetails.size() < 4) {\n \t\t\tfor (int k = weatherdetails.size(); k<4; k++) {\n \t\t\t\ttry {\n \t\t\t\t\tmweather_widget_details_content_layout_icon[k - 1].setImageDrawable(null);\n//\t\t\t \t\t\t\tmapp.mLauncherContext.getDrawable(R.drawable.weather_widget_big_default));\n \t\tmweather_widget_details_content_layout_content[k - 1].setText(\"\");\n \tmweather_widget_details_content_layout_temp[k - 1].setText(\"\");\n \t\t} catch(Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t} else {\n// \t\tclearWeatherInfo();\n \t}\n\t}", "title": "" }, { "docid": "9f28dc638d65030731577ec7755fd15d", "score": "0.49301395", "text": "public void setCity(String value) {\n this.city = value;\n }", "title": "" }, { "docid": "faa6cf0e6b9e50311cc5ae93dd0b1d78", "score": "0.4929194", "text": "public void getWeatherData(final Fragment fragment){\n ForecastConfiguration configuration =\r\n new ForecastConfiguration.Builder(API_KEY)\r\n .setCacheDirectory(getCacheDir())\r\n .build();\r\n ForecastClient.create(configuration);\r\n\r\n //getting the forecast\r\n double latitude = sharedPreferences.getFloat(\"latitude\", 0);\r\n double longitude = sharedPreferences.getFloat(\"longitude\", 0);\r\n\r\n\r\n // getting city name\r\n Geocoder gcd = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n try {\r\n List<Address> addresses = gcd.getFromLocation(latitude, longitude, 1);\r\n if (addresses.size() > 0) {\r\n getSupportActionBar().setTitle(addresses.get(0).getLocality() + \", \" + addresses.get(0).getAdminArea());\r\n } else {\r\n // do your staff\r\n }\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n\r\n ForecastClient.getInstance()\r\n .getForecast(latitude, longitude, new Callback<Forecast>() {\r\n @Override\r\n public void onResponse(Call<Forecast> forecastCall, Response<Forecast> response) {\r\n if (response.isSuccessful()) {\r\n try {\r\n Gson gson = new Gson();\r\n weatherData = new WeatherData(gson.toJson(response.body()));\r\n insertWeatherData();\r\n fragmentManager.beginTransaction().replace(R.id.main, fragment).commit();\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n setup();\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Call<Forecast> forecastCall, Throwable t) {\r\n Toast.makeText(getApplicationContext(), \"Check network connection\", Toast.LENGTH_LONG).show();\r\n\r\n }\r\n });\r\n\r\n }", "title": "" }, { "docid": "4aec22158e1ddd5df2ede725b827b050", "score": "0.4920914", "text": "public void enterOriginAndDestinationCities(String sOriginCity, String sDestinationCity) throws Exception {\n oBroUti.waitForElementToBeVisible(driver, eOriginCity, 7);\n oBroUti.ufClick(eOriginCity);\n oSeUtil.pressBackSpaceByTimes(eOriginCity, 3);\n\n oBroUti.waitForElementToBeVisible(driver, eTxtBoxOriginCity, 5);\n oSeUtil.ufSendKeysAndPressEnter(eTxtBoxOriginCity, sOriginCity);\n\n // enter city for destination airport\n oBroUti.waitForElementToBeVisible(driver, eDestinationCity, 7);\n oBroUti.ufClick(eDestinationCity);\n\n oBroUti.waitForElementToBeVisible(driver, eTxtBoxDestinationCity, 15);\n oSeUtil.pressBackSpaceByTimes(eTxtBoxDestinationCity,3);\n oBroUti.ufSendKeys(eTxtBoxDestinationCity, sDestinationCity);\n\n Thread.sleep(9000);\n WebElement eFirstSuggestion = oSeUtil.getElementByContainsTxt(eDestDrpDownAirports, sDestinationCity);\n oBroUti.ufClick(eFirstSuggestion);\n\n }", "title": "" }, { "docid": "8ac9ccdd2546a068ecbbeee7f8135140", "score": "0.4908576", "text": "public void addCity(Node city) {\n\t\tcityList.add(city);\n\t}", "title": "" }, { "docid": "7afbdd54b555e0a5b15abeeeae68d4f3", "score": "0.4905136", "text": "@Override\r\n\tprotected List<City> doInBackground(String... params) {\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8e5a283d6acb0603ac0272cbe3783819", "score": "0.4904992", "text": "private ArrayList<WeatherElement> randomWeatherElements(String city ) {\n ArrayList<WeatherElement> ret = new ArrayList<>();\n Date date = Calendar.getInstance().getTime();\n for( int i = 0 ; i < MAX_RANDOM_ELEMENT ; i++ ) {\n Date newDate = new Date( date.getTime() + TimeUnit.DAYS.toMillis(i));\n float temperature = ThreadLocalRandom.current().nextFloat() * 20.0f + 10.0f ;\n float pressure = ThreadLocalRandom.current().nextFloat() * 200.0f + 900.0f ;\n float wind = ThreadLocalRandom.current().nextFloat() * 70.0f ;\n float windOrientation = ThreadLocalRandom.current().nextFloat() * 360.0f ;\n WeatherElement elem = new WeatherElement(city ,\n newDate ,\n getRandomState(),\n temperature ,\n pressure ,\n wind ,\n windOrientation );\n ret.add(elem);\n }\n return ret ;\n }", "title": "" }, { "docid": "54c1d742214efe24d7f5d861ab2eff7f", "score": "0.48930797", "text": "private void loadWeather() {\n\t\tString id = spPreferences.getString(\"user_id\", \"\");\n\t\tstrUrl = RealmName.REALM_NAME_LL+ \"/get_user_favorite_list?user_id=\"+id+\"&page_size=10&page_index=1\" +\n\t\t\t\t\"&strwhere=&orderby=\";\n\t\t\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"user_id\", id);\n\t\tparams.put(\"page_size\", \"10\");\n\t\tparams.put(\"page_index\", \"1\");\n\t\tparams.put(\"strwhere\", \"\");\n\t\tparams.put(\"orderby\", \"\");\n\t\t\n\t\tSystem.out.println(\"收藏\"+strUrl);\n\t\tSystem.out.println(\"收藏1\"+params);\n//\t\tAsyncHttp.post_1(strUrl, params, new AsyncHttpResponseHandler(){\n\t\tAsyncHttp.get(strUrl, new AsyncHttpResponseHandler(){\n\t\t\t@Override\n\t\t\tpublic void onSuccess(int arg0, String arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"====================\"+arg1);\n\t\t\t\tsuper.onSuccess(arg0, arg1);\n\t\t\t\tparse(arg1);\n\t\t\t\t\n\t\t\t}\n\t\t}, null);\n\t}", "title": "" }, { "docid": "e98ef2fe2464c2e5a73e56be5913dbcd", "score": "0.4892664", "text": "public LiveData<Resource<WeatherEntity>> responseFromCurrentWeatherByCityName() {\n return mNetworkDataSource.responseFromCurrentWeatherByCityName();\n }", "title": "" } ]
165f863ac6a97b21aa15ed6cdabaaf6c
enum > int magic. c has this built in...
[ { "docid": "129f642f27c5ab52a6cdfa4b0fcf3f4a", "score": "0.0", "text": "MessageType(int value) {\n this.value = value;\n }", "title": "" } ]
[ { "docid": "ad68c6d23f48c8c1aaa90333d1f9cc97", "score": "0.74650127", "text": "@Override\n\tpublic Object visitEnum_decl(InterpreterParser.Enum_declContext ctx) {\n\t\tint val = 0;\n\t\tfor(int i = 1; i < ctx.id().size(); ++i){\n\t\t\t//visit(ctx.ID(i));\n\t\t\tvisit(ctx.id(i));\n\t\t\tif (i - 1 < ctx.NUM().size()){\n\t\t\t\tval = Integer.valueOf(ctx.NUM(i-1).getText());\n\t\t\t}\n\t\t\tProgram.getInstance().Symbols[id_index].Class = Program.getInstance().NUM;\n\t\t\tProgram.getInstance().Symbols[id_index].Type = Program.getInstance().INT;\n\t\t\tProgram.getInstance().Symbols[id_index].Value = val++;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "828b8f759114be2e1726b3e0b0559e76", "score": "0.6808177", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "94d43e71e13ac5a0b3d96df1e9c1fb91", "score": "0.68062913", "text": "EnumC11229a mo66643h();", "title": "" }, { "docid": "dbf5bbfbf841820b30b6f61785cffac5", "score": "0.67250043", "text": "EnumC69953Je(int i) {\n this.value = i;\n }", "title": "" }, { "docid": "23c325129ec385f07698b2cef479638f", "score": "0.6716246", "text": "public interface IntentCodeEnum {\n\n final int TRIGGER_REQUEST = 10;\n final int TRIGGER_RESULT = 11;\n final int ACTION_REQUEST = 12;\n final int ACTION_RESULT = 13;\n final int TIME_REQUEST = 20;\n final int TIME_RESULT = 21;\n\n final int WEATHER_REQUEST = 22;\n final int WEATHER_RESULT = 23;\n\n}", "title": "" }, { "docid": "d3b8e68f5d88ef36e6c238a4fbb8d3ec", "score": "0.6703676", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "f63ed1ed2870fb8526f498e7d0e8fc8c", "score": "0.66916525", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "24f556096c2aaccfd9d8be557085c82d", "score": "0.666951", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "829378e40b38ee4b9f743d33f0b90a9c", "score": "0.6630392", "text": "private static native int[] LanaEnum();", "title": "" }, { "docid": "0b42b3e782097eb3507dcc09c31e16d0", "score": "0.6484254", "text": "public int getIntegerCode();", "title": "" }, { "docid": "c90949664f5447554163833ff56aaafb", "score": "0.6482783", "text": "protected AffectEnum( int __n ) { __Ezj_value = __n; }", "title": "" }, { "docid": "6596835127e8ccdf85c5ab8a846f83a7", "score": "0.6482233", "text": "private JCExpression enumBase(int pos, ClassSymbol c) {\n JCExpression result = make.at(pos).\n TypeApply(make.QualIdent(syms.enumSym),\n List.<JCExpression>of(make.Type(c.type)));\n return result;\n }", "title": "" }, { "docid": "a3f86edab091fbe34dd9e88554a1279e", "score": "0.6444227", "text": "JsonParser.EnumC4225b mo29860b();", "title": "" }, { "docid": "93c2d4455a50b9fb530949cd9b1fc656", "score": "0.63366395", "text": "public interface CodeEnum {\n public Integer getCode();\n}", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.6311187", "text": "int getTypeValue();", "title": "" }, { "docid": "32e24e83d945a4bfd6a8ce916c0aac04", "score": "0.6295761", "text": "public int getEnum(PointerRNA ptr)\r\n//\tstatic int rna_RenderSettings_engine_get(PointerRNA *ptr)\r\n\t{\n\t\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "079f0695664bd59aa6a9de2a00190522", "score": "0.6294337", "text": "private EstadoEmpleadoEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "bd54c73304a7a8a08e6487ffe35112e8", "score": "0.62786615", "text": "public interface EnumConverter {\n int convert();\n}", "title": "" }, { "docid": "ab156ecc3c031bd76075cda07a6e57f5", "score": "0.62690836", "text": "public abstract int ordinal();", "title": "" }, { "docid": "45d08fb99e98f6d715e13ac8fdbd680a", "score": "0.62396294", "text": "int getSourceEnumId();", "title": "" }, { "docid": "2fd9be84ae6d54bc7da273dba85f4525", "score": "0.62218463", "text": "gov.nih.nlm.ncbi.www.OrgModDocument.OrgMod.Subtype.Value.Enum getValue();", "title": "" }, { "docid": "d8e9d3a39338ff8878d312c3930e5c7d", "score": "0.62147623", "text": "public IntEnumTest (String name){\n super(name);\n }", "title": "" }, { "docid": "6ff07ea787189979dd1c45ef1462138b", "score": "0.6209808", "text": "public abstract int intValue();", "title": "" }, { "docid": "5e09782d52202ef47a5722eca62b0747", "score": "0.62021494", "text": "public static EditModeEnum intToEnumeratedValue( int __n ) {\r\n\t\tswitch ( __n ) {\r\n\t\t\tcase 0: return adEditNone;\r\n\t\t\tcase 1: return adEditInProgress;\r\n\t\t\tcase 2: return adEditAdd;\r\n\t\t\tcase 4: return adEditDelete;\r\n\t\t}\r\n\t\treturn new EditModeEnum(__n);\r\n\t}", "title": "" }, { "docid": "535cb34c065f761b8696d24d76a6fb25", "score": "0.6186776", "text": "@Override\r\n public void visitEnum(Enum eenum) {\n }", "title": "" }, { "docid": "40e1926af47820d2c4a1482fe9e1a5fb", "score": "0.61711055", "text": "public void testStaticEnumUniqueEnforcement(){\n IntEnum e = new IntEnum(\"plain\",1);\n IntEnum.register(e);\n new TestIntEnum(\"test\",1); // auto registers the same value - does it clash with super class?\n assertEquals(\"plain\",IntEnum.getEnumFromInt(IntEnum.class,1).getName());\n assertEquals(\"test\",TestIntEnum.getTypeFromInt(1).getName());\n }", "title": "" }, { "docid": "71d6cfb7df2c1db7777ca4390bcb61c2", "score": "0.6169699", "text": "int getValueTypeValue();", "title": "" }, { "docid": "cd1f8c4388fcf9d31f3b0d596a566941", "score": "0.6169256", "text": "String asEnumConstant();", "title": "" }, { "docid": "2f797e69470c046b28f5cf5c75aa1a6e", "score": "0.6157302", "text": "int indexOfLiteral(EnumerationLiteral literal);", "title": "" }, { "docid": "087298f1fa5316c729ea3a5eb4b1f040", "score": "0.61385286", "text": "EnumType createEnumType();", "title": "" }, { "docid": "5f65d00a7eae2d69416fddef40f84017", "score": "0.6120497", "text": "Enum createEnum();", "title": "" }, { "docid": "44f6ef2a81035908bdf0c7fc4b0f0402", "score": "0.60919774", "text": "private DeviceTypeEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "028bcbc70982d16446d9439a580386a9", "score": "0.60853845", "text": "@Override\r\n public void visitOrderedEnum(OrderedEnum eenum) {\n }", "title": "" }, { "docid": "a6c4bb68a99b8fd91b8b364a7d7ed2e5", "score": "0.6083127", "text": "public abstract E valueOf(int value);", "title": "" }, { "docid": "b7d089767608d6c8a1502de83d6e2434", "score": "0.6080309", "text": "private DeviceStateEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "ec7a795e18d2741ae4f01d7489efc96b", "score": "0.6067775", "text": "public interface MyEnum {\n\n int getState();\n\n String getStateInfo();\n}", "title": "" }, { "docid": "ec410c252a209c4dcf081324d28abc76", "score": "0.60615945", "text": "public PSInt leEnumRank() {\r\n if ( ! isStrictLowerCase() ) return PSInt.zero();\r\n return PSInt.with( 1 + charCode() - 97 );\r\n }", "title": "" }, { "docid": "a7e6f761087fecd2d76fde958b59b6f6", "score": "0.6059628", "text": "public static LoiterType getEnum(int val) {\n switch(val) {\n case 0 : return VehicleDefault;\n case 1 : return Circular;\n case 2 : return Racetrack;\n case 3 : return FigureEight;\n case 4 : return Hover;\n default: return VehicleDefault;\n\n }\n }", "title": "" }, { "docid": "2138ae6e56b2974b6025ecbe80990b09", "score": "0.60433495", "text": "@Override\r\n public void visitEnumLiteral(EnumLiteral literal) {\n }", "title": "" }, { "docid": "59ac8487599136b55a30e877ee606d86", "score": "0.6038091", "text": "GameStatusEnum(int gameStatusValue){\n this.gameStatusValue = gameStatusValue;\n }", "title": "" }, { "docid": "13ddf19dffee631fe15a9a172ea9d8c5", "score": "0.6024159", "text": "int getKindValue();", "title": "" }, { "docid": "9bffb3a502353f6b1bff0b04c872152f", "score": "0.601511", "text": "int getFromtype();", "title": "" }, { "docid": "a36b31a1d652fa45bae102f9b650e1b5", "score": "0.59957254", "text": "int getDevotenum();", "title": "" }, { "docid": "66796f84ae2213dd4752015a8f5e3d3c", "score": "0.59943277", "text": "int getCodeTypeValue();", "title": "" }, { "docid": "e90e88b76753129eafa15428701c9899", "score": "0.5981416", "text": "public interface IEnum {\n int getCode();\n String getName();\n\n}", "title": "" }, { "docid": "949b4b46d11418727214f4ff2086782c", "score": "0.59800255", "text": "EnumFieldValue createEnumFieldValue();", "title": "" }, { "docid": "b5be2eaa6db64ac22bd711eb4f10512b", "score": "0.59735864", "text": "@Override\n\tpublic void visit(Enum<?> e) {\n\t}", "title": "" }, { "docid": "7cadb87ce6fbea0426021cd7483765d5", "score": "0.597159", "text": "EnumField createEnumField();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.5971386", "text": "int getIntValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.5971386", "text": "int getIntValue();", "title": "" }, { "docid": "83c9dabd5e50a61d07bf1b4dd99025c3", "score": "0.5945374", "text": "EnumFieldAtom createEnumFieldAtom();", "title": "" }, { "docid": "b0219b764f6fef920c8368dcb03431b8", "score": "0.5944407", "text": "@Override\n public final Integer constTypeCode() {\n return 8;\n }", "title": "" }, { "docid": "ad2da0c14c1d732742a3a8cd80d93438", "score": "0.59171116", "text": "JEnumeration getCorrespondingEnum();", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.59163904", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.59163904", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.59163904", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.59163904", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "15d03ef69aa620dca0e2574ddc43f2fa", "score": "0.5908922", "text": "public static <T> T int2enum(int input, Class<T> enumType){\n \ttry {\n\t\t\tMethod m = enumType.getMethod(\"values\");\n\t\t\tT[] values = (T[]) m.invoke(null); \n\t\t\tfor(int i = 0; i < values.length; i++) {\n\t\t\t\tT v = values[i];\n\t\t\t\tField f = enumType.getDeclaredField(\"value\");\n\t\t\t\tf.setAccessible(true);\n\t\t\t\tint d = f.getInt(v);\n\t\t\t\tif(d == input) {\n\t\t\t\t\treturn v;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NoSuchMethodException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchFieldException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n }", "title": "" }, { "docid": "69590596f685506f86451d0bd2d84ccf", "score": "0.58997434", "text": "public String getEnumId()\n\t{\n\t\treturn name();\n\t}", "title": "" }, { "docid": "538c1c3a2944854bafb6d7d578fc65ec", "score": "0.58870435", "text": "public interface BaseEnum {\n\n int getCode();\n\n String getMsg();\n\n}", "title": "" }, { "docid": "0d2cfae604ae8bba046746e966805953", "score": "0.5866545", "text": "public interface AircraftConstants {\n public static final int AIR_CRAFT_TYPE_CARGO = 2;\n public static final int AIR_CRAFT_TYPE_PASSENGER = 1;\n public static final int AIR_CRAFT_SIZE_SMALL = 2;\n public static final int AIR_CRAFT_SIZE_LARGE = 1;\n}", "title": "" }, { "docid": "f4211d1786a9343d053c30c9741eae98", "score": "0.5865765", "text": "public int getStatusValue();", "title": "" }, { "docid": "f1fb4a2bd089ca9b73f88bd4ab855c71", "score": "0.58613133", "text": "public interface JavaEnum extends JavaType {}", "title": "" }, { "docid": "a1335f614a648dc606d40545db6eb102", "score": "0.58469266", "text": "private TipoImpuestoIvaEnum(String code)\n/* 10: */ {\n/* 11:15 */ this.code = code;\n/* 12: */ }", "title": "" }, { "docid": "24261f1e74e22fac6de7b5bdc40e0c64", "score": "0.58298707", "text": "@Override\n TypeVal typeEval() {\n return TypeVal.Int;\n }", "title": "" }, { "docid": "7125d8dcaa43ac7a5b51f90b7092bb5a", "score": "0.5825108", "text": "private IfcStateEnum(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "5228eff9025c2a923828dd0639823ab7", "score": "0.58204025", "text": "@Test\n\tpublic void nextEnum() {\n\t\ttry {\n\t\t\tMyEnum value;\n\t\t\tfor (int i = 0; i < IntegerUtil.INT_100; i++) {\n\t\t\t\tvalue = RandomUtil.nextEnum(MyEnum.values());\n\t\t\t\tAssert.assertNotNull(value);\n\t\t\t\tvalue = RandomUtil.nextEnum(false, MyEnum.values());\n\t\t\t\tAssert.assertNotNull(value);\n\t\t\t\tvalue = RandomUtil.nextEnum(true, MyEnum.values());\n\t\t\t}\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.58184516", "text": "int getStatusValue();", "title": "" }, { "docid": "690f15ce601320f75f80f53c0742ac61", "score": "0.5817574", "text": "int getObjectTypeValue();", "title": "" }, { "docid": "89425233c76b9905350235db3278c4d9", "score": "0.58175707", "text": "public abstract int value();", "title": "" }, { "docid": "e2e9006c763c9ceb4d2ea384af8ca914", "score": "0.58009934", "text": "@Override\n public int getInt() {\n return 1;\n }", "title": "" }, { "docid": "99c86022adbbccd93e288161354d8b47", "score": "0.5797673", "text": "public int getValue();", "title": "" }, { "docid": "68a58df358adb5b603b64e6bf2b4fe49", "score": "0.5796613", "text": "public static AffectEnum intToEnumeratedValue( int __n ) {\r\n\t\tswitch ( __n ) {\r\n\t\t\tcase 1: return adAffectCurrent;\r\n\t\t\tcase 2: return adAffectGroup;\r\n\t\t\tcase 3: return adAffectAll;\r\n\t\t\tcase 4: return adAffectAllChapters;\r\n\t\t}\r\n\t\treturn new AffectEnum(__n);\r\n\t}", "title": "" }, { "docid": "718f6070d0e9afa1640abc4b275a7bf1", "score": "0.57963556", "text": "public interface IMPLICIT_ACTIVATION_POLICY_ID\n{\n\n /**\n \t * The value representing IMPLICIT_ACTIVATION_POLICY_ID.\n \t */\n public static final int value = (int)(20L);\n}", "title": "" }, { "docid": "8ec4e46d18268523b21a8e0d1cb6c231", "score": "0.5795281", "text": "private IfcFlowInstrumentTypeEnum(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "title": "" }, { "docid": "01ede437c5bf3d67b603c48580264ab6", "score": "0.57834345", "text": "public interface ActivityConstants {\n public static final int ACTIVITY_1 = 1001;\n public static final int ACTIVITY_2 = 1002;\n public static final int ACTIVITY_NEARBY=1003;\n}", "title": "" }, { "docid": "763f6d185e14938ee60cafebb0627efc", "score": "0.5782778", "text": "int getOpTypeValue();", "title": "" }, { "docid": "763f6d185e14938ee60cafebb0627efc", "score": "0.5782778", "text": "int getOpTypeValue();", "title": "" }, { "docid": "763f6d185e14938ee60cafebb0627efc", "score": "0.5782778", "text": "int getOpTypeValue();", "title": "" }, { "docid": "763f6d185e14938ee60cafebb0627efc", "score": "0.5782778", "text": "int getOpTypeValue();", "title": "" }, { "docid": "21676ac9c11617059cf4f30d14bb707a", "score": "0.5763686", "text": "public TwoBitEnumeration(int value) {\n super(value);\n }", "title": "" }, { "docid": "4fe1e8eba96c9498010db26d68fd04ca", "score": "0.5761016", "text": "public int valueOf() {\n return this.value;\n }", "title": "" }, { "docid": "24e859b17cd095a4d2757e585d3e4b6e", "score": "0.57568634", "text": "public void setEnum(PointerRNA ptr, int value)\r\n//\tstatic void rna_RenderSettings_engine_set(PointerRNA *ptr, int value)\r\n\t{\n\t}", "title": "" }, { "docid": "7e29f81e4b3e51bc8e55f5f9fd21ef99", "score": "0.57552385", "text": "public int getInt(String name);", "title": "" } ]
0031033445337c0a0cb91e14b7a14db1
/ " String sql = " SELECT SEQ, NICKNAME, CONTENT, REF, STEP, DEPTS, " + " PARENT, DEL, LIKECOUNT, REPORT, WDATE " + " FROM SELL_COMMENT " + " WHERE PARENT =? " + " ORDER BY REF DESC, STEP ASC ";
[ { "docid": "ca13e8e3cec2259e692f77bf80bf2954", "score": "0.0", "text": "@Override\n\tpublic List<sell_Dto> getSellList(int size) {\n\t\tString sql = \" SELECT SEQ, ID, TITLE, CONTENT, RCOUNT, ACOUNT, WDATE, DEL, \"\n\t\t \t\t + \" PRICE, CATEGORY, PCATEGORY, COMPLETE, REPORT, FILENAME, NICKNAME \"\n\t\t \t\t + \" FROM \" \n\t\t \t\t + \" (SELECT ROW_NUMBER()OVER(ORDER BY WDATE DESC) AS RNUM, \" \n\t\t \t\t + \" SEQ, B.ID AS ID, TITLE, CONTENT, RCOUNT, ACOUNT, WDATE, DEL, \"\n\t\t \t \t + \" PRICE, CATEGORY, PCATEGORY, COMPLETE, REPORT, FILENAME, NICKNAME\"\n\t\t \t\t + \" FROM SELL_BBS B, MEMBER M \"\n\t\t \t\t + \" WHERE B.ID = M.ID AND DEL = 0 \" \n\t\t \t\t + \" ORDER BY WDATE DESC) \" \n\t\t \t\t + \" WHERE RNUM >=? AND RNUM <=? AND DEL = 0 \";\n\t\t\n\t\tConnection conn = null;\n\t\tPreparedStatement psmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\tList<sell_Dto> list = new ArrayList<sell_Dto>();\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconn = DBConnection.getConnection();\n\t\t\tpsmt = conn.prepareStatement(sql);\n\t\t\tSystem.out.println(\"1/6 getSellList suc\");\n\t\t\tpsmt.setInt(1, size*12-11);\n\t\t\tpsmt.setInt(2, size*12);\n\t\t\t\n\t\t\trs = psmt.executeQuery();\n\t\t\tSystem.out.println(\"2/6 getSellList suc\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\t\n\t\t\t\tsell_Dto dto = new sell_Dto(rs.getInt(1),\n\t\t\t\t\t\t\t\trs.getString(2),\n\t\t\t\t\t\t\t\trs.getString(3),\n\t\t\t\t\t\t\t\trs.getString(4),\n\t\t\t\t\t\t\t\trs.getInt(5),\n\t\t\t\t\t\t\t\trs.getInt(6),\n\t\t\t\t\t\t\t\trs.getString(7),\n\t\t\t\t\t\t\t\trs.getInt(8),\n\t\t\t\t\t\t\t\trs.getInt(9),\n\t\t\t\t\t\t\t\trs.getString(10),\n\t\t\t\t\t\t\t\trs.getString(11),\n\t\t\t\t\t\t\t\trs.getInt(12),\n\t\t\t\t\t\t\t\trs.getInt(13),\n\t\t\t\t\t\t\t\trs.getString(14),\n\t\t\t\t\t\t\t\trs.getString(15));\n\t\t\t\tlist.add(dto);\n\t\t\t\tSystem.out.println(\"3/6 getSellList suc\");\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"4/6 getSellList fail\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBClose.close(conn, psmt, rs);\n\t\t}\n\t\treturn list;\n\t}", "title": "" } ]
[ { "docid": "35788bcf9aa9c05e0dbe20e2dd3a899a", "score": "0.5694865", "text": "public static String selectParent(ConnectionProvider connectionProvider, String cOrderId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.DocumentNo), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), '')) || ' - ' || TO_CHAR(table1.DateOrdered, 'DD-MM-YYYY') || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.GrandTotal), ''))) AS NAME FROM C_Order left join (select C_Order_ID, DocumentNo, Name, DateOrdered, GrandTotal from C_Order) table1 on (C_Order.C_Order_ID = table1.C_Order_ID) WHERE C_Order.C_Order_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, cOrderId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "1c15ad09ec4cac23b728a9fd12637789", "score": "0.5612232", "text": "public static String selectParentTrl(ConnectionProvider connectionProvider, String cOrderId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.DocumentNo), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), '')) || ' - ' || TO_CHAR(table1.DateOrdered, 'DD-MM-YYYY') || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.GrandTotal), ''))) AS NAME FROM C_Order left join (select C_Order_ID, DocumentNo, Name, DateOrdered, GrandTotal from C_Order) table1 on (C_Order.C_Order_ID = table1.C_Order_ID) WHERE C_Order.C_Order_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, cOrderId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "d578c5750c1aff133f14f90d48ecfd1a", "score": "0.5585541", "text": "private void getComments(DatabaseConnection db, \n Connection conn, \n DefaultMutableTreeNode parentComment,\n int parentCommentID)\n {\n String sql = \"SELECT * FROM `ForumComments` WHERE ReplyID = '\"+parentCommentID+\"'\"; \n if (userType == 1)\n {\n sql += \" and (Visibility = 0 or Author='\"+ userID + \"')\";\n }\n ResultSet rs = db.getResults(conn, sql);\n try {\n while (rs.next())\n {\n int commentID = rs.getInt(\"CommentID\");\n int authorID = rs.getInt(\"Author\");\n String author = HelpFunctions.getAuthor(authorID);\n DefaultMutableTreeNode childComment = new DefaultMutableTreeNode(new BookInfo\n (author, \n rs.getString(\"Comment\"),\n commentID,\n 2));\n parentComment.add(childComment); //Adds question to category\n \n //Gets comments by recursion... hopefully. Update:Damn straight it does.\n getComments(db, conn, childComment, commentID);\n }\n } catch (SQLException ex) {\n Logger.getLogger(LandingForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "3e67ffc6fbefb3af1bd99b45b956560b", "score": "0.51674366", "text": "private Cursor notesExpandedQuery(SQLiteDatabase db, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n String[] columns = new String[projection.length];\n for (int index = 0; index < projection.length; index++) {\n //Loop for each projection ie columns array\n columns[index] = projection[index].equals(BaseColumns._ID) ||\n projection[index].equals(NoteKeeperProviderContract.CourseIdColumn.COLUMN_COURSE_ID) ?\n NoteInfoEntry.getQName(projection[index]) : projection[index];\n }\n String tablesWithJoin = NoteInfoEntry.TABLE_NAME + \" JOIN \" +\n CourseInfoEntry.TABLE_NAME + \" ON \" +\n NoteInfoEntry.getQName(NoteInfoEntry.COLUMN_COURSE_ID) + \" = \" +\n CourseInfoEntry.getQName(CourseInfoEntry.COLUMN_COURSE_ID);\n return db.query(tablesWithJoin, columns, selection, selectionArgs,\n null, null, sortOrder);\n }", "title": "" }, { "docid": "dd5f31bf3803f29de28c13849721d8f6", "score": "0.51385057", "text": "public String getComments(int no) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3785ff8f46636f43869f74d469ba90b4", "score": "0.4995169", "text": "@Override\n public Cursor query(Uri uri, String[] projection, String selection,\n String[] selectionArgs, String sortOrder) {\n long rowId = -1;\n String rowSelection = null;\n String[] rowSelectionArgs = null;\n Cursor cursor = null;\n //Connect to DB\n SQLiteDatabase db = mDbOpenHelper.getReadableDatabase();\n int uriMatch = sUriMatcher.match(uri);\n switch (uriMatch) {\n case COURSES:\n //Query database for course titles thus this query can be used to populate spinner\n cursor = db.query(CourseInfoEntry.TABLE_NAME, projection, selection, selectionArgs,\n null, null, sortOrder);\n break;\n case NOTES:\n //Query database for note to open in NoteActivity\n cursor = db.query(NoteInfoEntry.TABLE_NAME, projection, selection, selectionArgs,\n null, null, sortOrder);\n case NOTES_EXPANDED:\n //Query database for notes and courses\n cursor = notesExpandedQuery(db, projection, selection, selectionArgs, sortOrder);\n break;\n case COURSES_ROW:\n rowId = ContentUris.parseId(uri);\n rowSelection = CourseInfoEntry._ID + \" = ?\";\n rowSelectionArgs = new String[]{Long.toString(rowId)};\n cursor = db.query(CourseInfoEntry.TABLE_NAME, projection, rowSelection,\n rowSelectionArgs, null, null, null);\n\n break;\n case NOTES_ROW:\n rowId= ContentUris.parseId(uri);\n rowSelection=NoteInfoEntry._ID + \" = ?\";\n rowSelectionArgs=new String[] {Long.toString(rowId)};\n cursor = db.query(NoteInfoEntry.TABLE_NAME,projection,rowSelection,rowSelectionArgs,\n null,null,null);\n break;\n case NOTES_EXPANDED_ROW:\n rowId = ContentUris.parseId(uri);\n rowSelection = NoteInfoEntry.getQName(NoteInfoEntry._ID) + \" = ?\";\n rowSelectionArgs = new String[]{Long.toString(rowId)};\n cursor = notesExpandedQuery(db, projection, rowSelection, rowSelectionArgs, null);\n break;\n }\n\n return cursor;\n }", "title": "" }, { "docid": "d070d3f6bc743d05c82a3f798abcbfdc", "score": "0.49572307", "text": "public Cursor show(SQLiteDatabase db){\n String[] projection = {\n FeedReaderContract.FeedEntry.COLUMN_ID,\n FeedReaderContract.FeedEntry.COLUMN_LAST_NAME,\n FeedReaderContract.FeedEntry.COLUMN_FIRST_NAME\n\n };\n\n// How you want the results sorted in the resulting Cursor\n String sortOrder = FeedReaderContract.FeedEntry.COLUMN_ID + \" DESC\";\n\n Cursor c = db.query(\n FeedReaderContract.FeedEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // don't group the rows\n null, // don't filter by row groups\n sortOrder // The sort order\n );\n\n return c;\n }", "title": "" }, { "docid": "dab4c7c0664004bba470b5c1ff220890", "score": "0.49504495", "text": "public String getPrologComment() {\n/* 850 */ String format = Messages.format(\"Driver.DateFormat\", new Object[0]) + \" '\" + Messages.format(\"Driver.At\", new Object[0]) + \"' \" + Messages.format(\"Driver.TimeFormat\", new Object[0]);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 856 */ SimpleDateFormat dateFormat = new SimpleDateFormat(format);\n/* */ \n/* 858 */ return Messages.format(\"Driver.FilePrologComment\", new Object[] { dateFormat.format(new Date()) });\n/* */ }", "title": "" }, { "docid": "6b40a4fd70b5ccaeb16caae26c29a087", "score": "0.49212244", "text": "public static String extractUtilProcSQLs(String sql) throws Exception {\r\n String[] lineArr = sql.split(\"\\n\");\r\n String uncommentedLine = \"\";\r\n boolean isCommentedLine = false;\r\n String fileContent = \"\";\r\n try {\r\n for (String line : lineArr) {\r\n if (isCommentedLine) {\r\n if (line.contains(\"*/\")) {\r\n //if \"*/\" exists in the middle of the line, then extract right part excluding commented part\r\n if (uncommentedLine.length() > 0) {\r\n line = uncommentedLine + \" \" + line.substring(line.indexOf(\"*/\") + 2);\r\n } else {\r\n line = line.substring(line.indexOf(\"*/\") + 2);\r\n }\r\n if (line.contains(\"--\")) {\r\n line = line.substring(0, line.indexOf(\"--\"));\r\n }\r\n isCommentedLine = false;\r\n uncommentedLine = \"\";\r\n } else {\r\n continue;\r\n }\r\n }\r\n if (line.contains(\"--\")) {\r\n if (line.trim().startsWith(\"--\")) {\r\n line = \"--\";\r\n }\r\n\r\n //if \"--\" exists in the middle of the line, then extract left part excluding commented part\r\n if ((line.contains(\"/*\") && line.indexOf(\"--\") < line.indexOf(\"/*\"))\r\n || (!line.contains(\"/*\") && !line.contains(\"*/\"))\r\n || (line.contains(\"/*\") && line.contains(\"*/\") && line.indexOf(\"--\") > line.indexOf(\"*/\"))) {\r\n line = line.substring(0, line.indexOf(\"--\"));\r\n }\r\n }\r\n if (line.contains(\"/*\") && line.contains(\"*/\")) {\r\n line = line.substring(0, line.indexOf(\"/*\")) + line.substring(line.indexOf(\"*/\") + 2);\r\n }\r\n if (line.contains(\"/*\") && !line.contains(\"*/\")) {\r\n //if \"/*\" starts in the middle of the line, then extract left part excluding commented part\r\n uncommentedLine = line.substring(0, line.indexOf(\"/*\"));\r\n isCommentedLine = true;\r\n continue;\r\n }\r\n if (line.trim().startsWith(\"--\")) {\r\n line = \"\";\r\n }\r\n line = line.trim().replaceAll(\"( )+\", \" \");//replace multiple spaces with single space between words\r\n if (line.length() == 0) {\r\n continue;\r\n }\r\n fileContent += \" \" + line;\r\n }\r\n String appendSQL = \"\";\r\n appendSQL = getSQLfromUtilProc(fileContent, \"util_AppendToTable\", appendSQL);\r\n appendSQL = getSQLfromUtilProc(fileContent, \"util_CreateTableAs\", appendSQL);\r\n //appendSQL = getSQLfromUtilProc(fileContent, \"rename object\", appendSQL);\r\n sql += appendSQL;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return sql;\r\n }", "title": "" }, { "docid": "201feab382cc3bfff3889f756de96593", "score": "0.49079478", "text": "public void comment()\n{\n if (this.acceptSymbol(Source.T_COMMENT,Source.C_ANYOTHER_SYMBOL,Source.F_UNDEFINED))\n {\n commentsNumber++; if (commentsNumber>5) this.graveApostropheActivated=true;\n display(\"\\n-->[Comm\\n\");\n ParsingItem el1=this.dataCurrentItem;\n //we process the comment\n SourceComment s=new SourceComment(this);\n s.parse(el1);\n SourceComment.setCommentCategory(el1);\n this.addToDataNode();\n \n {display(\" [\"+previousTextSymbol+\"] \");}\n display(\"\\nComm]<--\\n\");\n }\n}", "title": "" }, { "docid": "3b72d8566bd53161ff65f046b25d4455", "score": "0.49030477", "text": "public abstract String getSql4CreateTableComment(String aOwnerName, String aTableName, String aDescription);", "title": "" }, { "docid": "6e02bc02f31632452abb49f74982850d", "score": "0.48965794", "text": "public ResultSet sqlgetListeRepertoire() throws SQLException {\n return parentLrcat.select(\n \"select \" +\n \"b.id_local as folder_id_local , \" +\n \"b.pathFromRoot , \" +\n \"b.rootFolder \" +\n \"from AgLibraryFolder b \" +\n// \"Where b.rootFolder = \" + rootfolderidlocal + \" \" +\n \"where pathFromRoot like '\" + normalizePath(absolutePath) + \"/%'\" +\n \" ;\");\n }", "title": "" }, { "docid": "f3af960bc0dc67e64e5f90ffa770273f", "score": "0.48828447", "text": "@Override\r\n\tpublic String getQuery() {\n\t\treturn \"SELECT * from P_PERF_FUS where SEQNO in (SELECT max(SEQNO) FROM P_PERF_FUS group by IP) order by IP\";\r\n\t}", "title": "" }, { "docid": "e34de01728bad05796e41adcea4b99cd", "score": "0.4845467", "text": "public void executeQuery()\n\t{\n\t\tm_sql = m_sql + \" ORDER BY obl.\"+MPPOrderBOMLine.COLUMNNAME_Line;\n\t\t// reset table\n\t\tissue.clearTable();\n\t\texecuteQuery(issue);\n\t\tissue.repaint();\n\t}", "title": "" }, { "docid": "e56c86ea696d28685d313448b28badae", "score": "0.48258", "text": "public String getTableComment(String comment) {\n \t\treturn \"\";\n \t}", "title": "" }, { "docid": "79a55423250be4f6c702040c9d3cf661", "score": "0.4817324", "text": "public final String listerequetes() throws Exception {\n\t\tString sql = \"\";\n\n\n\t\tArbre r =null;\n\n\t\tArbre lr_arbre;\n\t\ttry {\n\t\t\t// /home/bob/prog/lo17/ANTLR/tal_sql.g:33:30: (r= requete POINT )\n\t\t\t// /home/bob/prog/lo17/ANTLR/tal_sql.g:34:9: r= requete POINT\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_requete_in_listerequetes182);\n\t\t\tr=requete();\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input,POINT,FOLLOW_POINT_in_listerequetes184); \n\n\t\t\t lr_arbre = r;\n\t\t\t sql = lr_arbre.sortArbre();\n\t\t\t \n\t\t\t}\n\n\t\t}\n\n\t\t catch(Exception e){throw(e);}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn sql;\n\t}", "title": "" }, { "docid": "3b47e0fdd8e0f3d8643334fda605712b", "score": "0.47798395", "text": "@Override\n protected String doInBackground(String... params) {\n\n if(params[0]==\"\"){\n _Cursor = db.ShowHistorySearch();\n }else{\n _Cursor = db.searchWord(params[0]);\n }\n listDataHeader = new ArrayList<woeter>();//Root Node\n listDataChild = new HashMap<woeter, List<String>>();\n\n // Adding note data\n int i=0;\n for(woeter item : _Cursor){\n listDataHeader.add(item);\n List<String> childItem = new ArrayList<String>();\n childItem.add(item.woeter);\n listDataChild.put(listDataHeader.get(i), childItem); // Header, Child data\n i++;\n }\n return \"\" ;// doc noi dung url tra ve string\n }", "title": "" }, { "docid": "92ee9b0423e158cc3006fa2d345ed661", "score": "0.47795144", "text": "@Override\n protected String consultasql() {\n return \"SELECT * FROM Atracao a ORDER BY a.valor ASC\";\n }", "title": "" }, { "docid": "18007789e654a47d57446352dd74bed1", "score": "0.47718784", "text": "public List<Comment> getAllComment(String pid) throws SQLException, ClassNotFoundException {\n List<Comment> comments = new ArrayList<Comment>();\n PreparedStatement pstmt = conn.prepareStatement(\"select * from comment where pid=? order by date_post, time_post\");\n pstmt.setString(1, pid);\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n Comment temp = new Comment();\n temp.setCmid(rs.getInt(\"cmid\"));\n temp.setUcid(rs.getInt(\"ucid\"));\n temp.setPid(rs.getString(\"pid\"));\n temp.setContent(rs.getString(\"content\"));\n temp.setDate(rs.getString(\"date_post\"));\n temp.setTime(rs.getString(\"time_post\"));\n comments.add(temp);\n }\n return comments;\n }", "title": "" }, { "docid": "b2a440836d3e816a1b2cdd0ae2e2e302", "score": "0.47184008", "text": "private String toSqlString(Guide guide, String guidename) {\r\n\t\tString sql = \"\\n\\n/* \" + guidename + \" */\\n\";\r\n\t\twhile(guide.hasNext()) {\r\n\t\t\tguide.next();\r\n\t\t\tsql += \"( SELECT \" + guide.getSelect();\r\n\t\t\tsql += \" FROM \" + guide.getFrom();\r\n\t\t\tsql += \" WHERE \" + guide.getWhere();\r\n\t\t\tif (!guide.hasNext()) {\r\n\t\t\t\tsql += \"=1\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsql += \" IN \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tfor(int i=0; i<guide.numberOfSteps(); i++) {\r\n\t\t\tsql += \")\";\r\n\t\t}\r\n\t\tsql += \";\";\r\n\t\treturn sql;\r\n\t}", "title": "" }, { "docid": "31b514e709e4bd64eb6fa822dcf88b63", "score": "0.47090945", "text": "private void runSimpleOrderBy(Statement stmt) throws Exception {\n stmt.executeQuery(\"SELECT * FROM tst ORDER BY c2\");\n }", "title": "" }, { "docid": "1be6c6f7391670bb75a9663ee1ded6e9", "score": "0.4689501", "text": "java.lang.String getOComments();", "title": "" }, { "docid": "261fe3f5d07e3f291b2cc95ea355163d", "score": "0.46811584", "text": "java.lang.String getComment();", "title": "" }, { "docid": "e003e3e8a41b68c537e06fc64c9b677b", "score": "0.46791288", "text": "public String selectNote(){\r\n String result=\"\";\r\n String query=\"Select id_materie,id_student,valori_note from materii\";\r\n try (Connection conn = this.connect();\r\n Statement stmt = conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(query)) {\r\n while (rs.next()) {\r\n result+= rs.getString(\"id_student\") +\" \" + rs.getString(\"id_materie\") + \" \" + rs.getString(\"valori_note\")+ \" | \";\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "609b6595fbb6feb3457fe423d796382e", "score": "0.467436", "text": "public static void selectPartBody(String body) {\n try (Connection conn = DriverManager.getConnection(DBURL)) {\n PreparedStatement p = conn.prepareStatement(\"select OE.OE_NO,OE.OE_NAME,OE.C_PRICE,OE.D_PRICE,OE.G_PRICE,OE.R_PRICE \"\n + \"from OE, OE_BODY\"\n + \"where OE.OE_NO = OE_Body.OE_NO and OE_BODY.body =\" + body);\n ResultSet rs = p.executeQuery();\n while (rs.next()) {\n System.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + rs.getDouble(3) + \"\\t\" + rs.getString(4) + \"\\t\" + rs.getString(5) + \"\\t\" + rs.getString(6));\n }\n\n p = conn.prepareStatement(\"select OEM.OEM_NO,OEM.OEM_NAME,OEM.C_PRICE,OEM.D_PRICE,OEM.G_PRICE,OEM.R_PRICE \"\n + \"from OEM, OE_BODY\"\n + \"where OEM.OE_NO = OE_Body.OE_NO and OE_BODY.Body =\" + body);\n rs = p.executeQuery();\n while (rs.next()) {\n System.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + rs.getDouble(3) + \"\\t\" + rs.getString(4) + \"\\t\" + rs.getString(5) + \"\\t\" + rs.getString(6));\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "577a4f43711ab11c5e9413c670cec491", "score": "0.4652787", "text": "void setComment()\n\t {\n\t\t comment = new PdfPTable(1);\n\t\t comment.setWidthPercentage(100);\n\t\t PdfPCell notify1=new PdfPCell(new Phrase(\"\"));\n notify1.setBorder(0);\n\t\t \n\t\t PdfPCell cell1 = new PdfPCell(new Phrase(\"Other Comments\",new Font(Font.STRIKETHRU, 12)));\n\t\t \n\t\t cell1.setBackgroundColor(BaseColor.LIGHT_GRAY);\n\t\t cell1.setBorder(0);\n\t\t PdfPCell cell2 = new PdfPCell(new Phrase(\"1. Total payment due in 30 days.\\n2. Please include invoice number onyour check.\",new Font(Font.STRIKETHRU,10)));\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t\n\t\t \n\t\t\n\t\t \n\t\t comment.addCell(notify1);\n\t\t comment.addCell(cell1);\n\t\t comment.addCell(cell2);\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t comment.setTotalWidth(200f);\n\t comment.writeSelectedRows(0,-1,100,350,writer.getDirectContent());\n\t \n\t \n\t\t \n\t }", "title": "" }, { "docid": "43847884c5df508c68a2251511b5d7e9", "score": "0.4651875", "text": "public Cursor getQuotes(String WhereStatement ) {\n\n\n this.open();\n String WS = \" WHERE \";\n if(WhereStatement.equals(\"\"))\n {WS=\"\";}\n else WS = WS + WhereStatement;\n //openHelper.getReadableDatabase().query(\"UserTable\", null, null, null,null,null,null);\n\n return database.rawQuery(\"SELECT * FROM PLU_Table\"+WS, null);\n\n }", "title": "" }, { "docid": "d6ba8cb3b35a4238d66aaf9443891630", "score": "0.46361852", "text": "public LinkedList consultar(String codigo, String pasajero, String estacion)\r\n {\n List lista;\r\n LinkedList listabuses= new LinkedList();\r\n String sql_select=\"SELECT r FROM Reclamos r \";\r\n if (!codigo.equals(\"\") || (!pasajero.equals(\" \")&&!pasajero.equals(\"\")) || \r\n (!estacion.equals(\"\")&& !estacion.equals(\" \") )) {\r\n \r\n sql_select += \"WHERE\";\r\n }\r\n \r\n if (!codigo.equals(\"\")) {\r\n sql_select += \" r.codigo = '\" + codigo + \"' AND \";\r\n } \r\n \r\n \r\n if(!pasajero.equals(\" \")&&!pasajero.equals(\"\")){\r\n sql_select += \" r.pasajero = '\"+pasajero+\"'\"+\" AND \";\r\n }\r\n \r\n \r\n if(!estacion.equals(\" \")&&!estacion.equals(\"\")){\r\n sql_select += \" r.estacion = '\" + estacion + \"' AND \";\r\n }\r\n\r\n \r\n \r\n sql_select = sql_select.substring(0, sql_select.length() - 5);\r\n System.out.println(sql_select);\r\n \r\n //sirve para ejecutar consultas\r\n// if(sql_select.contains(\"WHERE\"))\r\n lista = manager.createQuery(sql_select).getResultList();\r\n //else lista = manager.createQuery(\"SELECT b FROM Buses b \").getResultList();\r\n \r\n for(int i=0;i<lista.size();i++)\r\n {\r\n Reclamos b = (Reclamos) lista.get(i);\r\n listabuses.add(b);\r\n }\r\n \r\n return listabuses;\r\n }", "title": "" }, { "docid": "29075a4f1527f00fa30d5d3af6eafd64", "score": "0.4628006", "text": "public void op4_find_editor_pub(int cmId) throws SQLException{\n String query = \"SELECT p.pubId, p.title, o.orderItemId, o.pubDate FROM ItemEditedBy ie NATURAL JOIN Publications p NATURAL JOIN OrderItems o WHERE ie.cmId=\"+cmId;\n rs = statement.executeQuery(query);\n\n /*\n int count=1;\n while(rs.next()){\n System.out.println(\"\\nRecord \"+count+\": \");\n System.out.println(\"Publication ID: \"+rs.getString(\"pubId\"));\n System.out.println(\"Publication Title: \"+rs.getString(\"title\"));\n count++;\n }\n */\n\n TableGenerator tableGenerator = new TableGenerator();\n List<String> headersList = new ArrayList<>();\n headersList.add(\"Publication ID\");\n headersList.add(\"Publication Title\");\n headersList.add(\"Edition or Issue No.\");\n headersList.add(\"Publication Date\");\n\n List<List<String>> rowsList = new ArrayList<>();\n\n while(rs.next())\n {\n List<String> row = new ArrayList<>();\n\n row.add(rs.getString(\"pubId\"));\n row.add(rs.getString(\"title\"));\n row.add(rs.getString(\"orderItemId\"));\n row.add(rs.getString(\"pubDate\"));\n\n rowsList.add(row);\n }\n\n System.out.println(tableGenerator.generateTable(headersList, rowsList));\n }", "title": "" }, { "docid": "1b15c6c62bc864e2b2ad9375c6536dd8", "score": "0.46263695", "text": "@Override\n\tpublic String executeQuery() {\n\n\t\tString freebase = convertToFreebase(this.subject.substring(0,1).toUpperCase() + \"\" + this.subject.substring(1));\n\n\t\tString ans = \"\";\n\n\t\tswitch(predicate) {\n\t\tcase \"is\": String query = \"SELECT ?o WHERE { \" + freebase + \" dbp-ont:abstract ?o . }\";\n\t\t\t\t ans = sendQuery(query).next().toString();\n\t\t\t\t ans = formatObject(ans);\n\n\t\t\t\t int pos = ans.indexOf(\".\") +1;\n\t\t\t\t int pos2 = ans.indexOf(\".\", pos) + 1;\n\n\t\t\t\t ans = ans.substring(0, pos2).length() > 180 ? ans.substring(0, pos2) : ans.substring(0, ans.indexOf(\".\", pos2) + 1);\n\t\t\t\t break;\n\t\t}\n\n\t\t// TODO Auto-generated method stub\n\n\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "e91a6ca0536b42970d775d9b363e06cd", "score": "0.46222505", "text": "public int getORDERReps()\n/* */ {\n/* 149 */ return getReps(\"ORDER\");\n/* */ }", "title": "" }, { "docid": "d952f16e9d68a43e0d6cd31d7eca1a21", "score": "0.46179256", "text": "public String query() {\n\n // load list of comments from query\n loadComments();\n\n // load bean data using comments list\n getBean().loadCheckboxes(getPager().getItems());\n\n try {\n WeblogEntryManager wmgr = WebloggerFactory.getWeblogger().getWeblogEntryManager();\n\n CommentSearchCriteria csc = getCommentSearchCriteria();\n\n List<WeblogEntryComment> allMatchingComments = wmgr.getComments(csc);\n if (allMatchingComments.size() > COUNT) {\n setBulkDeleteCount(allMatchingComments.size());\n }\n\n } catch (WebloggerException ex) {\n log.error(\"Error looking up comments\", ex);\n addError(\"Error looking up comments\");\n }\n\n return LIST;\n }", "title": "" }, { "docid": "52bb27667ac78a25a5d711d0f487a358", "score": "0.45964605", "text": "public String getColumnComment(String comment) {\n \t\treturn \"\";\n \t}", "title": "" }, { "docid": "6ca4843c202fb5b0e970a17e9315e1c5", "score": "0.45940417", "text": "@Query(\"SELECT * FROM item WHERE parent_id = (:uid) AND content LIKE (:content) ORDER BY updated_at DESC, created_at DESC\")\n public List<Item> searchItemsOfParent(Integer uid, String content);", "title": "" }, { "docid": "4a438e12f5d7f8351d8d61ab98d11cb7", "score": "0.45881942", "text": "public ResultSet obtenerFacOrg(Connection con,int co_emp, int co_loc, int co_tipdoc, int co_doc){\r\n String strSql=\"\";\r\n ResultSet rs=null;\r\n Statement stm=null;\r\n try{\r\n strSql=\"select c.co_emp, c.co_loc, c.co_tipdoc, min(c.co_doc) as co_doc \\n\" +\r\n \" from tbm_Cabmovinv as c, (\\n\" +\r\n \"\t\t\t\tselect ne_numcot, co_emp, co_loc, co_tipdoc, co_doc\\n\" +\r\n \"\t\t\t\tfrom tbm_Cabmovinv \\n\" +\r\n \"\t\t\t\twhere co_emp=\"+co_emp+\" \\n\" +\r\n \"\t\t\t\tand co_loc=\"+co_loc+\"\\n\" +\r\n \"\t\t\t\tand co_tipdoc=\"+co_tipdoc+\"\\n\" +\r\n \"\t\t\t\tand co_doc=\"+co_doc+\") as d\\n\" +\r\n \" where c.ne_numcot=d.ne_numcot\\n\" +\r\n \" and c.co_emp=d.co_emp\\n\" +\r\n \" and c.co_loc=d.co_loc\\n\" +\r\n \" and c.co_tipdoc=d.co_tipdoc\\n\" +\r\n \" group by c.co_emp, c.co_loc, c.co_tipdoc\";\r\n stm=con.createStatement();\r\n rs=stm.executeQuery(strSql);\r\n \r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n } \r\n return rs;\r\n }", "title": "" }, { "docid": "ff1a6ea5ef36e87cd5df3384f96efcbd", "score": "0.45770198", "text": "java.lang.String getComments();", "title": "" }, { "docid": "ff1a6ea5ef36e87cd5df3384f96efcbd", "score": "0.45759583", "text": "java.lang.String getComments();", "title": "" }, { "docid": "2453b53149cd965197224bf60b41a689", "score": "0.45743397", "text": "@Query(\"SELECT * FROM note_table ORDER BY priority DESC\")\n LiveData<List<Note> > getAllNotes();", "title": "" }, { "docid": "b36348a8cd44afd4a21fd2ea12d2359d", "score": "0.45727775", "text": "private String makeCatDocRef() {\n String parent=this.getParentIaid();\n int level=this.getSourceLevelId();\n String workingid=this.getIaid();\n String currentRef=this.getReference();\n StringBuilder catreference=new StringBuilder(\"\");\n \n //String workingRef;\n if(refCache.exists(parent)){\n if(level==6){\n catreference.append(refCache.lookup(parent)).append(\"/\").append(currentRef);\n refCache.insert(workingid, catreference.toString());\n return catreference.toString();\n }\n else if(level==7){\n catreference.append(refCache.lookup(parent)).append(\"/\").append(currentRef);\n return catreference.toString();\n }\n else if(level==3)\n { \n catreference.append(refCache.lookup(parent)).append(\" \").append(currentRef);\n refCache.insert(workingid, catreference.toString());\n return catreference.toString();\n }\n else{\n catreference.append(refCache.lookup(parent));\n refCache.insert(workingid, catreference.toString());\n return catreference.toString();\n } \n }\n else{\n \n while(!\"C0\".equals(workingid)){\n if (level==6||level==7){\n catreference.insert(0, currentRef);\n catreference.insert(0,\"/\");\n }\n else if (level==3){\n catreference.insert(0, currentRef);\n catreference.insert(0, \" \");\n }\n else if(level==1){\n catreference.insert(0,currentRef);\n }\n //go get parent\n if(\"C0\".equals(parent)){\n this.refCache.insert(getIaid(), catreference.toString());\n return catreference.toString();\n }\n DBObject doc=fetcher.findParent(parent);\n workingid=(String)doc.get(\"IAID\");\n parent=(String)doc.get(\"ParentIAID\");\n currentRef=(String)doc.get(\"Reference\");\n level=(Integer)doc.get(\"SourceLevelId\");\n this.urlCache.insertLevel(workingid, level);\n if(workingid.equals(this.getParentIaid())){\n this.parentLevel=level;\n }\n \n \n }\n \n }\n if(this.getSourceLevelId()<7){\n this.refCache.insert( getIaid(), getReference().toString());\n }\n return getReference().toString();\n //throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "title": "" }, { "docid": "852ed0baf6dd61af6111ae8cfed89384", "score": "0.45673943", "text": "@Override\n\tpublic CommentDetail queryComment(String id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2b0257f33eadac71e9a665d35529fe71", "score": "0.45568663", "text": "@Override\r\n\tpublic List<CommentsBean> qryCommentsByTitle(String title) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9e0e2a07ae2d0d2665f05db3dcbe375f", "score": "0.45568383", "text": "public ResultSet getList(){\n String sql = \"select roll_no,stud,corejava,oose from marks1 \";\r\n try{\r\n //conn = ds.getConnection();\r\n \t\t\t\r\n stmt=conn.createStatement();\r\n System.out.println(\"classtest marks getlist sql=\"+sql);\r\n rs=stmt.executeQuery(sql);\r\n\r\n return rs;\r\n \r\n }\r\n catch(Exception e){\r\n e.getStackTrace();\r\n }\r\n \r\n return rs;\r\n \r\n}", "title": "" }, { "docid": "225a5d4f0f4098d7e13f36761dca8826", "score": "0.45556614", "text": "protected String select_query(String select, String from, String where, String sort, String start, String count)\r\n/* 63: */ {\r\n/* 64: 96 */ String sql = \"SELECT \" + select + \" FROM \" + from;\r\n/* 65: 97 */ if (!where.equals(\"\")) {\r\n/* 66: 97 */ sql = sql + \" WHERE \" + where;\r\n/* 67: */ }\r\n/* 68: 98 */ if (!sort.equals(\"\")) {\r\n/* 69: 98 */ sql = sql + \" ORDER BY \" + sort;\r\n/* 70: */ }\r\n/* 71: 99 */ if ((!start.equals(\"\")) || (!count.equals(\"\")))\r\n/* 72: */ {\r\n/* 73:100 */ String end = Integer.toString(Integer.parseInt(count) + Integer.parseInt(start));\r\n/* 74:101 */ sql = \"SELECT * FROM ( select /*+ FIRST_ROWS(\" + count + \")*/dhx_table.*, ROWNUM rnum FROM (\" + sql + \") dhx_table where ROWNUM <= \" + end + \" ) where rnum >\" + start;\r\n/* 75: */ }\r\n/* 76:103 */ return sql;\r\n/* 77: */ }", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.45550022", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.45550022", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.45550022", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.45550022", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.45550022", "text": "String getComment();", "title": "" }, { "docid": "4905de501cc4336d767ae756e9943112", "score": "0.45505112", "text": "public static String selectDefE9FA66D9C5AE4E499DD4E6FAA9364C0E(ConnectionProvider connectionProvider, String c_order_id) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT COALESCE(MAX(LINE),0)+10 AS DefaultValue FROM ZSSI_ORDER_TEXTMODULE WHERE c_order_id=? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, c_order_id);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"defaultvalue\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "312a1a9232b77c8c927905fded605211", "score": "0.4545958", "text": "public Predicate toPredicate(Root<ARTICLECOMMENT> root, CriteriaQuery<?> query, CriteriaBuilder cb) {\n\t\t\t\tPath<String>PARENTIDPath=root.get(\"PARENTID\");\r\n\t\t\t\tPath<String>ARTICLEIDPath=root.get(\"ARTICLEID\");\r\n\t\t\t\tquery.where(cb.equal(PARENTIDPath, PARENTID),cb.equal(ARTICLEIDPath, ARTICLEID));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "75b7ee2548a8afcaf9d001ae0d0a6027", "score": "0.45455948", "text": "public Predicate toPredicate(Root<ARTICLECOMMENT> root, CriteriaQuery<?> query, CriteriaBuilder cb) {\n\t\t\t\tPath<String>PARENTIDPath=root.get(\"PARENTID\");\r\n\t\t\t\tquery.where(cb.equal(PARENTIDPath, PARENTID));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "44d9d6b74de80ec57fa09e5d4ff01192", "score": "0.45336294", "text": "public abstract PageSupport getProductCommentList(HqlQuery hql);", "title": "" }, { "docid": "b35d122bf5afeb750c9d4ac263b7ada2", "score": "0.45268735", "text": "public List<Comments> queryDeep(String where, String... selectionArg) {\n Cursor cursor = db.rawQuery(getSelectDeep() + where, selectionArg);\n return loadDeepAllAndCloseCursor(cursor);\n }", "title": "" }, { "docid": "b9c30e0b2a5029a06d1edf9fbfa2f2da", "score": "0.45211965", "text": "IndexSearcher openCommentSearcher();", "title": "" }, { "docid": "bf4e3a36878dec7ad337594262ee4bf1", "score": "0.4509184", "text": "List<ReportComment> getReportCommentsByComment(Comment comment);", "title": "" }, { "docid": "ac7099d62547f7e48b32d6a827ad3eac", "score": "0.4503221", "text": "@Override\n public String toString(){\n return name + \" : \" + comment;\n }", "title": "" }, { "docid": "696a9868e0d24f75aaf7e2eaeb58259a", "score": "0.44922858", "text": "public interface CommentRepository extends JpaRepository<Comment,Long> {\n\n @Query(\"select comment from Comment comment where comment.user.login = ?#{principal.username}\")\n List<Comment> findByUserIsCurrentUser();\n\n List<Comment> findByQuestionOrderByCreateDateDesc(Question q);\n\n @Query(\"select comment from Comment comment where comment.question.id = ?1 and comment.commentStatus.id = \" + Constants.CommentStatus.ACTIVE + \" order by comment.createDate desc\")\n List<Comment> listQuestionComments(Long questionId);\n\n @Query(\"select count(comment.id) from Comment comment where comment.question.id = ?1 and comment.parentId is null and comment.commentStatus.id = \" + Constants.CommentStatus.ACTIVE)\n Long countQuestionComment(Long questionId);\n\n}", "title": "" }, { "docid": "17e9b218464b03f3890d38d6837b5f95", "score": "0.44914427", "text": "private Cursor query(String selection, String[] selectionArgs, String[] columns, \n\t\t\tString sortOrder, String groupBy) {\n\t\tSQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n\t\tbuilder.setTables(TITLE_TABLE);\n\t\tbuilder.setProjectionMap(mColumnMap);\n\t\t\n\t\tCursor cursor = builder.query(mClassicoDatabase,\n\t\t\t\tcolumns, selection, selectionArgs, groupBy, null, sortOrder);\t\t\t\t\n\t\tif (cursor == null) {\n\t\t\treturn null;\n\t\t} else if (!cursor.moveToFirst()) {\n\t\t\tcursor.close();\n\t\t\treturn null;\n\t\t}\n\t\treturn cursor;\n\t}", "title": "" }, { "docid": "260044726f476bff16b501d0cbfa6905", "score": "0.44769683", "text": "@Override\r\n\tpublic List<CommentsBean> qryAllComments() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "27d1d1cc5c4f3d40dd534d8b2cfbc0c3", "score": "0.4475289", "text": "public Cursor fetch() {\n String[] columns = new String[] { DatabaseHelper._ID, DatabaseHelper.SUBJECT, DatabaseHelper.DESC, DatabaseHelper.DATE, DatabaseHelper.STATUS };\n Cursor cursor = database.query(DatabaseHelper.TABLE_NAME, columns, null, null, null, null, DatabaseHelper.DATE + \" ASC\");\n if (cursor != null) {\n cursor.moveToFirst();\n }\n return cursor;\n }", "title": "" }, { "docid": "f58c54e7b29d4de6f961c5d7fb77a341", "score": "0.4471874", "text": "public List<CardDeck> getCardDecks(Long parentId) {\n\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n // base query\n String query = DbHelper.TABLE_CARD_DECK +\n \" LEFT JOIN \" + DbHelper.TABLE_SELECTION + \" ON \"\n + DbHelper.TABLE_CARD_DECK + \".\" + DbHelper.COLUMN_CARD_DECK_ID + \" = \" + DbHelper.TABLE_SELECTION + \".\" + DbHelper.COLUMN_SELECTION_CARD_DECK_ID\n + \" AND \" + DbHelper.TABLE_SELECTION + \".\" + DbHelper.COLUMN_SELECTION_USER_ID + \" = \" + loggedInUser.getId();\n\n // if null then get all carddecks\n if (parentId != null) {\n\n query += \" WHERE \" + DbHelper.COLUMN_CARD_DECK_PARENT + \" = \" + parentId;\n }\n\n qb.setTables(query);\n\n Cursor cursor = qb.query(database, null, null, null, null, null, null);\n\n List<CardDeck> cardDecks = new ArrayList<CardDeck>();\n\n if (cursor.moveToFirst()) {\n do {\n long cardDeckId = cursor.getLong(0);\n String cardDeckName = cursor.getString(1);\n String cardDeckDescription = cursor.getString(2);\n boolean cardDeckVisible = cursor.getInt(3) > 0;\n long cardDeckGroupId = cursor.getLong(4);\n long cardDeckParentId = cursor.getLong(5);\n long selectionDate = cursor.getLong(cursor.getColumnIndex(COLUMN_SELECTION_DATE));\n\n boolean isSelected = selectionDate > 0;\n\n UserGroup userGroup = getUserGroup(cardDeckGroupId);\n\n cardDecks.add(new CardDeck(cardDeckId,cardDeckVisible, userGroup,cardDeckName, cardDeckDescription, selectionDate));\n\n } while (cursor.moveToNext());\n }\n\n\n return cardDecks;\n }", "title": "" }, { "docid": "43e31393bd8d288f5aa6c75afc749d08", "score": "0.44652042", "text": "@Override\r\n\tpublic String queryComment(Date beginDate, Date endDate, Integer offset, Integer limit) throws WxPayException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ef00e1d3412fe7c7fd025024840ef892", "score": "0.4464658", "text": "@Test void testOrderByExpr() {\n CalciteAssert.hr()\n .query(\"select \\\"name\\\", \\\"empid\\\" from \\\"hr\\\".\\\"emps\\\"\\n\"\n + \"order by - \\\"empid\\\"\")\n .returns(\"name=Eric; empid=200\\n\"\n + \"name=Sebastian; empid=150\\n\"\n + \"name=Theodore; empid=110\\n\"\n + \"name=Bill; empid=100\\n\");\n }", "title": "" }, { "docid": "e8929e5bb04c2b93c8642b32ca27201a", "score": "0.446098", "text": "DBObject findParent(String parent)\n {\n /*BasicDBObject query=new BasicDBObject(\"IAID\", parent);\n BasicDBObject fieldlist=new BasicDBObject(\"IAID\",1).append(\"ParentIAID\", 1).append(\"Reference\", 1).append(\"SourceLevelId\",1).append(\"CoveringDateFrom\", 1).append(\"CoveringDateTo\", 1).append(\"Title\", 1);\n DBObject doc=sourceColl.findOne(query, fieldlist);*/\n //doc=runPQuery(makeQuery(parent),makefields());\n \n return sourceColl.findOne(new BasicDBObject(\"IAID\", parent),Fetcher.fieldList);\n }", "title": "" }, { "docid": "88a45f1f96d39b9537d52a1fb4611960", "score": "0.44571868", "text": "public String addReport(){\n String query = \"INSERT INTO reports (name,reportNo,content,date\"\n + \") VALUES (\" + \"'\"+ getName()+ \"',\" + \"'\" + getReportNo() + \n \"',\" +\"'\" +getContent() + \"',\" +\"'\" +getRegDate() +\"');\";\n return query;\n }", "title": "" }, { "docid": "4e3d81fb595af820ed7a9e63c9950771", "score": "0.44552305", "text": "String getComments();", "title": "" }, { "docid": "a98fe25f6a0a26de6d39797c22a1dfc8", "score": "0.4453869", "text": "@Override\n public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n \n String groupBy = null;\n \n int uriType = sURIMatcher.match(uri);\n switch (uriType) {\n case HABIT_ID:\n queryBuilder.appendWhere(HabitTable.COLUMN_ID + \"=\" + uri.getLastPathSegment());\n case HABITS:\n \tgroupBy = HabitTable.TABLE_HABIT + HabitTable.COLUMN_ID;\n queryBuilder.setTables(HabitTable.TABLE_HABIT + \" LEFT OUTER JOIN \" + EventTable.TABLE_EVENT);\n break;\n case GOAL_ID:\n queryBuilder.appendWhere(GoalTable.TABLE_GOAL + \".\" + GoalTable.COLUMN_ID + \"=\" + uri.getLastPathSegment());\n case GOALS:\n queryBuilder.appendWhere(GoalTable.TABLE_GOAL + \".\" + GoalTable.COLUMN_HABIT_ID + \"=\" + HabitTable.TABLE_HABIT + \".\" + HabitTable.COLUMN_ID);\n queryBuilder.setTables(GoalTable.TABLE_GOAL + \",\" + HabitTable.TABLE_HABIT);\n break;\n case EVENT_ID:\n queryBuilder.appendWhere(EventTable.TABLE_EVENT + \".\" + EventTable.COLUMN_ID + \"=\" + uri.getLastPathSegment());\n case EVENTS:\n queryBuilder.appendWhere(EventTable.TABLE_EVENT + \".\" + EventTable.COLUMN_HABIT_ID + \"=\" + HabitTable.TABLE_HABIT + \".\" + HabitTable.COLUMN_ID);\n queryBuilder.setTables(EventTable.TABLE_EVENT + \",\" + HabitTable.TABLE_HABIT);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown URI: \" + uri);\n }\n \n SQLiteDatabase db = database.getWritableDatabase();\n Cursor cursor = queryBuilder.query(db, projection, selection, selectionArgs, groupBy, null, sortOrder);\n // Make sure that potential listeners are getting notified\n cursor.setNotificationUri(getContext().getContentResolver(), uri);\n \n return cursor;\n }", "title": "" }, { "docid": "d3523e41c67a9959207811e087439ee7", "score": "0.44524947", "text": "public ArrayList<Comment> getCommentList(){\r\n ArrayList<Comment> comments=new ArrayList<>();\r\n try\r\n {\r\n Statement statement = connection.createStatement();\r\n connection.commit();\r\n ResultSet rs = statement.executeQuery(\"SELECT * FROM COMMENTS ORDER BY TIME_POSTED DESC;\");\r\n\r\n Comment comment;\r\n while (rs.next())\r\n {\r\n Timestamp ts = rs.getTimestamp(\"TIME_POSTED\", utc);\r\n\r\n LocalDateTime localDt = null;\r\n if (ts != null)\r\n localDt = LocalDateTime.ofInstant(Instant.ofEpochMilli(ts.getTime()), ZoneOffset.UTC);\r\n\r\n comment=new Comment(rs.getInt(\"COMMENT_ID\"),rs.getString(\"BODY\"),\r\n rs.getString(\"HANDLE\"),rs.getInt(\"LIKES\"),localDt,\r\n rs.getInt(\"POST_ID\"));\r\n\r\n comments.add(comment);\r\n }\r\n }\r\n catch(Exception e){\r\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\r\n System.exit(0);\r\n }\r\n return comments;\r\n }", "title": "" }, { "docid": "88e89770822b7281f5c4911c34e0de68", "score": "0.44494215", "text": "Cursor getCursorAllNotes() {\n String[] projection = {\n TaskNoteTable.NoteEntry._ID,\n TaskNoteTable.NoteEntry.COLLUMN_CONTENT,\n TaskNoteTable.NoteEntry.COLLUMN_CREATE_DATE,\n TaskNoteTable.NoteEntry.COLLUMN_IS_IMPORTANT\n }; //like \"SELECT * FROM...\"\n\n return db.query(\n TaskNoteTable.NoteEntry.TABLE_NAME, projection, null, null, null, null, null\n );\n }", "title": "" }, { "docid": "cb1e16b71e0318ef66dd2ad7727625f4", "score": "0.44395602", "text": "private String secondSQL(JSONArray list) {\n\t\tString where = \" where SYS_DOCUMENTID in (\";\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (i > 0) where += \",\";\r\n\t\t\t\r\n\t\t\tJSONObject ele = (JSONObject)list.get(i);\r\n\t\t\twhere += ele.getString(\"SYS_DOCUMENTID\");\r\n\t\t}\r\n\t\twhere += \")\";\r\n\t\t\r\n\t\t//select ...... from .... where ....\r\n\t\tString sql = \"select \" + getSelectField()\r\n\t\t\t\t+ \" from \" + docLib.getDocLibTable()\r\n\t\t\t\t+ where;\r\n\t\treturn sql;\r\n\t}", "title": "" }, { "docid": "9b243cc497cf433e651ac97e6dbc1704", "score": "0.4430847", "text": "public java.sql.PreparedStatement findByQBE(\n Boolean isLeaseDocument, Integer leaseDocument,\n Boolean isBillDate, java.sql.Date fromBillDate, java.sql.Date toBillDate, \n Boolean isBillType, String billType,\n Integer order) throws Exception {\n int i;\n int[] genericFindInsertPoints = getGenericFindInsertPoints();\n StringBuffer sb = new StringBuffer(getGenericFindSqlString());\n\n //calculate where clause\n StringBuffer whereClause = new StringBuffer(\"1=1 \");\n if (isLeaseDocument.booleanValue())\n whereClause.append(\"and leaseDocument=? \");\n if (isBillDate.booleanValue())\n whereClause.append(\"and BillDate >= ? and billdate <=? \");\n if (isBillType.booleanValue())\n whereClause.append(\"and billType=?\");\n\n //and fill it by where clause\n for (i = 0; i < genericFindInsertPoints.length; i++) {\n sb.insert(genericFindInsertPoints[i], whereClause.toString());\n }\n\n //append order by clause\n String orderBy = null;\n switch (order.intValue()) {\n case 1 :\n orderBy = \"billNumber asc\";\n break;\n case 2 :\n orderBy = \"billNumber desc\";\n break;\n case 3 :\n orderBy = \"billDate asc\";\n break;\n case 4 :\n orderBy = \"billDate desc\";\n break;\n }\n sb.append(\" order by \" + orderBy);\n\n //System.out.println(\"SQL clause=\" + sb);\n\n //fill prepared statement\n PreparedStatement ps = getPreparedStatement(sb.toString());\n\n int j = 1;\n for (i = 0; i < getMergedWhereCount(); i++) {\n if (isLeaseDocument.booleanValue())\n ps.setInt(j++, leaseDocument.intValue());\n if (isBillDate.booleanValue()){\n ps.setDate(j++, fromBillDate);\n ps.setDate(j++, toBillDate);\n }\n if (isBillType.booleanValue())\n ps.setString(j++, billType);\n }\n\n return ps;\t \n}", "title": "" }, { "docid": "68065965c3d0203e60e5babcd1470202", "score": "0.4430284", "text": "@Override\n public String toString(){\n return comment;\n }", "title": "" }, { "docid": "73fe039d12cb10d9e72be9572c6b3fde", "score": "0.44264084", "text": "private static void getChapterNameAndURL() throws IOException, SQLException {\n\n BufferedReader buffer = new BufferedReader(new InputStreamReader(HtmlUtils.getConnection(\"http://www.xbiquge.la/7/7004/\").getInputStream()) );\n\n //得到每一章节的标题和内容\n String line = null;\n String reg = \"<dd><a href='([\\\\s\\\\S]+?)' >(.+?)</a></dd>\";\n Pattern pattern = Pattern.compile(reg);\n\n //matcher:匹配\n while (( line = buffer.readLine() ) != null) {\n Matcher matcher = pattern.matcher(line);\n while (matcher.find()) {\n String string = matcher.group(2);\n list1.add(string);\n\n string = matcher.group(1);\n list2.add(\"http://www.xbiquge.la\" + string);\n }\n }\n for(int i=0;i<list1.size();i++)\n {\n System.out.println(list1.get(i)+\" \"+list2.get(i));\n }\n }", "title": "" }, { "docid": "faccb4e4bd318565d0e58ccf1ec76793", "score": "0.44206652", "text": "List selectByExample(OrderAlterDetailExample example) throws SQLException;", "title": "" }, { "docid": "d61578e218a995ad60ee97e176115cf1", "score": "0.44197667", "text": "public String insertHierarchy() throws Throwable {\n\r\n\t\tString vtablename = \"\";\r\n\t\tswitch (vlevel) {\r\n\t\tcase \"1\":\r\n\t\t\tvtablename = \"msArticle_group\";\r\n\t\t\tbreak;\r\n\t\tcase \"2\":\r\n\t\t\tvtablename = \"msArticle_Subgroup\";\r\n\t\t\tbreak;\r\n\t\tcase \"3\":\r\n\t\t\tvtablename = \"msArticle_Category\";\r\n\t\t\tbreak;\r\n\t\tcase \"4\":\r\n\t\t\tvtablename = \"msArticle_SubCategory\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tprst = null;\r\n\t\tfinal int batchSize = 10;\r\n\t\tint TotalRecordinsert = 0;\r\n\t\tString status = \"Fail\";\r\n\t\tConnection con = this.getConnection();\r\n\t\tcon.setAutoCommit(false);\r\n\t\tString hie = \"Insert into \" + vtablename + \"(Company_code , \"\r\n\t\t\t\t+ \"Segment, Verticle , hierarchyNo, level, code , \"\r\n\t\t\t\t+ \"name, nodeType ,levelMappedName, Parent_1, Parent_2, Parent_3, Parent_4) \"\r\n\t\t\t\t+ \"values(?,?,?,?,?,?,?,?,?,?,?,?,? )\";\r\n\t\t// new General().msg(hie);\r\n\t\ttry {\r\n\t\t\tprst = con.prepareStatement(hie);\r\n\t\t\tprst.setString(1, \"0\");\r\n\t\t\tprst.setString(2, segmentcode.getText());\r\n\t\t\tprst.setString(3, verticlecode.getText());\r\n\t\t\tprst.setString(4, hierarchyno.getText());\r\n\t\t\tprst.setString(5, vlevel);\r\n\t\t\tprst.setString(6, code.getText());\r\n\t\t\tprst.setString(7, name.getText());\r\n\t\t\tprst.setString(8, nodetype.getText());\r\n\t\t\tprst.setString(9, \"0\");\r\n\t\t\tprst.setString(10, vparent1);\r\n\t\t\tprst.setString(11, vparent2);\r\n\t\t\tprst.setString(12, vparent3);\r\n\t\t\tprst.setString(13, \"0\");\r\n\t\t\tprst.addBatch();\r\n\t\t\tTotalRecordinsert = TotalRecordinsert + 1;\r\n\t\t\tstatus = \"Sucess\";\r\n\t\t\tif (++TotalRecordinsert % batchSize == 0) {\r\n\t\t\t\tprst.executeBatch();\r\n\t\t\t\tstatus = \"Sucess\";\r\n\t\t\t\tcon.commit();\r\n\t\t\t}\r\n\t\t\tprst.executeBatch(); // insert remaining records\r\n\t\t\tcon.commit();\r\n\t\t\tnew General().msg(\"Data Save Sucessfully\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tnew General().msg(e.getMessage() + \"<Max Lenght Allow is 30 Chars For Hierarchy Name>\");\r\n\t\t\tcon.rollback();\r\n\t\t\tstatus = \"Fail\";\r\n\t\t} finally {\r\n\t\t\tif (prst != null) {\r\n\t\t\t\tprst.close();\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\tcon.close();\r\n\t\t\t\tcode.setText(\"\");\r\n\t\t\t\tname.setText(\"\");\r\n\t\t\t\tmycode.setText(\"\");\r\n\t\t\t\tmyname.setText(\"\");\r\n\t\t\t\tupdateSeqno();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "22cbade607db5c78658c077a40b6d64f", "score": "0.44159737", "text": "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT zssi_order_textmodule.C_Order_ID AS NAME\" +\n \" FROM zssi_order_textmodule\" +\n \" WHERE zssi_order_textmodule.Zssi_Order_Textmodule_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "ed6cac0df67f4104cc6125720caa0cb1", "score": "0.44086823", "text": "@Override\n public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n\n SQLiteDbCreation dbHelper = new SQLiteDbCreation(getContext());\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n\n //local partition Query\n if (selection.equals(\"@\")) {\n\n return db.rawQuery(\"SELECT * FROM SQLtable\", null);\n }\n //Global Partition Query\n else if (selection.equals(\"*\")) {\n\n Cursor cursor = db.rawQuery(\"SELECT * FROM SQLtable\",null);\n\n Queue<String> q = new LinkedList<String>();\n q.add(Cur_to_Str(cursor));\n Queries.put(\"*\", q);\n\n if (curNode.getSucc_port() != null) {\n Node query_msg = new Node(curNode.getNode_port(), \"Q\", \"*\", null);\n client(curNode.getSucc_port(), query_msg.toString());\n wait(\"*\");\n }\n\n return Str_to_Cur(Queries.get(\"*\"));\n } else {\n if (checkFirst() || checkinLocal(selection) || checkinLast(selection)) {\n\n return db.rawQuery(\"SELECT * FROM SQLtable WHERE key\" + \"=\\\"\" + selection + \"\\\"\",null);\n\n } else {//Forward to Successor if query not belongs to current partition\n if (curNode.getSucc_port() != null) {\n Queue<String> queryResults = new LinkedList<String>();\n Queries.put(selection, queryResults);\n\n Node query_msg2 = new Node(curNode.getNode_port(), \"Q\", selection, null);\n client(curNode.getSucc_port(), query_msg2.toString());\n wait(selection);\n\n return Str_to_Cur(Queries.get(selection));\n }\n\n }\n }\n dbHelper.close();\n db.close();\n return null;\n }", "title": "" }, { "docid": "abd923e864a64622a5807ab0de84faad", "score": "0.4408093", "text": "public String createFindSql() throws DatabaseException;", "title": "" }, { "docid": "fb0fd89aa274d3be91fe740f648b6215", "score": "0.44058374", "text": "public static void selectPart() {\n try (Connection conn = DriverManager.getConnection(DBURL)) {\n PreparedStatement p = conn.prepareStatement(\"select OE_NO,OE_NAME,company,C_PRICE,D_PRICE,G_PRICE,R_PRICE from OE\");\n ResultSet rs = p.executeQuery();\n while (rs.next()) {\n System.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + rs.getString(3) + \"\\t\" + rs.getDouble(4) + \"\\t\" + rs.getString(5) + \"\\t\" + rs.getString(6) + \"\\t\" + rs.getString(7));\n }\n p = conn.prepareCall(\"select OEM_NO,OEM_NAME,company,C_PRICE,D_PRICE,G_PRICE,R_PRICE from OEM\");\n rs = p.executeQuery();\n while (rs.next()) {\n System.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + rs.getString(3) + \"\\t\" + rs.getDouble(4) + \"\\t\" + rs.getString(5) + \"\\t\" + rs.getString(6) + \"\\t\" + rs.getString(7));\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "be0e60d1111be58f3a1c089030fea79f", "score": "0.44006553", "text": "void mo88403b(DbCommentItem fVar);", "title": "" }, { "docid": "062be36ca14b9dba5cc1c4fafefa7b1b", "score": "0.4397975", "text": "public Page<ARTICLECOMMENT> findByPARENTID(int page, int size, final int PARENTID) {\n\t\tPageable pageable=new PageRequest(page, size,Sort.Direction.ASC,\"ID\");\r\n\t\tPage<ARTICLECOMMENT>articlecommentPage= articlecommentRepository.findAll(new Specification<ARTICLECOMMENT>(){\r\n\r\n\t\t\tpublic Predicate toPredicate(Root<ARTICLECOMMENT> root, CriteriaQuery<?> query, CriteriaBuilder cb) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tPath<String>PARENTIDPath=root.get(\"PARENTID\");\r\n\t\t\t\tquery.where(cb.equal(PARENTIDPath, PARENTID));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}, pageable);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\treturn articlecommentPage;\r\n\t}", "title": "" }, { "docid": "385a4021d37dacc5a26402f264c9e799", "score": "0.4396984", "text": "public void getFather() throws DataBaseException {\r\n if (this.cursor.level != 0) {\r\n // the father of the current line is the nearest above which had a\r\n // level equals to the\r\n // current level +1\r\n // here is the associated query\r\n String selectQuery = \"SELECT max( LINE ) , VALUE , LEVEL FROM \"\r\n + this.table.getName() + \" WHERE LINE < ? AND LEVEL = ?\";\r\n Cursor c = db.rawQuery(\r\n selectQuery,\r\n new String[] {\r\n Integer.toString(this.cursor.line),\r\n Integer.toString(this.cursor.level - 1)\r\n });\r\n if (c.moveToFirst()) {\r\n // father is found : cursor is updated\r\n this.cursor.update(c.getInt(0), c.getInt(1), c.getInt(2));\r\n } else {\r\n throw new DataBaseException(\r\n \"TREE MANAGER GET FATHER : can't find node father\");\r\n }\r\n c.close();\r\n }\r\n }", "title": "" }, { "docid": "12ccf72d1ede29976739c86e7dac224b", "score": "0.4395038", "text": "@Query(\"SELECT * FROM item WHERE parent_id = (:uid) ORDER BY updated_at DESC, created_at DESC\")\n public List<Item> getAllItemsOfParent(Integer uid);", "title": "" }, { "docid": "b18698135c1696ee869416c3d77e6ee3", "score": "0.439395", "text": "@Override\n\t/**\n\t * 获取包裹单明细\n\t * @param strPackageNo\n\t * @param strWarehouseNo\n\t * @param strOwnerNo\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic ExtListDataBo<Odata_PackageDModel> queryPackageD(\n\t\t\tString enterpriseNo, String strWarehouseNo, String strOwnerNo,\n\t\t\tString strPackageNo,String strQuery,PageBo poPageBo) throws Exception {\n\t\tString sql=\"select a.*,b.shipper_name, \"\n\t\t\t\t+\" f_get_fieldtext('ODATA_PACKAGE_D','STATUS',a.status) statusText, \"\n\t\t\t\t+\"'['|| ltrim(c.owner_no)||']'||c.owner_name ownerName \" \n\t\t\t\t+\"from odata_package_d a,bdef_defshipper b,bdef_defowner c \"\n\t\t\t\t+\"where a.enterprise_no='\"+enterpriseNo+\"' \"\n\t\t\t\t+\"and a.warehouse_no='\"+strWarehouseNo+\"' \"\n\t\t\t\t+\"and a.po_no='\"+strPackageNo+\"' \"\n\t\t\t\t+\"and a.owner_no in (\"+strOwnerNo+\") \"\n\t\t\t\t+\"and a.enterprise_no=b.enterprise_no \"\n\t\t\t\t+\"and a.warehouse_no=b.warehouse_no \"\n\t\t\t\t+\"and a.shipper_no=b.shipper_no \"\n\t\t\t\t+\"and a.owner_no=c.owner_no \"\n\t\t\t\t/*+\"and a.owner_no='\"+strOwnerNo+\"' \"*/;\n\t\tif(strQuery!=null && !strQuery.equals(\"\"))\n\t\t{\n\t\t\tString ws=CommUtil.covtCollectionToWhereSql(strQuery);\n\t\t\tsql=sql+ws;\n\t\t}\n\t\tString strTotsql = \"select count(*) from (\"+sql+\") \";\n\t\tList<Odata_PackageDModel> list = genDao.getListByNativeSql(sql,Odata_PackageDModel.class,poPageBo.getStart(),poPageBo.getPagesize());\n\t\tInteger count = genDao.getCountByNativeSql(strTotsql);\n\t\tExtListDataBo<Odata_PackageDModel> extListBo= new ExtListDataBo<Odata_PackageDModel>(list, count);\n\t\treturn extListBo;\n\t}", "title": "" }, { "docid": "223094d0d0370ea0c7fc0688885d04d8", "score": "0.43883348", "text": "public ResultSet sqlGroupByPlageAdheranceHorsRepBazar(String tempsAdherence, String repBazar, String repKidz) throws SQLException {\n\n //Extraction des photo , dans toute la bib\n // et calcul la plage d'aherance (+- tempsAdherence)\n //\n // GroupNewPhoto\n // captureTime (in seconds)\n // mint (adherence min) (in seconds)\n // maxt (adherence max) (in seconds)\n // pathFromRoot (pathFromRoot)\n // src (element)\n // absolutePath (absolutePath)\n // captureTimeOrig\n return parentLrcat.select(\n \"select \" +\n \" b.id_local \" +\n \" strftime('%s', e.captureTime) as captureTime , \" +\n \" strftime('%s', DATETIME( e.captureTime,\\\"-\" + tempsAdherence + \"\\\")) as mint , \" +\n \" strftime('%s', DATETIME(e.captureTime,\\\"+\" + tempsAdherence + \"\\\")) as maxt , \" +\n \" b.pathFromRoot , \" +\n \" c.absolutePath || b.pathFromRoot || a.lc_idx_filename as src , \" +\n \" c.absolutePath as absolutePath , \" +\n \" e.captureTime as captureTimeOrig \" +\n \"from AgLibraryFile a \" +\n \"inner join AgLibraryFolder b \" +\n \"on a.folder = b.id_local \" +\n \"inner join AgLibraryRootFolder c \" +\n \"on b.rootFolder = c.id_local \" +\n \"inner join Adobe_images e \" +\n \"on a.id_local = e.rootFile \" +\n \"Where b.pathFromRoot not like \\\"\" + \"%\" + repBazar + \"%\" + \"\\\"\" +\n \" and b.pathFromRoot not like \\\"\" + \"%\" + repKidz + \"%\" + \"\\\"\" +\n \" Order by b.pathFromRoot , captureTime ; \");\n\n }", "title": "" }, { "docid": "27f54b7430b298f1bcf8f7696c7e0116", "score": "0.43865418", "text": "void mo88393a(DbCommentItem fVar);", "title": "" }, { "docid": "020316bd0592797f8c699831356a99fb", "score": "0.43849325", "text": "private static void JoinGtoECSDiffJoinOrder(QueryManager myAW){\n\t\tFile JoinGtoECSDiffJoinOrder = new File(\"./results/JoinGtoECSDiffJoinOrder.xml\"); \n\t\tString SQLString =\n\t\t\t\t\"SELECT DISTINCT \" + SD.G70TableName + \".GOALID\" + \" \" + \n\t\t\t\t\"FROM \" + SD.G70TableName + \" \" +\n\t\t\t\t\"INNER JOIN \" + SD.G_UC8kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.G_UC8kTableName + \".GOALID = \" + SD.G70TableName + \".GOALID \" +\n\t\t\t\t\"INNER JOIN \" + SD.UC10kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.G_UC8kTableName + \".USECASEID = \" + SD.UC10kTableName + \".USECASEID \" +\n\t\t\t\t\"INNER JOIN \" + SD.UC_UCS15kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.UC_UCS15kTableName + \".USECASEID = \" + SD.UC10kTableName + \".USECASEID \" +\n\t\t\t\t\"INNER JOIN \" + SD.EC10kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.UCS_EC16kTableName + \".EXCEPTIONCASEID = \" + SD.EC10kTableName + \".EXCEPTIONCASEID \" +\n\t\t\t\t\"INNER JOIN \" + SD.EC_ECS24kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.EC_ECS24kTableName + \".EXCEPTIONCASEID = \" + SD.EC10kTableName + \".EXCEPTIONCASEID \" +\n\t\t\t\t\"INNER JOIN \" + SD.UCS20kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.UC_UCS15kTableName + \".USECASESTEPID = \" + SD.UCS20kTableName + \".USECASESTEPID \" +\n\t\t\t\t\"INNER JOIN \" + SD.UCS_EC16kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.UCS_EC16kTableName + \".USECASESTEPID = \" + SD.UCS20kTableName + \".USECASESTEPID \" +\n\t\t\t\t\"INNER JOIN \" + SD.ECS30kTableName + \" \" + \n\t\t\t\t\"ON \" + SD.EC_ECS24kTableName + \".EXCEPTIONCASESTEPID = \" + SD.ECS30kTableName + \".EXCEPTIONCASESTEPID\";\n\t\tMeasureCostArbitrary.measureCostArbitrary(myAW, SQLString, JoinGtoECSDiffJoinOrder);\n\t\t//myAW.QueryToXML(SQLString, JoinGtoECSDiffJoinOrder);\n\t}", "title": "" }, { "docid": "4f5a76554c535058154152c8753c0230", "score": "0.438073", "text": "@Override\n public String getSelectStatement(Table table) {\n return \"/*NO LOAD BALANCE*/\\n\"\n + \"SELECT \" + quote(\"installed_rank\")\n + \",\" + quote(\"version\")\n + \",\" + quote(\"description\")\n + \",\" + quote(\"type\")\n + \",\" + quote(\"script\")\n + \",\" + quote(\"checksum\")\n + \",\" + quote(\"installed_on\")\n + \",\" + quote(\"installed_by\")\n + \",\" + quote(\"execution_time\")\n + \",\" + quote(\"success\")\n + \" FROM \" + table\n + \" WHERE \" + quote(\"installed_rank\") + \" > ?\"\n + \" ORDER BY \" + quote(\"installed_rank\");\n }", "title": "" }, { "docid": "921dfb45c5012633e5ce5433b8a53b02", "score": "0.43790376", "text": "@Override\r\n\tpublic String commentLoadNodeComments(int nid, int count, int start) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7f3c7df5dfd6d874b34a19e91589a9fe", "score": "0.43679875", "text": "protected String insert_query(DataAction data, DataRequest source)\r\n/* 49: */ {\r\n/* 50: 76 */ return \"BEGIN \" + super.insert_query(data, source) + \" returning \" + this.config.id.db_name + \" into ?; END;\";\r\n/* 51: */ }", "title": "" }, { "docid": "1879efc1b9f4670646347746efb3f55e", "score": "0.43658426", "text": "@Query(\"SELECT * FROM dialogue WHERE pk = :position\")\n Dialogue getPage(int position);", "title": "" }, { "docid": "0b90aa68be64056dd9d6af2b9b97faee", "score": "0.43653297", "text": "@Override\r\n\tpublic Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n\t SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n\t SQLiteDatabase db = mSqliteHelper.getWritableDatabase();\r\n\r\n\t switch ( sURIMatcher.match(uri)) {\r\n\t case UNIT_SINGLE_TYPE:\r\n\t \t// adapt selection\r\n\t \tselection = UnitColumn._ID +\" = ?\"+ uri.getLastPathSegment();\r\n\t \tselectionArgs = new String[] {uri.getLastPathSegment()};\r\n\r\n case UNIT_TYPE:\r\n\t \tbuilder.setTables(UnitColumn.TABLE);\r\n\t \tbreak;\r\n\r\n\t case WORD_SINGLE_TYPE:\r\n\t \t// adapt selection\r\n selection = WordColumn._ID +\" = ?\"+ uri.getLastPathSegment();\r\n selectionArgs = new String[] {uri.getLastPathSegment()};\r\n\t \t\t\r\n\t case WORD_TYPE:\r\n\t builder.setTables(WordColumn.TABLE);\r\n\t \tbreak;\r\n\r\n case TEXT_SINGLE_TYPE:\r\n // adapt selection\r\n selection = TextColumn._ID +\" = ?\"+ uri.getLastPathSegment();\r\n selectionArgs = new String[] {uri.getLastPathSegment()};\r\n\r\n case TEXT_TYPE:\r\n builder.setTables(TextColumn.TABLE);\r\n break;\r\n\r\n case EXAMPLE_SINGLE_TYPE:\r\n selection = TextColumn._ID +\" = ?\"+ uri.getLastPathSegment();\r\n selectionArgs = new String[] {uri.getLastPathSegment()};\r\n\r\n case EXAMPLE_TYPE:\r\n builder.setTables(TextColumn.TABLE);\r\n break;\r\n\r\n case AUDIO_SINGLE_TYPE:\r\n selection = TextColumn._ID +\" = ?\"+ uri.getLastPathSegment();\r\n selectionArgs = new String[] {uri.getLastPathSegment()};\r\n\r\n case AUDIO_TYPE:\r\n builder.setTables(AudioColumn.TABLE);\r\n break;\r\n\r\n default:\r\n\t \tthrow new IllegalArgumentException(\"Unknown DESCRIPTION: \" + uri);\r\n\t }\r\n\r\n\t Cursor cursor = builder.query(\r\n\t \t\tdb, \r\n\t \t\tprojection, \r\n\t \t\tselection, \r\n\t \t\tselectionArgs,\r\n null,\r\n\t \t\tnull, \r\n\t \t\tsortOrder);\r\n\r\n\t return cursor;\r\n\t}", "title": "" }, { "docid": "f146fbedb1e56d41b08797266fb79cc8", "score": "0.4362415", "text": "public String show_notes(long activity_id) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n String str = \"SELECT \" + KEY_NOTES + \" FROM \" + TABLE_ACTIVITY + \" WHERE \" + KEY_ID_ACT + \" = \" + activity_id;\r\n\r\n Cursor c = db.rawQuery(str, null);\r\n String str_note = \"Nil\";\r\n\r\n //int i = 0;\r\n if (c.moveToFirst()) {\r\n do {\r\n str_note = c.getString(c.getColumnIndex(KEY_NOTES));\r\n //\r\n // t.setId(c.getInt((c.getColumnIndex(KEY_ID))));\r\n //td.setNotes(c.getString(c.getColumnIndex(KEY_NOTES)));\r\n\r\n /*if (i == 3) {\r\n // adding to tags list\r\n str_note = td.getNotes();\r\n }*/\r\n\r\n\r\n } while (c.moveToNext());\r\n }\r\n\r\n return str_note;\r\n }", "title": "" }, { "docid": "07eec393436d20410ab39e6b6a917159", "score": "0.43622008", "text": "String commentText();", "title": "" }, { "docid": "95174c8e2c7ece540caa1e90f338a953", "score": "0.43602327", "text": "@Nullable\n @Override\n public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) {\n SQLiteDatabase database = mDbHelper.getReadableDatabase();\n\n //this cursor holds the result of the query\n Cursor cursor;\n\n //Figure out if the Uri can match to a specific code\n int match = sUriMatcher.match(uri);\n\n\n switch (match){\n\n // if it matches PRODUCTS code,query the whole table\n case JOURNAL:\n sortOrder = JournalContract.JournalEntry._ID +\" ASC\";\n cursor = database.query(JournalContract.JournalEntry.TABLE_NAME,\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n break;\n\n //if the code matches PRODUCT_ID code ,query a single row corresponding to the id in the database\n case JOURNAL_ID:\n\n // Extract out the ID of the requested row from the URI\n selection = JournalContract.JournalEntry._ID + \"=?\";\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\n\n //query the products where the _id corresponds to the extracted id\n\n cursor = database.query(JournalContract.JournalEntry.TABLE_NAME,\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n\n break;\n\n // If the Uri do not match the templates throw an exception\n default:\n throw new IllegalArgumentException(\"Cannot query unknown URI \" + uri);\n }\n\n //cursors have an attribute called notification uri\n // so we know what content URI the Cursor was created for.\n //once a Uri is setup to be notified,we will know when the data at this uri changes\n //so that know we will need to update the cursor\n cursor.setNotificationUri(getContext().getContentResolver(),uri);\n\n //return the cursor containing the results from the query\n return cursor;\n\n\n }", "title": "" }, { "docid": "5f03929207e5d56b62e121938062cdbf", "score": "0.4358971", "text": "@Override\n public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {\n\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n Cursor cursor;\n switch (sMatcher.match(uri)) {\n case STUDENT:\n qb.appendWhere(HSData.HSer.WHERE_HAS_ID);\n // falls through\n case STUDENTS:\n qb.setTables(HSData.HSer.TABLE_NAME + HSData.HSer.JOIN_BATCH);\n if (!TextUtils.isEmpty(sortOrder)) {\n sortOrder = HSData.HSer.SORT_DEFAULT;\n }\n break;\n case BATCH:\n qb.appendWhere(HSData.Batch.WHERE_HAS_ID);\n // falls through\n case BATCHES:\n qb.setTables(HSData.Batch.TABLE_NAME);\n if (!TextUtils.isEmpty(sortOrder)) {\n sortOrder = HSData.Batch.SORT_DEFAULT;\n }\n break;\n default:\n throw new IllegalArgumentException(\"Unknown URI \" + uri);\n }\n\n // check if data is outdated\n mUpdateManager.checkAndUpdateDataIfNeeded();\n cursor = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder, getLimit(uri));\n\n cursor.setNotificationUri(getContext().getContentResolver(), uri);\n\n return cursor;\n }", "title": "" }, { "docid": "4f5abbc5e7f58dcd43e281e7e356f961", "score": "0.43589142", "text": "private Query getQuery() throws HibernateException {\n\t\t// \n\t\t// sql+=\" where 1=1\";\n\t\t// if(username!=null&&!\"\".equals(username))\n\t\t// sql+=\" and username like '%\"+username+\"%'\";\n\t\t// if(company!=null&&!\"\".equals(company))\n\t\t// sql+=\" and company like '%\"+company+\"%'\";\n\t\t// if(idcard!=null&&!\"\".equals(idcard))\n\t\t// sql+=\" and idcard like '%\"+idcard+\"%'\";\n\t\t// sql+=\" order by oprflag\";\n\t\t// Query query = getSession().createSQLQuery(sql);\n\t\t// recordsize = query.list().size();\n\t\t// pagesize = (recordsize - 1) / maxperpage + 1;\n\t\t// pagenumber= pagenumber>pagesize-1?pagesize-1:pagenumber;\n\t\t// return query;\n\n\t\t// String sql=\"select * from \";\n\t\t// sql+=\"(select creditcardid as id,\n\t\t// username,idcard,mobileold,homephoneold,workphoneold as\n\t\t// companyphone,company,homeaddr, 1 as oprflag from topr_creditcard\";\n\t\t// \n\t\t// sql+=\" union \";\n\t\t// sql+=\"select nonlawid as id,\n\t\t// username,idcard,mobileold,homephoneold,companyphone,company,homeaddr,2\n\t\t// as oprflag from tnlw_nonlaw)\";\n\n\t\tString sql = \"from TusrCustomerNew where 1=1\";\n\n\t\tif (username != null && !\"\".equals(username))\n\t\t\tsql += \" and username like '%\" + username + \"%'\";\n\t\tif (company != null && !\"\".equals(company))\n\t\t\tsql += \" and company like '%\" + company + \"%'\";\n\t\tif (idcard != null && !\"\".equals(idcard))\n\t\t\tsql += \" and idcard = '\" + idcard + \"'\";\n\t\tif (phone != null && !\"\".equals(phone)) {\n\t\t\tsql += \" and(homephone like '%\" + phone + \"%' or mobile like '%\" + phone + \"%' or mobile2 like '%\" + phone\n\t\t\t\t\t+ \"%' or compphone like '%\" + phone + \"%' or compfax like '%\" + phone + \"%')\";\n\n\t\t}\n\t\t basicDao.setSession(getSession());\n recordsize=basicDao.getCountOfQuery(sql);\n\t\tsql += \" order by customerid\";\n\t\tSystem.out.println(sql);\n\t\tQuery query = getSession().createQuery(sql);\n//\t\trecordsize = query.list().size();\n\t\tpagesize = (recordsize - 1) / maxperpage + 1;\n\t\tpagenumber = pagenumber > pagesize - 1 ? pagesize - 1 : pagenumber;\n\t\treturn query;\n\n\t}", "title": "" }, { "docid": "cad38834c737bf2878f22fcbd161cc0e", "score": "0.43576843", "text": "@Override\n public String getQuery() {\n String query = \"SELECT ?lemma ?prep ?dobj_form ?e1_arg ?e2_arg WHERE {\"\n + \"?y <conll:cpostag> ?lemma_pos . \"\n + \"?y <conll:cpostag> \\\"V\\\" .\"\n //Filter auf nicht VA\n + \"?y <conll:lemma> ?lemma . \"\n + \"?e1 <conll:head> ?y . \"\n + \"?e1 <conll:deprel> ?deprel. \"\n + \"FILTER regex(?deprel, \\\"subj\\\") .\"\n + \"?p <conll:head> ?y . \"\n + \"?p <conll:deprel> \\\"pp\\\" . \"\n + \"?p <conll:form> ?prep . \"\n + \"?e2 <conll:head> ?p . \"\n + \"?e2 <conll:deprel> ?e2_grammar . \"\n + \"FILTER( regex(?e2_grammar, \\\"obj\\\") || regex(?e2_grammar, \\\"gmod\\\") || regex(?e2_grammar, \\\"pn\\\"))\"\n + \"?e1 <own:senseArg> ?e1_arg. \"\n + \"?e2 <own:senseArg> ?e2_arg. \"\n + \"}\";\n return query;\n }", "title": "" }, { "docid": "342651d92e26f0ca8267e7a3b696ccf2", "score": "0.43576688", "text": "private String getComment() {\n }", "title": "" }, { "docid": "267aa0b2ca37657a52ea5688ff20657d", "score": "0.43567666", "text": "public List<Relationship> display(int firstRow, int rowCount, String sortField, boolean sortAscending, String searchFirst, String searchSecond)\n throws Exception {\n \t\n String searchFirstWithWildCards = \"\";\n String searchSecondWithWildCards = \"\";\n\n \tString sqlSortField = \"REL_OID\";\n\n \tif (sortField.equals(\"oid\")) {\n \tsqlSortField = \"REL_OID\"; \n }\n if (sortField.equals(\"typeFK\")) {\n \tsqlSortField = \"REL_RELATIONSHIP_TYPE_FK\"; \n }\n if (sortField.equals(\"childFK\")) {\n \tsqlSortField = \"REL_CHILD_FK\"; \n }\n if (sortField.equals(\"parentFK\")) {\n \tsqlSortField = \"REL_PARENT_FK\"; \n }\n \n if (searchFirst.equals(\"\")) {\n \tsearchFirstWithWildCards = \"%\" + searchFirst + \"%\";\n \t}\n else {\n \tsearchFirstWithWildCards = \"%\" + searchFirst + \"%\";\n }\n\n if (searchSecond.equals(\"\")) {\n \tsearchSecondWithWildCards = \"%\" + searchSecond + \"%\";\n \t}\n else {\n \tsearchSecondWithWildCards = \"%\" + searchSecond + \"%\";\n }\n \n Object[] values = {\n \tsearchFirstWithWildCards, \n \tsearchSecondWithWildCards,\n firstRow, \n rowCount\n };\n\n String sortDirection = sortAscending ? \"ASC\" : \"DESC\";\n String sql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT, sqlSortField, sortDirection);\n \n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n \n List<Relationship> dataList = new ArrayList<Relationship>();\n\n try {\n \t\n connection = daoFactory.getConnection();\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, sql, false, values);\n\n resultSet = preparedStatement.executeQuery();\n \n while (resultSet.next()) {\n \t\n dataList.add(mapRelationship(resultSet));\n }\n \n } \n catch (SQLException e) {\n \t\n throw new DAOException(e);\n } \n finally {\n \t\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n return dataList;\n }", "title": "" }, { "docid": "1930a632294821d945d4f3755a9f5229", "score": "0.4356435", "text": "List<PresentationSyncComments> selectByExample(PresentationSyncCommentsExample example);", "title": "" } ]
4dbf7f3ba5314e681af7b7c36d0365b2
One or more specimens that the laboratory procedure will use. Adds new element(s) to the existing list
[ { "docid": "507bdf27062ea7cfb3d0ed0177b8f908", "score": "0.56636095", "text": "public Builder specimen(Reference... specimen) {\n for (Reference value : specimen) {\n this.specimen.add(value);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "0ca0603032ab5c519e5e51ee2cecd90d", "score": "0.5821654", "text": "public void addSpecie(Specie specie) {\n\tspecies.add(specie);\n }", "title": "" }, { "docid": "7d7faa5748bdb155f89afee2459dce3d", "score": "0.5777881", "text": "void addShape(List<Shape> given);", "title": "" }, { "docid": "6196eada82a8ba2ad47226e163352643", "score": "0.57040113", "text": "private void addSpec(Integer playerID) {\r\n specSet.add(playerID);\r\n m_botAction.specWithoutLock(playerID);\r\n }", "title": "" }, { "docid": "5a6624ca7d4bde7efc608e3221e68548", "score": "0.55793685", "text": "public void listAdd(String a)\n\t{\n\t\tperfumes.add(a);\n\t}", "title": "" }, { "docid": "2c1185a7d4a53b737326100a59ddef96", "score": "0.55502045", "text": "@Override\n public void add(Object newElement) {\n this.elements.add(newElement);\n }", "title": "" }, { "docid": "09cd37034dbeaabd569bbf44ca2a92c3", "score": "0.5536138", "text": "@Override\n public void addShape(List<Shape> given) {\n this.shapeList = given;\n }", "title": "" }, { "docid": "d7e6413c552ba58abdad34af966ba1f8", "score": "0.5508766", "text": "public Builder specimen(Collection<Reference> specimen) {\n this.specimen = new ArrayList<>(specimen);\n return this;\n }", "title": "" }, { "docid": "c8f70dc25ab397685426e76653f98284", "score": "0.5493455", "text": "public void addExamToList(Exam newExam)\r\n {\r\n //\r\n \r\n }", "title": "" }, { "docid": "39bdfbbe0887a508e841bbc1a78ece32", "score": "0.54659146", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAfterPetrify1()\r\n {\r\n PETRIFIED_LIST.add(TEST_SHORT);\r\n }", "title": "" }, { "docid": "467ac792472ab56b325973b23b534382", "score": "0.5442694", "text": "public void addToPieces (PeckingPiece elem)\n {\n requestEntryAdd(PIECES, pieces, elem);\n }", "title": "" }, { "docid": "c76e6b76bd6e47828e0846f7e7011cd9", "score": "0.54372096", "text": "void append_scientist_lists(Scientist sci) {\n\t\tsci.idea_eff_tp.add(0.0);\n\t\tsci.idea_eff_tot.add(0.0);\n\t\tsci.ideas_k_paid_tp.add(0);\n\t\tsci.ideas_k_paid_tot.add(0);\n\t\tsci.discov_ideas.add(0);\n\t\tsci.returns_tp.add(0.0);\n\t\tsci.returns_tot.add(0.0);\n\t}", "title": "" }, { "docid": "1ee1c49120f9a17a68aa9a2205e51f05", "score": "0.5418181", "text": "public void newWildCards(){\n drawPile.add(new WildCard());\n drawPile.add(new WildDrawCard());\n }", "title": "" }, { "docid": "154837b02ca6150fb4742a4f597b373f", "score": "0.5401002", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAllAfterPetrify2()\r\n {\r\n PETRIFIED_LIST.addAll(TEST_SHORT_COLLECTION);\r\n }", "title": "" }, { "docid": "0d65ba908567d9a9cceb8c07c37d737c", "score": "0.53992873", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAllAfterPetrify1()\r\n {\r\n PETRIFIED_LIST.addAll(TEST_SHORT_ARRAY);\r\n }", "title": "" }, { "docid": "5bd5be2c5b1908351fbaf65d874a5e31", "score": "0.532031", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAfterPetrify3()\r\n {\r\n PETRIFIED_LIST.add(TEST_SHORT_ARRAY, 0, 1);\r\n }", "title": "" }, { "docid": "54b882be5d183b6127b9cca045b1f43e", "score": "0.5309827", "text": "@Override\r\n\tpublic void add() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b882be5d183b6127b9cca045b1f43e", "score": "0.5309827", "text": "@Override\r\n\tpublic void add() {\n\t\t\r\n\t}", "title": "" }, { "docid": "aa6088c6148ad7e3f79fdff4f2c6669e", "score": "0.53052944", "text": "public void add(Object element);", "title": "" }, { "docid": "fec80eeee5413d517df762bf2ec06fc2", "score": "0.5273554", "text": "public void add() {\n\t}", "title": "" }, { "docid": "472a758d39c16717d9a134c3e3b56e2c", "score": "0.52476656", "text": "public void addResistor(Resistor r)\r\n {\r\n resistors.add(r);//Add resistor to ArrayList\r\n }", "title": "" }, { "docid": "ef347260a8943b08a6e250b290897bfc", "score": "0.5247047", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAllAfterPetrify3()\r\n {\r\n PETRIFIED_LIST.addAll(TEST_SHORT_ARRAY_LIST);\r\n }", "title": "" }, { "docid": "0639d3912fda217c00a391eaa371c701", "score": "0.52465427", "text": "public void addMonteCarloParticipant(int index, final ASSET.ParticipantType participant)\n {\n addParticipantToThisList(index, participant, _myInvisibleParticipants);\n \n // and the complete list\n addParticipantToThisList(index, participant, _completeParticipantList);\n \n \n // fire new scenario event\n this.fireParticipantChanged(index, true);\n }", "title": "" }, { "docid": "9510eeea2ab206395e75576249d018de", "score": "0.52333283", "text": "void add(Object element);", "title": "" }, { "docid": "b7cbdb6291de50e0a7e084a15e88e99d", "score": "0.5232842", "text": "@Override\n\tpublic void add() {\n\t}", "title": "" }, { "docid": "2f11942ae5ccfd164ca9302b4b4b8674", "score": "0.52253085", "text": "void addData( String name, String regNo, int solved, int tried, int submission, int timePenalty ){\n participant[added] = new Student( name, regNo );\n performance[added] = new Performance( contestId, solved, tried, submission, timePenalty );\n totalSubmission += submission;\n totalAc += solved;\n added++;\n }", "title": "" }, { "docid": "29728cfe4e5420760cba46551d922e29", "score": "0.5220362", "text": "private static void addItem() \n\t{\n\t\t// The method asks the user for the pet's type, owner, and name then adds the pet.\n\t\tSystem.out.print(\"Please enter a pet's type: \");\n\t\tString type = in.nextLine();\n\t\tSystem.out.print(\"Please enter a pet's owner: \");\n\t\tString owner = in.nextLine();\n\t\tSystem.out.print(\"Please enter a pet's name: \");\n\t\tString name = in.nextLine();\n\n\t\t// It then creates a PetList object that it adds all the newly created variables to.\n\t\tPetList itemsToAdd = new PetList(type, owner, name);\n\t\t// Then it sends the PetList object (itemsToAdd) to the insertItem method in the PetListHelper class.\n\t\tplh.insertItem(itemsToAdd);\n\t}", "title": "" }, { "docid": "26c507bca92c79414029cce380330669", "score": "0.5219555", "text": "amdocs.iam.pd.webservices.productrelations.productlistinputimpl.DataCustom addNewDataCustom();", "title": "" }, { "docid": "4ba9911528222d08a7aca3c79bf165d8", "score": "0.5212455", "text": "net.ip_label.ws.ws_datametrie_php.RefGetTypeanomalieListDocument.RefGetTypeanomalieList addNewRefGetTypeanomalieList();", "title": "" }, { "docid": "50a58da9a243dcaf5dcf82936f0935e4", "score": "0.52123255", "text": "@Override\n\t\t\t\tpublic void add(int index, DeviceReg element) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "24edae956c6e7c3677de76f02c4c9d42", "score": "0.5211479", "text": "public void temporaryAddComponent(List<Componente> listComp) {\n tempSelected.addAll(listComp);\n listComp.stream().forEach(c -> tempPrice += c.getPrice());\n }", "title": "" }, { "docid": "8318d7738ee7dd67bf219fb16c1839f9", "score": "0.5191475", "text": "void addDesiredApart(Student student)\n\t{\n\t\tdesiredApart.add(student);\n\t}", "title": "" }, { "docid": "d2cf78067e70a0ebca394fabc0a5e4bb", "score": "0.5178721", "text": "public void addParaffin_sample(SampleData newParaffin_sample) {\n\tparaffin_samples.add(newParaffin_sample);\n}", "title": "" }, { "docid": "7ef7022abcc050d4554413b74b437039", "score": "0.5178674", "text": "public void addToDescription_L10N_ARRAY(entity.WorkloadClassification_Description_L10N element);", "title": "" }, { "docid": "973f140ece622c436eb115d79acf1d8d", "score": "0.5178058", "text": "public void addProb(Literal literal, List prob) {\n Expression arg0 = new Str2NumFunctionExpression(literal.getArgument(0));\n Expression arg1 = new Str2NumFunctionExpression(literal.getArgument(1));\n prob.add(\n new DifferenceExpression(\n new StringExpression(\"1\"),\n new FractionExpression(\n new DifferenceExpression(arg0, arg1),\n arg0)));\n }", "title": "" }, { "docid": "e1ab2c355c252819b3c05760f6400b82", "score": "0.5176219", "text": "private void addElements(Element node) {\r\n\r\n // iterate through the Element's child nodes\r\n List<Element> optlist = node.getChildren();\r\n Iterator<Element> optit = optlist.iterator();\r\n while (optit.hasNext()) {\r\n Element opt = (Element) optit.next();\r\n\r\n // add the list item\r\n listModel.addElement(opt.getText());\r\n }\r\n }", "title": "" }, { "docid": "666a68f201ed3cd1afa62a64da2eb24f", "score": "0.51757663", "text": "private void addToList(Object objToAdd, int newCant, JList list) \n {\n int cantActual = 0;\n double pesActual = 0;\n String newStr;\n double pesFrom = getPes(objToAdd);\n int maxCant = getCant(objToAdd);\n DefaultListModel lm = (DefaultListModel)list.getModel();\n \n \n Object obj = existsLinia(objToAdd, list);\n if (obj != null)\n {\n \n lm.removeElement(obj);\n cantActual = getCant(obj);\n pesActual = getPes(obj);\n }\n \n double pesAfegir = pesFrom * newCant / maxCant;\n pesAfegir = round2(pesAfegir);\n \n newStr = changeCant(obj == null ? objToAdd : obj, cantActual + newCant, round2(pesActual + pesAfegir));\n lm.addElement(newStr);\n \n \n }", "title": "" }, { "docid": "399ce1a94f1543f6150b2d04ace0d9e0", "score": "0.5173771", "text": "public void setTest(List<ProgramExp> test) {\n this.test = test;\n }", "title": "" }, { "docid": "7d44035775a633ce491b10aadeb51dbf", "score": "0.5172797", "text": "private DoubleLinkedList<Integer> addElementFromNewList() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.add(new Integer(1));\n\t\treturn list;\n\n\t}", "title": "" }, { "docid": "7c98472578371f74de57417b370e7cbc", "score": "0.5172294", "text": "public void addTemporary() {\n\t\tCopier copier = new Copier();\n\t\tCollection<EObject> tmpCopied = copier.copyAll(getOriginalValues());\n\t\tIterator<EObject> contents = tmpCopied.iterator();\n\t\ttmp = new BasicEList<EObject>();\n\n\t\twhile (contents.hasNext()) {\n\t\t\ttmp.add(contents.next());\n\t\t}\n\n\t\tconfirmAddElements();\n\t}", "title": "" }, { "docid": "0e890b4a4031c8c0df2a7351d9218976", "score": "0.5167654", "text": "public void addElements(Logger... newElements) {\n // adds passed in instace to logger elements array\n Collections.addAll(elements, newElements);\n }", "title": "" }, { "docid": "6d001d300172dae94d7ec9ddeaebc0c0", "score": "0.51602286", "text": "protected void test() {\n ArrayList<Item> carry = new ArrayList<>();\n carry.add(Item.BOTTLE);\n ArrayList<Skill> skills = new ArrayList<>();\n skills.add(Skill.SING);\n collection.add(new Human(\"Amanda\", 26, skills, carry));\n }", "title": "" }, { "docid": "4b370bdb8a5fe6b82e5ce32e9c87f32a", "score": "0.5159123", "text": "private void addWavelength(){\n \t//if(!(getWSLPlayer().isPlaying())){ //if the WSL Player is not playing, set the vector up for playback [JD]\n \tif(true) {\n \t\tfinal String toAdd = wavelength.getText();\n \t\tif((!(addVec.contains(toAdd))) || removeVec.contains(toAdd)){\n \t\t\taddVec.add(toAdd);\n \t\t\tSystem.out.println(\"Adding: \" + toAdd);\n \t\t\twavelengthListModel.addElement(toAdd);\n \t\t\tupdate();\n \t\t\twavelength.selectAll();\n \t\t\twavelength.cut();\n \t\t\tSystem.out.println(\"Calling Add: WSL Player is not playing\");\n \t\t\tgetStatusBar().clearWarning();\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"Wavelength is already in the list: returning\");\n \t\t\tgetStatusBar().setWarningText(\"Wavelength has already been added\");\n \t\t\twavelength.selectAll();\n \t\t\twavelength.cut();\n \t\t\treturn;\n \t\t}\n \t\titr = addVec.iterator();\n \t}\n \telse if(getWSLPlayer().isPlaying()){ //if the WSL Player is playing, use the vector for playback [JD]\n \t\t\tSystem.out.println(\"In Add action performed: WSL Player is playing\");\n \t\t\twhile(itr.hasNext()){\n \t\t\t\tString temp = itr.next().toString();\n \t\t\t\tSystem.out.println(\"Next in vector: \" + temp);\n \t\t\t\tSystem.out.println(\"addVec position: \" + addVec.indexOf(temp));\n \t\t\t\t//wavelengthList.add(temp);\n \t\t\t\tupdate();\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n }", "title": "" }, { "docid": "d227361465fb1c230757f8395d369bb1", "score": "0.5154064", "text": "void addDefines(WrappedIndividual newDefines);", "title": "" }, { "docid": "af7c8beab577b62d45636b470e7e1195", "score": "0.5151628", "text": "public void addSpecialsTest()\n\t{\n\t}", "title": "" }, { "docid": "fe328ad4a1bb47c70a066d703a2e2139", "score": "0.5150141", "text": "private void populateList(int netSmall, int netLarge) {\r\n for (int i = 0; i < netSmall; i++) {\r\n ListOfCars.add(new SmallCar());\r\n }\r\n\r\n for (int i = 0; i < netLarge; i++) {\r\n ListOfCars.add(new LargeCar());\r\n }\r\n }", "title": "" }, { "docid": "5dcb7e37cd6a8e7724e3c1417144145d", "score": "0.5143264", "text": "public void addToName_L10N_ARRAY(entity.WorkloadClassification_Name_L10N element);", "title": "" }, { "docid": "b140ab28a8d6558f322246b672250f72", "score": "0.51427525", "text": "private void addIndividuals(List<Song> songList,\n List<Individual> individualList) {\n for (Song song : songList) {\n individualList.add(new Individual(song, rater.rate(song)));\n }\n }", "title": "" }, { "docid": "ad5f009295c130238a83800d5a4a8c42", "score": "0.51353914", "text": "public void addToModifiers(entity.GL7SublineTypeMod element);", "title": "" }, { "docid": "d8f42b39dc6447ddd7319f5899685102", "score": "0.51344633", "text": "public static void addSamplePeople(){\n /**\n * This method is used for testing the code. addSamplePeople() adds people to list so that print functionalities be tested\n */\n Simpleton hourly1 = new HourlyWorker(\"Johnny\", \"multiply\", \"I know a lot about animals\",20,5,15);\n Simpleton hourly2 = new HourlyWorker(\"Sally\", \"multiply better\", \"I know more about animals\",15,10,100);\n Simpleton contract1 = new ContractWorker(\"Shark Boy\", \"divide!\", \"I like to watch stars\",500,82, 3);\n Simpleton contract2 = new ContractWorker(\"Lava Girl\", \"sort of Divide\", \"I go to outerspace\",250,17, 8);\n Simpleton hobbit1 = new Hobbit(\"Frodo Baggins\", \"add goooood\", \"I like potatoes but farm carrots\", 4);\n Simpleton hobbit2 = new Hobbit(\"Odorf Sniggab\", \"add sometimes\", \"My name is Frodo Baggins backwards!\", 9);\n\n list.add(hourly1);\n list.add(hourly2);\n list.add(contract1);\n list.add(contract2);\n list.add(hobbit1);\n list.add(hobbit2);\n }", "title": "" }, { "docid": "282641b29906dc3cb2016154a98c910d", "score": "0.5131483", "text": "@Test\n public void testAdd() {\n assertEquals(3, prototype.getList().size());\n prototype.add(new Criterion(\"name4\", new IdCategory(Category.HEALTH), \"description\", \"help\"));\n assertEquals(4, prototype.getList().size());\n }", "title": "" }, { "docid": "631fd8d19e3ffd2d07f254664673b2e5", "score": "0.51300794", "text": "public void editWineList(WineType wineType, String filename){\n wineSampleRacks.put(wineType, new ArrayList<>(readWineFile(filename, wineType)));\n }", "title": "" }, { "docid": "5fbc76c679bb804003d93dbd6a70f558", "score": "0.51265377", "text": "public void addElement(Element param){\n if (localElement == null){\n localElement = new Element[]{};\n }\n\n \n //update the setting tracker\n localElementTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localElement);\n list.add(param);\n this.localElement =\n (Element[])list.toArray(\n new Element[list.size()]);\n\n }", "title": "" }, { "docid": "cb0c5c0320bc74e38b21f17248364088", "score": "0.5120224", "text": "@Override\n\tpublic void add(Collection<? extends N> newElements) {\n\t\tstack.addAll(newElements);\n\n\t}", "title": "" }, { "docid": "ff3c7e1be301cc9d5db48d0a23f1cfef", "score": "0.5118063", "text": "public void setUpSpecialTechs() {\n techMap.put(17, new Technology(new int[]{10, 10, 20}, \"Nootropics\", new ArrayList<>(),\n \"Feed your brain\"));\n\n ArrayList<Technology> steroidsParents = new ArrayList<>();\n steroidsParents.add(techMap.get(4));\n steroidsParents.add(techMap.get(8));\n steroidsParents.add(techMap.get(16));\n techMap.put(18, new Technology(new int[]{100, 100, 100}, \"Steroids\", steroidsParents,\n \"Increases Everything\"));\n\n ArrayList<Technology> armourTech3Parents = new ArrayList<>();\n armourTech3Parents.add(techMap.get(2));\n techMap.put(19, new Technology(new int[]{9999999, 9999999,9999999}, \"Cow Level\", new ArrayList<Technology>(),\n \"There is no secret Cow Level\"));\n\n armourTech3Parents = new ArrayList<>();\n armourTech3Parents.add(techMap.get(2));\n techMap.put(20, new Technology(new int[]{300, 300, 300}, \"Vampirism\", new ArrayList<Technology>(),\n \"Why did I make this?\"));\n }", "title": "" }, { "docid": "c8aa588995fa4bfdd4a9cb3face631aa", "score": "0.5117557", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testAddAfterPetrify2()\r\n {\r\n PETRIFIED_LIST.add(TEST_SHORT_ARRAY);\r\n }", "title": "" }, { "docid": "044b932243aaa049ebdcdb255110359e", "score": "0.51175237", "text": "public void add( Feature feature );", "title": "" }, { "docid": "ce334740e12ef657ac097e59636d237d", "score": "0.51012284", "text": "public void replaceEntryList(UniqueEntryList newEntryList) {\n for (Entry entry : newEntryList) { //for each entry in the new selected deck entryList\n observedEntries.add(entry); //add it to the GUI\n }\n }", "title": "" }, { "docid": "1a3bf89d20b13c48b7c52dee943cc6f6", "score": "0.509944", "text": "public void addExtraElement(org.apache.axiom.om.OMElement param){\n if (localExtraElement == null){\n localExtraElement = new org.apache.axiom.om.OMElement[]{};\n }\n\n \n //update the setting tracker\n localExtraElementTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localExtraElement);\n list.add(param);\n this.localExtraElement =\n (org.apache.axiom.om.OMElement[])list.toArray(\n new org.apache.axiom.om.OMElement[list.size()]);\n\n }", "title": "" }, { "docid": "1a3bf89d20b13c48b7c52dee943cc6f6", "score": "0.509944", "text": "public void addExtraElement(org.apache.axiom.om.OMElement param){\n if (localExtraElement == null){\n localExtraElement = new org.apache.axiom.om.OMElement[]{};\n }\n\n \n //update the setting tracker\n localExtraElementTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localExtraElement);\n list.add(param);\n this.localExtraElement =\n (org.apache.axiom.om.OMElement[])list.toArray(\n new org.apache.axiom.om.OMElement[list.size()]);\n\n }", "title": "" }, { "docid": "19cb12326eff9f35d42bbe62e3d44ed9", "score": "0.5091635", "text": "@Test(expected = UnsupportedOperationException.class)\r\n public void testSetAfterPetrify1()\r\n {\r\n PETRIFIED_LIST.set(0, TEST_SHORT);\r\n }", "title": "" }, { "docid": "3b17ddc4161a4a5baaac23fcee38fbdb", "score": "0.5090514", "text": "@Override\n public void add() {\n \n }", "title": "" }, { "docid": "8fb7bc62fcc4f80d7a5e8b0df7c802e1", "score": "0.50890476", "text": "void addToAlgorithmListOnly(AlgoElement algorithm);", "title": "" }, { "docid": "381bc173da13d4ddce87c0ba79522e70", "score": "0.507833", "text": "public SupplierList(ArrayList<Supplier> newSupList) {\n\t\ttheSuppliers = newSupList;\n\t}", "title": "" }, { "docid": "f2c9998e9d07ea9465c033089104b421", "score": "0.5076565", "text": "int addSpecies(Species sp);", "title": "" }, { "docid": "508fd64b271798cd235d6f4eb30b26f2", "score": "0.50764513", "text": "List addALetterSpaceTo(List oldList);", "title": "" }, { "docid": "3f74830c9d2f581fdc2402c5dee3cc1d", "score": "0.5072211", "text": "public void addPassedQuestionToJess(){\r\n int qNum;\r\n qNum=iPlan.getNumberOfQuestions();\r\n for (int i=0;i<qNum;i++){\r\n\r\n String qId = iPlan.getQuestionByOrdNum(i);\r\n\r\n this.addPassedQuestionToRete(qId);\r\n }\r\n\r\n}", "title": "" }, { "docid": "e82a2bc24800bb074520b335c84eae4a", "score": "0.50706816", "text": "public ArrayList<Symbol> mutate(ArrayList<Symbol> genotype);", "title": "" }, { "docid": "9e44c7f2d1e6cd18f4ba04672b7e84ad", "score": "0.50659764", "text": "@Override\n public final void add() {\n }", "title": "" }, { "docid": "74af2a9e3a0bb0b8d2c4988497bc27ff", "score": "0.50619245", "text": "public void addHarvestContents(ArrayList ist)\r\n/* 176: */ {\r\n/* 177:146 */ super.addHarvestContents(ist);\r\n/* 178:147 */ ist.add(new ur(getBlockID(), 1, 0));\r\n/* 179: */ }", "title": "" }, { "docid": "4ef95efd3783b197201d0c881939ad88", "score": "0.5061546", "text": "private void addItemToList() {\n }", "title": "" }, { "docid": "55743c2f3d62254f8281e811e4a3f37f", "score": "0.50571287", "text": "public void addTechniques(ArrayList<Technique> techs){\n\t\t\n\t\tfor (Technique t : techs){\n\t\t\taddTechnique(t);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7ad5dd5aa160a313d4a23eef10675709", "score": "0.50568324", "text": "public void addInformation(ItemStack par1ItemStack, List par2List);", "title": "" }, { "docid": "0e99b5ed0eecd3ae69933892e635abc3", "score": "0.5055891", "text": "@BeforeEach\n void Adding(){\n studentList.add(student);\n studentSet.add(student);\n for (int i =0; i<10; i++)\n {\n studentMap.put(i,student);\n }\n\n }", "title": "" }, { "docid": "d20bdccd21db660aa41f6f97cdd85c1e", "score": "0.50551873", "text": "@Test\r\n public void testWritePl_List() throws Exception {\r\n List<ImplicationalSystem> systems = new ArrayList();\r\n ImplicationalSystem system = new ImplicationalSystem();\r\n system.addAllElements(getNodes());\r\n TreeSet<Rule> rules = getImplications();\r\n for(Rule r : rules) {\r\n system.addRule(r);\r\n }\r\n systems.add(system);\r\n system = new ImplicationalSystem();\r\n system.addAllElements(getNodes());\r\n rules = getImplications();\r\n for(Rule r : rules) {\r\n system.addRule(r);\r\n }\r\n systems.add(system);\r\n \r\n GeneratorImplicationalSystemIO.save(systems, \"tests/test.pl\");\r\n \r\n Path path = Paths.get(\"tests/test_1.pl\");\r\n assertTrue(Files.exists(path));\r\n \r\n path = Paths.get(\"tests/test_2.pl\");\r\n assertTrue(Files.exists(path));\r\n }", "title": "" }, { "docid": "14e9dfb807a419fcec5d9b7689c3cffc", "score": "0.50490564", "text": "org.hl7.fhir.SampledDataDataType addNewData();", "title": "" }, { "docid": "72e18b9f30b971eee3cf97fb3824f0e7", "score": "0.5047095", "text": "private ArrayList<Suspects> createSuspectList(int num) {\n ArrayList<Suspects> suspectList = new ArrayList<Suspects>();\n for (int i = 0; i < num; i++) {\n String name = getField(\"Please Enter the \" + (i + 1) + \" Suspect Name\");\n String answer = getField(\"Is the \" + (i + 1) + \" Suspect Living? (y/n\");\n String gender = getField(\"Please Enter the \" + (i + 1) + \" Suspect Gender\");\n boolean livingStatus = true;\n if (answer.equals(\"n\")) {\n livingStatus = false;\n }\n String alias = getField(\"Please Enter any of the \" + (i + 1) + \" Suspect Aliases\");\n String address = getField(\"Please Enter any of the \" + (i + 1) + \" Suspect Address\");\n String phone = getField(\"Please Enter any of the \" + (i + 1) + \" Suspect Phone Number\");\n String accomplice = getField(\"Please Enter any of the \" + (i + 1) + \" Suspect Accomplices\");\n String acquaintance = getField(\"Please Enter any of the \" + (i + 1) + \" Suspect Acquaintance\");\n String hairColor = getField(\"Please Enter the \" + (i + 1) + \" Suspect Hair Color\");\n String eyeColor = getField(\"Please Enter the \" + (i + 1) + \" Suspect Eye Color\");\n String tatoo = getField(\"Please Enter the \" + (i + 1) + \" Suspects Tattoo\");\n String skinColor = getField(\"Please Enter the \" + (i + 1) + \" Suspects Skin Color\");\n String nationality = getField(\"Please Enter the \" + (i + 1) + \" Suspects Nationality\");\n int weight = Integer\n .valueOf(getField(\"Please Enter the \" + (i + 1) + \" Suspect weight or an estimate in pounds\"));\n int height = Integer\n .valueOf(getField(\"Please Enter the \" + (i + 1) + \" Suspect height or an estimate in inches\"));\n int age = Integer.valueOf(getField(\"Please Enter the \" + (i + 1) + \" Suspect age or an estimate in years\"));\n answer = getField(\"Does the \" + (i + 1) + \" Suspect wear glasses? (y/n)\");\n boolean glasses = true;\n if (answer.equals(\"n\")) {\n glasses = false;\n }\n String disability = getField(\"Please Enter the \" + (i + 1) + \" Suspects Disability if any\");\n String handness = getField(\"Please Enter the \" + (i + 1) + \" Suspects Handness\");\n answer = getField(\"Has Suspect \" + (i + 1) + \" been arrested/charged? (y/n)\");\n String punishment, crimeType;\n Boolean inJail = Boolean.valueOf(getField(\"Is \" + (i + 1) + \" Suspect In Jail?\"));\n if (answer.equals(\"y\")) {\n punishment = getField(\"Please Enter the \" + (i + 1) + \" Criminal Punishment\");\n crimeType = getField(\"Please Enter the \" + (i + 1) + \" Criminal Crime Charge\");\n } else {\n punishment = \"None.\";\n crimeType = \"None.\";\n }\n\n Suspects suspect = new Suspects(name, livingStatus, alias, accomplice, hairColor, eyeColor, tatoo,\n skinColor, nationality, weight, height, acquaintance, age, glasses, punishment, disability,\n handness, crimeType, inJail, gender, address, phone);\n suspectList.add(suspect);\n crimeFacade.addSuspect(suspect);\n }\n return suspectList;\n }", "title": "" }, { "docid": "772da6020ae8b7706609069423caff3c", "score": "0.5045078", "text": "public void evaluateOn(T element) {\r\n\t\tcontainer.add(element);\r\n\t}", "title": "" }, { "docid": "fbdb899d0e24e79f0feb1239c8b7cbf4", "score": "0.50444585", "text": "public void add() {\r\n\t\tProduct product = getModel(Product.class);\r\n\t\tproduct.add();\r\n\t\tlist();\r\n\t}", "title": "" }, { "docid": "7cd174e43b6af3439ddafe6ffa3c889f", "score": "0.5043878", "text": "default void addAllSatisfying(Collection col, Tester tester) {\n ElementsGetter getter = col.createElementsGetter();\n\n while (getter.hasNextElement()) {\n Object element = getter.getNextElement();\n if (tester.test(element))\n add(element);\n }\n }", "title": "" }, { "docid": "44d247bea93db8a5434a40d0deb884af", "score": "0.50396174", "text": "public void addElement(String elementName);", "title": "" }, { "docid": "1afc009765c93ac9c30635f91420b519", "score": "0.50364524", "text": "public void addElement(PhillyCheesesteak sandwich) {\n \n size = size + 1; // increase the size, since we just added one sandwich \n \n if(size < capacity)\n {\n data[size] = sandwich;\n size++; // adds the sandwich to the end of the array list \n }\n else if(size == capacity)\n {\n PhillyCheesesteak[] data2 = new PhillyCheesesteak[capacity +1]; \n \n for(int i = 0; i < data2.length; i++)\n {\n data2[i] = data[i];\n data2[size] = sandwich;\n data = data2;\n size++;\n }\n\n }\n \n }", "title": "" }, { "docid": "c393b04ba046d95f1984b93435225ac1", "score": "0.50362927", "text": "private void makePlottingFeaturesList() {\n\t\tsegmentedSlipRatePlottingFeatures = new ArrayList<PlotCurveCharacterstics>();;\n\t\tsegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tsegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tsegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tsegmentedSlipRatePlottingFeatures.add(PLOT_CHAR2);\n\t\t//slipRatePlottingFeatures.add(PLOT_CHAR4);\n\t\t//slipRatePlottingFeatures.add(PLOT_CHAR4);\n\t\tsegmentedSlipRatePlottingFeatures.add(PLOT_CHAR3);\t\t\t\n\t\t\n\t\t\n\t\t// UnSegmented slip rate plotting features\n\t\tunSegmentedSlipRatePlottingFeatures = new ArrayList<PlotCurveCharacterstics>();;\n\t\tunSegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tunSegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tunSegmentedSlipRatePlottingFeatures.add(PLOT_CHAR1);\n\t\tunSegmentedSlipRatePlottingFeatures.add(PLOT_CHAR3);\n\t\t\n\t\t// event rates Plotting features\n\t\teventRatesPlottingFeatures = new ArrayList<PlotCurveCharacterstics>();;\n//\t\teventRatesPlottingFeatures.add(PLOT_CHAR1);\n\t\teventRatesPlottingFeatures.add(PLOT_CHAR1);\n\t\teventRatesPlottingFeatures.add(PLOT_CHAR1);\n\t\teventRatesPlottingFeatures.add(PLOT_CHAR2);\n\t\teventRatesPlottingFeatures.add(PLOT_CHAR3);\n\t\t// normalized event rates residuals\n\t\teventRateRatioPlotFeatures = new ArrayList<PlotCurveCharacterstics>();\n\t\teventRateRatioPlotFeatures.add(PLOT_CHAR1);\n\t\t// normalized slip rate residuals\n\t\tslipRateRatioPlotFeatures = new ArrayList<PlotCurveCharacterstics>();\n\t\tslipRateRatioPlotFeatures.add(PLOT_CHAR1);\n\t}", "title": "" }, { "docid": "858b34fecdc68fcd6ba38d846d80f30d", "score": "0.5033087", "text": "public void pfadd();", "title": "" }, { "docid": "f8e5a205a8fad3cba50267837cb393ef", "score": "0.5032101", "text": "public void addExercise(Exercise exercise) {\n exerciseList.add(exercise);\n }", "title": "" }, { "docid": "fea1656181e84674587f09c3ccf328ad", "score": "0.5031451", "text": "public void updateLaptopList(Laptop newLaptop)\r\n {\r\n laptopList.add(newLaptop);\r\n laptopOV.add(newLaptop);\r\n }", "title": "" }, { "docid": "c27704a13392eaff2366deff2ddee481", "score": "0.503143", "text": "@Override\r\n\t\tpublic void add(int index, Object element) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "a888f5fb98c4f6994f34a8e0187c0cdd", "score": "0.5022567", "text": "public void add()\n\t{\n\t\tadd(1);\n\t}", "title": "" }, { "docid": "0f528cd695b82a14e2a5445737b2ea12", "score": "0.50109005", "text": "public void confirmAddElements() {\n\t\t//System.out.println(hashCode() + \": confirmAddElements() originalValues = \" + originalValues);\n\t\tEObject newValue = EcoreUtil.copy(copyValues.get(idx));\n\t\t//System.out.println(hashCode() + \": confirmAddElements() newValue = \" + newValue);\n\t\tRoundTripAdapter newAdapter = new RoundTripAdapter(newValue,\n\t\t\tthis.contextObject, this.eResource);\n\n\t\t//System.out.println(hashCode() + \": confirmAddElements() feature = \" + feature);\n\t\t//System.out.println(hashCode() + \": confirmAddElements() feature = \" + feature.getEContainingClass());\n\t\tEObject originalContainer = original.eContainer();\n\t\t//System.out.println(hashCode() + \": confirmAddElements() original = \" + original);\n\t\tObject list = original.eGet(original.eClass().getEStructuralFeature(feature.getName()));\n\t\tEList<EObject> originalList = castUnchecked(list);\n\t\t//System.out.println(hashCode() + \": confirmAddElements() listInOriginal = \" + originalList);\n\n\t\tif (originalList != null && copyValues != null) {\n\n\t\t\t//newAdapter.openerUFI = this.openerUFI;\n\t\t\tcopyValues.get(idx).eAdapters().add(newAdapter);\n\n\t\t\tif (idx < originalList.size() - 1) {\n\t\t\t\toriginalList.add(idx, newValue);\n\t\t\t} else {\n\t\t\t\toriginalList.add(newValue);\n\t\t\t}\n\t\t}\n\n\t\tsaveOriginalFragment();\n\t\tnewAdapter.active = true;\n\n\t}", "title": "" }, { "docid": "3e85b228e2117bc9f6718f3d26fec75f", "score": "0.5008032", "text": "@Override\n\t\t\tpublic void add(int index, Number element) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1feff8f29dde53d083538bf2793c2b3b", "score": "0.50061816", "text": "public void addOns() {\n\t\t\r\n\t}", "title": "" }, { "docid": "68ff6ae5983e748c201aefbcbeeccdb4", "score": "0.50021565", "text": "public void Add(entity element) {\n\n }", "title": "" }, { "docid": "91a9979dd3dcb4ad5c19f0281a275507", "score": "0.49893916", "text": "void birth_new_scientists() {\n\t\tfor(int s = 0; s < num_sci; s++) {\n\t\t\tScientist sci = new Scientist(this);\n\t\t\tscientist_list.add(sci);\n\t\t}\n\t\tnum_sci_tp.add(num_sci);\n\t}", "title": "" }, { "docid": "cd2200b6bb424dd29eb630eebed9af02", "score": "0.4988334", "text": "public static void main(String[] args) {\n\r\n\t\t\r\n\r\n\t\tint element;\r\n\t\tNewArrayList a=new NewArrayList();\r\n\t\t\r\n\t\t\tSystem.out.println(\"enter 10 elements\");\r\n\t\t\tfor(int i=0;i<10;i++) {\r\n\t\t\telement=a.sc.nextInt();\r\n\t\t\ta.add(element);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\ta.printElements();\r\n\t\t\ta.add(20);\r\n\t\t\ta.delete(3);\r\n\t\t\ta.printElements();\r\n\t}", "title": "" }, { "docid": "6258414a25b41ebefa3acdfe1b8da9f9", "score": "0.49860963", "text": "@Override\n public void addToProgr(Progam program) throws PacioliException {\n VectorUnitInfo info = new VectorUnitInfo(localName(), program.getModule(), true, getLocation(), !program.isLibrary());\n info.setDefinition(this);\n info.setItems(items);\n program.addInfo(info);\n }", "title": "" }, { "docid": "1f250dcb5c9a3a9369d49081c5d8ed7f", "score": "0.49809834", "text": "void add(E element);", "title": "" }, { "docid": "1f250dcb5c9a3a9369d49081c5d8ed7f", "score": "0.49809834", "text": "void add(E element);", "title": "" }, { "docid": "d25d670a75383e2f04879e7d5671249f", "score": "0.49745032", "text": "private void updateSpecPalletList() {\n\t\tspecPalletListModel.removeAllElements();\n\t\tString cookie = (String) dropDown.getSelectedItem();\n\n\t\tfor (String s: db.getAllPalletsInFreezer(cookie)){\n\t\t\tspecPalletListModel.addElement(s);\n\t\t}\n\t}", "title": "" }, { "docid": "e47734008b1200a1b1f811292def9467", "score": "0.49663353", "text": "public void addElement(Long element){\n param.add(element);\n }", "title": "" }, { "docid": "3138fec6d8f2ebdc51954202177346c5", "score": "0.49618697", "text": "abstract public void addToReserveList(String name);", "title": "" }, { "docid": "af62688a617bcf5c671abb2b891b671e", "score": "0.49609995", "text": "void newTrail() {\n trails.add(new ArrayList<Tuple>());\n updateTrail();\n }", "title": "" } ]
855d5c13b2e5bed8c54e085f796f1a2f
Function for updating the day or night temperatures Update the target temperature both on the server and in the fragment view
[ { "docid": "73fc1a70ae0e2947429a66899eee064c", "score": "0.61830056", "text": "private void setDayNightTemp(final double dayTemp, final double nightTemp) {\n\n Double customDayTemp = dayTemp;\n customDayTemp = (Math.round(customDayTemp * 100) / 10) / 10.0;\n\n Double customNightTemp = nightTemp;\n customNightTemp = (Math.round(customNightTemp * 100) / 10) / 10.0;\n\n dayTempDialog.setText(customDayTemp + \" \\u2103\");\n nightTempDialog.setText(customNightTemp + \" \\u2103\");\n }", "title": "" } ]
[ { "docid": "3a978ca60c815f4146b3eb7219e96639", "score": "0.68351406", "text": "@Override\n\tpublic void update(float temperature, float pressure, float humidity) {\n\t\tthis.forw_temperature = temperature;\n\t\tthis.forw_pressure = pressure;\n\t\tthis.forw_humidity = humidity;\n\t}", "title": "" }, { "docid": "49c7c8762c72f770592b20d6d1cc4282", "score": "0.6741267", "text": "public void updateWaterTempCard() {\n TextView buoyLocationTV = (TextView) getActivity().findViewById(R.id.water_temp_location);\n if (buoyLocationTV != null) {\n buoyLocationTV.setText(mBuoyLocation);\n }\n\n TextView waterTemp = (TextView) getActivity().findViewById(R.id.water_temp_value);\n if (waterTemp != null) {\n String waterTempValue = mWaterTemp + \" \" + getResources().getString(R.string.water_temp_holder);\n waterTemp.setText(waterTempValue);\n }\n\n ImageView waterTempIcon = (ImageView) getActivity().findViewById(R.id.water_temp_icon);\n\n int tempColorTint = getResources().getColor(android.R.color.holo_purple);\n double waterTempValueD = Double.valueOf(mWaterTemp);\n if (waterTempValueD < 43) {\n // Its purple do nothing\n } else if (waterTempValueD < 50) {\n tempColorTint = getResources().getColor(R.color.accent_blue);\n } else if (waterTempValueD < 60) {\n tempColorTint = getResources().getColor(android.R.color.holo_green_dark);\n } else if (waterTempValueD < 70) {\n tempColorTint = getResources().getColor(android.R.color.holo_orange_dark);\n } else {\n tempColorTint = getResources().getColor(android.R.color.holo_red_dark);\n }\n\n if (waterTempIcon != null) {\n waterTempIcon.setColorFilter(tempColorTint);\n }\n }", "title": "" }, { "docid": "f772bff3c17315cd3de4581d31545ede", "score": "0.6712786", "text": "private void updateViewValue(){\n Log.i(TAG, \"i am \" + getTag());\n final String temperatureCelsiusText = \"%d \" + \"°C\";\n final String feelsLikeCelsiusText = \"Feels like %d \" + \"°C\";\n final String windSpeedText = \"%d \" + \"m/s\";\n final String humidityText = \"%d \" + \"%%\";\n final String precipChanceText = \"%d \" + \"%%\";\n\n if (mForecastWrapper != null) {\n mLocationNameLabel.setText(mForecastWrapper.getSubAdministrativeLocation() + \", \" + mForecastWrapper.getCountry());\n } else {\n mLocationNameLabel.setText(\"not available\");\n }\n\n if (mForecast != null){\n mWeatherIcon.setImageResource(ForecastUtil.getIcon(mForecast.getCurrently().getIcon()));\n mTemperatureLabel.setText(String.format(temperatureCelsiusText, mForecast.getCurrently().getTemperature().intValue()));\n mApparentTemperatureLabel.setText(String.format(feelsLikeCelsiusText, mForecast.getCurrently().getApparentTemperature().intValue()));\n mWeatherDetailLabel.setText(mForecast.getHourly().getSummary());\n mWindDirectionLabel.setText(ForecastUtil.directionValue(mForecast.getCurrently().getWindBearing()));\n mWindSpeedLabel.setText(String.format(windSpeedText, mForecast.getCurrently().getWindSpeed().intValue()));\n mHumidityLabel.setText(String.format(humidityText, Util.percentValue(mForecast.getCurrently().getHumidity())));\n mPrecipChanceLabel.setText(String.format(precipChanceText, Util.percentValue(mForecast.getCurrently().getPrecipProbability())));\n } else {\n mWeatherIcon.setImageResource(R.drawable.ic_weather_sunny);\n mTemperatureLabel.setText(\"-\");\n mApparentTemperatureLabel.setText(\"Feels like -\");\n mWeatherDetailLabel.setText(\"please refresh\");\n mWindDirectionLabel.setText(\"-\");\n mWindSpeedLabel.setText(\"-\");\n mHumidityLabel.setText(\"-\");\n mPrecipChanceLabel.setText(\"-\");\n }\n }", "title": "" }, { "docid": "7d72586b591a471d20e50f0fba1639e9", "score": "0.67044836", "text": "void setCurrentWeather(double temperature,String location);", "title": "" }, { "docid": "3826d346d32b2fa2bad7864cad0db722", "score": "0.65482056", "text": "@Update\n public void updateTemperature(WeatherData data) {\n float temp = data.getTemperature();\n\n tempSum += temp;\n tempReadings++;\n\n if (temp > maxTemp)\n maxTemp = temp;\n\n if (temp < minTemp)\n minTemp = temp;\n }", "title": "" }, { "docid": "90ac2c90d4082b3a8e1866905289dfbe", "score": "0.6526792", "text": "@Override\n\tpublic void update(int temperature, int humidity, int pressure) {\n\t\tthis.temperature = temperature;\n\t\tthis.humidity = humidity;\n\t\tthis.pressure = pressure;\n\t\tdisplay();\n\t}", "title": "" }, { "docid": "807d5d07115e3e711728a971f80670c8", "score": "0.65189064", "text": "public void update(float temperature, float humidity, float pressure){\n this.temperature = temperature;\n this.temperatures.add(temperature);\n this.humidity = humidity;\n this.pressure = pressure;\n this.averageTemp = calculateAvgTemp();\n this.maxTemp = getMaxTemp();\n this.minTemp = getMinTemp();\n display();\n }", "title": "" }, { "docid": "390376e2a29f923980e33fe3e683df33", "score": "0.64219093", "text": "public void update(float temp, float humidity, float pressure);", "title": "" }, { "docid": "ba3ffa37ce73e7d4a789073922195ccf", "score": "0.6391017", "text": "void setCurrentWeather(String weatherCondition, float temperature);", "title": "" }, { "docid": "31f06ce247eaebf8dda82cd06550a67a", "score": "0.6268203", "text": "@SideOnly(Side.CLIENT)\n public void updateTemperatureFromPacket(int temperature) {\n this.temperature = temperature;\n }", "title": "" }, { "docid": "a242f8f7422e94d94cc9782fe0680554", "score": "0.6262519", "text": "void setTemperature(int tmp);", "title": "" }, { "docid": "27d40a49a4e8f82d5000f49c10840e1d", "score": "0.6137242", "text": "private void setDailyTempsActivity() {\n if (getForecast() != null) {\n displayForecastFragment();\n } else if (noNetworkConnectivity(this)){\n displayErrorScreen(NO_CONNECTIVITY);\n } else {\n getLocationAndLoadForecast();\n }\n }", "title": "" }, { "docid": "83927ccf623834d4b6a1cbbe5bfbc6ed", "score": "0.6130355", "text": "public void updateSeekBarDay(double temp) {\n dayTempBar.setProgress((int)((temp / 0.1) - tempMin * 10));\n }", "title": "" }, { "docid": "5e116b50e2664b4b0e934b0906c5a20f", "score": "0.6094254", "text": "private void update24HoursForecast () {\n String[] projection = {\n MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_JSON_CONTENT,\n MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_EXPIRATION_DATE\n };\n String selection = MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_DATA_TYPE + \" LIKE ?\";\n String[] selectionArgs = { String.valueOf(Constant.DB_KEY_24HRS_WEATHER) };\n\n Cursor cursor = mContentResolver.query(MusicTrackMetaData.MusicTrackCommonDataDB.CONTENT_URI, projection, selection, selectionArgs, null);\n cursor.moveToFirst();\n String JSONContent = cursor.getString(cursor.getColumnIndex(MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_JSON_CONTENT));\n update24HoursForecastUI(JSONContent);\n\n Log.d(\"daz\", \"ui got the weather json:\" + JSONContent);\n }", "title": "" }, { "docid": "1846980635fa0907ba706a015d43324b", "score": "0.6054533", "text": "@Override\n public void onClick(View v) {\n if(newTemp.getText().toString().length() > 0) {\n final String newTempString = String.valueOf(newTemp.getText());\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n HeatingSystem.put(\"nightTemperature\", newTempString);\n } catch(Exception e) {\n System.err.println(\"Error occurred \" + e);\n }\n }\n }).start();\n }\n\n //Close the temperature dialog\n tempDialog.dismiss();\n }", "title": "" }, { "docid": "086b046e99c88dc17be72da1a52026cf", "score": "0.6042481", "text": "public LiveData<String> refreshTemperature (Context context){\n\n if(sLiveTemperature == null) {\n //init observable variable\n sLiveTemperature = new MutableLiveData<>();\n sLiveTemperature.postValue(\"Temperature\");\n }\n\n this.context = context;\n\n repository.startService(context);\n //returns the observable variable\n return sLiveTemperature;\n }", "title": "" }, { "docid": "ef03d714c29184c072e3575d8d43c30b", "score": "0.60413074", "text": "private void PostNewTemperatureSetting(){\n\n AsyncHttpClient asyncHttpClient=new AsyncHttpClient();\n asyncHttpClient.get(MainActivity.TemperatureAPIUrl, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n jsonObject=json.jsonObject;\n int NewValue=SliderValue;\n\n try {\n if (MainActivity.CurrentScale.equals(MainActivity.CelsiusCode)){ //if in celsius,converting before posting\n NewValue=((SliderValue*9/5)+32);\n }\n\n jsonObject.put(\"set_temperature_f\", NewValue);\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n asyncHttpClient.post(MainActivity.TemperatureAPIUrl, jsonObject.toString(), new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n Log.i(\"ClimateActivity\",\"Posted new temperature setting\");\n MainActivity.NewTempSet=true;\n BeginLiveTempChange();\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n Log.e(\"ClimateActivity\",\"Failed to post new temperature setting\");\n }\n });\n }\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n Log.e(\"ClimateActivity\",\"Error retrieving API in GET method\");\n }\n });\n\n }", "title": "" }, { "docid": "4e0343cc81dde63c7c06935f7d98a900", "score": "0.6030253", "text": "public void today()\n {\n\n day = 1;\n getWeather(cityView);\n setView(day);\n }", "title": "" }, { "docid": "826a5a04d3eebfc4559c0a1fd6d02d77", "score": "0.60288984", "text": "void changeWeather() {\n conditionsChanged();\n }", "title": "" }, { "docid": "56c27f4d2168364b40286251504c4514", "score": "0.60198545", "text": "private void updateWeather(){\n WeatherDownloadTask downloadTask =new WeatherDownloadTask();\n downloadTask.execute();\n }", "title": "" }, { "docid": "95ee66148543a760be4e81e89628a3cd", "score": "0.60149056", "text": "@Raw\n public void neighbourHasChangedTemperatureOrHumidity();", "title": "" }, { "docid": "74f164677242d7d9f7118963e6151661", "score": "0.59929204", "text": "public synchronized void setTemperature(float temp) {\n temperature = temp;\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "b7b58802fb4c160fbd57665767f05721", "score": "0.59767354", "text": "public void updateTemperature(Double temperature){\n\t\t temp.push(temperature);\n\t}", "title": "" }, { "docid": "b7dbe3dc1386769eac3aee41295bdc20", "score": "0.5974964", "text": "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n double temp = (double)(tempMin + Math.round(progress) / 10.0);\n //Update the targetTemp variable (!important)\n newDayTemp = temp;\n setDayNightTemp(newDayTemp, newNightTemp);\n }", "title": "" }, { "docid": "1ff47da5453c997f05edbdc41fedb9d1", "score": "0.5972484", "text": "public void setTemperatures(double roomTemperature) {\r\n\t\tthis.roomTemperature = roomTemperature;\r\n\t\tFridge.instance().setFridgeTemperature(roomTemperature);\r\n\t\tFreezer.instance().setFreezerTemperature(roomTemperature);\r\n\t}", "title": "" }, { "docid": "ae0f2a24f970ebfdd0acc8418d65a8d3", "score": "0.59620106", "text": "@Override\n\tpublic void temperature() {\n\t\tsuper.temperature();\n\t}", "title": "" }, { "docid": "1bff4d4dffe98fed9aed179ccb968cb8", "score": "0.5927295", "text": "@Override\n public void onClick(View v) {\n if(newTemp.getText().toString().length() > 0) {\n final String newTempString = String.valueOf(newTemp.getText());\n final Double newTempDay = Double.parseDouble(newTemp.getText().toString());\n\n if(newTempDay >= 5 && newTempDay <= 30) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n HeatingSystem.put(\"dayTemperature\", newTempString);\n } catch(Exception e) {\n System.err.println(\"Error occurred \" + e);\n }\n }\n }).start();\n\n //Close the temperature dialog\n tempDialog.dismiss();\n } else {\n Toast.makeText(getContext(), \"Please enter a temperature between 5 and 30 degrees Celsius\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "870156189996b0b263bdf27b02f9b2f8", "score": "0.5913243", "text": "public void setTemperature(Double temperature) {\n this.temperature = temperature;\n }", "title": "" }, { "docid": "7984639efbcc308201ee1e0dac881909", "score": "0.58889383", "text": "private void addTemperature() {\n if(targetTempVal >= 5 && targetTempVal < 30) {\n targetTempVal = Math.round((targetTempVal + 0.1) * 10.0) / 10.0 ;\n setTemp(targetTempVal);\n //Update the seekBar progress with the new temp\n updateSeekBar(targetTempVal);\n }\n }", "title": "" }, { "docid": "a9d7b0902e2c97e7733c93939877bb2e", "score": "0.5877795", "text": "public void lowerTemperature(double temp) {\n\n if (UserProfile.getInstance().authToken.isEmpty()) {\n homeTemperature = 21;\n return;\n }\n\n final String uri = ServerApi.HOST + ServerApi.HOUSE_TEMPERATURE;\n\n TemperatureRequest tempRequest =\n new TemperatureRequest(UserProfile.getInstance().getUid(), temp);\n\n RestTemplate restTemplate = new RestTemplate();\n double result = restTemplate.postForObject(uri, tempRequest, Double.class);\n\n homeTemperature = result;\n }", "title": "" }, { "docid": "4511c8cae732cbd98be1a7aa3f8ed165", "score": "0.58682746", "text": "public void setMeasurements(float temperature, float humidity, float pressure) {\r\n this.temperature = temperature;\r\n this.humidity = humidity;\r\n this.pressure = pressure;\r\n \r\n measurementsChanged();\r\n }", "title": "" }, { "docid": "f99c8f3b9f8dec604eaed4a5c759a832", "score": "0.5867818", "text": "public abstract void updateTau(int i, int j);", "title": "" }, { "docid": "171f4cf140294fbd4c31c3dca4b67759", "score": "0.58673453", "text": "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n progressBar.setVisibility(View.GONE);\n\n PiStatus piStatus = dataSnapshot.getValue(PiStatus.class);\n if (piStatus != null) {\n if (piStatus.isOnlinePi()) {\n\n ivPiStatus.setImageResource(R.drawable.circle_on);\n //tvPiStatus.setText(\"Raspberry Pi\");\n tvTime.setText(getFormattedDate(piStatus.getLastOnlinePi()));\n ivIp.setImageResource(R.drawable.circle_on);\n tvIP.setText(piStatus.getIp());\n\n queryTemps.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n for (TemperatureInfo tempInfo : infoArrayList) {\n TemperatureInfo temperatureInfo = dataSnapshot.child(tempInfo.getName()).getValue(TemperatureInfo.class);\n String name = dataSnapshot.child(tempInfo.getName()).getKey();\n\n if (tempInfo.getName().equals(name)) {\n if (temperatureInfo != null) {\n\n switch (name) {\n case \"water\":\n infoArrayList.get(0).setTemp(temperatureInfo.getTemp());\n infoArrayList.get(0).setTempMax(temperatureInfo.getTempMax());\n infoArrayList.get(0).setTempMin(temperatureInfo.getTempMin());\n infoArrayList.get(0).setMinTimeStamp(temperatureInfo.getMinTimeStamp());\n infoArrayList.get(0).setMaxTimeStamp(temperatureInfo.getMaxTimeStamp());\n //float tempWater = temperatureInfo.getTemp();\n /*tvWaterTemp\n .setText(TextUtils.concat(\n String.format(Locale.getDefault(), \"%.2f\", tempWater), \" \\u00b0C\"));*/\n break;\n\n case \"system\":\n infoArrayList.get(1).setTemp(temperatureInfo.getTemp());\n infoArrayList.get(1).setTempMax(temperatureInfo.getTempMax());\n infoArrayList.get(1).setTempMin(temperatureInfo.getTempMin());\n infoArrayList.get(1).setMinTimeStamp(temperatureInfo.getMinTimeStamp());\n infoArrayList.get(1).setMaxTimeStamp(temperatureInfo.getMaxTimeStamp());\n //float tempSystem = temperatureInfo.getTemp();\n /*tvSystemTemp\n .setText(TextUtils.concat(\n String.format(Locale.getDefault(), \"%.2f\", tempSystem), \" \\u00b0C\"));*/\n break;\n\n case \"room\":\n infoArrayList.get(2).setTemp(temperatureInfo.getTemp());\n infoArrayList.get(2).setTempMax(temperatureInfo.getTempMax());\n infoArrayList.get(2).setTempMin(temperatureInfo.getTempMin());\n infoArrayList.get(2).setMinTimeStamp(temperatureInfo.getMinTimeStamp());\n infoArrayList.get(2).setMaxTimeStamp(temperatureInfo.getMaxTimeStamp());\n //float tempRoom = temperatureInfo.getTemp();\n /*tvRoomTemp\n .setText(TextUtils.concat(\n String.format(Locale.getDefault(), \"%.2f\", tempRoom), \" \\u00b0C\"));*/\n break;\n }\n\n tvNowTemp.setText(String.format(Locale.UK, \"%.2f\", infoArrayList.get(0).getTemp()));\n tvMinTemp.setText(String.format(Locale.UK, \"%.2f\", infoArrayList.get(0).getTempMin()));\n tvMaxTemp.setText(String.format(Locale.UK, \"%.2f\", infoArrayList.get(0).getTempMax()));\n tvTimeMin.setText(getFormattedDate(infoArrayList.get(0).getMinTimeStamp()));\n tvTimeMax.setText(getFormattedDate(infoArrayList.get(0).getMaxTimeStamp()));\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n progressBar.setVisibility(View.GONE);\n }\n });\n\n queryControl.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n Control controlData = dataSnapshot.getValue(Control.class);\n control.setBypassOn(controlData.isBypassOn());\n //tbBypass.setChecked(controlData.isBypassOn());\n if(controlData.isBypassOn()) {\n tvBypass.setText(\"Bypass On\");\n ivBypass.setBackgroundResource(R.drawable.circle_on);\n }else{\n tvBypass.setText(\"Bypass Off\");\n ivBypass.setBackgroundResource(R.drawable.circle_off);\n }\n control.setLightOn(controlData.isLightOn());\n //tbLight.setChecked(controlData.isLightOn());\n if(controlData.isLightOn()) {\n tvLight.setText(\"Light On\");\n ivLight.setBackgroundResource(R.drawable.circle_on);\n }else{\n tvLight.setText(\"Light Off\");\n ivLight.setBackgroundResource(R.drawable.circle_off);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n if (piStatus.isOnlineArduino()) {\n ivArduinoStatus.setImageResource(R.drawable.circle_on);\n //tvArduinoStatus.setText(\"Arduino\");\n } else {\n ivArduinoStatus.setImageResource(R.drawable.circle_off);\n //tvArduinoStatus.setText(\"Arduino\");\n }\n\n } else {\n\n ivPiStatus.setImageResource(R.drawable.circle_off);\n tvPiStatus.setText(\"Offline\");\n tvTime.setText(getFormattedDate(piStatus.getLastOnlinePi()));\n ivIp.setImageResource(R.drawable.circle_off);\n //tvIP.setText(\"Raspberry Pi\");\n ivArduinoStatus.setImageResource(R.drawable.circle_off);\n //tvArduinoStatus.setText(\"Arduino\");\n\n tvNowTemp.setText(\"--.--\");\n tvMaxTemp.setText(\"--.--\");\n tvMinTemp.setText(\"--.--\");\n }\n }\n }", "title": "" }, { "docid": "65c79496726600955bc652b1a806c4bb", "score": "0.58620626", "text": "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n double temp = (double)(tempMin + Math.round(progress) / 10.0);\n //Update the targetTemp variable (!important)\n newNightTemp = temp;\n setDayNightTemp(newDayTemp, newNightTemp);\n }", "title": "" }, { "docid": "12f7536c23dcd6adf416bbb58c0f8d3e", "score": "0.5817032", "text": "public void updateSensorInformation() {\n\n if (name.equalsIgnoreCase(\"temperature\")) {\n this.unit = \"°C\";\n //update later\n this.progressBarValue = (int) sensorValue;\n this.stringSensorValue = String.format(\"%.2f\", sensorValue);\n } else if (name.equalsIgnoreCase(\"humidity\")) {\n this.unit = \" %\";\n this.progressBarValue = (int) sensorValue;\n this.stringSensorValue = String.format(\"%.2f\", sensorValue);\n } else if (name.equalsIgnoreCase(\"light\")) {\n this.unit = \"\";\n this.progressBarValue = (int) sensorValue / 5;\n if (this.sensorValue > 400) {\n this.stringSensorValue = \"Bright\";\n } else if (this.sensorValue < 400 && this.sensorValue > 100) {\n this.stringSensorValue = \"Medium\";\n } else if (this.sensorValue < 100) {\n this.stringSensorValue = \"Dark\";\n }\n } else if (name.equalsIgnoreCase(\"air\")) {\n\n this.progressBarValue = (int) sensorValue / 10;\n if (this.sensorValue > 900) {\n this.stringSensorValue = \"Clean\";\n } else if (this.sensorValue < 850 && this.sensorValue > 500) {\n this.stringSensorValue = \"Low Pollution\";\n } else if (this.sensorValue < 500) {\n this.stringSensorValue = \"High Pollution\";\n }\n }\n }", "title": "" }, { "docid": "dddc8ac78c96227ee21359b08a52f99c", "score": "0.58117884", "text": "private void QueryWebApi(){\n\n AsyncHttpClient asyncHttpClient=new AsyncHttpClient();\n\n asyncHttpClient.get(MainActivity.TemperatureAPIUrl, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n JSONObject Object= json.jsonObject;\n try {\n if (MainActivity.CurrentScale.equals(MainActivity.FahrenheitCode)) {\n RealCurrentTemp = Object.getDouble(\"current_temperature_f\"); //storing value from our API\n }\n else if (MainActivity.CurrentScale.equals(MainActivity.CelsiusCode)) {\n RealCurrentTemp = Object.getDouble(\"current_temperature_c\");\n }\n\n MainActivity.CurrentTempInside=RealCurrentTemp;\n tvInsideTemp.setText((int)RealCurrentTemp+MainActivity.CurrentScale);\n\n if ((int)RealCurrentTemp==(int)MainActivity.SetTemperatureInsideCar){ //when set temperature reached\n mCountDownTimer.cancel();\n Snackbar.make(mylayout,\"Set Temperature Reached\",Snackbar.LENGTH_LONG).show();\n return;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n Log.e(\"ClimateActivity\",\"Failed to Query API for decrementing\");\n }\n });\n\n }", "title": "" }, { "docid": "82d5fa0b18f6216b8fa9f6b8b1644fd6", "score": "0.58028394", "text": "public void updateSeekBarNight(double temp) {\n nightTempBar.setProgress((int)((temp / 0.1) - tempMin * 10));\n }", "title": "" }, { "docid": "a948c9ca8c74c4a814c88925fbb4280f", "score": "0.5791662", "text": "public TemperatureSensor() {\n updateInterval = 10000; //Amount of time between each data refresh - 10s\n refreshData();\n }", "title": "" }, { "docid": "4a3822005cfeb73cc8c69039cbb64533", "score": "0.57895815", "text": "public void setTemperature(String temperature) {\n this.temperature = temperature;\n }", "title": "" }, { "docid": "c17124033e4d1904efadb9ad1e31214b", "score": "0.5765783", "text": "private static void changerTemperatureChauffage(int temperatureChauffage) throws IOException \r\n { \r\n // Definir l'adresse URL de la requete\r\n String charset = \"UTF-8\"; // Or in Java 7 and later, use the constant: java.nio.charset.StandardCharsets.UTF_8.name()\r\n String url = \"http://localhost:4567/chauffage\";\r\n String query = String.format(\"temperature=%s\", temperatureChauffage);\r\n URLConnection connection = new URL(url).openConnection();\r\n connection.setDoOutput(true); // Triggers POST.\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded;charset=\" + charset);\r\n\r\n try (OutputStream output = connection.getOutputStream()) {\r\n output.write(query.getBytes(charset));\r\n }\r\n\r\n InputStream response = connection.getInputStream();\r\n // Obtenir le resultat de la requete\r\n try (Scanner scanner = new Scanner(response)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n //System.out.println(\"Reponse de la requete HTTP POST:\" + responseBody);\r\n }\r\n }", "title": "" }, { "docid": "b15c7631cce2a137fc54d7128e0d725c", "score": "0.5742708", "text": "private void BeginLiveTempChange(){\n\n mCountDownTimer = new CountDownTimer(mTimeLeftInMillis, 2000) {\n @Override\n public void onTick(long millisUntilFinished) {\n mTimeLeftInMillis = millisUntilFinished;\n QueryWebApi(); //Each time this is queried, Inside temperature increments/decrements by 1\n\n }\n @Override\n public void onFinish() {\n //never using\n }\n }.start();\n\n }", "title": "" }, { "docid": "2d634b94a7907632f8703ad958e89b00", "score": "0.5710354", "text": "@Override\n public void update() {\n System.out.println(\"Updated celsius observer. Temprature is:\" + observable.getState());\n }", "title": "" }, { "docid": "bbbdb200a727e2e6bad9d07986c90528", "score": "0.5709458", "text": "public float fetchTemperature();", "title": "" }, { "docid": "4fa824822ecb6b6f6ada85bb615b8b7b", "score": "0.5708794", "text": "private void setTemp(final double temp) {\n\n Double customTemp = temp;\n customTemp = (Math.round(customTemp * 100) / 10) / 10.0;\n\n targetTemp.setText(String.valueOf(customTemp) + \" \\u2103\");\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n HeatingSystem.put(\"targetTemperature\", String.valueOf(temp));\n } catch(Exception e) {\n System.err.println(\"Error occurred \" + e);\n }\n }\n }).start();\n }", "title": "" }, { "docid": "e219d0b2fc02e80a2fb62b4ca2a59871", "score": "0.56889045", "text": "public void changeWeather() {\n\t\tconditionsChanged();\n\t}", "title": "" }, { "docid": "8e4e9c9f763c875ab238264d1e5dbbb5", "score": "0.5685243", "text": "public void setTemperatureUnit(TemperatureUnits unit);", "title": "" }, { "docid": "beaf687929d41f2ba918ff7a38c61b53", "score": "0.56642854", "text": "public void setTemp(double temp)\r\n {\r\n thermosetting = temp;\r\n }", "title": "" }, { "docid": "c05d356e38f8086cc241fcd0e11d9fd3", "score": "0.5656116", "text": "private void update(){\n\n Log.d(\"Sensor\",\"Update :\"+sensor.getCurrentData());\n\n //We call the method that will work with the UI\n //through the runOnUiThread method.\n }", "title": "" }, { "docid": "2f8736826073746efb7994a5b2cb0bc5", "score": "0.56417763", "text": "public void getWeather(View view) {\n new GetWeatherTask().execute(currentLocation);\n\n }", "title": "" }, { "docid": "9c47b74536efd149b5364883163f2ddb", "score": "0.5638196", "text": "@Override\n public void onCharacteristicChanged(BluetoothGatt gatt, final BluetoothGattCharacteristic characteristic) {\n byte[] sensorData = characteristic.getValue();\n if(characteristic.getUuid().equals(SensorTagGatt.UUID_IRT_DATA)){\n Point3D p = Sensor.IR_TEMPERATURE.convert(sensorData);\n temperatur = decimal.format(p.x);\n iR_Temperature = decimal.format(p.y);\n\n /*fragment.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(fragment.getView() != null) {\n\n }\n }\n });*/\n\n\n //gatt.setCharacteristicNotification(characteristic, false);\n //gatt.setCharacteristicNotification(data.get(0), false);\n\n gatt.setCharacteristicNotification(config.get(1), true);\n config.get(1).setValue(value);\n gatt.writeCharacteristic(config.get(1));\n }else if(characteristic.getUuid().equals(SensorTagGatt.UUID_HUM_DATA)){\n Point3D p = Sensor.HUMIDITY.convert(sensorData);\n humidity = decimal.format(p.x);\n final float hum = (float)p.x;\n try{\n fragment.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(fragment.getView() != null) {\n TextView tv1 = (TextView) fragment.getView().findViewById(R.id.palmescreen_humidity);\n tv1.setText(\"Feuchtigkeitswert: \" + humidity + \" %rH\");\n ImageView image1 = (ImageView)fragment.getView().findViewById(R.id.palmescreen_imageView1);\n ImageView image2 = (ImageView)fragment.getView().findViewById(R.id.palmescreen_imageView2);\n\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(image1.getWidth(), image1.getHeight());\n params.addRule(RelativeLayout.CENTER_HORIZONTAL);\n params.topMargin = 10;\n params.addRule(RelativeLayout.VISIBLE);\n params.addRule(RelativeLayout.BELOW,tv1.getId());\n image2.setLayoutParams(params);\n Bitmap tempBitmap = Bitmap.createBitmap(image1.getWidth(), image1.getHeight(), Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(tempBitmap);\n Paint paint = new Paint();\n paint.setColor(fragment.getResources().getColor(R.color.normal));\n paint.setStyle(Paint.Style.FILL);\n canvas.drawRect(0, image1.getHeight(), image1.getWidth(), image1.getHeight() * (100 - hum) / 100, paint);\n image2.setImageDrawable(new BitmapDrawable(fragment.getResources(), tempBitmap));\n }\n }\n });\n }catch(NullPointerException e){\n gatt.disconnect();\n }\n //gatt.setCharacteristicNotification(characteristic, false);\n //gatt.setCharacteristicNotification(data.get(1), false);\n\n gatt.setCharacteristicNotification(config.get(2), true);\n config.get(2).setValue(value);\n gatt.writeCharacteristic(config.get(2));\n\n\n }else if(characteristic.getUuid().equals(SensorTagGatt.UUID_BAR_DATA)){\n Point3D p = Sensor.BAROMETER.convert(sensorData);\n //double h = (p.x - BarometerCalibrationCoefficients.INSTANCE.heightCalibration) / PA_PER_METER;\n double h = p.x / PA_PER_METER;\n h = (double) Math.round(-h * 10.0) / 10.0;\n\n pressure_1 = decimal.format(p.x);\n pressure_2 = decimal.format(h);\n /*fragment.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(fragment.getView() != null) {\n\n }\n }\n });*/\n //gatt.setCharacteristicNotification(characteristic, false);\n //gatt.setCharacteristicNotification(data.get(2), false);\n\n gatt.setCharacteristicNotification(config.get(3), true);\n config.get(3).setValue(value);\n gatt.writeCharacteristic(config.get(3));\n }else if(characteristic.getUuid().equals(SensorTagGatt.UUID_ACC_DATA)){\n Point3D p = Sensor.ACCELEROMETER.convert(sensorData);\n acc_1 = decimal.format(p.x);\n acc_2 = decimal.format(p.y);\n acc_3 = decimal.format(p.z);\n /*fragment.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(fragment.getView() != null){\n\n }\n }\n });*/\n //gatt.setCharacteristicNotification(characteristic, false);\n //gatt.setCharacteristicNotification(data.get(3), false);\n\n gatt.setCharacteristicNotification(config.get(0), true);\n config.get(0).setValue(value);\n gatt.writeCharacteristic(config.get(0));\n }else if(gatt.getDevice().getName().toString().equals(\"Spark\")){\n\n humidity = characteristic.getStringValue(0);\n final float hum = Float.valueOf(humidity);\n try {\n fragment.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (fragment.getView() != null) {\n TextView tv1 = (TextView) fragment.getView().findViewById(R.id.palmescreen_humidity);\n tv1.setText(\"Feuchtigkeitswert: \" + humidity + \" %rH\");\n ImageView image1 = (ImageView) fragment.getView().findViewById(R.id.palmescreen_imageView1);\n ImageView image2 = (ImageView) fragment.getView().findViewById(R.id.palmescreen_imageView2);\n\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(image1.getWidth(), image1.getHeight());\n params.addRule(RelativeLayout.CENTER_HORIZONTAL);\n params.topMargin = 10;\n params.addRule(RelativeLayout.VISIBLE);\n params.addRule(RelativeLayout.BELOW, tv1.getId());\n image2.setLayoutParams(params);\n Bitmap tempBitmap = Bitmap.createBitmap(image1.getWidth(), image1.getHeight(), Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(tempBitmap);\n Paint paint = new Paint();\n paint.setColor(fragment.getResources().getColor(R.color.normal));\n paint.setStyle(Paint.Style.FILL);\n canvas.drawRect(0, image1.getHeight(), image1.getWidth(), image1.getHeight() * (100 - hum) / 100, paint);\n image2.setImageDrawable(new BitmapDrawable(fragment.getResources(), tempBitmap));\n }\n }\n });\n }catch(NullPointerException e){\n gatt.disconnect();\n }\n }else{\n //TODO\n }\n }", "title": "" }, { "docid": "ec1368dbbe47f302f81ad730f18007d5", "score": "0.56158924", "text": "public boolean setDataWeatherData (String thisLocation, String thisDay, String thisMonth, String thisYear, \n\t\t\tString thisLowTemp, String thisHighTemp) {\n\t\tapiNum++;\n\t\tWeather weatherData = new Weather(thisLocation, thisDay, thisMonth, thisYear, \n\t\t\t\tthisLowTemp, thisHighTemp);\n\t\tLog.i(tag, \"Low Temp: \" + thisLowTemp);\n\t\tLog.i(tag, \"High Temp: \" + thisHighTemp);\n\t\tweatherInfo.add(weatherData);\n\t\tif (apiNum < 8) {\n\t\t\thandleAPI(modifiedDate);\n\t\t}\n\t\tLog.i(tag, weatherInfo.toString());\n\t\taddTabs();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecc9dc7c9d1b1cd804400294c0f72cee", "score": "0.561425", "text": "@Override\n \tpublic void onCreate(Bundle savedInstanceState) {\n \t\tsuper.onCreate(savedInstanceState);\n \t\tsetContentView(R.layout.main);\n \t\t\n \t\tPreferenceManager.setDefaultValues(this, R.xml.preferences, true);\n \n \t\tSharedPreferences settings = PreferenceManager\n \t\t\t\t.getDefaultSharedPreferences(getBaseContext());\n \n \t\tSharedPreferences.Editor edit = settings.edit();\n \t\tedit.putInt(\"brightness_key\", 100);\n \t\tedit.putInt(\"temp_key\", 70);\n \t\tedit.commit();\n \n \t\tint temp = settings.getInt(\"temp_key\", 0);\n \t\tString displayTemp = \"\" + temp;\n \t\tTextView textView = (TextView) findViewById(R.id.currentSysTemp);\n \t\ttextView.setText(displayTemp);\n \t\t\n \t\t// execute background weather gathering\n \t\tCurrentWeatherTask task = new CurrentWeatherTask();\n \t\ttask.execute();\n \n \t\t// refresh weather data when image button pressed\n \t\tImageButton refreshWeather = (ImageButton) findViewById(R.id.WeatherRefreshButton);\n \t\trefreshWeather.setOnClickListener(refreshWeatherListener);\n \n \t\t// buttons for fan\n \t\tButton fanOn = (Button) findViewById(R.id.sys_fan_on);\n \t\tButton fanOff = (Button) findViewById(R.id.sys_fan_off);\n \t\tButton fanAuto = (Button) findViewById(R.id.sys_fan_auto);\n \n \t\t// buttons for system mode\n \t\tButton sysHeat = (Button) findViewById(R.id.sys_mode_heat);\n \t\tButton sysCool = (Button) findViewById(R.id.sys_mode_cool);\n \t\tButton sysFan = (Button) findViewById(R.id.sys_mode_fan);\n \n \t\t// buttons for temp adjustment\n \t\tButton adjustUp = (Button) findViewById(R.id.tempUp);\n \t\tButton adjustDown = (Button) findViewById(R.id.tempDown);\n \n \t\tfanOn.setOnClickListener(fanOnListener);\n \t\tfanOff.setOnClickListener(fanOffListener);\n \t\tfanAuto.setOnClickListener(fanAutoListener);\n \t\tsysHeat.setOnClickListener(sysHeatListener);\n \t\tsysCool.setOnClickListener(sysCoolListener);\n \t\tsysFan.setOnClickListener(sysFanListener);\n \t\tadjustUp.setOnClickListener(tempUpListener);\n \t\tadjustDown.setOnClickListener(tempDownListener);\n \n \t\t// this sets the help string for the current activity.\n \t\t// copy paste\n \t\trootIntent.setHelpText(getText(R.string.main_help));\n \n \t\tinitIntents();\n \n \t}", "title": "" }, { "docid": "3ef6ee2345a3de08320770f6a531937b", "score": "0.5602384", "text": "public WeatherDataControl (DisplayData displayData_in) {\n displayData = displayData_in;\n try {\n dateOfData = sdfInput.parse(displayData.getTemperature().getPeriod());\n if(GlobalSettings.weatherData) Log.d(\"DisplayWeatherInfoAccessPageFragmnt\", \"Date: \"+ dateOfData);\n todaysDate = sdfDisplay.format(dateOfData);\n hour = Integer.parseInt(sdfSunCheck.format(dateOfData));\n month = Integer.parseInt(sdfMonth.format(dateOfData));\n dayOfWeek = sdfDayOfWeek.format(dateOfData) +\" \"+ hour.toString() +\":00\";\n dayOfWeekAmPm = sdfDayOfWeekAmPm.format(dateOfData) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "21c38423291bb3727a02ecc0852df7b2", "score": "0.5586815", "text": "@Override\n public void onClick(View v) { //convert to celsius\n if (TempSwitchChecked==false) {\n TempSwitch.setText(MainActivity.CelsiusCode);\n tvSetscale.setText(\"Celsius\");\n TempSwitchChecked=true;\n\n }\n else if (TempSwitchChecked==true){ //convert to fahrenheit\n TempSwitch.setText(MainActivity.FahrenheitCode);\n tvSetscale.setText(\"Fahrenheit\");\n TempSwitchChecked=false;\n\n } //repopulating views on screen\n MainActivity.ConvertScale();\n tvInsideTemp.setText((int)MainActivity.CurrentTempInside+MainActivity.CurrentScale);\n tvOutsideTemp.setText((int)MainActivity.CurrentTempOutside+MainActivity.CurrentScale);\n tvSliderTemp.setText((int)MainActivity.SetTemperatureInsideCar+MainActivity.CurrentScale);\n TempSeekBar.setProgress((int)MainActivity.SetTemperatureInsideCar);\n\n }", "title": "" }, { "docid": "939bd3989a257ecbe17633f907d1f653", "score": "0.55840755", "text": "public static void updateCurrent(float t, float h, int l) throws SQLException \n {\n //Initializing the ideal temperature, humidity and the lightlevel before the try-catch statement\n float idealTemp = 0;\n float idealHumidity = 0;\n int idealLight = 0;\n\n try{\n /*\n The ideal temperatures that the user previously inputed are collected from the \n database first to be used in the comparison with the current conditions\n */\n String query1 = \"SELECT Optimal_Temperature FROM optimal_conditions\";\n ResultSet rs1 = LinkJavaMySQL.selectQuery(query1);\n while(rs1.next()){\n idealTemp = rs1.getFloat(\"Optimal_Temperature\");\n }\n \n String query2 = \"SELECT Optimal_Humidity FROM optimal_conditions\";\n ResultSet rs2 = LinkJavaMySQL.selectQuery(query2);\n while(rs2.next()){\n idealHumidity = rs2.getFloat(\"Optimal_Humidity\");\n }\n \n String query3 = \"SELECT Optimal_LightLevel FROM optimal_conditions\";\n ResultSet rs3 = LinkJavaMySQL.selectQuery(query3);\n while(rs3.next()){\n idealLight = rs3.getInt(\"Optimal_LightLevel\"); \n }\n \n /*\n A check to see if the temperature reading is within a certain range given the optimal conditions\n for the temperature, humidity and the light level\n */\n if((t < (idealTemp + 5)) & (t > (idealTemp - 5))){\n CurrentTempLabel.setText(String.valueOf(t));\n CurrentTempLabel.setForeground(Color.green);\n }\n else{\n CurrentTempLabel.setText(String.valueOf(t));\n CurrentTempLabel.setForeground(Color.red);\n }\n \n if((h < (idealHumidity + 10)) & (h > (idealHumidity - 10))){\n CurrentHumidityLabel.setText(String.valueOf(h));\n CurrentHumidityLabel.setForeground(Color.green);\n }\n else{\n CurrentHumidityLabel.setText(String.valueOf(h));\n CurrentHumidityLabel.setForeground(Color.red);\n }\n \n if((l < (idealLight + 100)) &(l > (idealLight - 100))){ \n CurrentLightLabel.setText(String.valueOf(l));\n CurrentLightLabel.setForeground(Color.green);\n }\n else{\n CurrentLightLabel.setText(String.valueOf(l));\n CurrentLightLabel.setForeground(Color.red);\n }\n } \n catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "title": "" }, { "docid": "7eea506cad067d8271c07a33e5040bb2", "score": "0.55744874", "text": "public static void updateSensor(){\n }", "title": "" }, { "docid": "ceb39c216c5e1736a0524dc72794fecc", "score": "0.5563913", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.weather_layout, container, false);\n\n //noinspection ConstantConditions\n ((DrawerActivity) getActivity()).getSupportActionBar().setTitle(R.string.show_my_weather);\n\n\n //is location data set?\n if (AppController.getInstance().getPrefManager().isLocationSet()) {\n\n //read shared prefs data\n //create school object to store school data in shared prefs\n MyLocation myLocation = AppController.getInstance().getPrefManager().getLocation();\n longitude = myLocation.getLongitude();\n latitude = myLocation.getLatitude();\n //Log.e(TAG, \"locn weather - longitude - \" + longitude + \" == latitude - \" + latitude);\n\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"longitude\", longitude);\n params.put(\"latitude\", latitude);\n\n //set location weather\n setLocationWeather(params);\n\n //set location name\n setLocationName(params);\n\n }\n\n //get fields\n //loadingProgressBar = (ProgressBar) view.findViewById(R.id.loadingProgressBar);\n\n tvCountryName = (TextView) view.findViewById(R.id.tvCountryName);\n tvCountryCode = (TextView) view.findViewById(R.id.tvCountryCode);\n tvLocationName = (TextView) view.findViewById(R.id.tvLocationName);\n tvTemperature = (TextView) view.findViewById(R.id.tvTemperature);\n tvWindDirection = (TextView) view.findViewById(R.id.tvWindDirection);\n tvClouds = (TextView) view.findViewById(R.id.tvClouds);\n tvHumidity = (TextView) view.findViewById(R.id.tvHumidity);\n tvWindSpeed = (TextView) view.findViewById(R.id.tvWindSpeed);\n tvCountryNameTitle = (TextView) view.findViewById(R.id.tvCountryNameTitle);\n tvCountryCodeTitle = (TextView) view.findViewById(R.id.tvCountryCodeTitle);\n tvLocationNameTitle = (TextView) view.findViewById(R.id.tvLocationNameTitle);\n tvTemperatureTitle = (TextView) view.findViewById(R.id.tvTemperatureTitle);\n tvWindDirectionTitle = (TextView) view.findViewById(R.id.tvWindDirectionTitle);\n tvCloudsTitle = (TextView) view.findViewById(R.id.tvCloudsTitle);\n tvHumidityTitle = (TextView) view.findViewById(R.id.tvHumidityTitle);\n tvWindSpeedTitle = (TextView) view.findViewById(R.id.tvWindSpeedTitle);\n\n //set custom fonts\n AssetManager assetManager = getActivity().getAssets();\n Typeface customFont = Typeface.createFromAsset(assetManager, Config.CUSTOM_FONT_PATH);\n tvCountryName.setTypeface(customFont);\n tvCountryCode.setTypeface(customFont);\n tvLocationName.setTypeface(customFont);\n tvTemperature.setTypeface(customFont);\n tvWindDirection.setTypeface(customFont);\n tvClouds.setTypeface(customFont);\n tvHumidity.setTypeface(customFont);\n tvWindSpeed.setTypeface(customFont);\n tvCountryNameTitle.setTypeface(customFont);\n tvCountryCodeTitle.setTypeface(customFont);\n tvLocationNameTitle.setTypeface(customFont);\n tvTemperatureTitle.setTypeface(customFont);\n tvWindDirectionTitle.setTypeface(customFont);\n tvCloudsTitle.setTypeface(customFont);\n tvHumidityTitle.setTypeface(customFont);\n tvWindSpeedTitle.setTypeface(customFont);\n\n return view;\n\n }", "title": "" }, { "docid": "17ac24a72c7d419fa5c7da0f02cec6aa", "score": "0.55635285", "text": "double getTemperature();", "title": "" }, { "docid": "17ac24a72c7d419fa5c7da0f02cec6aa", "score": "0.55635285", "text": "double getTemperature();", "title": "" }, { "docid": "0c3c01537e40dbc1b20145edf4645b01", "score": "0.55578345", "text": "float getTemperature();", "title": "" }, { "docid": "8d4db1997e051f40890314efd0550649", "score": "0.55565125", "text": "@Override\n public void run() {\n Log.d(\"Lifecycle -> method \",\" Set temp \");\n SharedPreferences sharedPreferences = itemView.getContext().getSharedPreferences(\"MasterSave\", MODE_PRIVATE);\n temp = sharedPreferences.getFloat(\"temp\",0f);\n pressure = sharedPreferences.getFloat(\"pressure\",0f);\n humidity = sharedPreferences.getFloat(\"humidity\",0f);\n tempFahrenheit = sharedPreferences.getBoolean(\"tempFahrenheit\",tempFahrenheit);\n //int stringtemp = Math.round(temp);\n Float s;\n\n if (!tempFahrenheit){\n tempCard.setText(Math.round(temp)+ \"°C \");\n }\n if (tempFahrenheit){\n\n s = temp*1.8f+32f;\n\n tempCard.setText(Math.round(s)+ \"°F \");\n }\n pressureCard.setText(pressure+ \" hPa\");\n humidityCard.setText(humidity+ \" %\");\n\n\n }", "title": "" }, { "docid": "b66484e14af794276bd3c066ba4592b6", "score": "0.553855", "text": "public void update() {\n\t\t/* Your Task */\n\t\tthis.currentPressure = ws.pressure.get(ws.pressure.size() - 1);\n\t\tif (ws.pressure.size() > 1) {\n\t\t\tthis.previousPressure = ws.pressure.get(ws.pressure.size() - 2);\n\t\t} else {\n\t\t\tthis.previousPressure = this.currentPressure;\n\t\t}\n\t}", "title": "" }, { "docid": "5eb2f999a66bc6f7e83216b3a6d1dddd", "score": "0.5533198", "text": "@Override\n public void update() {\n System.out.println(\"Updated fahrenheit observer. Temprature is:\" + (observable.getState() * 1.8 + 32) );\n }", "title": "" }, { "docid": "c6e13348039f7c1a65ea5e9547b0820e", "score": "0.552707", "text": "@Override\n\tpublic int updateInfantTemp(int idx, float weight, float height) {\n\t\treturn infantRepository.updateInfantTemp(idx, weight, height);\n\t}", "title": "" }, { "docid": "58f923260098c98d2807838e3a6a453d", "score": "0.55270123", "text": "private static String mostrarTemperatura(Update update) {\n\n//\t\tChama API para buscar a temperatura atual de acordo com as coordenadas\n\n\t\tWebTarget target = client.target(\"https://api.openweathermap.org/data/2.5/onecall\")\n\t\t\t\t.queryParam(\"lat\", update.message().location().latitude())\n\t\t\t\t.queryParam(\"lon\", update.message().location().longitude()).queryParam(\"units\", \"metric\")\n\t\t\t\t.queryParam(\"exclude\", \"hourly,daily\").queryParam(\"appid\", \"fa74962721a7d31feb9acf98ff23d2b6\");\n\n\t\tString responseString = target.request(MediaType.APPLICATION_JSON).get(String.class);\n\n//\t\tVerifica retorno da chamada da API\n\t\tif (responseString != null) {\n\t\t\tJsonParser parser = new JsonParser();\n\t\t\tJsonObject json = (JsonObject) parser.parse(responseString);\n\n\t\t\tString localizacao = selecionaLocalizacao(json);\n\n\t\t\tString temperatura = json.getAsJsonObject(\"current\").get(\"temp\").toString();\n\n\t\t\treturn \"Temperatura em \" + localizacao + \" de \" + temperatura + \"°C\";\n\t\t} else {\n\n\t\t\treturn \"Não foi possivel determinar a temperatura\";\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "54db635596ce03323f6282c5765d98e3", "score": "0.5520277", "text": "public void calculateTemps() {\n\t\tArrayList<Double> annualLowTemps = new ArrayList<Double>();\n\t\tArrayList<Double> annualHighTemps = new ArrayList<Double>();\n\t\tArrayList<Double> winterLowTemps = new ArrayList<Double>();\n\t\tArrayList<Double> winterHighTemps = new ArrayList<Double>();\n\t\tArrayList<Double> springLowTemps = new ArrayList<Double>();\n\t\tArrayList<Double> springHighTemps = new ArrayList<Double>();\n\t\tArrayList<Double> summerLowTemps = new ArrayList<Double>();\n\t\tArrayList<Double> summerHighTemps = new ArrayList<Double>();\n\t\tArrayList<Double> fallLowTemps = new ArrayList<Double>();\n\t\tArrayList<Double> fallHighTemps = new ArrayList<Double>();\n\n\t\tif (!weatherInfo.isEmpty()) {\n\t\t\tfor (int u = 0; u < weatherInfo.size(); u++) {\n\t\t\t\tDouble lowTemp = 0.0;\n\t\t\t\tDouble highTemp = 0.0;\n\t\t\t\tString lowTempStr = weatherInfo.get(u).lowTemp.toString();\n\t\t\t\tString highTempStr = weatherInfo.get(u).highTemp.toString();\n\t\t\t\ttry {\n\t\t\t\t\tlowTemp = Double.parseDouble(lowTempStr);\n\t\t\t\t\thighTemp = Double.parseDouble(highTempStr);\n\t\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t\tSystem.out.println(\"Could not parse \" + nfe);\n\t\t\t\t} \n\t\t\t\tannualLowTemps.add(lowTemp);\n\t\t\t\tannualHighTemps.add(highTemp);\n\t\t\t\tif (weatherInfo.get(u).month.toString().matches(\"12\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"01\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"02\")) {\n\t\t\t\t\twinterLowTemps.add(lowTemp);\n\t\t\t\t\twinterHighTemps.add(highTemp);\n\t\t\t\t}\n\t\t\t\tif (weatherInfo.get(u).month.toString().matches(\"03\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"04\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"05\")) {\n\t\t\t\t\tspringLowTemps.add(lowTemp);\n\t\t\t\t\tspringHighTemps.add(highTemp);\n\t\t\t\t}\n\t\t\t\tif (weatherInfo.get(u).month.toString().matches(\"06\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"07\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"08\")) {\n\t\t\t\t\tsummerLowTemps.add(lowTemp);\n\t\t\t\t\tsummerHighTemps.add(highTemp);\n\t\t\t\t}\n\t\t\t\tif (weatherInfo.get(u).month.toString().matches(\"09\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"10\") || \n\t\t\t\t\t\tweatherInfo.get(u).month.toString().matches(\"11\")) {\n\t\t\t\t\tfallLowTemps.add(lowTemp);\n\t\t\t\t\tfallHighTemps.add(highTemp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int t = 0; t < annualLowTemps.size(); t++) {\n\t\t\t\tannualLowAverage = annualLowAverage + annualLowTemps.get(t);\n\t\t\t\tannualHighAverage = annualHighAverage + annualHighTemps.get(t);\n\t\t\t}\n\n\t\t\tfor (int q = 0; q < winterLowTemps.size(); q++) {\n\t\t\t\twinterLowAverage = winterLowAverage + winterLowTemps.get(q);\n\t\t\t\twinterHighAverage = winterHighAverage + winterHighTemps.get(q);\n\t\t\t}\n\n\t\t\tfor (int w = 0; w < springLowTemps.size(); w++) {\n\t\t\t\tspringLowAverage = springLowAverage + springLowTemps.get(w);\n\t\t\t\tspringHighAverage = springHighAverage + springHighTemps.get(w);\n\t\t\t}\n\n\t\t\tfor (int e = 0; e < summerLowTemps.size(); e++) {\n\t\t\t\tsummerLowAverage = summerLowAverage + summerLowTemps.get(e);\n\t\t\t\tsummerHighAverage = summerHighAverage + summerHighTemps.get(e);\n\t\t\t}\n\n\t\t\tfor (int r = 0; r < fallLowTemps.size(); r++) {\n\t\t\t\tfallLowAverage = fallLowAverage + fallLowTemps.get(r);\n\t\t\t\tfallHighAverage = fallHighAverage + fallHighTemps.get(r);\n\t\t\t}\n\t\t\tLog.i(tag, annualLowTemps.toString());\n\t\t\tLog.i(tag, annualHighTemps.toString());\n\t\t\tLog.i(tag, winterLowTemps.toString());\n\t\t\tLog.i(tag, winterHighTemps.toString());\n\t\t\tLog.i(tag, springLowTemps.toString());\n\t\t\tLog.i(tag, springHighTemps.toString());\n\t\t\tLog.i(tag, summerLowTemps.toString());\n\t\t\tLog.i(tag, summerHighTemps.toString());\n\t\t\tLog.i(tag, fallLowTemps.toString());\n\t\t\tLog.i(tag, fallHighTemps.toString());\n\t\t\tannualLowAverage = annualLowAverage / annualLowTemps.size();\n\t\t\tannualHighAverage = annualHighAverage / annualHighTemps.size();\n\t\t\twinterLowAverage = winterLowAverage / winterLowTemps.size();\n\t\t\twinterHighAverage = winterHighAverage / winterHighTemps.size();\n\t\t\tspringLowAverage = springLowAverage / springLowTemps.size();\n\t\t\tspringHighAverage = springHighAverage / springHighTemps.size();\n\t\t\tsummerLowAverage = summerLowAverage / summerLowTemps.size();\n\t\t\tsummerHighAverage = summerHighAverage / summerHighTemps.size();\n\t\t\tfallLowAverage = fallLowAverage / fallLowTemps.size();\n\t\t\tfallHighAverage = fallHighAverage / fallHighTemps.size();\n\t\t}\n\t}", "title": "" }, { "docid": "0adde664286a3f1502e925726134b6f0", "score": "0.55163956", "text": "public TemperatureController(TemperatureModel model, TemperatureView view) {\n\t\tthis.tempModel \t= model;\n\t\tthis.tempView \t= view;\n\t\n\t\ttry {\n\t\t\tthis.tempView.updateDesiredTemp(new DesiredRangeUpdater());\n\t\t\tthis.tempView.updateRefreshRateTemp(new TempRefreshRateUpdater());\n\t\t\tthis.tempView.updateHeatingRate(new HeatingRateUpdater());\n\t\t\tthis.tempView.updateCoolingRate(new CoolingRateUpdater());\n\t\t} catch (Exception e) {\n\t\t\tthis.tempView.displayError(\"Error: \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "a0410f0ba5602de9f4f4fe50d23b31ff", "score": "0.5504393", "text": "private void updateWeeklyForecast () {\n String[] projection = {\n MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_JSON_CONTENT,\n MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_EXPIRATION_DATE\n };\n String selection = MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_DATA_TYPE + \" LIKE ?\";\n String[] selectionArgs = { String.valueOf(Constant.DB_KEY_WEEKLY_WEATHER) };\n\n Cursor cursor = mContentResolver.query(MusicTrackMetaData.MusicTrackCommonDataDB.CONTENT_URI, projection, selection, selectionArgs, null);\n cursor.moveToFirst();\n String JSONContent = cursor.getString(cursor.getColumnIndex(MusicTrackMetaData.MusicTrackCommonDataDB.COLUMN_NAME_JSON_CONTENT));\n updateWeeklyForecastUI(JSONContent);\n\n Log.d(\"daz\", \"ui got the weather json:\" + JSONContent);\n }", "title": "" }, { "docid": "5b076220a1a5d1f14be510d446ebb4bb", "score": "0.54981995", "text": "@Override\n public void onThresholdUnitAndFormatChanged(int unitTemperature, @NonNull String formatTime, @NonNull String formatDate) {\n\n if (recyclerViewThresholds.getLayoutManager() instanceof LinearLayoutManager) {\n final LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerViewThresholds.getLayoutManager();\n if (thresholdAdapter.getItemCount() > 0 && linearLayoutManager.findFirstVisibleItemPosition() != -1) {\n textViewDay.setText(thresholdAdapter.getItemDay(linearLayoutManager.findFirstVisibleItemPosition()));\n }\n }\n }", "title": "" }, { "docid": "4b8819aa4ae306798add802385cacb50", "score": "0.54967827", "text": "@Override\n\tpublic void update(Observable clock, Object value) {\n\n\t\tif (ConfigProperties.instance().getRoomTemperature() != -999) {\n\n\t\t\tFreezerDisplay.instance()\n\t\t\t\t\t.displayFreezerTemperature(this.getFreezerTemperature());\n\n\t\t\tif (FreezerContext.instance().getCurrentState()\n\t\t\t\t\t.equals(FreezerDoorOpenState.instance())) {\n\t\t\t\tif (this.getFreezerTemperature() < ConfigProperties.instance()\n\t\t\t\t\t\t.getRoomTemperature()) {\n\t\t\t\t\tthis.setFreezerTemperature(\n\t\t\t\t\t\t\tthis.getFreezerTemperature() + (1 / ConfigProperties\n\t\t\t\t\t\t\t\t\t.instance().getFreezerRateLossDoorOpen()));\n\t\t\t\t\tFreezerDisplay.instance().displayFreezerTemperature(\n\t\t\t\t\t\t\tthis.getFreezerTemperature());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (FreezerContext.instance().getCurrentState()\n\t\t\t\t\t.equals(FreezerDoorClosedState.instance())) {\n\t\t\t\tif (this.getFreezerTemperature() < ConfigProperties.instance()\n\t\t\t\t\t\t.getRoomTemperature()) {\n\t\t\t\t\tthis.setFreezerTemperature(this.getFreezerTemperature()\n\t\t\t\t\t\t\t+ (1.0 / ConfigProperties.instance()\n\t\t\t\t\t\t\t\t\t.getFreezerRateLossDoorClosed()));\n\t\t\t\t\tFreezerDisplay.instance().displayFreezerTemperature(\n\t\t\t\t\t\t\tthis.getFreezerTemperature());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (FreezerContext.instance().getCurrentState()\n\t\t\t\t\t.equals(FreezerCoolingState.instance())) {\n\t\t\t\tthis.setFreezerTemperature(this.getFreezerTemperature() - (1.0\n\t\t\t\t\t\t/ ConfigProperties.instance().getFreezerCoolRate()));\n\t\t\t\tFreezerDisplay.instance().displayFreezerTemperature(\n\t\t\t\t\t\tthis.getFreezerTemperature());\n\n\t\t\t\tif (this.getFreezerTemperature() <= ConfigProperties.instance()\n\t\t\t\t\t\t.getFreezerDesiredTemperature()) {\n\t\t\t\t\tFreezerContext.instance().changeCurrentState(\n\t\t\t\t\t\t\tFreezerDoorClosedState.instance());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.getFreezerTemperature() >= (ConfigProperties.instance()\n\t\t\t\t\t.getFreezerDesiredTemperature()\n\t\t\t\t\t+ ConfigProperties.instance()\n\t\t\t\t\t\t\t.getFreezerCompressorStartDiff())) {\n\t\t\t\tif (FreezerContext.instance().getCurrentState()\n\t\t\t\t\t\t.equals(FreezerDoorClosedState.instance())) {\n\t\t\t\t\tFreezerContext.instance()\n\t\t\t\t\t\t\t.changeCurrentState(FreezerCoolingState.instance());\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7f0ad45a9d040411a21accebeb9e14c7", "score": "0.5480881", "text": "public void event() {\r\n\t\t// Adjust the room temperature\r\n\t\ttemperature = temperature + deltaTemp;\r\n\t}", "title": "" }, { "docid": "4693001f57c2e57f21cb8cbd8712d403", "score": "0.54655653", "text": "int getTemperature();", "title": "" }, { "docid": "4693001f57c2e57f21cb8cbd8712d403", "score": "0.54655653", "text": "int getTemperature();", "title": "" }, { "docid": "4693001f57c2e57f21cb8cbd8712d403", "score": "0.54655653", "text": "int getTemperature();", "title": "" }, { "docid": "501fea92850753a94c62fed48d338cfb", "score": "0.5457994", "text": "public void setHumidity(double humidity) {\n this.humidity = humidity;\n }", "title": "" }, { "docid": "501fea92850753a94c62fed48d338cfb", "score": "0.5457994", "text": "public void setHumidity(double humidity) {\n this.humidity = humidity;\n }", "title": "" }, { "docid": "d625595b97ee4478392b89e1a38988a1", "score": "0.54520756", "text": "public Builder setTemperature(int value) {\n bitField0_ |= 0x00000002;\n temperature_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7c7d82576c014778cf94370ec845b935", "score": "0.54497105", "text": "private void updateUI()\n {\n TextView tv = (TextView) findViewById(R.id.distance_label);\n if (tv != null)\n {\n String result = String.format(\"%3.2f km\", distance / 1000.0f);\n tv.setText(result);\n }\n\n tv = (TextView) findViewById(R.id.instant_speed_label);\n if (tv != null)\n {\n String result = String.format(\"%3.2f km/h\", inst_speed * 3.6f);\n tv.setText(result);\n }\n\n tv = (TextView) findViewById(R.id.coordinateN);\n if (tv != null)\n {\n String msg = Location.convert(latitude, Location.FORMAT_DEGREES) + \" North\";\n tv.setText(msg);\n }\n\n tv = (TextView) findViewById(R.id.coordinateE);\n if (tv != null)\n {\n String msg = Location.convert(longitude, Location.FORMAT_DEGREES) + \" East\";\n tv.setText(msg);\n }\n\n tv = (TextView) findViewById(R.id.satellite);\n if (tv != null)\n {\n String satDiag = \"\";\n if (satelliteNumber <= 2)\n {\n tv.setTextColor(0xFFFF0000);\n satDiag = getString(R.string.gps_no_signal);\n }\n if ((satelliteNumber >= 3) && (satelliteNumber < 5))\n {\n tv.setTextColor(0xFFFFA500);\n satDiag = getString(R.string.gps_low_signal);\n }\n if ((satelliteNumber >= 5) && (satelliteNumber < 7))\n {\n tv.setTextColor(0xFFFFFF00);\n satDiag = getString(R.string.gps_aver_signal);\n }\n if ((satelliteNumber >= 7) && (satelliteNumber < 9))\n {\n tv.setTextColor(0xFF00FF00);\n satDiag = getString(R.string.gps_good_signal);\n }\n if (satelliteNumber >= 9)\n {\n tv.setTextColor(0xFF00FF00);\n satDiag = getString(R.string.gps_excel_signal);\n }\n\n String msg = String.format(\"%s (%d sat.)\", satDiag, satelliteNumber);\n tv.setText(msg);\n }\n\n tv = (TextView) findViewById(R.id.elevation_label);\n if (tv != null)\n {\n String msg = String.format(\"+%3.0fm / %3.0fm\", ascent, descent);\n tv.setText(msg);\n }\n\n tv = (TextView) findViewById(R.id.average_speed_label);\n if (tv != null)\n {\n String msg = String.format(\"%3.2f km/h av.\", average_speed * 3.6f);\n tv.setText(msg);\n }\n }", "title": "" }, { "docid": "8aab5e8bcb60ea7cefb6ebefaa1184bd", "score": "0.5442688", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View itemView = inflater.inflate(R.layout.fragment_current_weather, container, false);\n imageView = itemView.findViewById(R.id.image);\n temparature = itemView.findViewById(R.id.temparature);\n date = itemView.findViewById(R.id.date);\n day = itemView.findViewById(R.id.day);\n city = itemView.findViewById(R.id.city);\n min = itemView.findViewById(R.id.min);\n max = itemView.findViewById(R.id.max);\n sunrise = itemView.findViewById(R.id.sunrise);\n sunset = itemView.findViewById(R.id.sunset);\n humidity = itemView.findViewById(R.id.humidity);\n pressure = itemView.findViewById(R.id.pressure);\n main = itemView.findViewById(R.id.main);\n\n //weatherService = RetrofitClient.getRetrofit().create(WeatherService.class);\n SharedPreferences preferences = getContext().getSharedPreferences(\"PREFS\", Context.MODE_PRIVATE);\n units = preferences.getString(\"units\", \"metric\");\n selectUnit = preferences.getString(\"selectUnit\", \"°С\");\n\n Log.d(TAG, \"onCreateView: \" + units + selectUnit + Common.current_location.toString());\n getWeatherInformation();\n return itemView;\n }", "title": "" }, { "docid": "41b1dcc1c1336bd40784ec15f1cf147f", "score": "0.54364806", "text": "public static Temperature updateEntity(Temperature temperature,TemperatureInfo temperatureInfo) \n\t{\n\t\ttemperature.setMin(temperatureInfo.min);\n\t\ttemperature.setMax(temperatureInfo.max);\n\t\ttemperature.setMoy(temperatureInfo.moy);\n\t\ttemperature.setDate(temperatureInfo.date);\n\n\t\treturn temperature;\n\t}", "title": "" }, { "docid": "f951dcefafe829db7334008757c77cb9", "score": "0.5430686", "text": "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tif(o instanceof WeatherData) {\n\t\t\tthis.temp=((WeatherData) o).getTemp();\n\t\t\tthis.humidity=((WeatherData) o).getHumidity();\n\t\t\tdisplay();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f951dcefafe829db7334008757c77cb9", "score": "0.5430686", "text": "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tif(o instanceof WeatherData) {\n\t\t\tthis.temp=((WeatherData) o).getTemp();\n\t\t\tthis.humidity=((WeatherData) o).getHumidity();\n\t\t\tdisplay();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0605af597d41af38b801d4fd548e855e", "score": "0.54269475", "text": "@Listen(\"onTimer = #timer\")\n\tpublic void updateData() {\n\t\tsetPatientId(textboxId.getValue());\n\t\tString dataStr = getEwsValueById(getPatientId());\n\t\tewsLabel.setValue(dataStr);\n\n\t\thightLightLabel(dataStr);\n\t}", "title": "" }, { "docid": "6ed1bd6af9c93f6f228b11ee938ec017", "score": "0.54237485", "text": "public void setCelsiusTemperature(Float temperature) {\n if (temperature != null) {\n mTempValue.setVisibility(VISIBLE);\n int shownTemp = Math.round(temperature);\n mTempValue.setText(MessageFormat.format(\"{0}°C\", shownTemp));\n } else {\n mTempValue.setVisibility(GONE);\n }\n }", "title": "" }, { "docid": "ffdf783ed9aa9a9ff1576f01abb46091", "score": "0.54100686", "text": "private void updateFlightData()\n {\n mFlightController.setStateCallback(new FlightControllerState.Callback() {\n @Override\n public void onUpdate(@NonNull FlightControllerState flightControllerState) {\n droneLocationLatitude = flightControllerState.getAircraftLocation().getLatitude();\n droneLocationLongitude = flightControllerState.getAircraftLocation().getLongitude();\n droneLocationAltitude = flightControllerState.getAircraftLocation().getAltitude();\n droneDistanceToHome = MathUtil.CoordinateToDistanceConverter(flightControllerState.getHomeLocation().getLatitude(),\n flightControllerState.getHomeLocation().getLongitude(), flightControllerState.getAircraftLocation().getLatitude(),\n flightControllerState.getAircraftLocation().getLongitude());\n\n\n\n //showToast(\"Distance = \" + droneDistanceToHome + \" vs\" + secondValue);\n droneVerticalSpeed = (int) (flightControllerState.getVelocityZ() * 10) == 0 ? 0.0000f : (-1.0) * flightControllerState.getVelocityZ();\n droneHorizontalSpeed = MathUtil.computeScalarVelocity(flightControllerState.getVelocityX(), flightControllerState.getVelocityY());\n updateDroneLocation();\n\n\n }\n });\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n homeDistanceTextView.setText(String.valueOf(droneDistanceToHome));\n horizontalspeedtextView.setText(String.valueOf(droneHorizontalSpeed));\n verticalspeedtextView.setText(String.valueOf(droneVerticalSpeed));\n latitudeTextView.setText(String.format(\"%.6f\",droneLocationLatitude));\n longitudeTextView.setText(String.format(\"%.6f\",droneLocationLongitude));\n }\n });\n\n\n\n\n }", "title": "" }, { "docid": "47bd8616f8fb389e3b48505c20e4a976", "score": "0.5407794", "text": "public void stateChanged(ChangeEvent e) throws NumberFormatException {\t\t\t\n\t\t\ttempModel.setTemperatureRange(tempView.desiredTempUpper(), tempView.desiredTempLower());\t\t\t\t\n\t\t}", "title": "" }, { "docid": "98f2b009deadc6e37ff1af07a870c50f", "score": "0.54048294", "text": "public void set(double temp)\n {\n temperature = Math.round(temp*10)/10.0;\n }", "title": "" }, { "docid": "dfc33db161533760d827a4a24f3d5486", "score": "0.53822446", "text": "public void setTemperature(double x) {\n temp = x;\n }", "title": "" }, { "docid": "1e40ddd5e0e52c044c814ea47d79a54e", "score": "0.53785604", "text": "private void setWeather(JSONObject response, int i) throws JSONException {\n JSONObject jsonObject = response.getJSONObject(\"data\");\n JSONArray array = jsonObject.getJSONArray(\"weather\");\n\n JSONObject root = array.getJSONObject(i);\n JSONArray mother = root.getJSONArray(\"hourly\");\n JSONObject child = mother.getJSONObject(0);\n String node = child.getString(\"tempC\");\n txt_w1.setText(\"00:00 \" + node + \" °C\");\n\n JSONObject child2 = mother.getJSONObject(1);\n String node2 = child2.getString(\"tempC\");\n txt_w2.setText(\"03:00 \" + node2 + \" °C\");\n\n JSONObject child3 = mother.getJSONObject(2);\n String node3 = child3.getString(\"tempC\");\n txt_w3.setText(\"06:00 \" + node3 + \" °C\");\n\n JSONObject child4 = mother.getJSONObject(3);\n String node4 = child4.getString(\"tempC\");\n txt_w4.setText(\"09:00 \" + node4 + \" °C\");\n\n JSONObject child5 = mother.getJSONObject(4);\n String node5 = child5.getString(\"tempC\");\n txt_w5.setText(\"12:00 \" + node5 + \" °C\");\n\n JSONObject child6 = mother.getJSONObject(5);\n String node6 = child6.getString(\"tempC\");\n txt_w6.setText(\"15:00 \" + node6 + \" °C\");\n\n JSONObject child7 = mother.getJSONObject(6);\n String node7 = child7.getString(\"tempC\");\n txt_w7.setText(\"18:00 \" + node7 + \" °C\");\n\n JSONObject child8 = mother.getJSONObject(6);\n String node8 = child8.getString(\"tempC\");\n txt_w8.setText(\"21:00 \" + node8 + \" °C\");\n\n }", "title": "" }, { "docid": "188a652dba0e8c76968c6b4a702b18b9", "score": "0.5372215", "text": "public int getTemperature() {\n return temperature_;\n }", "title": "" }, { "docid": "613cfb321e5568716180bc49000d9214", "score": "0.5368325", "text": "public void setActualTemperature(double C)\n {\n this.temperature = TireState.IsValidTemperature(C)? C : INVALID_TEMPERATURE;\n }", "title": "" }, { "docid": "8cbdf4945b38201dba1c0702fdbc8443", "score": "0.5366357", "text": "public void changeTempo(int dt) {\n\t\tsetTempo( tempo() + dt );\n\t}", "title": "" }, { "docid": "b1835ae3d661fcc17d215ea5eb6c08b6", "score": "0.5362333", "text": "private void setData() {\n DecimalFormat numberFormat = new DecimalFormat(\"#.00\");\n String tempFormat = (numberFormat.format(weatherModel.getTemp()));\n String url =\"https://www.countryflags.io/\" + weatherModel.getCountry() + \"/flat/64.png\";\n city.setText(weatherModel.getCity());\n temp.setText(String.format(\"%s %sC\",getString(R.string.Temp), tempFormat));\n weather.setText(String.format(\"%s: %s\", getString(R.string.Weather), weatherModel.getWeather()));\n humidity.setText(String.format(\"%s: %s%%\", getString(R.string.hum),weatherModel.getHumidity()));\n Glide.with(iV.getContext()).load(url).into(iV);\n notes.setText(weatherModel.getNote());\n ratings.setText(String.format(\"%s %s\",getString(R.string.User), weatherModel.getRating()));\n }", "title": "" }, { "docid": "17ac799e31805b9cf6f28cfc2331dd97", "score": "0.5361953", "text": "@Override\n public Double getTemperature() {\n return parser.apply(requestMaker.sendGetRequest(ApiUrlBuilder.getWeatherApiEndpoint()).body());\n }", "title": "" }, { "docid": "3033a9c2aa134c6267629c356b3d412f", "score": "0.53531855", "text": "private void updateSky() {\n\t\tif (enableDayNightSystem) {\n\t\t\tTime now = new Time();\n\t\t\tnow.setToNow();\n\t\t\tif ((now.hour > 18 || now.hour < 6) && !insideBuilding) {\n\t\t\t\tdayTime = false;\n\t\t\t\tnight.show(); //6PM to 6AM (Night)\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdayTime = true;\n\t\t\t\tnight.hide(); //6AM to 6PM (Day)\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdayTime = true;\n\t\t\tnight.hide();\n\t\t}\n\t}", "title": "" }, { "docid": "2a9d4b70e94f9e2fdf69f2f477b5e81b", "score": "0.53504777", "text": "public double getTemperature(){\n return temperature;\n }", "title": "" }, { "docid": "23ad192072d8ea0a339f6aa371b9f668", "score": "0.5350238", "text": "@Override \n\t\t public void onClick(View v) {\n\t\t Log.i(\"TEST\", \"Should post to server\"); \n\t\t int integer_part=hours.getCurrentItem()+T_START;\n\t\t int float_part=mins.getCurrentItem();\n\t\t String t = integer_part+\".\"+float_part;\n\t\t Log.e(\"temperature\",t);\n\t\t \n\t\t int elder_id = Integer.parseInt(TempratureMeasureActivity.this.elderID);\n\t\t int doctor_id = Integer.parseInt(TempratureMeasureActivity.this.doctorID);\n\t\t \n\t\t boolean submit = dbUtil.UpdateInspection(elder_id, doctor_id, \"temperature\", t);\n\t\t Log.d(\"idoc-submit\",submit?\"true\":\"false\");\n\t\t if(submit){\n\t\t \tToast.makeText(TempratureMeasureActivity.this, \"提交成功\", 3000).show();\n\t\t }\n\t\t else{\n\t\t \tToast.makeText(TempratureMeasureActivity.this,\"网络传输出错,请再次提交\",3000).show();\n\t\t }\n\t\t }", "title": "" }, { "docid": "b4a3c4711c31ed19d52a8da10d646170", "score": "0.53469265", "text": "@Override\n public void onClick(View v) {\n Toast.makeText(getApplicationContext(), \"Updating Data...\", Toast.LENGTH_SHORT)\n .show();\n\n //Attempt to retrieve data from the firebase servers\n try {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference database_reference = database.getReference();\n database_reference.child(\"orientation sensor\").addValueEventListener(new ValueEventListener() {\n\n //Method is invoked in the event that the database values change\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String dd_1 = dataSnapshot.child(\"data\").child(\"Accelerometer Calibration\").getValue(String.class);\n String dd_2 = dataSnapshot.child(\"data\").child(\"Gyroscope Calibration\").getValue(String.class);\n String dd_3 = dataSnapshot.child(\"data\").child(\"Heading\").getValue(String.class);\n String dd_4 = dataSnapshot.child(\"data\").child(\"Magnetometer Calibration\").getValue(String.class);\n String dd_5 = dataSnapshot.child(\"data\").child(\"Pitch\").getValue(String.class);\n String dd_6 = dataSnapshot.child(\"data\").child(\"Roll\").getValue(String.class);\n String dd_7 = dataSnapshot.child(\"data\").child(\"System Calibration\").getValue(String.class);\n String last_update = dataSnapshot.child(\"data\").child(\"last_update\").getValue(String.class);\n\n //Now to change TextViews\n datetime_obj.setText(last_update);\n data_obj_1.setText(dd_1);\n data_obj_2.setText(dd_2);\n data_obj_3.setText(dd_3);\n data_obj_4.setText(dd_4);\n data_obj_5.setText(dd_5);\n data_obj_6.setText(dd_6);\n data_obj_7.setText(dd_7);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error when connecting to Firebase\", Toast.LENGTH_LONG);\n }\n\n }", "title": "" }, { "docid": "1993325c31ed6ed32199ca3632afc92c", "score": "0.53451663", "text": "private void updateDateAndTime() {\n updateDate();\n updateTime();\n }", "title": "" }, { "docid": "30ce46eea2b70ec441ed01612280d91d", "score": "0.5333739", "text": "@Override\n protected void onPostExecute(String temperature) {\n String wendu = \"\",ganmao = \"\";\n JSONObject tem = JSONObject.fromObject(temperature);\n JSONObject data = tem.getJSONObject(\"data\");\n wendu = data.getString(\"wendu\") + \"\\n\";\n ganmao = data.getString(\"ganmao\") + \"\\n\";\n\n //read the next five days of the weather\n\n JSONArray forecast = data.getJSONArray(\"forecast\");\n\n //high += Weather.getString(\"high\") + \"\\n\";\n //low += Weather.getString(\"low\") + \"\\n\";\n //date += Weather.getString(\"date\") + \"\\n\";\n //fengxiang += Weather.getString(\"fengxiang\") + \"\\n\";\n //fengli += Weather.getString(\"fengli\") + \"\\n\";\n //type += Weather.getString(\"type\") + \"\\n\";\n String high[]=new String[5],low[]=new String[5],date[]=new String[5],fengxiang[]=new String[5],fengli[]=new String[5],type[]=new String[5];\n for (int i=0;i<5;i++)\n {\n JSONObject Weather = forecast.getJSONObject(i);\n high[i] = Weather.getString(\"high\") + \"\\n\";\n low[i] = Weather.getString(\"low\") + \"\\n\";\n date[i] = Weather.getString(\"date\") + \"\\n\";\n fengxiang[i] = Weather.getString(\"fengxiang\") + \"\\n\";\n fengli[i] = Weather.getString(\"fengli\") + \"\\n\";\n type[i] = Weather.getString(\"type\");\n }\n\n\n //change the image of the weather\n if (type[0].equals(\"阴\")==true) {\n ((ImageView) findViewById(R.id.img_weather_condition)).setImageResource(R.drawable.partly_sunny_small);\n } else if (type[0].equals(\"小雨\")==true) {\n ((ImageView) findViewById(R.id.img_weather_condition)).setImageResource(R.drawable.rainy_small);\n } else {\n ((ImageView) findViewById(R.id.img_weather_condition)).setImageResource(R.drawable.sunny_small);\n }\n\n if (type[1].equals(\"阴\")==true) {\n ((ImageView) findViewById(R.id.firstpic)).setImageResource(R.drawable.partly_sunny_small);\n } else if (type[1].equals (\"小雨\")==true) {\n ((ImageView) findViewById(R.id.firstpic)).setImageResource(R.drawable.rainy_small);\n } else {\n ((ImageView) findViewById(R.id.firstpic)).setImageResource(R.drawable.sunny_small);\n }\n\n if (type[2].equals(\"阴\")==true) {\n ((ImageView) findViewById(R.id.secondpic)).setImageResource(R.drawable.partly_sunny_small);\n } else if (type[2].equals (\"小雨\")==true) {\n ((ImageView) findViewById(R.id.secondpic)).setImageResource(R.drawable.rainy_small);\n } else {\n ((ImageView) findViewById(R.id.secondpic)).setImageResource(R.drawable.sunny_small);\n }\n\n if (type[3].equals(\"阴\")==true) {\n ((ImageView) findViewById(R.id.thirdpic)).setImageResource(R.drawable.partly_sunny_small);\n } else if (type[3].equals (\"小雨\")==true) {\n ((ImageView) findViewById(R.id.thirdpic)).setImageResource(R.drawable.rainy_small);\n } else {\n ((ImageView) findViewById(R.id.thirdpic)).setImageResource(R.drawable.sunny_small);\n }\n\n if (type[4].equals(\"阴\")==true) {\n ((ImageView) findViewById(R.id.fourthpic)).setImageResource(R.drawable.partly_sunny_small);\n } else if (type[4].equals (\"小雨\")==true) {\n ((ImageView) findViewById(R.id.fourthpic)).setImageResource(R.drawable.rainy_small);\n } else {\n ((ImageView) findViewById(R.id.fourthpic)).setImageResource(R.drawable.sunny_small);\n }\n\n\n //change the information about the next five days\n ((TextView) findViewById(R.id.temperature_of_the_day)).setText(wendu);\n ((TextView) findViewById(R.id.Today)).setText(date[0]);\n ((TextView) findViewById(R.id.tv_news)).setText(ganmao);\n ((TextView) findViewById(R.id.firstext)).setText(date[1]+high[1]+low[1]+fengxiang[1]+fengli[1]);\n ((TextView) findViewById(R.id.secondtext)).setText(date[2]+high[2]+low[2]+fengxiang[2]+fengli[2]);\n ((TextView) findViewById(R.id.thirdtext)).setText(date[3]+high[3]+low[3]+fengxiang[3]+fengli[3]);\n ((TextView) findViewById(R.id.fourthtext)).setText(date[4]+high[4]+low[4]+fengxiang[4]+fengli[4]);\n\n\n\n }", "title": "" } ]
3067923238e883e7790ad19653150e45
Dimension specifying users by their gender. .google.ads.googleads.v13.common.GenderDimension gender = 2;
[ { "docid": "fd86119200ba4682bcd3d01f0a34aff4", "score": "0.658129", "text": "@java.lang.Override\n public boolean hasGender() {\n return dimensionCase_ == 2;\n }", "title": "" } ]
[ { "docid": "cf63e9c8ccfe7992490ac472f67f4a28", "score": "0.77888227", "text": "@java.lang.Override\n public com.google.ads.googleads.v13.common.GenderDimension getGender() {\n if (dimensionCase_ == 2) {\n return (com.google.ads.googleads.v13.common.GenderDimension) dimension_;\n }\n return com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n }", "title": "" }, { "docid": "1445639643af919e2e0139e6fe8920cc", "score": "0.7727308", "text": "@java.lang.Override\n public com.google.ads.googleads.v13.common.GenderDimensionOrBuilder getGenderOrBuilder() {\n if (dimensionCase_ == 2) {\n return (com.google.ads.googleads.v13.common.GenderDimension) dimension_;\n }\n return com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n }", "title": "" }, { "docid": "645c2f84d4d6bce1211761491c758f98", "score": "0.7539587", "text": "@java.lang.Override\n public com.google.ads.googleads.v13.common.GenderDimension getGender() {\n if (genderBuilder_ == null) {\n if (dimensionCase_ == 2) {\n return (com.google.ads.googleads.v13.common.GenderDimension) dimension_;\n }\n return com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n } else {\n if (dimensionCase_ == 2) {\n return genderBuilder_.getMessage();\n }\n return com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "709306158acbcb43f8ab7c1173d252c6", "score": "0.744491", "text": "@java.lang.Override\n public com.google.ads.googleads.v13.common.GenderDimensionOrBuilder getGenderOrBuilder() {\n if ((dimensionCase_ == 2) && (genderBuilder_ != null)) {\n return genderBuilder_.getMessageOrBuilder();\n } else {\n if (dimensionCase_ == 2) {\n return (com.google.ads.googleads.v13.common.GenderDimension) dimension_;\n }\n return com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "f174972d17831f732d4c69767877a7b0", "score": "0.729876", "text": "public Builder setGender(com.google.ads.googleads.v13.common.GenderDimension value) {\n if (genderBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dimension_ = value;\n onChanged();\n } else {\n genderBuilder_.setMessage(value);\n }\n dimensionCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "65d4efbf72d27f8d62194b50bd0fb984", "score": "0.6849473", "text": "public void setGender(String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "7aace5b4b4016831ca9be282853af92b", "score": "0.68072057", "text": "public void setGender(String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "7aace5b4b4016831ca9be282853af92b", "score": "0.68072057", "text": "public void setGender(String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "7aace5b4b4016831ca9be282853af92b", "score": "0.68072057", "text": "public void setGender(String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "c45b948ca60f4104881b394ddaa50a80", "score": "0.6746637", "text": "public void setGender(Integer gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "5bf0c5b1c6ea705fc5a026d280b413df", "score": "0.66728246", "text": "@java.lang.Override\n public boolean hasGender() {\n return dimensionCase_ == 2;\n }", "title": "" }, { "docid": "09e153bd5599eece9b6a18e34b9f60f7", "score": "0.66607046", "text": "public Integer getGender() {\n return gender;\n }", "title": "" }, { "docid": "d73ceaf22eb9f86c4f174c5c56ec179a", "score": "0.664959", "text": "public void setGender(String gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "title": "" }, { "docid": "d73ceaf22eb9f86c4f174c5c56ec179a", "score": "0.664959", "text": "public void setGender(String gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "title": "" }, { "docid": "d73ceaf22eb9f86c4f174c5c56ec179a", "score": "0.664959", "text": "public void setGender(String gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "title": "" }, { "docid": "f146c0f58dc32f74721e948f16020199", "score": "0.6630972", "text": "public void setGender(Gender gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "5b5c7f44192b045b28e2b2e536b10c53", "score": "0.6592791", "text": "public void setGender(java.lang.String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "5b5c7f44192b045b28e2b2e536b10c53", "score": "0.6592791", "text": "public void setGender(java.lang.String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "434dedd71ac0eac9a8a58a3fecc2a7ee", "score": "0.65904164", "text": "public void setGender(String gender)\n\t{\n\t\tthis.gender = gender;\n\t}", "title": "" }, { "docid": "3dc17d081a210b0509bd26d28cb3a485", "score": "0.6589532", "text": "java.lang.String getGender();", "title": "" }, { "docid": "49f248f30e28d5c7613aedfcfee247e2", "score": "0.65840805", "text": "public com.google.ads.googleads.v13.common.GenderDimension.Builder getGenderBuilder() {\n return getGenderFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "ba548322eeb783fa76bf61500927d3ec", "score": "0.6570718", "text": "public void setGender(Gender gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "a5688e4f782a54570791544adb63a7f7", "score": "0.6567678", "text": "public void setGender(com.sforce.soap._2006._04.metadata.Gender gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "0cf38f23e427128913b6eb7e212322fe", "score": "0.6555254", "text": "public Gender getGender() {\n return gender;\n }", "title": "" }, { "docid": "6b50b6fbbea166eb4225c3d1d915a386", "score": "0.6552505", "text": "public void setGender(String gender) {\n\t\tthis.gender = gender;\n\t}", "title": "" }, { "docid": "6b50b6fbbea166eb4225c3d1d915a386", "score": "0.6552505", "text": "public void setGender(String gender) {\n\t\tthis.gender = gender;\n\t}", "title": "" }, { "docid": "6b50b6fbbea166eb4225c3d1d915a386", "score": "0.6552505", "text": "public void setGender(String gender) {\n\t\tthis.gender = gender;\n\t}", "title": "" }, { "docid": "61a100bd86e30b38af02e1b421261570", "score": "0.65392596", "text": "public void setGender(final String gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "2a6187520ce1ba2a7db9bff30d8cc442", "score": "0.6502775", "text": "public String getGender() { return gender; }", "title": "" }, { "docid": "4b710a607e243c8e8742f36927003b2a", "score": "0.64868504", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "fdb7eb3fd16d6f1781a7c4ce28cfb849", "score": "0.6474894", "text": "public com.sforce.soap._2006._04.metadata.Gender getGender() {\n return gender;\n }", "title": "" }, { "docid": "e12d5a930c5df042ca88e35a7bd6b197", "score": "0.64632225", "text": "public Builder mergeGender(com.google.ads.googleads.v13.common.GenderDimension value) {\n if (genderBuilder_ == null) {\n if (dimensionCase_ == 2 &&\n dimension_ != com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance()) {\n dimension_ = com.google.ads.googleads.v13.common.GenderDimension.newBuilder((com.google.ads.googleads.v13.common.GenderDimension) dimension_)\n .mergeFrom(value).buildPartial();\n } else {\n dimension_ = value;\n }\n onChanged();\n } else {\n if (dimensionCase_ == 2) {\n genderBuilder_.mergeFrom(value);\n } else {\n genderBuilder_.setMessage(value);\n }\n }\n dimensionCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "87e15bf0091200f135cf3962d059ac97", "score": "0.6424983", "text": "public Gender getGender() {\n return gender;\n }", "title": "" }, { "docid": "65e0e3401504db4394711664d1610bf3", "score": "0.63892317", "text": "public void setGender(Gender Gender) {\n this.Gender = Gender;\n }", "title": "" }, { "docid": "339aae21dc31c3b65c99c78e5c3f991e", "score": "0.6388122", "text": "public String getGender ()\r\n {\r\n return gender;\r\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "84bd8e04b9bed9c14a316d772237a7ce", "score": "0.63840985", "text": "public String getGender() {\n return gender;\n }", "title": "" }, { "docid": "a23c31fab28c119d3a12635a4930e5e5", "score": "0.63620347", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v13.common.GenderDimension, com.google.ads.googleads.v13.common.GenderDimension.Builder, com.google.ads.googleads.v13.common.GenderDimensionOrBuilder> \n getGenderFieldBuilder() {\n if (genderBuilder_ == null) {\n if (!(dimensionCase_ == 2)) {\n dimension_ = com.google.ads.googleads.v13.common.GenderDimension.getDefaultInstance();\n }\n genderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v13.common.GenderDimension, com.google.ads.googleads.v13.common.GenderDimension.Builder, com.google.ads.googleads.v13.common.GenderDimensionOrBuilder>(\n (com.google.ads.googleads.v13.common.GenderDimension) dimension_,\n getParentForChildren(),\n isClean());\n dimension_ = null;\n }\n dimensionCase_ = 2;\n onChanged();\n return genderBuilder_;\n }", "title": "" }, { "docid": "6ee42fe902087f037fc5a1cd78594b28", "score": "0.6335861", "text": "public GenderEnum getGender();", "title": "" }, { "docid": "dd6ff1f22cb82b4ed6abaeeade4f4221", "score": "0.6296372", "text": "public String getGender() {\n return this.gender;\n }", "title": "" }, { "docid": "7beadd0a69923191beb67cd7d83c5b33", "score": "0.62857616", "text": "public Gender getGender() {\n return Gender;\n }", "title": "" }, { "docid": "0d12b5ffe202856db88a9a8ee48086ca", "score": "0.627073", "text": "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "title": "" }, { "docid": "0d12b5ffe202856db88a9a8ee48086ca", "score": "0.627073", "text": "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "title": "" }, { "docid": "0d12b5ffe202856db88a9a8ee48086ca", "score": "0.627073", "text": "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "title": "" }, { "docid": "a647e2a31c9d96afb72d31535ee73a0f", "score": "0.6246881", "text": "public String getGender()\n {\n return gender;\n }", "title": "" }, { "docid": "3a412cfcfe7553f48dd46d10b492e547", "score": "0.6246827", "text": "public void setGender(Boolean gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "7d884081673245ec1d34f0580e121405", "score": "0.62165254", "text": "public UserBuilder gender(GenderTypeEnum gender) {\r\n user.setGender(gender);\r\n return this;\r\n }", "title": "" }, { "docid": "467eeb60fec7f1aa6771d37da71d74f3", "score": "0.6204682", "text": "com.google.protobuf.ByteString getGenderBytes();", "title": "" }, { "docid": "4851e361602f3e63c0f541ad22eb4008", "score": "0.6185775", "text": "public String getGender()\n\t{\n\t\treturn gender;\n\t}", "title": "" }, { "docid": "a17c064bcbe4d8c52fb83d8ed24bb9df", "score": "0.6155928", "text": "public void setGender(Byte gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "a17c064bcbe4d8c52fb83d8ed24bb9df", "score": "0.6155928", "text": "public void setGender(Byte gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "a17c064bcbe4d8c52fb83d8ed24bb9df", "score": "0.6155928", "text": "public void setGender(Byte gender) {\n this.gender = gender;\n }", "title": "" }, { "docid": "bea83363a03708e916619ee59ccebf2d", "score": "0.6149334", "text": "public void setGender(String gen) {\n this.gender = gen;\n }", "title": "" }, { "docid": "6cf50c863296fbe559449cf6e8faed3d", "score": "0.61490923", "text": "public String getGender() {\n\t\treturn gender;\n\t}", "title": "" }, { "docid": "6cf50c863296fbe559449cf6e8faed3d", "score": "0.61490923", "text": "public String getGender() {\n\t\treturn gender;\n\t}", "title": "" }, { "docid": "6cf50c863296fbe559449cf6e8faed3d", "score": "0.61490923", "text": "public String getGender() {\n\t\treturn gender;\n\t}", "title": "" }, { "docid": "bc4f93f06a5625efebf626704ce91ab8", "score": "0.6084421", "text": "public com.google.protobuf.ByteString getGenderBytes() {\n\t\t\tjava.lang.Object ref = gender_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n\t\t\t\tgender_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ffe998205c651795ac705feefbd4f1de", "score": "0.6074347", "text": "public void setGender(Gender gender) {\n this.gender = gender == null ? UNKNOWN : gender;\n }", "title": "" }, { "docid": "25dc2051d87083fb59d8eb982c4e9c49", "score": "0.6065479", "text": "public com.google.protobuf.ByteString getGenderBytes() {\n\t\t\t\tjava.lang.Object ref = gender_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\n\t\t\t\t\tgender_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9e5d18911110d0faa1f7b0395fe7a067", "score": "0.6055712", "text": "public Person gender(GenderType gender) {\n setGender(new Gender().type(gender));\n return this;\n }", "title": "" }, { "docid": "69e20e53a6aa3cc6b1187c85c963c9b6", "score": "0.60524076", "text": "public Boolean getGender() {\n return gender;\n }", "title": "" }, { "docid": "53418d771bd631b9d8c436c55feaa0a3", "score": "0.60512906", "text": "public void setGender (java.lang.Boolean gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "title": "" }, { "docid": "6b4d46d91bfddee9b85f98b99574ba70", "score": "0.60451543", "text": "@Override\n\tpublic void setGender(int gender) {\n\t\t_official.setGender(gender);\n\t}", "title": "" }, { "docid": "d3c18b6fdd7aebf324af9ad51098a05c", "score": "0.60289437", "text": "@Override\n\tvoid setGender(String g) {\n\t\t\n\t}", "title": "" }, { "docid": "128d326b9da4f670107308ebbc0f4084", "score": "0.5995407", "text": "public java.lang.String getGender() {\n\t\t\t\tjava.lang.Object ref = gender_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tgender_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "c6985726ea136f26b9cad2e20c0ef02f", "score": "0.5984011", "text": "public Person gender(Gender gender) {\n setGender(gender);\n return this;\n }", "title": "" }, { "docid": "3ec8debec1f616f3cb10e6b13bef60c2", "score": "0.5981715", "text": "public java.lang.String getGender() {\n return gender;\n }", "title": "" }, { "docid": "3ec8debec1f616f3cb10e6b13bef60c2", "score": "0.5981715", "text": "public java.lang.String getGender() {\n return gender;\n }", "title": "" }, { "docid": "a201ad51d14f8e77360c5020756bb3b0", "score": "0.5973927", "text": "public Builder setGender(\n com.google.ads.googleads.v13.common.GenderDimension.Builder builderForValue) {\n if (genderBuilder_ == null) {\n dimension_ = builderForValue.build();\n onChanged();\n } else {\n genderBuilder_.setMessage(builderForValue.build());\n }\n dimensionCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "f622a4a28a666ff6dd11fae0da1a2995", "score": "0.5965502", "text": "public java.lang.String getGender() {\n\t\t\tjava.lang.Object ref = gender_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tgender_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "be9fce6976c58791de8b3a5847a94d05", "score": "0.5943865", "text": "public void setGender(String v) {\n _setStringValueNfc(wrapGetIntCatchException(_FH_gender), v);\n }", "title": "" }, { "docid": "4844613f91dcfcb2070cd765b43088bc", "score": "0.59037995", "text": "public void setGenderCustomer(int genderCustomer) {\n this.genderCustomer = genderCustomer;\n }", "title": "" }, { "docid": "e70f11b0e126f47dad496047eb084184", "score": "0.58675545", "text": "public void setGender(String gender) {\n this.gender = gender == null ? null : gender.trim();\n }", "title": "" }, { "docid": "e70f11b0e126f47dad496047eb084184", "score": "0.58675545", "text": "public void setGender(String gender) {\n this.gender = gender == null ? null : gender.trim();\n }", "title": "" }, { "docid": "8168399e73b8bf111a3c145f3b8229c0", "score": "0.5845217", "text": "@Override\n\tpublic int getGender() {\n\t\treturn _official.getGender();\n\t}", "title": "" }, { "docid": "89227073a2701aafd7958644849b08f4", "score": "0.5836244", "text": "public Byte getGender() {\n return gender;\n }", "title": "" }, { "docid": "89227073a2701aafd7958644849b08f4", "score": "0.5836244", "text": "public Byte getGender() {\n return gender;\n }", "title": "" }, { "docid": "89227073a2701aafd7958644849b08f4", "score": "0.5836244", "text": "public Byte getGender() {\n return gender;\n }", "title": "" }, { "docid": "da48b6232d4a6f79b3c671f0428993db", "score": "0.57846797", "text": "protected Gender getRandomGender(){\n return genders.get(random.nextInt(genders.size()));\n }", "title": "" }, { "docid": "eeda420e5796095a7a0b0495172592f3", "score": "0.57788455", "text": "public static int gender(boolean male, boolean female){\n if (!(male || female)) return 0;\r\n // returns 5 if is is ok\r\n else return 5;\r\n }", "title": "" }, { "docid": "2426a23907119bc1a682e66f29874e61", "score": "0.5777739", "text": "public String clientGender()\n {\n return client.getGender();\n }", "title": "" }, { "docid": "3d87c8d8f8f32c76aca809ffd0115e9a", "score": "0.5740673", "text": "public java.lang.Boolean getGender () {\r\n\t\treturn gender;\r\n\t}", "title": "" }, { "docid": "cf8e95f10925aa94258d3377b7cef31c", "score": "0.57113886", "text": "public void setGender(String gender) throws InvalidPersonParameterException {\n if (gender.equalsIgnoreCase(\"\")) {\n this.gender = \"\";\n return;\n }\n if (gender.equalsIgnoreCase(\"female\")) {\n this.gender = \"Female\";\n return;\n }\n if (gender.equalsIgnoreCase(\"male\")) {\n this.gender = \"Male\";\n return;\n }\n throw new InvalidPersonParameterException(\"Invalid Gender: Usage is 'Male' or 'Female'\");\n }", "title": "" }, { "docid": "8197174bc0f8a6b4e1a909ad8bc021fb", "score": "0.5646607", "text": "public int getGenderCustomer() {\n return genderCustomer;\n }", "title": "" }, { "docid": "a2bc550e805296c188b62bc11163bdb4", "score": "0.5626811", "text": "public String getGender() {\n return _getStringValueNc(wrapGetIntCatchException(_FH_gender));\n }", "title": "" }, { "docid": "8f831095d0c7728a38ec2bee59ae1b9b", "score": "0.5620191", "text": "public void setGender(String newGender) { gender = newGender; }", "title": "" }, { "docid": "ac2a692d866ec2b5f67aa1d862fc6db5", "score": "0.56159604", "text": "public String getGenderPreference() {\n\t\treturn genderPreference;\n\t}", "title": "" }, { "docid": "6fbfa3d6e0d785382ee3e0d83a4768a9", "score": "0.56101406", "text": "public void setGender(String next) {\n\t\tgenderString = next;\n\t}", "title": "" }, { "docid": "3bca74a896f211bffb94c98cbb4b6318", "score": "0.55789477", "text": "public Builder setGender(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tgender_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "title": "" }, { "docid": "b091c5f074f0a6c866a2838a3126e8e8", "score": "0.5576094", "text": "public Integer getwStaffGender() {\n return wStaffGender;\n }", "title": "" }, { "docid": "35f981a152b30dd07c8e07187f48c196", "score": "0.55719954", "text": "public void setGender(char gender) {\n if (gender == 'M' || gender == 'F' || gender == ' ') {\n this.gender = gender;\n } else {\n System.out.println(\"No such gender exists: \" + gender);\n }\n }", "title": "" }, { "docid": "73a6ce6e4fd1e7fa65e81c6794b85fbd", "score": "0.55691123", "text": "public void setGender(String gender)\n {\n try\n {\n this.gender = gender;\n }\n catch (InputMismatchException e)\n {\n System.out.println(\"Invalid input.\");\n }\n }", "title": "" }, { "docid": "6a631df119d24da5850dce6eca26536e", "score": "0.5562194", "text": "private void setUpGenders(){\n genders.add(Gender.MALE);\n genders.add(Gender.FEMALE);\n }", "title": "" }, { "docid": "a21325bb78a83425acfc2f7b3be4181c", "score": "0.55502427", "text": "public String getEmpGender() {\n return empGender;\n }", "title": "" }, { "docid": "d65744d61a6d6d2411dc38a879dbd919", "score": "0.5534906", "text": "public String getGender() {\n return LOCAL_NOC_LIST.getFirstValue(\"Gender\", name);\n }", "title": "" } ]
f5f7af702fff14f108e044c8bcceb3b3
Util method to write an attribute with the ns prefix
[ { "docid": "dedc48135bccd24a42192ffb5a1381f7", "score": "0.0", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n }\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }", "title": "" } ]
[ { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "5eec9a323f0dc37e5df4cd90110e2844", "score": "0.77567035", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (xmlWriter.getPrefix(namespace) == null) {\r\n xmlWriter.writeNamespace(prefix, namespace);\r\n xmlWriter.setPrefix(prefix, namespace);\r\n\r\n }\r\n\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n\r\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" }, { "docid": "78a9f1a04b774d7adc8fa4c24f7078a9", "score": "0.771335", "text": "private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (xmlWriter.getPrefix(namespace) == null) {\n xmlWriter.writeNamespace(prefix, namespace);\n xmlWriter.setPrefix(prefix, namespace);\n\n }\n\n xmlWriter.writeAttribute(namespace,attName,attValue);\n\n }", "title": "" } ]