query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
This method sleep the main thread for specified duration | private static void pause(int duration) {
LOG.info("\nlets go again!\n");
sleep(duration);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }",
"private Sleep(Duration duration) {\n this.duration = duration;\n }",
"public static void sleep(Duration duration) {\n sleep(duration.toMillis());\n }",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }",
"public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}",
"private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void sleep() {\n\t\t\n\t}",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}",
"public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"void sleep();",
"void sleep();",
"public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tleave = false;\n\t\t\t\t}",
"private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}",
"private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }",
"@Override\n public void run() {\n try {\n sleep(duration);\n } catch(InterruptedException e) {\n System.out.println(getName() + \" was interrupted. isInterrupted(): \" + isInterrupted());\n return;\n }\n System.out.println(getName() + \" has awakened\");\n }",
"public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }",
"public static void sleep(long aInDelay) {\n try {\n Thread.sleep(aInDelay);\n } catch (InterruptedException e) {\n Display.logUnexpectedError(e);\n }\n }",
"public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}",
"public void run() {\n try {\n Thread.sleep(1000000);\n } catch (InterruptedException ie) {\n }\n }",
"protected void sleepOnDrawFrame(final long duration) {\n runOnDrawFrame(new ResultRunnable() {\n @Override\n public Object run() {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return null;\n }\n });\n }",
"@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}",
"public static void sleep(int delay) {\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n }\n }",
"protected void pause() {\n sleep(300);\n }",
"@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onDurationUs(long durationUs) {\n sleep();\n isDurationSet = true;\n }",
"private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }",
"void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }",
"private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }",
"public void sleep(int duration) {\n\t\t\r\n\t\t_height = _height + duration * 1.01; // math for the variables(value) of human height\r\n\t\tSystem.out.println(_fullname + \" is finished to sleep, his height is: \" + _height);\r\n\r\n\t\t\r\n\t}",
"public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }",
"private void delayStart() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Could not sleep\", e);\n }\n }",
"protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}",
"@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n try {\n // Loop for the given duration\n while (System.currentTimeMillis() - startTime < duration) {\n // Every 100ms, sleep for the percentage of unladen time\n if (System.currentTimeMillis() % 100 == 0) {\n Thread.sleep((long) Math.floor((1 - load) * 100));\n }\n }\n } catch (Exception e) {\n logger.error(\"Error happened\", e);\n }\n }",
"private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }",
"public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (InterruptedException e)\n {\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\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\t\n\t\t}",
"private void sleepForChannelJoin() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(config.getChannelJoinTimeout());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void sleep ();",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"public static void sleepFor(int sec) throws InterruptedException {\n Thread.sleep(sec * 1000);\n }",
"public static void sleep1 () throws InterruptedException {\n\n // throws is cheaper way to get rid of exception\n Thread.sleep(2000);\n\n }",
"@Override\n\tpublic void run() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\ttry {\n\t\t\t// Loop for the given duration\n\t\t\twhile (System.currentTimeMillis() - startTime < duration) {\n\t\t\t\t// Every 100ms, sleep for the percentage of unladen time\n\t\t\t\tif (System.currentTimeMillis() % 100 == 0) {\n\t\t\t\t\tThread.sleep((long) Math.floor((1 - load) * 100));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"private void sleepByScheduleTime() throws InterruptedException\n\t{\n\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\tcalendar.setTime(new java.util.Date(System.currentTimeMillis()));\n\t\tint currHour = calendar.get(calendar.HOUR_OF_DAY);\n\t\tif ((24 - currHour) * 60 < 2 * FtpData.SCHEDULE_TIME)\n\t\t{\n\t\t\tsleep((FtpData.SCHEDULE_TIME + 1) * 60000); // 00h:01\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsleep(FtpData.SCHEDULE_TIME * 60000); // n * minutes;\n\t\t}\n\t}",
"public void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinally{ finish(); }\n\t\t\t}",
"private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }",
"private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic synchronized void run() {\n\t\tlong secElapsed;\r\n\t\t//long startTime = System.currentTimeMillis();\r\n\t\tlong start= System.currentTimeMillis();;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tlong timeElapsed = System.currentTimeMillis() - start;\r\n\t\t\tsecElapsed = timeElapsed / 1000;\r\n\t\t\tif(secElapsed==10) {\r\n\t\t\t\tstart=System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Time -> 00:\"+secElapsed);\r\n\t\t}while(secElapsed<=10);\r\n\t\t\r\n\t}",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void sleepMilliseconds(long milliseconds) {\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}",
"protected final void sleep(int inMilliseconds) {\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(inMilliseconds);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t} // catch\r\n\t}",
"private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }",
"@Override\n\t\tprotected Void doInBackground(String... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(duration);\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\n\t\t\treturn null;\n\t\t}",
"private void sleep(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sleep(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException e) {\n }\n }",
"public static void sleep(int sec) {\n\t try {\n\t Thread.sleep(sec * 1000);\n\t }\n\t catch(Exception ex) {\n\t \tlogger.error(\"Error:Sleeping the thread\", ex);\n\t }\n\t}",
"public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }",
"@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }",
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }",
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }",
"private void sleep(int mul)\n {\n try {\n Thread.sleep(Driver.sleepTimeMs * mul);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public static void createDelay(int duration) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(duration);\r\n\t\t} catch(Exception e) {\r\n\t\t\t//do nothing\r\n\t\t}\r\n\t}",
"public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}",
"public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tsleep(dauer);\n\t\t\tt.interrupt();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }",
"public void sleep(Agent ag, long millis) throws InterruptedException {\n getThreadFor(ag).sleep(millis);\n stats.add(new SleepStat(ag.getClass()), millis);\n\n }",
"public void pause() {\n\t\tsleep(2000);\n\t}",
"void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }",
"private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public final void sleep(int millis) {\n Utils.sleep(millis);\n }",
"public void sleep(){\n System.out.println(\"Human Sleeps\");\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"public void run() {\n\ttimedOut = false;\n\tlong startTime = new Date().getTime();\n\tlong delta = 0;\n\twhile (delta < interval) {\n\t try {\n\t\tThread.sleep(interval - delta);\n\t } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n\t\treturn;\n\t }\n\t delta = new Date().getTime() - startTime;\n\t}\n\ttimedOut = true;\n\ttimeoutHandler.handleTimeout();\n\treturn;\n }",
"public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }"
]
| [
"0.7832159",
"0.7743738",
"0.75803095",
"0.75073767",
"0.73916006",
"0.73520565",
"0.73310304",
"0.73172",
"0.7253772",
"0.72475505",
"0.72257924",
"0.72042555",
"0.72008175",
"0.7186798",
"0.712815",
"0.71191704",
"0.70698303",
"0.705801",
"0.705801",
"0.7026669",
"0.7010159",
"0.6943693",
"0.68707657",
"0.6842376",
"0.6839218",
"0.68290967",
"0.6775008",
"0.6767235",
"0.676062",
"0.6757766",
"0.67524076",
"0.67509276",
"0.67507434",
"0.67405003",
"0.6739088",
"0.6727673",
"0.67093235",
"0.66957814",
"0.6685336",
"0.66801685",
"0.6666453",
"0.6664917",
"0.6645644",
"0.6628557",
"0.66253245",
"0.662408",
"0.662338",
"0.6621337",
"0.6620796",
"0.66167736",
"0.66095114",
"0.6596987",
"0.6588397",
"0.6585593",
"0.6585465",
"0.6576842",
"0.6573251",
"0.6562829",
"0.6562829",
"0.656281",
"0.65516543",
"0.6544976",
"0.6544361",
"0.6541423",
"0.6526398",
"0.6498258",
"0.6496263",
"0.6490499",
"0.6471941",
"0.6464234",
"0.64634126",
"0.6454014",
"0.64309335",
"0.6426542",
"0.64119184",
"0.6407554",
"0.64006597",
"0.6398399",
"0.6380578",
"0.63715696",
"0.6370134",
"0.6365212",
"0.6361188",
"0.6361188",
"0.6355379",
"0.63490885",
"0.6342849",
"0.6336376",
"0.63177925",
"0.631523",
"0.6312745",
"0.6301778",
"0.630071",
"0.6290143",
"0.6279336",
"0.627693",
"0.62731826",
"0.62729913",
"0.6270353",
"0.6266607"
]
| 0.65952754 | 52 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
startService(streamService);
startButton.setEnabled(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
stopService(streamService);
startButton.setEnabled(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
new KeyAdapterExample();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void keyTyped(KeyEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void keyPressed(KeyEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void keyReleased(KeyEvent e) {
String text = area.getText();
String words[]= text.split("\\s");
l.setText("Words:"+words.length+"Characters:"+text.length());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, Exception {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
System.out.println("Save Card Model Akata Awa");
String network1 = null, price1 = null;
network1=request.getParameter("Networkaaa");
price1=request.getParameter("Priceqqq");
Statement s = db.Database.Database();
int id_modle = 0;
int id = 0;
int network_id = 0;
double price = Double.parseDouble(price1);
String network = network1;
ResultSet priceResult = s.executeQuery("SELECT id FROM price WHERE price='" + price + "'");
if (priceResult.next()) {
id = priceResult.getInt(1);
} else {
ResultSet rs1 = s.executeQuery("SELECT MAX(id) FROM price");
rs1.next();
id = rs1.getInt("MAX(id)");
id++;
s.executeUpdate("INSERT INTO price VALUES ('" + id + "','" + price + "')");
}
ResultSet rs3 = s.executeQuery("SELECT MAX(`idCard_Modle`) FROM card_modle");
while (rs3.next()) {
id_modle = rs3.getInt("MAX(`idCard_Modle`)");
id_modle++;
}
ResultSet rs = s.executeQuery("SELECT id FROM network WHERE `name`='" + network + "'");
while (rs.next()) {
network_id = rs.getInt("id");
}
s.executeUpdate("INSERT INTO card_modle VALUES('" + id_modle + "','" + network_id + "','" + id + "')");
response.sendRedirect("addCardModel.jsp");
// response.sendRedirect("price.jsp");
} catch (Exception e) {
e.printStackTrace();
} finally {
out.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }"
]
| [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.639271",
"0.63919044",
"0.63919044",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63887113",
"0.63887113",
"0.6380285",
"0.63783026",
"0.63781637",
"0.637677",
"0.63761306",
"0.6370491",
"0.63626",
"0.63626",
"0.63614637",
"0.6355308",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896"
]
| 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (Exception ex) {
Logger.getLogger(SaveCardModel.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}",
"void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }",
"public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}",
"@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}",
"public Result get(Get get) throws IOException;",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }",
"@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }",
"@Override\npublic void get(String url) {\n\t\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}",
"@NonNull\n public String getAction() {\n return \"GET\";\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }",
"@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }",
"public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}",
"@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}",
"public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }",
"public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"HttpGet getRequest(HttpServletRequest request, String address) throws IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }",
"@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}"
]
| [
"0.7589819",
"0.71670026",
"0.71134603",
"0.7056349",
"0.7030202",
"0.70289457",
"0.6996126",
"0.6975816",
"0.6888662",
"0.6873633",
"0.6853793",
"0.6843488",
"0.6843488",
"0.68354696",
"0.68354696",
"0.68354696",
"0.6819225",
"0.6818393",
"0.6797782",
"0.6780766",
"0.6761152",
"0.67546815",
"0.67546815",
"0.67403847",
"0.67188615",
"0.67158395",
"0.67054987",
"0.67054987",
"0.6701152",
"0.6684633",
"0.66776204",
"0.6675632",
"0.6675632",
"0.6674378",
"0.6674378",
"0.6668488",
"0.66617364",
"0.66617364",
"0.66477805",
"0.6636472",
"0.66167665",
"0.66129434",
"0.6603993",
"0.6570445",
"0.6551127",
"0.6538683",
"0.6536589",
"0.6535939",
"0.6496197",
"0.64664567",
"0.64521563",
"0.64508563",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64114493",
"0.64072937",
"0.6396223",
"0.63798064",
"0.63737595",
"0.6359885",
"0.63581914",
"0.6341077",
"0.6309777",
"0.6306383",
"0.630272",
"0.63026774",
"0.6283587",
"0.6275156",
"0.62678796",
"0.62581164",
"0.6255567",
"0.62503594",
"0.6245187",
"0.6239602",
"0.6239602",
"0.6238581",
"0.6235405",
"0.6215722",
"0.6212377",
"0.6206887",
"0.6206634",
"0.6204746",
"0.6200539",
"0.6199529",
"0.6188366",
"0.6182832",
"0.61764896",
"0.6175472",
"0.6173032",
"0.6171852",
"0.61701643",
"0.61690634"
]
| 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (Exception ex) {
Logger.getLogger(SaveCardModel.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public String post();",
"@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException 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\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}",
"@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}",
"private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
]
| [
"0.7327792",
"0.71364146",
"0.71150917",
"0.7103484",
"0.7098967",
"0.7022197",
"0.7014374",
"0.6963617",
"0.6887727",
"0.67830557",
"0.6772561",
"0.67459744",
"0.6666483",
"0.65569043",
"0.655617",
"0.65236866",
"0.6523533",
"0.6523533",
"0.6523533",
"0.652217",
"0.65187013",
"0.65143514",
"0.6510847",
"0.651052",
"0.64912283",
"0.6479801",
"0.6475664",
"0.6470739",
"0.6470278",
"0.6468195",
"0.645584",
"0.6450473",
"0.6450473",
"0.6450473",
"0.6447996",
"0.6447996",
"0.64368415",
"0.64356387",
"0.64334625",
"0.6423143",
"0.6421065",
"0.64188904",
"0.64188904",
"0.64188904",
"0.64063096",
"0.6402555",
"0.6402555",
"0.639523",
"0.6394996",
"0.63531774",
"0.6332038",
"0.63235676",
"0.6294927",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.6287011",
"0.62789494",
"0.62713283",
"0.62713283",
"0.6270387",
"0.6260497",
"0.6253797",
"0.62495375",
"0.6225063",
"0.6212975",
"0.62123644",
"0.62109727",
"0.6206917",
"0.62009853",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.6176784",
"0.61629224",
"0.61590767",
"0.6147172",
"0.6145605",
"0.6145605",
"0.61443746",
"0.6141046",
"0.6135871",
"0.61309165",
"0.6129246",
"0.6122686",
"0.61175007",
"0.61165035",
"0.6105327",
"0.6098414",
"0.6097962",
"0.609629"
]
| 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
]
| [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
"0.85282224",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8516995",
"0.8512296",
"0.8511239",
"0.8510324",
"0.84964365"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@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 }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@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 }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@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}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
]
| [
"0.72473437",
"0.7202402",
"0.71960324",
"0.7177793",
"0.7108265",
"0.7040525",
"0.70388484",
"0.70126176",
"0.70101976",
"0.6981143",
"0.69461405",
"0.694",
"0.69346833",
"0.69183874",
"0.69183874",
"0.6891571",
"0.6884306",
"0.68758994",
"0.687534",
"0.68627334",
"0.68627334",
"0.68627334",
"0.68627334",
"0.6853258",
"0.6847784",
"0.6820167",
"0.68177783",
"0.68134266",
"0.68132955",
"0.68132955",
"0.6806282",
"0.68011856",
"0.6798178",
"0.67916524",
"0.67897713",
"0.6788724",
"0.6783952",
"0.6759952",
"0.6757919",
"0.6748738",
"0.67445415",
"0.67445415",
"0.6741439",
"0.67401767",
"0.6726359",
"0.6724678",
"0.6723058",
"0.6723058",
"0.6721303",
"0.67123276",
"0.670777",
"0.67050874",
"0.670039",
"0.66992784",
"0.6697299",
"0.6695259",
"0.6686728",
"0.668404",
"0.668404",
"0.6683142",
"0.668091",
"0.66799283",
"0.6677784",
"0.6669004",
"0.66677624",
"0.66630834",
"0.66577506",
"0.66577506",
"0.66577506",
"0.6656902",
"0.66553235",
"0.66553235",
"0.66553235",
"0.66530025",
"0.66522014",
"0.6650771",
"0.66497517",
"0.6647805",
"0.66470283",
"0.66469866",
"0.6646818",
"0.6645723",
"0.66454786",
"0.66439635",
"0.66434425",
"0.6642393",
"0.6639529",
"0.6635146",
"0.6634077",
"0.6632954",
"0.66327274",
"0.66327274",
"0.66327274",
"0.66297686",
"0.66288346",
"0.66275346",
"0.66271275",
"0.6625066",
"0.6621276",
"0.6619167",
"0.6619167"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
Intent intent = new Intent(MainActivity.this, Einstellungen.class);
startActivity(intent);
//Intent zu einer neuen Activity, welche dann entscheidet, ob Maps eingebelendet wird
//wenn ja, welche Zoomstufe etc....
}
if (id == R.id.action_history) {
Intent intent = new Intent(MainActivity.this, Verlauf.class);
startActivity(intent);
//Intent zu neuer Activity, Liste, die die Suchergebnisse speichert, Löschen ist möglich
//einzelne Einträge und ganze Liste, falls leer soll entsprechender Inhalt angezeigt werden
}
if (id == R.id.action_impressum) {
Intent intent = new Intent(MainActivity.this, Impressum.class);
startActivity(intent);
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.7904536",
"0.78052336",
"0.7766536",
"0.7727363",
"0.76318616",
"0.7621916",
"0.7584545",
"0.7530609",
"0.74878335",
"0.74571276",
"0.74571276",
"0.7438656",
"0.7422694",
"0.7403604",
"0.73918706",
"0.7387049",
"0.7379379",
"0.73706305",
"0.7362634",
"0.7356091",
"0.7345742",
"0.7341655",
"0.7330208",
"0.73284286",
"0.7325726",
"0.7319205",
"0.731691",
"0.73137385",
"0.7304247",
"0.7304247",
"0.73017776",
"0.7298307",
"0.72933966",
"0.7286999",
"0.7283511",
"0.72811604",
"0.72787315",
"0.7259994",
"0.7259994",
"0.7259994",
"0.72595567",
"0.72595537",
"0.72501904",
"0.7224887",
"0.7219672",
"0.7217532",
"0.72043973",
"0.72010916",
"0.7199519",
"0.71928704",
"0.71855384",
"0.7177209",
"0.71689284",
"0.7167426",
"0.715412",
"0.71537405",
"0.7135554",
"0.7134872",
"0.7134872",
"0.7129713",
"0.7129041",
"0.71240187",
"0.7123551",
"0.7123167",
"0.71221936",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71170884",
"0.7116871",
"0.7116271",
"0.7114722",
"0.7112311",
"0.7109584",
"0.7108896",
"0.7105745",
"0.70993924",
"0.70979136",
"0.7095834",
"0.70936936",
"0.70936936",
"0.70863414",
"0.7083095",
"0.7081166",
"0.70801973",
"0.7073687",
"0.7068324",
"0.7061727",
"0.7060408",
"0.7060199",
"0.7051346",
"0.70376796",
"0.70376796",
"0.7035851",
"0.70354784",
"0.70354784",
"0.7032029",
"0.70307976",
"0.70294225",
"0.70193213"
]
| 0.0 | -1 |
ATTENTION: This was autogenerated to implement the App Indexing API. See for more information. | public Action getIndexApiAction() {
Thing object = new Thing.Builder()
.setName("Main Page") // TODO: Define a title for the content shown.
// TODO: Make sure this auto-generated URL is correct.
.setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
.build();
return new Action.Builder(Action.TYPE_VIEW)
.setObject(object)
.setActionStatus(Action.STATUS_TYPE_COMPLETED)
.build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"com.google.firestore.admin.v1beta1.Index getIndex();",
"public String index() {\r\n\t\treturn \"index\";\r\n\t}",
"public String getIndexName() {\n return indexName;\n }",
"public long index() {\n return manager.compactIndex();\n }",
"public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}",
"static String getIndexName(String appid) {\n\t\treturn appid.trim();\n\t}",
"default int getIndex() {\n return meta(\"nlpcraft:nlp:index\");\n }",
"public boolean qualifyIndexName() {\n \t\treturn true;\n \t}",
"private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }",
"public interface IndexMetadata extends Freezable<IndexMetadata> {\n\t\n\tAnnotatedFields annotatedFields();\n\t\n\tdefault AnnotatedField mainAnnotatedField() {\n\t return annotatedFields().main();\n\t}\n\t\n default AnnotatedField annotatedField(String name) {\n return annotatedFields().get(name);\n }\n \n\tMetadataFields metadataFields();\n\t\n\tdefault MetadataField metadataField(String name) {\n\t return metadataFields().get(name);\n\t}\n\n\t/**\n\t * Get the display name for the index.\n\t *\n\t * If no display name was specified, returns the name of the index directory.\n\t *\n\t * @return the display name\n\t */\n\tString displayName();\n\n\t/**\n\t * Get a description of the index, if specified\n\t * @return the description\n\t */\n\tString description();\n\n\t/**\n\t * Is the content freely viewable by all users, or is it restricted?\n\t * @return true if the full content may be retrieved by anyone\n\t */\n\tboolean contentViewable();\n\n /**\n * What's the text direction of this corpus?\n * @return text direction\n */\n\tTextDirection textDirection();\n\n\t/**\n\t * What format(s) is/are the documents in?\n\t *\n\t * This is in the form of a format identifier as understood\n\t * by the DocumentFormats class (either an abbreviation or a\n\t * (qualified) class name).\n\t *\n\t * @return the document format(s)\n\t */\n\tString documentFormat();\n\n\t/**\n\t * What version of the index format is this?\n\t * @return the index format version\n\t */\n\tString indexFormat();\n\n\t/**\n\t * When was this index created?\n\t * @return date/time\n\t */\n\tString timeCreated();\n\n\t/**\n\t * When was this index last modified?\n\t * @return date/time\n\t */\n\tString timeModified();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time\n\t */\n\tString indexBlackLabBuildTime();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time stamp\n\t */\n\tString indexBlackLabVersion();\n\n\t/**\n\t * How many tokens are in the index?\n\t * @return number of tokens\n\t */\n\tlong tokenCount();\n\n\t/**\n\t * Is this a new, empty index?\n\t *\n\t * An empty index is one that doesn't have a main contents field yet,\n\t * or has a main contents field but no indexed tokens yet.\n\t *\n\t * @return true if it is, false if not.\n\t */\n\tboolean isNewIndex();\n\n default boolean subannotationsStoredWithParent() {\n return false;\n }\n\t\n}",
"StorableIndexInfo getIndexInfo();",
"public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}",
"@Override\n public void onStart() {\n super.onStart();\n\n // ATTENTION: This was auto-generated to implement the App Indexing API.\n // See https://g.co/AppIndexing/AndroidStudio for more information.\n // client.connect();\n // AppIndex.AppIndexApi.start(client, getIndexApiAction());\n }",
"public void onIndexUpdate();",
"public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}",
"public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}",
"public boolean indexAllowed() {\r\n return true;\r\n }",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"private Reindex() {}",
"private Reindex() {}",
"@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }",
"@Override\n public String getIndexTemplateName() {\n return GATK_FREEMARKER_INDEX_TEMPLATE_NAME;\n }",
"protected void index()\r\n\t{\n\t}",
"private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes = mapServiceContext.getMapContainer(name).getIndexes();\n // optimize predicate\n QueryOptimizer queryOptimizer = mapServiceContext.getQueryOptimizer();\n predicate = queryOptimizer.optimize(predicate, indexes);\n\n Set<QueryableEntry> querySet = indexes.query(predicate);\n if (querySet == null) {\n return;\n }\n\n List<Data> keys = null;\n for (QueryableEntry e : querySet) {\n if (keys == null) {\n keys = new ArrayList<Data>(querySet.size());\n }\n keys.add(e.getKeyData());\n }\n\n hasIndex = true;\n keySet = keys == null ? Collections.<Data>emptySet() : InflatableSet.newBuilder(keys).build();\n }",
"private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"public abstract void updateIndex();",
"public Result index() {\n\n\t\treturn ok();\n\t}",
"@Nullable\n public abstract IndexEntry getIndexEntry();",
"public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}",
"@Nullable\n public abstract Index getIndex();",
"public abstract long getIndex();",
"indexSet createindexSet();",
"public void home_index()\n {\n Home.index(homer);\n }",
"@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}",
"public static boolean createIndex(String appid) {\n\t\treturn createIndex(appid, Para.getConfig().elasticsearchRootIndexShards(), Para.getConfig().elasticsearchRootIndexReplicas());\n\t}",
"@Test\n public void storesIndexIfNone() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\").push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='1']\")\n );\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-HTTP-HOST-HERE]/main\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@Override\n\tpublic void onApplicationEvent(final ContextRefreshedEvent event) {\n\t\ttry {\n\t\t\tQueryService localQueryService = getQueryService(event);\n\n\t\t\tif (localQueryService != null) {\n\t\t\t\tlocalQueryService.createDefinedIndexes();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ignore) {\n\t\t\tlogger.warn(String.format(\"unable to create defined Indexes (if any): %1$s\", ignore.getMessage()));\n\t\t}\n\t}",
"public void createIndex(Configuration configuration){\n }",
"public String getIndexingName()\n {\n return mcVersion.name() +'-'+ name;\n }",
"public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}",
"public Action getIndexApiAction0() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}",
"public Index getIndex() {\r\n // TODO: Implement this!\r\n return new WebIndex();\r\n }",
"public Indexer() {\n }",
"int getIndexEndpointsCount();",
"static String composeIndexName() {\n\t\treturn TYPE.toLowerCase();\n\t}",
"public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }",
"public Index getIndex() {\n return index;\n }",
"@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }",
"private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }",
"public int getIndex() {\n\t\treturn 0;\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"private IndexOperations getIndexOperations() {\n return elasticsearchOperations.indexOps(itemClazz);\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"dangerous_place Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Scan Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"FaceTracker Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n\n }",
"java.lang.String getDeployedIndexId();",
"public String getName() {\n return _index.getName();\n }",
"public Result index() {\n try {\n List<LibraryItem> libraryItems = libraryManager.getLibraryItems();\n return ok(index.render(libraryItems));\n } catch (Exception e) {\n return notAcceptable(e.getMessage());\n }\n }",
"public int index();",
"@ProjectSingleton\npublic interface DeprecatedEntitiesByEntityIndex extends Index {\n\n boolean isDeprecated(@Nonnull OWLEntity entity);\n}",
"public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"private RequestResponse handleIndexRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n ContentDocument contentDocument = new RequestToContentDocument().convert(request);\n return this.searchService.index(core, contentDocument);\n }",
"public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}",
"com.google.firestore.admin.v1beta1.IndexOrBuilder getIndexOrBuilder();",
"public static Map<String, Object> getDocumentMapping(String indexPrefix, String indexPostfix) {\n\n Map<String, Object> indexFieldProperties = new HashMap<String, Object>();\n\n if (indexPrefix.equals(EsConstants.GATEWAY_INDEX_NAME)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_VERSION, indexFieldProperties);\n }\n // rule for gateway and manager\n if (indexPostfix.equals(EsConstants.INDEX_APIS)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n }\n // rule for gateway and manager\n if (indexPostfix.equals(EsConstants.INDEX_CLIENTS)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n }\n if (indexPrefix.equals(EsConstants.METRICS_INDEX_NAME)) {\n // set keyword types\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ORG_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ORG_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_PLAN_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_VERSION, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_VERSION, indexFieldProperties);\n\n addBooleanTypeToIndexField(EsConstants.ES_FIELD_ERROR, indexFieldProperties);\n addBooleanTypeToIndexField(EsConstants.ES_FIELD_FAILURE, indexFieldProperties);\n\n // set date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_REQUEST_START, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_REQUEST_END, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_API_START, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_API_END, indexFieldProperties);\n\n // set ip type\n addIpTypeToIndexField(EsConstants.ES_FIELD_REMOTE_ADDR, indexFieldProperties);\n }\n\n if (indexPrefix.equals(EsConstants.MANAGER_INDEX_NAME)) {\n\n switch (indexPostfix) {\n case EsConstants.INDEX_MANAGER_POSTFIX_API:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_API_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_PUBLISHED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_RETIRED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CLIENT:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CLIENT_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_PUBLISHED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_RETIRED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_AUDIT_ENTRY:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ENTITY_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ENTITY_TYPE, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ORGANIZATION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_USER:\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_FULL_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_JOINED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLUGIN:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_GROUP_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ARTIFACT_ID, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_POLICY_DEF:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CONTRACT:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_VERSION, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLAN:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLAN_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_PLAN_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_LOCKED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_GATEWAY:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ROLE:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ROLE_MEMBERSHIP:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_DEVELOPER:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_METADATA:\n addDateTypeToIndexField(EsConstants.ES_FIELD_EXPORTED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_IMPORTED_ON, indexFieldProperties);\n default:\n break;\n }\n }\n\n return indexFieldProperties;\n }",
"@Override\n\tpublic void indexObject(ModelKey obj) throws ASException {\n\t\t\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Map Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"HomeView Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"ListTest Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"private GetRequest getIndexExistsRequest() {\n return Requests.getRequest(config.getIndex())\n .type(config.getType())\n .id(\"_\");\n }",
"public static void main(String[] args) throws IOException {\n\n JSONObject log = new JSONObject();\n log.put(\"A\", \"A\");\n IndexRequest indexRequest = new IndexRequest().index(\"key\").type(\"doc\").id(UUID.randomUUID().toString())\n .source(log.toJSONString(), XContentType.JSON);\n Map<String, Object> map1 = indexRequest.sourceAsMap();\n map1.put(\"_id\", indexRequest.id());\n map1.forEach((k, v) -> {\n System.out.println(\"key:\" + k + \">v:\" + v);\n });\n\n }",
"public H_index() {\n\t\tsuper();\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"TaskList Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Link getIndexLink() {\n\t\treturn null;\n\t}",
"public int getIndex(\n )\n {return index;}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public static Result index() {\n\n String root = com.domain.root.Main.someString();\n String foo = com.domain.foo.Main.someString();\n String bar = com.domain.bar.Main.someString();\n String zee = com.domain.zee.Main.someString();\n\n return ok(index.render(\"Your new application is ready.\"));\n }",
"public SimpleIndexFactory() {\n\t}",
"public boolean shouldIndex(IDocument document);"
]
| [
"0.6246559",
"0.62354267",
"0.61743194",
"0.60530496",
"0.6050701",
"0.6036605",
"0.6001997",
"0.5967566",
"0.59133023",
"0.5910447",
"0.58842",
"0.5878413",
"0.5872459",
"0.5839279",
"0.5812367",
"0.5793027",
"0.5784734",
"0.57819986",
"0.5749451",
"0.57446694",
"0.57446694",
"0.57191527",
"0.5696193",
"0.56744087",
"0.56546867",
"0.56546855",
"0.56502354",
"0.5633997",
"0.56317633",
"0.5620267",
"0.56200314",
"0.56126523",
"0.5577657",
"0.5567837",
"0.5549788",
"0.5537184",
"0.55364364",
"0.5534537",
"0.5527329",
"0.5525021",
"0.55190396",
"0.55175257",
"0.5511802",
"0.5511347",
"0.55073875",
"0.55072695",
"0.5500225",
"0.55000776",
"0.5494742",
"0.54934084",
"0.54852",
"0.54795974",
"0.54725844",
"0.5463306",
"0.54611677",
"0.54611677",
"0.54611677",
"0.54326004",
"0.54238576",
"0.54163224",
"0.5412265",
"0.5411921",
"0.5399293",
"0.5397354",
"0.53957444",
"0.5392546",
"0.539248",
"0.5386225",
"0.53794235",
"0.536634",
"0.5349459",
"0.5347649",
"0.53386647",
"0.5337266",
"0.5309542",
"0.5303224",
"0.52940804",
"0.529366",
"0.52887607",
"0.52869546",
"0.5283503",
"0.5281871",
"0.5278969",
"0.52780503",
"0.5273832",
"0.527238",
"0.5269446",
"0.5263525",
"0.5258548"
]
| 0.5446162 | 68 |
Jumps to a given address | public void jump(int offset) {
fInstructionCounter += offset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void jump(int address) {\n pc = nPC;\n nPC = address;\n }",
"public void jump() {\n\t\t// if (isBlock_down()) {\n\t\t// setJumpTTL(getMaxJumpTTL());\n\t\t// setBlock_down(false);\n\t\t// }\n\t}",
"public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}",
"abstract boolean performJump(long value);",
"private void jump(){\n getField().pandaJumped(this);\n }",
"public abstract String jump();",
"void jump() {\n myCowboy.jump();\n }",
"@Test\n public void testJump1()\n {\n System.out.println(\"jump\");\n String jmpStr = \"JGT\";\n assertEquals(\"001\", N2TCode.jump(jmpStr));\n }",
"public void jumpToID(String id) {\n if (idMap.containsKey(id)) {\n currPos = idMap.get(id);\n getNext();\n } else {\n throw new IllegalStateException(\n String.format(\"couldn't find an ID to jump to. Are you sure there is a message with that ID? (%s)\", id));\n }\n }",
"public void jumpTo(int index)\n {\n assert(index >= 0);\n assert(index < _pattern.length);\n\n _index = index;\n }",
"public void jump() {\n jumped = true;\n teleport = true;\n waste = true;\n }",
"public void jump(String operand, Integer value){\n if (operand.equals(\" \")){\n instrPointer = value;\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }",
"@Step(\"Jump to url: {0}\")\n public PageBase jumpTo(String url) {\n webDriver.navigate().to(url);\n return this;\n }",
"public static GotoExpression goto_(LabelTarget labelTarget, Expression expression, Class type) { throw Extensions.todo(); }",
"@Test\n public void testJump2()\n {\n System.out.println(\"jump\");\n String jmpStr = \"JNE\";\n assertEquals(\"101\", N2TCode.jump(jmpStr));\n }",
"public void visit(JumpStatement jumpStatement) {\n\t}",
"public static GotoExpression goto_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }",
"public static GotoExpression goto_(LabelTarget labelTarget, Class type) { throw Extensions.todo(); }",
"public static GotoExpression goto_(LabelTarget labelTarget) { throw Extensions.todo(); }",
"static void complete_jump_req(String passed){\n\t\t//\t\tString program_counter = decimel_to_hexa(PC);\n\t\t//\t\tfill_the_stack(program_counter.substring(0,2),program_counter.substring(2,4),psw());\n\t\tif(labels.get(passed)==null)\n\t\t\tPC = hexa_to_deci(passed);\n\t\telse\n\t\t\tPC = labels.get(passed);\n\t\tmodified =true;\n\t}",
"public static void jump(String jumpOpcode, Label labelName) {\n emit(jumpOpcode, labelName.toString());\n }",
"public void connectTo(NAddress address) throws IOException;",
"public void setBaseAddress(int targetAddress, int baseAddress);",
"static void perform_jmp(String passed){\n\t\tint type = type_of_jmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public final void mJMP() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.JMP;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:720:5: ( 'jmp' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:720:7: 'jmp'\n\t\t\t{\n\t\t\t\tthis.match(\"jmp\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"public void setJumping(boolean jumping) { isJumping = jumping; }",
"private void jump() {\r\n\t\tjumping = true;\r\n\t\tjumpKeyPresses++;\r\n\t\tif (jumpKeyPresses < 12) {\r\n\t\t\tif (jumpKeyPresses == 1)\r\n\t\t\t\tdy = -0.02 * (1 / (0.3 + fatLevel));\r\n\t\t\tdy -= 0.001 * (1 / (0.3 + fatLevel));\r\n\t\t}\r\n\t}",
"public static void jump(Token t, Label labelName) {\n emit(t, labelName.toString());\n }",
"@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}",
"@Override\n public final void noteAbsoluteEntryPoint(int address) {\n }",
"void jump() {\n if (myIsJumping == myNoJumpInt) {\n myIsJumping++;\n // switch the cowboy to use the jumping image\n // rather than the walking animation images:\n setFrameSequence(null);\n setFrame(0);\n }\n }",
"public static void jump(Jumpable object){\n\n if (object.canJump()) {\n ///\n }\n\n }",
"public void setJumpValue(int jumpValue) {\n this.jumpValue = jumpValue;\n }",
"@Test\n public void testJump() {\n world.add(new Location(4, 4), jumper);\n assertEquals(new Location(4, 4), jumper.getLocation());\n jumper.jump();\n assertEquals(new Location(2, 4), jumper.getLocation());\n }",
"protected abstract T jump(T neighbor, T current, Set<T> goals);",
"public void jumpToLine(int line) {\n setSelection(line,0);\n }",
"public Jump(String branchLabel) {\r\n\t\tcode = ActionConstants.JUMP;\r\n\t\tthis.branchLabel = branchLabel;\r\n\t}",
"@Override\n\tpublic InternalCoordinate findJump(InternalCoordinate c) {\n\t\treturn null;\n\t}",
"public void jumpLocation ( Point loc )\r\n\t{\r\n\t\tif ( loc.x < 0 || loc.y < 0 || \r\n\t\t\t\t loc.x >= size || loc.y >= size )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tmaze [currentRow] [currentCol].removeWalker(Direction.NONE);\r\n\t\tcurrentRow = loc.y;\r\n\t\tcurrentCol = loc.x;\r\n\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t}",
"void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }",
"public void jump() {\n if (this.numJumps < 3) {\n if (this.state.equals(\"onLeftWall\")) {\n this.moveRight();\n this.setSpecialState(\"jumpFromWall\", 180);\n } else if (this.state.equals(\"onRightWall\")) {\n this.moveLeft();\n this.setSpecialState(\"jumpFromWall\", 180);\n }\n this.yVel = this.jumpVel;\n this.numJumps++;\n }\n\n\n }",
"@Test\n\tpublic void testJump() {\n\t\tActorWorld world = new ActorWorld();\n\t\tworld.add(new Location(5, 5), alice); // alice default direction is NORTH\n\t\talice.jump();\n\t\tassertEquals(new Location(3, 5), alice.getLocation());\n\t}",
"public void setJumping(boolean isJumping) {\r\n\t\tthis.isJumping = isJumping;\r\n\t}",
"public void setJumpCount(int jumpCount) {this.jumpCount = jumpCount;}",
"public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }",
"public static void jumpToApp(String paramString1, String paramString2, String paramString3, String paramString4, boolean paramBoolean, String paramString5, String paramString6, int paramInt, String paramString7) {\n }",
"public void moveJump() {\n\t\t// getSpeed().setY(-getClimbPertTick());\n\t\t// setJumpTTL(getJumpTTL() - 1);\n\n\t}",
"public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}",
"public void setJumpState(int n)\n{\n jumpState=n;\n}",
"public static GotoExpression makeGoto(GotoExpressionKind kind, LabelTarget target, Expression value, Class type) { throw Extensions.todo(); }",
"public void jump() {\n\t\tif(!dead) {\r\n\t\t\tplaying = true;\r\n\t\t\tvelocity = jumpVelocity;\r\n\t\t\tplaySound(\"jump1.wav\");\r\n\t\t}\r\n\t}",
"public void Goto() {\n\t\t\n\t}",
"void onClick(Address addr);",
"public void setAddress(int address)\n {\n this.address = address;\n }",
"@Override\n\tpublic void onJump(PlatformPlayer player) {\n\t\t\n\t}",
"static void jump_to_pchl(String passed){\n\t\tString ad = registers.get('H')+registers.get('L');\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified = true;\n\t}",
"public LookUpSwitchInstruction(byte opcode,\n int defaultOffset,\n int[] cases,\n int[] jumpOffsets)\n {\n this.opcode = opcode;\n this.defaultOffset = defaultOffset;\n this.cases = cases;\n this.jumpOffsets = jumpOffsets;\n }",
"static void jump_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}",
"private void jump() {\r\n\t\tvelocity = new Vector(velocity.getX(), 7.0);\r\n\t}",
"protected void go(int loc1) {\n checkMemLocation(loc1);\n pc = loc1;\n int code = memory[pc];\n do {\n nextCode(code);\n code = memory[++pc];\n if (code == 0) {\n debugging = false;\n }\n } while (code != 0 && !breakPoints.contains(pc));\n }",
"public void haltForBreakpoint(int address){\r\n lblStatus.setText(\"Breakpoint hit!\");\r\n btnStop.setEnabled(false);\r\n btnRun.setEnabled(true);\r\n btnStep.setEnabled(true);\r\n updateDisplay();\r\n updateDisassembly(address);\r\n }",
"private void JumpTag(ReaderTags tag) {\n\t\tif ((tag.filename).equals(mFilenameString)) {\n\t\t\tsPo_int = (tag.position * 100);\n\t\t\ttry {\n\t\t\t\tmPagefactory.jumpPage(sPo_int);\n\t\t\t\tauto();\n\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\tgetString(R.string.successjump), Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\tgetString(R.string.notcurrenttext), Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t}\n\t}",
"@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }",
"public void jump(InstructionList instructionList) {\n this.stack.push(this.instructionList);\n this.instructionList = instructionList.iterator();\n }",
"public void gotoMarker(IMarker marker) {\n\t\tsetActivePage(getTextEditorIndex());\n\t\tIDE.gotoMarker(getTextEditor(), marker);\n\t}",
"void startClipJump();",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"public void tellYourAddress(){\r\n\t\tSystem.out.println(\"Blick von innen: \" + this);\r\n\t}",
"public boolean canJump() {\n\t\treturn false;\n\t}",
"public void setAddr(String addr) {\n this.addr = addr;\n }",
"public static GotoExpression break_(LabelTarget labelTarget, Expression expression, Class clazz) { throw Extensions.todo(); }",
"public void setReturnAddressOffset(int offset);",
"public String visit(CJumpStmt n, Object argu)\r\n\t{\r\n\t\tint RegNum = n.f1.f0.which;\r\n\t\tMipsOutPut.add(MipsOutPut.Space+\"beqz \" + Regs.RegList[RegNum] + \", \" + n.f2.f0.toString() + \"\\n\");\r\n\t return null;\r\n\t}",
"public void jumpPressed() {\n jumpingPressed = true;\n keys.get(keys.put(Keys.JUMP, true));\n }",
"public void goToPointer() throws EndTaskException {\n\t\twhile (notNextToABeeper()) {\n\t\t\tmove();\n\t\t}\n\t}",
"private void jump(){\n if(getYFromCamera() > -20 && getYFromCamera() < 20){\n getWorld().setCameraLocation(getGlobalX(),getGlobalY() + vSpeed);\n }\n vSpeed = vSpeed - jumpStrength;\n changeJumping(true);\n fall();\n }",
"Target(String host) {\n try {\n address = new InetSocketAddress(InetAddress.getByName(host), 80);\n } catch (UnknownHostException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n failure = e;\n }\n }",
"public Jump_result(Jump_result other) {\r\n }",
"public void forwardJump(int targetTab, int targetSubPage) {\n// jumpFlag = true;\n lastTab = targetTab;\n lastSubPage = targetSubPage;\n mTabPager.setCurrentItem(targetTab);\n Fragment[] fragments = mTabPagerAdapter.fragments;\n switch (targetTab) {\n case 0: /*OverviewFragment*/ break;\n case 1: ((AboutFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 2: ((AdmissionFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 3: ((CurriculumFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 4: ((GraduateAndAlumniFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 5: /*NewsAndEventsFragment*/ break;\n case 6: ((StudentResourcesFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n }\n }",
"public static void main(String[] args) {\n\t\tint[] i= {3,2,1,0,4};\n\t\tSystem.out.println(canJump(i));\n\t}",
"public void goToEntry() {\n this.step(GameMap.instance().getEntryTile());\n }",
"public void goTo(Place place) {\n\t\tclientFactory.getPlaceController().goTo(place);\n\t}",
"void onAddressFound(@Nullable Address address);",
"public void nextClockChange(int nextJump);",
"public void gotoMark() {\n\t_source.gotoMark();\n\t_current = _markedNode;\n }",
"@Override\r\n\tpublic void goTo(Place place) {\r\n\t\tclientFactory.getPlaceController().goTo(place);\r\n\t}",
"public static GotoExpression break_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }",
"public void setInternalAddress(String address);",
"static void jump_when_sign(String passed){\n\t\tif(S)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}",
"public void JMP(AreaInstrucao instrucao){\n ponteiro = instrucao.iParametro;\n }",
"public static GotoExpression break_(LabelTarget labelTarget, Class clazz) { throw Extensions.todo(); }",
"public boolean isJumping(){\r\n\t\tif(jumping){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void jump() {\n endSoftwareAnimations();\n }",
"void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}",
"public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}",
"public void MIPSme()\n {\n System.out.println(\"Took func from offset: \" + offset);\n TEMP label_address = TEMP_FACTORY.getInstance().getFreshTEMP();\n sir_MIPS_a_lot.getInstance().load(label_address, src);\n sir_MIPS_a_lot.getInstance().addi(label_address,label_address,4*offset);\n sir_MIPS_a_lot.getInstance().load(dst,label_address); //take the function address to dst\n }",
"void setAddress(String address) throws IllegalArgumentException;",
"public static GotoExpression break_(LabelTarget labelTarget) { throw Extensions.todo(); }",
"public void printAddress()\r\n {\r\n address.printAddress();\r\n }"
]
| [
"0.80481994",
"0.69421774",
"0.6648733",
"0.6567133",
"0.65344757",
"0.6323981",
"0.63019645",
"0.6219086",
"0.6195984",
"0.61367804",
"0.6125588",
"0.6066434",
"0.6061515",
"0.6047447",
"0.60450125",
"0.60251343",
"0.6020912",
"0.5950983",
"0.59088326",
"0.59037614",
"0.5859551",
"0.5849378",
"0.5833044",
"0.58194536",
"0.5810446",
"0.57647055",
"0.5745954",
"0.5744073",
"0.5704931",
"0.5679903",
"0.5673951",
"0.564692",
"0.5633275",
"0.56090486",
"0.5595463",
"0.5592029",
"0.55917376",
"0.55806935",
"0.552883",
"0.5523258",
"0.55183434",
"0.5490608",
"0.5434035",
"0.5408337",
"0.53837955",
"0.5379529",
"0.53709275",
"0.5363641",
"0.5354692",
"0.53482735",
"0.5340757",
"0.5327204",
"0.5325176",
"0.53207695",
"0.53198105",
"0.5318355",
"0.5314113",
"0.53113675",
"0.53070426",
"0.5300056",
"0.52848125",
"0.5284805",
"0.52844644",
"0.52833945",
"0.527396",
"0.52725685",
"0.5267481",
"0.5267481",
"0.52610326",
"0.52600545",
"0.5259242",
"0.5248715",
"0.5239386",
"0.5239268",
"0.52371866",
"0.52296025",
"0.5225486",
"0.5216463",
"0.5212581",
"0.5173517",
"0.517335",
"0.5171461",
"0.5168797",
"0.51571476",
"0.51542723",
"0.51504356",
"0.51504236",
"0.51351315",
"0.51341915",
"0.51340616",
"0.5130029",
"0.512949",
"0.5115008",
"0.51123893",
"0.5101547",
"0.5100975",
"0.50882244",
"0.5087986",
"0.5078859",
"0.5077339"
]
| 0.64367145 | 5 |
Pushes an object onto the stack. Disables garbage collection for any interim object pushed onto the stack. Objects are released after the evaluation completes. | public void push(Object object) {
fStack.push(object);
if (object instanceof IJavaObject) {
disableCollection((IJavaObject) object);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push(Object obj) {\n stack.push(requireNonNull(obj));\n }",
"public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }",
"private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}",
"public synchronized void push(T object) throws PoolException {\n trace(\"push: \");\n if ((getMaxSize() != INFINITE && getStack().size() >= getMaxSize()) || !isValid(object)) {\n doDestroy(object);\n } else if (getStack().contains(object)) {\n throw new PoolException(\"can't check in object more than once: \" + object);\n } else {\n getStack().add(object);\n inUse--;\n }\n }",
"@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }",
"public void push(E object) {stackList.insertAtFront(object);}",
"public final void push(final Object object)\n {\n synchronized (this.stack)\n {\n try\n {\n this.stack[this.pointer++] = object;\n }\n catch (ArrayIndexOutOfBoundsException arrayIndexOutOfBoundsException)\n {\n ArrayList<Object> list = new ArrayList<Object>(Arrays.asList(this.stack));\n list.add(null);\n this.stack = list.toArray();\n this.pointer--;\n this.push(object);\n }\n }\n }",
"public void push( Object obj )\n {\n this.top = new Node( obj, this.top );\n \n this.count++;\n }",
"void push(E Obj);",
"public void push() throws EvaluationException {\n\t\tsetTimeout(Integer.MAX_VALUE);\n\t\tprintln(\"(push 1)\");\n\t\tcheckSuccess();\n\t\tsymbolsByStackPos.addLast(new HashSet<>());\n\t}",
"public void recycle(Object object)\r\n/* 180: */ {\r\n/* 181:206 */ if (object != this.value) {\r\n/* 182:207 */ throw new IllegalArgumentException(\"object does not belong to handle\");\r\n/* 183: */ }\r\n/* 184:209 */ this.stack.push(this);\r\n/* 185: */ }",
"void push(Object elem);",
"public Object push(Object o) {\n\t\tadd(o);\n\t\treturn o;\n\t}",
"public void push(AnyType e) throws StackException;",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"public void push(T value) {\n \tstack.add(value);\n }",
"public void push(Object ob){\n \t Stack n_item=new Stack(ob);\n \tn_item.next=top;\n \ttop=n_item;\n }",
"public void push(E obj) {\n super.add(obj);\n }",
"@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}",
"public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}",
"public void push(final int operand) throws StackOverflowException {\n if (stack.unused() == 0) {\n throw new StackOverflowException(\"Stack is full!\");\n } else {\n stack.push(operand);\n }\n }",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}",
"public void push(T x);",
"@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}",
"void push(T x);",
"public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }",
"void push(T t);",
"public void push (E item){\n this.stack.add(item);\n }",
"public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }",
"public Object pop();",
"public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }",
"public void push( int value ) throws StackOverflowException { }",
"void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }",
"public void pop() {\n myCStack.delete();\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"void pushEvaluationStack(RTObject obj) {\n\t\tListValue listValue = null;\r\n\t\tif (obj instanceof ListValue)\r\n\t\t\tlistValue = (ListValue) obj;\r\n\r\n\t\tif (listValue != null) {\r\n\t\t\t// Update origin when list is has something to indicate the list\r\n\t\t\t// origin\r\n\t\t\tInkList rawList = listValue.getValue();\r\n\t\t\tList<String> names = rawList.getOriginNames();\r\n\t\t\tif (names != null) {\r\n\t\t\t\tArrayList<ListDefinition> origins = new ArrayList<ListDefinition>();\r\n\t\t\t\tfor (String n : names) {\r\n\t\t\t\t\tListDefinition def = story.getListDefinitions().getDefinition(n);\r\n\t\t\t\t\tif (!origins.contains(def))\r\n\t\t\t\t\t\torigins.add(def);\r\n\t\t\t\t}\r\n\t\t\t\trawList.origins = origins;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tevaluationStack.add(obj);\r\n\t}",
"public AnyType pop() throws StackException;",
"private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }",
"public void push(T data) {\n top = new StackNode(data, top);\n }",
"Object pop();",
"void push(Object item);",
"public void push(Object value) {\n\t\tthis.add(value);\n\t}",
"public abstract Object pop();",
"public ObjectStack() {\n\t\tcollection = new ArrayBackedIndexedCollection();\n\t}",
"public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }",
"public abstract boolean push(Object E);",
"public void push(E value);",
"@Override\n\tpublic boolean push(T e) throws StackOverflowException {\n\t\t//If the stack is full, throw Exception\n\t\tif(this.isFull()) throw new StackOverflowException(\"The stack is full. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\tNode newNode = new Node(e, topNode);\n\t\t\ttopNode = newNode;\n\t\t\tnodeCount++;\n\t\t\treturn true;\n\t\t}\n\t}",
"@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }",
"@Override\r\n public boolean canBePushed()\r\n {\r\n return true;\r\n }",
"public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }",
"void push(E e);",
"void push(E e);",
"public void drainStack() {\n doDrain(current);\n }",
"@Override\n\tpublic boolean isRefush() {\n\t\treturn false;\n\t}",
"boolean push(int x) \r\n {\n if(top >= (MAX-1))\r\n {\r\n System.out.println(\"Stack Overflow Occurred!\");\r\n return false;\r\n }\r\n //Write your code here\r\n a[++top] = x;\r\n System.out.println(\"Pushed \" + x + \" into stack\");\r\n return true;\r\n }",
"public final void putObject(Object obj) \n\t{\n\tif (obj == null)\n\t\treturn;\n\t\t\n\tif (fTop < fBin.length)\n\t\tfBin[fTop++] = obj;\n\telse\n\t\t{\n\t\tfOverflowCounter++;\n\t\tfHasOverflowed = true;\n\t\t}\n\t}",
"public Object pop() {\n return stack.pop();\n }",
"void push(RtfCompoundObject state) {\r\n _top = new RtfCompoundObjectStackCell(_top, state);\r\n }",
"public void push(T aValue);",
"@Test\n public void testPush(){\n ms=new MyStack();\n ms.push(1);\n assertFalse(ms.IsEmpty());\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public void push(Object o){\n if (count<maxsize && maxsize!=-1)\n { insert(o);}\n else if (maxsize==-1){ insert(o);}\n else { System.out.println(\"Can't add element.\");}\n }",
"stack() {\n arr = (E[]) new Object[size];\n }",
"public void push(E o) {\n list.add(o);\n }",
"@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}",
"public void push(E e) throws Exception;",
"@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }",
"public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}",
"public void push(E o) \r\n {\r\n list.add(o);\r\n }",
"public Integer push(Integer val){\n return runStack.push(val);\n }",
"@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}",
"public ObjectStack() {collection = new ArrayIndexedCollection();}",
"public void push(E e) {\n\t\ttop = new SNode<E>(e, top);\n\t}",
"public synchronized void push(Object o) {\n itemcount++;\n addElement(o);\n notify();\n }",
"public void pop() throws StackUnderflowException;",
"public void push(T value) {\n\t\tNode current = new Node(value);\n\t\tif (isEmpty())\n\t\t\ttop = current; // if empty stack\n\t\telse {\n\t\t\tcurrent.next = top;\n\t\t\ttop = current;\n\t\t}\n\t}",
"public StackImpl<T> push(T ele) {\r\n\t\tNode oldTop = top;\r\n\t\ttop = new Node(ele);\r\n\t\ttop.next = oldTop;\r\n\t\tsize++;\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"public void pop();",
"public void push(Object anElement);",
"@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }",
"public void popScope() {\n this.stack.removeFirst();\n }",
"public void push(int x) {\n load();\n stack.push(x);\n unload();\n }",
"public void push(E data);",
"public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }",
"void push(int x);",
"public void push(int x) {\r\n inStack.push(x);\r\n }",
"public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}",
"public void push(T data);",
"public void push(T data);",
"public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}",
"private void pop() {\r\n pop( false );\r\n }",
"public ObjectStack() {\n this.collection = new ArrayIndexedCollection();\n }",
"public void push(T elem);",
"public void push(int x, int y) throws FieldIsPushedException, FieldIsMineException;"
]
| [
"0.7100464",
"0.7087685",
"0.68930215",
"0.66744447",
"0.6633964",
"0.6582661",
"0.65020305",
"0.6492916",
"0.6271131",
"0.626464",
"0.60627437",
"0.5917722",
"0.5893606",
"0.58672494",
"0.5804196",
"0.5785357",
"0.57713145",
"0.57089317",
"0.57063603",
"0.5700459",
"0.56965363",
"0.5672791",
"0.5635156",
"0.5607788",
"0.5567817",
"0.5564148",
"0.5547469",
"0.55247396",
"0.5521999",
"0.5520839",
"0.5499201",
"0.549917",
"0.54917693",
"0.54909873",
"0.5488503",
"0.54760015",
"0.5465726",
"0.5455799",
"0.5448068",
"0.54439145",
"0.5436604",
"0.54323703",
"0.54310274",
"0.54225963",
"0.54211414",
"0.54019433",
"0.5400015",
"0.53914464",
"0.53893656",
"0.5387457",
"0.5381332",
"0.53738683",
"0.53675777",
"0.53446907",
"0.5330293",
"0.5323419",
"0.53180677",
"0.53180677",
"0.52996236",
"0.52861387",
"0.527333",
"0.5272044",
"0.5263404",
"0.5259658",
"0.52583635",
"0.52468187",
"0.52211356",
"0.5219132",
"0.52156866",
"0.5214083",
"0.5196803",
"0.51947016",
"0.5189383",
"0.51807964",
"0.5179427",
"0.5177161",
"0.51695883",
"0.5153609",
"0.51489574",
"0.5147197",
"0.51463383",
"0.5143672",
"0.5134224",
"0.5131513",
"0.5130779",
"0.513038",
"0.511831",
"0.51144874",
"0.51119393",
"0.5106176",
"0.5098992",
"0.50956917",
"0.5091377",
"0.5086242",
"0.5086242",
"0.50840783",
"0.50784075",
"0.5076703",
"0.5074605",
"0.5060565"
]
| 0.72892064 | 0 |
Avoid garbage collecting interim results. | private void disableCollection(IJavaObject value) {
if (fPermStorage == null) {
fPermStorage = new ArrayList<IJavaObject>(5);
}
try {
value.disableCollection();
fPermStorage.add(value);
} catch (CoreException e) {
JDIDebugPlugin.log(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Instance> flushResultBuffer() {\n\t\tList<Instance> resultBuffer = this.resultBuffer;\n\t\tthis.resultBuffer = new LinkedList<Instance>();\n\t\treturn resultBuffer;\n\t}",
"public void clear() {\n results.clear();\n }",
"public void clear() {\n\t\tresults.clear();\n\t}",
"private void resultResetHelper()\r\n {\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n }",
"private static void cleanAutomationResults() {\n \tLOG.info(\"Deleting unneccessary automation results.\");\n \t\n \t// Stop the graph database because it gets deleted\n \tDBUtil.closeGraph();\n \t\n \t// Remove clustering results\n \tFileUtil.deleteFileOrDirectory(clArgs.clusteringOutDir);\n \t\n \t// Remove graph database\n \tFileUtil.deleteFileOrDirectory(DBUtil.getNeo4jPath());\n }",
"@Generated(hash = 750945346)\n public synchronized void resetResult() {\n result = null;\n }",
"void reset() {\r\n\t\tresult = 0;\r\n\t}",
"private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tzSampleRecord.recycle();\n\t\tySampleRecord.recycle();\n\t\tsuper.finalize();\n\t}",
"void ComputeResult(Object result);",
"@Override\n\tprotected void finalize() {\n\t\tif(refcount>0){\n\t\t\tprint(\"Error \"+refcount+\"Shared \"+id+\"objects in use\");\n\t\t}\n\t}",
"@Override\r\n protected void finalize() throws Throwable {\n System.out.println(\"元素死亡\");\r\n super.finalize();\r\n }",
"@Override\r\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\r\n\t}",
"@Override\n\tprotected void setAllResultsToPar() {\n\t}",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t\tclearData();\n\t}",
"private synchronized void shrink() {\n if (isMutable()) {\n throw new IllegalStateException(\"Can't shrink a mutable test result!\");\n }\n\n // Should ensure we have a resultsFile.\n sections = null;\n\n // NOTE: if either of these are discarded, it may be a good idea to\n // optimize reload() to not read the section/stream data since\n // a small property lookup could incur a huge overhead\n //props = null; // works, may or may-not improve memory usage\n //desc = null; // doesn't work in current implementation\n }",
"@Override\n protected void finalize() throws Throwable\n {\n finalize(pointer);\n super.finalize();\n }",
"@Override\n\tpublic void finalize() throws java.lang.Throwable {\n super.finalize();\n\n nodeCount = 0;\n patternCount = 0;\n matrixCount = 0;\n\n partials = null;\n// storedPartials = null;\n \n currentPartialsIndices = null;\n storedPartialsIndices = null;\n// states = null;\n matrices = null;\n currentMatricesIndices = null;\n storedMatricesIndices = null;\n\n scalingFactors = null;\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}",
"public void finalize() {\r\n\r\n mask = null;\r\n newMask = null;\r\n newShortMask = null;\r\n System.gc();\r\n }",
"protected void finalize() throws Throwable {\n\t\tsuper.finalize();\r\n\t\tthis.globalStaticDataMap.clear();\r\n\t\trowSet = null;\r\n\t}",
"public void freeScrap() {\n\r\n\t}",
"@Override\n\tpublic void finalize() {\n\t\t\n\t}",
"private static void doWeTerminate() {\n if(nrOfResults == nrOfWorks){\n //clear this round\n nrOfWorks = 0;\n nrOfResults = 0;\n finished = true;\n return;\n }\n }",
"public void endCompute();",
"private static void doMemoryReleases() {\n\r\n OptimizedJavaRecognizer.releaseMemory();\r\n FastJavaLexer.clear();\r\n }",
"public void finalize(){\r\n srcImage = null;\r\n sigmas = null;\r\n xDataRound = null;\r\n yDataRound = null;\r\n zDataRound = null;\r\n super.finalize();\r\n }",
"void unsetLastrunresult();",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\texecutorService.execute(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tagentResourceQuotas.remove(agentId);\n\t\t\t\t\t\tagentResourceUsages.remove(agentId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\t\t\tfor (QueryCache cache: queryCaches.values())\n\t\t\t\t\t\t\t\tcache.result.remove(agentId);\n\t\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}",
"void smem_clear_result(IdentifierImpl state)\n {\n final SemanticMemoryStateInfo smem_info = smem_info(state);\n while(!smem_info.smem_wmes.isEmpty())\n {\n final Preference pref = smem_info.smem_wmes.remove(); // top()/pop()\n \n if(pref.isInTempMemory())\n {\n recMem.remove_preference_from_tm(pref);\n }\n }\n }",
"private static void gc() {\n System.gc();\n System.gc();\n }",
"protected void finalize() throws Throwable {\n clear();\n }",
"protected void runAfterIterations() {}",
"@Override\n protected Integer compute() {\n\n\n return null;\n }",
"public void cleanAfterSample() {\n if(previousResult != null) {\n previousResult.cleanAfterSample();\n }\n samplerContext.clear();\n }",
"public void finalize() {\n AppMethodBeat.i(66593);\n if (this.mJitterBuffer != 0) {\n nativeDestoryJitterBuffer(this.mJitterBuffer);\n this.mJitterBuffer = 0;\n }\n AppMethodBeat.o(66593);\n }",
"public void finalize() {\r\n srcImage = null;\r\n destImage = null;\r\n buffer = null;\r\n validBuffer = null;\r\n idealBuffer = null;\r\n objectBuffer = null;\r\n super.finalize();\r\n }",
"private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }",
"public void finalize() {\r\n super.finalize();\r\n }",
"@Override\n public void finalize() throws java.lang.Throwable {\n m_nNodes = 0;\n m_nPatterns = 0;\n m_nMatrices = 0;\n\n m_fPartials = null;\n m_iCurrentPartials = null;\n m_iStoredPartials = null;\n m_iStates = null;\n m_fMatrices = null;\n m_iCurrentMatrices = null;\n m_iStoredMatrices = null;\n m_fRootPartials = null;\n m_fPatternLogLikelihoods = null;\n m_nPatternWeights = null;\n }",
"protected void preDisply(List allData) {\n }",
"public void resetCachedResultSet() {\n\t\tthis.cachedResultSetForDelta = null;\n\t}",
"public DefaultResults() {\n this.results = new ArrayList<R>();\n this.totalCc = new ArrayList<Long>();\n this.maximalCc = new ArrayList<Long>();\n this.totalBytes = new ArrayList<Long>();\n this.maximalBytes = new ArrayList<Long>();\n this.maximalMemory = new ArrayList<Long>();\n }",
"public void purge() {\n\t\tIterator<T> it = iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t}\n\t}",
"public abstract void finalizeIt();",
"@Override\n\tprotected ProducedData performs() {\n\t\treturn null;\n\t}",
"private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }",
"@Override\n\tpublic void cleanup() {\n\t\tstopThread=true;\n\t\texecutorService.shutdown();\n\t\t//LOG.info(\"ratioCalculateInteger:\"+ratioCalculateInteger.get());\n\t}",
"private final void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n _profile._remoteBlkDone = System.currentTimeMillis();\n _fs.blockForPending();\n _profile._localBlkDone = System.currentTimeMillis();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = subShift(H2O.SELF.index());\n int nhi = _nhi; // Save before copyOver crushes them\n if( _res == null ) _nhi=-1; // Flag for no local results *at all*\n else if( _res != this ) { // There is a local result, and its not self\n _res._profile = _profile; // Use my profile (not childs)\n copyOver(_res); // So copy into self\n }\n closeLocal();\n if( nlo==0 && nhi == H2O.CLOUD.size() ) {\n // Do any post-writing work (zap rollup fields, etc)\n _fr.reloadVecs();\n for( int i=0; i<_fr.numCols(); i++ )\n _fr.vecs()[i].postWrite();\n postGlobal();\n }\n }",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"@Override\r\n protected void finalize() throws Throwable {\r\n super.finalize();\r\n dispose();\r\n }",
"public void intermediateProcessing() {\n //empty\n }",
"private void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n if( _fs != null ) // Block on all other pending tasks, also\n _fs.blockForPending();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = _nlo, nhi = _nhi; // Save these before copyOver crushes them\n if( _res == null ) _nlo = -1; // Flag for no local results *at all*\n else if( _res != this ) // There is a local result, and its not self\n copyOver(_res); // So copy into self\n if( nlo==0 && nhi == H2O.CLOUD.size() ) // All-done on head of whole MRTask tree?\n _fr.closeAppendables(); // Final close ops on any new appendable vec\n }",
"public void unsetTotalResults()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(TOTALRESULTS$4);\n }\n }",
"@Override\n protected void finalize() throws Throwable {\n clear();\n \n // Finally free the partition area itself\n unsafe.freeMemory(partitionAddress);\n \n super.finalize();\n }",
"protected void finalize()\n {\n dispose();\n }",
"public void gc();",
"public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}",
"public Object doProcess() {\n List<Result> retv = new ArrayList<Result>();\n try {\n current_time = NTPDate.currentTimeMillis();\n current_time_nano = Utils.nanoNow();\n\n try {\n currentProcs = ProcFSUtil.getCurrentProcsHash();\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \" [ myMon ] ProcFSUtil.getCurrentProcsHash exc\", t);\n }\n }\n final Result result = getResult();\n if(result != null) {\n result.addSet(\"Max Memory\", Runtime.getRuntime().maxMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Memory\", Runtime.getRuntime().totalMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Free Memory\", Runtime.getRuntime().freeMemory() / MEGABYTE_FACTOR);\n retv.add(result);\n }\n\n Result r = fillMLCPUTimeStats();\n if (r != null)\n retv.add(r);\n\n r = fillParamStats();\n if (r != null)\n retv.add(r);\n\n r = fillProcsStats();\n if (r != null)\n retv.add(r);\n\n if (currentProcs != null && currentProcs.size() > 0) {\n prevProcs = currentProcs;\n }\n\n r = fillPMSStats();\n if (r != null)\n retv.add(r);\n\n r = fillMLLUSHelperStats();\n if (r != null)\n retv.add(r);\n\n r = fillPWStats();\n if (r != null)\n retv.add(r);\n\n r = fillTCWStats();\n if (r != null)\n retv.add(r);\n\n if (IS_MAC) {\n r = fillFromMAC();\n if (r != null)\n retv.add(r);\n }\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \"[ myMon ] [ HANDLED ] got ex main loop ... \", t);\n }\n return null;\n } finally {\n last_time_nano = current_time_nano;\n }\n\n currentProcs = null;\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FINEST, \" [ myMon ] Returning ... \\n\" + retv);\n }\n return retv;\n }",
"protected void clearResolvedObjects() {\n\t\ttype = null;\n\t\tmanagedType = null;\n\t\ttypeDeclaration = null;\n\t}",
"protected void finalize() { \n \tstopSelf(); \n }",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }",
"@Override()\r\n protected void finalize() {\r\n destroy();\r\n }",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n sliceBuffer = null;\r\n super.finalize();\r\n }",
"public void clear()\r\n {\r\n result = null;\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n resultDoubles = null;\r\n }",
"public synchronized void resetMemoryValues() {\n memoryValues = null;\n }",
"private void cleanGarbageInfos()\r\n\t{\r\n\t\tfinal Iterator<SubscriberInfo> lIter = this.subscriberInfos.iterator();\r\n\t\twhile (lIter.hasNext())\r\n\t\t{\r\n\t\t\tfinal SubscriberInfo lInfo = lIter.next();\r\n\t\t\tif (lInfo.isGarbage())\r\n\t\t\t{\r\n\t\t\t\tlIter.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void garbageColl(){\n\t\tfor(Page p: pageList){\n\t\t\tp.garbageColl();\n\t\t}\n\t\tpageIndex = 0;\n\t}",
"void executionOver() {\n this.reporter = null;\n this.options = null;\n this.executorEngine = null;\n this.progressSuppressingEventHandler = null;\n this.outputService = null;\n this.buildActionMap = null;\n this.completedAndResetActions = null;\n this.lostDiscoveredInputsMap = null;\n this.actionCacheChecker = null;\n this.outputDirectoryHelper = null;\n }",
"@Override\n public void cleanup() {\n \n }",
"@Override\n public void cleanup() {\n \n }",
"public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}",
"protected void finalize() {\n\t\tdestroyImages();\n\t}",
"private void reset() {\n \t resultCount =0;\n\t searchStatus = 0;\n\t resultSetStatus = 0;\n\t errorCode = 0;\n\t errorMsg = \"None provided\";\n\t Present = null;\n\t dbResults = null;\n oclc7= null;\n oclc8 = null;\n requestLength=0;\n responseLength=0;\n }",
"protected void finalize() throws Throwable{ \n //------------------------------------------------------------------------- \n super.finalize(); \n }",
"public void clearOptimizingSuccessors() {\n this.optimizingSuccessors.clear();\n }",
"public void clearResultEntries() {\n sp_searchEntries.removeAll();\n }",
"@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}",
"public void finalize()\n throws Throwable\n {\n pythonDecRef();\n }",
"public void finalize();",
"@Override\n public void cleanup() {\n }",
"ResultLog() {\r\n interactions = new boolean[1];\r\n indexRef = 0;\r\n }",
"@Override\n protected final void process() throws OutOfMemoryError {\n if(!caching()) return;\n \n // get station density\n Vector<EvaluationResult> stationSpeed = Evaluation.getResult(StationSpeed.class, this.opts); \n \n // get section that selected from TICAS GUI\n Section section = this.opts.getSection();\n \n // get stations including the section\n Station[] stations = section.getStations(this.detectorChecker); \n \n Period[] periods = this.opts.getPeriods();\n \n int idx = 0; \n int startIdx = 0;\n if(stationSpeed.size() > 1) startIdx = 1;\n for(int i=startIdx; i<stationSpeed.size(); i++)\n {\n if(printDebug && idx < periods.length) System.out.println(\" - \" + periods[idx++].getPeriodString()); \n \n EvaluationResult res = EvaluationResult.copy(stationSpeed.get(i));\n res = this.removeVirtualStationFromResult(res);\n EvaluationResult accelRes = EvaluationResult.copy(stationSpeed.get(i));\n accelRes = this.removeVirtualStationFromResult(accelRes);\n \n // add first station data (all of data are 0)\n for(int r=accelRes.ROW_DATA_START(); r<res.getRowSize(0); r++) {\n accelRes.set(accelRes.COL_DATA_START(), r, 0D);\n }\n \n for(int c=res.COL_DATA_START()+1; c<res.getColumnSize(); c++)\n {\n int stationIdx = c-res.COL_DATA_START();\n for(int r=res.ROW_DATA_START(); r<res.getRowSize(c); r++)\n {\n double u1 = Double.parseDouble(res.get(c-1, r).toString());\n double u2 = Double.parseDouble(res.get(c, r).toString());\n double distance = TMO.getDistanceInMile(stations[stationIdx-1], stations[stationIdx]);\n double accel = getAcceleration(u1, u2, distance);\n accelRes.set(c, r, accel);\n }\n }\n this.results.add(accelRes);\n } \n hasResult = true;\n }",
"protected void finalize() throws Throwable\n {\n super.finalize();\n \n }",
"protected void finalize() throws Throwable\n {\n super.finalize();\n \n }",
"protected void finalize() throws Throwable\n {\n super.finalize();\n \n }",
"protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }",
"public Vector getResultObjects() {\n\treturn _vcResults;\n }",
"void unsetNumberOfResults();",
"public void finalize()\r\n\t{\n\t}",
"private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}",
"public void resetStatistics()\n {\n }",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"@Override\n protected void performCleanup() {\n }",
"@Override\n\t\tprotected void finalize() throws Throwable {\n\t\t\tif (pool != null) {\n\t\t\t\tdone();\n\t\t\t\tpool = null;\n\t\t\t}\n\t\t}",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"@Override\r\n public void cleanup() {\n }"
]
| [
"0.63756406",
"0.6086805",
"0.6045541",
"0.5907185",
"0.58869886",
"0.58648956",
"0.58551407",
"0.58390045",
"0.58224124",
"0.58099335",
"0.5802018",
"0.5801916",
"0.5786534",
"0.5782309",
"0.5760165",
"0.57516706",
"0.574815",
"0.5644574",
"0.56416464",
"0.56416464",
"0.56416464",
"0.5635486",
"0.5633192",
"0.5619525",
"0.56141824",
"0.5612947",
"0.56097716",
"0.56017494",
"0.55918825",
"0.55814165",
"0.55800784",
"0.55693924",
"0.5563133",
"0.55624324",
"0.5559955",
"0.5558356",
"0.55507827",
"0.55363417",
"0.5535704",
"0.5534291",
"0.5530474",
"0.5529186",
"0.5524395",
"0.5513002",
"0.5507701",
"0.55065197",
"0.5502642",
"0.5499524",
"0.54978174",
"0.5497421",
"0.548757",
"0.54832417",
"0.5477272",
"0.5476351",
"0.5474311",
"0.5473211",
"0.54722196",
"0.54646605",
"0.54584795",
"0.5446764",
"0.5446701",
"0.544349",
"0.5441704",
"0.54406863",
"0.5438562",
"0.5438392",
"0.5434694",
"0.5433618",
"0.54298174",
"0.54246604",
"0.54167783",
"0.541184",
"0.54080504",
"0.5405167",
"0.5405167",
"0.54008603",
"0.537891",
"0.537846",
"0.53758234",
"0.53740644",
"0.5373212",
"0.5368419",
"0.5352461",
"0.53468597",
"0.5344127",
"0.5343359",
"0.533858",
"0.53385735",
"0.53385735",
"0.53385735",
"0.5332395",
"0.53211045",
"0.5318969",
"0.5307249",
"0.5294311",
"0.52925617",
"0.52895164",
"0.5286142",
"0.5286048",
"0.5285901",
"0.528385"
]
| 0.0 | -1 |
Reenable garbage collection if interim results. | private void releaseObjects() {
if (fPermStorage != null) {
Iterator<IJavaObject> iterator = fPermStorage.iterator();
while (iterator.hasNext()) {
IJavaObject object = iterator.next();
try {
object.enableCollection();
} catch (CoreException e) {
if ((e.getStatus().getException() instanceof VMDisconnectedException)) {
break;
}
JDIDebugPlugin.log(e);
}
}
fPermStorage = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void garbageColl(){\n\t\tfor(Page p: pageList){\n\t\t\tp.garbageColl();\n\t\t}\n\t\tpageIndex = 0;\n\t}",
"boolean shouldRescore() {\n return false;\n }",
"private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }",
"synchronized void recycle() {\n if (lastAsyncStart == 0) {\n return;\n }\n // Ensure in case of error that any non-container threads that have been\n // paused are unpaused.\n notifyAll();\n asyncCtxt = null;\n state = AsyncState.DISPATCHED;\n lastAsyncStart = 0;\n }",
"@Override\r\n\tpublic void debit() {\n\t\tSystem.out.println(\"Core Method of GC\");\r\n\t}",
"public void purge() {\n\t\tIterator<T> it = iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t}\n\t}",
"private void cleanGarbageInfos()\r\n\t{\r\n\t\tfinal Iterator<SubscriberInfo> lIter = this.subscriberInfos.iterator();\r\n\t\twhile (lIter.hasNext())\r\n\t\t{\r\n\t\t\tfinal SubscriberInfo lInfo = lIter.next();\r\n\t\t\tif (lInfo.isGarbage())\r\n\t\t\t{\r\n\t\t\t\tlIter.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void garbageCollectOrphans() {\r\n /**\r\n * The list of orphaned queues was assembled in the browser session \r\n * preceding the current one. At this point it is safe to get rid \r\n * of them; their windows must have long since being destroyed.\r\n */\r\n for (SeleneseQueue q : orphanedQueues) {\r\n q.endOfLife();\r\n }\r\n orphanedQueues.clear();\r\n }",
"private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }",
"@Override\r\n public void onLowMemory() {\r\n super.onLowMemory();\r\n Glide.get(getApplicationContext()).clearMemory();\r\n Glide.get(getApplicationContext()).trimMemory(TRIM_MEMORY_COMPLETE);\r\n System.gc();\r\n }",
"void doGarbageCollection(GCType type);",
"public void clearGenus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }",
"public void gc();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\texecutorService.execute(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tagentResourceQuotas.remove(agentId);\n\t\t\t\t\t\tagentResourceUsages.remove(agentId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\t\t\tfor (QueryCache cache: queryCaches.values())\n\t\t\t\t\t\t\t\tcache.result.remove(agentId);\n\t\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}",
"public boolean isGCEnabled() {\n return runGC;\n }",
"public void shutdown() {\n // From this point forward, only return a poison pill for this retrieval\n // manager, which will cause threads attempting to receive bandwidth\n // allocations to die\n this.shutdown = true;\n }",
"public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}",
"@Override\n\tprotected void finalize() {\n\t\tif(refcount>0){\n\t\t\tprint(\"Error \"+refcount+\"Shared \"+id+\"objects in use\");\n\t\t}\n\t}",
"private void collectGarbageInCache() {\n CacheReference r;\n while ((r = (CacheReference)queue.poll()) != null) {\n fontCache.remove(r.getKey());\n }\n }",
"public static void forceClearBitmap() {\n System.gc();\n System.runFinalization();\n System.gc();\n }",
"protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }",
"private void clearRefuse() {\n \n refuse_ = false;\n }",
"public void reset() {\n this.isExhausted = false;\n }",
"public void clear() {\n results.clear();\n }",
"private synchronized void shrink() {\n if (isMutable()) {\n throw new IllegalStateException(\"Can't shrink a mutable test result!\");\n }\n\n // Should ensure we have a resultsFile.\n sections = null;\n\n // NOTE: if either of these are discarded, it may be a good idea to\n // optimize reload() to not read the section/stream data since\n // a small property lookup could incur a huge overhead\n //props = null; // works, may or may-not improve memory usage\n //desc = null; // doesn't work in current implementation\n }",
"private void limitedMemoryWithoutEviction() {\n Jedis jedis = this.connector.connection();\n System.out.println(\"Collect: \" + jedis.get(\"0\")); // Redis still services read operations.\n System.out.println(jedis.set(\"0\", \"0\")); // Write operations will be refused.\n }",
"public boolean eliminateLoop(){ return false; }",
"private static void runGC () throws Exception \r\n {\n for (int r = 0; r < 4; ++ r) _runGC (); \r\n }",
"private static void gc() {\n System.gc();\n System.gc();\n }",
"public static void runGarbageCollection()\n {\n // see if we need to run the collector...\n //----------------------------------------\n if (bRunCollector())\n {\n String sStaleDuration = \"\";\n int iStaleDuration = 0;\n \n try\n {\n sStaleDuration = PropertyAccessor.getProperty(GATEWAY_PROPERTY_FILE, GARBAGE_COLLECT_STALE_DURATION);\n iStaleDuration = Integer.parseInt(sStaleDuration);\n } \n catch (Exception e)\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_STALE_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return;\n }\n \n if ((sStaleDuration == null) ||\n (sStaleDuration.length() <= 0))\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_STALE_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return;\n }\n \n Calendar oCal = Calendar.getInstance();\n oCal.add(Calendar.SECOND, (-1) * iStaleDuration);\n \n log.debug(\"Running aggregator garbage collection thread now.\");\n \n GarbageCollectorThread oCollectorThread = new GarbageCollectorThread(oCal.getTime());\n oCollectorThread.run();\n dtLastRun = new Date();\n \n }\n }",
"public void evictAll()\n {\n}",
"@Override\n protected void performCleanup() {\n }",
"private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}",
"protected void doOptimizeRealTime()\r\n {\r\n if (isRealTimeOptimizationEnabled && !isOptimizing\r\n && removeCount++ >= cattr.getOptimizeAtRemoveCount())\r\n {\r\n isOptimizing = true;\r\n\r\n log.info(\"{0}: Optimizing file. removeCount [{1}] OptimizeAtRemoveCount [{2}]\",\r\n logCacheName, removeCount, cattr.getOptimizeAtRemoveCount());\r\n\r\n if (currentOptimizationThread == null)\r\n {\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n if (currentOptimizationThread == null)\r\n {\r\n currentOptimizationThread = new Thread(() -> {\r\n optimizeFile();\r\n currentOptimizationThread = null;\r\n }, \"IndexedDiskCache-OptimizationThread\");\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n if (currentOptimizationThread != null)\r\n {\r\n currentOptimizationThread.start();\r\n }\r\n }\r\n }\r\n }",
"void onCleanup() {\n\t\tdimensionMap.forEachValue(e -> {\n\t\t\te.releaseAllChunkData();\n\t\t\treturn true;\n\t\t});\n\t\tdimensionMap.clear();\n\t\tconnectedPlayers.clear();\n\t}",
"public void clear() {\n\t\tresults.clear();\n\t}",
"@Override\r\n protected void finalize() throws Throwable {\n System.out.println(\"元素死亡\");\r\n super.finalize();\r\n }",
"public void finalize() {\r\n\r\n mask = null;\r\n newMask = null;\r\n newShortMask = null;\r\n System.gc();\r\n }",
"public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}",
"public void dispose() {\n processDispose(false);\n }",
"private void reset() throws ParallelException {\r\n\t\tif (_k==2) _g.makeNNbors(true); // force reset (from cache)\r\n\t\t// else _g.makeNbors(true); // don't force reset (from cache): no need\r\n _nodesq = new TreeSet(_origNodesq);\r\n }",
"private static void doMemoryReleases() {\n\r\n OptimizedJavaRecognizer.releaseMemory();\r\n FastJavaLexer.clear();\r\n }",
"@Override\n public void scanAborted() {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }",
"public void resetCachedResultSet() {\n\t\tthis.cachedResultSetForDelta = null;\n\t}",
"public void clearOptimizingSuccessors() {\n this.optimizingSuccessors.clear();\n }",
"@Override\n boolean resetStatistics();",
"private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }",
"protected void finalize() throws Throwable {\n clear();\n }",
"public void deallocate()\n\t{\n\t\t//for(int i = 0; i <= maxsize; i++){\n\t\t//\t notusemap[i].addAll(inusemap[i]);\n\t\t//\t inusemap[i].clear();\n\t\t//}\n\t}",
"public void clear(){\n this.collected.clear();\n }",
"private static void cleanAutomationResults() {\n \tLOG.info(\"Deleting unneccessary automation results.\");\n \t\n \t// Stop the graph database because it gets deleted\n \tDBUtil.closeGraph();\n \t\n \t// Remove clustering results\n \tFileUtil.deleteFileOrDirectory(clArgs.clusteringOutDir);\n \t\n \t// Remove graph database\n \tFileUtil.deleteFileOrDirectory(DBUtil.getNeo4jPath());\n }",
"public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }",
"protected void finalize() { \n \tstopSelf(); \n }",
"public synchronized void clear() {\n collected.clear();\n }",
"@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }",
"@Override\r\n public boolean shouldRevolve() {\n return true;\r\n }",
"@Override\n public void reset() {\n iterator = collection.iterator();\n }",
"public static void gc() {\n // Collecting RAM before collecting EEPROM means that only live objects\n // in RAM with pointers to EEPROM will be considered as roots while\n // marking EEPROM objects.\n Native.gc();\n\n int wordSize = Native.getPersistentMemorySize()/4;\n try {\n int[] bitVector = new int[(wordSize / 32) + 2];\n int[] markingStack = new int[GC_MARK_STACK_SIZE];\n Native.gcPersistentMemory(bitVector, markingStack);\n } catch (OutOfMemoryError oome) {\n throw new OutOfMemoryError(\"Cannot allocate auxillary data structures for persistent gc\");\n }\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tzSampleRecord.recycle();\n\t\tySampleRecord.recycle();\n\t\tsuper.finalize();\n\t}",
"protected void preDisply(List allData) {\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t\tclearData();\n\t}",
"public void enforceMemoryLimits()\n {\n memoryManager.process(queries.values().stream()\n .filter(query -> query.getState() == RUNNING)\n .collect(toImmutableList()));\n }",
"public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }",
"protected void runAfterIterations() {}",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"private void cleanAfterMatch() {\n\t\t// clean all consumables from all calculators\n\t\tfor (AggregationCalculator calc : calculators.values()) {\n\t\t\tcalc.cleanConsumables();\n\t\t}\n\t}",
"@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}",
"private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}",
"protected void clearResolvedObjects() {\n\t\ttype = null;\n\t\tmanagedType = null;\n\t\ttypeDeclaration = null;\n\t}",
"public void clearCollected(){\n\t\tcollected.clear();\n\t}",
"public boolean finalizePartitionCounters() {\n return finalizePartitionCounters;\n }",
"@Override\n protected void finalize() throws Throwable {\n clear();\n \n // Finally free the partition area itself\n unsafe.freeMemory(partitionAddress);\n \n super.finalize();\n }",
"public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }",
"public void resetStatistics()\n {\n }",
"public void stopMeasuring() {\n\tsuper.stopMeasuring();\n}",
"protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"public boolean isGarbage()\r\n\t\t{\r\n\t\t\treturn this.subscriberRef.get() == null;\r\n\t\t}",
"public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }",
"public void reallocateBuckets() { }",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"public void reassignIfNeeded() {\n\t}",
"@Override\n public void retrack() {\n }",
"private List<Instance> flushResultBuffer() {\n\t\tList<Instance> resultBuffer = this.resultBuffer;\n\t\tthis.resultBuffer = new LinkedList<Instance>();\n\t\treturn resultBuffer;\n\t}",
"void invalidateAll();",
"protected void finalize() throws Throwable {\n\t\tsuper.finalize();\r\n\t\tthis.globalStaticDataMap.clear();\r\n\t\trowSet = null;\r\n\t}",
"public void cleanup()\n {\n CogTool.delayedWorkMgr.doDelayedWork(true);\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSystem.gc();\n\t\tthis.init();\n\t}",
"public void markReused() {\n\t\tupdate(Phase.vm_creation, State.SKIPPED);\n\t\tupdate(Phase.installation, State.SKIPPED);\n\t\tupdate(Phase.configuration, State.SKIPPED);\n\t\tsetState(State.SKIPPED);\n\t}",
"@Override\n public void clear() {\n lock.lock();\n try {\n runtime.clear();\n } finally {\n lock.unlock();\n }\n }",
"public synchronized void resetMemoryValues() {\n memoryValues = null;\n }",
"@Override\n\tpublic void cleanup() {\n\t\tstopThread=true;\n\t\texecutorService.shutdown();\n\t\t//LOG.info(\"ratioCalculateInteger:\"+ratioCalculateInteger.get());\n\t}",
"public void forceRecycleAllSegments()\n {\n segmentManager.forceRecycleAll(Collections.emptyList());\n }",
"public void recycle() {\n super.recycle();\n this.output = null;\n }",
"public void cleanAfterSample() {\n if(previousResult != null) {\n previousResult.cleanAfterSample();\n }\n samplerContext.clear();\n }",
"@Override\n protected boolean hasRecycle() {\n return true;\n }",
"public boolean isReleasable() { return isDone(); }",
"@Override\n\tpublic boolean invalidateIt() {\n\t\treturn false;\n\t}",
"public boolean drain() {\n return true;\n }"
]
| [
"0.6194801",
"0.6124935",
"0.5895438",
"0.5874936",
"0.58075213",
"0.5801766",
"0.5782549",
"0.57291514",
"0.572328",
"0.56643987",
"0.5662636",
"0.5633483",
"0.5625663",
"0.56208694",
"0.5590862",
"0.55738133",
"0.55627984",
"0.5548752",
"0.55453515",
"0.5544786",
"0.5540709",
"0.55108225",
"0.55094594",
"0.5496762",
"0.54843575",
"0.54717594",
"0.54680854",
"0.54506534",
"0.54419875",
"0.54242235",
"0.5410616",
"0.5406066",
"0.540467",
"0.5403731",
"0.5389667",
"0.5387337",
"0.5380067",
"0.53572935",
"0.5352392",
"0.5348877",
"0.53480047",
"0.53475076",
"0.5345247",
"0.53371704",
"0.53329766",
"0.53312415",
"0.53293747",
"0.5326588",
"0.5324875",
"0.53233665",
"0.5316969",
"0.5316785",
"0.5311745",
"0.5301981",
"0.5296014",
"0.5292081",
"0.5286447",
"0.52660143",
"0.52625316",
"0.525316",
"0.5251346",
"0.5242195",
"0.5242089",
"0.5239304",
"0.5237831",
"0.52340066",
"0.52314645",
"0.52289516",
"0.52270746",
"0.5221797",
"0.5215778",
"0.52128184",
"0.5201283",
"0.5200895",
"0.52008",
"0.51994556",
"0.5189704",
"0.5188502",
"0.5184583",
"0.5183928",
"0.5178506",
"0.5176537",
"0.5165051",
"0.5164108",
"0.5163777",
"0.51632863",
"0.51554877",
"0.5154188",
"0.515225",
"0.5149573",
"0.51425755",
"0.5133185",
"0.5126691",
"0.51218015",
"0.5121322",
"0.51199585",
"0.5117232",
"0.5115932",
"0.5101919",
"0.50980353"
]
| 0.60193104 | 2 |
Peeks at the top object of the stack | public Object peek() {
return fStack.peek();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}",
"Object peek();",
"public Object peek();",
"public Object peek();",
"@Override\n\tpublic T peek() {\n\n\t\tT result = stack[top-1];\n\t\treturn result;\n\t}",
"public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }",
"E peek() throws EmptyStackException;",
"public AnyType peek() throws StackException;",
"public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }",
"@Override\n\tpublic Object peek() {\n\t\treturn top.data;\n\t}",
"public final Object peek()\n {\n synchronized (this.stack)\n {\n return this.stack[this.pointer - 1];\n }\n }",
"public T peek(){\n if (this.top == null) {\n throw new EmptyStackException();\n }\n return this.top.data;\n }",
"Object peekABoo();",
"int peek() {\r\n\t\treturn stack[top-1];\r\n\t}",
"@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}",
"public E peek(){\n return this.stack.get(stack.size() -1);\n }",
"public T peek() {\n\t\treturn top.value;\n\t}",
"public T peek();",
"public T peek();",
"public T peek();",
"@Override\r\n\tpublic AnyType peek() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\treturn top.data;\r\n\t}",
"public T peek() throws EmptyStackException\r\n {\r\n if(isEmpty())\r\n throw new EmptyStackException();\r\n\r\n return stack[top-1];\r\n }",
"public T peek() {\n if(isEmpty())\n throw new EmptyStackException();\n else\n return stack[topIndex];\n }",
"public T peek() {\n return top.getData();\n }",
"public T top() throws StackUnderflowException;",
"public E top()\n\tthrows EmptyStackException;",
"public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }",
"public final Object peek(final int depth)\n {\n synchronized (this.stack)\n {\n return this.stack[this.pointer - (depth + 1)];\n }\n }",
"@Override\n public E peek() {\n return storage[ top ];\n }",
"public void peek(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(topOfStack==-1){\n System.out.println(\"Stack is empty, can't peek\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Top of the stack: \"+this.arr[this.topOfStack]);\n }",
"T peek();",
"T peek();",
"T peek();",
"T peek();",
"public E peek(){\n\t\treturn top.element;\n\t}",
"int peek() \r\n {\n if(top <0){\r\n System.out.println(\"Stack Empty\");\r\n return -1;\r\n }\r\n return a[top];\r\n }",
"public Object peek(){\n return this.nextObject;\n }",
"public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }",
"public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}",
"@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 3462) \n public static final SubLObject stack_peek(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n return item;\n }\n }\n return NIL;\n }",
"public E popTop() {\n // FILL IN\n }",
"public T peek() throws Exception\r\n\t{\r\n\t\tT peeked = (T) Stack[size];\r\n\t\treturn peeked;\r\n\t}",
"public T top() {\n \treturn stack.get(stack.size() - 1);\n }",
"public int peek(){\n return runStack.peek();\n }",
"public T peek() {\r\n\t\t\r\n\t\tif (isEmpty()) { // Throws exception if empty.\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t} else {\r\n\t\t\t// Returns the data in top Link of stack.\r\n\t\t\treturn topNode.getData();\r\n\t\t} // end if else\r\n\t\t\r\n\t}",
"static void stack_peek(Stack<Integer> stack)\r\n\t{\r\n\t\tInteger element=stack.peek();\r\n\t\tSystem.out.println(\"Element on stack top :\" + element);\r\n\t}",
"public int top() {\n\t\treturn stack.peek();\n \n }",
"public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}",
"public Session peek() {\r\n\t\tif (index >= 0)\r\n\t\t\treturn stack[index];\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public E peek();",
"public E peek();",
"public E peek();",
"public E peek();",
"public E peek();",
"public synchronized Object peek()\n throws EmptyStackException\n {\n if (empty())\n {\n throw new EmptyStackException();\n }\n\n return dataList.get(0);\n }",
"public E peek() {\n if(isEmpty()) throw new EmptyStackException();\n\n return this.stack[top-1];\n }",
"public E peek(){\r\n Node<E> curr = top;\r\n return (E)curr.getData();\r\n \r\n }",
"public E peek() throws EmptyStackException {\n if (isEmpty()) throw new EmptyStackException();\n return top.data;\n }",
"E peek();",
"E peek();",
"E peek();",
"public java.lang.Object peek() {\n /*\n r3 = this;\n monitor-enter(r3);\n r0 = r3.queue;\t Catch:{ all -> 0x001b }\n if (r0 != 0) goto L_0x0008;\n L_0x0005:\n r0 = 0;\n monitor-exit(r3);\t Catch:{ all -> 0x001b }\n return r0;\n L_0x0008:\n r1 = r0.peek();\t Catch:{ all -> 0x001b }\n r2 = r3.terminalState;\t Catch:{ all -> 0x001b }\n if (r1 != 0) goto L_0x0019;\n L_0x0010:\n if (r2 == 0) goto L_0x0019;\n L_0x0012:\n r0 = r0.peek();\t Catch:{ all -> 0x001b }\n if (r0 != 0) goto L_0x0019;\n L_0x0018:\n r1 = r2;\n L_0x0019:\n monitor-exit(r3);\t Catch:{ all -> 0x001b }\n return r1;\n L_0x001b:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x001b }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.RxRingBuffer.peek():java.lang.Object\");\n }",
"public Object peek() {\n if (this.collection.size() == 0)\n throw new EmptyStackException(\"Stack is empty!\");\n\n return this.collection.get(this.collection.size()-1);\n }",
"public T peek() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\treturn (T) head.data;\n\t}",
"public E peek() {\n return stackImpl.peek();\n }",
"public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }",
"public int peek();",
"public void peek() {\r\n\t\t\tif(top==-1) {\r\n\t\t\t\tSystem.out.println(\"stack is empty!!\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(arr[top]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public E peekFront();",
"public Item peek(){\n\t\tif(isEmpty()){\r\n\t\t\tthrow new NoSuchElementException(\"Stack Underflow\"); // if stack is empty , ,t throws an exception\r\n\t\t}\r\n\t\treturn first.item;\r\n\t}",
"@Override\n\tpublic T peek() throws StackEmptyException {\n\t\tif(top != null) {\n\t\t\treturn top.getData();\n\t\t}\n\t\telse {\n\t\t\tthrow new StackEmptyException(\"Peek attempted on an empty stack.\");\n\t\t}\n\t\t\n\t}",
"public Item peek() throws EmptyStackException{\n return (Item) stack.peek();\n\n }",
"public GameObject peek();",
"public int top() {\n return One.peek();\n }",
"public T peek() {\n\t\tif (this.l.getHead() != null)\n\t\t\treturn this.l.getHead().getData();\n\t\telse {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public abstract Object top();",
"public int peekFront();",
"public int top() {\n return objects.peek();\n }",
"public E peekFirst();",
"public int peek() {\n // 元素必从出栈栈顶弹出\n int pop = this.pop();\n //塞回出栈栈顶\n outSt.push(pop);\n return pop;\n }",
"public E peek() {\n\t\t// your code here\n\t\treturn null;\n\t}",
"public Integer peek() {\n if (hasTop)\n return top;\n top = it.next();\n hasTop = true;\n return top;\n }",
"public int peek() {\r\n readyForPop();\r\n return outStack.peek();\r\n }",
"@Override\n public E peek() {\n return peek(0);\n }",
"public Object peek() {\n\t\tcheckIfStackIsEmpty();\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tObject lastElement = collection.get(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}",
"public int peek() {\n return stack.peek();\n }",
"@Override\n\tpublic T peek() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the data from the top Node of the stack\n\t\t\tT returnData = topNode.data;\n\t\t\treturn returnData;\n\t\t}\n\t}",
"@Override\r\n\tpublic E peek() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic T top()\n\t{\n if(list.size()==0)\n {\n throw new IllegalStateException(\"Stack is empty\");\n }\n return list.get(getSize()-1);\n\t}",
"public Integer peek() {\n\t\t if(size == 0) {\n\t\t\tthrow new EmptyStackException(); \n\t\t }\n\t\t if(!empty()) {\n\t\t\t return data[0]; \n\t\t }\n\t return null;\n\t }",
"public ParsedToken peek(){\n if(!empty()){\n return this.parsedTokenStack[this.top];\n }else{\n return null;\n }\n }",
"public Character peek()\r\n\t{\r\n\t\treturn stack[top-1];\r\n\t}",
"public int top() {\n\t return q.peek();\n\t }",
"@Override\n\tpublic E peek() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic E peek() {\n\t\treturn null;\n\t}",
"public int peek() {\n if(!empty()){\n \treturn stack.peek();\n }else{\n \treturn -1;\n }\n }",
"public T top();",
"@Test\n public void testPeek() {\n System.out.println(\"peek\");\n instance = new Stack();\n instance.push('a');\n instance.push('b');\n instance.push('c');\n char item = (char) instance.peek();\n assertEquals('c', item);\n instance.push('@');\n item = (char) instance.peek();\n assertEquals('@', item);\n }",
"@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}"
]
| [
"0.8176568",
"0.8150708",
"0.8045801",
"0.8045801",
"0.798136",
"0.79516786",
"0.79400367",
"0.78555715",
"0.781036",
"0.7801796",
"0.77825284",
"0.7669705",
"0.7563842",
"0.7558633",
"0.7550582",
"0.75433147",
"0.752605",
"0.75071865",
"0.75071865",
"0.75071865",
"0.748995",
"0.74653256",
"0.7446724",
"0.7416313",
"0.7413916",
"0.74046946",
"0.7378431",
"0.7352327",
"0.73441416",
"0.73408186",
"0.73394156",
"0.73394156",
"0.73394156",
"0.73394156",
"0.73266065",
"0.7326602",
"0.7310794",
"0.7261206",
"0.71944845",
"0.71843743",
"0.71841496",
"0.71839416",
"0.71725625",
"0.71654594",
"0.7153509",
"0.7138369",
"0.7137981",
"0.7135809",
"0.7129787",
"0.7127826",
"0.7125667",
"0.7125667",
"0.7125667",
"0.7125667",
"0.7125667",
"0.71089494",
"0.7085306",
"0.7083857",
"0.7068793",
"0.7059875",
"0.7059875",
"0.7059875",
"0.7055696",
"0.7044244",
"0.70390034",
"0.7036985",
"0.7028858",
"0.70256424",
"0.7017982",
"0.70113146",
"0.7006166",
"0.69933987",
"0.69836104",
"0.69812274",
"0.6971765",
"0.69699234",
"0.6964788",
"0.6962903",
"0.6949226",
"0.69477254",
"0.69452983",
"0.6941438",
"0.692888",
"0.6925037",
"0.6920228",
"0.6904051",
"0.6899903",
"0.68968046",
"0.6891544",
"0.68811524",
"0.68791294",
"0.6875705",
"0.68749195",
"0.6872297",
"0.68505275",
"0.68505275",
"0.6849495",
"0.6832114",
"0.68303347",
"0.68299025"
]
| 0.7737261 | 11 |
Pops an object off of the stack | public Object pop() {
return fStack.pop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object pop();",
"public Object pop();",
"public abstract Object pop();",
"public AnyType pop() throws StackException;",
"public Object pop() {\n return stack.pop();\n }",
"public TYPE pop();",
"public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }",
"public void pop();",
"public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }",
"private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}",
"public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}",
"private void pop() {\r\n pop( false );\r\n }",
"@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }",
"public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }",
"public void pop() throws StackUnderflowException;",
"public void popFrame(){\n runStack.popFrame();\n }",
"T pop();",
"T pop();",
"T pop();",
"public void pop()\n {\n this.top = this.top.getNext();\n }",
"public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }",
"@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}",
"public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }",
"public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}",
"public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }",
"E pop() throws EmptyStackException;",
"public void popState();",
"public E pop();",
"public E pop();",
"public E pop();",
"public E pop();",
"public E pop();",
"@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }",
"@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}",
"public E pop(){\n return this.stack.remove(stack.size()-1);\n }",
"public void popScope() {\n this.stack.removeFirst();\n }",
"public void pop() {\n myCStack.delete();\n }",
"private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}",
"public Object pop() {\n\t\tif(this.isEmpty())\n throw new IllegalStateException(\"Stack is empty\");\n return items.remove(items.size() - 1);\n\t}",
"@Override\n\tpublic T pop() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the Object from the top Node of the Stack \n\t\t\tT returnData = topNode.data;\n\t\t\t\n\t\t\t//Remove the top Node and promote second Node\n\t\t\ttopNode = topNode.nextNode;\n\t\t\tnodeCount--;\n\t\t\t\n\t\t\t//Return retrieved data\n\t\t\treturn returnData;\n\t\t}\n\t}",
"public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }",
"public T pop() throws Exception\r\n\t{\r\n T popped = (T) Stack[--size];\r\n Stack[size] = null;\r\n return popped ;\r\n\t}",
"public void pop() {\r\n readyForPop();\r\n outStack.pop();\r\n }",
"public T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }",
"public void pop() {\n s.pop();\n }",
"@Override\r\n\tpublic E pop() {\n\t\treturn null;\r\n\t}",
"public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }",
"abstract void pop();",
"public int pop();",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}",
"E pop();",
"E pop();",
"E pop();",
"void pop() {\n // -\n top = top.getNextNode();\n }",
"public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}",
"public E popTop() {\n // FILL IN\n }",
"public ValueType pop() {\r\n // TODO\r\n return null;\r\n }",
"public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }",
"public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }",
"public Object pop() {\n if (isEmpty())\n throw new EmptyStackException();\n\n Object value = peek();\n collection.remove(collection.size() - 1);\n return value;\n }",
"public String pop();",
"public Object pop()\n\t{\n\t\tif (size == 0)\n\t\t\tthrow new EmptyStackException();\n\t\t\n\t\tObject result = elements[--size];\n\t\telements[size] = null;\n\t\treturn result;\n\t}",
"public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"static void perform_pop(String passed){\n\t\tint type = type_of_pop(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpop_from_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public Object pop() {\n\t\tObject o = get(getSize() - 1);\n\t\tremove(getSize() - 1);\n\t\treturn o;\n\t}",
"public Symbol pop() throws BadTypeException {\n if (this.isEmpty()) {\n throw new EmptyStackException();\n } else {\n Entry entry = opStack.pop();\n return entry.getSymbol();\n }\n }",
"@Override\r\n\tpublic AnyType pop() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\tAnyType data = top.data;\r\n\t\ttop=top.next;\r\n\t\treturn data;\r\n\t}",
"public T pop() {\r\n\r\n\t\tT top = peek(); // Throws exception if stack is empty.\r\n\t\t\r\n\t\t// Sets top of stack to next link. \r\n\t\ttopNode = topNode.getNext();\r\n\t\t\r\n\t\treturn top;\r\n\t\t\r\n\t}",
"public E pop()\n\tthrows EmptyStackException;",
"@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }",
"public void pop(){\n states.pop().dispose();\n }",
"int pop();",
"int pop();",
"int pop();",
"int pop();",
"int pop();",
"public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }",
"public void popParent();",
"public T pop() {\n\t\treturn (T) this.deck.pop();\n\t}",
"public void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}",
"public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }",
"@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}",
"public E pop() {\n return stackImpl.pop();\n }",
"Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}",
"@Override\r\n\tpublic T pop() throws StackEmptyException {\n\t\tif(isempty()) { throw new StackEmptyException(\"Pila vacia!!\");}\r\n\t\treturn pop(sentinel);\r\n\t\t\r\n\t}",
"public T pop() throws StackUnderflowException{\r\n\t\t\t\t\r\n\t\t// check if the stack is empty before popping up.\r\n\t\tif(stackData.isEmpty())\r\n\t\t\tthrow new StackUnderflowException();\r\n\r\n\t\treturn stackData.remove(stackData.size()-1); //popping;\r\n\t}",
"public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}"
]
| [
"0.8126916",
"0.8068189",
"0.78192985",
"0.77953494",
"0.7788421",
"0.7707731",
"0.7696668",
"0.76855654",
"0.7674398",
"0.7569537",
"0.7554067",
"0.7460153",
"0.73949105",
"0.7393777",
"0.7393777",
"0.7393777",
"0.7393777",
"0.7393777",
"0.7393777",
"0.7393777",
"0.7393777",
"0.73673975",
"0.72999185",
"0.7201375",
"0.7187331",
"0.71866965",
"0.71866965",
"0.71866965",
"0.7152474",
"0.7147771",
"0.7143189",
"0.71061736",
"0.70933276",
"0.7079694",
"0.7078841",
"0.70773065",
"0.7065634",
"0.7065634",
"0.7065634",
"0.7065634",
"0.7065634",
"0.7063297",
"0.7040029",
"0.70293075",
"0.69959295",
"0.6995652",
"0.69946975",
"0.6993818",
"0.6975084",
"0.69575083",
"0.6947416",
"0.69456905",
"0.6944361",
"0.6937513",
"0.6905185",
"0.69030803",
"0.69009733",
"0.6887837",
"0.6883244",
"0.688105",
"0.6872545",
"0.6872545",
"0.6872545",
"0.6869068",
"0.68669146",
"0.68630123",
"0.68583757",
"0.6857271",
"0.68545693",
"0.68353647",
"0.68248343",
"0.6811682",
"0.68105054",
"0.6777619",
"0.6774294",
"0.67665035",
"0.67624116",
"0.6762398",
"0.67613375",
"0.6758731",
"0.6754867",
"0.6749976",
"0.6732035",
"0.6731403",
"0.6731403",
"0.6731403",
"0.6731403",
"0.6731403",
"0.6717522",
"0.6704552",
"0.67025876",
"0.67018634",
"0.6695786",
"0.66949874",
"0.66928583",
"0.66801125",
"0.66667527",
"0.66594565",
"0.66575146",
"0.6641082"
]
| 0.7540911 | 11 |
Answers the context for the interpreter | public IRuntimeContext getContext() {
return fContext;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InterpreterRuntimeContext createInterpreterRuntimeContext();",
"public EvaluationContext getContext() {\n return context;\n }",
"RenderingContext getContext();",
"public void interpreter(Context context){\n System.out.println(\"abstract interpr of context \" +\n \"and call teminal or not terminal context\");\n context.arrayOfActions.get(0).interpreter(context);\n context.arrayOfNumbers.get(0).interpreter(context);\n\n }",
"public String getContext() { return context; }",
"Context context();",
"Context context();",
"public cl_context getContext() {\r\n return context;\r\n }",
"Context getContext();",
"public abstract Context context();",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public String getContext() {\n\t\treturn context;\n\t}",
"public ExecutionContext getContext();",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"Map<String, Object> getContext();",
"public abstract void interpret(EvaluationContext context);",
"java.lang.String getContext();",
"Interpreter getInterpreter();",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"CTX_Context getContext();",
"IContextNode wdGetContext();",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"public Context getContext() {\n return contextMain;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public void set_context(VariableSymbolTable context);",
"public interface Context {\n\n\tvoid goNext();\n\tvoid setState(State state);\n\tvoid execute();\n\tState getCurrent();\n}",
"public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }",
"public Context getContext() {\n return context;\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public RuntimeContext getRuntimeContext() {\n return runtimeContext;\n }",
"public abstract ApplicationLoader.Context context();",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"protected RuntimeContext getRuntimeContext() {\r\n return parentAction.getRuntimeContext();\r\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public String getContextString();",
"public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"public Object getContextObject() {\n return context;\n }",
"public abstract ContextNode getContextNode();",
"public ContextNode getContextNode();",
"Context mo1490b();",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public abstract void makeContext();",
"Context createContext();",
"Context createContext();",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"long getCurrentContext();",
"public interface Context extends ExtensionPoint {\n /**\n * Context initialization with parameters.\n */\n void init();\n /**\n * Context run.\n */\n void run();\n /**\n * @return The created user interaction context.\n */\n UserInteractionContext getUserInteractionContext();\n}",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"public ComponentContext getContext()\n\t{\n\t\treturn context;\n\t}",
"@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"public Context getContext() {\n return this;\n }",
"public Instruction loadContextNode() {\n/* 270 */ return loadCurrentNode();\n/* */ }",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"public URI getCurrentContext();",
"com.google.protobuf.ByteString getContext();",
"public void interpret(Context context) {\n\t\tSystem.out.println(\"终端解释器\");\n\t}",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public org.omg.CORBA.Context read_Context() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"private BicexEvaluationContext getContext()\n{\n return for_bubble.getContext();\n}",
"public static Context getContext(){\n return appContext;\n }",
"@Test\n public void operator_context() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new SpecialElement(VertexElement.ElementKind.CONTEXT, typeOf(ProcessorContext.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!CONTEXT\"));\n }",
"public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 237,\n FQN=\"llvm::Module::getContext\", NM=\"_ZNK4llvm6Module10getContextEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module10getContextEv\")\n //</editor-fold>\n public LLVMContext /*&*/ getContext() /*const*/ {\n return Context;\n }",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }",
"void execSetupContext(ExecProcess ctx);",
"private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }",
"public Context getThis()\r\n {\r\n return this.context;\r\n }",
"ContextVariable createContextVariable();",
"ContextBucket getContext() {\n\treturn context;\n }",
"public Context getContext() {\n return (Context)this;\n }",
"public byte getInvocationContext() {\r\n return invocationContext;\r\n }",
"public void getContext() {\n ((AppiumDriver) getDriver()).getContextHandles();\n }",
"public static void main(String[] args) {\n\n String context = \"Tigers Bears\";\n\n Expression define = buildInterpreterTree();\n\n System.out.println(context + \" is \" + define.interpret(context));\n }",
"public Bmv2Interpreter interpreter() {\n return interpreter;\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"ActorContext<InputOutput> getContext();",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"public String getCodeListContext() {\r\n\t\treturn codeListContext;\r\n\t}",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public interface Context { long getNativeEglContext(); }",
"public JexlEvalContext(JexlContext context, JexlContext.NamespaceResolver namespace) {\n this.vars = context != null ? context : JexlEngine.EMPTY_CONTEXT;\n this.ns = namespace != null ? namespace : JexlEngine.EMPTY_NS;\n }",
"public Handle<GameAppContext> getParentContext();",
"public synchronized InputContext getInputContext() {\n if (inputContext == null) {\n inputContext = InputContext.getInstance();\n }\n return inputContext;\n }",
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public GLContext getContext();",
"public Context getContext() {\n return this.mContext;\n }"
]
| [
"0.761992",
"0.70041627",
"0.69988245",
"0.69415176",
"0.6924664",
"0.68635744",
"0.68635744",
"0.6852405",
"0.68198216",
"0.68130076",
"0.6771393",
"0.6765905",
"0.67134583",
"0.6632745",
"0.6632745",
"0.6632745",
"0.65459496",
"0.65284765",
"0.65243113",
"0.6478407",
"0.6465121",
"0.6454426",
"0.6431614",
"0.63967085",
"0.6380213",
"0.6354054",
"0.63518417",
"0.63327944",
"0.63327944",
"0.6283769",
"0.62829524",
"0.6281995",
"0.6236643",
"0.62365144",
"0.61872905",
"0.6164994",
"0.6152236",
"0.61184984",
"0.6099744",
"0.608399",
"0.60636365",
"0.6052915",
"0.601751",
"0.6013394",
"0.59987485",
"0.5993133",
"0.5986152",
"0.59700745",
"0.5965803",
"0.5939829",
"0.5939829",
"0.59371054",
"0.5934504",
"0.5929531",
"0.59186023",
"0.5918578",
"0.59091353",
"0.59071654",
"0.59023035",
"0.5890684",
"0.5887037",
"0.58746016",
"0.5858376",
"0.58473885",
"0.58383",
"0.5830566",
"0.57919943",
"0.57896787",
"0.57868516",
"0.57730657",
"0.57167745",
"0.5686907",
"0.56586075",
"0.5643226",
"0.56370497",
"0.5625776",
"0.5624322",
"0.56172645",
"0.5613218",
"0.5612072",
"0.56070197",
"0.5588529",
"0.5586774",
"0.5580747",
"0.55789256",
"0.55712765",
"0.5562325",
"0.55574685",
"0.5550724",
"0.5543044",
"0.5533574",
"0.55335236",
"0.5515209",
"0.54939926",
"0.5486023",
"0.5475094",
"0.546322",
"0.545992",
"0.542683",
"0.5426304"
]
| 0.68736786 | 5 |
Create a new variable in the interpreter with the given name and the given type. | public IVariable createInternalVariable(String name, IJavaType referencType) {
IVariable var = new InterpreterVariable(name, referencType, fContext.getVM());
fInternalVariables.put(name, var);
return var;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Symbol.VariableSymbol varSymFromString(String name, String type) {\n Symbol.TypeSymbol typeSymbol = TypeUtils.typeFromStr(type);\n return new Symbol.VariableSymbol(name, typeSymbol);\n }",
"Variable createVariable();",
"Variable createVariable();",
"public Variable createVariable(String name, int offset, DataType dataType, SourceType source)\n\t\t\tthrows DuplicateNameException, InvalidInputException;",
"public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }",
"public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }",
"VariableDeclaration createVariableDeclaration();",
"public Variable(String name) {\n this.name = name;\n checkRep();\n }",
"DynamicVariable createDynamicVariable();",
"public VariableIF createVariable(VariableDecl decl);",
"public Variable(String name) {\r\n\tthis.name = name;\r\n }",
"public Variable(String name){\n this.name = name;\n }",
"public Variable addNewVar(String rootName, Type t, Use u) {\n\t\tNameSSA ssa = new NameSSA(rootName);\n\t\tname.put(rootName, ssa);\n\t\tVariable v = new Variable(ssa.current(), t, u);\n\t\tvar.put(ssa.current(), v);\n\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\tSystem.out.println(\"SymbolTable.addNewVar: \" + v.name());\n\t\t}\n\t\t// to add the old value of the variable (i.e. before function call)\n\t\tv.setOld(v);\n\t\treturn v;\n\t}",
"static public <T1> Set<Variable> newVariables(\n String name1, T1 value1, Class<? extends T1> type1\n ) {\n return newVariables(\n newVariable(name1, value1, type1)\n );\n }",
"public LocalVariableGen addLocalVariable2(String name, Type type, InstructionHandle start) {\n/* 177 */ return addLocalVariable(name, type, this._slotAllocator.allocateSlot(type), start, null);\n/* */ }",
"@Override\n \tpublic void logVarCreated(String name, String type) {\n \t\tSystem.out.println(\"\\tVariable created: [\" + type + \"] \" + name );\n \t}",
"NamedType createNamedType();",
"<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;",
"VariableExp createVariableExp();",
"public VarType createVariable(String id, String value, int order) {\n\t\tVarType var = mappingFactory.createVarType();\n\t\tvar.setId(id);\n\t\tvar.setValue(value);\n\t\tvar.setOrder(order);\n\t\treturn var;\n\t}",
"Type createType();",
"Type createType();",
"Type createType();",
"private static void createVars(JsProgram program, JsBlock block,\n Collection<JsStringLiteral> toCreate, Map<JsStringLiteral, JsName> names) {\n if (toCreate.size() > 0) {\n // Create the pool of variable names.\n JsVars vars = new JsVars(program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string pool\"));\n SourceInfo sourceInfo = program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string assignment\");\n for (JsStringLiteral literal : toCreate) {\n JsVar var = new JsVar(sourceInfo, names.get(literal));\n var.setInitExpr(literal);\n vars.add(var);\n }\n block.getStatements().add(0, vars);\n }\n }",
"public VariableNode(String name) {\n\t\tthis.name = name;\n\t}",
"public Variable getVariable(String name);",
"public Type type(String name);",
"public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}",
"public Variable addVar(String n) {\n\t\t//System.out.println(\"SymbolTable addVar \" + n);\n\t\tNameSSA ssa = name.get(n);\n\t\tif (ssa != null) {\n\t\t\tVariable lastRenaming = var.get(ssa.current());\n\t\t\tssa.next();\n\t\t\tVariable v;\n\t\t\tif (lastRenaming instanceof ArrayVariable)\n\t\t\t\tv= new ArrayVariable(ssa.current(), lastRenaming.type, ((ArrayVariable)lastRenaming).length(),lastRenaming.use);\n\t\t\telse\n\t\t\t\tv= new Variable(ssa.current(), lastRenaming.type, lastRenaming.use);\n\t\t\tv.setOld(lastRenaming.oldValue());\n\t\t\tvar.put(ssa.current(), v);\n\t\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\t\tSystem.out.println(\"SymbolTable.addVar: \" + v.name());\n\t\t\t}\n\t\t\treturn v;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\t\t\n\t}",
"<C, PM> Variable<C, PM> createVariable();",
"public boolean addPVar(String pVName, boolean pIsNotNull, Type pType, Serializable pValue,\n boolean IsValueExpr, MoreData pMoreInfo, Location pLocation, MoreData pMoreData);",
"private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }",
"public static PortType CreatePortTypeFromVar(List<Variable> LVariable, String Name , Module module)\n\t{\n\t\tPortType porttype = behavFactory.createPortType();\n\t\tfor(Object o : LVariable)\n\t\t{\n\t\t\tVariable var = (Variable) o ; \n\t\t\tDataType dt = var.getType() ; \n\t\t\tDataParameter dp = behavFactory.createDataParameter(); \n\t\t\tdp.setName(var.getName()) ; \n\t\t\tdp.setType(dt) ; \n\t\t\tporttype.getDataParameter().add(dp);\n\t\t}\n\t\tporttype.setName(Name);\n\t\tporttype.setModule(module);\n\t\treturn porttype;\n\t}",
"VarAssignment createVarAssignment();",
"public LocalVariable defineLocalVariable(QName name, XQType type,\n Expression declaring)\n {\n \n LocalVariable decl = newLocal(name, type, declaring);\n lastLocal.addAfter(decl);\n lastLocal = decl;\n return decl;\n }",
"public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }",
"public void setType(String name){\n\t\ttype = name;\n\t}",
"public static Variable in(String byTypeURI) {\n\t\treturn new Variable(byTypeURI);\n\t}",
"InstrumentedType withTypeVariable(TypeVariableToken typeVariable);",
"public final void named_type() throws RecognitionException {\r\n Token LOCAL_VARIABLE5=null;\r\n Type derived_type6 =null;\r\n\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:51:5: ( LOCAL_VARIABLE '=' 'type' ( derived_type ) )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:51:7: LOCAL_VARIABLE '=' 'type' ( derived_type )\r\n {\r\n LOCAL_VARIABLE5=(Token)match(input,LOCAL_VARIABLE,FOLLOW_LOCAL_VARIABLE_in_named_type208); \r\n\r\n match(input,47,FOLLOW_47_in_named_type210); \r\n\r\n match(input,88,FOLLOW_88_in_named_type212); \r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:52:7: ( derived_type )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:52:8: derived_type\r\n {\r\n pushFollow(FOLLOW_derived_type_in_named_type222);\r\n derived_type6=derived_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n String idTypeName = (LOCAL_VARIABLE5!=null?LOCAL_VARIABLE5.getText():null); Type type = derived_type6; typeFactory.addIDType(idTypeName, type); \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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return ;\r\n }",
"public LocalVariableGen addLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end) {\n/* 170 */ return this._allocatorInit ? addLocalVariable2(name, type, start) : super.addLocalVariable(name, type, start, end);\n/* */ }",
"public void declare (String name, Value value){\n if (contains(name)){\n throw new VariableAlreadyDefined();\n }\n this.values.put(name, value);\n }",
"public void assign (String name, Value value){\n Closure exist = find_var(name);\n exist.getValues().put(name, value);\n }",
"static Obj NewObj (String name,int kind) {\r\n\t\tObj p, obj = new Obj();\r\n obj.name = new String(name); \r\n\t\tobj.type = null; obj.kind = kind;\r\n\t\tobj.level = curLevel;\r\n\t\tp = topScope.locals;\r\n\t\t/*Para buscar si el nb de la variable nueva ya esta!!!*/\r\n\t\twhile (p != null) { \r\n \t \tif (p.name.equals(name)) Parser.SemError(1);\r\n\t\t\tp = p.next;\r\n\t\t}\r\n \t//FILO!!\r\n obj.next = topScope.locals; \r\n\t\ttopScope.locals = obj;\r\n \t//if (kind == vars) {}\r\n \t//obj.adr = topScope.nextAdr; topScope.nextAdr++;\r\n \t//obj.view();\r\n\t\treturn obj;\r\n }",
"public void declareVariable (String variableName,boolean isFinal,boolean isArgument,String type,\r\n\t\t\t\t\t\t\t\t\tString value)throws IllegalDeclarationException,\r\n\t\t\t\t\t\t\t\t\tTypeNotSupportedException,IncompatibleTypeException{\r\n\t\t//if there's already such var in this scope\\we're trying to make an uninitialised final declaration\r\n\t\tif((isFinal&&value==null)||this.contains(variableName)){\r\n\t\t\tthrow new IllegalDeclarationException();\r\n\t\t}else {\r\n\t\t\t\tVariable newVar = vFactory.createVariable(false, isFinal, isArgument,type,parent==null);\r\n\t\t\t\tif(value==null) {//if we're trying to declare an uninitialised variable legally:\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new uninitialised variable\r\n\t\t\t\t} else if (newVar.isArgument()||(newVar.compatibleWith(value))) {\r\n\t\t\t\t\t//if value's type's compatible with the var's type/we're declaring a method's argument as\r\n\t\t\t\t\t// an argument inside it's own scope(so we'll want to treat it as initialised):\r\n\t\t\t\t\tnewVar.initialize();\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new initialised variable\r\n\t\t\t\t\t} else {//if it's not compatible, we'll check if value is a reference to another variable:\r\n\t\t\t\t\t\tdeclareWithReference(newVar,variableName,isFinal,isArgument,value);\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t}",
"<U extends T> U maybeCreate(String name, Class<U> type) throws InvalidUserDataException;",
"private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}",
"@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }",
"public AssrtIntVarNameNode(int ttype, Token t)\n\t{\n\t\tsuper(t);\n\t}",
"public void Define(String name, String type, String kind) {\n\t\tint i = -1;\n\t\tValues tmp = null;\n\t\t\n\t\tif(kind.equals(STATIC) || kind.equals(FIELD)) {\n\t\t\tswitch(kind) {\n\t\t\tcase STATIC:\t\n\t\t\t\ti = classStaticIdx++;\n\t\t\t\tbreak;\n\t\t\tcase FIELD:\t\t\t\t\n\t\t\t\ti = classFieldIdx++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = classScope.put(name, new Values(type, kind, i));\n\t\t\t\n\t\t\tif(tmp != null) {\n\t\t\t\tSystem.out.println(\"Multiple declarations of class identifier: \" + name);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\telse if(kind.equals(ARG) || kind.equals(VAR)) {\n\t\t\tswitch(kind) {\n\t\t\tcase ARG:\n\t\t\t\ti = subArgIdx++;\n\t\t\t\tbreak;\n\t\t\tcase VAR:\n\t\t\t\ti = subVarIdx++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = subScope.put(name, new Values(type, kind, i));\n\n\t\t\tif(tmp != null) {\n\t\t\t\tSystem.out.println(\"Multiple declarations of subroutine identifier: \" + name);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tthrow new IllegalArgumentException(\"Identifier '\" + name + \"' has an invalid 'kind': \" + kind);\n\t}",
"public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }",
"public void store(final String text, final String variableName);",
"public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }",
"private TypeDb createTypeInstance(long id, String nameEn) {\n TypeDb typeDb = new TypeDb();\n typeDb.setId(id);\n typeDb.setTypeNameEn(nameEn);\n typeDb.setTypeNameRu(new TypeMapper().toRu(nameEn));\n return typeDb;\n }",
"UserDefinedType createUserDefinedType();",
"HxType createType(final String className);",
"Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"public VariableNode(String attr)\n {\n this.name = attr;\n }",
"private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }",
"public void declareVariable(String name, String value) {\n checkNotNull(name);\n checkNotNull(value);\n addLine(VARIABLE_MODIFIER + ' ' + name + \" = \" + value + ';');\n }",
"ControlVariable createControlVariable();",
"private JavaType(String name) {\n this.name = name;\n }",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"public void assign (String name, StatementParse node, Closure parent){\n Closure exist = find_var(name);\n Value newClosure;\n if (node.getName().equals(\"function\")){\n newClosure = new Closure(parent, node);\n } else {\n newClosure = new Environment(parent, node);\n }\n exist.getValues().put(name, newClosure);\n }",
"public static ParameterExpression variable(Class type) { throw Extensions.todo(); }",
"public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}",
"public void set_type(String t)\n {\n type =t;\n }",
"protected <T> void setSharedContextVariable(String name, Class<T> type, T value) {\r\n T typedValue = TypeCastUtility.castValue(value, type);\r\n m_sharedVariableMap.put(name, typedValue);\r\n }",
"public IAspectVariable<V> createNewVariable(PartTarget target);",
"VariableRef createVariableRef();",
"public static void store(String varName) {\n emit(newVariable(varName).getStore());\n }",
"public TYPE SemantMe() {\n\t\tSYM_TABLE sym_table = SYM_TABLE.getInstance();\n\t\t\n\t\t// Lookup the name\n\t\tTYPE t = sym_table.find(this.type);\n\t\t// Check it\n\t\tif (t == null || !t.isTypeName())\n\t\t {\n\t\t\t// Code bug -- type given does not exist in table or just is not a name a of a type\n\t\t\treport_error();\n\t\t }\n\t\t\t// Its fine, declare it\n\t\treturn new TYPE_VAR_DEC(t.name,this.name);\n }",
"public Object createDataType(String typeName) throws BuildException {\n return ComponentHelper.getComponentHelper(this).createDataType(typeName);\n }",
"IdentifierType createIdentifierType();",
"VarReference createVarReference();",
"Variable(String _var) {\n this._var = _var;\n }",
"public FieldInstruction setField(String name, String type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n return setField(owner.getName(), name, type);\n }",
"@Override String opStr() { return \"var\"; }",
"@Override\n\tpublic Code apply(Env env, ParseTree t) {\n\t\treturn new VarNameCode(env.s(t));\n\t}",
"public void setVarName(String text) {\n\t\tvarName=text;\r\n\t}",
"public void setTypeName(java.lang.String value);",
"public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }",
"TypeLiteralExp createTypeLiteralExp();",
"Variables createVariables();",
"public MTNamed(TypeGraph g, String name) {\n super(g);\n myName = name;\n }",
"public int addVar(String name, Value value) {\n \n for (int i = 0; i < table.size(); i++) {\n if (table.get(i).getName().compareTo(name) == 0 &&\n table.get(i).getType().equals(value.getType()))\n return 1;\n if (table.get(i).getName().compareTo(name) == 0 &&\n !(table.get(i).getType().equals(value.getType())))\n return 2;\n }\n \n table.add(new OurSymbol(name, value));\n return 0;\n }",
"public static void newGame(GameType t) {\n\t\ttype = t;\n\t}",
"public StaticScript type(String type) {\n this.type = type;\n return this;\n }",
"TypeDefinition createTypeDefinition();",
"public void assign (String name, int value){\n Closure exist = find_var(name);\n exist.getValues().put(name, new IntegerValue(value));\n }",
"@Override\n public Void visitTypeVariable(TypeVariable t, Void aVoid) {\n reflectClass.setName(t.asElement().getSimpleName().toString());\n return super.visitTypeVariable(t, aVoid);\n }",
"public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }",
"public Variable(String name, int initialValue){\n this.name = name;\n this.initialValue = initialValue;\n }",
"public LlvmValue visit(IdentifierType n){\n\t\tSystem.out.format(\"identifiertype*******\\n\");\n\t\t\n\t\t//%class.name\n\t\tStringBuilder name = new StringBuilder();\n\t\t\n\t\tname.append(n.name);\n\t\t\n\t\t//System.out.format(\"name: %s\\n\",name.toString());\n\t\t\n\t\t//Cria classType -> %class.name\n\t\tLlvmClassInfo classType = new LlvmClassInfo(name.toString());\t\n\n\t\treturn classType;\n\t}",
"public Type(String name) {\n\t\tsuper(name);\n\t\tsetSize();\n\t}",
"public abstract void addValue(String str, Type type);",
"public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"private Identifier(Scope scope, Type type, String name, String value){\n if(scope == null || type == null || name == null || value == null){\n throw new IllegalStateException(\"Cannot assign nullvalue\");\n }\n this.scope = scope;\n this.type = type;\n this.name = name;\n this.value = value;\n }"
]
| [
"0.74136144",
"0.71808094",
"0.71808094",
"0.6900204",
"0.6719308",
"0.6661956",
"0.65396786",
"0.64914215",
"0.6456925",
"0.64189583",
"0.6397422",
"0.6361915",
"0.6359775",
"0.62870854",
"0.6248361",
"0.6190402",
"0.61725765",
"0.613698",
"0.6116521",
"0.61159706",
"0.608418",
"0.608418",
"0.608418",
"0.60779685",
"0.60560066",
"0.59568137",
"0.5951144",
"0.59421915",
"0.59326446",
"0.5908819",
"0.58477634",
"0.58419377",
"0.583365",
"0.58274347",
"0.58230376",
"0.58183414",
"0.5800345",
"0.5795435",
"0.5792104",
"0.57714784",
"0.57665324",
"0.57261604",
"0.57125914",
"0.5695638",
"0.5683539",
"0.568005",
"0.5678564",
"0.56775963",
"0.56644607",
"0.56495494",
"0.56368655",
"0.5634",
"0.5619325",
"0.56182706",
"0.5615967",
"0.56128204",
"0.5606803",
"0.55954665",
"0.55745107",
"0.5567521",
"0.5566422",
"0.55606735",
"0.55583286",
"0.55430543",
"0.5539543",
"0.5535393",
"0.5530869",
"0.55277735",
"0.55210173",
"0.551837",
"0.5516993",
"0.551032",
"0.55051416",
"0.5497981",
"0.5494881",
"0.548419",
"0.5465593",
"0.54532635",
"0.5420246",
"0.54139084",
"0.54137367",
"0.54088295",
"0.54028124",
"0.539878",
"0.53917783",
"0.53800815",
"0.53770226",
"0.5376886",
"0.5367862",
"0.5364555",
"0.53578216",
"0.5346703",
"0.53455555",
"0.53381956",
"0.5336443",
"0.5333436",
"0.5325928",
"0.5312307",
"0.5307969",
"0.5303866"
]
| 0.7660502 | 0 |
Return the variable with the given name. This method only looks in the list of internal variable (i.e. created by InterpretercreateInternalVariable(String, IJavaType)) | public IVariable getInternalVariable(String name) {
return fInternalVariables.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Variable getVariable(String name);",
"public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }",
"public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }",
"Variable resolve(String name) {\n Scope scope = this;\n while (scope != null) {\n if (scope.variables.containsKey(name)) {\n return scope.variables.get(name);\n }\n scope = scope.parent;\n }\n throw new IllegalArgumentException(\"Unresolved variable: \" + name);\n }",
"public Object getValue(String name) {\n Object value = localScope.get(name);\n if ( value!=null ) {\n return value;\n }\n // if not found\n BFlatGUI.debugPrint(0, \"undefined variable \"+name);\n return null;\n }",
"final SyntaxTreeNode lookupName(QName name) {\n // Is it a local var or param ?\n final SyntaxTreeNode result = _parser.lookupVariable(name);\n\tif (result != null)\n return(result);\n else\n\t return(_symbolTable.lookupName(name));\n }",
"public IntegerVariable getIntegerVariable(String name) {\n return integerVariableMap.get(name);\n }",
"public Object getTransientVariable(String name) {\n return transientVariables.get(name);\n }",
"String getVarName(String name);",
"public Closure find_var(String name){\n Closure currentClosure = this;\n while (currentClosure != null){\n if (currentClosure.contains(name)){\n return currentClosure;\n }\n currentClosure = currentClosure.getParent();\n }\n throw new UndefinedVariable();\n }",
"public Variable findVariable(String shortName) {\n if (shortName == null)\n return null;\n return memberHash.get(shortName);\n }",
"public Integer lookupVariable(final String variableName) {\n if (isLocalVariable(variableName)) {\n return this.variables.get(variableName);\n } else {\n if (this.parent != null) {\n return this.parent.lookupVariable(variableName);\n } else {\n throw new InterpreterException(\"Variable \" + variableName + \" is not defined.\");\n }\n }\n }",
"public IVariable createInternalVariable(String name, IJavaType referencType) {\n IVariable var = new InterpreterVariable(name, referencType, fContext.getVM());\n fInternalVariables.put(name, var);\n return var;\n }",
"public String getVariable(String _name) {\r\n\t\treturn getVariable(_name, \",\");\r\n\t}",
"private Variable getVariable(String varName){\r\n\t\tif(contains(varName)){\r\n\t\t\treturn scopeVariables.get(varName);\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public BooleanVariable getBooleanVariable(String name) {\n return booleanVariableMap.get(name);\n }",
"private static int isVariable(ArrayList<Variable> vars, String name) {\n\t\tfor (int i = 0; i < vars.size(); i++) {\n\t\t\tif (vars.get(i).name.equals(name)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public Variable get(String rootName, int ssaNum) {\n\t\treturn var.get(rootName + \"_\" + ssaNum);\n\t}",
"public Variable(String name) {\n this.name = name;\n checkRep();\n }",
"private Variable findParamByName(String paramName) {\n for (Variable var : this.variablesToUse) {\n if (paramName.equals(var.getName())) {\n return var;\n }\n }\n return null;\n }",
"public double getVariable(String nam) {\r\n Double val=variables.get(nam);\r\n\r\n return (val==null ? 0 : val.doubleValue());\r\n }",
"public VariableItem SearchVariable(String variableName) {\n\t\tfor(VariableItem variable : variableItem)\n\t\t{\n\t\t\tif(variable.name==variableName)\n\t\t\t\treturn variable;\n\t\t}\n\t\treturn null;\n\t}",
"public Variable getVariable(int i) {\r\n\t\treturn getVariables().get(i);\r\n\t}",
"public Variable(String name) {\r\n\tthis.name = name;\r\n }",
"public Variable get(String rootName) {\n//\t\tSystem.out.println(\"symbolTable get \"+n);\n\t\tNameSSA ssa = name.get(rootName);\t\n//\t\tSystem.out.println(\"ssa \" + ssa);\n\t\tif (ssa != null) \n\t\t\treturn var.get(ssa.current());\n\t\telse\n\t\t\treturn null;\n\t}",
"private boolean hasVariable(String name, TOSCAPlan buildPlan) {\n\t\treturn Utils.hasChildElementWithAttribute(buildPlan.getBpelProcessVariablesElement(), \"name\", name);\n\t}",
"public Variable(String name){\n this.name = name;\n }",
"String getVariable();",
"public Name getVariable() {\n return variable;\n }",
"public static boolean isVariable(Name name) {\n\t\t\n\t\tAstNode parent = name.getParent();\n\n\t\tif(parent instanceof InfixExpression) {\n\t\t\tInfixExpression ie = (InfixExpression) parent;\n\t\t\tif(ie.getOperator() == Token.GETPROP || ie.getOperator() == Token.GETPROPNOWARN) {\n /* If the parent is field access, make sure it is on the LHS. */\n\t\t\t\tif(ie.getRight() == name) return false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t/* It is some other boolean operator, so it should be a variable. */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif(parent instanceof UnaryExpression) {\n\t\t\t/* It is a variable that is being operated on by a unary expression. */\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"Aliasing getVariable();",
"public Variable getVariableContaining(int offset);",
"public VariableItem SearchVariable(String variableName) {\n\t\tfor(VariableItem variable : variableItem)\n\t\t{\n\t\t\tif(variable.name==variableName)\n\t\t\t\treturn variable;\n\t\t}\n\t\t\n\t\tif(hasParent)\n\t\t{\n\t\t\tClassItem parentClass=parentTable.SearchClass(parentName);\n\t\t\treturn parentClass.SearchVariable(variableName);\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public String getVariable();",
"public ValueDecl lookupValue(Identifier name) {\n Pair<Integer, ValueDecl> entry = valueScope.get(name);\n if (entry == null) return null;\n return entry.getRight();\n }",
"private GradsVariable findVar(Variable v2) {\n List<GradsVariable> vars = gradsDDF.getVariables();\n String varName = v2.getFullName();\n for (GradsVariable var : vars) {\n if (var.getName().equals(varName)) {\n return var;\n }\n }\n\n return null; // can't happen?\n }",
"public AbstractVariable getVariable () {\n try {\n RemoteStackVariable rsv = thread.getCurrentFrame ().getLocalVariable (\"this\"); // NOI18N\n return new ToolsVariable (\n (ToolsDebugger) getDebugger (),\n rsv.getName (),\n rsv.getValue (),\n rsv.getType ().toString ()\n );\n } catch (Exception e) {\n return null;\n }\n }",
"@Override\n public UserParameterVariable<T> name(@Nonnull VariableName name) {\n if (Objects.equals(this.name, name)) {\n return this;\n }\n UserParameterVariable<T> p = new UserParameterVariable<>(defaultValue, name, id);\n p.copyFrom(this);\n return p;\n }",
"String getVarName();",
"String getVarName();",
"String getVarName();",
"public IVariable getVariable(int index) {\n return null;\n }",
"public Variable getVariable() {\r\n\t\tObject ob = elementAt(0);\r\n\t\tif (size() == 1 && ob instanceof Variable) {\r\n\t\t\treturn (Variable) ob;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 209,\n FQN=\"llvm::Module::getGlobalVariable\", NM=\"_ZN4llvm6Module17getGlobalVariableENS_9StringRefEb\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZN4llvm6Module17getGlobalVariableENS_9StringRefEb\")\n //</editor-fold>\n public GlobalVariable /*P*/ getGlobalVariable(StringRef Name) {\n return getGlobalVariable(Name, false);\n }",
"private Variable findVariable(String varToFind){\r\n\t\tScope curScope = this;\r\n\t\twhile (curScope!=null) {\r\n\t\t\tif(curScope.contains(varToFind)){\r\n\t\t\t\treturn curScope.getVariable(varToFind);\r\n\t\t\t}else{\r\n\t\t\t\tcurScope = curScope.parent;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}",
"public IExpressionValue getUserDefinedVariable(String key);",
"public VariableNode(String name) {\n\t\tthis.name = name;\n\t}",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"public static ProgrammingLanguage getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tProgrammingLanguage result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 372,\n FQN=\"llvm::Module::getNamedGlobal\", NM=\"_ZN4llvm6Module14getNamedGlobalENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module14getNamedGlobalENS_9StringRefE\")\n //</editor-fold>\n public GlobalVariable /*P*/ getNamedGlobal(StringRef Name) {\n return getGlobalVariable(new StringRef(Name), true);\n }",
"public Object getVariable(HttpServletRequest request, String name) {\n\t\tObject obj = request.getParameter(name);\n\t\tif (obj == null) {\n\t\t\tobj = request.getAttribute(name);\n\t\t\tif (obj == null) {\n\t\t\t obj = request.getSession().getAttribute(name);\n\t\t\t if (obj == null) {\n\t\t\t obj = getCookie(request, name);\n\t\t\t if (obj == null) {\n\t\t\t\t obj = getServletContext().getAttribute(name);\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}",
"public String getVariableName() {\n return _vname;\n }",
"public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }",
"public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }",
"public Variable addVar(String n) {\n\t\t//System.out.println(\"SymbolTable addVar \" + n);\n\t\tNameSSA ssa = name.get(n);\n\t\tif (ssa != null) {\n\t\t\tVariable lastRenaming = var.get(ssa.current());\n\t\t\tssa.next();\n\t\t\tVariable v;\n\t\t\tif (lastRenaming instanceof ArrayVariable)\n\t\t\t\tv= new ArrayVariable(ssa.current(), lastRenaming.type, ((ArrayVariable)lastRenaming).length(),lastRenaming.use);\n\t\t\telse\n\t\t\t\tv= new Variable(ssa.current(), lastRenaming.type, lastRenaming.use);\n\t\t\tv.setOld(lastRenaming.oldValue());\n\t\t\tvar.put(ssa.current(), v);\n\t\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\t\tSystem.out.println(\"SymbolTable.addVar: \" + v.name());\n\t\t\t}\n\t\t\treturn v;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\t\t\n\t}",
"public Object get(String name) {\n\t\tMap<?, ?> bindings = m_bindings.getBindings();\n\t\tif (bindings == null) {\n\t\t\tlog.info(\"get: no bindings!\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn bindings.get(name);\n\t}",
"@Override\n\tpublic Symbol resolveMember(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// don't look in the enclosing scope for this one\n\t\t\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}",
"public Value<?> getParameter(String name) {\n\t\tfor (Value<?> parameter : parameters) {\n\t\t\tif (parameter.getName().equals(name)) {\n\t\t\t\treturn parameter;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private boolean putLocalVar(String name){\n if(currentVariables == null) return false;\n if(get(name) != null) return false;\n\n for (int i = 0; i < Integer.MAX_VALUE - 1; i++) {\n if(!currentVariables.containsValue(i)){\n currentVariables.put(name, i); \n return true;\n }\n }\n return false;\n }",
"protected <T> T getSharedContextVariable(String name, Class<T> type) {\r\n Object o = m_sharedVariableMap.get(name);\r\n return TypeCastUtility.castValue(o, type);\r\n }",
"public IVariable getVariable(Integer id) {\n return null;\n }",
"public IRubyObject getConstantAt(String name) {\n IRubyObject value = fetchConstant(name);\n \n return value == UNDEF ? resolveUndefConstant(getRuntime(), name) : value;\n }",
"public IDecisionVariable getNestedVariable(String slotName) {\r\n IDecisionVariable result = null;\r\n if (parent instanceof CompoundVariable) {\r\n result = ((CompoundVariable) parent).getNestedVariable(slotName);\r\n } else {\r\n Value tmp = Configuration.dereference(conf, value);\r\n if (tmp instanceof CompoundValue) { // not available for Container\r\n CompoundValue cValue = (CompoundValue) tmp;\r\n Compound type = (Compound) cValue.getType();\r\n DecisionVariableDeclaration slotDecl = type.getElement(slotName);\r\n if (null != slotDecl) {\r\n Value slotValue = cValue.getNestedValue(slotName);\r\n if (!Reference.TYPE.isAssignableFrom(slotDecl.getType())) { // don't dereference references\r\n slotValue = Configuration.dereference(conf, slotValue);\r\n }\r\n LocalDecisionVariable var = new LocalDecisionVariable(slotDecl, conf, null);\r\n if (null != slotValue) {\r\n try {\r\n var.setValue(slotValue, AssignmentState.ASSIGNED);\r\n } catch (ConfigurationException e) {\r\n }\r\n }\r\n result = var;\r\n }\r\n } \r\n }\r\n return result;\r\n }",
"public TypeLikeUtilityVariableCache(String name) {\n this.name = name;\n }",
"private Object retrieveObject(String name)\r\n {\r\n Object retVal = null;\r\n\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (ref != null)\r\n {\r\n retVal = ref.get();\r\n }\r\n \r\n return retVal;\r\n }",
"public static PortType getByName(String name)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n PortType result = VALUES_ARRAY[i];\n if (result.getName().equals(name))\n {\n return result;\n }\n }\n return null;\n }",
"private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public Object getParameter(String name) {\n\t\tIterator itr = this.parameters.getInParameters().iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tParameterExtendedImpl param = ((ParameterExtendedImpl)itr.next());\n\t\t\t\n\t\t\tif(param.getName() != null && param.getName().equalsIgnoreCase(name)){\t\t\t\t\n\t\t\t\treturn param.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"Node getVariable();",
"private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }",
"public static DataType getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tDataType result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Template getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTemplate result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public T get(String name) {\n\t\treturn get(name, 0);\n\t}",
"private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }",
"private boolean putTemporaryVar(String name){\n if(get(name) != null) return false;\n if(temporaryVariables.size() == 0) return false;\n\n boolean b;\n\n for (int i = 0; i < Integer.MAX_VALUE - 1; i++) {\n Map<String, Integer> tmp;\n b = !currentVariables.containsValue(i);\n if(b == false) continue;\n for (Map<String, Integer> x : temporaryVariables) {\n b &= !x.containsValue(i);\n if(b == false) break;\n }\n if(b == true){\n tmp = temporaryVariables.get(temporaryVariables.size() - 1);\n tmp.put(name, i);\n return true;\n }\n }\n return false;\n }",
"public double getVarValue(String variableName){\n\t\treturn var_map.get(variableName);\n\t}",
"public Variable createVariable(String name, int offset, DataType dataType, SourceType source)\n\t\t\tthrows DuplicateNameException, InvalidInputException;",
"public Object get(String name) {\n if (name == null) {\n return this.def;\n }\n return super.get(name);\n }",
"@Override\n\tprotected String getValue(final String variableName)\n\t{\n\t\treturn Strings.toString(variables.get(variableName));\n\t}",
"public String getLocallyAccessibleName( String name );",
"private Symbol.VariableSymbol varSymFromString(String name, String type) {\n Symbol.TypeSymbol typeSymbol = TypeUtils.typeFromStr(type);\n return new Symbol.VariableSymbol(name, typeSymbol);\n }",
"public PyObject get(String name) {\n return null;\n }",
"public T lookup( String name )\r\n {\r\n T result = null;\r\n \r\n for( HashMap<String,T> table : tables )\r\n {\r\n result = table.get( name );\r\n if( result!=null ) break;\r\n }\r\n \r\n return result;\r\n }",
"private Integer varOffset( String defun, String varname ) {\n\treturn symbolTable.get( defun ).get( varname );\n }",
"Variable createVariable();",
"Variable createVariable();",
"protected NamedThing getLocalProperty(String name) {\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (name.equals(prop.getName())) {\n return prop;\n }\n }\n return null;\n }",
"public static boolean VarName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarName\")) return false;\n if (!nextTokenIs(b, \"<var name>\", NCNAME, URIQUALIFIEDNAME)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, VAR_NAME, \"<var name>\");\n r = VarName_0(b, l + 1);\n if (!r) r = VarLocalName(b, l + 1);\n if (!r) r = consumeToken(b, URIQUALIFIEDNAME);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"protected TopicMapObject identifyByVariable(JellyContext ctx)\n throws JellyTagException {\n\n // name of variable supplied?\n if (variable == null)\n return null;\n\n Object o = ctx.getVariable(variable);\n String identifier = \"Variable \" + variable;\n return getReference(o, identifier);\n\n }",
"public GraphNode<?> get(String name) {\n\t\tfor(GraphNode<?> node : nodes) {\n\t\t\tif(node.data.equals(name))\n\t\t\t\treturn node;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }",
"public Object getValue(final String name) {\r\n return this.params.get(name);\r\n }",
"public T get(String name, int start) {\n\t\tint sz = size();\n\t\tfor (int i = start; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == null) {\n\t\t\t\tif (n == null)\n\t\t\t\t\treturn getVal(i);\n\t\t\t} else if (name.equals(n)) {\n\t\t\t\treturn getVal(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public IRubyObject getConstantFrom(String name) {\n return fastGetConstantFrom(name.intern());\n }",
"String getVarDeclare();",
"public Variable getProperty(String propertyName)\r\n\t{\r\n\t\t// search own properties:\r\n\t\tfor (int i=0; i<properties.size(); i++)\r\n\t\t{\r\n\t\t\tif (properties.get(i).name.equals(propertyName))\r\n\t\t\t\treturn properties.get(i);\r\n\t\t}\r\n\t\t// if we have a base class, let it search for properties, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getProperty(propertyName);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public String getVariable()\n {\n return this.strVariable;\n }",
"public static HydroPlantType getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tHydroPlantType result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}"
]
| [
"0.80563414",
"0.7331962",
"0.720118",
"0.70586795",
"0.7030621",
"0.6952199",
"0.69145685",
"0.6839579",
"0.6808944",
"0.6764332",
"0.67568034",
"0.66620713",
"0.656526",
"0.6533504",
"0.6499525",
"0.6354938",
"0.62815994",
"0.62711215",
"0.62231076",
"0.6222986",
"0.61803037",
"0.61627287",
"0.6141372",
"0.61288947",
"0.60737145",
"0.60711116",
"0.6048781",
"0.60486317",
"0.6042441",
"0.5945828",
"0.5878138",
"0.587631",
"0.58752745",
"0.58711046",
"0.58701336",
"0.5862895",
"0.5851947",
"0.5847525",
"0.58394295",
"0.58394295",
"0.58394295",
"0.58154386",
"0.57883006",
"0.57848793",
"0.5779605",
"0.5767959",
"0.5738388",
"0.5722513",
"0.57200474",
"0.57200474",
"0.5682766",
"0.5678162",
"0.56747216",
"0.567021",
"0.56628776",
"0.5654855",
"0.56496793",
"0.5628135",
"0.5607567",
"0.56073254",
"0.55625284",
"0.55364466",
"0.5526513",
"0.5522984",
"0.55067605",
"0.55063957",
"0.54805523",
"0.5475515",
"0.54755044",
"0.54700553",
"0.54643065",
"0.54515606",
"0.54351926",
"0.542659",
"0.54162216",
"0.5404364",
"0.5397187",
"0.5382973",
"0.5377893",
"0.53613806",
"0.53587955",
"0.5351002",
"0.53471047",
"0.53422976",
"0.5334943",
"0.5331521",
"0.5331077",
"0.5331077",
"0.53134954",
"0.53036827",
"0.5295875",
"0.52779114",
"0.5276956",
"0.5254534",
"0.52534854",
"0.5248572",
"0.5238328",
"0.5225389",
"0.5221375",
"0.5220952"
]
| 0.8377461 | 0 |
(interface) ValueProvider: T: target object type, V: property type | ValueProvider<MyDeployment, String> groupId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PropertyHandler<T, V> {\n\n void set(T instance, V value);\n\n V get(T instance);\n\n String property();\n\n Class<V> type();\n}",
"public interface Property<T> {\n T value();\n}",
"T getNewValue();",
"public abstract Object getValue(Context context) throws PropertyException;",
"@Override\n public T getValue(T object) {\n return object;\n }",
"<T> T getValue(Property<T> property);",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"@FunctionalInterface\npublic interface TypedFieldProvider<T, C extends Component & HasValue<?, T>> {\n\n /**\n * Produces a component for a given value.\n * The returned component should be able to accept that object of the given type when its {@code setValue()} method is called.\n *\n * @param valueType Type of the value. Never {@code null}.\n * @return Perhaps a {@link Component}. The result will be empty when this provider cannot produce a result for a given value.\n */\n Optional<C> provideComponent(Class<?> valueType);\n\n /**\n * Produces a {@link TypedFieldProvider} for a given type and component.\n * @param type Type to accept.\n * @param supplier Component to produce.\n * @param <V> Value type.\n * @param <W> Component type.\n * @return If asked type is a subtype of the given type returns the component, otherwise returns an empty optional.\n */\n static <V, W extends Component & HasValue<?, V>> TypedFieldProvider<V, W> of(Class<V> type, SerializableSupplier<W> supplier) {\n return valueType -> type.isAssignableFrom(valueType) ? Optional.of(supplier.get()) : Optional.empty();\n }\n\n}",
"public T getValue();",
"Object getValueFrom();",
"public abstract void setValue(Context c, Object v) throws PropertyException;",
"IJvmTypeReferenceProvider getTypeProvider();",
"public interface ValueProcessor {\n public void process(Object original, String type, String value);\n }",
"public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}",
"private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}",
"public interface Value {\n\t}",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"public interface Valuable<R> {\n\n\t/**\n\t * @return the value of this object.\n\t */\n\tR getValue();\n\n\t/**\n\t * Sets the value of this object.\n\t * \n\t * @param value - the value to set.\n\t */\n\tvoid setValue(R value);\n\n}",
"protected abstract Object getEntryValue(T nativeEntry, String property);",
"public interface MetadataValue<V> extends VersionedValue<V> {\n\n long getCreated();\n\n int getLifespan();\n\n long getLastUsed();\n\n int getMaxIdle();\n\n}",
"Property addValue(PropertyValue<?, ?> value);",
"public interface IValueVisitor\n{\n\n\t/**\n\t * a text value\n\t * @param value the value\n\t */\n\tvoid text(String value);\n\n\t/**\n\t * a null value\n\t */\n\tvoid nullValue();\n\n\t/**\n\t * an long value\n\t * @param value the value\n\t */\n\tvoid longValue(long value);\n\t\n\t/**\n\t * an integer value\n\t * @param value the value\n\t */\n\tvoid integer(int value);\n}",
"Class<V> getValueClass();",
"public abstract T getValue();",
"public abstract T getValue();",
"public abstract V getValue();",
"public abstract Object getValue(ELContext context,\n Object base,\n Object property);",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"@ProviderType\npublic interface Properties {\n\n\t/**\n\t * Returns a new builder of {@link TextProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tTextProperty.Builder text(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link TextareaProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tTextareaProperty.Builder textarea(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link BooleanProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tBooleanProperty.Builder bool(@NotNull String id, @NotNull String name);\n\n\t/**\n\t * Returns a new builder of {@link DateProperty}.\n\t *\n\t * @param id the {@link Property#getId()} of the property\n\t * @param name the {@link Property#getName()} of the property\n\t * @return the new instance\n\t */\n\tDateProperty.Builder date(@NotNull String id, @NotNull String name);\n}",
"public V getValue();",
"public V setValue(V value);",
"public abstract void set(T v, String context);",
"Class<V> getValueType();",
"T value();",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public interface ValueConverter\n{\n\n\tObject convertToX( String sourceValue, Class targetType, String propertyName );\n\n\tString convertToString( Object sourceValue, String propertyName );\n\n}",
"protected abstract IMapProperty<S, K, V> doGetDelegate(S source);",
"protected abstract Property createProperty(String key, Object value);",
"public interface\tProvider {\n\t/** Provides the value of type |Num|\n\t * @return the provided |Num| value\n\t */\n\tNum\t\tgetNumValue();\n }",
"public interface ValueObject<T> {\n\n /**\n * TODO BTF this is stupid. Use {@link #equals(Object)}.\n * \n * Value objects compare by the values of their attributes, they don't have an identity.\n *\n * @param other The other value object.\n * @return <code>true</code> if the given value object's and this value object's attributes are the same.\n */\n boolean sameValueAs(T other);\n\n}",
"public interface DataProvider<T> {\n T getData(String key);\n}",
"V getValue();",
"V getValue();",
"V getValue();",
"public interface TypedComponentAssignment<V> {\n V getAssignedValue ();\n void setAssignedValue (V value);\n}",
"@Override\n public ValueDeserializer<?> createContextual(DeserializationContext ctxt,\n BeanProperty property)\n {\n KeyDeserializer kd = _keyDeserializer;\n if (kd == null) {\n kd = ctxt.findKeyDeserializer(_containerType.getKeyType(), property);\n }\n ValueDeserializer<?> valueDeser = _valueDeserializer;\n final JavaType vt = _containerType.getContentType();\n if (valueDeser == null) {\n valueDeser = ctxt.findContextualValueDeserializer(vt, property);\n } else { // if directly assigned, probably not yet contextual, so:\n valueDeser = ctxt.handleSecondaryContextualization(valueDeser, property, vt);\n }\n // Type deserializer is slightly different; must be passed, but needs to become contextual:\n TypeDeserializer vtd = _valueTypeDeserializer;\n if (vtd != null) {\n vtd = vtd.forProperty(property);\n }\n return _createContextual(_containerType, kd, vtd, valueDeser, creatorMethod,\n findContentNullProvider(ctxt, property, valueDeser));\n }",
"public interface IProperty<O extends Object> extends IFeature{\n O getProperty();\n void setProperty(O property);\n EPropertyCategory getCategory(); \n}",
"ProxyValue createProxyValue();",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"ObjectValue createObjectValue();",
"@NotNull\n T getValue();",
"Object value();",
"public interface IValueVisitor {\n\n /**\n * This method is used for visiting ConstraintValue.<br/>\n * \n * @param value One ConstraintValue which should be visited.\n */\n void visitConstraintValue(ConstraintValue value);\n \n /**\n * This method is used for visiting EnumValue.<br/>\n * \n * @param value One EnumValue which should be visited.\n */\n void visitEnumValue(EnumValue value);\n \n /**\n * This method is used for visiting StringValue.<br/>\n * \n * @param value One StringValue which should be visited.\n */\n void visitStringValue(StringValue value);\n \n /**\n * This method is used for visiting CompoundValue.<br/>\n * \n * @param value One CompoundValue which should be visited.\n */\n void visitCompoundValue(CompoundValue value);\n\n /**\n * This method is used for visiting ContainerValue.<br/>\n * \n * @param value One CompoundValue which should be visited.\n */\n void visitContainerValue(ContainerValue value);\n \n /**\n * This method is used for visiting IntValue.<br/>\n * \n * @param value One IntValue which should be visited.\n */\n void visitIntValue(IntValue value);\n \n /**\n * This method is used for visiting RealValue.<br/>\n * \n * @param value One RealValue which should be visited.\n */\n void visitRealValue(RealValue value);\n \n /**\n * This method is used for visiting BooleanValue.<br/>\n * \n * @param value One BooleanValue which should be visited.\n */\n void visitBooleanValue(BooleanValue value);\n\n /**\n * This method is used for visiting referenceValue.<br/>\n * \n * @param referenceValue One referenceValue which should be visited.\n */\n void visitReferenceValue(ReferenceValue referenceValue);\n\n /**\n * This method is used for visiting meta type value.<br/>\n * \n * @param value a value which should be visited.\n */\n void visitMetaTypeValue(MetaTypeValue value);\n\n /**\n * This method is used for visiting a null value.<br/>\n * \n * @param value a value which should be visited (actually {@link NullValue#INSTANCE}).\n */\n void visitNullValue(NullValue value);\n\n /**\n * This method is used for visiting a version value.<br/>\n * \n * @param value a value which should be visited.\n */\n void visitVersionValue(VersionValue value);\n\n}",
"protected abstract void setEntryValue(T nativeEntry, String propertyName, Object value);",
"public interface MetaHolder extends ValueHolder {\n\n /**\n * {@inheritDoc}\n */\n default <T> Optional<T> get(Key<Value<T>> key) {\n return ValueRegistry.get(this, key);\n }\n\n /**\n * {@inheritDoc}\n */\n default <T> boolean supports(Key<Value<T>> key) {\n return ValueRegistry.supports(this, key);\n }\n\n /**\n * {@inheritDoc}\n */\n default <T> boolean offer(Key<Value<T>> key, T value) {\n return ValueRegistry.offer(this, key, value);\n }\n\n /**\n * Obtains the requested meta.\n *\n * @param clazz the clazz of the required type.\n * @param <T> the type.\n * @return the meta.\n */\n default <T extends MetaManipulator> T obtain(Class<T> clazz) {\n return MetaRegistry.get(this, clazz);\n }\n\n /**\n * Checks to see if this owner supports that meta type.\n *\n * @param clazz the clazz of the required type.\n * @param <T> the type.\n * @return {@code true} if it supports that meta.\n */\n default <T extends MetaManipulator> boolean supports(Class<T> clazz) {\n return MetaRegistry.supports(this, clazz);\n }\n\n default <T extends MetaManipulator> boolean apply(T meta) {\n return MetaRegistry.apply(this, meta);\n }\n}",
"org.apache.calcite.avatica.proto.Common.TypedValue getValue();",
"@Override\n\tpublic void setBindingValue(T value, Object target, BindingEvaluationContext context) {\n\n\t}",
"void toProvider(@NotNull Provider<? extends T> provider);",
"void toProvider(@NotNull Class<? extends Provider<? extends T>> provider);",
"abstract protected ValueFactory getValueFactory();",
"public static ValueProvider load(Object target)\n {\n return load(target, false, null);\n }",
"void setValue(V value);",
"public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}",
"protected abstract void setValue(V value);",
"ValueWrapper<V> wrapValue(V value) throws IOException;",
"Class getTypeForValueGeneratorForMember(String strategyName, String memberKey);",
"Object adapt(final T src);",
"@Override\n public Double value(TypeOfValue value);",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public abstract ValueType getValueType();",
"interface PropertyInfo {}",
"protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }",
"public Object elConvertType(Object value);",
"public interface ValueSelector<T> {\n\n\t/**\n\t * Get the currently selected values. May be empty if no selection is made.\n\t *\n\t * @return the currently selected values\n\t */\n\tT[] getValues();\n\n\t/**\n\t * Get the primary selected value. The return value will be among those returned by {@link #getValues()}.\n\t *\n\t * @return the primary selected value\n\t */\n\tT getValue();\n}",
"@SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\npublic interface Value<V> extends Supplier<V> {\n /** Creates an empty instance of Value */\n static <V> Value<V> empty() {\n return new ImmutableValue<>((V) null);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(V value) {\n return new ImmutableValue<>(value);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Optional<V> value) {\n return new ImmutableValue<>(value.orElse(null));\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Value<V> value) {\n return new ImmutableValue<>(value.get());\n }\n\n /** Creates an instance of Value for the given String, treat empty strings as null */\n static Value<String> of(String value) {\n return new ImmutableValue<>((value == null || value.isEmpty()) ? null : value);\n }\n\n /** Tries to parse the integer from the String and returns the value if its found */\n static Value<Integer> parseInteger(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Integer.parseInt(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the long from the String and returns the value if its found */\n static Value<Long> parseLong(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Long.parseLong(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the double from the String and returns the value if its found */\n static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the float from the String and returns the value if its found */\n static Value<Float> parseFloat(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Float.parseFloat(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the short from the String and returns the value if its found */\n static Value<Short> parseShort(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Short.parseShort(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the byte from the String and returns the value if its found */\n static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the boolean from the String and returns the value if its found */\n static Value<Boolean> parseBoolean(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Boolean.parseBoolean(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Does the value instance contain a non null value */\n default boolean isPresent() {\n return get() != null;\n }\n\n /** Does the value instance contain a null value */\n default boolean isEmpty() {\n return get() == null;\n }\n\n /** Get the value of this instance if its present for return the argument could be null */\n default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }\n\n /** Gets the value of this instance or throw NullPointerException with the provided message */\n default V getOrThrow(String message) {\n return Conditions.nonNull(get(), message);\n }\n\n /** Gets the value of this instance or throw NullPointerException */\n default V getOrThrow() {\n return getOrThrow(\"null\");\n }\n\n /** Run a consumer instance on the value if it exists */\n default Value<V> ifPresent(Consumer<V> consumer) {\n if (isPresent()) {\n consumer.accept(get());\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it exists */\n default Value<V> ifPresent(Runnable runnable) {\n if (isPresent()) {\n runnable.run();\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it is empty */\n default Value<V> ifEmpty(Runnable runnable) {\n if (isEmpty()) {\n runnable.run();\n }\n return this;\n }\n}",
"protected abstract V getValue(E entry);",
"@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic Object getValueFromObject(ColumnWraper columnWraper, Object fromValue) {\n\t\treturn fromValue;\r\n\t}",
"void setValue(T value);",
"void setValue(T value);",
"private Object instObj(final Value v) throws QueryException {\r\n return cls.isInstance(v) ? v : v.toJava();\r\n }",
"public interface IReferralPatientPresenter<V> extends IMvpPresenter<V> {\n\n}",
"@Nullable\n protected Object convertValueForType(MappingContext context, Object value) {\n Class<?> rawClass = context.getTypeInformation().getSafeToWriteClass();\n if (rawClass == null) {\n throw new ConfigMeMapperException(context, \"Cannot determine required type\");\n }\n\n // Step 1: check if a value transformer can perform a simple conversion\n Object result = leafValueHandler.convert(context.getTypeInformation(), value);\n if (result != null) {\n return result;\n }\n\n // Step 2: check if we have a special type like List that is handled separately\n result = handleSpecialTypes(context, value);\n if (result != null) {\n return result;\n }\n\n // Step 3: last possibility - assume it's a bean and try to map values to its structure\n return createBean(context, value);\n }"
]
| [
"0.64846575",
"0.647643",
"0.61779034",
"0.60911274",
"0.60499",
"0.59015167",
"0.58141446",
"0.58141446",
"0.58141446",
"0.58141446",
"0.58141446",
"0.58141446",
"0.57900137",
"0.57794696",
"0.5762736",
"0.57566375",
"0.5750532",
"0.5749903",
"0.5724251",
"0.5701209",
"0.5698608",
"0.56978834",
"0.56978834",
"0.56978834",
"0.56978834",
"0.56978834",
"0.56978834",
"0.56978834",
"0.5672986",
"0.5659061",
"0.56163675",
"0.5615625",
"0.56133723",
"0.56058484",
"0.5603321",
"0.5603321",
"0.559556",
"0.5592615",
"0.5582398",
"0.5582398",
"0.5582398",
"0.5582398",
"0.5582398",
"0.55425465",
"0.55130064",
"0.5502767",
"0.5502256",
"0.5485042",
"0.54710233",
"0.54648465",
"0.54648465",
"0.54648465",
"0.5459298",
"0.54560095",
"0.54182166",
"0.5395158",
"0.53857976",
"0.5370206",
"0.5367879",
"0.5367879",
"0.5367879",
"0.53553075",
"0.53080726",
"0.5306442",
"0.53050387",
"0.5302321",
"0.52880126",
"0.5282419",
"0.5275858",
"0.5272895",
"0.5261645",
"0.5246592",
"0.5244596",
"0.5244119",
"0.5243493",
"0.52345717",
"0.52211565",
"0.5216431",
"0.52105427",
"0.52097756",
"0.52047485",
"0.52010304",
"0.5200407",
"0.5198997",
"0.51959866",
"0.51885813",
"0.51885813",
"0.51869214",
"0.5185637",
"0.5184055",
"0.51676416",
"0.51518434",
"0.5144857",
"0.51195943",
"0.51181483",
"0.51177645",
"0.51056284",
"0.51056284",
"0.5105568",
"0.5104743",
"0.50952905"
]
| 0.0 | -1 |
The use of location manager below is simply to simulate an app that tries to use it, so we can verify whether permissions are granted and accessible. | public void testRunFineLocation()
{
LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
).getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
new LocationListener() {
public void onLocationChanged(Location location) {}
public void onProviderDisabled(String provider) {}
public void onProviderEnabled(String provider) {}
public void onStatusChanged(String provider, int status, Bundle extras) {}
}
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getLocation() {\n if(ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n new AlertDialog.Builder(this)\n .setTitle(\"Location Permission Required\")\n .setMessage(\"This app needs permission to use your location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(RestaurantsActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n })\n .create()\n .show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n }\n }",
"private void setupLocation() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION) &&\n ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)) {\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n } else {\n // Request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n }\n } else {\n // Permission has already been granted\n }\n }",
"private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }",
"private void getLocationPermission() {\n Log.wtf(TAG, \"getLocationPermission() has been instantiated\");\n\n Log.d(TAG, \"getLocationPermission: getting location permissions\");\n String[] permissions = {\n FINE_LOCATION,\n COARSE_LOCATION\n };\n\n if (ContextCompat.checkSelfPermission(getActivity(), FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(getActivity(), COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n Log.d(TAG, \"getLocationPermission: Permission granted\");\n initMap();\n\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void locationPermission() {\n if(Build.VERSION.SDK_INT<23){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n }else{\n if(checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n return;\n }\n\n if(shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_COARSE_LOCATION) && shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)){\n Snackbar.make(drawer,\"Location access is required to show your friend and questions on map.\",Snackbar.LENGTH_INDEFINITE)\n .setAction(\"OK\", new View.OnClickListener() {\n @TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onClick(View v) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n })\n .show();\n }else{\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n }\n }",
"public void checkLocationPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n 99);\n }\n\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }",
"public static void checkLocationPermission() {\n globalContext.stopService(locationIntent);\n\n globalFragmentActivity.requestPermissions(\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(activity.getApplicationContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(activity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void requestLocationPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Permission needed\")\n .setMessage(\"Location Permission is needed to show your current location on the map\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(ScavengerHunt.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Toast.makeText(ScavengerHunt.this, \"Location Permission is needed to update the map\", Toast.LENGTH_SHORT).show();\n }\n })\n .create()\n .show();\n\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n }",
"private void getLocationPermission(){\n Log.d(TAG, \"getLocationPermission: getting location permission.\");\n String[] permissions = {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n COURSE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mLocationPermissionGaranted = true;\n getDeviceLocation();\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void enableLocation(){\n if(PermissionsManager.areLocationPermissionsGranted(this))\n {\n initializeLocationEngine();\n initializeLocationLayer();\n\n\n }else{\n permissionsManager = new PermissionsManager(this);\n permissionsManager.requestLocationPermissions(this);\n }\n }",
"public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);*/\n }",
"private void getLocationPermission() {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n //request location permission\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION\n }, LOCATION_REQUEST_CODE);\n }\n fetchLastLocation();\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void requestLocationPermision(){\n\n // Forma de actuar diferente si la versión del dispositivo en Marshmallow\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n Log.d(TAG, \"Versión 23\");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Si no tenemos permiso, lo pedimos\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n // Show an expanation 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 Log.d(TAG, \"Show an expanation\");\n new AlertDialog.Builder(this)\n .setMessage(getString(R.string.show_explanation))\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n }\n })\n .create()\n .show();\n\n } else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE_ASK_PERMISSIONS);\n }\n } else{\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n //Comprobamos si es una mejor localización\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n } else{\n //Comprobacion de permisos\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n }\n\n }",
"private void askPermissionsAndShowMyLocation() {\n boolean isGPSEnabled = false;\n // flag for network status\n boolean isNetworkEnabled = false;\n // flag for GPS status\n boolean canGetLocation = false;\n LocationManager locationManager;\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // getting GPS status\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // getting network status\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n if (Build.VERSION.SDK_INT >= 23) {\n // flag for GPS status\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n// if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n// || accessFinePermission != PackageManager.PERMISSION_GRANTED)\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(this, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n this.showMyLocation();\n }\n\n } else {\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n this.showMyLocation();\n }\n\n\n }\n // Show current location on Map.\n }",
"private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void initializeLocation() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n Constants.PERMISSION_FINE_LOCATION);\n } else {\n createLocationRequest();\n }\n } else {\n createLocationRequest();\n }\n }",
"private void locationManager()\n\t{\n mMap.setMyLocationEnabled(true);\n\n // Getting LocationManager object from System Service LOCATION_SERVICE\n LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Creating a criteria object to retrieve provider\n Criteria criteria = new Criteria();\n\n // Getting the name of the best provider\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Getting Current Location\n Location location = locationManager.getLastKnownLocation(provider);\n\n if(location!=null){\n onLocationChanged(location);\n }\n locationManager.requestLocationUpdates(provider, 20000, 0, this);\n\t\t\n\t}",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\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 }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void requestPermissionAccessLocation() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n Log.d(TAG, \"permissionCheck: \" + permissionCheck);\n\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n updateFragmentOnLocationSuccess();\n } else {\n ActivityCompat\n .requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_PERMISSION_LOCATION);\n }\n }",
"public void checkLocationPermission() {\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, getActivity(), getActivity())) {\n if (checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, getActivity(), getActivity())) {\n gpsTracker.getLocation();\n } else {\n requestPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n requestPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n gpsTracker.getLocation();\n }\n } catch (Exception e) {\n // logException(e, \"GpsMapManualFragment_checkLocationPermission()\");\n }\n\n\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void askPermissionsAndShowMyLocation() {\n if (Build.VERSION.SDK_INT >= 23) {\n int accessCoarsePermission\n = ContextCompat.checkSelfPermission(activity, android.Manifest.permission.ACCESS_COARSE_LOCATION);\n int accessFinePermission\n = ContextCompat.checkSelfPermission(activity, android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n\n if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n || accessFinePermission != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{android.Manifest.permission.ACCESS_COARSE_LOCATION,\n android.Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(activity, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n }\n\n // Show current location on Map.\n this.showMyLocation();\n }",
"private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }",
"private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n String[] permissions = {ACCESS_FINE_LOCATION,\n ACCESS_COURSE_LOCATION};\n\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_FINE_LOCATION) == PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_COURSE_LOCATION) == PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);}\n } else{\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void permissionLocationRequest() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);\n if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {\n if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {\n showMessageOKCancel(\"You need to allow access to Location\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n });\n }\n }\n\n }\n }",
"private void checkLocationPermission() {\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)) {\n new AlertDialog.Builder(getActivity())\n .setTitle(\"give permission\")\n .setMessage(\"give permission message\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n })\n .create()\n .show();\n }\n else{\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n }\n\n }",
"private void startGettingLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //should check if location is enabled\n\n initializeGoogleApiClient();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSION_ACCESS_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED)\n {\n mLocationPermissionGranted = true;\n } else {\n requestPermissions(\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION\n );\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_FINE_LOCATION) == PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_COARSE_LOCATION) == PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{\n ACCESS_FINE_LOCATION,\n ACCESS_COARSE_LOCATION\n }, PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }",
"private boolean checkAndroidVersionForLocationPermission() {\n Log.v(MainActivity.TAG,\"Checking location permissions.\");\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n Log.d(MainActivity.TAG,\"Calling checkSelfPermission: Access Fine Location.\");\n int locationDangerCheck = checkSelfPermission(android.Manifest.permission.ACCESS_FINE_LOCATION);\n if (!(locationDangerCheck == PackageManager.PERMISSION_GRANTED)) {\n Log.d(MainActivity.TAG,\"locationCheck: \" + locationDangerCheck);\n requestLocationPermission();\n return false;\n }\n }\n return true;\n } catch (SecurityException e) {\n Log.d(MainActivity.TAG, getString(R.string.error_message), e);\n return false;\n }\n }",
"private synchronized void initLocation() {\n if (locationManager == null) {\n LocationManager manager =\n (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n\n Criteria criteriaCoarse = new Criteria();\n /* \"Coarse\" accuracy means \"no need to use GPS\".\n * Typically a gShots phone would be located in a building,\n * and GPS may not be able to acquire a location.\n * We only care about the location to determine the country,\n * so we don't need a super accurate location, cell/wifi is good enough.\n */\n criteriaCoarse.setAccuracy(Criteria.ACCURACY_COARSE);\n criteriaCoarse.setPowerRequirement(Criteria.POWER_LOW);\n String providerName =\n manager.getBestProvider(criteriaCoarse, /*enabledOnly=*/true);\n \n \n List<String> providers = manager.getAllProviders();\n for (String providerNameIter : providers) {\n try {\n LocationProvider provider = manager.getProvider(providerNameIter);\n } catch (SecurityException se) {\n // Not allowed to use this provider\n Logger.w(\"Unable to use provider \" + providerNameIter);\n continue;\n }\n Logger.i(providerNameIter + \": \" +\n (manager.isProviderEnabled(providerNameIter) ? \"enabled\" : \"disabled\"));\n }\n\n /* Make sure the provider updates its location.\n * Without this, we may get a very old location, even a\n * device powercycle may not update it.\n * {@see android.location.LocationManager.getLastKnownLocation}.\n */\n manager.requestLocationUpdates(providerName,\n /*minTime=*/0,\n /*minDistance=*/0,\n new LoggingLocationListener(),\n Looper.getMainLooper());\n locationManager = manager;\n locationProviderName = providerName;\n }\n assert locationManager != null;\n assert locationProviderName != null;\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(mContext,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(mActivity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void doStuff() {\n LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n if (locationManager != null) {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, (LocationListener) this);\n }\n\n }",
"@SuppressLint(\"MissingPermission\")\n private void configureLocation() {\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 1, (android.location.LocationListener) locationListener);\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n Toast.makeText(getApplicationContext(), \"net acquired\", Toast.LENGTH_LONG).show();\n }",
"private void activateLocationManager() {\r\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\r\n String bestProvider = getBestLocationProvider();\r\n locationAvailable = false;\r\n\r\n // If the bestProvider is not accessible and/or enabled\r\n if (!locationManager.isProviderEnabled(bestProvider)) {\r\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"Your LOCATION provider seems to be disabled, do you want to enable it?\")\r\n .setCancelable(false)\r\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n public void onClick(final DialogInterface dialog, final int id) {\r\n startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\r\n }\r\n })\r\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n public void onClick(final DialogInterface dialog, final int id) {\r\n dialog.cancel();\r\n }\r\n });\r\n final AlertDialog alert = builder.create();\r\n alert.show();\r\n }\r\n\r\n if (locationManager != null && bestProvider != \"\") {\r\n locationManager.requestLocationUpdates(bestProvider, 3000, 1, locationListener);\r\n }\r\n }",
"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 }",
"private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"private void fineLocationPermissionGranted() {\n UtilityService.addGeofences(this);\n UtilityService.requestLocation(this);\n }",
"public void init() {\n mLocationManager = (LocationManager) this.activity.getSystemService(Context\n .LOCATION_SERVICE);\n // checking run time location access permissions only for API version >= 23 (Marshmallow)\n if (ActivityCompat.checkSelfPermission(this.activity, Manifest.permission\n .ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n // if permission is already granted request for permissions\n // ActivityCompat.requestPermissions(\n // this.activity, new String[]{Manifest.permission\n // .ACCESS_FINE_LOCATION},\n // MY_PERMISSIONS_REQUEST_ACCESS_LOCATION);\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n UPDATE_INTERVAL_IN_MILLISECONDS, MIN_DISTANCE, locationListener);\n mLocationManager.addGpsStatusListener(gpsStatusListener);\n mLocationManager.addNmeaListener(nmeaListener);\n }",
"private void startForegroundLocationManager() {\n foregroundLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n mlocListener = new MyLocationListener();\n // 0, 0, is minTime ms, minDistance meters\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n foregroundLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener);\n }",
"private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults){\n switch (requestCode){\n case MY_PERMISSIONS_LOCATIONS: {\n if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mFusedClient.requestLocationUpdates(mLocationRequest,mLocationCallback, Looper.myLooper());\n }\n } else {\n Toast.makeText(this, \"permission denied\", Toast.LENGTH_LONG).show();\n }\n return;\n }\n }\n }",
"public boolean haveLocationPermissions() {\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n }",
"private void checkLocationandAddToMap() {\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Requesting the Location permission\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n return;\n }\n\n locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = locationManager.getBestProvider(criteria, true);\n\n\n //Fetching the last known location using the Fus\n Location location = locationManager.getLastKnownLocation(bestProvider);\n\n\n if (location != null) {\n\n onLocationChanged(location);\n\n\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, (LocationListener) getActivity());\n }\n\n\n }",
"public boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\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 new AlertDialog.Builder(this)\n .setTitle(\"TITLE\")\n .setMessage(\"TEXT\")\n .setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Prompt the user once explanation has been shown\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n })\n .create()\n .show();\n\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n return false;\n } else {\n return true;\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void requestLocationUpdate() {\n }",
"private void fetchlocation() {\n if (ContextCompat.checkSelfPermission(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)) {\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 new AlertDialog.Builder(this)\n .setTitle(\"Required Location Permission\")\n .setMessage(\"You have to give permission to fetch your current location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .create()\n .show();\n\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n // Logic to handle location object\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n });\n }\n }",
"public void requestLocation() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.INTERNET}, 12);\n }\n return;\n }\n //this line updates location\n mMap.setMyLocationEnabled(true);\n providerClient.requestLocationUpdates(locationRequest, locationCallback, getMainLooper());\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n int coarseLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[0]);\n int fineLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[1]);\n\n switch (requestCode) {\n\n case (REQUEST_LOCATION_PERMISSION):\n\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Log.v(TAG, \"Permission Granted\");\n\n if (coarseLocation == PackageManager.PERMISSION_GRANTED && fineLocation == PackageManager.PERMISSION_GRANTED) {\n\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 20000, 10, locationListener);\n\n // Permission are granted. Check if GPS and bluetooth are enabled or send an alert to activate them\n if (!mBluetoothAdapter.isEnabled() && mAlertBlue == null)\n mAlertBlue = showAlert(ALERT_BLUE).create();\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) && mAlertGps == null) {\n mAlertGps = showAlert(ALERT_GPS).create();\n mAlertGps.show();\n }\n if (mBluetoothAdapter.isEnabled() && mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n Log.d(TAG, \"scanLeDevice(true) after permission and all enabled\");\n scanLeDevice(true);\n }\n }\n\n } else {\n\n Log.v(TAG, \"Permission NOT Granted\");\n showNegativeDialog(getResources().getString(R.string.perm_error_title),\n getResources().getString(R.string.perm_error_msg)\n );\n if (mLocationManager != null)\n mLocationManager.removeUpdates(locationListener);\n }\n break;\n\n default:\n break;\n }\n }",
"private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }",
"private boolean checkPermissonLocationRequest(int requestCode) {\n if (Build.VERSION.SDK_INT >= 23) {\n if (checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION}, requestCode);\n return false;\n }\n } else {\n return true;\n }\n }",
"private boolean checkPermissions() {\n return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n // If we want background location\n // on Android 10.0 and higher,\n // use:\n // ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) == PackageManager.PERMISSION_GRANTED\n }",
"private boolean checkPermissions() {\n return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n // If we want background location\n // on Android 10.0 and higher,\n // use:\n // ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) == PackageManager.PERMISSION_GRANTED\n }",
"private void enableMyLocation(){\n System.out.print(\"get here\");\n if(ContextCompat.checkSelfPermission(this.getContext(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this.getActivity(),LOCATION_PERMISSION_REQUEST_CODE,\n Manifest.permission.ACCESS_FINE_LOCATION,true);\n }else if(googleMap!=null){\n // Access to the location has been granted to the app.\n googleMap.setMyLocationEnabled(true);\n }\n }",
"private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }",
"protected void startLocationUpdates() {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n /*if (shouldShowRequestPermissionRationale(\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n showExplanationDialog(new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(\n new String[]{ Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n } else {\n requestPermissions(\n new String[]{ Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }*/\n } else {\n if (mGoogleApiClient.isConnected()) {\n LocationServices.FusedLocationApi.requestLocationUpdates(\n mGoogleApiClient, mLocationRequest, this);\n mRequestingLocationUpdates = true;\n Fog.d(TAG, \"requestedLocationUpdates\");\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case 1:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n }\n\n } else {\n Toast.makeText(getContext(), \"This app needs location permission to be granted!,\",\n Toast.LENGTH_LONG).show();\n getActivity().finish();\n }\n break;\n }\n }",
"private void turnOnLocationManager(){\n mLocationManager=(LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n mLocationManager.addTestProvider(LocationManager.GPS_PROVIDER, false, false, false,\n false, true, true, true, 0, 5);\n mLocationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER, true);\n //mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, mLocationSource);\n }",
"private void startTrackingRoute(){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n //Starts up alert dialog for getting permission\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOC_PERMISSION);\n }\n else{\n //Start the location updater listener\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, MIN_DISTANCE, this);\n }\n }",
"private void configLoc(){\n System.out.println(\"Configuring location\");\n\n // first check for permissions\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n locationManager.requestLocationUpdates(\"gps\",5000,0,locationListener);\n }",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE, Manifest.permission.ACCESS_FINE_LOCATION, true);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n }",
"public void askPermission() {\n if (ContextCompat.checkSelfPermission(getActivity()\n , android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n reqestLocationPermission);\n }\n }",
"private boolean checkPermissions() {\n boolean permissionGrant = false;\n if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions((Activity) this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_ACCESS_COARSE_LOCATION);\n } else {\n permissionGrant = true;\n }\n return permissionGrant;\n\n }",
"protected void getLocation() {\n if (isLocationEnabled(Navigate.this)) {\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();\n\n //You can still do this if you like, you might get lucky:\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(bestProvider);\n if (location != null) {\n Log.e(\"TAG\", \"GPS is on\");\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, this);\n }\n } else {\n// final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n// builder.setMessage(\"Your GPS seems to be disabled, do you want to enable it?\")\n// .setCancelable(false)\n// .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n// }\n// })\n// .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// dialog.cancel();\n// }\n// });\n// final AlertDialog alert = builder.create();\n// alert.show();\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if(requestCode==REQUEST_location)\n if (Connectivity.Checkinternet(getActivity())) {\n if (requestCode == 100) {\n if (!PermissionUtils.isPermissionGranted(permissions, grantResults, Manifest.permission.ACCESS_FINE_LOCATION) &&\n !PermissionUtils.isPermissionGranted(permissions, grantResults, Manifest.permission.ACCESS_COARSE_LOCATION))\n setupmap();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }\n }",
"private boolean getLocation() {\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // define listener responding to location updates\n LocationListener locationListener = new LocationListener() {\n public void onLocationChanged(Location location) {\n // new location is found by the network location provider\n }\n public void onStatusChanged(String provider, int status, Bundle extras) { }\n public void onProviderEnabled(String provider) { }\n public void onProviderDisabled(String provider) { }\n };\n\n // register listener with Location Manager to receive location updates\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Location permission not granted\");\n requestLocationPermission();\n return false;\n }\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n String locationProvider = LocationManager.GPS_PROVIDER;\n Location lastKnownLocation = locationManager.getLastKnownLocation(locationProvider);\n\n // store values\n longitude = lastKnownLocation.getLongitude();\n latitude = lastKnownLocation.getLatitude();\n Log.d(TAG, \"Longitude: \" + longitude + \", Latitude: \" + latitude);\n\n return true;\n }",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE,\n Manifest.permission.ACCESS_FINE_LOCATION, true);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n }",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n checkLocationPermissions();\n }",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1337);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 500, 10, this);\n }",
"@Override\n public void onRequestPermissionsResult(@NonNull int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (permissions.length == 0) {\n return;\n }\n boolean allPermissionsGranted = true;\n if (grantResults.length > 0) {\n for (int grantResult : grantResults) {\n if (grantResult != PackageManager.PERMISSION_GRANTED) {\n allPermissionsGranted = false;\n break;\n }\n }\n }\n if (!allPermissionsGranted) {\n boolean somePermissionsForeverDenied = false;\n for (String permission : permissions) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) {\n //denied\n } else {\n if (ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED\n && requestCode == Extra.LOCATION) {\n getLocation();\n } else {\n //set to never ask again\n somePermissionsForeverDenied = true;\n }\n }\n }\n if (somePermissionsForeverDenied) {\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(R.string.permissions_required)\n .setMessage(R.string.you_have_explicitly_denied_permissions_which_are_required_by_this_app_to_run_for_this_action_open_settings_go_to_permissions_and_allow_them)\n .setPositiveButton(R.string.settings, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(Extra.PACKAGE, getPackageName(), null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }\n } else if (requestCode == Extra.LOCATION) {\n getLocation();\n }\n }",
"private boolean checkPermission() {\n int fineLocation = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (fineLocation != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_FINE_LOCATION);\n }\n return false;\n } else {\n return true;\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void Locate(){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, (LocationListener) this);\n\n // Obtain the SupportMapFragment and get notified when the map is ready to be used.\n mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n\n //Initialize fused location\n client = LocationServices.getFusedLocationProviderClient(this);\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getCurrentLocation();\n } else {\n Toast.makeText(this, \"Permision Denied\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,@NonNull int[] grantResults) {\n if (requestCode != PermissionUtils.REQUEST_CODE) {\n return;\n }\n if (PermissionUtils.isPermissionGranted(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION}, grantResults)) {\n //If you have permission, go to the code to get the location value\n initGoogleMapLocation();\n } else {\n Toast.makeText(this, \"Stop apps without permission to use location information\", Toast.LENGTH_SHORT).show();\n //finish();\n }\n }",
"protected void startLocationUpdates() {\n try {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public interface LocationProvider {\r\n\t\r\n\t/**\r\n\t * Returns the current location.\r\n\t * \r\n\t * @return the current location\r\n\t */\r\n\tpublic Location getCurrentLocation();\r\n\t\r\n\t/**\r\n\t * Returns the previous locations, not including the current location.\r\n\t * \r\n\t * @return the previous locations\r\n\t */\r\n\tpublic List<Location> getPreviousLocations();\r\n\t\r\n\t/**\r\n\t * Tells if this location manager is prepared for the first speed checks, i.e., if it has received at\r\n\t * least two location updates.\r\n\t * \r\n\t * @return true if sufficient locations are available\r\n\t */\r\n\tpublic boolean isReady();\r\n\r\n}",
"void configure_button(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n\n }",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE,\n android.Manifest.permission.ACCESS_FINE_LOCATION, true);\n } else if (currentMap != null) {\n // Access to the location has been granted to the app.\n currentMap.setMyLocationEnabled(true);\n }\n }",
"private Location getLocation() {\n try {\n locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n\n } else {\n this.canGetLocation = true;\n\n if (isNetworkEnabled) {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n Log.d(TAG, \"nagy nulla\");\n return null;\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 3, locationListener);\n\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled){\n if (location == null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60000, 3, locationListener);\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n } else {\n //showAlertDialog();\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return location;\n }",
"private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }",
"private void requestFineLocationPermission() {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_REQ);\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n switch (requestCode) {\n case MY_LOCATION:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n gMap.setMyLocationEnabled(true);\n }\n } else {\n Toast.makeText(getActivity().getApplicationContext(), \"Bit Chat requires location permissions to be granted\", Toast.LENGTH_LONG).show();\n getActivity().finish();\n }\n break;\n }\n }",
"private void getLocation() {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\t\t\tif (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tFusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(getApplicationContext());\n\t\tlocationProviderClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Location location) {\n\t\t\t\t\n\t\t\t\tfinal Location finalLocation = location;\n\t\t\t\t\n\t\t\t\tbtnGoToYou.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLatLng userLocation = new LatLng(finalLocation.getLatitude(), finalLocation.getLongitude());\n\t\t\t\t\t\tmMap.addMarker(new MarkerOptions().position(userLocation).title(\"You are Here!\"));\n\t\t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\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}\n\t\t});\n\t\t\n\t}",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE,\n Manifest.permission.ACCESS_FINE_LOCATION, true);\n mMap.setMyLocationEnabled(true);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n Log.i(\"Current Location\", \"Location Enabled:\" + mMap.isMyLocationEnabled());\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n LocationListener locationListener = new OrderLocationListener();\n\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 9000, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n makeUseOfNewLocation(location);\n\n location = LocationServices.FusedLocationApi.getLastLocation(client);\n\n makeUseOfNewLocation(location);\n\n }"
]
| [
"0.7531867",
"0.7491379",
"0.7460927",
"0.744039",
"0.7410266",
"0.7406283",
"0.7313558",
"0.73064697",
"0.73064697",
"0.729695",
"0.72769225",
"0.7273188",
"0.72217447",
"0.71828383",
"0.71572137",
"0.7139737",
"0.71156293",
"0.7112473",
"0.71001375",
"0.7099986",
"0.7092275",
"0.70876634",
"0.7071456",
"0.7071456",
"0.7070757",
"0.70676607",
"0.70654374",
"0.7064222",
"0.7053494",
"0.70375186",
"0.70367837",
"0.70367837",
"0.7034327",
"0.70266527",
"0.70264876",
"0.70249414",
"0.7022845",
"0.7009239",
"0.699309",
"0.69389",
"0.6931052",
"0.69201547",
"0.6906642",
"0.68957067",
"0.6891048",
"0.6887733",
"0.6886192",
"0.68447155",
"0.6837097",
"0.68173367",
"0.67941797",
"0.678342",
"0.6777953",
"0.6776553",
"0.6766498",
"0.6758624",
"0.67575586",
"0.6757458",
"0.67344105",
"0.6716698",
"0.6704653",
"0.6703779",
"0.6676296",
"0.6666197",
"0.6653139",
"0.6652737",
"0.66517895",
"0.662174",
"0.662174",
"0.66032696",
"0.660195",
"0.65863013",
"0.6582727",
"0.6582619",
"0.658147",
"0.65758467",
"0.65632707",
"0.6551996",
"0.6548152",
"0.6540832",
"0.6539891",
"0.6528046",
"0.652125",
"0.6516022",
"0.65155065",
"0.6515289",
"0.6514113",
"0.6511232",
"0.65109485",
"0.65105134",
"0.6507456",
"0.65071267",
"0.6505491",
"0.64929616",
"0.6490942",
"0.6478061",
"0.6476259",
"0.6471611",
"0.6471219",
"0.6458438"
]
| 0.64995277 | 93 |
TODO add test methods here. | @Test
public void createAndDeleteSQLMetaAtomInfo() {
try {
ThermoSQLConnection connect = new ThermoSQLConnection();
if (connect.connect()) {
SQLMetaAtomInfo sqlinfo = new SQLMetaAtomInfo(connect);
MetaAtomInfo infoCO = new MetaAtomInfo();
infoCO.setElementName("AldehydeKetone");
infoCO.setMetaAtomName("ald");
infoCO.setMetaAtomType("BensonAtom");
sqlinfo.addToDatabase(infoCO);
sqlinfo.deleteElement(infoCO);
HashSet vec = sqlinfo.retrieveDatabase();
Iterator i = vec.iterator();
while (i.hasNext()) {
MetaAtomInfo inf = (MetaAtomInfo) i.next();
System.out.println(inf.toString());
}
vec = sqlinfo.retrieveMetaAtomTypesFromDatabase("BensonAtom");
i = vec.iterator();
while (i.hasNext()) {
MetaAtomInfo inf = (MetaAtomInfo) i.next();
System.out.println(inf.toString());
}
}
} catch (SQLException ex) {
Logger.getLogger(TestSQLMetaAtoms.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private void test() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private test5() {\r\n\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"public final void mo51373a() {\n }",
"@Override\n void init() {\n }",
"private Util() { }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n public void init() {\n }",
"public void smell() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void strin() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\n public void test() {\n \n }",
"private void init() {\n\n\t}",
"protected void mo6255a() {\n }",
"public void identify() {\n\n\t}",
"public void mo38117a() {\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void setup() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override public int describeContents() { return 0; }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"protected Doodler() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"protected void initialize() {}",
"protected void initialize() {}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"private Singletion3() {}",
"private OMUtil() { }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"zzafe mo29840Y() throws RemoteException;",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}"
]
| [
"0.60264075",
"0.6014216",
"0.581765",
"0.5787869",
"0.56720036",
"0.56572545",
"0.56572545",
"0.56572545",
"0.56572545",
"0.56572545",
"0.56572545",
"0.5656844",
"0.565146",
"0.56330734",
"0.56115806",
"0.5604492",
"0.5577615",
"0.5515678",
"0.54994893",
"0.54960936",
"0.5484286",
"0.5458408",
"0.5446953",
"0.5420584",
"0.5420584",
"0.5417936",
"0.54176486",
"0.53981286",
"0.53957915",
"0.53688586",
"0.53485096",
"0.5335742",
"0.5321381",
"0.5313769",
"0.5313769",
"0.53133",
"0.53060967",
"0.53047216",
"0.5302008",
"0.52962226",
"0.5290143",
"0.5287843",
"0.5287843",
"0.5287843",
"0.52873987",
"0.5286987",
"0.5285595",
"0.52836174",
"0.52836174",
"0.5281613",
"0.5280753",
"0.5276629",
"0.5267197",
"0.5266106",
"0.5260215",
"0.5260021",
"0.5259677",
"0.5244268",
"0.52430314",
"0.52411735",
"0.5240515",
"0.52369857",
"0.52333236",
"0.5230604",
"0.522789",
"0.5223649",
"0.52214926",
"0.5218852",
"0.5217604",
"0.5216561",
"0.52138823",
"0.5205734",
"0.52045226",
"0.5203215",
"0.520288",
"0.52020985",
"0.52020985",
"0.52010775",
"0.51998633",
"0.51998633",
"0.51966804",
"0.51920444",
"0.5185536",
"0.51836425",
"0.5174899",
"0.5174899",
"0.5174127",
"0.51712376",
"0.5170982",
"0.5167055",
"0.5167055",
"0.5167055",
"0.5167055",
"0.5167055",
"0.5167055",
"0.5167055",
"0.51657623",
"0.51621133",
"0.51603186",
"0.515956",
"0.5157339"
]
| 0.0 | -1 |
System.out.println("Account. New Account created with login: "+login); | public void setLogin(String login) {
Logger.getGlobal().log(Level.INFO, "Account: " +login +" creating");
this.login = login;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}",
"@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}",
"private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}",
"@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}",
"private static void printFirstOp(){\n\t\tSystem.out.println(\"Welcome to SimpleSocial!\\n\"\n\t\t\t\t+ \"Type:\\n\"\n\t\t\t\t+ \"- register\\n\"\n\t\t\t\t+ \"- login\\n\"\n\t\t\t\t+ \"- exit\");\n\t}",
"@Then(\"I want to login successfully\")\n\tpublic void output() {\n\t\tact.gethomepage().verifyLoggedUser();\n\n\t\t//String username = linkWelcome.getText();\n\t\t//String login = \"Welcome Admin\";\n\t\t//if (username.equals(login)) {\n\t\t\t//System.out.println(\"User name is correct\");\n\t\t//} else {\n\t\t\t//System.out.println(\"Username is not correct\");\n\n\t\t}",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"public void login() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }",
"Login() { \n }",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"private static void displayAccount(Account account) {\n\t\tSystem.out.println(account.toString());\n\t\tSystem.out.println();\n\t}",
"void startTA() {\r\n ta_employeeAccount.appendText(\"Are you an employee with the shelter? \\n\" +\r\n \"enter your Last name and First Name \\n\" +\r\n \"Then enter a Password to create an account \\n\\n\" +\r\n \"P.S dont forget the employee code given \\n\" +\r\n \"by the shelter\");\r\n }",
"Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }",
"public void account() throws SQLException {\r\n String name = tf_firstAndLastName.getText();\r\n String password = tf_employeePass.getText();\r\n if ((!name.equals(\"\")) && (!password.equals(\"\"))) {\r\n myEmployee = new Employee(name, password);\r\n if ((!myEmployee.getUsername().equals(\"\")) && (!myEmployee.getPassword().equals(\"\"))) {\r\n String employeeCode = JOptionPane.showInputDialog(\"Input Employee Code\");\r\n if (employeeCode.equals(\"AS123\")) {\r\n String productQuery = \"INSERT INTO EMPLOYEE(NAME, USERNAME, PASSWORD, EMAIL) VALUES (?,?,?,?)\";\r\n PreparedStatement addEmployee = Login_Controller.conn.prepareStatement(productQuery);\r\n\r\n addEmployee.setString(1, name);\r\n addEmployee.setString(2, myEmployee.getUsername());\r\n addEmployee.setString(3, password);\r\n addEmployee.setString(4, myEmployee.getEmail());\r\n addEmployee.executeUpdate();\r\n addEmployee.close();\r\n\r\n tf_firstAndLastName.clear();\r\n tf_employeePass.clear();\r\n ta_employeeAccount.appendText(myEmployee.toString() + \"\\n\\n\");\r\n\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Invalid employee code. \" +\r\n \"\\nNote: Only employees need to create accounts and log in\");\r\n }\r\n } else {\r\n JFrame frame = new JFrame(\"\");\r\n JOptionPane.showMessageDialog(\r\n frame.getContentPane(),\r\n \"Username or password has invalid format.\\n\",\r\n \"Invalid Format\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Name or password is empty.\");\r\n }\r\n\r\n }",
"private void logUser() {\n }",
"public static void main(String[] args) {\n Login l = new Login();\n if(l.checkLogin(\"admin\", \"12345\")){\n List<Login> ll = Login.UserLogin(\"admin\", \"12345\");\n System.out.println(\"เข้าสู่ระบบสำเร็จ\");\n System.out.println(ll);\n }\n else{\n System.out.println(\"พาสเวิร์ดหรือชื่อผู้ใช้ผิด\");\n }\n }",
"public String printNewUsernamePrompt() {\n return \"Please enter new username: \";\n }",
"public void accountElection(){\n System.out.println(\"Elija una de las cuentas\");\n System.out.println(\"\");\n}",
"public void LogIn() {\n\t\t\r\n\t}",
"public void login2() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }",
"public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}",
"public static void Login() \r\n\t{\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n UserInformation userInformation = new UserInformation();\n System.out.println(\"What do you want ?\");\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"1)Sign Up \\n2)Login \");\n int select = scanner.nextInt();\n System.out.println(\"Enter the requested information\");\n\n switch (select){\n case 1:\n System.out.println(\"Enter your name:\");\n userInformation.setName(scanner.next());\n System.out.println(\"Enter your UserName:\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n System.out.println(\"Enter your Email\");\n userInformation.setEmail(scanner.next());\n System.out.println(\"Welcom :)\");\n userInformation.insert(userInformation.getName(),userInformation.getUsername(),userInformation.getPassword(),userInformation.getEmail());\n break;\n\n case 2:\n System.out.println(\"Enter your UserName\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n break;\n }\n }",
"public static void main(String[] args) {\n Account firstAccount = new Account(\"first Account\",100.00);\n \n \n System.out.println(\"Initial State\");\n System.out.println(firstAccount);\n \n \n firstAccount.deposit(20);\n System.out.println(\"the balance of first Account is : \" + firstAccount.toString());\n \n \n }",
"public void printUser() {\n\t\tSystem.out.println(\"First name: \" + this.firstname);\n\t\tSystem.out.println(\"Last name: \" + this.lastname);\n\t\tSystem.out.println(\"Age: \" + this.age);\n\t\tSystem.out.println(\"Email: \" + this.email);\n\t\tSystem.out.println(\"Gender: \" + this.gender);\n\t\tSystem.out.println(\"City: \" + this.city);\n\t\tSystem.out.println(\"State: \" + this.state + \"\\n\");\n\t}",
"private void login(){\n out.println(\"Enter player name: \");\n player = new Player(in.nextLine());\n game.addPlayerObject(player);\n out.println(\"Player name set to: \" + player.getName() + \"\\r\\n\");\n\n game.incrementPlayersConnected();\n\n login = true;\n }",
"public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}",
"public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }",
"void loginDone();",
"public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n BankAccount bankAccount = new BankAccount(11211, 0, \"adam smith\", \"[email protected]\", \"9090980980\");\n BankAccount tim = new BankAccount(\"tim\", \"[email protected]\", \"9090980980\");\n System.out.println(\"Account Number = \" + tim.getAccountNumber());\n System.out.println(\"Balance = \"+ tim.getBalance());\n System.out.println(\"Customer Name = \" + bankAccount.getCustomerName());\n System.out.println(\"Email = \" + bankAccount.getEmailAddress());\n System.out.println(\"Phone Number = \" + bankAccount.getPhoneNumber());\n System.out.println(\"deposit = \"+ bankAccount.getDeposit(90));\n System.out.println(\"new balance = \"+ bankAccount.getWithdrawal(200));\n }",
"public void input_details_log()\r\n {\r\n System.out.print(\"\\n Enter your email id: \");\r\n Email=sc.nextLine();\r\n\r\n System.out.print(\" Enter your password: \");\r\n check_passwrd=sc.nextLine();\r\n }",
"public void success() {\n Toast.makeText(ui.getApplicationContext(),\"Account successfully created!\",Toast.LENGTH_SHORT).show();\n }",
"GenerateUserAccount () {\r\n }",
"public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}",
"String addAccount(UserInfo userInfo);",
"public void printAccountInfo(){\n System.out.printf(\"%5d %-20s %8.2f\\n\",accountNum,customerName,balance);\n }",
"public void new_user(){\n }",
"private void loginSuccess(String uname) {\n }",
"public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}",
"@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }",
"@Override\r\n\tpublic void login() {\n\r\n\t}",
"@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Hello, my name is: \" + getName() + \" and I have pass: \" + getPassword() + \" and balance: \" + getBalance() + \"$\" + \"\\n\";\n\t}",
"public static void main(String[] args) {\n UserObjects user = new UserObjects();\n System.out.printf(\" ------------ Login ------------ \\n\");\n System.out.println(\"Enter library number:\");\n String libraryNumberInput = Utililty.readConsoleInput();\n System.out.println(\"\\nEnter password:\");\n String passwordInput = Utililty.readConsoleInput();\n Boolean successLogin = user.login(libraryNumberInput,passwordInput);\n\n if(successLogin){\n Biblioteca biblioteca = new Biblioteca();\n String firstGreeting = biblioteca.welcomeMessage();\n System.out.println(firstGreeting);\n\n Menu menu = new Menu(biblioteca, user);\n menu.readInputOption();\n }else{\n System.out.println(\"Incorrect login\");\n }\n\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"private LogIn() {}",
"public void Display(){\n System.out.println(\"************************************************************\");\n System.out.println(\"Customer Account Number: \"+getAccountNo());\n System.out.println(\"Customer Account Id: \"+getAccountId());\n System.out.println(\"Customer Type: \"+getAccountType());\n System.out.println(\"Customer Balance: $\"+getAccountBal());\n System.out.println(\"Thank you for banking with us!\");\n System.out.println(\"************************************************************\");\n }",
"NewAccountPage openNewAccountPage();",
"public void addCustomer() {\n\t\tSystem.out.println(\"Enter your first name.\");\n\t\tString fn = scan.nextLine();\n\t\tSystem.out.println(\"Enter your last name.\");\n\t\tString ln = scan.nextLine();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\tSystem.out.println(\"Password once more (to be safe.)\");\n\t\tString pw2 = scan.nextLine();\n\t\t/*if (pw.toString() != pw2.toString()) {\n\t\t\tSystem.out.println(\"Whoops! Let's try that again.\");\n\t\t\taddCustomer();\n\t\t}\n\t\t*/\n\t\t//else {\n String sql = \"INSERT INTO bank.login (first_name, last_name, user_name, password) VALUES (\"+\"\\\"\"+fn+\"\\\"\"+\", \"+\"\\\"\"+ln+\"\\\"\"+\", \"\n\t\t+\"\\\"\"+user+\"\\\"\"+\", \"+\"\\\"\"+pw+\"\\\"\"+\")\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = Database.connection.createStatement();\n // ResultSet resultSet =\n \t\tstatement.executeUpdate(sql);\n try {\n \t\t\tconnect.databaseClose();\n \t\t} catch (SQLException e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n\n bank.start();\n }\n \n\n catch(SQLException e){\n \t\te.printStackTrace();\n Menus.custMenu();\n\n }\n\n \n\t\t\n\t}",
"public String getLogin(){\r\n return login;\r\n }",
"protected void login() {\n\t\t\r\n\t}",
"public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }",
"public String getLogin()\n {\n \treturn stringLogin;\n }",
"@Override\n public String toString() {\n return \"--------------------------------------------\\n\"+\n \"username: \" + username + \"\\n\" + \n \"fullName: \" + lastName + \" \" + firstName + \"\\n\" + \n \"password: \" + password + \"\\n\" +\n \"phone: \" + phone + \"\\n\" + \n \"email: \" + email + \"\\n\";\n }",
"public void logMe(String username){\r\n\t\tif(controller.isUsernameValid(username,1)){\r\n\t\t\tString password= \"\";\r\n\t\t\tdisplay(\"Enter your password: \");\r\n\t\t\tpassword = sc.nextLine();\r\n\t\t\tcontroller.log(username, password);\r\n\t\t}\r\n\t}",
"@Test\n public void stage03_testLogin() {\n String userName = \"\";\n String password = \"\";\n //Sign in\n SignIn signIn = new SignIn(driver);\n HomePage homePage = signIn.loginValidUser(userName, password);\n //Get login name\n String loginName = homePage.getLoginName();\n //Testing if login name is correct\n assertEquals(loginName, (userName));\n //logging\n if (loginName.equals(userName)) {\n logger.info(\"Loged in succesfully.\");\n logger.info(\"( stage02_testOpenLoginPage )Actual username : \" + loginName + password);\n } else {\n logger.error(\"Unable to login.\");\n logger.error(\"( stage02_testOpenLoginPage )Actual username : \" + loginName);\n }\n }",
"public void create_loginFile(String account){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.LOGIN_FILE, Context.MODE_PRIVATE));\n outputStreamWriter.write(account+\" logged in,\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }",
"public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}",
"public void setLogin (String login) {\n this.login = login;\n }",
"public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}",
"@Test\n public void loginWithEmptyName(){\n\n Assert.assertEquals(createUserChecking.creationChecking(\"\",email),\"APPLICATION ERROR #11\");\n log.info(\"Empty login and email \"+ email+\" were typed\");\n }",
"@Override\r\n public String toString(){\r\n String out = \"Login - \";\r\n out += login;\r\n out += \" Password - \";\r\n out += Encryptor.decrypt(password,login);\r\n return out;\r\n }",
"@Test\n\tpublic void loginTest() {\n\t\tSystem.out.println(\"Login Page Test\");\n\t}",
"public String loginAction() throws Exception {\n\t\t\t\t\n\t return \"builder\";\n\t }",
"BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}",
"public void loginMenu(){\n\t\tstate = ATM_State.LOGINID;\n\t\tgui.setDisplay(\"Enter your account ID: \\n\");\n\t}",
"public void addUser() throws AccountException {\n System.out.println(\"----------------- Add User -----------------\");\n System.out.print(\"Account: \");\n String username = this.checkUsername(); // Call method to check input of username\n\n System.out.print(\"Password: \");\n String password = this.checkEmpty(\"Password\"); // Call method to check input of password\n\n System.out.print(\"Name: \");\n String name = this.checkEmpty(\"Name\"); // Call method to check input of name\n\n System.out.print(\"Phone: \");\n String phone = this.checkPhone(); // Call method to check nput of phone\n\n System.out.print(\"Email: \");\n String email = this.checkEmail(); // Call method to check input of email\n\n System.out.print(\"Address: \");\n String address = this.checkEmpty(\"Address\"); // Call method to check input of address\n\n System.out.print(\"DOB: \");\n Date dob = this.checkDate(); // Call method to check input of dob\n\n // Add new user and print success if created\n this.addUser(username, password, name, phone, email, address, dob);\n System.out.println(\"Create account success.\");\n }",
"public LoginOra() {\n super(\"Oracle Login\");\n\n }",
"public static void main(String[] args) {\n\n BankAccount rustemAccount=new BankAccount(\"Rustem\",\"Erdem\");\n\n System.out.println(\"rustemAccount.firstName = \" + rustemAccount.firstName);\n System.out.println(\"rustemAccount.getAccountHolder() = \" + rustemAccount.getAccountHolder());\n\n\n System.out.println(\"getBalance() = \" + rustemAccount.getBalance());\n\n rustemAccount.setBalance(150);\n System.out.println(\"getBalance() = \"+rustemAccount.getBalance());\n\n rustemAccount.deposit(150);\n rustemAccount.avaliableBalance();\n rustemAccount.withdraw(100);\n rustemAccount.avaliableBalance();\n\n\n rustemAccount.setAccountNumber(23112432);\n System.out.println(\"rustemAccount.getAccountNumber() = \" + rustemAccount.getAccountNumber());\n\n\n System.out.println(rustemAccount);\n }",
"@Override\n\tpublic void work() {\n\t\tSystem.out.println(\"Accountant accounting.\");\n\t}",
"@Test\n public void loginAsEmptyUser(){\n Assert.assertEquals(createUserChecking.creationChecking(\"\",\"\"),\"APPLICATION ERROR #11\");\n log.info(\"Empty login and email were typed\");\n }",
"public static void welcome(){\n\n System.out.print(\"Welcome to the Human Resources Management System.\"+\n \"\\nThis program allows you to add new employees and print all employees.\");\n \n }",
"public String _login_click() throws Exception{\n_login();\n //BA.debugLineNum = 155;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public String toString(){\n return username;\n\n }",
"public static void main(String[] args){\n System.out.println(\"\\nSTEP 1:\\n Create a new bank account.\");\n BankAccount a = new BankAccount(args[0], args[1], args[2]);\n System.out.println(a);\n\n // Get and set names\n System.out.println(\"\\nSTEP 2:\\n Get account holder name.\");\n String name = a.getName();\n System.out.println(\"The name is \" + name);\n System.out.println(a);\n\n System.out.println(\"\\nSTEP 3:\\n Set account holder name.\");\n a.setName(\"Mary Berry\");\n System.out.println(a);\n\n // Get and set account number\n System.out.println(\"\\nSTEP 4:\\n Get account number.\");\n String number = a.getNumber();\n System.out.println(\"The account number is \" + number);\n System.out.println(a);\n\n System.out.println(\"\\nSTEP 5:\\n Set account number.\");\n a.setNumber(\"0012044\");\n System.out.println(a);\n\n // Withdraw money with no funds\n System.out.println(\"\\nSTEP 6:\\n Attempt to withdraw money with insufficient funds.\");\n a.withdraw(22.0);\n System.out.println(a);\n\n // Deposit to account\n System.out.println(\"\\nSTEP 7:\\n Deposit to bank account.\");\n a.deposit(50.0);\n System.out.println(a);\n\n // Check balance\n System.out.println(\"\\nSTEP 8:\\n Check account balance.\");\n double balance = a.checkBalance();\n System.out.println(\"The balance is \" + balance);\n System.out.println(a);\n\n // Withdraw with sufficient funds\n System.out.println(\"\\nSTEP 9:\\n Withdraw from account.\");\n a.withdraw(22.0);\n System.out.println(a);\n }",
"public String getLoginAccount() {\n return loginAccount;\n }",
"@Override\n\tpublic void printAccountType() {\n\t\tSystem.out.println(\"Checking\");\n\t}",
"public void staffname() {\nSystem.out.println(\"staff name\");\n\t}",
"@When(\"^User login into the app with username and password$\")\n\tpublic void user_login_to_the_app_with_username_and_password() {\n\t\tSystem.out.println(\"User is logged\");\n\t}",
"public static void main(String[] args) {\n\r\n\t\tlog.error(\"Demo1 Unable to click on button\");\r\n\t\tlog.fatal(\"Demo1 Fatal error displayed\");\r\n\t\tlog.info(\"Demo1 successfully entered username and password\");\r\n\t\tlog.debug(\"Demo1 debug information displayed\");\r\n\t}",
"private void login(String username,String password){\n\n }",
"public void addAccount(String user, String password);",
"public void setLogin(String login) {\n this.login = login;\n }",
"public void setLogin(String login) {\n this.login = login;\n }",
"public String toString(){\r\n\t\treturn this.username+\"(\"+this.firstname+\" \"+this.lastname+\")\";\r\n\t}",
"public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}",
"void successLogin();",
"public static void main(String[] args) {\n\t\tAccount account = new Account(1122, 20000);\r\n\t\taccount.setAnnualInterestRate(4.5);\r\n\t\taccount.withdraw(2500); //withdraw $2500\r\n\t\taccount.deposit(3000); //deposit $3,000\r\n\t\t\r\n\t\t//print the balance, the monthly interest, and the date when this account was created\r\n\t\tSystem.out.println(\"Balance: \"+account.getBalance()\r\n\t\t\t\t+\"\\nMonthly Interest: \"+account.getMonthlyInterest()+\" \"\r\n\t\t\t\t+\"\\nThe account was created on: \"\r\n\t\t\t\t+new SimpleDateFormat(\"dd/MM/YYYY HH:mm:ss\").format(account.getDateCreated()));\r\n\t\t\t\t//using a format \"Day/Month/Year hours:minutes:seconds\" for the Date\r\n\t}",
"java.lang.String getLoginAccount();",
"java.lang.String getLoginAccount();",
"@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }",
"@Then(\"^the account should be added successfully$\")\n\tpublic void the_account_should_be_added_successfully() throws Throwable {\n\t assertTrue(\"Verify that the account is saved\",waitforElementPresent(Edit,10));\n\t UIDriver.mystep.write(\"This is a custom message -- Account saved successfully\");\n\t result = AccessibilityDriver.run508OnPage(UIDriver.driver.getPageSource(),\"Successful Account Page\");\n\t UIDriver.mystep.write(result);\n\t}",
"public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }",
"public void registration() {\n\t\tSystem.out.print(\"Enter Name : \");\r\n\t\tthis.name=scan.nextLine();\r\n\t\tSystem.out.print(\"Enter Age : \");\r\n\t\tthis.age=scan.nextInt();\r\n\t\tSystem.out.print(\"Enter Gender : \");\r\n\t\tthis.gender=scan.next().charAt(0);\r\n\t\tscan.nextLine();\r\n\t\tSystem.out.print(\"Enter Price : \");\r\n\t\tthis.price=scan.nextDouble();\r\n\t\tSystem.out.print(\"Enter Quantity : \");\r\n\t\tthis.quantity=scan.nextInt();\t\r\n\t\tSystem.out.println(\"Register Successfully\");\r\n\t}",
"public static void login() {\n\t\t\n\t\t\n\n\t\twhile(!userIsLogged) {\n\n\t\t\tSystem.out.println(\"--> LOGIN <--\");\n\n\t\t\tString username = \"\";\n\t\t\tString password = \"\";\n\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Username: \");\n\t\t\t\tusername = Main.scanner.nextLine();\n\t\t\t\tSystem.out.print(\"Password: \");\n\t\t\t\tpassword = Main.scanner.nextLine();\n\n\t\t\t\tif(username.isEmpty() && password.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"\\n>> Username or Password not inserted\\n\");\n\t\t\t\t}\n\n\t\t\t} while (username.isEmpty() && password.isEmpty());\n\n\n\t\t\tfor (Person person : userList) {\n\t\t\t\tif (person.getUsername().equals(username) && person.getPassword().equals(password)) {\n\t\t\t\t\t// loging correct\n\t\t\t\t\tloggedUser = person;\n\t\t\t\t\tuserIsLogged = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!userIsLogged) {\n\t\t\t\tSystem.out.println(\"\\n>> Wrong username or password\\n\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Welcome \" + loggedUser.getName() + \" \" + loggedUser.getSurname());\n\t}",
"public String getLoginName() { \n return this.loginName;\n }",
"@Test\n\tpublic void testingLoginWithEnter() {\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tusername.sendKeys(\"validUsername\");\n\t\tpassword.sendKeys(\"validPassword\");\n\t\tusername.sendKeys(Keys.ENTER);\n\t\t\n\t\tString welcomeUser = driver.findElement(By.className(\"dashwidget_label\")).getText();\n\t\tassertEquals(\"Welcome to Humanity!\", welcomeUser);\n\t\t\n\t}"
]
| [
"0.783138",
"0.69493973",
"0.6872933",
"0.66970116",
"0.64400357",
"0.6437408",
"0.63873",
"0.63541275",
"0.6337903",
"0.62925303",
"0.62616587",
"0.6245269",
"0.620054",
"0.61510646",
"0.61179674",
"0.6096818",
"0.60876125",
"0.6085198",
"0.6079016",
"0.6037891",
"0.60199",
"0.6013235",
"0.6008618",
"0.59939635",
"0.5990614",
"0.5978197",
"0.5969752",
"0.596795",
"0.59631705",
"0.59585416",
"0.5930497",
"0.59181803",
"0.58931935",
"0.58906597",
"0.5887563",
"0.58841366",
"0.58733034",
"0.58675206",
"0.58670074",
"0.586136",
"0.58499885",
"0.58458453",
"0.58424616",
"0.5840601",
"0.58396024",
"0.58393437",
"0.58363837",
"0.58318233",
"0.58246404",
"0.58245325",
"0.5821767",
"0.58204526",
"0.5809959",
"0.58089805",
"0.58060706",
"0.58004564",
"0.5789252",
"0.5783713",
"0.5773252",
"0.576903",
"0.57626134",
"0.576179",
"0.57515687",
"0.57511944",
"0.5742217",
"0.5741106",
"0.5732469",
"0.57297754",
"0.5714142",
"0.5712237",
"0.5707422",
"0.5690466",
"0.5688685",
"0.568572",
"0.5679555",
"0.567451",
"0.5673089",
"0.56727767",
"0.56643564",
"0.5658586",
"0.5656266",
"0.56527275",
"0.56517607",
"0.56501573",
"0.5648516",
"0.5641523",
"0.5641523",
"0.5637192",
"0.5624581",
"0.56235945",
"0.5620565",
"0.5618973",
"0.5618973",
"0.56165993",
"0.5614432",
"0.5610104",
"0.5602077",
"0.5595892",
"0.559362",
"0.5591123"
]
| 0.66324484 | 4 |
System.out.println("haslo przed hash w account: " + password); | public void setPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {
this.password = password;
// this.password = hashPassword(password);
// System.out.println("haslo po hash w account: " + this.password);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getUserPasswordHash();",
"String getUserPassword();",
"String hashPassword(String password);",
"public String getHashPassword() { \n return this.hashPassword; \n }",
"String password();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"public String getPassword();",
"public String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"public java.lang.String getPassword();",
"public void setHashPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account_hashpassword: \" + this.password);\r\n }",
"public static String hash(String password){\r\n\t\t try {\r\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n\t md.update(password.getBytes(\"UTF-8\")); \r\n\t byte[] digest = md.digest();\r\n\t \r\n\t BigInteger bigInt = new BigInteger(1, digest);\r\n\t StringBuffer sb = new StringBuffer();\r\n\t for (int i = 0; i < digest.length; i++) {\r\n\t String hex = Integer.toHexString(0xff & digest[i]);\r\n\t if (hex.length() == 1) sb.append('0');\r\n\t sb.append(hex);\r\n\t }\r\n\t System.out.println(sb.toString());\r\n\t return sb.toString();\r\n\t \r\n\t } catch (Exception ex) {\r\n\t System.out.println(ex.getMessage());\r\n\t \r\n\t }\r\n\t\t return null;\r\n\t}",
"public String getPassword() {return password;}",
"@Test\n\t\tpublic void testhashPassword() {\n\t\t\tString actual = Professor.hashPassword(\"thePassword\");\n\t\t\tString expected = Professor.hashPassword(\"thePassword\");\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}",
"String hashPassword(String salt, String password);",
"public String hashPassword(String plainTextPassword);",
"String getNewPassword();",
"public String getPassword() { \n return this.password; \n }",
"public String getPassword(){\n return password;\n\t}",
"public String getPassword(){\n return this.password;\n }",
"public static String hashLogin () {\r\n String log = LoginWindow.login.getText();\r\n int hashLogin = 0;\r\n byte[] logByte = log.getBytes();\r\n for (int i=0; i<logByte.length; i++){\r\n hashLogin = logByte[i]*10;\r\n //System.out.print(logByte[i]);\r\n //System.out.print(hashLogin);\r\n }\r\n\r\n return String.valueOf(hashLogin);\r\n\r\n }",
"public int getPassword(){\n return password;\r\n }",
"public String getPassword()\n {\n return _password;\n }",
"void setUserPasswordHash(String passwordHash);",
"public String hashSale(String pwd){\n char[] password = pwd.toCharArray();\n byte[] sel = SALT.getBytes();\n //String Hex = Hex.encodeHexString(res);\n\n try{\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n PBEKeySpec spec = new PBEKeySpec(password, sel, 3567, 512);\n SecretKey key = skf.generateSecret(spec);\n byte[] res = key.getEncoded();\n return res.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"String getPass();",
"public String getPassword(){\n \treturn password;\n }",
"public static String hashPassword(String password) {\n\n MessageDigest md;\n StringBuffer sb = new StringBuffer();\n String hexString = null;\n try {\n md = MessageDigest.getInstance(\"MD5\");\n\n md.update(password.getBytes());\n byte[] digest = md.digest();\n\n for (byte b : digest) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n Logger.debug(\"Hash For Password - \" + sb.toString());\n return sb.toString();\n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String toString(){\n return String.format(\"Vigenere Cipher (password='%s')\", password);\n }",
"public String getPassword() {\n\treturn password;\n}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"String getTemporaryPassword();",
"@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}",
"public void setPasswordHash(String password) {\r\n this.passwordHash = password;\r\n }",
"public String generateHash(String password) {\n MessageDigest md = null;\n byte[] hash = null;\n try {\n md = MessageDigest.getInstance(\"SHA-512\");\n hash = md.digest(password.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n return convertToHex(hash);\n }",
"public static String getHashed_pw(String password) {\r\n\t\tbyte[] plainText = password.getBytes();\r\n MessageDigest md = null;\r\n try {\r\n md = MessageDigest.getInstance(\"MD5\");\r\n } \r\n catch (Exception e) {\r\n System.err.println(e.toString());\r\n }\r\n \tmd.reset();\r\n\t\tmd.update(plainText);\r\n\t\tbyte[] encodedPassword = md.digest();\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (int i = 0; i < encodedPassword.length; i++) {\r\n\t\t\tif ((encodedPassword[i] & 0xff) < 0x10) {\r\n\t\t\t\tsb.append(\"0\");\r\n\t\t\t}\r\n\t\t\tsb.append(Long.toString(encodedPassword[i] & 0xff, 16));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return this.password;\n }",
"public String getPassword()\n {\n return _password;\n }",
"public String getPassword() {\n return password;\r\n }",
"public String getPasswordHash() {\r\n return passwordHash;\r\n }",
"public void showPasswordPrompt();",
"java.lang.String getPass();",
"java.lang.String getPass();",
"@Override\n public String getPassword() {\n return password;\n }",
"public int getPassword() {\n return password;\n }",
"public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"private String hashPassword(String password) {\n \t\tif (StringUtils.isNotBlank(password)) {\n \t\t\treturn new ShaPasswordEncoder().encodePassword(password, null);\n \t\t}\n \t\treturn null;\n \t}",
"int getPasswordHashLength();",
"public String printEnterPassword() {\n return \"Please enter your current password: \";\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public static String hash_password(String password) throws Exception\r\n\t{\r\n\t\t// Digest the password with MD5 algorithm\r\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\tmd.update(password.getBytes());\r\n\t\t \r\n\t\tbyte byte_data[] = md.digest();\r\n\t\t \r\n\t\t//convert the bytes to hex format \r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\t \r\n\t\tfor (int i = 0; i < byte_data.length; i++) \r\n\t\t{\r\n\t\t\tsb.append(Integer.toString((byte_data[i] & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\t \r\n\t\t//System.out.println(\"Hashed password: \" + sb.toString());\r\n\t\treturn sb.toString();\r\n\t}",
"public String getPassword() throws RemoteException;",
"@Test\n\t void testPassword() {\n\t\tString expected=passwordEncoder.encode(\"faizan@123\");\n\t\tString actual=user.getPassword();\n\t\tassertNotEquals(expected, actual);\n\t}",
"public String getPasswordHash()\n\t{\n\t\treturn passwordHash;\n\t}",
"public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}",
"@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }",
"public String getPassword() {\r\n return this.password;\r\n }",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"@Test\n public void testHashingAvPassord() {\n String passordTilHash = \"passord\";\n String salt = null;\n String salt2 = null;\n try{\n salt = HashPassord.getSalt();\n salt2 = HashPassord.getSalt();\n }catch(NoSuchAlgorithmException | NoSuchProviderException | java.security.NoSuchProviderException e){\n e.printStackTrace();\n }\n String sikkertPassord = getSecurePassword(passordTilHash, salt);\n String sikkertPassord2 = getSecurePassword(passordTilHash, salt2);\n String regenerertPassordVerifisering = getSecurePassword(passordTilHash, salt);\n \n System.out.println( sikkertPassord+ \":\" + salt); //skriver 83ee5baeea20b6c21635e4ea67847f66\n System.out.println( sikkertPassord2+ \":\" + salt2);\n System.out.println(regenerertPassordVerifisering + \":\" + salt); //skriver 83ee5baeea20b6c21635e4ea67847f66\n \n assertEquals(sikkertPassord, regenerertPassordVerifisering);\n assertNotSame(salt, salt2);\n assertNotSame(sikkertPassord, sikkertPassord2);\n System.out.println(\"//TEST//: testHashingAvPassord() = funker!\");\n \n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public static void main(String[] args) {\n\t\tPassword p = new Password();\n\t\tString epassword = \"ff6b6db0b2f4506c074343f20805a39ca856bf3a\";\n\t\tString passText = \"123456\";\n\t\tString id = \"371328198106084016\";\n\t\tString salt = p.getSalt(id);\n\t\tString sp = p.getPassphrase(salt, passText);\n\t\tSystem.out.println(\"salt : +\" + salt +\" passphrase: \"+sp);\n\t\tSystem.out.println(p.matchPassphrase(sp, salt, passText) + \"--------------- for real :\");\n\t\tsalt =\"SjZ1MmwxIDIzMiw2IDEyOTA5MTE1MSAxNDE6ODE2NjEgM1A4TQ==\";\n\t\tsp = \"11895b3270e3fd9038252d4fd45400b6fa30de4f\";\n\t\tSystem.out.println(p.matchPassphrase(sp, salt, \"123456\"));\n\t}",
"public static String hashPassword(String password){\n String salt = BCrypt.gensalt(12);\n String hashed_password = BCrypt.hashpw(password,salt);\n return hashed_password;\n }",
"public static void run_auth(String pass)\r\n\t{\r\n\t\tpassword = pass;\r\n\t\t\r\n\t\t// Call hash function to encrypt the input password\r\n\t\ttry \r\n\t\t{\r\n\t\t\thash = hash_password(password);\r\n\t\t\tSystem.out.println(\"Hashed password: \" + hash);\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error hashing the input password...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Call query function to retrieve hash from the DB\r\n\t\ttry \r\n\t\t{\r\n\t\t\tquery_hash = query_hash();\r\n\t\t\tSystem.out.println(\"Queried hash: \" + query_hash);\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error querying the database...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"@Override\n\tpublic String getPass() {\n\t\treturn password;\n\t}",
"public String encode( String password );",
"private String encrypt_password(String password)\r\n\t{\r\n\t\tString generated_password = null;\r\n try\r\n {\r\n\r\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n md.update(password.getBytes());\r\n byte[] bytes = md.digest();\r\n StringBuilder sb = new StringBuilder();\r\n for(int i=0; i< bytes.length ;i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n generated_password=sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException e)\r\n {\r\n \r\n }\r\n return generated_password;\r\n\t}",
"public String getPassword() {\n return this.password;\n }"
]
| [
"0.77139455",
"0.7432703",
"0.7309515",
"0.728134",
"0.7273224",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.7266756",
"0.71133316",
"0.71133316",
"0.70214653",
"0.70214653",
"0.70214653",
"0.70214653",
"0.70214653",
"0.70214653",
"0.70214653",
"0.69956285",
"0.6955902",
"0.6950656",
"0.6950519",
"0.6919184",
"0.6918532",
"0.68096256",
"0.6790435",
"0.67881197",
"0.6783969",
"0.67780703",
"0.6769357",
"0.67458147",
"0.67144406",
"0.6705486",
"0.66820663",
"0.66798544",
"0.66786915",
"0.66587853",
"0.66494757",
"0.66449475",
"0.6635513",
"0.6635476",
"0.66264135",
"0.66264135",
"0.6611119",
"0.6608024",
"0.6607733",
"0.65979",
"0.6585851",
"0.6577354",
"0.6575843",
"0.6575843",
"0.6574542",
"0.65557325",
"0.6541117",
"0.6539296",
"0.6530003",
"0.65138525",
"0.65138525",
"0.65134335",
"0.6508852",
"0.6504474",
"0.6502093",
"0.6502093",
"0.6492614",
"0.64905035",
"0.6488505",
"0.64823043",
"0.6480374",
"0.64683515",
"0.64615774",
"0.6453818",
"0.6450343",
"0.64428335",
"0.6439757",
"0.64389867",
"0.64387316",
"0.6437852",
"0.6434827",
"0.64276755",
"0.6417839",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6415577",
"0.6408524",
"0.64044255",
"0.6404063",
"0.6392536"
]
| 0.6947298 | 27 |
System.out.println("haslo przed hash w account_hashpassword: " + password); | public void setHashPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {
this.password = hashPassword(password);
// System.out.println("haslo po hash w account_hashpassword: " + this.password);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getUserPasswordHash();",
"public String getHashPassword() { \n return this.hashPassword; \n }",
"String getUserPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String password();",
"String hashPassword(String password);",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"public String getPassword();",
"public String getPassword();",
"public java.lang.String getPassword();",
"public String getPassword() {return password;}",
"public static String hash(String password){\r\n\t\t try {\r\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n\t md.update(password.getBytes(\"UTF-8\")); \r\n\t byte[] digest = md.digest();\r\n\t \r\n\t BigInteger bigInt = new BigInteger(1, digest);\r\n\t StringBuffer sb = new StringBuffer();\r\n\t for (int i = 0; i < digest.length; i++) {\r\n\t String hex = Integer.toHexString(0xff & digest[i]);\r\n\t if (hex.length() == 1) sb.append('0');\r\n\t sb.append(hex);\r\n\t }\r\n\t System.out.println(sb.toString());\r\n\t return sb.toString();\r\n\t \r\n\t } catch (Exception ex) {\r\n\t System.out.println(ex.getMessage());\r\n\t \r\n\t }\r\n\t\t return null;\r\n\t}",
"public String getPassword(){\n return password;\n\t}",
"public void setPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = password;\r\n// this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account: \" + this.password);\r\n }",
"public String getPassword(){\n return this.password;\n }",
"String hashPassword(String salt, String password);",
"public String getPassword() { \n return this.password; \n }",
"void setUserPasswordHash(String passwordHash);",
"public void setPasswordHash(String password) {\r\n this.passwordHash = password;\r\n }",
"public int getPassword(){\n return password;\r\n }",
"public String getPassword()\n {\n return _password;\n }",
"public String getPassword(){\n \treturn password;\n }",
"@Test\n\t\tpublic void testhashPassword() {\n\t\t\tString actual = Professor.hashPassword(\"thePassword\");\n\t\t\tString expected = Professor.hashPassword(\"thePassword\");\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}",
"public String hashPassword(String plainTextPassword);",
"String getTemporaryPassword();",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword() {\n\treturn password;\n}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String hashSale(String pwd){\n char[] password = pwd.toCharArray();\n byte[] sel = SALT.getBytes();\n //String Hex = Hex.encodeHexString(res);\n\n try{\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n PBEKeySpec spec = new PBEKeySpec(password, sel, 3567, 512);\n SecretKey key = skf.generateSecret(spec);\n byte[] res = key.getEncoded();\n return res.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }",
"private String hashPassword(String password) {\n \t\tif (StringUtils.isNotBlank(password)) {\n \t\t\treturn new ShaPasswordEncoder().encodePassword(password, null);\n \t\t}\n \t\treturn null;\n \t}",
"String getNewPassword();",
"public String getPasswordHash() {\r\n return passwordHash;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"String getPass();",
"public String getPassword()\n {\n return _password;\n }",
"public String getPassword()\n {\n return this.password;\n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword() {\n return password;\r\n }",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}",
"public static String hashPassword(String password){\n String salt = BCrypt.gensalt(12);\n String hashed_password = BCrypt.hashpw(password,salt);\n return hashed_password;\n }",
"public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }",
"public String getPasswordHash()\n\t{\n\t\treturn passwordHash;\n\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public int getPassword() {\n return password;\n }",
"public String getPassword() {\r\n return this.password;\r\n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public static String hashPassword(String password) {\n\n MessageDigest md;\n StringBuffer sb = new StringBuffer();\n String hexString = null;\n try {\n md = MessageDigest.getInstance(\"MD5\");\n\n md.update(password.getBytes());\n byte[] digest = md.digest();\n\n for (byte b : digest) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n Logger.debug(\"Hash For Password - \" + sb.toString());\n return sb.toString();\n }",
"public static byte[] SaltHashPwd(String username, String password) throws Exception\n\t{\n\t\tbyte[] user;\n\t\tbyte[] salt = new byte[16];\n\t\t\n\t\tbyte[] passwordHash;\n\t\tbyte[] fixedLengthPasswordHash = new byte[30];\n\t\t\n\t\t//assign value to all the parameters\n\t\tByteBuffer userBytes = ByteBuffer.allocate(100);\n\t\tuserBytes.put(username.getBytes());\n\t\tuser = userBytes.array();\n\t\trd.nextBytes(salt);\n\t\n\t\t\n\t\t\n\t\tAes aes = new Aes(Utility.pwdEncryptKey);\n\t\tbyte[] saltedPwd = Utility.concat2byte(salt, password.getBytes());\t\t\n\t\tpasswordHash = aes.hmac.getmac(saltedPwd);\n\t\tfixedLengthPasswordHash = Arrays.copyOf(passwordHash, fixedLengthPasswordHash.length);\n\t\t\n//\t\tSystem.out.println(\"truncate hashpassword= \" +fixedLengthPasswordHash+ \", length= \"+ fixedLengthPasswordHash.length);\n\t\t\n\t\tbyte[] entryByte = Utility.concat3byte(user, salt, fixedLengthPasswordHash);\n\t\t\t\n\t\n//\t\tSystem.out.println(\"Before encrypt length: \"+entryByte.length);\n\t\t//System.out.println(\"Before encrypt: \"+ Utility.ByteToString(entryByte));\n\t\treturn entryByte;\n\t\t//return aes.encrypt(entryByte);\n\t\t\n\t}",
"public String getAccountPassword() {\n return accountPassword;\n }",
"int getPasswordHashLength();",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword(){\n\t\treturn this.password;\n\t}",
"public void setPassword(String password) {\n this.passwordHash = passwordHash;\n }",
"public static String hashLogin () {\r\n String log = LoginWindow.login.getText();\r\n int hashLogin = 0;\r\n byte[] logByte = log.getBytes();\r\n for (int i=0; i<logByte.length; i++){\r\n hashLogin = logByte[i]*10;\r\n //System.out.print(logByte[i]);\r\n //System.out.print(hashLogin);\r\n }\r\n\r\n return String.valueOf(hashLogin);\r\n\r\n }",
"java.lang.String getPass();",
"java.lang.String getPass();",
"public String generateHash(String password) {\n MessageDigest md = null;\n byte[] hash = null;\n try {\n md = MessageDigest.getInstance(\"SHA-512\");\n hash = md.digest(password.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n return convertToHex(hash);\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public byte[] getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }"
]
| [
"0.77522373",
"0.7424938",
"0.7424394",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7292784",
"0.7263638",
"0.72447234",
"0.71161836",
"0.71161836",
"0.71161836",
"0.71161836",
"0.71161836",
"0.71161836",
"0.71161836",
"0.7109166",
"0.7109166",
"0.70352405",
"0.70114267",
"0.6921016",
"0.69201237",
"0.69033945",
"0.6903117",
"0.6882777",
"0.6882637",
"0.6879919",
"0.6877517",
"0.6875685",
"0.6846456",
"0.6840033",
"0.67909455",
"0.67766935",
"0.6774492",
"0.6760965",
"0.6759937",
"0.6755323",
"0.6754797",
"0.67525446",
"0.6743804",
"0.6743257",
"0.6729438",
"0.6729438",
"0.66958195",
"0.66939515",
"0.6692885",
"0.6682753",
"0.6676115",
"0.6676115",
"0.66760105",
"0.6669987",
"0.66517556",
"0.6648014",
"0.66466844",
"0.66361654",
"0.66268355",
"0.66251117",
"0.6610917",
"0.6610461",
"0.6610461",
"0.660103",
"0.6593927",
"0.65873945",
"0.65758413",
"0.65724367",
"0.65710187",
"0.6561858",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.6559345",
"0.65524584",
"0.6549659",
"0.6547666",
"0.65445596",
"0.65445596",
"0.6539456",
"0.653471",
"0.653471",
"0.653471",
"0.653471",
"0.653471",
"0.6525529",
"0.6518134",
"0.6513249",
"0.6513249",
"0.6513249",
"0.6513249"
]
| 0.7125988 | 14 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Account)) {
return false;
}
Account other = (Account) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"protected abstract String getId();",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public String getID(){\n return Id;\n }",
"public int getId()\n {\n return id;\n }"
]
| [
"0.68948644",
"0.6837785",
"0.67038405",
"0.6639133",
"0.6639133",
"0.65911627",
"0.6576973",
"0.6576973",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.65598476",
"0.65598476",
"0.6543178",
"0.6523156",
"0.65143406",
"0.6486455",
"0.6475413",
"0.64253694",
"0.6417849",
"0.64156985",
"0.6400779",
"0.6365434",
"0.63546157",
"0.63499856",
"0.6346203",
"0.63227576",
"0.631763",
"0.63001484",
"0.629182",
"0.629182",
"0.62824625",
"0.62701356",
"0.62650704",
"0.6263972",
"0.6261773",
"0.62577695",
"0.6254688",
"0.62506694",
"0.62461007",
"0.62461007",
"0.62423015",
"0.62379855",
"0.62379855",
"0.623057",
"0.6222287",
"0.62187535",
"0.6218387",
"0.6210061",
"0.62075466",
"0.62007535",
"0.6199978",
"0.6191151",
"0.6188524",
"0.6188524",
"0.6188345",
"0.6188345",
"0.6188345",
"0.6185662",
"0.6182675",
"0.6173944",
"0.6173008",
"0.6165809",
"0.6164505",
"0.61599946",
"0.61553764",
"0.61553764",
"0.61553764",
"0.61553764",
"0.61553764",
"0.61553764",
"0.61553764",
"0.6154299",
"0.6154299",
"0.6140791",
"0.61329263",
"0.612767",
"0.61260307",
"0.61032844",
"0.6102886",
"0.6102886",
"0.6101522",
"0.6101417",
"0.61006045",
"0.6098037",
"0.6098024",
"0.6093603",
"0.6091251",
"0.60907245",
"0.60907245",
"0.6090395",
"0.6087628",
"0.6075129",
"0.6071766",
"0.6070483",
"0.6069239",
"0.6068642",
"0.6068207"
]
| 0.0 | -1 |
Add program to OpenGL environment | public void draw(float[] mvpMatrix, int note) {
GLES30.glUseProgram(mProgram);
MyGLRenderer.checkGlError("glUseProgram");
// get handle to vertex shader's vPosition member
mPositionHandle = GLES30.glGetAttribLocation(mProgram, "vPosition");
// Enable a handle to the triangle vertices
GLES30.glEnableVertexAttribArray(mPositionHandle);
// Prepare the triangle coordinate data
//Matrix.multiplyMV(vertexBuffer, 0, scaleMatrix, 0, vertexBuffer, 0);
GLES30.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,
GLES30.GL_FLOAT, false,
vertexStride, vertexBuffer);
// get handle to fragment shader's vColor member
//mColorHandle = GLES30.glGetUniformLocation(mProgram, "vColor");
mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, "u_Texture");
mTextureCoordinateHandle = GLES30.glGetAttribLocation(mProgram, "a_TexCoordinate");
// Set the active texture unit to texture unit 1. (0 reserved for FBO?)
GLES30.glActiveTexture(GLES30.GL_TEXTURE0);
// Bind the texture to this unit.
GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataHandles[note]);
// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.
GLES30.glUniform1i(mTextureUniformHandle, 0);
// Set color for drawing the triangle
//GLES30.glUniform4fv(mColorHandle, 1, color, 0);
// Pass in the texture coordinate information
mCubeTextureCoordinates.position(0);
GLES30.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES30.GL_FLOAT, false,
0, mCubeTextureCoordinates);
GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);
// get handle to shape's transformation matrix
mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, "uMVPMatrix");
MyGLRenderer.checkGlError("glGetUniformLocation");
// Apply the projection and view transformation
GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);
MyGLRenderer.checkGlError("glUniformMatrix4fv");
// Draw the square
GLES30.glDrawElements(GLES30.GL_TRIANGLES, drawOrder.length,
GLES30.GL_UNSIGNED_SHORT, drawListBuffer);
// Disable vertex array
GLES30.glDisableVertexAttribArray(mPositionHandle);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void glUseProgram(int program);",
"void glLinkProgram(int program);",
"int glCreateProgram();",
"void glAttachShader(int program, int shader);",
"@Override\n protected int createProgram(Context context) {\n return PGLNativeIpl.loadLipsHighLightProgram();\n }",
"public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }",
"public void start() {\r\n try {\r\n // Using command line args instead \r\n // System.setProperty(\"org.lwjgl.librarypath\", new File(\"lib/lwjgl-2.9.2/native/windows\").getAbsolutePath());\r\n createWindow();\r\n initGL();\r\n render();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private void initOpenGL(){\n\t\tcaps = GL.createCapabilities();\n\t\tglViewport(0,0,WIDTH,HEIGHT);\n\t\tif(caps.OpenGL44)System.out.println(\"All OK\");\n\t\tglEnable(GL_DEPTH_TEST);\n\t\t//glPolygonMode(GL_BACK, GL_LINE);\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t}",
"@Override\n\tprotected void init() {\n\t\tShaderProgram shaderProgram = new ShaderProgram(\"aufgabe2\");\n\t\tglUseProgram(shaderProgram.getId());\n\t\tfloat [] vertex_data = {\n\t\t\t\t-0.5f,-0.5f,\n\t\t\t\t0.5f,-0.5f,\n\t\t\t\t0.0f,0.5f,\n\t\t};\n\t\tfloat[] frag_data = { 1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f };\n\t\t// Koordinaten, VAO, VBO, ... hier anlegen und im Grafikspeicher ablegen\n\t\tint vaoId = glGenVertexArrays();\n\t\tglBindVertexArray(vaoId);\n\t\tint vboId = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId);\n\t\tglBufferData(GL_ARRAY_BUFFER,vertex_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(0, 2, GL_FLOAT,false, 0, 0);\n\t\tglEnableVertexAttribArray(0);\n\t\tint vboId2 = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId2);\n\t\tglBufferData(GL_ARRAY_BUFFER,frag_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n\t\tglEnableVertexAttribArray(1);\n\t}",
"int glGetAttribLocation(int program, String name);",
"public int createProgram(GL2 gl2) {\r\n programID = gl2.glCreateProgram();\r\n\r\n for (int i = 0; i < vertexShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, vertexShaderList.elementAt(i));\r\n }\r\n for (int i=0; i < geometryShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, geometryShaderList.elementAt(i));\r\n }\r\n for (int i = 0; i < fragmentShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, fragmentShaderList.elementAt(i));\r\n }\r\n //gl2.glLinkProgram(programID); \r\n /*\r\n if (! linkStatus(gl2, programID)) {\r\n System.exit(0); \r\n }\r\n */\r\n return programID;\r\n }",
"private static int createGlProgram(String vertexCode, String fragmentCode) {\n int vertex = loadShader(GLES20.GL_VERTEX_SHADER, vertexCode);\n if (vertex == 0) {\n return 0;\n }\n int fragment = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentCode);\n if (fragment == 0) {\n return 0;\n }\n int program = GLES20.glCreateProgram();\n if (program != 0) {\n GLES20.glAttachShader(program, vertex);\n GLES20.glAttachShader(program, fragment);\n GLES20.glLinkProgram(program);\n int[] linkStatus = new int[1];\n GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);\n if (linkStatus[0] != GLES20.GL_TRUE) {\n LogUtil.error(TAG, \"Could not link program \" + GLES20.glGetProgramInfoLog(program));\n GLES20.glDeleteProgram(program);\n program = 0;\n }\n }\n return program;\n }",
"@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}",
"@Override\n\t\tpublic void onSurfaceCreated(GL10 unused, EGLConfig config)\n\t\t{\n\t\t\tupdateBackgroundColor();\n\n\t\t\t// Get pointers to the shaders.\n\t\t\tint vertexShader = renderer.loadShader(GLES20.GL_VERTEX_SHADER,\tGLProgram.vertexShaderCode);\n\t\t\tint fragmentShader = renderer.loadShader(GLES20.GL_FRAGMENT_SHADER,\tGLProgram.fragmentShaderCode);\n\n\t\t\t// Create a new OpenGL program.\n\t\t\tGLProgram.glProgram = GLES20.glCreateProgram();\n\n\t\t\t// Add a vertex shader.\n\t\t\tGLES20.glAttachShader(GLProgram.glProgram, vertexShader);\n\n\t\t\t// Add a fragment shader.\n\t\t\tGLES20.glAttachShader(GLProgram.glProgram, fragmentShader);\n\n\t\t\t// Compile the program.\n\t\t\tGLES20.glLinkProgram(GLProgram.glProgram);\n\n\t\t\t// Use it.\n\t\t\tGLES20.glUseProgram(GLProgram.glProgram);\n\n\t\t\t// Initialize the project if it hasn't been done already.\n\t\t\t// Use a posted Runnable since NotepadActivity.initProject() should run on the UI thread.\n\t\t\tif (project == null)\n\t\t\t{\n\t\t\t\tpost(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tproject = new Project();\n\t\t\t\t\t\tactivity.initProject();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}",
"int glGetUniformLocation(int program, String name);",
"private static int createProgram(int[] shaderIds){\n int shaderProgramId = glCreateProgram();\n\n for(int shader: shaderIds){\n if(shader != -1){\n glAttachShader(shaderProgramId, shader);\n }\n }\n glLinkProgram(shaderProgramId);\n\n int[] linkResult = {0};\n glGetProgramiv(shaderProgramId, GL_LINK_STATUS, linkResult);\n if(linkResult[0] == GL_FALSE){\n System.err.println(\"Failed to link shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n glValidateProgram(shaderProgramId);\n\n int[] validationResult = {0};\n glGetProgramiv(shaderProgramId, GL_VALIDATE_STATUS, validationResult);\n if(validationResult[0] == GL_FALSE){\n System.err.println(\"Failed to validate shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n return shaderProgramId;\n }",
"public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}",
"ShaderProgram(Context context, int vertexShaderResourceId, int fragmentShaderResourceId, ShaderType type) {\n\t\t// Compile the shaders and link the program.\n\t\tmProgram = ShaderHelper.getInstance().buildProgram(TextResourceReader.readTextFileFromResource(context, vertexShaderResourceId),\n\t\t\tTextResourceReader.readTextFileFromResource(context, fragmentShaderResourceId));\n\t}",
"LWJGLProgramHandler()\r\n {\r\n //instance = this;\r\n }",
"@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }",
"public void link() throws Exception {\n\t\tglLinkProgram(programId);\n\t\tif (glGetProgrami(programId, GL_LINK_STATUS) == GL_FALSE)\n\t\t\tthrow new Exception(\"Error linking graphics code: \" + glGetProgramInfoLog(programId, 1024));\n\t\t\n\t\tif (vertexShaderId != 0)glDetachShader(programId, vertexShaderId);\n\t\tif (fragmentShaderId != 0)glDetachShader(programId, fragmentShaderId);\n\t\t\n\t\tglValidateProgram(programId);\n\t\tif (glGetProgrami(programId, GL_VALIDATE_STATUS) == GL_FALSE)System.err.println(\"Warning validating graphics code: \" + glGetProgramInfoLog(programId, 1024));\n\t}",
"public final static void main(String[] args) {\n GLCapabilities capabilities = createGLCapabilities();\n Planet canvas = new Planet(capabilities, 800, 500);\n JFrame frame = new JFrame(\"Mini JOGL Demo (breed)\");\n frame.getContentPane().add(canvas, BorderLayout.CENTER);\n frame.setSize(800, 500);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n canvas.addKeyListener(new KeyListener() {\n @Override\n public void keyTyped(KeyEvent e) {\n }\n\n @Override\n public void keyPressed(KeyEvent e) {\n switch (e.getKeyCode()) {\n case KeyEvent.VK_D:\n case KeyEvent.VK_RIGHT:\n cX += 0.1;\n break;\n case KeyEvent.VK_A:\n case KeyEvent.VK_LEFT:\n cX -= 0.1;\n break;\n case KeyEvent.VK_UP:\n cY += 0.1;\n break;\n case KeyEvent.VK_DOWN:\n cY -= 0.1;\n break;\n case KeyEvent.VK_W:\n cZ -= 0.1;\n break;\n case KeyEvent.VK_S:\n cZ += 0.1;\n break;\n }\n }\n\n @Override\n public void keyReleased(KeyEvent e) {\n }\n });\n frame.setVisible(true);\n canvas.requestFocus();\n }",
"public static void main (String[] arg) {\n\n\n\n\t\tLwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\n\t\tnew LwjglApplication(new RogueStarClient(), config);\n\t}",
"public static void main(String[] args) {\n\t\t// Create a new instance of JOGLFrame. JOGLFrame is a subclass of\n\t\t// the java Frame class, so creating a new instance will open a new\n\t\t// window. The window´s content will be rendered using JOGL.\n\t\tnew JOGLFrame();\n\t}",
"@Override\r\n\tpublic void init(GL10 gl, EGLConfig config) {\n try {\r\n loadGLTextures(gl);\t\t\t\t\t\t\t\t\t\t// Jump To Texture Loading Routine ( NEW )\r\n } catch (IOException e) {\r\n \tLog.e(\"120\", \"An error occured!\");\r\n e.printStackTrace();\r\n }\r\n\r\n gl.glEnable(GL10.GL_TEXTURE_2D);\t\t\t\t\t\t\t\t\t// Enable Texture Mapping ( NEW )\r\n gl.glShadeModel(GL10.GL_SMOOTH);\t\t\t\t\t\t\t\t\t// Enable Smooth Shading\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\t\t\t\t\t\t// Black Background\r\n gl.glClearDepthf(1.0f);\t\t\t\t\t\t\t\t\t\t\t// Depth Buffer Setup\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\t\t\t\t\t\t\t\t\t// Enables Depth Testing\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\t\t\t\t\t\t\t\t\t\t// The Type Of Depth Testing To Do\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\t\t\t// Really Nice Perspective Calculations\r\n\t}",
"public static void main(String[] args) {\n\t\tif (sNeedRepack == 1) {\n\t\t\trepackGfx();\n\t\t\tSystem.out.printf(\"repacking completed; don't forget to refresh projects(F5 eclipse)\");\n\t\t\treturn;\n\t\t}\n\t\tif (sNeedCrypt == 1) {\n\t\t\tcryptAssets();\n\t\t\tSystem.out.printf(\"encrypting completed; don't forget to refresh projects(F5 eclipse)\");\n\t\t\treturn;\n\t\t}\n\n\t\tLwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();\n\t\tcfg.title = \"Demo Title\";\n\t\tcfg.width = 1280;\n\t\tcfg.height = 800;\n\t\t\n\t\t\n\t\tCoreManager coreManager = new CoreManager(new CoreOsManager() {\n\t\t\t@Override\n\t\t\tpublic void doAction(int actionId, UniversalBundle bundle) {\n\t\t\t}\n\t\t}, 32, 20) {\n\t\t\t@Override\n\t\t\tpublic void create() {\n\t\t\t\tsuper.create();\n\t\t\t\tCoreScreen screen = new ExampleGameScreen();\n\t\t\t\tpushScreen(screen);\n\t\t\t\tpushScreen(screen.createLoaderScreen());\n\t\t\t}\n\t\t};\n\n\t\tnew LwjglApplication(coreManager, cfg);\n\t}",
"public ShaderProgram loadShader(String vsProcess, String fsProcess);",
"public void display(GL2 gl) {}",
"protected void begin()\t{\n\t\t glUseProgram(programID);\n\t\t shadUniLoc.put(UNIFORM_TRANS, \n\t\t\t\t glGetUniformLocation(programID, UNIFORM_TRANS));\n\t}",
"public void init(GL2 gl) {\n\t}",
"private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}",
"private void initOpenGL()\n\t{\n\t\t// Create an OpenGL ES 2.0 context.\n\t\tsetEGLContextClientVersion(2);\n\n\t\t// Set the drawing quality.\n\t\t// Alpha isn't needed and the color choice is limited anyway, so we can get away with this setting.\n\t\tgetHolder().setFormat(PixelFormat.RGB_565);\n\t\tsetEGLConfigChooser(5, 6, 5, 0, 0, 0);\n\n\t\t// Prepare the renderer.\n\t\trenderer = new GLRenderer();\n\t\tsetRenderer(renderer);\n\n\t\t// Choose to only render the view on demand.\n\t\tsetRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n\n\t\t// Disable the unneeded depth test and stencil test.\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glDisable(GLES20.GL_STENCIL_TEST);\n\n\t\t// Render the canvas for the first time.\n\t\trequestRender();\n\t}",
"public static void main(String[] args) {\n\t \t \n\n\t \n\t lab3 l = new lab3();\n\t //creating frame\n\t glcanvas.addGLEventListener(l);\n\t glcanvas.setSize(600, 400);\n\t \n\t final JFrame frame = new JFrame (\"straight Line\");\n\t //adding canvas to frame\n\t frame.getContentPane().add(glcanvas);\n\t frame.setSize(frame.getContentPane().getPreferredSize());\n\t frame.setVisible(true);\n\t \t\n\t \n\t \n\t }",
"public void start(){\r\n if (isInitOk){\r\n if (firstStart) {\r\n firstStart = false;\r\n String userHome = System.getProperty(\"user.home\");\r\n String installDirName = userHome + File.separator + \".jogl_ext\"\r\n + File.separator + installDirectory; // should manage jogl versions here\r\n\r\n final File installDir = new File(installDirName);\r\n\r\n Thread refresher = new Thread() {\r\n public void run() {\r\n refreshJOGL(installDir);\r\n }\r\n };\r\n refresher.setPriority(Thread.NORM_PRIORITY - 1);\r\n refresher.start();\r\n } else if (joglStarted) {\r\n // we have to start again the applet (start can be called multiple times,\r\n // e.g once per tabbed browsing\r\n subApplet.start();\r\n }\r\n }\r\n }",
"public void setContext(GLContext context);",
"public void simpleInitApp() {\n//\t\t\t\tdl=new DirectionalLight(new Vector3f(0f, 1f, 0),new ColorRGBA(.72f,.97f,1f,1f).mult(1.4f));\n//\t\t\t\trootNode.addLight(dl);\n\t\t\t\tF3bLoader.init(assetManager);\n\t\t\t\tflyCam.setMoveSpeed(10f);\n\t\t\t\tflyCam.setDragToRotate(true);\n\t\t\t\trun_tab.put(this,new Object());\n\t\t\t}",
"public void previewOglRender();",
"@NativeType(\"bgfx_program_handle_t\")\n public static short bgfx_create_program(@NativeType(\"bgfx_shader_handle_t\") short _vsh, @NativeType(\"bgfx_shader_handle_t\") short _fsh, @NativeType(\"bool\") boolean _destroyShaders) {\n long __functionAddress = Functions.create_program;\n return invokeCCC(_vsh, _fsh, _destroyShaders, __functionAddress);\n }",
"public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\t\tmVertexShader = RawResourceReader.readTextFileFromRawResource(mContext,\n\t\t\t\tde.moliso.shelxle.R.raw.atoms_vetrex_shader);\n\t\tmFragmentShader = RawResourceReader.readTextFileFromRawResource(\n\t\t\t\tmContext, de.moliso.shelxle.R.raw.atoms_fragment_shader);\n\n\t\tmProgram = createProgram(mVertexShader, mFragmentShader);\n\t\tif (mProgram == 0) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tversionName = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n\t\t}catch (NameNotFoundException e){\n\t\t\t//wurst\n\t\t}\n\t\ttexturH = GLES20.glGetUniformLocation(mProgram, \"text\");\n\t\tellipsoidH = GLES20.glGetUniformLocation(mProgram, \"eli\");\n\t\tlichtH = GLES20.glGetUniformLocation(mProgram, \"lighting\");\n\n\t\tvertexAttr1 = GLES20.glGetAttribLocation(mProgram, \"vertex\");\n\n\t\tnormalAttr1 = GLES20.glGetAttribLocation(mProgram, \"normal\");\n\t\tmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"matrix\");\n\t\tinvmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"invmatrix\");\n\t\tcolorUniform1 = GLES20.glGetUniformLocation(mProgram, \"col\");\n\n\t\tmTextureLoc = GLES20.glGetUniformLocation(mProgram, \"textureSampler\");\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t// Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n\t}",
"public Main() {\n super(\"Problem Child\");\n canvas = new GLCanvas();\n canvas.addGLEventListener(this);\n getContentPane().add(canvas);\n setSize(winW, winH);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setVisible(true);\n}",
"boolean isDesktopGL();",
"abstract public void init(GL gl);",
"protected void end()\t{\n\t\tglUseProgram(0);\n\t}",
"@Override\n public void simpleInitApp()\n {\n makeInitialWorld();\n \tAudio audio = new Audio(assetManager, rootNode);\n inputManager.setCursorVisible(false);\n \trootNode.attachChild(overlayNode);\n\n \tflyCam.setEnabled(true);\n flyCam.setMoveSpeed(25);\n\n setDisplayFps(true);\n setDisplayStatView(true);\n\n GUIInfo guiInfo = new GUIInfo(guiNode, assetManager.loadFont(\"Interface/Fonts/Console.fnt\"));\n guiNode.addControl(guiInfo);\n }",
"private static void initGL() {\n glClearColor(152/255f, 175/255f, 199/255f, 0.0f);\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n GLU.gluPerspective(100.0f, (float)displayMode.getWidth()/(float)\n displayMode.getHeight(), 0.1f, 500);\n glMatrixMode(GL_MODELVIEW);\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\n glClearDepth(1.0f);\n glEnable(GL_DEPTH_TEST);\n glEnable(GL_TEXTURE_2D);\n glEnableClientState(GL_VERTEX_ARRAY);\n glEnableClientState(GL_COLOR_ARRAY);\n glEnableClientState(GL_TEXTURE_COORD_ARRAY);\n glEnable(GL_LIGHTING);\n glEnable(GL_LIGHT0);\n glEnable(GL_NORMALIZE);\n\n }",
"Program createProgram();",
"Program createProgram();",
"Program createProgram();",
"private void initialize() {\n ShaderProgram.pedantic = false;\r\n\r\n shader = CustomShaderLoader.createShader();\r\n if (!shader.isCompiled()) {\r\n System.err.println(shader.getLog());\r\n System.exit(0);\r\n }\r\n if (shader.getLog().length() != 0)\r\n System.out.println(shader.getLog());\r\n }",
"public void onSurfaceCreated(int vertexShader, int gridShader, int passthroughShader) {\r\n \tstuff();\r\n program = GLES20.glCreateProgram();\r\n GLES20.glAttachShader(program, vertexShader);\r\n if (this instanceof GLSelectableObject) {\r\n GLES20.glAttachShader(program, passthroughShader);\r\n } else {\r\n GLES20.glAttachShader(program, gridShader);\r\n }\r\n GLES20.glLinkProgram(program);\r\n GLES20.glUseProgram(program);\r\n\r\n checkGLError(\"Floor program\");\r\n\r\n modelParam = GLES20.glGetUniformLocation(program, \"u_Model\");\r\n modelViewParam = GLES20.glGetUniformLocation(program, \"u_MVMatrix\");\r\n modelViewProjectionParam = GLES20.glGetUniformLocation(program, \"u_MVP\");\r\n lightPosParam = GLES20.glGetUniformLocation(program, \"u_LightPos\");\r\n\r\n positionParam = GLES20.glGetAttribLocation(program, \"a_Position\");\r\n normalParam = GLES20.glGetAttribLocation(program, \"a_Normal\");\r\n colorParam = GLES20.glGetAttribLocation(program, \"a_Color\");\r\n\r\n GLES20.glEnableVertexAttribArray(positionParam);\r\n GLES20.glEnableVertexAttribArray(normalParam);\r\n GLES20.glEnableVertexAttribArray(colorParam);\r\n\r\n checkGLError(\"Floor program params\");\r\n Matrix.setIdentityM(model, 0);\r\n Matrix.translateM(model, 0, -xPos, -yPos, -zPos); // Floor appears\r\n // below user.\r\n\r\n }",
"@Override\n\t@GLContextRequired\n\tpublic void initGL() {\n\t\tif(Objects.isNull(va)){\n\t\t\tva = new VertexArray(4);\n\t\t\tupdateGL(false);\t\t\n\t\t}\n\t}",
"void glShaderSource(int shader, String string);",
"public static void main (String[] arg)\n\t{\n\t\tLwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\n\t\t// Its okay to have a higher samples value on desktop\n\t\tconfig.samples = 10;\n\t\t// Edit these values if necessary\n\t\t/*config.width = 1366;\n\t\tconfig.height = 768;\n\t\tconfig.fullscreen = true;*/\n\n\t\tconfig.width = 854;\n\t\tconfig.height = 480;\n // Start the application\n\t\tnew LwjglApplication(new GameLauncher(new DesktopLauncher()), config);\n\t}",
"@Override\n public int glGetAttribLocation(final int program, final String name) {\n return GL20.glGetAttribLocation(program, name + \"\\0\");\n }",
"@Override\n\tpublic void onSurfaceCreated(GL10 gl,EGLConfig config){\n\t\t//OpenGL-ES version check\n\t\tString glesVersion = gl.glGetString(GL10.GL_VERSION);\n\t\tSystem.out.println(\"RTR:\" + glesVersion);\n\t\t\n\t\tString glslVersion = gl.glGetString(GLES32.GL_SHADING_LANGUAGE_VERSION);\n\t\tSystem.out.println(\"RTR: Shading lang version:\"+ glslVersion);\n\t\t\n\t\tinitialize(gl);\n\t}",
"public static void create(String libName) {\n create(Library.loadNative(EGL.class, \"org.lwjgl.egl\", libName));\n }",
"@Override\n public void initShaderProgram(util.ShaderProgram shaderProgram, Map<String, String> shaderVarsToVertexAttribs) {\n Objects.requireNonNull(glContext);\n GL3 gl = glContext.getGL().getGL3();\n\n shaderLocations = shaderProgram.getAllShaderVariables(gl);\n this.shaderVarsToVertexAttribs = new HashMap<String, String>(shaderVarsToVertexAttribs);\n shaderLocationsSet = true;\n }",
"private void initApplicationAR() {\r\n // Create OpenGL ES view:\r\n int depthSize = 16;\r\n int stencilSize = 0;\r\n boolean translucent = Vuforia.requiresAlpha();\r\n\r\n mGlView = new ArGLView(this);\r\n mGlView.init(translucent, depthSize, stencilSize);\r\n\r\n mRenderer = new ArRenderer(this, vuforiaAppSession);\r\n mRenderer.setTextures(mTextures);\r\n mGlView.setRenderer(mRenderer);\r\n\r\n }",
"@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n Log.d(LOGTAG, \"GLRenderer.onSurfaceCreated\");\n\n initRendering();\n\n vuforiaAppSession.onSurfaceCreated();\n }",
"public void addFragmentShader(String fileName);",
"public void bind()\r\n\t{\r\n\t\tVector3f color;\r\n\r\n\t\tcolor = ambient;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = diffuse;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = specular;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_SPECULAR);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tif (texture != null)\r\n\t\t{\r\n\t\t\ttexture.bind();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tglBindTexture(GL_TEXTURE_2D, 0);\r\n\t\t}\r\n\t}",
"private void init()\n\t{\n\t\tinitOpenGL();\n\t\tlatestStroke = new Stroke(this, true);\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tPixelFormat format = new PixelFormat(); //TODO: Define the bare minimum PixelFormat needed to run this game\n\t\t\tDisplay.setDisplayMode(new DisplayMode(854, 480)); //9:16 display\n\t\t\tDisplay.create(format);\n\t\t\t\n\t\t\tif(!GLContext.getCapabilities().OpenGL21) {\n\t\t\t\tlog.info(\"OpenGL 2.1 isn't supported!\", 0);\n\t\t\t\tDisplay.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (LWJGLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tnew Main();\n\t}",
"public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}",
"public static void main (String[] args) {\n new JOGLFrame(new SelectGrid(args));\n }",
"public static void create() {\n SharedLibrary EGL;\n switch (Platform.get()) {\n case LINUX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL.so.1\");\n break;\n case MACOSX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"EGL\");\n break;\n case WINDOWS:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL\", \"EGL\");\n break;\n default:\n throw new IllegalStateException();\n }\n create(EGL);\n }",
"public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);}",
"public void draw(GL10 gl) {\n }",
"public void addVertexShader(String fileName);",
"public void drawCube() {\r\n GLES20.glUseProgram(program);\r\n\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n\r\n // Set the Model in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n\r\n // Set the ModelView in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n\r\n // Set the position of the cube\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n\r\n // Set the ModelViewProjection matrix in the shader.\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n\r\n // Set the normal positions of the cube, again for shading\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, isLookingAtObject(this) ? cubeFoundColors : colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\r\n checkGLError(\"Drawing cube\");\r\n }",
"@Override\n public int glGetUniformLocation(final int program, final String name) {\n return GL20.glGetUniformLocation(program, name + \"\\0\");\n }",
"public interface IGLWrapper {\n\n /** Indicates that the color buffer should be cleared. */\n int GL_COLOR_BUFFER_BIT = 0x00004000;\n /** Indicates that elements should be drawn as triangles using indices. */\n int GL_TRIANGLES = 0x0004;\n /** Indicates that the texture should be loaded to 2D. */\n int GL_TEXTURE_2D = 0x0DE1;\n /** Indicates that the data type is an unsigned short. */\n int GL_UNSIGNED_SHORT = 0x1403;\n /** Indicates that the data type is a float. */\n int GL_FLOAT = 0x1406;\n /** Indicates that the fragment shader should be loaded. */\n int GL_FRAGMENT_SHADER = 0x8B30;\n /** Indicates that the vertex shader should be loaded. */\n int GL_VERTEX_SHADER = 0x8B31;\n /** Indicates that the nearest neighbor should be used for interpolation. */\n int GL_NEAREST = 0x2600;\n /** Indicates that the texture magnification filter should be modified. */\n int GL_TEXTURE_MAG_FILTER = 0x2800;\n /** Indicates that the texture minification filter should be modified. */\n int GL_TEXTURE_MIN_FILTER = 0x2801;\n /** The 0th texture location. */\n int GL_TEXTURE0 = 0x84C0;\n\n /**\n * Checks whether the application is on desktop or Android.\n * @return True if the application is on desktop, false if on Android.\n */\n boolean isDesktopGL();\n\n /**\n * Sets the active texture index.\n * @param texture The active texture index.\n */\n void glActiveTexture(int texture);\n\n /**\n * Attaches a shader to a shader program.\n * @param program The program to attach the shader to.\n * @param shader The shader to attach to the program.\n */\n void glAttachShader(int program, int shader);\n\n /**\n * Binds a texture to a texture index.\n * @param target The texture index to bind to.\n * @param texture The texture to bind.\n */\n void glBindTexture(int target, int texture);\n\n /**\n * Sets the background color.\n * @param mask A bitmask containing the background color.\n */\n void glClear(int mask);\n\n /**\n * Sets the background color.\n * @param red The red component of the color.\n * @param green The green component of the color.\n * @param blue The blue component of the color.\n * @param alpha The alpha component of the color.\n */\n void glClearColor(float red, float green, float blue, float alpha);\n\n /**\n * Compiles a shader.\n * @param shader The shader to compile.\n */\n void glCompileShader(int shader);\n\n /**\n * Creates a shader program.\n * @return The created shader program.\n */\n int glCreateProgram();\n\n /**\n * Initializes a shader.\n * @param type The type of shader to initialize.\n * @return The initialized shader.\n */\n int glCreateShader(int type);\n\n /**\n * Disables a vertex attribute.\n * @param index The vertex attribute to disable.\n */\n void glDisableVertexAttribArray(int index);\n\n /**\n * Draws vertices on the screen.\n * @param mode The drawing mode to use.\n * @param count The number of vertices to draw.\n * @param type The primitive data type of the vertices.\n * @param indices The vertices to draw.\n * @param bufferIndex The index of the buffer handle to use.\n * @param bufferSize The size of the triangle buffer.\n */\n void glDrawElements(int mode, int count, int type,\n Buffer indices, int bufferIndex, int bufferSize);\n\n /**\n * Enables a vertex attribute.\n * @param index The vertex attribute to enable.\n */\n void glEnableVertexAttribArray(int index);\n\n /**\n * Generates textures in a given array.\n * @param n The number of textures to generate.\n * @param textures The array to generate textures in.\n * @param offset The offset for the starting position in the array to generate textures at.\n */\n void glGenTextures(int n, int[] textures, int offset);\n\n /**\n * Gets a shader attribute.\n * @param program The program to get the shader attribute from.\n * @param name The name of the shader attribute to get.\n * @return The specified shader attribute.\n */\n int glGetAttribLocation(int program, String name);\n\n /**\n * Gets a uniform shader attribute.\n * @param program The program to get the shader attribute from.\n * @param name The name of the uniform shader attribute to get.\n * @return The specified uniform shader attribute.\n */\n int glGetUniformLocation(int program, String name);\n\n /**\n * Links a shader program to OpenGL.\n * @param program The program to link.\n */\n void glLinkProgram(int program);\n\n /**\n * Loads shader code into a shader.\n * @param shader The shader to load code into.\n * @param string The shader code to load.\n */\n void glShaderSource(int shader, String string);\n\n /**\n * Sets the texture paramters for OpenGL.\n * @param target The type of the currently active texture.\n * @param pname The parameter to set.\n * @param param The value to set the parameter to.\n */\n void glTexParameteri(int target, int pname, int param);\n\n /**\n * Sets a uniform shader attribute.\n * @param location The attribute to set.\n * @param x The value to set the attribute to.\n */\n void glUniform1i(int location, int x);\n\n /**\n * Sets a uniform shader attribute.\n * @param location The attribute to set.\n * @param count The number of elements in the new value.\n * @param v The value to set the attribute to.\n * @param offset The offset of the starting index to set.\n */\n void glUniform4fv(int location, int count, float[] v, int offset);\n\n /**\n * Sets a matrix attribute.\n * @param location The matrix attribute to set.\n * @param count The number of elements in the array of matrices.\n * @param transpose Whether to transpose the matrix.\n * @param value The value to set the matrix to.\n * @param offset The offset of the starting index to set in the array of matrices.\n */\n void glUniformMatrix4fv(int location, int count, boolean transpose,\n float[] value, int offset);\n\n /**\n * Sets a shader program to be used by OpenGL.\n * @param program The program to use.\n */\n void glUseProgram(int program);\n\n /**\n * Sets the initial vertices in the vertex shader.\n * @param indx The vertex attribute to use.\n * @param size The number of coordinates per vertex.\n * @param type The type of primitive that the vertices are stored as.\n * @param normalized Whether the vertices are normalized.\n * @param stride The number of bytes per vertex.\n * @param ptr The vertex array.\n * @param bufferIndex The index of the buffer handle to use.\n * @param bufferSize The size of the vertex array in bytes.\n */\n void glVertexAttribPointer(int indx, int size, int type, boolean normalized,\n int stride, Buffer ptr, int bufferIndex, int bufferSize);\n\n /**\n * Sets the viewport of the camera.\n * @param x The x coordinate of the viewport's center.\n * @param y The y coordinate of the viewport's center.\n * @param width The width of the viewport.\n * @param height The height of the viewport.\n */\n void glViewport(int x, int y, int width, int height);\n\n /**\n * Loads a texture into OpenGL.\n * @param target The texture to load the bitmap to.\n * @param level The detail level of the image.\n * @param resourceId The image file to load from\n * @param border 0.\n */\n void texImage2D(int target, int level, int resourceId, int border);\n\n /**\n * Cleans up OpenGL after closing the desktop application.\n */\n void exit(int vertexShader, int fragmentShader);\n}",
"public void update(GL2 gl){}",
"public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }",
"GLMesh(BindStates bindStates, IOpenGL opengl)\n {\n this.bindStates = bindStates;\n this.opengl = opengl;\n }",
"public void dispose()\r\n {\r\n \r\n //ILogger::instance()->logInfo(\"Deleting program %s\", _name.c_str());\r\n \r\n // if (_manager != NULL) {\r\n // _manager->compiledProgramDeleted(_name);\r\n // }\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n if (_createdUniforms[i] != null)\r\n _createdUniforms[i].dispose();\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n if (_createdAttributes[i] != null)\r\n _createdAttributes[i].dispose();\r\n }\r\n \r\n _createdAttributes = null;\r\n _createdUniforms = null;\r\n \r\n if (!_gl.deleteProgram(this))\r\n {\r\n ILogger.instance().logError(\"GPUProgram: Problem encountered while deleting program.\");\r\n }\r\n }",
"public static void main (String[] arg) {\n\t\tLwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\n\t\t//set game window title, width and height\n\t\tconfig.title=\"Chess Dynasties\";\n\t\tconfig.width=1100;\n\t\tconfig.height=618;\n\t\tconfig.resizable=true;\n\n\t\t//create window\n\t\tnew LwjglApplication(new CEOV2(), config);\n\n\n\t}",
"public boolean linkProgram(GL2 gl2) {\r\n gl2.glLinkProgram(programID);\r\n int[] params = new int[]{0};\r\n gl2.glGetProgramiv( programID, GL2.GL_LINK_STATUS, params, 0);\r\n\r\n if (params[0] != 1) {\r\n System.err.println(\"link status: \" + params[0]);\r\n gl2.glGetProgramiv( programID, GL2.GL_INFO_LOG_LENGTH, params, 0);\r\n System.err.println(\"log length: \" + params[0]);\r\n\r\n byte[] abInfoLog = new byte[params[0]];\r\n gl2.glGetProgramInfoLog(programID, params[0], params, 0, abInfoLog, 0);\r\n System.err.println( new String(abInfoLog) ); \r\n System.exit(0);\r\n } \r\n return true; \r\n }",
"public void start(EglBase.Context renderEGLContext) {\n initPeerConnectFactory(renderEGLContext);\n }",
"public abstract void render(GL2 gl, GLU glu);",
"private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }",
"private void init()\n {\n glfwSetErrorCallback(errorCallback = errorCallbackPrint(System.err));\n \n if (glfwInit() != GL11.GL_TRUE)\n {\n throw new IllegalStateException( \"Unable to initialize GLFW\" );\n }\n \n glfwDefaultWindowHints();\n glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 4 );\n glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 1 );\n glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );\n glfwWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE );\n glfwWindowHint( GLFW_VISIBLE, GL_FALSE );\n glfwWindowHint( GLFW_RESIZABLE, GL_FALSE );\n \n window = glfwCreateWindow( width, height, \"Rally\", NULL, NULL );\n \n if (window == NULL)\n {\n throw new RuntimeException(\"Failed to create the GLFW window\");\n }\n \n glfwSetKeyCallback(window, keyCallback = GLFWKeyCallback((win, key, scanCode, action, mods) -> keyAction( key, action )));\n \n glfwSetCursorPosCallback(window, cursorPosCallback = GLFWCursorPosCallback((win, x, y) -> cursorPosChanged( x, y )));\n\n glfwSetMouseButtonCallback(window, mouseButtonCallback = GLFWMouseButtonCallback((win, button, action, mods) -> mouseButtonAction( button, action, mods )));\n\n ByteBuffer vidmode = glfwGetVideoMode( glfwGetPrimaryMonitor() );\n // Center our window\n glfwSetWindowPos(\n window,\n (GLFWvidmode.width( vidmode ) - width) / 2,\n (GLFWvidmode.height( vidmode ) - height) / 2\n );\n \n glfwMakeContextCurrent( window );\n glfwSwapInterval( 1 );\n glfwShowWindow( window );\n }",
"void glActiveTexture(int texture);",
"void glActiveTexture(int texture);",
"public void initialize()\r\n\t{\r\n\t\tgl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);\r\n\t\t// initialize blending for transparency\r\n\t\tgl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.glEnable(GL_DEPTH_TEST);\r\n\t\tgl.glEnable(GL_DITHER);\r\n\t\t//gl.disable(GL_ALPHA_TEST);\r\n\t\t//gl.disable(GL_COLOR_MATERIAL);\r\n\t\tgl.glShadeModel(GL_SMOOTH);\r\n\t\tgl.glDepthFunc( GL_LEQUAL );\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\r\n\t\tgl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);\r\n\t\tgl.glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);\r\n\t\tgl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);\r\n\t\tglj.gljCheckGL();\r\n\t}",
"public static void main (String[] args) {\n Lwjgl3ApplicationConfiguration config = PlaygroundGame.config();\n// config.setBackBufferConfig(8, 8, 8, 8, 8, 8, 8);\n PlaygroundGame.start(args, config, LineTest.class);\n }",
"public void setUpTextures(int program, GL2 gl2) {\n\t\t// sets the parameters for texture\n\t\tgl2.glGenTextures(1, buffer);\n\t\tgl2.glActiveTexture(gl2.GL_TEXTURE0);\n\t\tgl2.glBindTexture(gl2.GL_TEXTURE_2D,\n\t\t\t\tgl2.glGetUniformLocation(program, \"abc\"));\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MIN_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MAG_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexImage2D(gl2.GL_TEXTURE_2D, 0, gl2.GL_RGBA,\n\t\t\t\tbufferimage.getWidth(), bufferimage.getHeight(), 0,\n\t\t\t\tgl2.GL_BGRA, gl2.GL_UNSIGNED_BYTE, buffer);\n\t}",
"public void start() {\r\n if (MotoConfig.KEY_LOG) {\r\n Log.w(\"EglHelper\", \"start() tid=\" + Thread.currentThread().getId());\r\n }\r\n /*\r\n * Get an EGL instance\r\n */\r\n mEgl = (EGL10) EGLContext.getEGL();\r\n\r\n /*\r\n * Get to the default display.\r\n */\r\n mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);\r\n\r\n if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {\r\n throw new RuntimeException(\"eglGetDisplay failed\");\r\n }\r\n\r\n /*\r\n * We can now initialize EGL for that display\r\n */\r\n int[] version = new int[2];\r\n if(!mEgl.eglInitialize(mEglDisplay, version)) {\r\n throw new RuntimeException(\"eglInitialize failed\");\r\n }\r\n mEglConfig = mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay);\r\n\r\n /*\r\n * Create an EGL context. We want to do this as rarely as we can, because an\r\n * EGL context is a somewhat heavy object.\r\n */\r\n mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig);\r\n if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) {\r\n mEglContext = null;\r\n throw new EglCreateContextException(\"createContext\");\r\n }\r\n if (MotoConfig.KEY_LOG) {\r\n Log.d(\"EglHelper\", \"createContext \" + mEglContext \r\n \t\t+ \" tid=\" + Thread.currentThread().getId());\r\n }\r\n\r\n mEglSurface = null;\r\n }",
"public void init () {\n\t\tshaderProgram.addUniform(TEXTURE_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(SCALING_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(POSITION_UNIFORM_KEY);\n\t}",
"public void drawFloor() {\r\n GLES20.glUseProgram(program);\r\n\r\n // Set ModelView, MVP, position, normals, and color.\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\r\n\r\n checkGLError(\"drawing floor\");\r\n }",
"public SolarSystemApplication(GLCapabilities capabilities, int width, int height) {\r\n addGLEventListener(this);\r\n addMouseWheelListener(this);\r\n addMouseListener(this);\r\n \r\n addMouseMotionListener(this);\r\n }",
"public static void start(){\n new Light(new Vector3f(getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2));\n Keyboard.enableRepeatEvents(true);\n createWindow();\n initGL();\n generateWorld();\n Game.gameLoop();\n }",
"public native void initRendering();",
"public native void initRendering();",
"public void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages);",
"private void initGL() {\r\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n glMatrixMode(GL_PROJECTION);\r\n glLoadIdentity();\r\n\r\n glOrtho(-320, 320, -240, 240, 1, -1);\r\n\r\n glMatrixMode(GL_MODELVIEW);\r\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r\n }",
"private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}",
"private void initOpenGlView() {\n setEGLContextClientVersion(2);\n setPreserveEGLContextOnPause(true);\n System.out.println(\"************************************************************* init OpenGlView ********************\");\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n// setEGLConfigChooser(8, 8, 8, 8, 0, 0); // added 10.05\n// getHolder().setFormat(PixelFormat.TRANSLUCENT); // // added 10.05\n }",
"public void bind(GL gl) {\n\tgl.glBindTexture(target, textureID);\n }",
"public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }",
"public void addToComponent(String objective, OpSystem system);"
]
| [
"0.8107101",
"0.75311863",
"0.7378882",
"0.67336667",
"0.64609236",
"0.61850333",
"0.61026204",
"0.6016884",
"0.60011333",
"0.59971523",
"0.59549236",
"0.5878512",
"0.58280987",
"0.5822883",
"0.5785948",
"0.5774222",
"0.57229656",
"0.56724817",
"0.56384087",
"0.56224483",
"0.5621194",
"0.5614929",
"0.5612966",
"0.557978",
"0.555854",
"0.5540983",
"0.55180657",
"0.5502625",
"0.54991525",
"0.5492812",
"0.5485576",
"0.5470165",
"0.5465925",
"0.54580843",
"0.54523265",
"0.5427133",
"0.5417729",
"0.540386",
"0.540245",
"0.5394267",
"0.53637123",
"0.53574157",
"0.535304",
"0.53400165",
"0.5338062",
"0.533133",
"0.533133",
"0.533133",
"0.5315383",
"0.5297757",
"0.52726007",
"0.52672786",
"0.5261507",
"0.52581525",
"0.5243265",
"0.52407163",
"0.5240386",
"0.52077156",
"0.51983136",
"0.5189419",
"0.51885754",
"0.51813257",
"0.5180003",
"0.51668036",
"0.51637655",
"0.51625085",
"0.51514745",
"0.5151171",
"0.5149631",
"0.51344997",
"0.5129245",
"0.5120056",
"0.5114121",
"0.51066047",
"0.5104459",
"0.5099047",
"0.5081835",
"0.5064689",
"0.50607246",
"0.503592",
"0.50289446",
"0.5024031",
"0.5020622",
"0.5020622",
"0.50033087",
"0.50013024",
"0.4999678",
"0.4996144",
"0.49928117",
"0.49801394",
"0.49777466",
"0.4972916",
"0.49719238",
"0.49719238",
"0.49635735",
"0.4957007",
"0.49447793",
"0.49316263",
"0.49240038",
"0.49190181",
"0.4916604"
]
| 0.0 | -1 |
FirefoxProfile profile=new FirefoxProfile(); profile.setAcceptUntrustedCertificates(true); | public static void main(String[] args) throws InterruptedException {
DesiredCapabilities cap=new DesiredCapabilities();
cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
//WebDriver dr=new FirefoxDriver();
//dr.get("https:www.cacert.org/");
/*System.setProperty("webdriver.ie.driver", "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Google Chrome.lnk");
WebDriver dr=new InternetExplorerDriver();
Thread.sleep(2000);
dr.get("https:www.cacert.org/");*/
System.setProperty("webdriver.chrome.driver", "F:\\Selenium prgm\\SelEx\\chromedriver.exe");
WebDriver dr=new ChromeDriver(cap);
dr.get("https:www.cacert.org/");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static WebDriver launchFirefox()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setAcceptUntrustedCertificates(true);\n\n\t\t\treturn new FirefoxDriver(profile);\n\n\t\t}\n\n\n\t}",
"@Test\n public void test(){\n\n\n FirefoxProfile profile = new FirefoxProfile();\n // profile.EnableNativeEvents = true;\n\n WebDriver driver = new FirefoxDriver(profile);\n driver.get(\"http://www.baidu.com\");\n }",
"public static void main(String[] args) throws InterruptedException {\n\t\tFirefoxProfile prof = new FirefoxProfile();\r\n\t\tprof.setAcceptUntrustedCertificates(false);\r\n//the above 2 lines will allow you to get past an unsecured site (The connection is untusted. Remember to pass the object in the line below..) Only in FF, IE and Chrome handles it fine \r\n\t\t\r\n\t\tWebDriver driver = new FirefoxDriver(prof);\r\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\t\t//the global 5 second implicit wait above applies for all code below\r\n\t\t\r\n\t\tdriver.get(\"www.ebay.com\");\r\n\t\tdriver.findElement(By.tagName(\"a\")).click();\r\n\t\tThread.sleep(5000L);//explicit wait to wait for 5 seconds to do other tasks\r\n\t\t//But if you need to keep adding sleeps like this it can cause performance issues. So instead let's set a global implicit wait\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}",
"private void setFirefoxDriver() throws Exception {\n\t\t// Disable cache\n\t\tffProfile.setPreference(\"browser.cache.disk.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.disk_cache_ssl\", false);\n\t\tffProfile.setPreference(\"browser.cache.memory.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.offline.enable\", false);\n\t\t// Set to download automatically\n\t\tffProfile.setPreference(\"browser.download.folderList\", 2);\n\t\tffProfile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\tffProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/zip\");\n\t\tffProfile.setPreference(\"browser.download.dir\", BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X support\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\t\t// Disable hardware acceleration\n\t\tffProfile.setPreference(\"gfx.direct2d.disabled\", false);\n\t\tffProfile.setPreference(\"layers.acceleration.disabled\", false);\n\t\tFirefoxOptions ffOptions = new FirefoxOptions();\n\n\t\t/*\n\t\t * Set FF to run headless -- Need to make conditional from browser\n\t\t * parameter -- Does NOT work properly with all necessary tests.\n\t\t */\n\t\t// ffOptions.setHeadless(true);\n\n\t\tffOptions.setProfile(ffProfile);\n\t\tcapabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxDriverLocation);\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" FF-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"public static FirefoxProfile firefoxProfile() {\r\n\r\n\t\tFirefoxProfile firefoxProfile = new FirefoxProfile();\r\n\t\tfirefoxProfile.setPreference(\"browser.download.folderList\", 2);\r\n\t\tfirefoxProfile.setPreference(\"browser.download.dir\", testAdminReportPath);\r\n\t\tfirefoxProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"text/csv;application/vnd.ms-excel\");\r\n\t\tfirefoxProfile.setPreference(\"browser.helperApps.alwaysAsk.force\", false);\r\n\t\tfirefoxProfile.setPreference(\"geo.enabled\", false);\r\n\t\treturn firefoxProfile;\r\n\t}",
"@Test\n\tpublic void loginFailureFirefox() {\n\t\tHelpers.running(\n\t\t\t\tHelpers.testServer(3333,\n\t\t\t\t\t\tHelpers.fakeApplication()),\n\t\t\t\tHelpers.FIREFOX, new LoginFailureCallback());\n\t}",
"@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}",
"@Before\n public void setUp() throws Exception {\n\t //driver = WebDriverFactory.getDriver(DesiredCapabilities.firefox());\n\t driver = new FirefoxDriver();\n baseUrl = \"https://my.roboforex.com/\";\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }",
"protected TrustManager[] getTrustManager()\n {\n TrustManager[] trustAllCerts = new TrustManager[]\n { \n new AllFACeTrustedManager() \n }; \n \n return trustAllCerts;\n }",
"public void setFirefoxProfileTemplate(String firefoxProfileTemplate) {\n this.firefoxProfileTemplate = firefoxProfileTemplate;\n }",
"public static WebDriver firefox()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",System.getProperty(\"user.dir\")+\"\\\\Gecko\\\\geckodriver.exe\");\r\n\t\tgk = new FirefoxDriver();\r\n\t\treturn gk;\r\n\t}",
"@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}",
"protected FirefoxDriver createFirefoxDriver() {\n FirefoxProfile firefoxProfile = new FirefoxProfile();\n firefoxProfile.setPreference(\"intl.accept_languages\",\n getSystemLanguage());\n FirefoxDriver firefoxDriver = new FirefoxDriver(firefoxProfile);\n firefoxDriver.manage().window().maximize();\n return firefoxDriver;\n }",
"@Test\n\tpublic void TC_01_Run_On_Firefox() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t//(>=48) lastest version \n\t\t//System.setProperty(\"webdriver.gecko.driver\",\"//geckodriver_path\");\n\t\t//driver = new FirefoxDriver();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://demo.guru99.com/v4/\");\n\t\tdriver.quit();\n\n\t}",
"private static WebDriver getFirefoxriver() {\n\t\treturn null;\n\t}",
"private void initFirefoxDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"Drivers\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t}",
"@BeforeMethod\n\tpublic void launch()\n\t{\n\t\t\n\t\tdriver=new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.get(\"https://www.facebook.com/\");\n\t\t\n\t}",
"@Test\n public void skipSslTest() {\n // TODO: test skipSsl\n }",
"private static void handleSSLCertificate() throws Exception {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void checkClientTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\n\t\t\tpublic void checkServerTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t// Create empty HostnameVerifier\n\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\tpublic boolean verify(String arg0, SSLSession arg1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\n\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t}",
"void onSSLCertificateError(UnrecognizedCertificateException exception);",
"private static void initialiseBrowser() {\n\t\tif (System.getProperty(\"proxyname\") != null) {\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"network.proxy.type\", 1);\n\t\t\tprofile.setPreference(\"network.proxy.http\", System.getProperty(\"proxyname\"));\n\t\t\tprofile.setPreference(\"network.proxy.http_port\", 3128);\n\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tsetDriver(driver);\n\t\t}\n\t\telse{\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tsetDriver(driver);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\t//driver.navigate().to(\"https://www.facebook.com/\");\r\n\r\n\t}",
"@Before\n public void setup() {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(FirefoxDriver.MARIONETTE, false); // new schema disable\n webdriver = new FirefoxDriver(caps);\n wait = new WebDriverWait(webdriver, 10);\n\n }",
"public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }",
"private void setTrustedCertificates() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] certs, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n final SSLContext sc;\n try {\n sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n e.printStackTrace();\n return;\n }\n\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n // Create all-trusting host name verifier\n HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n };\n\n // Install the all-trusting host verifier\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n }",
"public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}",
"@BeforeClass\n\tpublic void openFirefoxBrowser(){\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t//wait = new WebDriverWait(driver,5);\n\t}",
"public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"@BeforeClass(alwaysRun = true)\n public void Setup() throws Exception {\n System.setProperty(\"webdriver.gecko.driver\", \"/usr/bin/geckodriver\");\n\n //Initialisation du driver\n driver = new FirefoxDriver();\n //Supression des cookies\n driver.manage().deleteAllCookies();\n }",
"@BeforeMethod\r\n public void setUp() {\n WebDriver driver = new FirefoxDriver();\r\n driver.get(\"http://selenium.polteq.com/testshop/index.php\");\r\n }",
"@Test\n\tpublic void loginSuccessFirefox() {\n\t\tHelpers.running(\n\t\t\t\tHelpers.testServer(3333,\n\t\t\t\t\t\tHelpers.fakeApplication()),\n\t\t\t\tHelpers.FIREFOX, new LoginSuccessCallback());\n\t}",
"@BeforeTest\r\n\r\n\tpublic void setUp() throws Exception {\r\n\t\t// PropertyConfigurator.configure(\"log4j.properties\");\r\n\t\tdriver = new FirefoxDriver();\r\n\t\tbaseUrl = \"https://pghvm-vr7-www1.omnyx.com/Omnyx.Web/login\";\r\n\r\n\t\t// Maximize the browser's window\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(15, TimeUnit.SECONDS);\r\n\r\n\t}",
"public void WakeFirefox() {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"D://geckodriver.exe\" );\n\t\t\n\t\t// We have to import Webdriver class from library to create object named driver below\n\t\tWebDriver driver = new FirefoxDriver();\n\t\t\n\t\t//Open URL\n\t\tdriver.get(\"https://technoticle.wordpress.com/\");\n\t\t\n\t\t//To get title of Website\n\t\tSystem.out.println(driver.getTitle());\n\t\t\n\t\t//Verification to know whether we are not getting redirected anywhere else. This will print hit URL\n\t\tSystem.out.println(driver.getCurrentUrl());\n\t\t\n\t\t//Close the browser\n\t\tdriver.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n public void testTrustPolicyDocumentWithSigNs() throws IOException, CertificateException, ParserConfigurationException, SAXException, MarshalException, XMLSignatureException {\n }",
"@Override\nprotected Void doInBackground(Void... params){\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n } };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // Your code ...\n URL url = null;\n HttpsURLConnection conn = null;\n try {\n url = new URL(\"https://example.com\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // ...\n}",
"private byte[][] getTrustedCertificates() {\n ArrayList localArrayList = new ArrayList();\n try {\n CertificateFactory localCertificateFactory = CertificateFactory.getInstance(\"X.509\");\n Certificate localCertificate = localCertificateFactory.generateCertificate(new StringBufferInputStream(mCurrentProfile.getCert()));\n localArrayList.add(localCertificate.getEncoded());\n return (byte[][]) localArrayList.toArray(new byte[localArrayList.size()][]);\n } catch (Exception e) {\n LogUtil.e(e);\n return null;\n }\n }",
"public static void main(String[] args) {\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\v-poori\\\\Desktop\\\\selenium\\\\geckodriver-v0.11.1-win64\\\\geckodriver.exe\");\n\tdriver = new FirefoxDriver();\n\tdriver.manage().window().maximize();\n\n\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\n\tdriver.get(\"https://www.google.co.in/\");\n\t}",
"private static synchronized void satisfyTrustAllCerts() {\n\t\tif (trustAllCerts == null) {\n\t\t\ttrustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\t\treturn new X509Certificate[0];\n\t\t\t\t}\n\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\n\t\t\t\tpublic void checkServerTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\t\t\t} };\n\t\t}\n\t}",
"public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }",
"String getCertificate();",
"private static List<String> extractBase64EncodedCerts(String pemCerts) throws GeneralSecurityException\n {\n List<String> certificateList = new ArrayList<>();\n Matcher matcher = CERT_PATTERN.matcher(pemCerts);\n if (!matcher.find())\n {\n throw new GeneralSecurityException(\"Invalid certificate format\");\n }\n\n for (int start = 0; matcher.find(start); start = matcher.end())\n {\n String certificate = matcher.group(1).replaceAll(\"\\\\s\", \"\");\n certificateList.add(certificate);\n }\n return certificateList;\n }",
"public void setUserCertificatesPath(String path);",
"@BeforeTest\n\t public void setUp() throws Exception {\n\t\t \n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\"G:\\\\Selenium\\\\drivers\\\\geckodriver-v0.11.1-win64\\\\geckodriver.exe\");\n\t\tFile pathBinary = new File(\"C:\\\\Uday\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n\t\tFirefoxBinary firefoxBinary = new FirefoxBinary(pathBinary);\n\t\tFirefoxProfile firefoxProfile = new FirefoxProfile();\n\t\tdriver = new FirefoxDriver(firefoxBinary, firefoxProfile);\n\n\t baseUrl = \"http://localhost:8888/\";\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t }",
"private boolean checkNativeCertificates(Certificate[] nativeCerts){\r\n // locate the JOGL certificates\r\n Certificate[] joglCerts = GLDrawableFactory.class.getProtectionDomain().\r\n getCodeSource().getCertificates();\r\n\r\n if (nativeCerts == null || nativeCerts.length == 0){\r\n return false;\r\n }\r\n int checked = 0;\r\n for (int i = 0; i < joglCerts.length; i++) {\r\n for (int j = 0; j < nativeCerts.length; j++) {\r\n if (nativeCerts[j].equals(joglCerts[i])){\r\n checked++;\r\n break;\r\n }\r\n }\r\n }\r\n return (checked == joglCerts.length);\r\n }",
"public static void main(String[] args) {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./sotware/geckodriver.exe\");\r\n\t\tFirefoxDriver driver=new FirefoxDriver();\r\n\t}",
"public void verifyServerCertificates(boolean yesno);",
"public static SSLSocketFactory getSSLSocketFactory() throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = new BufferedInputStream(BaseApplication.getAppContext().getAssets().open(\"www.baseurl.com.crt\"));\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n\n return context.getSocketFactory();\n }",
"public static void main(String[] args) {\n\t\tKeyStore truststore;\r\n\t\tString filepath = System.getenv(\"JAVA_HOME\") + \"\\\\jre\\\\lib\\\\security\\\\cacerts\";\r\n\t\tString passwd=\"changeit\";\r\n\t\t//String filepath =\"d:\\\\12306.jks\";\r\n\t\t//String passwd=\"111111\";\r\n\t\ttry {\r\n\t\t\ttruststore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\t\ttruststore.load(new FileInputStream(new File(filepath)), passwd.toCharArray());\r\n\r\n\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore, new MyTrustSelfSignedStrategy())\r\n\t\t\t\t\t.build();\r\n\t\t\t\r\n//\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore)\r\n//\t\t\t\t\t.build();\r\n\t\t\tSSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, new String[] { \"TLSv1\" },\r\n\t\t\t\t\tnull, SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);\r\n\t\t\tCloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslcsf).build();\r\n\r\n\t\t\tHttpPost httppost = new HttpPost(\"https://ebank.95559.com.cn/corporbank/NsTrans\");\r\n\r\n\t\t\tSystem.out.println(\"executing request\" + httppost.getRequestLine());\r\n\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tif (entity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + entity.getContentLength());\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(entity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (KeyStoreException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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 (CertificateException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void installTrustStore() {\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", trustStore);\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStoreType\", trustStoreType);\n }\n if (trustStorePassword != null) {\n System.setProperty(\"javax.net.ssl.trustStorePassword\", trustStorePassword);\n }\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\t\t\tWebDriver driver=new FirefoxDriver();\r\n\t\t\t\t\t\t\r\n\t\t\t\t//passing the url\r\n\t\t\t\tdriver.get(\"http://www.testingmasters.com/hrm/symfony/web/index.php/auth/login\");\r\n\r\n\t\t\t\t//maximize the browser\r\n\t\t\t\t\t\t\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tTakesScreenshot sht=(TakesScreenshot)driver;\r\n\t\t\t\t\r\n\t\t\t\tFile src=sht.getScreenshotAs(OutputType.FILE);\r\n\t\t\t\t\r\n\t\t\t\tString dest=\"C:\\\\Users\\\\tm\\\\Desktop\\\\Java Test\\\\mypic.png\";\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\torg.apache.commons.io.FileUtils.copyFile(src, new File(dest));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tRuntime.getRuntime().exec(\"taskkill /im firefox.exe /f\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t}",
"@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }",
"public static void \n setDefaultTrustedCertificates(TrustedCertificates trusted) {\n\n trustedCertificates = trusted;\n }",
"public static void main(String args[]) {\n int saveCerts = 0;\n boolean noVerify = false;\n String proxyHost = \"127.0.0.1\";\n int proxyPort = 0;\n ProxyType ptype = ProxyType.NONE;\n boolean error = false;\n Getopt g = new Getopt(\"ssleepget\", args, \"p:y:sz\");\n try {\n int c;\n while ((c = g.getopt()) != -1) {\n switch (c) {\n case 'p':\n String s = g.getOptarg();\n int colon = s.indexOf(':');\n if (colon >= 0) {\n // Todo IPv6 [a:b:c]:4444\n proxyHost = s.substring(0, colon);\n String port = s.substring(colon + 1);\n proxyPort = Integer.parseInt(port);\n } else {\n proxyHost = s;\n // proxyPort remains default\n }\n break;\n\n case 'y':\n String y = g.getOptarg().toUpperCase(Locale.US);\n if (y.equals(\"HTTP\") || y.equals(\"HTTPS\")) {\n ptype = ProxyType.HTTP;\n } else if (y.equals(\"SOCKS4\")) {\n ptype = ProxyType.SOCKS4;\n } else if (y.equals(\"SOCKS5\")) {\n ptype = ProxyType.SOCKS5;\n } else if (y.equals(\"I2P\")) {\n ptype = ProxyType.INTERNAL;\n proxyHost = \"localhost\";\n proxyPort = 4444;\n } else {\n error = true;\n }\n break;\n\n case 's':\n saveCerts++;\n break;\n\n case 'z':\n noVerify = true;\n break;\n\n case '?':\n case ':':\n default:\n error = true;\n break;\n } // switch\n } // while\n } catch (RuntimeException e) {\n e.printStackTrace();\n error = true;\n }\n\n if (error || args.length - g.getOptind() != 1) {\n usage();\n System.exit(1);\n }\n String url = args[g.getOptind()];\n\n String saveAs = suggestName(url);\n\n SSLEepGet get;\n if (proxyHost != null) {\n if (proxyPort == 0) {\n if (ptype == ProxyType.HTTP)\n proxyPort = 8080;\n else\n proxyPort = 1080;\n }\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), ptype, proxyHost, proxyPort, saveAs, url);\n } else {\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), saveAs, url);\n }\n if (saveCerts > 0)\n get._saveCerts = saveCerts;\n if (noVerify)\n get._bypassVerification = true;\n get._commandLine = true;\n get.addStatusListener(get.new CLIStatusListener(1024, 40));\n if(!get.fetch(45*1000, -1, 60*1000))\n System.exit(1);\n }",
"CertprofileQa getCertprofile(String certprofileName);",
"@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}",
"public void testThatTransportClientWithOnlyTruststoreCanConnectToNoClientAuthProfile() throws Exception {\n Settings settings = Settings.builder()\n .put(SecurityField.USER_SETTING.getKey(), TEST_USER_NAME + \":\" + TEST_PASSWORD)\n .put(\"cluster.name\", internalCluster().getClusterName())\n .put(\"xpack.security.transport.ssl.enabled\", true)\n .put(\"xpack.security.transport.ssl.certificate_authorities\",\n getDataPath(\"/org/elasticsearch/xpack/security/transport/ssl/certs/simple/testnode.crt\"))\n .build();\n try (TransportClient transportClient = new TestXPackTransportClient(settings,\n Collections.singletonList(LocalStateSecurity.class))) {\n transportClient.addTransportAddress(new TransportAddress(localAddress,\n getProfilePort(\"no_client_auth\")));\n }\n }",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"@Before\n public void setUp() throws Exception {\n URL = \"https://www.facebook.com/\";\n\t//baseUrl = \"https://www.katalon.com/\";\n System.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Documentos\\\\Java Drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n // driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }",
"public static WebDriver startFirefox() {\n\t\tDesiredCapabilities cap = DesiredCapabilities.firefox();\n\t\tcap.setCapability(\"marionette\", true);\n\t\treturn new FirefoxDriver(cap);\n\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tgetCoverageReport = com.crawljax.plugins.testilizer.Testilizer.getCoverageReport();\n\t if (getCoverageReport)\n\t \tdriver = new FirefoxDriver(getProfile());\n\t else\n\t\t\tdriver = new FirefoxDriver();\n\t\turl = \"http://localhost:8888/claroline-1.11.7/index.php?logout=true\";\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t}",
"public void testReadGoodCertificates() throws Exception {\n System.out.println(\"readGoodCertificates\");\n \n // The URL doesn't matter here since the test does not trigger\n // a request to the service.\n SsoClient sut = new SsoClient(\"http://foo.bar/baz\");\n \n // This is a known, good certificate-path, supplied as a resource file\n // for the tests. It was derived from a working installation of the\n // accounts service.\n InputStream is = this.getClass().getResourceAsStream(\"/gtr.pkipath\");\n CertPath result = sut.readCertificates(is);\n assertNotNull(result);\n assertEquals(2, result.getCertificates().size());\n \n X509Certificate proxy = (X509Certificate) (result.getCertificates().get(0));\n assertNotNull(proxy);\n \n X509Certificate eec = (X509Certificate) (result.getCertificates().get(1));\n assertNotNull(eec);\n }",
"public void setCertification(String certification) {\r\n\t\tthis.certification = certification;\r\n\t}",
"@Override\n \tpublic boolean hasFirefox()\n \t{\n \t\tgetNavigateArgs();//sets firefoxExists if true\n \t\treturn firefoxExists;\n \t}",
"public void testThatTransportClientWithOnlyTruststoreCannotConnectToClientProfile() throws Exception {\n Settings settings = Settings.builder()\n .put(SecurityField.USER_SETTING.getKey(), TEST_USER_NAME + \":\" + TEST_PASSWORD)\n .put(\"cluster.name\", internalCluster().getClusterName())\n .put(\"xpack.security.transport.ssl.enabled\", true)\n .put(\"xpack.security.transport.ssl.client_authentication\", SSLClientAuth.REQUIRED)\n .put(\"xpack.security.transport.ssl.certificate_authorities\",\n getDataPath(\"/org/elasticsearch/xpack/security/transport/ssl/certs/simple/testnode.crt\"))\n .build();\n try (TransportClient transportClient = new TestXPackTransportClient(settings,\n Collections.singletonList(LocalStateSecurity.class))) {\n transportClient.addTransportAddress(new TransportAddress(localAddress, getProfilePort(\"client\")));\n assertGreenClusterState(transportClient);\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }",
"private static void trustAllHosts() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n\n public void checkClientTrusted(X509Certificate[] chain, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] chain, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void warnAfterCertificateError(final Context context, final Exception e, final ThreePid pid, final ThreePidRequestListener listener) {\n UnrecognizedCertificateException unrecCertEx = CertUtil.getCertificateException(e);\n if (unrecCertEx != null) {\n final Fingerprint fingerprint = unrecCertEx.getFingerprint();\n\n UnrecognizedCertHandler.show(mHsConfig, fingerprint, false, new UnrecognizedCertHandler.Callback() {\n @Override\n public void onAccept() {\n requestValidationToken(context, pid, listener);\n }\n\n @Override\n public void onIgnore() {\n listener.onThreePidRequested(pid);\n }\n\n @Override\n public void onReject() {\n listener.onThreePidRequested(pid);\n }\n });\n } else {\n listener.onThreePidRequested(pid);\n }\n }",
"public jpuppeteer.util.XFuture<?> setIgnoreCertificateErrors(jpuppeteer.cdp.client.entity.security.SetIgnoreCertificateErrorsRequest request) {\n return connection.send(\"Security.setIgnoreCertificateErrors\", request);\n }",
"public void trustAllHosts() {\n final String TAG = \"trustAllHosts\";\n // Create a trust manager that does not validate certificate chains\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[] {};\n }\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkClientTrusted\");\n }\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkServerTrusted\");\n }\n } };\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tDesiredCapabilities ch=DesiredCapabilities.chrome();\n\t\t//ch.acceptInsecureCerts();\n\t\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\n\t\t//Belows to your local browser\n\t\tChromeOptions c= new ChromeOptions();\n\t\tc.merge(ch);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\exefiles\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\t//above step will maximise the window before executing the code\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\t//by adding this method to the script we can delete all the cookies before executing the code\n\t\t\n\t\tdriver.manage().deleteCookieNamed(\"abcd\");\n\t\t// this method will delete particular cookie mention in the method instead of deleting all the cookies\n\t\t\n\t\t\n\n\n\t}",
"public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n\tpublic void launchConfiguredInternetExplorer() {\n\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"C:\\\\Java Libraries\\\\drivers\\\\IEDriverServer.exe\");\n\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"INFO\");\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"FATAL\");\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"ERROR\");\n//\t\t\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY,\"null\");// you can replace the null with the location where you want the log\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_SILENT_PROPERTY,\"true\");\n\t\t\n\t\tInternetExplorerOptions options = new InternetExplorerOptions();\n\t\t\n//\t\toptions.setPageLoadStrategy(PageLoadStrategy.NONE); - this is not supported by IE\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setAcceptInsecureCerts(true);\n\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\t\n\t\t//Standard code to set the Proxy in IE.\n//\t\tString PROXY = \"83.209.94.89:44557\";\n//\t\tProxy proxy = new Proxy();\n//\t\tproxy.setAutodetect(false);\n//\t\tproxy.setProxyType(Proxy.ProxyType.MANUAL);\n//\t\tproxy.setSocksProxy(PROXY);\n//\t\tcap.setCapability(CapabilityType.PROXY,proxy);\n//\t\toptions.merge(cap);\n\t\t\n\t\tWebDriver driver = new InternetExplorerDriver(options);\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n//\t\tdriver.get(\"https://autoapp.citronglobal.com/index.php\");\n\t\tdriver.get(\"https://google.com\");\n\t\t// Certificate Error handling\n\t\tdriver.get(\"javascript:document.getElementById('overridelink').click();\"); // this is standard piece of code which is required to handle certificate error\n\t\tdriver.findElement(By.id(\"username\")).sendKeys(\"admin\");;\n\t\tdriver.manage().window().maximize();\n//\t\tdriver.quit();\n\t\t\n\n\t}",
"@Test\n public void pacDownloadFromURLShouldNotUseProxy() throws Exception {\n ProxySelector oldOne = ProxySelector.getDefault();\n try {\n ProxySelector.setDefault(new ProxySelector() {\n @Override\n public List<Proxy> select(URI uri) {\n throw new UsedProxyException(\"Should not download via proxy\");\n }\n\n @Override\n public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {\n // Not used\n }\n });\n PacProxySelector pacProxySelector = new PacProxySelector(\n new UrlPacScriptSource(\"http://www.test.invalid/wpad.pac\"));\n List<Proxy> ret = pacProxySelector.select(TestUtil.HTTPS_TEST_URI);\n assertEquals(\"Should return no proxy for invalid pac url\", Proxy.NO_PROXY, ret.get(0));\n } finally {\n ProxySelector.setDefault(oldOne);\n }\n }",
"private static void addUnsafeTrust(OkHttpClient.Builder builder) {\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n SSLContext sslContext = null;\n try {\n sslContext = SSLContext.getInstance(\"SSL\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (KeyManagementException e) {\n e.printStackTrace();\n }\n\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n builder.sslSocketFactory(sslSocketFactory, (X509TrustManager) trustAllCerts[0]);\n builder.hostnameVerifier((hostname, session) -> true);\n }",
"private WebDriver createFireFoxDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.gecko.driver\", \"geckodriver.exe\");\n\t\t_driver = new FirefoxDriver();\n\t\t//TODO check if Ben want?\n\t\t//final EventFiringWebDriver wrap = new EventFiringWebDriver(_driver);\n\t\t// register listener to webdriver\n\t\t//wrap.register(new CustomWebDriverEventListener()); // implements WebDriverEventListener\n\t\t//return wrap;\n\t\treturn _driver;\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\t\r\n\t\tString key=\"webdriver.gecko.driver\";\r\n\t\tString value=\".\\\\Drivers\\\\geckodriver.exe\";\r\n\t\tSystem.setProperty(key, value);\r\n\t\t\r\n\t\tWebDriver driver =new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.irctc.co.in/eticketing/loginHome.jsf\");\r\n\t\tThread.sleep(1000);\r\n\t\t\r\n\t\tWebElement button=driver.findElement(By.id(\"loginbutton\"));\r\n\t\tbutton.click();\r\n\t\t\r\n\t\tAlert alert=driver.switchTo().alert();\r\n\t\tString strText=alert.getText();\r\n\t\tSystem.out.println(\"javascript popup text:-\"+strText);\r\n\t\tThread.sleep(1000);\r\n\t\talert.accept();\r\n\t\t\r\n\t\tdriver.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }",
"@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n }",
"public static void main(String[] args) throws InterruptedException \n\t{\n\t\tFirefoxDriver webPage = new FirefoxDriver();\n\t\t\n\t\t// open IRCTC registration page using gets method \n\t\twebPage.get(\"https://www.irctc.co.in/eticketing/userSignUp.jsf\");\n\t\t\n\t\t// check if requested page has been opened or not\n\t\tSystem.out.println(webPage.getTitle()+\" Loaded\");\n\t\t\n\t\t// Enter username\n\t\twebPage.findElementById(\"userRegistrationForm:userName\").sendKeys(\"login987\");\n\t\t\n\t\t//Enter Password\n\t\twebPage.findElementById(\"userRegistrationForm:password\").sendKeys(\"Pass1234\");\n\t\t\n\t\t//Re-enter Password\n\t\twebPage.findElementById(\"userRegistrationForm:confpasword\").sendKeys(\"Pass1234\");\n\t\t\n\t\t//Select security question\n\t\twebPage.findElementById(\"userRegistrationForm:securityQ\").sendKeys(\"What is your pet name?\");\n\t\t\n\t\t//Enter Security answer\n\t\twebPage.findElementById(\"userRegistrationForm:securityAnswer\").sendKeys(\"Pupppy\");\n\t\t\n\t\t//Enter First Name\n\t\twebPage.findElementById(\"userRegistrationForm:firstName\").sendKeys(\"Arun\");\n\t\t\n\t\t//Enter Last Name\n\t\twebPage.findElementById(\"userRegistrationForm:lastName\").sendKeys(\"Rajamani\");\n\t\t\n\t\t//Enter Gender\n\t\twebPage.findElementById(\"userRegistrationForm:gender:0\").click();\n\t\t\n\t\t//Enter Marital Status\n\t\twebPage.findElementById(\"userRegistrationForm:maritalStatus:1\").click();\n\t\t\n\t\t//DOB Date\n\t\twebPage.findElementById(\"userRegistrationForm:dobDay\").sendKeys(\"12\");\n\t\t\n\t\t//DOB Month\n\t\twebPage.findElementById(\"userRegistrationForm:dobMonth\").sendKeys(\"06\");\n\t\t\n\t\t//DOB Year\n\t\twebPage.findElementById(\"userRegistrationForm:dateOfBirth\").sendKeys(\"1989\");\n\t\t\n\t\t//Enter Occupation\n\t\twebPage.findElementById(\"userRegistrationForm:occupation\").sendKeys(\"Private\");\n\t\t\n\t\t//Enter email id\n\t\twebPage.findElementById(\"userRegistrationForm:email\").sendKeys(\"[email protected]\");\n\t\t\n\t\t//Enter mobile num\n\t\twebPage.findElementById(\"userRegistrationForm:mobile\").sendKeys(\"1234567890\");\n\t\t\n\t\t//Enter Nationality\n\t\twebPage.findElementById(\"userRegistrationForm:nationalityId\").sendKeys(\"India\");\n\t\t\n\t\t//Enter Address\n\t\twebPage.findElementById(\"userRegistrationForm:address\").sendKeys(\"123 Test Address\");\n\t\t\n\t\t//Enter Country\n\t\twebPage.findElementById(\"userRegistrationForm:countries\").sendKeys(\"India\");\n\t\t\n\t\t//Enter pincode\n\t\twebPage.findElementById(\"userRegistrationForm:pincode\").sendKeys(\"600073\");\n\t\t\n\t\t//Click on page for drop down to load \n\t\twebPage.findElementByTagName(\"body\").click();\n\t\tThread.sleep(10000);\n\t\t\n\t\t//Select city/town Name\n\t\twebPage.findElementById(\"userRegistrationForm:cityName\").sendKeys(\"Kanchipuram\");\n\t\t\n\t\t//Click on page for drop down to load\n\t\twebPage.findElementByTagName(\"body\").click();\n\t\t\n\t\tThread.sleep(10000);\n\t\t//Select post office name\n\t\twebPage.findElementById(\"userRegistrationForm:postofficeName\").sendKeys(\"Gowriwakkam S.O\");\n\t\t\n\t\t//Enter Landline phone number\n\t\twebPage.findElementById(\"userRegistrationForm:landline\").sendKeys(\"1234567890\");\n\t\t\n\t\t//Click Submit Link\n\t\twebPage.findElementById(\"userRegistrationForm:j_idt486\").click();\n\t}",
"@Before\n public void setUp() throws Exception {driver = new ChromeDriver();\n// baseUrl = \"https://www.google.com/\";\n// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n// \n \n\t \n\t baseUrl = \"https://mern-crud.herokuapp.com\";\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/usr/bin/chromedriver\");\n\t\t\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"D:\\\\QA\\\\seleniumjars\\\\geckodriver.exe\");\n//Firefox driver//non static methods\n\t\tFirefoxDriver driver=new FirefoxDriver();\n\t\t\n\t\tdriver.get(\"https://www.facebook.com/\");\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"affgchgdhg\");\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(\"aaaasss\");\n\t\tdriver.findElement(By.name(\"login\")).click();\n\t}",
"public AddBookToBasketTest() {\n super(BrowserTypeEnum.firefox);\n }",
"@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }",
"public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public void testThatSSLTransportClientWithNoTruststoreCannotConnectToClientProfile() throws Exception {\n Settings settings = Settings.builder()\n .put(SecurityField.USER_SETTING.getKey(), TEST_USER_NAME + \":\" + TEST_PASSWORD)\n .put(\"cluster.name\", internalCluster().getClusterName())\n .put(\"xpack.security.transport.ssl.client_authentication\", SSLClientAuth.REQUIRED)\n .put(\"xpack.security.transport.ssl.enabled\", true)\n .build();\n try (TransportClient transportClient = new TestXPackTransportClient(settings,\n Collections.singletonList(LocalStateSecurity.class))) {\n transportClient.addTransportAddress(new TransportAddress(localAddress, getProfilePort(\"client\")));\n assertGreenClusterState(transportClient);\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }",
"public static void main(String[] args) throws IOException {\n\r\n\r\n\t WebDriver driver;\r\n\t ChromeOptions options=new ChromeOptions();\r\n\t options.addArguments(\"C:\\\\chromedriver.exe\"); \r\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY,options);\r\n\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n driver.get(\"http://www.baidu.com\");\r\n \r\n \r\n \r\n//\t\tWebDriver driver;\r\n//\t\tProfilesIni allProfiles =new ProfilesIni();\r\n// FirefoxProfile profile=allProfiles.getProfile(\"default\");\r\n// DesiredCapabilities capabilities=DesiredCapabilities.firefox();\r\n//\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n//\t\tdriver.get(\"http://www.baidu.com\");\r\n\t}",
"public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }",
"@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"ContentSecurityPolicy getContentSecurityPolicy();",
"public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }",
"@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }",
"@Before\n public void setUp() throws Exception {\n driver = new FirefoxDriver();\n driver.get(\"http://stackoverflow.com\");\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n }",
"public static ChromeOptions chromeoptions() {\r\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\r\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\r\n\t\tchromePrefs.put(\"download.default_directory\", testAdminReportPath);\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\r\n\t\toptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\toptions.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\toptions.setCapability(\"locationContextEnabled\", false);\r\n\t\treturn options;\r\n\t}",
"public void checkStatusWithPhantomJS() throws TechnicalException {\n\t\t PhantomJSDriver driver=null;\n\t\t String baseUrl;\n\t\t StringBuffer verificationErrors = new StringBuffer();\n\t\ttry {\n\t\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t\t\tcaps.setCapability(\"phantomjs.binary.path\", statusProperties.getPhantom_path());\n\t\t\tdriver = new PhantomJSDriver(caps);\n\t\t\tbaseUrl = statusProperties.getInter_pbl_url();\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t//Connection \n\t\t\tdriver.get(baseUrl);\n\t\t\t//specific login for developement environement\n\t\t\tif (driver.getTitle().equals(pblinkProperties.getIndex_title())) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"input[type=\\\"image\\\"]\")).click();\n\t\t\t}else{\n\t\t\t\t//UAt environnement\n\t\t\t\tif (driver.getTitle().equals(pblinkProperties.getSso_title())) {\n\t\t\t\t\t//get ther form\n\t\t\t\t\tlogInSSO(driver, baseUrl);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//check Iframe menu\n\t\t\tcheckScnarioUserListe(driver);\n\t\t} catch (Exception exp) {\n\t\t\tTechnicalException techExp = new TechnicalException(exp);\n\t\t\tif(logger.isErrorEnabled())\n\t\t\t\tlogger.error(techExp.getStrstackTrace());\n\t\t\tthrow techExp; \n\t\t}\n\t\tfinally{\n\t\t\tif (driver !=null)\n\t\t\tdriver.quit();\n\t\t\tString verificationErrorString = verificationErrors.toString();\n\t\t\tif (!\"\".equals(verificationErrorString)) {\n\t\t\t\tif(logger.isErrorEnabled())\n\t\t\t\t\tlogger.error(\"ERROR : there are some verifications errors : \"+verificationErrorString);\n\t\t\t\tthrow new TechnicalException(\"ERROR : PBL Internet checking/there are some verifications errors with phantom driver : \"+verificationErrorString);\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n\t\tpublic static void LaunchUrl()\r\n\t\t{\r\n\t\t\tdriver.manage().deleteAllCookies();\r\n\t\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\t\tdriver.manage().window().maximize();\t\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\r\n\t\t\r\n\t\t}",
"void applySecurityPolicy(HttpsURLConnection connection);",
"public void setTrustStore(String trustStore) {\n this.trustStore = trustStore;\n }",
"public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }",
"SecurityProfile securityProfile();"
]
| [
"0.6168054",
"0.59302545",
"0.5608028",
"0.55183625",
"0.55179805",
"0.5502054",
"0.54183024",
"0.5394264",
"0.53614086",
"0.5342239",
"0.52912724",
"0.5288229",
"0.5265634",
"0.5188181",
"0.5167661",
"0.51583135",
"0.5092481",
"0.5078355",
"0.5055486",
"0.50543374",
"0.50482553",
"0.50016564",
"0.49862736",
"0.49547353",
"0.4938277",
"0.49370953",
"0.4935828",
"0.49272302",
"0.48957297",
"0.48490736",
"0.48484418",
"0.4834773",
"0.48124105",
"0.48028317",
"0.48003918",
"0.4794918",
"0.47783637",
"0.47722125",
"0.47632205",
"0.47589037",
"0.4746521",
"0.47409183",
"0.4720459",
"0.47184283",
"0.4705904",
"0.47024906",
"0.46921778",
"0.46840566",
"0.4677931",
"0.46762323",
"0.46745607",
"0.4673791",
"0.46721485",
"0.46705008",
"0.46571007",
"0.46451592",
"0.46309963",
"0.46238205",
"0.4623119",
"0.4623016",
"0.46084693",
"0.46002853",
"0.45920375",
"0.45856917",
"0.45841745",
"0.458271",
"0.4575089",
"0.45749915",
"0.45711747",
"0.45687348",
"0.45651084",
"0.45637298",
"0.45448694",
"0.45314032",
"0.45151088",
"0.45098993",
"0.45086315",
"0.45066023",
"0.45031545",
"0.4503138",
"0.4501341",
"0.44981822",
"0.44967175",
"0.44929442",
"0.44910574",
"0.44732186",
"0.44646662",
"0.44604146",
"0.44598684",
"0.4458997",
"0.44573528",
"0.4455954",
"0.44546074",
"0.44536325",
"0.44520512",
"0.44414452",
"0.44367322",
"0.44363633",
"0.44346973",
"0.44243455"
]
| 0.50584894 | 18 |
Construct a message with no body and empty headers. This method is primarily used by serialization. | public HazelcastMQMessage() {
this(new DefaultHeaders(), null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MimeMessage createEmptyMessage();",
"public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }",
"public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }",
"public Message() {}",
"public Message() {}",
"public Message() {\n\t\tsuper();\n\t}",
"public Message(){\n this.body = null;\n this.contact = null;\n }",
"public OAuthMessage() {\n\t\t_parameters = new ParameterList();\n\n\t\tif (DEBUG)\n\t\t\t_log.debug(\"Created empty OAuthMessage.\");\n\t}",
"public Message(){}",
"public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }",
"public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}",
"public Message() {\n }",
"public AmqpMessage() {}",
"public Message() {\n }",
"public Message() {\n }",
"private Message(){\n // default constructor\n }",
"public MessageRecord() {\n super(Message.MESSAGE);\n }",
"public AmqpMessage()\n {\n this(Proton.message(), null, null);\n setDurable(true);\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n bitField0_ = (bitField0_ & ~0x00000002);\n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }",
"public MessageAbstract createMessageAbstract() {\n\t\tMessageAbstract messageAbstract = new MessageAbstract();\n\t\tmessageAbstract.setId(this.id);\n\t\tmessageAbstract.setMessage(this.message);\n\t\tmessageAbstract.setSentTimestamp(this.sentTimestamp);\n\n\t\t// Add sender's user ID if available\n\t\tif (this.origin != null) {\n\t\t\tmessageAbstract.setSenderUserId(this.origin.getId());\n\t\t\tmessageAbstract.setSenderScreenName(this.origin.getScreenName());\n\t\t}\n\t\treturn messageAbstract;\n\t}",
"public MessageRequest() {\n\t}",
"public MultiChannelMessageImpl() {\n }",
"public Message createMessage()\n {\n return messageFactory.createMessage();\n }",
"public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = null;\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000010);\n return this;\n }",
"public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}",
"public MessageClackData() {\n super();\n this.message = DEFAULT_MESSAGE;\n }",
"@Override\n public MediationMessage createMessage(CamelMediationMessage message) {\n return null;\n }",
"private MessageNone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Builder clearMessage() {\n \n message_ = getDefaultInstance().getMessage();\n onChanged();\n return this;\n }",
"public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }",
"public Builder clearMsgData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n msgData_ = getDefaultInstance().getMsgData();\n onChanged();\n return this;\n }",
"public JobServiceBusMessage() {\n this.setCustomMessageProperties(new LazyHashMap<String, String>());\n }",
"public EmptyMessageProcessor() {\n\n }",
"private SocketMessage() {\n initFields();\n }",
"public MessageResponse() {\r\n\t}",
"public HazelcastMQMessage(Headers headers, byte[] body) {\n super();\n this.body = body;\n this.headers = headers;\n }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }",
"private NoneMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public OesMessageRecord() {\n super(OesMessage.OES_MESSAGE);\n }",
"public ServiceMessage() {\r\n\t}",
"public MessageInfo() { }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }",
"public SIPMessage() {\n this.unrecognizedHeaders = new LinkedList();\n this.headers = new LinkedList();\n nameTable = new Hashtable();\n \ttry {\n \tthis.attachHeader(new ContentLength(0),false);\n \t} catch (Exception ex) {}\n }",
"public ReplicateObjectMessageFactory() {\n super(null);\n }",
"private Message(MessageType handle) {\n this(handle, null, null);\n }",
"MessageSerializer<T> create();",
"public MessageBus()\r\n\t{\r\n\t\tthis(null);\r\n\t}",
"private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }",
"protected abstract Message createMessage(Object object, MessageProperties messageProperties);",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }",
"public Builder clearMsg() {\n copyOnWrite();\n instance.clearMsg();\n return this;\n }",
"public Builder clearMsg() {\n copyOnWrite();\n instance.clearMsg();\n return this;\n }",
"public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }",
"public Builder clearMsg() {\n bitField0_ = (bitField0_ & ~0x00000020);\n msg_ = getDefaultInstance().getMsg();\n onChanged();\n return this;\n }",
"public NetworkMessage(){\n\t\tthis.user = null;\n\t}",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }",
"public MQMsg() {\n\n messageType = \" \";\n service = \"SSSSSSSS\";\n serverUser = \"UUUUUUUU\";\n serverPassword = \"PPPPPPPP\";\n serverAppl = \"AAAAAAAA\";\n cicsTrx = \"CICS\";\n timeout = 30;\n retcode = 0;\n data = \"\";\n\n }",
"public ImMessage() {\r\n }",
"public MailMessage() {\n }",
"public static IMMessage createEmptyMessage(String account,SessionTypeEnum sessionTypeEnum,int i){\n EMMessage msg=EMMessage.createTxtSendMessage(\"aa\",account);\r\n return new IMMessage(msg);\r\n }",
"public SystemMessage() {\r\n\t}",
"protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }",
"public Builder clearMsg() {\n \n msg_ = getDefaultInstance().getMsg();\n onChanged();\n return this;\n }",
"public MassMsgFrame() {\n\t}",
"private void constructHeartbeatMessage() {\n // build head\n MessageProtobuf.Head.Builder headBuilder = MessageProtobuf.Head.newBuilder();\n headBuilder.setMsgId(UUID.randomUUID().toString());\n headBuilder.setMsgType(MsgConstant.MsgType.HEARTBEAT_MESSAGE);\n headBuilder.setTimeStamp(System.currentTimeMillis());\n\n // build message\n MessageProtobuf.Msg.Builder builder = MessageProtobuf.Msg.newBuilder();\n builder.setHead(headBuilder.build());\n\n defaultHeartbeatMessage = builder.build();\n }",
"public OctopusCollectedMsg() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }",
"public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }",
"public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }",
"public Message(String unparsedData){\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tString[] headFromEntity = unparsedData.split(\"\\n\\n\", 2);\n\t\tString[] msgInfo = headFromEntity[0].split(\"\\n\");\n\t\tString[] status = msgInfo[0].split(\" \");\n\t\t\n\t\tthis.messageInfo[0]= status[0];\t\t\t\t\t// Version\n\t\tthis.messageInfo[1] = status[1];\t\t\t\t// status code\n\t\tthis.messageInfo[2] = msgInfo[0].substring(2);\t// phrase\n\t\t\n\t\tfor (int i = 1; i < msgInfo.length; i++){\n\t\t\tstatus = msgInfo[i].split(\" \");\n\t\t\theaderLines.add(new ArrayList<String>());\n\t\t\theaderLines.get(headerLines.size()-1).add(status[0]);\n\t\t\theaderLines.get(headerLines.size()-1).add(msgInfo[i].substring(status[0].length()));\n\t\t}\n\t\t\n\t\tentity = headFromEntity[1].getBytes();\n\t}",
"public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }",
"public FlowMonMessage(){}",
"private Message(Builder builder) {\n super(builder);\n }",
"private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }",
"public PromoMessages() {\n }",
"public AbstractMessage() {\n\t\t//this.idMessage = SecUtils.getHex(SecUtils.getRandomBytes(SecUtils.getSeed(), 20));\n\t\tthis.idMessage = this.hashCode();\n\t\tthis.setChallenge(new Challenge());\n\t}",
"Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);",
"public MessageEntity() {\n }",
"public static Message makeNoAcknowledgeMessage(String srcName, String text) {\n return new Message(MessageType.NO_ACKNOWLEDGE, srcName, text);\n }",
"public Builder clearBody() {\n bitField0_ = (bitField0_ & ~0x00000002);\n body_ = getDefaultInstance().getBody();\n onChanged();\n return this;\n }",
"public CryptoSchemeMsg () { }"
]
| [
"0.7467032",
"0.70457387",
"0.68861973",
"0.68850094",
"0.68850094",
"0.68781936",
"0.68482065",
"0.67834336",
"0.67341775",
"0.66546804",
"0.6639436",
"0.65609235",
"0.6546303",
"0.6537102",
"0.6537102",
"0.63606304",
"0.6332776",
"0.6305717",
"0.6261722",
"0.6261722",
"0.6261722",
"0.6261722",
"0.62614024",
"0.62614024",
"0.6176231",
"0.6176231",
"0.6176231",
"0.6176231",
"0.6176231",
"0.61439556",
"0.61312383",
"0.61086786",
"0.6078254",
"0.6031927",
"0.60267985",
"0.60202473",
"0.60101974",
"0.60095346",
"0.60010517",
"0.60010517",
"0.60010517",
"0.60010517",
"0.5981634",
"0.5981634",
"0.5981634",
"0.5981634",
"0.5978417",
"0.59642327",
"0.5964149",
"0.5960851",
"0.59562296",
"0.5953758",
"0.59521127",
"0.59449434",
"0.59447527",
"0.59329295",
"0.59306854",
"0.5930548",
"0.5926401",
"0.5925826",
"0.5910754",
"0.59100187",
"0.59077495",
"0.5905441",
"0.5901108",
"0.58924043",
"0.5892071",
"0.58858943",
"0.58739585",
"0.5869413",
"0.5867107",
"0.5867107",
"0.5861848",
"0.58614993",
"0.5857959",
"0.58556867",
"0.5851775",
"0.5831984",
"0.5825888",
"0.5798726",
"0.5796675",
"0.5795616",
"0.57929933",
"0.57914466",
"0.57587326",
"0.5751093",
"0.5733802",
"0.57313484",
"0.5730585",
"0.572415",
"0.57055014",
"0.57051224",
"0.56759644",
"0.5674623",
"0.566398",
"0.56633365",
"0.5643442",
"0.5629923",
"0.5629896",
"0.562308"
]
| 0.7198435 | 1 |
Constructs a message with the given headers and body. | public HazelcastMQMessage(Headers headers, byte[] body) {
super();
this.body = body;
this.headers = headers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SOAPMessage createMessage(final MimeHeaders headers,\n final InputStream is) throws IOException, SOAPException {\n return messageFactory.createMessage(headers, is);\n }",
"protected abstract Message createMessage(Object object, MessageProperties messageProperties);",
"protected MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] content) throws MessagingException {\n/* 1201 */ return new MimeBodyPart(headers, content);\n/* */ }",
"Message create(MessageInvoice invoice);",
"public HeaderMessage(Map<String, AbstractHeader> headers, Object originalMessage)\n\t{\n\t\tthis.headers = headers;\n\t\tthis.originalMessage = originalMessage;\n\t}",
"public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }",
"private void appendHeadersAndBody(StringBuilder builder, HttpHeaders headers, byte[] body) {\n headers.forEach((String name, List<String> values) -> {\n builder.append(INDENT).append(name).append(COLON).append(String.join(\",\", values)).append(NEW_LINE);\n });\n\n // Body::optional\n if (!isEmpty(body)) {\n builder.append(NEW_LINE).append(INDENT).append(new String(body, determineCharset(headers))).append(NEW_LINE);\n }\n }",
"public Message(String id, String body)\n\t{\n\t\tm_sID=id;\t\n\t\tm_sBody=body;\t\t\n\t}",
"public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }",
"Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);",
"public Email(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String body) {\n\t\tthis.from = from;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t}",
"public String constructMessage(String... keys) {\r\n\t\treturn this.constructMessage(\" \", keys);\r\n\t}",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }",
"public Message(String body, Contact contact) {\n this.body = body;\n this.contact = contact;\n }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }",
"public abstract Builder headers(String... paramVarArgs);",
"public static MimeMessage createEmail(String from, String to, String bcc, String subject,\n String bodyText) throws MessagingException {\n\n showLog(\"GmailUtils - createEmail()\");\n\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session);\n email.setFrom(new InternetAddress(from));\n email.addRecipient(javax.mail.Message.RecipientType.TO,\n new InternetAddress(to));\n if (!bcc.equals(\"\")) {\n email.addRecipient(javax.mail.Message.RecipientType.BCC,\n new InternetAddress(bcc));\n }\n email.setSubject(subject);\n email.setText(bodyText);\n return email;\n }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }",
"public Email(String from, List<String> replyTo, List<String> to, List<String> cc, List<String> bcc, String subject, String body, boolean html, List<MimeBodyPart> bodyParts) {\n\t\tthis.from = from;\n\t\tthis.replyTo = replyTo;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t\tthis.html = html;\n\t\tthis.bodyParts = bodyParts;\n\t}",
"public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }",
"String sendSimpleMessageV2(String from, String fromMail, String to, String subject, String body);",
"void addMessageBody(ByteBuffer msgBody);",
"private static HttpMessage createMessage(\n String paramContent, String fileName, String contentType, String fileParamContent) {\n HttpMessage message = createBaseMessage();\n StringBuilder bodySb = new StringBuilder(320);\n bodySb.append(\"--------------------------d74496d66958873e\").append(CRLF);\n bodySb.append(\"Content-Disposition: form-data; name=\\\"person\\\"\").append(CRLF);\n bodySb.append(CRLF);\n bodySb.append(paramContent).append(CRLF);\n bodySb.append(\"--------------------------d74496d66958873e\").append(CRLF);\n bodySb.append(\"Content-Disposition: form-data; name=\\\"somefile\\\"; filename=\\\"\")\n .append(fileName)\n .append(\"\\\"\")\n .append(CRLF);\n bodySb.append(\"Content-Type: \").append(contentType).append(CRLF);\n bodySb.append(CRLF);\n bodySb.append(fileParamContent).append(CRLF);\n bodySb.append(\"--------------------------d74496d66958873e--\").append(CRLF);\n message.setRequestBody(bodySb.toString());\n return message;\n }",
"public Message(String unparsedData){\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tString[] headFromEntity = unparsedData.split(\"\\n\\n\", 2);\n\t\tString[] msgInfo = headFromEntity[0].split(\"\\n\");\n\t\tString[] status = msgInfo[0].split(\" \");\n\t\t\n\t\tthis.messageInfo[0]= status[0];\t\t\t\t\t// Version\n\t\tthis.messageInfo[1] = status[1];\t\t\t\t// status code\n\t\tthis.messageInfo[2] = msgInfo[0].substring(2);\t// phrase\n\t\t\n\t\tfor (int i = 1; i < msgInfo.length; i++){\n\t\t\tstatus = msgInfo[i].split(\" \");\n\t\t\theaderLines.add(new ArrayList<String>());\n\t\t\theaderLines.get(headerLines.size()-1).add(status[0]);\n\t\t\theaderLines.get(headerLines.size()-1).add(msgInfo[i].substring(status[0].length()));\n\t\t}\n\t\t\n\t\tentity = headFromEntity[1].getBytes();\n\t}",
"public HazelcastMQMessage() {\n this(new DefaultHeaders(), null);\n }",
"protected abstract Body newBodyImpl();",
"public String constructMessage(String separator, String... keys) {\r\n\t\tString result = \"\";\r\n\t\tfor (String key:keys) {\r\n\t\t\tresult += this.getString(key) + separator;\r\n\t\t}\r\n\t\treturn result.substring(0, result.length()-separator.length()); // ignore last separator\r\n\t}",
"public SpreadMessage createMessage(String context, Serializable serializable) throws SpreadException {\n SpreadMessage message = super.createMessage();\n if(message==null) message = new SpreadMessage();\n message.digest((Serializable) context);\n message.digest(serializable);\n return message;\n }",
"public AmqpMessage(String routingKey, String targetExchange, T messageBody) {\n this.routingKey = routingKey;\n this.targetExchange = targetExchange;\n this.messageBody = messageBody;\n }",
"@Override\n\tpublic Body makeBody(Map<String, String> attributes, Node... nodes) {\n\t\treturn new Body( attributes, nodes );\n\t}",
"protected MimeBodyPart createMimeBodyPart(InputStream is) throws MessagingException {\n/* 1217 */ return new MimeBodyPart(is);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }",
"public Message createMessage()\n {\n return messageFactory.createMessage();\n }",
"@Override\n public Message fromBytes(byte[] bytes) {\n try {\n String content = new String(bytes);\n LOG.debug(\"Decoding consumer message: \"+content);\n \n JsonNode node = mapper.readTree(content);\n JsonNode headers = node.get(HEADERS);\n //LOG.info(\"MD key:\"+headers.get(\"KEY\")+\" T:\"+Thread.currentThread().getName());\n if (headers == null) {\n throw new IllegalArgumentException(\"No headers given: \"+node);\n }\n JsonNode payload = node.get(PAYLOAD);\n if (payload == null) {\n throw new IllegalArgumentException(\"No payload given: \"+node);\n }\n\n MessageBuilder<JsonNode> builder = MessageBuilder.withPayload(payload);\n Iterator<Map.Entry<String, JsonNode>> fields = headers.getFields();\n while (fields.hasNext()) {\n Map.Entry<String, JsonNode> field = fields.next();\n if (!ignoredHeaders.contains(field.getKey())) {\n builder.setHeader(field.getKey(), field.getValue().getTextValue());\n }\n }\n\n return builder.build();\n\n } catch (IOException ex) {\n throw new IllegalStateException(\"Error reading message bytes\", ex);\n }\n }",
"public Message createMessage(String messageText)\n {\n Message msg =\n new MessageIcqImpl(messageText,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_TYPE,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_ENCODING, null);\n\n return msg;\n }",
"protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }",
"public MessageAbstract createMessageAbstract() {\n\t\tMessageAbstract messageAbstract = new MessageAbstract();\n\t\tmessageAbstract.setId(this.id);\n\t\tmessageAbstract.setMessage(this.message);\n\t\tmessageAbstract.setSentTimestamp(this.sentTimestamp);\n\n\t\t// Add sender's user ID if available\n\t\tif (this.origin != null) {\n\t\t\tmessageAbstract.setSenderUserId(this.origin.getId());\n\t\t\tmessageAbstract.setSenderScreenName(this.origin.getScreenName());\n\t\t}\n\t\treturn messageAbstract;\n\t}",
"public QueueMessage(String body, int delaySeconds, int priority) {\n\t\tif(AssertUtils.isEmpty(body)) {\n\t\t\tthrow new IllegalArgumentException(\"Message body cannot be null or empty.\");\n\t\t}\n\t\t\n\t\tif(delaySeconds < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Delay seconds cannot be less than zero.\");\n\t\t}\n\t\t\n\t\tthis.messageID = AUTO_INCREMENT_MESSAGE_ID.incrementAndGet();\n\t\tthis.body = body;\n\t\tthis.delaySeconds = delaySeconds;\n\t\tthis.md5 = HashUtils.getMD5Hex(body);\n\t\t\n\t\tthis.created = System.currentTimeMillis();\n\t\tthis.priority = new AtomicInteger(priority);\n\t}",
"public OAuthMessage(ParameterList params) {\n\t\t_parameters = params;\n\n\t\tif (DEBUG)\n\t\t\t_log.debug(\"Created OAuthMessage from parameter list:\\n\" + params);\n\t}",
"private static Message createMessageWithEmail(MimeMessage emailContent)\n throws MessagingException, IOException {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n emailContent.writeTo(buffer);\n byte[] bytes = buffer.toByteArray();\n String encodedEmail = Base64.encodeBase64URLSafeString(bytes);\n Message message = new Message();\n message.setRaw(encodedEmail);\n return message;\n }",
"public HttpResponse(int statusCode, String statusLineMessage, Map<String, String> headers,\n String body) {\n this.statusCode = statusCode;\n this.statusLineMessage = statusLineMessage;\n this.headers = headers;\n this.body = body;\n }",
"public static String build(Message msg)\n {\n // Grab our message data\n String action = msg.getAction() + \"\\n\";\n String clientID = msg.getClientID() + \"\\n\";\n String body = \"\\n\" + msg.getBody() + \"\\n\";\n int recipient = msg.getRecipient();\n\n // Need to store the message somewhere\n String message = action + clientID;\n\n // Recipient will be -1 if not\n // present in message\n if(recipient != -1) {\n message += recipient + \"\\n\";\n }\n\n // Add the body\n message += body;\n return message;\n }",
"DynamicMessage createDynamicMessage();",
"public static MimeMessage createEmail(String to,\n String from,\n String subject,\n String bodyText)\n throws MessagingException {\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n\n MimeMessage email = new MimeMessage(session);\n\n email.setFrom(new InternetAddress(from));\n email.addRecipient(javax.mail.Message.RecipientType.TO,\n new InternetAddress(to));\n email.setSubject(subject);\n email.setText(bodyText);\n return email;\n }",
"private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }",
"public Message(){}",
"Header createHeader();",
"private Message(MessageType handle) {\n this(handle, null, null);\n }",
"public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }",
"private static MessageHeader createDataHeader(byte[] bufferBytes, int length) {\n\n\t\tObject[] iov = new Object[1];\n\n\t\tif (length != BUFFER_SIZE) {\n\t\t\tbyte[] lastBuffer = new byte[length];\n\t\t\tSystem.arraycopy(bufferBytes, 0, lastBuffer, 0, length);\n\t\t\tbufferBytes = lastBuffer;\n\t\t}\n\t\tiov[0] = bufferBytes;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public SimpleNewsArticle(String header, String body) {\n\t\tthis.header = header;\n\t\tthis.body = body;\n\t}",
"private Message(Builder builder) {\n super(builder);\n }",
"private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }",
"public String buildMessage(String proposito, String id, String body){\n HashMap<String, String> m = new HashMap<>();\n m.put(\"proposito\", proposito);\n m.put(\"body\", TABLET_ORIG);\n m.put(\"id\", id);\n return JSONObject.toJSONString(m);\n }",
"public abstract Message createMessage(String uid) throws MessagingException;",
"public static RequestBody createBody(String str) {\n RequestBody fBody = RequestBody.create(MediaType.parse(\"text/plain\"), str);\n return fBody;\n }",
"public MessageBuilder withHeaders(Map<String, String> headers) throws MessagingException {\n\n if (headers != null) {\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n this.message.addHeader(entry.getKey(), entry.getValue());\n }\n }\n return this;\n }",
"ByteBuf getMessageBody();",
"public EmailObj(String to, String from, String subject, String body) {\n this(to, from, subject, body, \"localhost\");\n }",
"public MailMessage setHeaders(MultiMap headers) {\n this.headers = headers;\n return this;\n }",
"private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public Message(String type, String content, String status, Long date, String sender) {\n if (type == null || type.isEmpty()) {\n throw new IllegalArgumentException(\"Type cannot be null or empty\");\n }\n if (!type.equals(\"text\") && !type.equals(\"image\") && !type.equals(\"location\")) {\n throw new IllegalArgumentException(\"Message object needs type of text, image or location\");\n }\n if (content == null || content.isEmpty()) {\n throw new IllegalArgumentException(\"Content cannot be null or empty\");\n }\n if (status == null || status.isEmpty()) {\n throw new IllegalArgumentException(\"Status cannot be null or empty\");\n }\n if (!status.equals(\"read\") && !status.equals(\"unread\")){\n throw new IllegalArgumentException(\"Message object needs a status of read or unread\");\n }\n if (date == null) {\n throw new IllegalArgumentException(\"Date cannot be null\");\n }\n if (sender == null || sender.isEmpty()) {\n throw new IllegalArgumentException(\"Sender cannot be null or empty\");\n }\n\n this.type = type;\n this.content = content;\n this.status = status;\n this.date = date;\n this.sender = sender;\n }",
"public Message createFIXMessage(MessageContext msgCtx) throws IOException {\n if (log.isDebugEnabled()) {\n log.debug(\"Extracting FIX message from the message context (Message ID: \" + msgCtx.getMessageID() + \")\");\n }\n\n Message message = new Message();\n SOAPBody soapBody = msgCtx.getEnvelope().getBody();\n OMElement messageNode = soapBody.getFirstChildWithName(new QName(FIXConstants.FIX_MESSAGE));\n Iterator<OMElement> messageElements = messageNode.getChildElements();\n\n while (messageElements.hasNext()) {\n OMElement node = messageElements.next();\n //create FIX header\n if (node.getQName().getLocalPart().equals(FIXConstants.FIX_HEADER)) {\n Iterator<OMElement> headerElements = node.getChildElements();\n while (headerElements.hasNext()) {\n OMElement headerNode = headerElements.next();\n String tag = headerNode.getAttributeValue(new QName(FIXConstants.FIX_FIELD_ID));\n String value = null;\n\n OMElement child = headerNode.getFirstElement();\n if (child != null) {\n String href = headerNode.getFirstElement().\n getAttributeValue(new QName(FIXConstants.FIX_MESSAGE_REFERENCE));\n if (href != null) {\n DataHandler binaryDataHandler = msgCtx.getAttachment(href.substring(4));\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n binaryDataHandler.writeTo(outputStream);\n value = new String(outputStream.toByteArray());\n }\n } else {\n value = headerNode.getText();\n }\n\n if (value != null) {\n message.getHeader().setString(Integer.parseInt(tag), value);\n }\n }\n\n } else if (node.getQName().getLocalPart().equals(FIXConstants.FIX_BODY)) {\n //create FIX body\n Iterator<OMElement> bodyElements = node.getChildElements();\n while (bodyElements.hasNext()) {\n OMElement bodyNode = bodyElements.next();\n String tag = bodyNode.getAttributeValue(new QName(FIXConstants.FIX_FIELD_ID));\n String value = null;\n\n OMElement child = bodyNode.getFirstElement();\n if (child != null) {\n String href = bodyNode.getFirstElement().\n getAttributeValue(new QName(FIXConstants.FIX_MESSAGE_REFERENCE));\n if (href != null) {\n DataHandler binaryDataHandler = msgCtx.getAttachment(href.substring(4));\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n binaryDataHandler.writeTo(outputStream);\n value = new String(outputStream.toByteArray());\n }\n } else {\n value = bodyNode.getText();\n }\n\n if (value != null) {\n message.setString(Integer.parseInt(tag), value);\n }\n }\n } else if (node.getQName().getLocalPart().equals(FIXConstants.FIX_TRAILER)) {\n //create FIX trailer\n Iterator<OMElement> trailerElements = node.getChildElements();\n while (trailerElements.hasNext()) {\n OMElement trailerNode = trailerElements.next();\n String tag = trailerNode.getAttributeValue(new QName(FIXConstants.FIX_FIELD_ID));\n String value = null;\n\n OMElement child = trailerNode.getFirstElement();\n if (child != null) {\n String href = trailerNode.getFirstElement().\n getAttributeValue(new QName(FIXConstants.FIX_MESSAGE_REFERENCE));\n if (href != null) {\n DataHandler binaryDataHandler = msgCtx.getAttachment(href.substring(4));\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n binaryDataHandler.writeTo(outputStream);\n value = new String(outputStream.toByteArray());\n }\n } else {\n value = trailerNode.getText();\n }\n\n if (value != null) {\n message.getTrailer().setString(Integer.parseInt(tag), value);\n }\n }\n }\n }\n return message;\n }",
"private HeaderBuilder createBasicHeaderMessage( int statusCode ) {\r\n\t\tHeaderBuilder builder = new HeaderBuilder();\r\n\t\treturn builder.buildHeaderBegin( statusCode, request.getHttpVersion() ).buildConnection( \"close\" );\r\n\t}",
"public Message() {\n\t\tsuper();\n\t}",
"protected Message createMessage(Object object, MessageProperties messageProperties, @Nullable Type genericType) {\n\t\treturn createMessage(object, messageProperties);\n\t}",
"public Message() {}",
"public Message() {}",
"public CloudQueueMessage(byte[] content) {\n\t\tthis(null, content, null, null, 0);\n\t}",
"@Override\n public String build() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Builds the section headers.\n ArrayList<Header> headers = new ArrayList<Header>();\n headers.add(new Header(\"Content-Type\", m_ContentType.getTypeString()));\n headers.add(new Header(\"Content-Transfer-Encoding\", m_TransferEncoding.getKeyWord()));\n stringBuilder.append(Header.buildHeaders(headers)).append(\"\\r\\n\");\n\n // Encodes the body, and appends it\n switch (m_TransferEncoding) {\n case BASE64 -> stringBuilder.append(Base64.getEncoder().encodeToString(m_RawBody.getBytes()));\n case QUOTED_PRINTABLE -> stringBuilder.append(QuotedPrintable.encode(m_RawBody));\n }\n stringBuilder.append(\"\\r\\n\");\n\n // Returns the built body\n return stringBuilder.toString();\n }",
"BODY createBODY();",
"public Message(){\n this.body = null;\n this.contact = null;\n }",
"public Message newMessage(String type, String addr) {\n\tMessage message = null;\n\n\tif (type.equals(MessageConnection.TEXT_MESSAGE)) {\n\n\t message = new TextObject(addr);\n\t} else {\n\t if (type.equals(MessageConnection.BINARY_MESSAGE)) {\n\n message = new BinaryObject(addr);\n\t } else {\n throw new IllegalArgumentException(\n \"Message type not supported\");\n\t }\n\t}\n\n\n\treturn message;\n }",
"public Message(String text, String sender, String target, LatLng sendersLocation,\n int numHops, long expirationTime, int createdByUser) {\n\n this.text = text;\n this.sender = sender;\n this.target = target;\n this.sendersLatitude = sendersLocation.latitude;\n this.sendersLongitude = sendersLocation.longitude;\n this.numHops = numHops;\n this.expirationTime = expirationTime;\n this.createdByUser = createdByUser;\n }",
"public CloudQueueMessage(String content) {\n\t\tthis(content.getBytes());\n\t}",
"public OAuthMessage() {\n\t\t_parameters = new ParameterList();\n\n\t\tif (DEBUG)\n\t\t\t_log.debug(\"Created empty OAuthMessage.\");\n\t}",
"public SIPMessage() {\n this.unrecognizedHeaders = new LinkedList();\n this.headers = new LinkedList();\n nameTable = new Hashtable();\n \ttry {\n \tthis.attachHeader(new ContentLength(0),false);\n \t} catch (Exception ex) {}\n }",
"public Message(User author, String message) {\n this.author = author;\n this.message = message;\n this.date = new Date();\n }",
"public Message(String key, Object... values) {\n this.key = key;\n this.values = values;\n }",
"public MailMessage() {\n }",
"private Message createMessageWithEmail(MimeMessage email) throws MessagingException, IOException {\n\t\tByteArrayOutputStream bytes = new ByteArrayOutputStream();\n\t\temail.writeTo(bytes);\n\t\tString encodedEmail = Base64.encodeBase64URLSafeString(bytes.toByteArray());\n\t\tMessage message = new Message();\n\t\tmessage.setRaw(encodedEmail);\n\t\treturn message;\n\n\t}",
"private Message prepareMessage(String receiver) throws MessagingException, IOException {\n Message message = new MimeMessage(makeSession());\n message.setFrom(new InternetAddress(FROM));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(receiver));\n message.setSubject(\"Bilety do Filharmonii\");\n\n String msg = \"W zalaczniku znajduje sie twoj bilet\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n MimeBodyPart attachmentBodyPart = new MimeBodyPart();\n attachmentBodyPart.attachFile(new File(ticketPath));\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n multipart.addBodyPart(attachmentBodyPart);\n\n message.setContent(multipart);\n return message;\n }",
"private static MessageHeader createMetaHeader(byte[] meta) {\n\t\tObject[] iov;\n\t\tif(meta != null) {\n\t\t\tiov = new Object[2];\n\t\t\tiov[0] = meta;\n\t\t\tiov[1] = JALP_BREAK_STR;\n\t\t} else {\n\t\t\tiov = new Object[1];\n\t\t\tiov[0] = JALP_BREAK_STR;\n\t\t}\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}",
"public NCLBody() {}",
"public Message createMessage(MessageType type, String message) throws MessageFormatException {\n String salesMessage[] = message.split(\" \");\n switch (type) {\n case SINGLE:\n if (salesMessage.length == 2) {\n return new SingleSaleMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"single\\\" should contain the product type and price.\" +\n \"e.g. \\\"single apple 10p\\\"\");\n case MULTIPLE:\n if (salesMessage.length == 3) {\n return new MultipleSaleMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"multiple\\\" should contain the quantity, product type and price.\" +\n \"e.g. \\\"multiple 10 apple 10p\\\"\");\n case ADJUSTMENT:\n if (salesMessage.length == 3) {\n return new PriceAdjustmentMessage(salesMessage);\n }\n throw new MessageFormatException(\"Message type \\\"adjustment\\\" should contain the adjustment operation,\" +\n \" adjustment price and product type. e.g. \\\"adjustment add 10p apple\\\"\");\n default:\n throw new MessageFormatException(\"Message type %s not supported.\" +\n \"Supported message types are %s\", type.toString(), Arrays.toString(MessageType.values()));\n }\n }",
"private NdefMessage createNdefMessage(String content) {\n NdefRecord ndefRecord = createTextRecord(content);\n NdefMessage ndefMessage = new NdefMessage(new NdefRecord[]{ndefRecord});\n return ndefMessage;\n }",
"public interface Message {\n\n final class Factory {\n\n public static <R> Message create(String action, Object body, Looper looper,\n Handler<AsyncResult<R>> replyHandler) {\n return new MessageImpl<>(action, body, looper, replyHandler);\n }\n }\n\n final class Builder {\n\n private String action;\n private Object body;\n private Message msg;\n private Looper looper;\n\n public Builder setAction(String action) {\n this.action = action;\n return this;\n }\n\n public Builder setBody(Object body) {\n this.body = body;\n return this;\n }\n\n public Builder setLooper(Looper looper) {\n this.looper = looper;\n return this;\n }\n\n public <R> Builder setReplyHandler(Handler<AsyncResult<R>> replyHandler) {\n if (looper == null) {\n looper = Looper.myLooper();\n }\n msg = Message.Factory.create(action, body, looper, replyHandler);\n return this;\n }\n\n public Message build() {\n if (msg == null) {\n if (looper == null) {\n looper = Looper.myLooper();\n }\n msg = Message.Factory.create(action, body, looper, null);\n }\n return msg;\n }\n }\n\n String action();\n\n <T> T body();\n\n void reply(Object response);\n\n void fail(String failureMessage);\n\n void fail(Throwable throwable);\n}",
"public Message() {\n }",
"public Message() {\n }",
"public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}",
"public Message createMessage(byte[] content, String contentType,\n String contentEncoding, String subject)\n {\n return new MessageIcqImpl(new String(content), contentType,\n contentEncoding, subject);\n }",
"public MimeMessage createEmptyMessage();",
"private static MimeMessage createEmail(String to,\n String from,\n FormattedOutput formattedTeacherOutput) throws MessagingException {\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n\n MimeMessage email = new MimeMessage(session);\n email.setFrom(new InternetAddress(from));\n email.addRecipient(javax.mail.Message.RecipientType.TO,\n new InternetAddress(to));\n email.setSubject(formattedTeacherOutput.subject());\n email.setContent(formattedTeacherOutput.entireHtml(), \"text/html\");\n return email;\n }",
"public Message() {\n }",
"public final Body newBody()\n {\n Body body = newBodyImpl();\n \n //addBody(body);\n \n return ( body );\n }"
]
| [
"0.68152183",
"0.64708215",
"0.6329315",
"0.6167521",
"0.6117031",
"0.602762",
"0.5991456",
"0.5973015",
"0.59702903",
"0.5957005",
"0.5837445",
"0.5827046",
"0.5773366",
"0.5761087",
"0.5733714",
"0.5704124",
"0.5663181",
"0.5657425",
"0.56568366",
"0.56481534",
"0.56465316",
"0.5630055",
"0.5616193",
"0.560399",
"0.55863357",
"0.558546",
"0.554784",
"0.5542861",
"0.5535754",
"0.5525317",
"0.5514161",
"0.5471857",
"0.54690975",
"0.54579",
"0.5454151",
"0.544972",
"0.5448585",
"0.5432348",
"0.5423613",
"0.5419079",
"0.54167676",
"0.54122704",
"0.54068166",
"0.54034615",
"0.5391048",
"0.538895",
"0.53826976",
"0.5353886",
"0.533096",
"0.5322334",
"0.5308727",
"0.5301057",
"0.52986985",
"0.5296679",
"0.5296301",
"0.528432",
"0.5277387",
"0.52758485",
"0.527288",
"0.52716386",
"0.5263676",
"0.5259682",
"0.5253005",
"0.5243022",
"0.52419573",
"0.5240123",
"0.5239147",
"0.5233617",
"0.52320206",
"0.5231871",
"0.5229407",
"0.5229407",
"0.5218695",
"0.52012914",
"0.5196537",
"0.51938206",
"0.5189989",
"0.5178673",
"0.5174513",
"0.5172191",
"0.516727",
"0.516214",
"0.5143622",
"0.5133772",
"0.51336455",
"0.51231325",
"0.51204246",
"0.5113969",
"0.51121265",
"0.5111911",
"0.5110407",
"0.51070184",
"0.50984174",
"0.50984174",
"0.5092657",
"0.5091249",
"0.5089872",
"0.50824475",
"0.50805473",
"0.50678116"
]
| 0.7471886 | 0 |
Returns the body of the message which may be null if no body has been set. | public byte[] getBody() {
return body;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getBody() throws MessagingException {\n if (body == null) {\n body = getMarshaler().unmarshal(exchange, this);\n }\n return body;\n }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"public String getBody() {\r\n return body;\r\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }",
"public String getBody()\n {\n return body;\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public Object getBody() {\n return body;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getContent());\n\t\t\t\treturn body;\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn body;\n\t\t}\n\t}",
"@Override\n public String getBody() {\n Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Body getBody() {\n return body;\n }",
"public String getBody_() {\n return body_;\n }",
"protected String getElementBody() {\n return this.getMessage() == null ? null : this.getMessage();\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public byte[] getBody() {\n\t\treturn body;\n\t}",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"java.lang.String getBody();",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getBody()\n {\n return super.getBody();\n }",
"com.google.protobuf.ByteString\n getBodyBytes();",
"com.google.protobuf.ByteString\n getBodyBytes();",
"@Override\n public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getContentBody() {\n return contentBody;\n }",
"public String getBody(){\n return body;\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(body_);\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"@Override\n\tpublic java.lang.String getBody() {\n\t\treturn _news_Blogs.getBody();\n\t}",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }",
"ByteBuf getMessageBody();",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"public Body getBody() {\n return new BufferBody(buffer);\n }",
"public String getBodyString() {\n return this.bodyString;\n }",
"public abstract Body getBody();",
"Body getBody();",
"public UserModel getBody() {\n return localBody;\n }",
"public UserModel getBody() {\n return localBody;\n }",
"public String getBodyText() {\n return bodyText;\n }",
"@Override\n public Object getBody() {\n return null;\n }",
"public Object getContent() {\n if (this.messageContentObject != null) return messageContentObject;\n else if (this.messageContentBytes != null)\n return this.messageContentBytes;\n else if (this.messageContent != null) return this.messageContent;\n else return null;\n }",
"public String getBody(){\n return bodiesText;\n }",
"public InputStream body() {\n return body;\n }",
"public static String getBody(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_BODY, null);\n }",
"public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }",
"SmilBody getBody();",
"DBody getBody();",
"public MimeBodyPart getContentBodyPart() throws MessagingException {\n\t\tMimeBodyPart contentBodyPart = new MimeBodyPart();\n\t\tif (html) {\n\t\t\tcontentBodyPart.setHeader(\"Content-Type\", \"text/html\");\n\t\t\tcontentBodyPart.setContent(body, \"text/html\");\n\t\t} else {\n\t\t\tcontentBodyPart.setContent(body, \"text/plain\");\n\t\t}\n\t\treturn contentBodyPart;\n\t}",
"public String body() {\n return request.content().toString(StandardCharsets.UTF_8);\n }",
"public String getMessageContent() {\n return messageContent;\n }",
"public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}",
"public Statement getBody() {\n if (body == null) {\n // lazy initialize - use setter to ensure parent link set too\n setBody(new Block(getAST())); }\n return body; }",
"public byte[] getBodyBytes() throws UnsupportedEncodingException {\n if (getBodyString() == null) {\n return \"\".getBytes();\n }\n\n return getBodyString().getBytes(\"UTF-8\");\n }",
"public byte[] getBody(){\n Map<String,String> params=getParams();\n if (params!=null&¶ms.size()>0){\n return encodeParameters(params,getParamsEncoding());\n }\n return null;\n }",
"public String getMessageBody(UpnpMessage upnpMessage) throws UnsupportedDataException {\n if (upnpMessage.isBodyNonEmptyString()) {\n return upnpMessage.getBodyString().trim();\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Can't transform null or non-string/zero-length body of: \");\n sb.append(upnpMessage);\n throw new UnsupportedDataException(sb.toString());\n }",
"public Optional<String> getMessage() {\n return _message;\n }",
"public HttpEntity body() {\n return body;\n }",
"public List<Atom> getBody ()\r\n\t{\r\n\t\treturn _body;\r\n\t}",
"@Override\n public String getBody() {\n return mSubject; /*mFile.toString();*/\n }",
"public String getEmailBodyString() {\r\n return this.emailBodyString;\r\n }",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public String getBodyString()\r\n\t{\r\n\t\tString charsetName = this.request.getCharacterEncoding();\r\n\t\tif (charsetName == null || charsetName == \"\")\r\n\t\t\tcharsetName = \"UTF-8\";\r\n\t\t\r\n\t\treturn this.getBodyString(charsetName);\r\n\t}",
"CompoundSt getBody () { return body; }",
"public MessageToProcess retrieveMessage() {\n MessageToProcess returnMessage = this.queueMessagingTemplate.receiveAndConvert(MessageToProcess.class);\n\n return Optional.ofNullable(returnMessage).orElse(null);\n }",
"public org.chartacaeli.model.Body[] getBody() {\n org.chartacaeli.model.Body[] array = new org.chartacaeli.model.Body[0];\n return this.bodyList.toArray(array);\n }",
"public abstract SOAPBody getSOAPBody() throws SOAPException;",
"public GHFrom getBody() {\n return body;\n }",
"public Message getMessage(){\n return message;\n }",
"public OaEmailBody getModel() {\n\t\treturn null;\n\t}",
"protected String getMessage() {\n if (allMessage == null)\n return allMessage;\n return allMessage.trim();\n }",
"protected String readMessage() {\n synchronized (messageQ) {\n while (messageQ.isEmpty()) {\n try {\n messageQ.wait();\n } catch (InterruptedException e) {\n if (isGUI)\n return null;\n }\n }\n return messageQ.poll();\n }\n }",
"public synchronized BodyPart getBodyPart(String CID) throws MessagingException {\n/* 270 */ parse();\n/* */ \n/* 272 */ int count = getCount();\n/* 273 */ for (int i = 0; i < count; i++) {\n/* 274 */ MimeBodyPart part = (MimeBodyPart)getBodyPart(i);\n/* 275 */ String s = part.getContentID();\n/* 276 */ if (s != null && s.equals(CID))\n/* 277 */ return part; \n/* */ } \n/* 279 */ return null;\n/* */ }",
"public Object getMessage() {\n return m_message;\n }",
"public String getMessage() {\r\n return getPayload().optString(\"message\");\r\n }",
"public String getMessage()\n\t{\n\t\tif(response.containsKey(\"MESSAGE\")) {\n\t\t\treturn response.get(\"MESSAGE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public DrakonMacro getBody()\r\n {\r\n return body;\r\n }",
"public String getMessageContent()\n throws UnsupportedEncodingException {\n if ( this.messageContent == null && this.messageContentBytes == null )\n return null;\n else if (this.messageContent == null) {\n ContentType contentTypeHeader =\n (ContentType) this.nameTable.get(ContentType.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n this.messageContent =\n new String(messageContentBytes,charset);\n } else {\n this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n } else this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n return this.messageContent;\n }",
"public String getContent() throws IOException {\n ContentType type = getContentType();\n \n if(type == null) {\n return body.getContent(\"UTF-8\");\n } \n return getContent(type);\n }",
"@ApiModelProperty(required = true, value = \"The body of the approval request to show the user.\")\n public String getBody() {\n return body;\n }",
"public Object extractBodyFromJms(JmsExchange exchange, Message message) {\n try {\n if (message instanceof ObjectMessage) {\n ObjectMessage objectMessage = (ObjectMessage)message;\n return objectMessage.getObject();\n } else if (message instanceof TextMessage) {\n TextMessage textMessage = (TextMessage)message;\n return textMessage.getText();\n } else if (message instanceof MapMessage) {\n return createMapFromMapMessage((MapMessage)message);\n } else if (message instanceof BytesMessage || message instanceof StreamMessage) {\n return message;\n } else {\n return null;\n }\n } catch (JMSException e) {\n throw new RuntimeJmsException(\"Failed to extract body due to: \" + e + \". Message: \" + message, e);\n }\n }",
"public com.google.protobuf.ByteString getMessage() {\n return message_;\n }",
"@Override\n public EmailBody getBody(String BodyType) {\n if(BodyType == null){\n return null;\n }\n if(BodyType.equalsIgnoreCase(\"VipBody\")){\n return new VipBody();\n } else return null;\n\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message getMessage() {\n if (messageBuilder_ == null) {\n return message_ == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.getDefaultInstance() : message_;\n } else {\n return messageBuilder_.getMessage();\n }\n }",
"public final Body newBody()\n {\n Body body = newBodyImpl();\n \n //addBody(body);\n \n return ( body );\n }",
"public List<SignatureNode> getBody() {\n return body;\n }",
"public ClassBodyNode getBody()throws ClassCastException;"
]
| [
"0.7435086",
"0.7433986",
"0.74110657",
"0.7398938",
"0.7368445",
"0.7349815",
"0.7349815",
"0.7349815",
"0.734518",
"0.7343454",
"0.733711",
"0.7295997",
"0.72673696",
"0.72629964",
"0.72145605",
"0.7184448",
"0.7182378",
"0.7149664",
"0.7124094",
"0.7109153",
"0.7103842",
"0.70699036",
"0.7061963",
"0.7053876",
"0.7044357",
"0.69740504",
"0.6926697",
"0.69233525",
"0.6915735",
"0.6913386",
"0.690744",
"0.68588865",
"0.68588865",
"0.6852873",
"0.6844183",
"0.68117",
"0.6791136",
"0.67794657",
"0.67794657",
"0.67794657",
"0.67794657",
"0.67681116",
"0.6719697",
"0.67056614",
"0.66944915",
"0.6674933",
"0.6649598",
"0.6612434",
"0.65890294",
"0.65799564",
"0.65754396",
"0.65754396",
"0.6567941",
"0.6530172",
"0.65146136",
"0.6495442",
"0.6475176",
"0.6460963",
"0.64574987",
"0.640177",
"0.6277442",
"0.618864",
"0.61743844",
"0.61459553",
"0.6139979",
"0.613067",
"0.6101278",
"0.6096699",
"0.609381",
"0.6086968",
"0.607714",
"0.60445213",
"0.6013414",
"0.6008129",
"0.5982255",
"0.5969822",
"0.59637713",
"0.5888572",
"0.5869111",
"0.5867102",
"0.58444923",
"0.5782305",
"0.5771021",
"0.57692444",
"0.57487303",
"0.572621",
"0.57248896",
"0.5719945",
"0.5716371",
"0.5713205",
"0.57115626",
"0.56949717",
"0.5681672",
"0.56815696",
"0.5677507",
"0.56675035",
"0.56642437",
"0.56332153",
"0.56277114",
"0.5626631"
]
| 0.6910977 | 30 |
Sets the body of the message to the given content. | public void setBody(byte[] content) {
this.body = content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBody(String content) {\n if (content != null) {\n setBody(content.getBytes(UTF_8));\n }\n else {\n setBody((byte[]) null);\n }\n }",
"public void setMessageContent(String content) {\n int clength = (content == null? 0: content.length());\n try {\n this.contentLengthHeader.setContentLength(clength);\n } catch (InvalidArgumentException ex) {}\n messageContent = content;\n messageContentBytes = null;\n messageContentObject = null;\n }",
"public void setMessageContent(byte[] content) {\n try {\n this.contentLengthHeader.setContentLength(content.length);\n } catch (InvalidArgumentException ex) {}\n \n messageContentBytes = content;\n messageContent = null;\n messageContentObject = null;\n }",
"public void setContent(\n final java.lang.String content) {\n this._content = content;\n }",
"public void setContent(Object content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.m_content = content;\n }",
"public void setContent(java.lang.String content) {\n this._content = content;\n }",
"public void setContent(String content) {\n\t\tthis.content = content == null ? null : content.trim();\n\t}",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }",
"public void setContent (java.lang.String content) {\n\t\tthis.content = content;\n\t}",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n\t\tmContent = content;\n\t}",
"public void setContent(String content) {\r\n this.content = content == null ? null : content.trim();\r\n }",
"public void setContent(Object content,\n ContentTypeHeader contentTypeHeader) throws ParseException {\n if (content == null) throw new NullPointerException(\"null content\");\n this.setHeader(contentTypeHeader);\n if (content instanceof String) {\n this.messageContent = (String)content;\n } else if (content instanceof byte[]) {\n this.messageContentBytes = (byte[]) content;\n } else this.messageContentObject = content;\n \n try {\n int length = -1;\n if (content instanceof String )\n length = ((String)content).length();\n else if (content instanceof byte[])\n length = ((byte[])content).length;\n \t else \n \t\tlength = content.toString().length();\n \n if (length != -1 ) {\n this.contentLengthHeader.setContentLength(length);\n }\n } catch (InvalidArgumentException ex) {}\n \n }",
"public void setContent(String content) {\n\t\tthis.content = content;\n\t}",
"public void setContent(String content) {\n\t\tthis.content = content;\n\t}",
"public void setContent(String content) {\r\n\t\tthis.content = content;\r\n\t}",
"public void setContent(byte[] value) {\r\n this.content = value;\r\n }",
"public synchronized void setContent(Object content) {\n // nothing\n }",
"public void setContent(String content) {\n this.contents = content;\n }",
"void setBody(final Body body);",
"private void setContent(String content) {\n this.content = content;\n }",
"public void setContent(String content) {\n\t this.content = content;\n\t}",
"void setContent(java.lang.String content);",
"public void setMessageContent(String type, String subType,\n byte[] messageContent) {\n ContentType ct = new ContentType(type,subType);\n this.setHeader(ct);\n this.setMessageContent(messageContent);\n try {\n this.contentLengthHeader.setContentLength(messageContent.length);\n } catch (InvalidArgumentException ex) {}\n \n }",
"@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}",
"@Override\n public void setMessage(byte[] content, boolean isRequest) {\n this.content = content;\n this.bodyIndex = new String(content).lastIndexOf(\"\\r\\n\\r\\n\")+4;\n formatJson();\n textPane.setText(jsonData);\n }",
"public void setMessageContent(String type, String subType,\n String messageContent) {\n if (messageContent == null)\n throw new IllegalArgumentException(\"messgeContent is null\");\n ContentType ct = new ContentType(type,subType);\n this.setHeader(ct);\n this.messageContent = messageContent;\n this.messageContentBytes = null;\n this.messageContentObject = null;\n try {\n this.contentLengthHeader.setContentLength(messageContent.length());\n } catch (InvalidArgumentException ex) {}\n \n }",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"public void setBody(String newValue);",
"public void setMessageBody(T messageBody) {\n this.messageBody = messageBody;\n }",
"public void setBody(Body body) {\n this.body = body;\n }",
"public void setContent(String content) { this.content = content; }",
"public void setWholeText(String content) {\n\t\ttextInterface().setString(content);\n\t}",
"public void setBody_(String body_) {\n this.body_ = body_;\n }",
"@Override\n\tpublic void setBody(java.lang.String body) {\n\t\t_news_Blogs.setBody(body);\n\t}",
"public void setBody(String body)\n {\n this.body = body;\n }",
"public void setBody(String body) {\n this.body = body;\n }",
"private void setContent (Message message) {\n String content = \"\";\n try {\n if (message.getContent() instanceof String) {\n content = (String) message.getContent();\n msgContent.setText(content);\n } else if (message.isMimeType(\"multipart/*\")) {\n Multipart multipart = (Multipart) message.getContent();\n if (multipart.getCount() > 0) {\n int i;\n for (i = 0; i < multipart.getCount(); i++) {\n content += multipart.getBodyPart(i).getContent().toString();\n }\n msgContent.setText(content);\n }\n } else {\n msgContent.setText(\"This message is in an unsupported format.\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n\n }",
"public Builder setContent(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n content_ = value;\n onChanged();\n return this;\n }",
"public Builder setContent(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n content_ = value;\n onChanged();\n return this;\n }",
"private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }",
"private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setContent(java.lang.String value) {\n validate(fields()[1], value);\n this.content = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setBody (String body) {\n\t\tresetText(body);\n\t}",
"protected void addContentToMessage(String content, Message msg) throws MessagingException {\n msg.setText(content);\n }",
"public void setBody(Object body) {\n this.body = body;\n }",
"public Builder setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n content_ = value;\n \n return this;\n }",
"public void setBody(String v) \n {\n \n if (!ObjectUtils.equals(this.body, v))\n {\n this.body = v;\n setModified(true);\n }\n \n \n }",
"public Builder setBody(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n body_ = value;\n onChanged();\n return this;\n }",
"public void setContent(String msg) {\n\t\tthis.textArea.setText(msg);\r\n\t}",
"public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}",
"public void setContent( final String content ) {\n setDefaultResponse(content, 200, \"OK\", \"text/html\");\n }",
"private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }",
"private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }",
"public Builder setBody(\n java.lang.String value) {\n copyOnWrite();\n instance.setBody(value);\n return this;\n }",
"public void setContent( Term content ) {\n this.content = content;\n }",
"void setContent(String data) {\n this.content = data;\n }",
"void setBody (DBody body);",
"private void setMessageContent(MimePart part) throws MessagingException {\n\n part.setDisposition(INLINE);\n part.setContent(content, contentType);\n part.setHeader(CONTENT_TYPE_HEADER, contentType);\n if (StringUtils.isNotEmpty(contentTransferEncoding)) {\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, contentTransferEncoding);\n }\n }",
"public void setBody(byte[] body) {\n\t\t\tthis.body = body;\n\t\t}",
"public void setContent(String newContent)\n\t{\n\t\tthis.content = newContent;\n\t}",
"@Override\n public void setContent(final InputStream is) throws IOException\n {\n this.getAttachment().setAttachment_content(null);\n this.getAttachment().setContent(is);\n }",
"public void setBody(byte[] body) {\n\t\tthis.body = body;\n\t}",
"public void setMessageContent(String messageContent) {\n this.messageContent = messageContent == null ? null : messageContent.trim();\n }",
"public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n onChanged();\n return this;\n }",
"public MessageBuilder withBody(String content, String contentType, String encoding,\n String contentTransferEncoding) {\n\n this.contentType = StringUtils.isEmpty(contentType) ? DEFAULT_CONTENT_TYPE : contentType;\n this.contentType = StringUtils.isEmpty(encoding)\n ? this.contentType + \"; charset=\" + DEFAULT_ENCODING\n : this.contentType + \"; charset=\" + encoding;\n if (StringUtils.isNotEmpty(content)) {\n this.content = content;\n }\n this.contentTransferEncoding = StringUtils.isEmpty(contentTransferEncoding)\n ? DEFAULT_CONTENT_TRANSFER_ENCODING : contentTransferEncoding;\n return this;\n }",
"private void setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n }",
"private void setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n body_ = value.toStringUtf8();\n }",
"public Builder setContentBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n content_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"@Override\n public void set(C content) {\n this.content = content;\n }",
"public HttpsConnection setBody(final String body){\n this.mBody = body;\n return this;\n }",
"public Builder setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n content_ = value;\n onChanged();\n return this;\n }",
"public final native void setContent(String content) /*-{\n this.setContent(content);\n }-*/;",
"public Builder setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value;\n onChanged();\n return this;\n }",
"private void setContent(final Message message, final MimeMultipart alternative, final MimeMultipart attachment,\n final String body)\n throws MessagingException {\n if (0 != attachment.getCount()) {\n // Contenu mixte: Pieces jointes + texte\n if (0 != alternative.getCount() || null != body) {\n // Texte alternatif = texte + texte html\n final MimeBodyPart tmp = new MimeBodyPart();\n tmp.setContent(alternative);\n attachment.addBodyPart(tmp, 0);\n } else {\n // Juste du texte\n final BodyPart plainText = new MimeBodyPart();\n plainText.setContent(body, \"text/plain; \" + CHARSET);\n attachment.addBodyPart(plainText, 0);\n }\n message.setContent(attachment);\n } else {\n // Juste un message texte\n if (0 != alternative.getCount()) {\n // Texte alternatif = texte + texte html\n message.setContent(alternative);\n } else {\n // Texte\n message.setText(body);\n }\n }\n }",
"public void setContent(java.lang.CharSequence value) {\n this.Content = value;\n }",
"public Bias setContent(String content) {\n this.content = content;\n return this;\n }",
"public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }",
"public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }",
"public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }",
"public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }",
"public void setBody(BodyType _body) {\n this.body = _body;\n }",
"public void setContent(List<String> content){\n\t\t\tif (canHaveContent())this.content = content;\n\t\t}",
"public BlobName setContent(String content) {\n this.content = content;\n return this;\n }"
]
| [
"0.78019154",
"0.713652",
"0.71102756",
"0.661727",
"0.6526687",
"0.65181416",
"0.647338",
"0.64638066",
"0.645438",
"0.645438",
"0.645438",
"0.645438",
"0.645438",
"0.645438",
"0.64483404",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.6429675",
"0.64233667",
"0.64086205",
"0.6405257",
"0.6381312",
"0.6381312",
"0.6370384",
"0.6369443",
"0.6366283",
"0.6356317",
"0.63521516",
"0.6349459",
"0.6318914",
"0.63119835",
"0.6288004",
"0.62399566",
"0.6221432",
"0.62101156",
"0.6209747",
"0.6199516",
"0.61931175",
"0.6191297",
"0.61690885",
"0.61601096",
"0.61513823",
"0.6150286",
"0.61318475",
"0.612138",
"0.61009026",
"0.6099397",
"0.6099397",
"0.60951364",
"0.60951364",
"0.6087621",
"0.6078744",
"0.60780597",
"0.6077475",
"0.60762227",
"0.6052948",
"0.5997194",
"0.59777665",
"0.5974758",
"0.5969896",
"0.5957361",
"0.5957361",
"0.59557617",
"0.5915043",
"0.59146863",
"0.5879243",
"0.5860972",
"0.58496535",
"0.58454883",
"0.5823204",
"0.58062893",
"0.5790757",
"0.57835233",
"0.5779736",
"0.5773933",
"0.57610047",
"0.57592946",
"0.57418144",
"0.57400155",
"0.57233125",
"0.57086116",
"0.5700987",
"0.5700425",
"0.5696132",
"0.5688938",
"0.56788224",
"0.56788224",
"0.567495",
"0.567495",
"0.56578404",
"0.56274337",
"0.56201303"
]
| 0.7664851 | 1 |
Sets the body as a String. The String will be converted to bytes using UTF8 encoding. | public void setBody(String content) {
if (content != null) {
setBody(content.getBytes(UTF_8));
}
else {
setBody((byte[]) null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBodyString() {\n return this.bodyString;\n }",
"public Builder setBody(\n java.lang.String value) {\n copyOnWrite();\n instance.setBody(value);\n return this;\n }",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}",
"public void setBody(String body) {\n this.body = body;\n }",
"public void setBody(String body)\n {\n this.body = body;\n }",
"public String getBodyString()\r\n\t{\r\n\t\tString charsetName = this.request.getCharacterEncoding();\r\n\t\tif (charsetName == null || charsetName == \"\")\r\n\t\t\tcharsetName = \"UTF-8\";\r\n\t\t\r\n\t\treturn this.getBodyString(charsetName);\r\n\t}",
"public Builder setBody(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n body_ = value;\n onChanged();\n return this;\n }",
"public void setBody_(String body_) {\n this.body_ = body_;\n }",
"public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n onChanged();\n return this;\n }",
"private void setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setBody (String body) {\n\t\tresetText(body);\n\t}",
"public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }",
"public HttpsConnection setBody(final String body){\n this.mBody = body;\n return this;\n }",
"@Override\n public String getBody() {\n Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"public void setBody(String v) \n {\n \n if (!ObjectUtils.equals(this.body, v))\n {\n this.body = v;\n setModified(true);\n }\n \n \n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setBody(String newValue);",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }",
"private void setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n body_ = value.toStringUtf8();\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public synchronized String getBodyString(String charsetName)\r\n\t{\r\n\t\tif (this.bodyString == null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tthis.bodyString = new String(this.bodyBytes, charsetName);\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.bodyString;\r\n\t}",
"public HttpBody setBody(String body) {\n this.body = body;\n return this;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"java.lang.String getBody();",
"@Override\n public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setBody (String s) {\n if (autoFormat) {\n body = s.replace(\"\\n\", \"<p>\\n\");\n }\n else {\n body = s;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic void setBody(java.lang.String body) {\n\t\t_news_Blogs.setBody(body);\n\t}",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public void setBody(Object body) {\n this.body = body;\n }",
"public void setBody(String body) {\n this.body = body;\n String params[] = body.split(\"&\");\n for (String param : params) {\n String keyValue[] = param.split(\"=\");\n parameters.put(keyValue[0], keyValue[1]);\n }\n\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}",
"public String getBody_() {\n return body_;\n }",
"public String getBody(){\n return body;\n }",
"public String getBody() {\r\n return body;\r\n }",
"public void setBodyText(String bodyText) {\n this.bodyText = bodyText;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody()\n {\n return body;\n }",
"public void setBody(byte[] body) {\n\t\t\tthis.body = body;\n\t\t}",
"public void setBody(byte[] body) {\n\t\tthis.body = body;\n\t}",
"public byte[] getBodyBytes() throws UnsupportedEncodingException {\n if (getBodyString() == null) {\n return \"\".getBytes();\n }\n\n return getBodyString().getBytes(\"UTF-8\");\n }",
"public void setEmailBodyString(String emailBodyString1) {\r\n this.emailBodyString = emailBodyString1;\r\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"public static String getBodyToString(StringBuffer body){\n String stringBody = body.toString();\n\n /**\n * if the string buffer is empty, we just return the empty string\n */\n if (stringBody.strip().equals(\"\")){\n return stringBody;\n }\n\n /**\n * else we clean up the body and then return it.\n * this was done before we had a separate clean method\n */\n String[] splitBody = stringBody.split(\"=\", 2);\n return splitBody[1];\n }",
"public void setBody(Body body) {\n this.body = body;\n }",
"public String getBodyText() {\n return bodyText;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public void setBody(BodyType _body) {\n this.body = _body;\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n body_ = value;\n onChanged();\n return this;\n }",
"public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getContent());\n\t\t\t\treturn body;\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn body;\n\t\t}\n\t}",
"public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n body_ = value;\n onChanged();\n return this;\n }",
"public void setPostBody(String postBody)\n\t\t{\n\t\t\tthis.postBody = postBody;\n\t\t}",
"public String getBodyAsString() throws IOException {\n\t\treturn ServletUtil.toString(this.wrappedOut.getBytes(), getContentType(), getCharacterEncoding());\n\t}",
"public String body() {\n return request.content().toString(StandardCharsets.UTF_8);\n }",
"public String getBody(){\n return bodiesText;\n }",
"public void setPostBody(String postBody) {\n this.postBody = postBody == null ? null : postBody.trim();\n }",
"void setBody(final Body body);",
"private ByteArrayEntity prepareBody() throws UnsupportedEncodingException {\n return new ByteArrayEntity(context.getBody().getBytes(\"UTF-8\"));\n }",
"RequestBody set(byte[] body);",
"public String getEmailBodyString() {\r\n return this.emailBodyString;\r\n }",
"public static RequestBody createBody(String str) {\n RequestBody fBody = RequestBody.create(MediaType.parse(\"text/plain\"), str);\n return fBody;\n }",
"public void setBody(byte[] content) {\n this.body = content;\n }",
"public String getBody()\n {\n return super.getBody();\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(body_);\n }",
"@Override\n public String getBodyContentType() {\n return \"application/x-www-form-urlencoded; charset=UTF-8\";\n }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public StringContent(String newString)\n {\n content=newString;\n }",
"public RestUtils setPostBody(String postBody)\n\t{\n\t\trestMethodDef.setPostBody(postBody);\n\t\treturn this;\n\t}",
"public static String simpleBody(final String body) {\n if (body == null || \"\".equals(body)) {\n return Sendmail.CRLF;\n }\n if (!Sendmail.CRLF.equals(body.substring(body.length() - 2, body.length()))) {\n return body + Sendmail.CRLF;\n }\n String ret = body;\n while (\"\\r\\n\\r\\n\".equals(ret.substring(ret.length() - 4, ret.length()))) {\n ret = ret.substring(0, ret.length() - 2);\n }\n return ret;\n }",
"private void setResponseBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n responseBody_ = value;\n }",
"public boolean isStringBody() throws IOException {\n\t\treturn !this.wrappedOut.hasData() || ServletUtil.isStringBody(getContentType());\n\t}",
"public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"public void setTypeOfBody(String typeOfBody) {\n\t\tthis.typeOfBody = typeOfBody;\n\t}",
"public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }",
"private void setResponseBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n responseBody_ = value.toStringUtf8();\n }",
"void setBody (DBody body);",
"@PUT\n\t@Consumes(\"text/plain\")\n\tpublic void setTextPlain(String msg) {\n\t\tthis.msg = msg;\n\t}",
"@Override\n public byte[] getBody() throws AuthFailureError {\n try {\n return mRequestBody == null ? null : mRequestBody.getBytes(\"utf-8\");\n } catch (UnsupportedEncodingException uee) {\n VolleyLog.wtf(\"Unsupported Encoding while trying to get the bytes of %s using %s\", mRequestBody, \"utf-8\");\n return null;\n }\n }",
"public Object getBody() {\n return body;\n }",
"public byte[] getBody() {\n return body;\n }",
"public void setBody(AgentBody newBody) {\n\t\tbody = newBody;\n\t}",
"public String getPostBody() {\n return postBody;\n }",
"private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }",
"public Body getBody() {\n return body;\n }",
"public byte[] getBody() {\n\t\treturn body;\n\t}"
]
| [
"0.7330189",
"0.6933116",
"0.6923428",
"0.69083744",
"0.6903171",
"0.68798757",
"0.68681866",
"0.6842146",
"0.6825114",
"0.6813051",
"0.6797362",
"0.66716576",
"0.6640059",
"0.6607314",
"0.66020226",
"0.6573643",
"0.6564768",
"0.65183234",
"0.65079474",
"0.6494155",
"0.6489996",
"0.6488542",
"0.6419338",
"0.6391457",
"0.6382254",
"0.63753885",
"0.6350702",
"0.6347011",
"0.62880856",
"0.6239769",
"0.6217953",
"0.6205817",
"0.6197004",
"0.6164805",
"0.61565155",
"0.6141094",
"0.6110571",
"0.61072016",
"0.6103737",
"0.6101772",
"0.60615885",
"0.60571396",
"0.6022595",
"0.6022595",
"0.6022595",
"0.5997677",
"0.5991993",
"0.5990761",
"0.5969975",
"0.5942371",
"0.5904992",
"0.5889418",
"0.58884066",
"0.5885662",
"0.58526516",
"0.58526516",
"0.58526516",
"0.58526516",
"0.58441603",
"0.58100384",
"0.5800166",
"0.5783155",
"0.56425923",
"0.56238514",
"0.5621229",
"0.560038",
"0.559563",
"0.557604",
"0.5554003",
"0.5548178",
"0.553299",
"0.55176604",
"0.55049497",
"0.54236436",
"0.5383311",
"0.53692734",
"0.5343601",
"0.5301933",
"0.5277964",
"0.52715355",
"0.5267641",
"0.5266513",
"0.52486044",
"0.52354395",
"0.5180418",
"0.5172771",
"0.5172771",
"0.51645935",
"0.5150628",
"0.5147224",
"0.51464415",
"0.5132241",
"0.5117995",
"0.50372607",
"0.5036735",
"0.5013211",
"0.49890977",
"0.4972563",
"0.49635765",
"0.4958183"
]
| 0.702284 | 1 |
Returns the headers of the message. | public Headers getHeaders() {
if (headers == null) {
headers = new DefaultHeaders();
}
return headers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getHeaders()\n\t{\n\t\tString[] lines = this.header.split(\"\\\\r\\\\n\");\n\t\treturn lines;\n\t}",
"public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }",
"public Header[] getRequestHeaders() {\n return getRequestHeaderGroup().getAllHeaders();\n }",
"public Set<String> getHeaderNames() {\n return headers.keySet();\n }",
"public Enumeration getAllHeaders() throws MessagingException {\n/* 451 */ if (this.headers == null)\n/* 452 */ loadHeaders(); \n/* 453 */ return this.headers.getAllHeaders();\n/* */ }",
"public Map<String, List<String>> getHeaders() {\n\t\t\treturn headers;\n\t\t}",
"public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"Map<String, List<String>> getHeaders();",
"public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}",
"public Header[] getResponseHeaders() {\n return getResponseHeaderGroup().getAllHeaders();\n }",
"public Map<String, String> headers() {\n return this.header.headers();\n }",
"Map<String, String> getHeaders();",
"public Map<String, List<String>> getHeaders(){\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders;\n }",
"public Header[] getRequestHeaders();",
"public AsyncResult<List<OfflineMessageHeader>> requestMessageHeaders() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryManager.discoverItems(null, OfflineMessage.NAMESPACE).thenApply(itemNode ->\r\n itemNode.getItems().stream()\r\n .map(item -> new OfflineMessageHeader(Jid.of(item.getName()), item.getNode()))\r\n .collect(Collectors.toList())\r\n );\r\n }",
"public Map getHeaders() {\r\n if (headers == null) {\r\n headers = new HashMap();\r\n }\r\n\r\n return headers;\r\n }",
"public Enumeration getAllHeaderLines() throws MessagingException {\n/* 504 */ if (this.headers == null)\n/* 505 */ loadHeaders(); \n/* 506 */ return this.headers.getAllHeaderLines();\n/* */ }",
"public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public MultiMap getHeaders() {\n return headers;\n }",
"public HeaderSet getReceivedHeaders() throws IOException {\n ensureOpen();\n\n return replyHeaders;\n }",
"Collection<String> getHeaderNames();",
"List<Header> headers();",
"public List<Div> getHeaders()\n {\n if (headers == null)\n {\n headers = new ArrayList<>();\n }\n return headers;\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public Optional<List<Headers>> headers() {\n return Codegen.objectProp(\"headers\", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get();\n }",
"List<String> getHeaders() {\n return forensicsTable.getHeaders();\n }",
"public String[] getHeader(String name) throws MessagingException {\n/* 363 */ if (this.headers == null)\n/* 364 */ loadHeaders(); \n/* 365 */ return this.headers.getHeader(name);\n/* */ }",
"public final Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public List<Header> getSessionHeaders() {\n\t\treturn Collections.unmodifiableList(sessionHeaders);\n\t}",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Pair<String,String>> getHeaders() {\n return headerList;\n }",
"public Map<String, List<String>> getHeaders() throws NullPointerException {\n if (headers != null) {\n return headers;\n }\n throw new NullPointerException(\"getHeaders must be called after asArray or asObject\");\n }",
"Set<String> getHeaderNames();",
"@Override public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public ListIterator getHeaders()\n { return headers.listIterator(); }",
"public List<Header> getHeaderList() {\n return mHeaderList;\n }",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }",
"Headers getHeaders();",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public Map<String, String> getHeaderList() {\n return headerMap;\n }",
"List<? extends Header> getAllHeaders();",
"public HashMap<String, String> getHeaderList() {\n return headerList;\n }",
"@JsonIgnore\n public String getMessageHeaders() {\n try {\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode root = mapper.createObjectNode();\n root.set(\"topic\", mapper.convertValue(getTopic(), JsonNode.class));\n return mapper.writer().writeValueAsString(root);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return \"\";\n }",
"public Map<String, List<String>> getHeaderFields() {\n/* 262 */ return this.delegate.getHeaderFields();\n/* */ }",
"@Override\n\tpublic FileItemHeaders getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"FS2ObjectHeaders getHeaders();",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return httpClientRequest.getHeaders();\n }",
"@Override\n\tpublic Collection<String> getHeaderNames() {\n\t\treturn null;\n\t}",
"public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }",
"public abstract Iterator getAllMimeHeaders();",
"public static Map<String, Object> getMessageHeaders(MQMessage message, MQRFH2 rfh2) {\n Map<String, Object> headers = new TreeMap<String, Object>();\n\n if (rfh2 != null) {\n try {\n try {\n String nmr = rfh2.getStringFieldValue(\"usr\", \"norma_message_request_type\");\n headers.put(\"norma_message_request_type\", nmr);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n for (Element folder : rfh2.getFolders()) {\n String prefix = folder.getName() + \".\";\n for (Element element : folder.getChildren()) {\n headers.put(prefix + element.getName(), element.getValue());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n } else if (message != null) {\n MQHeaderIterator it = new MQHeaderIterator(message);\n while (it.hasNext()) {\n MQHeader header = it.nextHeader();\n String key = header.toString();\n headers.put(key, key);\n }\n }\n\n if (message != null) {\n headers.put(\"MQMDmessageId\", message.messageId == null ? \"null\" : \"'\" + new String(message.messageId) + \"'\");\n GregorianCalendar putDateTime = message.putDateTime;\n headers.put(\"MQMDputDateTime\", putDateTime == null ? \"null\" : putDateTime.getTime().toString());\n headers.put(\"MQMDcorrelationId\", message.correlationId == null ? \"null\" : \"'\"\n + new String(message.correlationId) + \"'\");\n }\n return headers;\n }",
"public String[] composeHeader() {\n\t\treturn null;\n\t}",
"public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }",
"@ZAttr(id=1074)\n public String[] getResponseHeader() {\n return getMultiAttr(Provisioning.A_zimbraResponseHeader);\n }",
"public java.util.List<ConnectionHeaderParameter> getHeaderParameters() {\n return headerParameters;\n }",
"@Override\n\tpublic Collection<String> getHeaders(String name) {\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic Enumeration getHeaderNames() {\n\t\t\treturn null;\n\t\t}",
"public List<Map<String, Map<String, Object>>> getHeader(){\n return headerDescription;\n }",
"public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}",
"@Override\n public List<MetadataCorrelationHeader> getCorrelationHeaders()\n {\n if (correlationHeaders == null)\n {\n return null;\n }\n else if (correlationHeaders.isEmpty())\n {\n return null;\n }\n\n return correlationHeaders;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return (mHeaders != null && mHeaders.size() > 3) ? mHeaders : NetworkUtils.this.getHeaders();\n }",
"@Override\r\n public String[] headers() {\n return new String[]{\"فاکتور\", \"تاریخ\", \"شناسه مخاطب\", \"نام مخاطب\", \"نوع\", \"شناسه کالا\", \"شرح کالا\", \"مقدار کل\", \"واحد\", \"فی\", \"مقدار جزء\", \"مبلغ کل\", \"مانده\"};\r\n }",
"public Map<String, List<String>> getInitialHeaders() {\n return mInitialHeaders;\n }",
"public\t ContactList getContactHeaders()\n { return (ContactList) this.getSIPHeaderList(ContactHeader.NAME); }",
"public String getHeaderNames(){return header.namesText;}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"public HttpHeaders getHeaders()\r\n/* 63: */ {\r\n/* 64: 93 */ if (this.headers == null)\r\n/* 65: */ {\r\n/* 66: 94 */ this.headers = new HttpHeaders();\r\n/* 67: */ Enumeration headerValues;\r\n/* 68: 95 */ for (Enumeration headerNames = this.servletRequest.getHeaderNames(); headerNames.hasMoreElements(); \r\n/* 69: 98 */ headerValues.hasMoreElements())\r\n/* 70: */ {\r\n/* 71: 96 */ String headerName = (String)headerNames.nextElement();\r\n/* 72: 97 */ headerValues = this.servletRequest.getHeaders(headerName);\r\n/* 73: 98 */ continue;\r\n/* 74: 99 */ String headerValue = (String)headerValues.nextElement();\r\n/* 75:100 */ this.headers.add(headerName, headerValue);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:104 */ return this.headers;\r\n/* 79: */ }",
"public Enumeration getMatchingHeaders(String[] names) throws MessagingException {\n/* 464 */ if (this.headers == null)\n/* 465 */ loadHeaders(); \n/* 466 */ return this.headers.getMatchingHeaders(names);\n/* */ }",
"public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}",
"List<? extends Header> getHeaders(String name);",
"Map<String, String> getRequestHeaders();",
"public Map<String, Header> getHeaderMap() {\n return headerMap;\n }",
"public String[] getNewMessageHeaders(javax.mail.Folder folder)\n throws ResourceException {\n try {\n return store.getNewMessageHeaders(folder);\n } catch (Exception e) {\n logger.warning(\"ManagedConnectionImpl::getNewMessageHeaders threw exception: \"\n + e);\n throw new ResourceException(e.getMessage());\n }\n }",
"private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }",
"public ListIterator getHeaderNames() {\n ListIterator li = this.headers.listIterator();\n LinkedList retval = new LinkedList();\n while (li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader) li.next();\n String name = sipHeader.getName();\n retval.add(name);\n }\n return retval.listIterator();\n }",
"public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }",
"public List<String> getHeader(String key) {\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders.get(key);\n }",
"public String getHeader();",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"public String getHeader() {\n\t\treturn header.toString();\n\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }",
"protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public Map<String, List<String>> getResponseHeaders() {\n return responseHeaders == null ? Collections.EMPTY_MAP : responseHeaders;\n }",
"@Override\n\t\tpublic Enumeration getHeaders(String name) {\n\t\t\treturn null;\n\t\t}",
"private String receiveHeaders (SelectionKey clientKey)\r\n {\r\n // Local Variable Declaration \r\n int bytesRead = 0; byte[] trimedHeader;\r\n String rawHeaders = null; SocketChannel clientSC; \r\n \r\n try \r\n {\r\n // Get the socket channel from the key passed \r\n clientSC = (SocketChannel)clientKey.channel();\r\n\r\n // Clear the buffer before each read\r\n headerBuff.clear();\r\n\r\n // Read the header in from the socket channel\r\n bytesRead = clientSC.read(headerBuff);\r\n\r\n // Initialize the header byte array to the amount of bytes read\r\n trimedHeader = new byte[bytesRead];\r\n\r\n // Trim off any white space \r\n System.arraycopy(headerBuff.array(), 0, trimedHeader, 0, bytesRead);\r\n\r\n // Convert bytes to String for parsing \r\n rawHeaders = new String(trimedHeader, Charset.forName(\"UTF-8\"));\r\n\r\n // Trim trailing whitespace \r\n rawHeaders = rawHeaders.trim();\r\n }\r\n catch(IOException ioe)\r\n {\r\n ioe.printStackTrace();\r\n }\r\n finally\r\n {\r\n return rawHeaders;\r\n }\r\n }",
"public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException {\n/* 518 */ if (this.headers == null)\n/* 519 */ loadHeaders(); \n/* 520 */ return this.headers.getMatchingHeaderLines(names);\n/* */ }",
"java.lang.String getHeader();",
"public abstract HttpHeaders headers();",
"@Override\n public Object[] getSections() {\n return sectionHeaders;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }"
]
| [
"0.7534119",
"0.74871635",
"0.74350786",
"0.7421309",
"0.73227185",
"0.7308822",
"0.72945064",
"0.7268006",
"0.7255091",
"0.72054166",
"0.7201472",
"0.7189577",
"0.71199125",
"0.71178144",
"0.70663667",
"0.70545405",
"0.70516497",
"0.70101094",
"0.7010092",
"0.69935",
"0.6988736",
"0.6925025",
"0.6923034",
"0.6911729",
"0.6907549",
"0.68815625",
"0.6864804",
"0.6842684",
"0.6794382",
"0.6792856",
"0.6775709",
"0.66937345",
"0.6667573",
"0.6667573",
"0.66651684",
"0.6647763",
"0.6643439",
"0.6616181",
"0.6610236",
"0.6577779",
"0.6576159",
"0.6574083",
"0.6569788",
"0.65639883",
"0.6560178",
"0.65319496",
"0.6525006",
"0.6463161",
"0.64578754",
"0.64358205",
"0.6422535",
"0.6416388",
"0.6410847",
"0.6381601",
"0.6349121",
"0.6330971",
"0.6329228",
"0.63211906",
"0.629742",
"0.62557095",
"0.62431574",
"0.6232804",
"0.62302005",
"0.62254286",
"0.6218745",
"0.61712444",
"0.6164195",
"0.6160299",
"0.61435694",
"0.61423945",
"0.6141532",
"0.6141532",
"0.6139267",
"0.6116702",
"0.61144286",
"0.6096049",
"0.6092275",
"0.6092248",
"0.60869324",
"0.6086257",
"0.6077601",
"0.6048329",
"0.60077786",
"0.6006869",
"0.6001533",
"0.59985685",
"0.5980541",
"0.5956651",
"0.5944169",
"0.5944169",
"0.59438735",
"0.5934304",
"0.59190845",
"0.591013",
"0.5897529",
"0.58807904",
"0.58714765",
"0.586401",
"0.586401",
"0.586401"
]
| 0.65856284 | 39 |
SET PHASE ACCORDING TO HEALTH: | @Override
public void update(float delta) {
if (health>Boss.bossHealth * 0.75) phase = 1;
if (health<=Boss.bossHealth * 0.75) phase = 2;
if (health<=Boss.bossHealth * 0.5) phase = 3;
if (health<=Boss.bossHealth * 0.25) phase = 4;
updatePositions(delta);
this.landmines.trimToSize();
this.bulletArray.trimToSize();
if (!this.isPositioned){
this.positionSelf(delta);
}else{
if (phase == 1){
moveSelf(delta);
fireBullet(delta);
shootLandmines(delta);
}
if (phase == 2){
moveSelf(delta);
fireBullet(delta);
shootLandmines(delta);
shootLaser(delta);
}
if (phase == 3){
clearLaser();
moveSelf(delta);
shootLandmines(delta);
spawnMinions(delta);
}
if (phase == 4){
moveSelf(delta);
fireBullet(delta);
shootLandmines(delta);
shootLaser(delta);
spawnMinions(delta);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void reinforcementPhase(Player p) \n\t{\n\t\tint armyNum = map.calculateArmyNum(p);\n\t\tp.setArmies(armyNum);\n\t\tp.reinforce();\n\t}",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"private void coins_a1Y(){\n\t\tthis.cube[49] = this.cube[42]; \n\t\tthis.cube[42] = this.cube[18];\n\t\tthis.cube[18] = this.cube[11];\n\t\tthis.cube[11] = this.cube[35];\n\t\tthis.cube[35] = this.cube[49];\n\t}",
"private void coins_a1R(){\n\t\tthis.cube[13] = this.cube[51]; \n\t\tthis.cube[51] = this.cube[20];\n\t\tthis.cube[20] = this.cube[2];\n\t\tthis.cube[2] = this.cube[29];\n\t\tthis.cube[29] = this.cube[13];\n\t}",
"private void coins_a1O(){\n\t\tthis.cube[40] = this.cube[6]; \n\t\tthis.cube[6] = this.cube[24];\n\t\tthis.cube[24] = this.cube[47];\n\t\tthis.cube[47] = this.cube[33];\n\t\tthis.cube[33] = this.cube[40];\n\t}",
"private void coins_a1G(){\n\t\tthis.cube[31] = this.cube[17]; \n\t\tthis.cube[17] = this.cube[8];\n\t\tthis.cube[8] = this.cube[44];\n\t\tthis.cube[44] = this.cube[53];\n\t\tthis.cube[53] = this.cube[31];\n\t}",
"public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}",
"private void coins_a2Y(){\n\t\tthis.cube[49] = this.cube[44]; \n\t\tthis.cube[44] = this.cube[24];\n\t\tthis.cube[24] = this.cube[9];\n\t\tthis.cube[9] = this.cube[29];\n\t\tthis.cube[29] = this.cube[49];\n\t}",
"@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }",
"private void coins_a1W(){\n\t\tthis.cube[4] = this.cube[15]; \n\t\tthis.cube[15] = this.cube[26];\n\t\tthis.cube[26] = this.cube[38];\n\t\tthis.cube[38] = this.cube[27];\n\t\tthis.cube[27] = this.cube[4];\n\t}",
"private void coins_a2G(){\n\t\tthis.cube[31] = this.cube[11]; \n\t\tthis.cube[11] = this.cube[2];\n\t\tthis.cube[2] = this.cube[38];\n\t\tthis.cube[38] = this.cube[47];\n\t\tthis.cube[47] = this.cube[31];\n\t}",
"@Override\n public void toTurnPhase() {\n changePhase(new TurnPhase());\n }",
"public void setPhase(int phase) {\n this.phase = phase;\n }",
"private void coins_a2R(){\n\t\tthis.cube[13] = this.cube[53]; \n\t\tthis.cube[53] = this.cube[18];\n\t\tthis.cube[18] = this.cube[0];\n\t\tthis.cube[0] = this.cube[27];\n\t\tthis.cube[27] = this.cube[13];\n\t}",
"private void coins_a2W(){\n\t\tthis.cube[4] = this.cube[17]; \n\t\tthis.cube[17] = this.cube[20];\n\t\tthis.cube[20] = this.cube[36];\n\t\tthis.cube[36] = this.cube[33];\n\t\tthis.cube[33] = this.cube[4];\n\t}",
"private void coins_a2O(){\n\t\tthis.cube[40] = this.cube[8]; \n\t\tthis.cube[8] = this.cube[26];\n\t\tthis.cube[26] = this.cube[45];\n\t\tthis.cube[45] = this.cube[35];\n\t\tthis.cube[35] = this.cube[40];\n\t}",
"private void coins_a1B(){\n\t\tthis.cube[22] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[45];\n\t\tthis.cube[45] = this.cube[36];\n\t\tthis.cube[36] = this.cube[0];\n\t\tthis.cube[0] = this.cube[22];\n\t}",
"public void setPhase(Integer phase) {\n this.phase = phase;\n }",
"private void setNPCInitialHeading()\n {\n float alpha = (float) (Math.PI/2 - Math.atan2(end.getZ()-begin.getZ(), end.getX()-begin.getX()));\n npc.setAngle(alpha);\n npc.setSpeed(NPC.walkSpeed);//this automatically sets the \"walk\" anim so no need for this line:\n //npc.setAnimation(\"walk\");\n npc.setHeadingUpdateTime();\n }",
"public void setState (int philosphoer, String state){\n currentState[philosphoer] = state;\n }",
"public void setPhase(String newPhase,Player newPlayer) {\n\t\tthis.phase = newPhase;\n\t\tthis.p = newPlayer;\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t\tthis.action=\"\";\t//Cleaning up the previous action after it has been displayed\n\t}",
"@Override\n protected void inhabitAgent(int nodeId,int time)\n {\n this.goals.put(nodeId,new Pair<>(time,getAgent()));\n updateNode(nodeId,time);\n }",
"private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}",
"private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}",
"private void coins_a2B(){\n\t\tthis.cube[22] = this.cube[15]; \n\t\tthis.cube[15] = this.cube[51];\n\t\tthis.cube[51] = this.cube[42];\n\t\tthis.cube[42] = this.cube[6];\n\t\tthis.cube[6] = this.cube[22];\n\t}",
"public void succeededChallenge() {\n int point = players.get(indexOfActivePlayer).getPoint();\n int pointToAdd = categories.get(indexOfActiveCategory).getActiveChallengePoint();\n point += pointToAdd;\n players.get(indexOfActivePlayer).setPoint(point);\n addGameRound(true);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public void addPenaltiTeamA(View view) {\n penaltiTeamA = penaltiTeamA + 1;\n displayPenaltiTeamA(penaltiTeamA);\n }",
"@Override\n public void challengeMode() {\n super.setHP(2100);\n super.getFrontAttack().setBaseDamage(43.75);\n super.getRightAttack().setBaseDamage(43.75);\n super.getBackAttack().setBaseDamage(43.75);\n super.getBackAttack().setMainStatus(new Bleed(0.7));\n super.getBackAttack().setDescription(\"The Jyuratodus uses the razor fin on its tail to slice the area \" +\n \"behind it while flinging mud to the sides!\");\n super.getLeftAttack().setBaseDamage(43.75);\n }",
"private ExonPhase determinePhase(int _bound)\n\t{\n\t\tswitch(_bound % 3)\n\t\t{\n\t\tcase 0:\n\t\t\treturn ExonPhase.PHASE0;\n\t\tcase 1:\n\t\t\treturn ExonPhase.PHASE1;\n\t\tdefault:\n\t\t\treturn ExonPhase.PHASE2;\n\t\t}\n\t}",
"private void setArmorPoint (int arm)\r\n {\r\n if (arm < 1 || arm >25)\r\n {\r\n armorPoint = 1;\r\n }\r\n else\r\n {\r\n armorPoint = arm;\r\n }\r\n }",
"private void coins_fO(){\n\t\tthis.cube[40] = this.cube[36]; \n\t\tthis.cube[36] = this.cube[42];\n\t\tthis.cube[42] = this.cube[44];\n\t\tthis.cube[44] = this.cube[38];\n\t\tthis.cube[38] = this.cube[40];\n\t}",
"@Override\n public void pp(){\n PP=3+2*nivel;\n }",
"private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}",
"void Death(){\r\n if (vie==0){\r\n this.plateau[this.x][this.y]='0';\r\n }\r\n }",
"protected void interact(DiscreteCoordinates coor)\n {\n boolean nearGate = ((SuperPacmanArea)this.getOwnerArea()).voisinageGate(this);\n\n if ( !nearGate && this.getScared() && !this.getAwayPath() )\n {\n this.setAwayPath(true);\n this.setFoundPacman(true);\n this.setTargetPos(this.getScared(), this.getFoundPacman(), coor);\n }\n else if(!nearGate && !this.getScared())\n {\n this.setFoundPacman(true);\n this.setTargetPos(this.getScared(), this.getFoundPacman(), coor);\n }\n this.setFoundPacman(false);\n }",
"public void setHomeScore(int h);",
"void setTurn(int turn);",
"public static void setClockHandPosition(int chp){\n\t\tclockHandPosition = chp;\n\t}",
"private void coins_fG(){\n\t\tthis.cube[31] = this.cube[27]; \n\t\tthis.cube[27] = this.cube[33];\n\t\tthis.cube[33] = this.cube[35];\n\t\tthis.cube[35] = this.cube[29];\n\t\tthis.cube[29] = this.cube[31];\n\t}",
"public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }",
"void setPhaseStatus(GeneralStatus phaseStatus);",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\r\n\t\tkey = e.getKeyCode();\r\n\t\t\r\n\t\t//up arrow\r\n\t\tif (key == KeyEvent.VK_UP) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn = (\"up\");\r\n\t\t}\r\n\t\t//down arrow\r\n\t\tif (key == KeyEvent.VK_DOWN) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"down\");\r\n\t\t}\r\n\t\t//left arrow\r\n\t\tif (key == KeyEvent.VK_LEFT) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"left\");\r\n\t\t}\r\n\t\t//right arrow\r\n\t\tif (key == KeyEvent.VK_RIGHT) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"right\");\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void ControlType1(int time) {\n\t\tif (GameEngine.isKeyHeld(\"D\")) {\n\t\t\tgraphic.setX(graphic.getX() + speed * time);\n\t\t\tgraphic.setDirection(0);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"A\")) {\n\t\t\tgraphic.setX(graphic.getX() - speed * time);\n\t\t\tgraphic.setDirection((float)Math.PI);\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"S\")) {\n\t\t\tgraphic.setY(graphic.getY() + speed * time);\n\t\t\tgraphic.setDirection((float)(Math.PI / 2));\n\t\t}\n\t\tif (GameEngine.isKeyHeld(\"W\")) {\n\t\t\tgraphic.setY(graphic.getY() - speed * time);\n\t\t\tgraphic.setDirection((float)((Math.PI * 3) / 2));\n\t\t}\n\t\t//SET HERO facing WASD direction\n\t}",
"void changeCadence(int newValue);",
"public void action(){\n turn.sendMsg(turn.getController().getTurnOwner().getName()+\"'s turn!\");\n if(turn.getPlayer().isDown()){\n turn.setPhase(new RecoveryPhase());\n }else {\n turn.setPhase(new StarsPhase());\n }\n }",
"@Override\r\n public void placeArmy(Integer reinforcementArmy) {\r\n\r\n Integer currentPlayerID = playerID;\r\n HashSet<String> conqueredCountryByThisPlayer = gameData.gameMap.getConqueredCountries(currentPlayerID);\r\n\r\n System.out.println();\r\n System.out.println(\"**** Reinforcement Phase Begins for player \" + this.playerName + \"..****\\n\");\r\n\r\n String strongestCountry = \"\";\r\n Integer strongestCountryArmyCount = Integer.MIN_VALUE;\r\n Integer currentCountryArmyCount = 0;\r\n for(String country: conqueredCountryByThisPlayer){\r\n currentCountryArmyCount = gameData.gameMap.getCountry(country).getCountryArmyCount();\r\n if(strongestCountryArmyCount < currentCountryArmyCount){\r\n strongestCountry = country;\r\n strongestCountryArmyCount = currentCountryArmyCount;\r\n }\r\n }\r\n gameData.gameMap.getCountry(strongestCountry).addArmy(reinforcementArmy);\r\n System.out.println(\"\\nReinforcement is done for player \"+playerName+\". Here is an overview. \\n\");\r\n for(String country: conqueredCountryByThisPlayer){\r\n System.out.println(\"Country: \"+country+\", Army Count: \"+gameData.gameMap.getCountry(country).getCountryArmyCount());\r\n }\r\n }",
"@Override\n\tpublic void definePosicaoArma(double ang,double startX,double startY) {\n\t\tangulo=(ang);\n\t\tX=(startX);\n\t\tY=(startY);\n\n\t}",
"public void phaseOutMovement() {\n inertia_y();\n inertia_x();\n }",
"public void ascend() {\n \t\n elevator1.set(0.9);\n elevator2.set(0.9); \n }",
"@Override\n\tpublic void changeTurn() {\n\t\t\n\t}",
"public void accusation() {\n\t\tNotebook notebook = turnController.getData().getCurrentTurn()\n\t\t\t\t.getPlayer().getNotebook();\n\t\tCard room = notebook.getViableCards(Card.Type.ROOM).get(0);\n\t\tCard suspect = notebook.getViableCards(Card.Type.SUSPECT).get(0);\n\t\tCard weapon = notebook.getViableCards(Card.Type.WEAPON).get(0);\n\n\t\tturnController.makeAccusation(room, suspect, weapon);\n\t}",
"private void coins_fY(){\n\t\tthis.cube[49] = this.cube[45]; \n\t\tthis.cube[45] = this.cube[51];\n\t\tthis.cube[51] = this.cube[53];\n\t\tthis.cube[53] = this.cube[47];\n\t\tthis.cube[47] = this.cube[49];\n\t}",
"public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}",
"public void setGoal(Point point) {\n mGoal = point;\n }",
"protected void serverAiStep() {\n/* 539 */ super.serverAiStep();\n/* 540 */ updateSwingTime();\n/* */ \n/* 542 */ this.yHeadRot = this.yRot;\n/* */ }",
"public void addPointForTeamA(View view) {\n teamA_score = teamA_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }",
"private void setupPhase() {\n ClickObserver.getInstance().setTerrainFlag(\"Setup: SelectStartTerrain\");\n for (final Player p : playerList) {\n \t\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n // Cover all terrains, uncover starting pos ones\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getRackGui().setOwner(player);\n \tBoard.applyCovers();\n \tfor (Coord spot : startingPos) {\n \t\tif (!Board.getTerrainWithCoord(spot).isOccupied())\n \t\t\tBoard.getTerrainWithCoord(spot).uncover();\n \t}\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select a valid hex to start your kingdom.\");\n }\n });\n while( isPaused ){\n int num = p.getHexesOwned().size();\n if( num == 1 ){\n unPause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tPlayerBoard.getInstance().updateGold(player);\n }\n });\n System.out.println(\"done\");\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n pause();\n \n // Now that all players have selected starting spots, flip over all terrains\n // *Note: Not sure I understand the rules with regards to this, but I think this is right\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t Board.showTerrains();\n Board.removeBadWaters();\n }\n });\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n \n // Check if player has at least two land hexes around starting spot\n for( final Player p : playerList ) {\n this.player = p;\n\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(p.getName() \n + \", select a water hex to replace with from deck\");\n Board.removeBadAdjWaters();\n }\n });\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n\n player.flipAllDown();\n }\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\t\tTileDeck.getInstance().slideOut();\n }\n });\n\n \n // next prompt each player to select an adjacent hex\n ClickObserver.getInstance().setTerrainFlag(\"Setup: SelectTerrain\");\n // loop 2 times so each player adds 2 more hexes\n for( int i=0; i<2; i++ ){\n for( final Player p : playerList ) {\n this.player = p;\n\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n final ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.applyCovers();\n }\n });\n \tfor (Terrain t1 : ownedHexes) {\n \t\tIterator<Coord> keySetIterator = Board.getTerrains().keySet().iterator();\n \twhile(keySetIterator.hasNext()) {\n \t\tCoord key = keySetIterator.next();\n \t\tfinal Terrain t2 = Board.getTerrains().get(key);\n \t\tif (t2.compareTo(t1) == 1 && !t2.isOccupied() && !t2.getType().equals(\"SEA\")) {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\t\tt2.uncover();\n }\n });\n \t\t}\n \t}\n \t}\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getRackGui().setOwner(player);\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select an adjacent hex to add to your kingdom.\");\n }\n });\n // forces the GameLoop thread to wait until unpaused\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n }\n // prompt each player to place their first tower\n ClickObserver.getInstance().setTerrainFlag(\"Construction: ConstructFort\");\n for( final Player p : playerList ) {\n this.player = p;\n \n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.applyCovers();\n GUI.getRackGui().setOwner(player);\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select one of your tiles to place a tower.\");\n }\n });\n \n // sleeps to avoid null pointer (runLater is called before player.getHexesOwned() below)\n try { Thread.sleep(50); } catch( Exception e ){ return; }\n ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n \n for (final Terrain t : ownedHexes) {\n \t\n \tif (t.getOwner().getName().equals(player.getName())) { \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\tt.uncover();\n }\n });\n \t}\n }\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n // allow players to add some or all things to their tiles.\n ClickObserver.getInstance().setTerrainFlag(\"RecruitingThings: PlaceThings\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n }\n });\n for (final Player p : playerList) {\n this.player = p;\n player.flipAllUp();\n doneClicked = false;\n ClickObserver.getInstance().setClickedTerrain(p.getHexesOwned().get(2));\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n GUI.getRackGui().setOwner(player);\n Board.applyCovers();\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName()\n + \", place some or all of your things on a tile you own.\");\n }\n });\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n for (final Terrain t : ownedHexes) {\n \tif (t.getOwner().getName().equals(player.getName())) {\n\t Platform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tt.uncover();\n\t }\n\t });\n \t}\n }\n \n while (isPaused) {\n try { Thread.sleep(100); } catch(Exception e) { return; }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.removeCovers();\n }\n });\n }",
"public void setRayonH(int rayon){\r\n\t\trayonH = rayon;\r\n\t}",
"private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }",
"public void home ()\r\n\t{\r\n\t\tthis.sector = this.head = this.cylinder = 0;\r\n\t}",
"public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"public void addPoint_action()\r\n/* */ {\r\n/* 94 */ this.points_action += 1;\r\n/* */ }",
"public void setHeading() {\n super.setHeading(getPrevious().getHeadingTo(this)); //The absolute angle position that robot needs to face to reach this position\n }",
"public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}",
"public void incrTurn(){\n this.turn++;\n }",
"@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }",
"public void Action(Player p) {\n int x = p.getMoney();\n int a = super.getAmount();\n if (x - a < 0) {\n p.setLoan((a - x) + 1000);\n p.setMoney((a - x) + 1000);\n p.setMoney(-a);\n } else {\n p.setMoney(-a);\n }\n this.JackMoney = a;\n }",
"@Model\n\tprotected double advanceAy() {\n\t\t\n\t\tList<List<List<Object>>> collisions = getCollisions();\n\t\tif ((!noObjectMovementBlocking(collisions.get(3).get(0)) || collisions.get(3).get(1).contains(Feature.ground)\n\t\t\t\t|| (int) getY() <= 0) && !getJustJumped()) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -10;\n\t\t}\n\t}",
"private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"public void init(double dst,double timeGoal){\n if(!started) {\n for (int i = 0; i < this.motors.length; i++) {\n //reset the encoder, change the behaviour, calculate position\n //then set the target position and change the mode\n motors[i].setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motors[i].setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n int pos = motors[i].getCurrentPosition() +(int) ((dst) * MAGIC_NUMBER);\n motors[i].setTargetPosition(pos);\n motors[i].setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n runTime.reset();\n this.timeGoal = timeGoal;\n started = true;\n }\n }",
"@Override\n public void usePIDOutput(double output)\n {\n /* uses additive values to keep it moving forward, but adjusts them based on the output so it can turn while moving straight */\n target.setLeft(this.additiveLeft + output);\n target.setRight(this.additiveRight - output);\n }",
"protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}",
"private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}",
"protected void changePhase(Phase phase) {\n controller.setPhase(phase);\n }",
"private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}",
"public void setTruthChallenge() {\n while (!(getActiveChallenge()).contains(\"Truth\")) {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }\n }",
"public void applyStrategy(){\n\t\tfloat dx, dy;\n\t\t\n\t\tdx = targetCar.getX() - myCar.getX();\n\t\tdy = targetCar.getY() - myCar.getY();\n\t\t\n\t\t// awesome, atan2 handles all the hard parts of arctan calculations\n\t\tint angle = (int)Math.toDegrees( Math.atan2(dx, dy) );\n\t\tmyCar.setHeading( angle );\n\t}",
"public void newTurn() {\r\n\t\tthis.money = 0;\r\n\t\tthis.blackTurns = 1;\r\n\t\tthis.blueTurns = 0;\r\n\t\tthis.purpleTurns = 0;\r\n\t\tthis.brownTurns = 0;\r\n\t\tthis.redTurns = 0;\r\n\t}",
"private void returnPlayerHome(Player player_to_be_eaten)\n {\n player_to_be_eaten.setX_cordinate(player_to_be_eaten.getInitial_x());\n player_to_be_eaten.setY_cordinate(player_to_be_eaten.getInitial_y());\n player_to_be_eaten.setSteps_moved(0);\n }",
"void setCurrentHP(final int newHP);",
"public void incrementPoints(){\n nbPointsMap++;\n if(getNbPointsMap()==getNbPointsMapMax()){\n ConclusionPacman conclusion = new ConclusionPacman(stage,true,nbPoints.get(), this);\n }\n }",
"private void activateTraitByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\t\n\t\tif(AI instanceof GryffindorWizard){\n\t\t\tactivateGryffindorTrait();\n\t\t\t\n\t\t}else if(AI instanceof HufflepuffWizard){\n\t\t\tactivateHufflepuffTrait();\n\t\t\t\n\t\t}else if(AI instanceof SlytherinWizard){\n\t\t\tint randomDirection = (int) (Math.random()*3);\n\t\t\tDirection direction;\n\t\t\tswitch(randomDirection){\n\t\t\tcase 0: direction = Direction.FORWARD; break;\n\t\t\tcase 1: direction = Direction.BACKWARD; break;\n\t\t\tcase 2: direction = Direction.RIGHT; break;\n\t\t\tdefault: direction = Direction.LEFT;\n\t\t\t}\n\t\t\tdirectionsInAction = new ArrayList<Direction>();\n\t\t\tdirectionsInAction.add(direction);\n\t\t\tactivateSlytherinTrait();\n\t\t\n\t\t}else if(AI instanceof RavenclawWizard){\n\t\t\tactivateRavenclawTrait();\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void changePiece() {\n if (piece == 1) {\n piece = 2;\n } else {\n piece = 1;\n }\n //System.out.println(\"Nu ben ik piece \" + piece);\n }",
"private void coins_fW(){\n\t\tthis.cube[4] = this.cube[0]; \n\t\tthis.cube[0] = this.cube[6];\n\t\tthis.cube[6] = this.cube[8];\n\t\tthis.cube[8] = this.cube[2];\n\t\tthis.cube[2] = this.cube[4];\n\t}",
"public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }",
"public void turnOn(int x, int y);",
"public void setAwayScore(int a);",
"public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSystem.out.println(\"Gained 2 experience.\");\t\r\n\t}",
"private void coins_fB(){\n\t\tthis.cube[22] = this.cube[18]; \n\t\tthis.cube[18] = this.cube[24];\n\t\tthis.cube[24] = this.cube[26];\n\t\tthis.cube[26] = this.cube[20];\n\t\tthis.cube[20] = this.cube[22];\n\t}",
"public static void changePersonToPlay()\n {\n if (person_to_play == 1)\n {\n person_to_play = 2;\n }\n else if (person_to_play == 2)\n {\n person_to_play = 3;\n }\n else if (person_to_play == 3)\n {\n person_to_play = 4;\n }\n else if (person_to_play == 4)\n {\n person_to_play = 1;\n }\n }",
"public void autoScoreBottomCenterPeg() {\n getRobotDrive().goForward(-.5); //Speed at which to back up\n Timer.delay(1); //Time to continue backing up\n getRobotDrive().stop(); //Stop backing up\n arm.armJag.set(.4); //Speed to lower arm *may need to be inverted*\n Timer.delay(.5); //Time to lower arm\n arm.grabTube(true); //Opens the claw to release Ub3r Tube\n getRobotDrive().goForward(-.5); //Speed at which to back up again\n arm.armJag.set(.3); //Lowers arm safely to ground.\n\n }",
"@Override\n public void setSetpoint(double setpoint) {\n if (getController() != null) {\n getController().setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }\n super.setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }",
"protected void startChipsChallenge() {\n\t\tgameScene.setOnKeyPressed(new EventHandler<KeyEvent>(){\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent ke) {\n\t\t\t\tswitch(ke.getCode()) {\n\t\t\t\t\tcase RIGHT:\n\t\t\t\t\t\tchip.move(Direction.EAST);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LEFT:\n\t\t\t\t\t\tchip.move(Direction.WEST);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase UP:\n\t\t\t\t\t\tchip.move(Direction.NORTH);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DOWN:\n\t\t\t\t\t\tchip.move(Direction.SOUTH);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R:\n\t\t\t\t\t\trestart();\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t});\n\t}",
"private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}",
"public void turn()\n {\n turn(90);\n }",
"@Test\n public void testSetHealthPoint() throws Exception {\n n1=10;\n n2=20;\n playerHuman.setHealthPoint(n1);\n playerIA.setHealthPoint(n2);\n org.junit.Assert.assertEquals(n1, playerHuman.getHealthPoint());\n org.junit.Assert.assertEquals(n2, playerIA.getHealthPoint());\n }",
"private void coins_fR(){\n\t\tthis.cube[13] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[15];\n\t\tthis.cube[15] = this.cube[17];\n\t\tthis.cube[17] = this.cube[11];\n\t\tthis.cube[11] = this.cube[13];\n\t}"
]
| [
"0.6177645",
"0.57558346",
"0.5729813",
"0.57286584",
"0.5725019",
"0.5692128",
"0.56905967",
"0.5685931",
"0.5675353",
"0.5660797",
"0.5656514",
"0.56543726",
"0.5631148",
"0.55983746",
"0.5561752",
"0.5558167",
"0.55181044",
"0.5466789",
"0.5454479",
"0.5403021",
"0.5380089",
"0.5379793",
"0.5338203",
"0.53327656",
"0.53284043",
"0.5262723",
"0.52506804",
"0.5244204",
"0.524139",
"0.52309734",
"0.5228819",
"0.5219257",
"0.52152854",
"0.5205305",
"0.5204758",
"0.52023244",
"0.5195673",
"0.5192934",
"0.5180813",
"0.51772666",
"0.51637244",
"0.51486975",
"0.51449054",
"0.5144487",
"0.51210964",
"0.5119187",
"0.5111989",
"0.5102345",
"0.50964373",
"0.5092267",
"0.5088422",
"0.5088238",
"0.5087218",
"0.50868136",
"0.507644",
"0.50733525",
"0.506097",
"0.50492936",
"0.5043456",
"0.50338876",
"0.50261074",
"0.50252",
"0.5018914",
"0.5013802",
"0.5012729",
"0.50057197",
"0.49975696",
"0.49975023",
"0.4997111",
"0.49963352",
"0.4996185",
"0.49958304",
"0.49919724",
"0.49893364",
"0.49884534",
"0.49868864",
"0.49867845",
"0.49786338",
"0.49779072",
"0.4977726",
"0.49776855",
"0.49747333",
"0.49728224",
"0.49726504",
"0.49685752",
"0.49664026",
"0.49595955",
"0.4959399",
"0.49579108",
"0.4956472",
"0.4951825",
"0.49465147",
"0.4946134",
"0.49422756",
"0.4940302",
"0.49331266",
"0.49285105",
"0.49269632",
"0.49235138",
"0.49228367",
"0.49212214"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int lengthOfCurrent = 0;
System.out.println("Enter the string.");
String input = IO.readString();
System.out.println(input);
char[] cArray = input.toCharArray();
int uniqueCharacters = getNumUniqueCharacters(cArray);
int index = 0;
String[] letters = new String[uniqueCharacters];
if(input.length() > 1){
for(int i = 0; i < input.length(); i++){
if(i == 0){
letters[index] = Character.toString(cArray[i]);
index++;
//System.out.println(letters[index]);
}
else if(cArray[i] != cArray[i-1]){
letters[index] = Character.toString(cArray[i]);
index++;
continue;
}
}
}
for(int i = 0; i < letters.length; i++){
System.out.println(letters[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@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 }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@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 }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@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}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
]
| [
"0.72461367",
"0.7201596",
"0.7195268",
"0.7177002",
"0.71069986",
"0.7039653",
"0.70384306",
"0.70115715",
"0.7010647",
"0.69803435",
"0.6945406",
"0.69389313",
"0.6933442",
"0.69172275",
"0.69172275",
"0.6890826",
"0.6883689",
"0.687515",
"0.6874831",
"0.68615955",
"0.68615955",
"0.68615955",
"0.68615955",
"0.68522274",
"0.6846375",
"0.68189865",
"0.68165565",
"0.68124795",
"0.6812267",
"0.6812267",
"0.68056566",
"0.6800461",
"0.6797465",
"0.6790805",
"0.6789039",
"0.6787885",
"0.6782993",
"0.67597246",
"0.67570525",
"0.6747535",
"0.6743268",
"0.6743268",
"0.6740546",
"0.67395175",
"0.67256093",
"0.6723954",
"0.6722248",
"0.6722248",
"0.6720444",
"0.67118156",
"0.6706721",
"0.6704184",
"0.66993994",
"0.66988564",
"0.669681",
"0.66943884",
"0.66860807",
"0.668306",
"0.668306",
"0.6682587",
"0.668012",
"0.6678661",
"0.6676379",
"0.6668044",
"0.66669863",
"0.66628903",
"0.6657356",
"0.6657356",
"0.6657356",
"0.66565585",
"0.665397",
"0.665397",
"0.665397",
"0.66525495",
"0.66518986",
"0.66496557",
"0.6648199",
"0.6646489",
"0.66462386",
"0.6646177",
"0.6645531",
"0.66453475",
"0.66446036",
"0.66438025",
"0.6642411",
"0.6641632",
"0.6638948",
"0.6634394",
"0.66336566",
"0.6632082",
"0.66315377",
"0.66315377",
"0.66315377",
"0.6628936",
"0.6627818",
"0.6627061",
"0.66256744",
"0.6623986",
"0.661993",
"0.6618369",
"0.6618369"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.desconectar) {
pubnub.unsubscribe(CHANNEL);
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.7905288",
"0.7806507",
"0.7767581",
"0.7728288",
"0.76327986",
"0.7622734",
"0.75856835",
"0.7531844",
"0.74890584",
"0.74584335",
"0.74584335",
"0.7439769",
"0.7422939",
"0.7404292",
"0.7392902",
"0.7388083",
"0.73805684",
"0.7371689",
"0.7363277",
"0.73572534",
"0.7346885",
"0.7342883",
"0.73314273",
"0.73297995",
"0.73268855",
"0.73201936",
"0.73177755",
"0.73149055",
"0.73053724",
"0.73053724",
"0.730291",
"0.7299442",
"0.7294618",
"0.72880965",
"0.7284496",
"0.728212",
"0.72798574",
"0.72611254",
"0.72611254",
"0.72611254",
"0.7260998",
"0.7260716",
"0.72512007",
"0.72250247",
"0.7220824",
"0.721851",
"0.72057116",
"0.7201987",
"0.72011137",
"0.7194394",
"0.7186605",
"0.7178953",
"0.7169934",
"0.71687484",
"0.71550834",
"0.7154791",
"0.7137151",
"0.71361125",
"0.71361125",
"0.7130695",
"0.7130134",
"0.7125464",
"0.71246445",
"0.7124545",
"0.7123362",
"0.71184117",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71182",
"0.7117654",
"0.7116174",
"0.71136016",
"0.71110356",
"0.71100533",
"0.71068156",
"0.7101081",
"0.7099488",
"0.7096844",
"0.7094867",
"0.7094867",
"0.708774",
"0.70838696",
"0.7082184",
"0.7081503",
"0.7074928",
"0.7069543",
"0.70631075",
"0.7061777",
"0.70614165",
"0.7052532",
"0.70387715",
"0.70387715",
"0.703725",
"0.70366216",
"0.70366216",
"0.7033842",
"0.703188",
"0.7030853",
"0.70202804"
]
| 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof TDSSystem)) {
return false;
}
TDSSystem other = (TDSSystem) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
]
| [
"0.68954784",
"0.68378097",
"0.6704338",
"0.66405046",
"0.66405046",
"0.6591173",
"0.6577649",
"0.6577649",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.65609664",
"0.65609664",
"0.6543523",
"0.65234846",
"0.6514877",
"0.6486739",
"0.64767367",
"0.642598",
"0.6418224",
"0.6416077",
"0.64008904",
"0.63655996",
"0.6354077",
"0.63503945",
"0.6346775",
"0.6323574",
"0.6318245",
"0.63005674",
"0.6292615",
"0.6292615",
"0.6282184",
"0.6270863",
"0.6265186",
"0.6264375",
"0.62613726",
"0.62583315",
"0.6255373",
"0.6250626",
"0.6246553",
"0.6246553",
"0.6243956",
"0.6238707",
"0.6238707",
"0.6230739",
"0.62232894",
"0.62195456",
"0.62184453",
"0.6210688",
"0.6208303",
"0.6201759",
"0.6200382",
"0.61917084",
"0.6188896",
"0.6188896",
"0.61881596",
"0.61881596",
"0.61881596",
"0.6183394",
"0.6182932",
"0.617465",
"0.6173436",
"0.6166611",
"0.6165045",
"0.61600006",
"0.61568975",
"0.61568975",
"0.61568975",
"0.61568975",
"0.61568975",
"0.61568975",
"0.61568975",
"0.6154626",
"0.6154626",
"0.6141511",
"0.61333525",
"0.61282176",
"0.6126933",
"0.6104891",
"0.61035514",
"0.61035514",
"0.6102866",
"0.6102238",
"0.61013037",
"0.6099772",
"0.6098166",
"0.6093518",
"0.6092529",
"0.6091996",
"0.6091996",
"0.60906154",
"0.6088676",
"0.60753924",
"0.6071486",
"0.60712415",
"0.6069405",
"0.6068963",
"0.6068712"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void draw(Graphics g) {
g.setColor(Color.green);
g.fillRect(getX(), getY(), getWidth(), getHeight());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseClicked(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseEntered(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mousePressed(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseReleased(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
Log.d("InteractableView"," PhysicsBounceBehavior executeFrameWithDeltaTime: " + timeInterval + " minX = " + minPoint.x); | @Override
public void executeFrameWithDeltaTime(float timeInterval, PhysicsObject physicsObject) {
applyLimits();
if (this.minPoint.x == this.target.getTranslationX() && physicsObject.velocity.x < 0.0)
{
float vx = -physicsObject.velocity.x * this.bounce;
float vy = physicsObject.velocity.y;
physicsObject.velocity = new PointF(vx, vy);
doHaptic();
}
if (this.minPoint.y == this.target.getTranslationY() && physicsObject.velocity.y < 0.0)
{
float vx = physicsObject.velocity.x;
float vy = -physicsObject.velocity.y * this.bounce;
physicsObject.velocity = new PointF(vx, vy);
doHaptic();
}
if (this.maxPoint.x == this.target.getTranslationX() && physicsObject.velocity.x > 0.0)
{
float vx = -physicsObject.velocity.x * this.bounce;
float vy = physicsObject.velocity.y;
physicsObject.velocity = new PointF(vx, vy);
doHaptic();
}
if (this.maxPoint.y == this.target.getTranslationY() && physicsObject.velocity.y > 0.0)
{
float vx = physicsObject.velocity.x;
float vy = -physicsObject.velocity.y * this.bounce;
physicsObject.velocity = new PointF(vx, vy);
doHaptic();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean touchMoved(float x, float y) {\n\t\tVector2 tmp = new Vector2(x , y);\n\t\ttmp = body.getWorldVector(tmp);\n\t\tif(hit(x, y) == this) {\n\t\t\tGdx.app.log(Global.APP_TAG, \"x = \" + x + \" tmp.x= \" + tmp.x + \" p.x = \" + body.getPosition().x + \" (x - c.x) = \" + (tmp.x / Global.WORLD_SCALE - body.getPosition().x));\n\t\t\tapplyForceToCenter((x / Global.WORLD_SCALE - width / (2 * Global.WORLD_SCALE)) * 1, 0);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t//if(pressed == true) {\n\t\t\t//Gdx.app.log(Global.APP_TAG, \"x = \" + x + \" tmp.x = \" + tmp.x + \" this.x = \" + this.x);\n\t\t\t//applyForceToCenter(tmp.x - this.x / Global.WORLD_SCALE, 0);\n\t\t}\n\t\t\n\t\treturn super.touchMoved(x, y);\n\t}",
"public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }",
"@Override\n \tpublic void update(double ticksPassed) {\n \t\tdouble dx = this.velocity.getX() * ticksPassed;\n \t\tdouble dy = this.velocity.getY() * ticksPassed;\n \t\t//check boundaries first\n \t\tif ((this.position.getX() + dx) < 0) { //off left\n \t\t\tdx = this.position.getX();\n \t\t\tthis.velocity.setX(0);\n \t\t}\n \t\telse if ((this.position.getX() + dx > App.WIDTH)) { //off right\n \t\t\tdx = (App.WIDTH - this.position.getX());\n \t\t\tthis.velocity.setX(0);\n \t\t}\n \t\tif ((this.position.getY() + dy) < 0) { //off top\n \t\t\tdy = this.position.getY();\n \t\t\tthis.velocity.setY(0);\n \t\t}\n \t\telse if ((this.position.getY() + dy) > App.HEIGHT) { //off bottom\n \t\t\tdy = (App.HEIGHT - this.position.getY());\n \t\t\tthis.velocity.setY(0);\n \t\t}\n \t\tthis.position.setX(this.position.getX() + dx);\n \t\tthis.position.setY(this.position.getY() + dy);\n \t\t//move the hitbox too\n \t\tthis.hitBox.move(dx, dy);\n \t\t//slow velocity due to drag\n \t\tdouble xDrag = this.drag * ticksPassed *\n \t\t\tMath.abs(this.direction.getX());\n \t\tdouble yDrag = this.drag * ticksPassed *\n \t\t\tMath.abs(this.direction.getY());\n \t\tdx = (this.velocity.getX() > 0) ?\n \t\t\t-Math.min(xDrag, this.velocity.getX()) :\n \t\t\tMath.min(xDrag, -this.velocity.getX());\n \t\tdy = (this.velocity.getY() > 0) ?\n \t\t\t-Math.min(yDrag, this.velocity.getY()) :\n \t\t\tMath.min(yDrag, -this.velocity.getY());\n \t\tthis.velocity.setX(this.velocity.getX() + dx);\n \t\tthis.velocity.setY(this.velocity.getY() + dy);\n \t\t//try to face the player\n \t\tDoubleVec2D toPlayer =\n \t\t\tthis.player.getPosition().subtract(this.position);\n \t\tDoubleVec2D toPlayerNorm = toPlayer.normalized();\n\t\t//perpdot = sin_theta, dot = cos_theta, negative y is up\n\t\tdouble angleBetween = -Math.atan2(toPlayerNorm.perpDot(this.direction),\n\t\t\t\ttoPlayerNorm.dot(this.direction));\n \t\tdouble rot = (angleBetween > 0) ? \n \t\t\t\tMath.min(this.maxRot, angleBetween) * ticksPassed:\n \t\t\t\tMath.max(-this.maxRot, angleBetween) * ticksPassed;\n \t\tdouble cosTheta = Math.cos(rot);\n \t\tdouble sinTheta = Math.sin(rot);\n \t\tdouble xPrime = (this.direction.getX() * cosTheta) - \n \t\t\t(this.direction.getY() * sinTheta);\n \t\tdouble yPrime = (this.direction.getX() * sinTheta) + \n \t\t\t(this.direction.getY() * cosTheta);\n \t\tthis.direction = new DoubleVec2D(xPrime, yPrime);\n \t\t//modify velocity for controls\n \t\t//TODO maybe modify for angle from player\n \t\tdx = this.direction.getX() * this.acceleration * ticksPassed;\n \t\tdy = this.direction.getY() * this.acceleration * ticksPassed;\n \t\tif (toPlayer.magnitude() > 1.0) {\n \t\t\tthis.velocity.setX(this.velocity.getX() + dx);\n \t\t\tthis.velocity.setY(this.velocity.getY() + dy);\n \t\t}\n \t\t//spawn bullet, considering cooldown\n \t\t//only shoot when facing the player and near the player\n \t\tthis.ticksSinceBullet += ticksPassed;\n \t\tif ((Math.abs(angleBetween) < this.maxAngleToFire) &&\n \t\t\t\t(Math.abs(toPlayer.magnitude()) < this.maxDistanceToFire) &&\n \t\t\t\t(this.ticksSinceBullet >= this.bulletCooldown)) {\n \t\t\tDoubleVec2D position = new DoubleVec2D(this.position.getX(),\n \t\t\t\t\tthis.position.getY());\n \t\t\tDoubleVec2D direction = new DoubleVec2D(this.direction.getX(),\n \t\t\t\t\tthis.direction.getY());\n \t\t\tthis.firedBullet = new Bullet(position, direction, false);\n \t\t\tthis.ticksSinceBullet = 0;\n \t\t}\n \t}",
"private void updateBit() {\r\n float frameTime = 10f;\r\n xVel += (xAccel * frameTime);\r\n yVel += (yAccel * frameTime);\r\n\r\n float xS = (xVel / 20) * frameTime; //PROVIDE THE ANGULE OF THE POSITION\r\n float yS = (yVel / 20) * frameTime; // WITH LESS DENOMINADOR THE BALL MOVE IS MORE DIFFICULT\r\n\r\n xPos -= xS;\r\n yPos -= yS;\r\n\r\n if (xPos > xMax) {\r\n xPos = xMax;\r\n } else if (xPos < 0) {\r\n xPos = 0;\r\n }\r\n\r\n if (yPos > yMax) {\r\n yPos = yMax;\r\n } else if (yPos < 0) {\r\n yPos = 0;\r\n }\r\n\r\n\r\n }",
"public float getX(){\n return hitBox.left;\n }",
"public void update()\n {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n if(elapsed>100)\n {\n hard += 20; // increase difficulty\n score = Dynamics.getPosition();\n startTime = System.nanoTime();\n }\n dx = (int)Dynamics.getVelocityX();\n\n animation.update();\n x += dx;\n if(x < 0){\n x = 0;\n } else if (x+width > GamePanel.WIDTH){\n x = GamePanel.WIDTH-width;\n }\n\n }",
"private void bounceOffVerticalWall() {\n vx = -vx;\n }",
"@Override\n public void update() {\n y += velY;\n setRectHitBox();\n }",
"public void updateXPosition(){\r\n if (centerX + speedX <= 60) {\r\n centerX = 60;\r\n }\r\n if(centerX + bg.getBackX() > 4890) {\r\n bg.setBackX(4890-startScrolling);\r\n if(centerX + speedX >= 1500) {\r\n centerX = 1500;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n if(centerX < 1504) {\r\n centerX+=speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n }\r\n else if (speedX < 0) {\r\n centerX += speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n else {\r\n if (centerX <= startScrolling) {\r\n centerX += speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n } else {\r\n background.setPosition((-bg.getBackX ()),0);\r\n }\r\n }\r\n }",
"public float getPosX(){return px;}",
"public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }",
"public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }",
"@Override\n\tpublic void beginContact(Contact c) {\n\t\tGdx.app.log(\"contact listener\", c.getFixtureA().getBody().getUserData()+ \"\");\n\n\t\t\n\n\t\t\tfloat ballCenterY = c.getFixtureB().getBody()\n\t\t\t\t\t.getWorldCenter().y;\n\t\t\tfloat paddleCenterY = c.getFixtureA().getBody()\n\t\t\t\t\t.getWorldCenter().y;\n\t\t\tfloat difference = ballCenterY - paddleCenterY;\n\t\t\tfloat position = difference / 50;\n\t\t\tfloat returnAngel = 70 * position;\n\t\t\t\n\t\t\t\n\t\t\tGdx.app.log(\"returnAngel\",returnAngel+\" lin vol \" + c.getFixtureB().getBody().getLinearVelocity().x +\",\"+c.getFixtureB().getBody().getLinearVelocity().y);\n\t\t\tfloat Xspeed = c.getFixtureB().getBody().getLinearVelocity().x;\t\n\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" ){\n\t\t\t\tif ( c.getFixtureA().getBody().getUserData() == \"paddle1\" || c.getFixtureA().getBody().getUserData() == \"paddle2\"){\n\t\t\t\tXspeed = Xspeed*-1;\n\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\tGdx.app.log(\"returnAngel after new set\",returnAngel+\" lin vol \" + c.getFixtureB().getBody().getLinearVelocity().x +\",\"+c.getFixtureB().getBody().getLinearVelocity().y + \" xSpeed = \"+Xspeed);\n\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"top\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tfloat angel = (180-90-returnAngel)*-1;\n\t\t\t\t\t\n\t\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\t\tGdx.app.log(\"top + ball hit\", \"angel = \" +angel);\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"buttom\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfloat angel = (180-90-returnAngel)*-1;\n\t\t\t\t\n\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\tGdx.app.log(\"top + ball hit\", \"angel = \" +angel);\n\t\t\t\t\n\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"left\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\thandler.setPlayer2ScorePlusOne();\n\t\t\t\tGdx.app.log(\"Score : \", \"player1 :\"+handler.getPlayer1Score()+ \" player2 :\"+handler.getPlayer2Score() );\n\t\t\t\thandler.resetVaribal = true;\n\t\t\t\t\n\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"right\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\thandler.setPlayer1ScorePlusOne();\n\t\t\t\tGdx.app.log(\"Score : \", \"player1 :\"+handler.getPlayer1Score()+ \" player2 :\"+handler.getPlayer2Score() );\n\t\t\t\thandler.resetVaribal = true;\n\t\t\t\t\n\t\t}\n\t\tif(c.getFixtureB().getUserData() == \"paddle1\" && c.getFixtureA().getUserData() == \"buttom\" || c.getFixtureA().getUserData() == \"top\" ){\n\t\t\t}\n\t\t\t\n\t}",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"private void update() {\n if (this.target != null) {\r\n if (this.target.getX() > this.x + this.size / 2\r\n || this.target.getX()\r\n + this.target.getSize() < this.x - this.size / 2) {\r\n this.target = null;\r\n this.firing = false;\r\n }\r\n }\r\n if (this.target != null) {\r\n if (this.target.getY() > this.y + this.size / 2\r\n || this.target.getY() + this.target.getSize()\r\n < this.y - this.size / 2) {\r\n this.target = null;\r\n this.firing = false;\r\n }\r\n }\r\n }",
"public void update(float delta)\n {\n\n x = acceleration.x;\n y = acceleration.y;\n x = x * delta; //to scale by frame rate to keep things smooth\n y = y * delta;\n\n velocity.add(x, y); //sets new velocity\n\n if(velocity.y >350)\n {\n velocity.y = 350;\n //Gdx.app.log(\"Block\", \"MAX SPEED\");\n }\n\n x = velocity.x;\n y = velocity.y;\n x = x * delta;\n y = y * delta;\n\n position.add(x,y); //sets new position\n\n //position.add(velocity.cpy().scl(delta));\n\n rect.set(position.x, position.y, width,height);\n\n if(position.y > gameHeight) //determine if object is still on screen\n {\n isScrolled = true;\n }\n }",
"public void update(float deltaTime) {\n if (creationPoint.y != (int)(GameView.instance.groundLevel - height*3/4) || creationPoint.x != x+width/2){\n creationPoint.x = x+width/2-width/4;\n creationPoint.y = (int)(GameView.instance.groundLevel - height/2)+height/8;\n }\n\n\n if(isStanding) {\n\n /*System.out.println(creationPoint.x);\n System.out.println(GameView.instance.player.position.x);\n System.out.println(GameView.instance.player.position.x-creationPoint.x);\n System.out.println(GameView.instance.cameraSize*attackRange);*/\n\n tax();\n\n\n //=======================================================================================//\n\n //Buildings\n\n //=======================================================================================//\n\n\n grow();\n\n\n // = ======== == ==\n // = = == == ==\n // ===== == ====\n // = = == == ===\n\n if (inRange() && !surrender) {\n countdown+=GameView.instance.fixedDeltaTime;\n //System.out.println(countdown);\n float shootSpeed=4-lv;\n if (countdown > 1000*shootSpeed) {\n\n if (countdown > 1200*shootSpeed && attack == 0) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1400*shootSpeed && attack == 1) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1600*shootSpeed && attack == 2) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown >= 1800*shootSpeed) {\n countdown = 0;\n attack = 0;\n }\n }\n }\n if ((Scene.instance.timeOfDay) / (Scene.instance.dayLength) > 0.6) {\n spawnedNPC = false;\n }\n if(!spawnedNPC) {\n //spawning thief\n if ((townFear > 20 && lv != 0 && (currentGold < maxGold / 2)) || (goldRate < 200 && lv != 0) && Scene.instance.day > 2) {\n GameView.instance.npc_pool.spawnThiefs(x, (int) GameView.instance.groundLevel, 1, this);\n }\n if(!surrender) {\n //spawning dragonslayer\n if (townFear > 30 && lv != 0) {\n GameView.instance.npc_pool.spawnDragonLayers(x, (int) GameView.instance.groundLevel, this);\n }\n\n //spawning wizard\n if (townFear > 35 && lv == 2 && !summonedWizard) {\n GameView.instance.npc_pool.spawnFarmers(x, (int) GameView.instance.groundLevel, this);\n summonedWizard = true;\n }\n }\n spawnedNPC = true;\n }\n\n if(!surrender) {\n if (townFear > surrenderFear) {\n surrender = true;\n flag.setSurrender(surrender);\n SoundEffects.instance.play(SoundEffects.TRIBUTE);\n }\n }\n else {\n if(townFear < surrenderFear/2) {\n surrender = false;\n flag.setSurrender(surrender);\n\n }\n }\n\n\n\n Flagposition(deltaTime);\n }\n else {\n buildingImage = SpriteManager.instance.getBuildingSprite(\"FortressRuin\");\n\n if(beenEmptied == false){\n GoldPool.instance.spawnGold(collider.centerX(), collider.centerY(),Math.min(currentGold,100*(lv+1)) );\n beenEmptied = true;\n }\n townFear = 0;\n }\n\n //==== ===== ===== = == ==== ============================\n //= = == = = = = == = = ============================\n //==== == ===== ===== == ==== ============================\n //= == ===== = = = == = == ============================\n repair(deltaTime);\n\n for(int i = 0; i < currentBuildingsLeft.size(); i++){\n currentBuildingsLeft.get(i).update(deltaTime);\n }\n\n for(int i = 0; i < currentBuildingsRight.size(); i++){\n currentBuildingsRight.get(i).update(deltaTime);\n }\n super.update(deltaTime);\n\n }",
"@Override\n public void onMove(float x, float y) {\n }",
"@Override\n public void doUpdate(float delta) {\n if(cursorPosX > maxItemX)\n {\n cursorPosX = 0;\n }\n if(cursorPosX < 0)\n {\n cursorPosX = maxItemX;\n }\n if(cursorPosY > maxItemY)\n {\n cursorPosY = 0;\n }\n if(cursorPosY < 0)\n {\n cursorPosY = maxItemY;\n }\n cursorPosX = MathUtils.clamp(cursorPosX,0,maxItemX);\n // System.out.println(\"CURSOR X POST: \" + cursorPosX);\n cursorPosY = MathUtils.clamp(cursorPosY,0,maxItemY);\n int tempCursorPos = cursorPosY*maxItemX + cursorPosX + cursorPosY*1; //En etta läggs till om pekaren är på annan rad än första, annars kommer sista item:en i en rad vara samma som första.\n // System.out.println(\"Cursorpos: \" + tempCursorPos + \" X: \" + cursorPosX + \" Y: \" + cursorPosY);\n if(tempCursorPos < OverworldScreen.manager.getPlayer().itemList.size()){\n OverworldScreen.manager.getPlayer().activeItem = OverworldScreen.manager.getPlayer().itemList.get(tempCursorPos);\n }\n }",
"@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\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\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}",
"public void updateOptimalCollisionArea();",
"public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n } \n }else{\n if( (b.getPosX() + b.getSizeX() ) > px - sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n }\n }\n }",
"@Override\n public void act(float delta) {\n super.act(delta);\n if (leftBoundsReached(delta)) {\n resetBounds(false);\n } else if (rightBoundsReached(delta)) {\n resetBounds(true);\n } else {\n updateXBounds(-delta);\n }\n }",
"@Override\n\tpublic void render(float delta) {\n\t\trunTime += delta;\n\t\tgameStage.draw();\n\t\tgameStage.act();\n\t\tgameStage.addAction(Actions.moveBy(-.8f, 0));;\n\t\tmanager.checkCollisions();\n\t\t\n\t}",
"public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // rec center \r\n float rec_center_X = this.p1[0]+extent_X;\r\n float rec_center_Y = this.p1[1]+extent_Y;\r\n \r\n // difference between center : vector D = Vector Cir_center-Rec-center\r\n float d_X =cir_center_X-rec_center_X;\r\n float d_Y = cir_center_Y-rec_center_Y;\r\n \r\n //\r\n float p_X =Support_Lib.clamp(d_X,-extent_X,extent_X);\r\n float p_Y =Support_Lib.clamp(d_Y,-extent_Y,extent_Y);\r\n \r\n\r\n \r\n float closest_point_X = rec_center_X +p_X;\r\n float closest_point_Y = rec_center_Y +p_Y; \r\n \r\n \r\n d_X = closest_point_X -cir_center_X;\r\n d_Y = closest_point_Y -cir_center_Y;\r\n \r\n \r\n \r\n float length = (float)Math.sqrt((d_X*d_X)+(d_Y*d_Y));\r\n \r\n if(length+0.001 <=b.getRadius()){\r\n\r\n \r\n float ratio =(closest_point_X-rec_center_X)/(extent_X*2);\r\n b.accelartion(ratio);\r\n b.updateVelocity(Support_Lib.direction(d_X,d_Y));\r\n \r\n }\r\n \r\n \r\n }",
"public void checkLeftCollision(FloatRect x){\r\n if((int)rect1.left < x.left ) {\r\n centerX -= 6;\r\n }\r\n }",
"private void bounceOffHorizontalWall() {\n vy = -vy;\n }",
"@Override\n synchronized public void run() {\n if (gameBoard.wasCollisionDetected()) {\n Point collisionPoint = gameBoard.getLastCollision();\n if (collisionPoint.x >= 0) {\n dummyText.setText(\"Last Collision XY (\" + Integer.toString(collisionPoint.x) + \",\" + Integer.toString(collisionPoint.y) + \")\");\n score++;\n }\n //turn off the animation until reset gets pressed\n //return;\n }\n frame.removeCallbacks(frameUpdate);\n\n Point playerNewPosition = new Point(gameBoard.getPlayerX(), gameBoard.getPlayerY());\n Point targetNewPosition = new Point(gameBoard.getTargetX(), gameBoard.getTargetY());\n Point obstacle1NewPosition = new Point(gameBoard.getObstacle1X(), gameBoard.getObstacle1Y());\n Point obstacle2NewPosition = new Point(gameBoard.getObstacle2X(), gameBoard.getObstacle2Y());\n\n updatePlayerVelocity();\n playerNewPosition.y = playerNewPosition.y + playerVelocity.y;\n if (playerNewPosition.y > playerMaxY) {\n // return doge to original position if it overshoots\n playerNewPosition.y = playerMaxY;\n performJump = false;\n button.setEnabled(true);\n }\n\n targetNewPosition.x = targetNewPosition.x + targetVelocity.x;\n if (targetNewPosition.x > memeMaxX || targetNewPosition.x < 5) {\n targetVelocity.x *= -1;\n }\n targetNewPosition.y = targetNewPosition.y + targetVelocity.y;\n if (targetNewPosition.y > memeMaxY || targetNewPosition.y < 5) {\n targetVelocity.y *= -1;\n }\n\n obstacle1NewPosition.x = obstacle1NewPosition.x + obstacle1Velocity.x;\n if (obstacle1NewPosition.x > memeMaxX || obstacle1NewPosition.x < 5) {\n obstacle1Velocity.x *= -1;\n }\n obstacle1NewPosition.y = obstacle1NewPosition.y + obstacle1Velocity.y;\n if (obstacle1NewPosition.y > memeMaxY || obstacle1NewPosition.y < 5) {\n obstacle1Velocity.y *= -1;\n }\n\n obstacle2NewPosition.x = obstacle2NewPosition.x + obstacle2Velocity.x;\n if (obstacle2NewPosition.x > memeMaxX || obstacle2NewPosition.x < 5) {\n obstacle2Velocity.x *= -1;\n }\n obstacle2NewPosition.y = obstacle2NewPosition.y + obstacle2Velocity.y;\n if (obstacle2NewPosition.y > memeMaxY || obstacle2NewPosition.y < 5) {\n obstacle2Velocity.y *= -1;\n }\n\n gameBoard.setPlayerPosition(playerNewPosition.x, playerNewPosition.y);\n gameBoard.setTargetPosition(targetNewPosition.x, targetNewPosition.y);\n gameBoard.setObstacle1Position(obstacle1NewPosition.x, obstacle1NewPosition.y);\n gameBoard.setObstacle2Position(obstacle2NewPosition.x, obstacle2NewPosition.y);\n gameBoard.invalidate();\n frame.postDelayed(frameUpdate, getFrameRate());\n }",
"public void collideBoundary() {\n\t\tif (getWorld() == null) return;\n\t\tif (getXCoordinate() < 1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getXCoordinate() > getWorld().getWidth()-1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getYCoordinate() < 1.01 * getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t\tif (getYCoordinate() > getWorld().getHeight()-1.01*getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t}",
"void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }",
"@Override\n\tpublic void collision(Ball ball) {\n PhysicsComponent gadgetPartToCollideWith = this.physicsComponentList.get(0);\n double minTimeUntilCollision = Double.MAX_VALUE;\n for(PhysicsComponent gadgetPart: physicsComponentList){\n double timeUntilCollisionPart = gadgetPart.timeUntilCollision(ball.getBallCircle(), ball.getVelocity());\n if (timeUntilCollisionPart < minTimeUntilCollision){ \n minTimeUntilCollision = timeUntilCollisionPart;\n gadgetPartToCollideWith = gadgetPart;\n }\n }\n Vect newVelocity = gadgetPartToCollideWith.reflect(ball.getBallCircle(), ball.getVelocity(), ball.getCoefficentOfReflection()); \n ball.setVelocity(newVelocity);\n trigger();\n\t}",
"public void startExecuting()\n\t{\n\t\tdouble d0 = this.leapTarget.xCoord - this.entity.posX;\n\t\tdouble d1 = this.leapTarget.zCoord - this.entity.posZ;\n\t\tfloat f = MathHelper.sqrt(d0 * d0 + d1 * d1);\n\t\tthis.entity.motionX += (d0 / (double)f * 0.5D * 0.800000011920929D + this.entity.motionX * 0.20000000298023224D)/2;\n\t\tthis.entity.motionZ += (d1 / (double)f * 0.5D * 0.800000011920929D + this.entity.motionZ * 0.20000000298023224D)/2;\n\t\tthis.entity.motionY = (double)this.leapMotionY;\n\t}",
"@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}",
"@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}",
"void updatePosition() {\n\t\t\n\t\tcoords.x = body.getPosition().x*Simulation.meterToPixel;\n\t\tcoords.y = body.getPosition().y*Simulation.meterToPixel;\n\t\tspeed.x = body.m_linearVelocity.x;\n\t\tspeed.y = body.m_linearVelocity.y;\n\t}",
"public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"@Override\n\tpublic void update() {\n\t\tmouseMove(gm.mouseY);\n\t\tmoveCollider();\n\t}",
"public void onUpdate() {\n/* 150 */ this.prevPosX = this.posX;\n/* 151 */ this.prevPosY = this.posY;\n/* 152 */ this.prevPosZ = this.posZ;\n/* */ \n/* 154 */ if (this.particleAge++ >= this.particleMaxAge)\n/* */ {\n/* 156 */ setDead();\n/* */ }\n/* */ \n/* 159 */ this.motionY -= 0.04D * this.particleGravity;\n/* 160 */ moveEntity(this.motionX, this.motionY, this.motionZ);\n/* 161 */ this.motionX *= 0.9800000190734863D;\n/* 162 */ this.motionY *= 0.9800000190734863D;\n/* 163 */ this.motionZ *= 0.9800000190734863D;\n/* */ \n/* 165 */ if (this.onGround) {\n/* */ \n/* 167 */ this.motionX *= 0.699999988079071D;\n/* 168 */ this.motionZ *= 0.699999988079071D;\n/* */ } \n/* */ }",
"private void circleCollison() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}",
"private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }",
"private void updatePosition() {\n position.add(deltaPosition);\n Vector2[] points = getRotatedPoints();\n\n for (Vector2 point : points) {\n if (point.getX() < bound.getX() || point.getX() > bound.getX() + bound.getWidth()) { //If the point is outside of the bounds because of X\n position.addX(-deltaPosition.getX() * 2); //Undo the move so it is back in bounds\n deltaPosition.setX(-deltaPosition.getX()); //Make the direction it is going bounce to the other direction\n break;\n }\n if (point.getY() < bound.getY() || point.getY() > bound.getY() + bound.getHeight()) { //If the point is outside of the bounds because of Y\n position.addY(-deltaPosition.getY() * 2); //Undo the move so it is back in bounds\n deltaPosition.setY(-deltaPosition.getY()); //Make the direction it is going bounce to the other direction\n break;\n }\n }\n deltaPosition.scale(.98);\n }",
"public void update(float delta)\r\n\t{\n\t\tposition.add(velocity.cpy().scl(delta));\r\n\t\t\t\t\r\n\t\t// Move the rectangle to the new position\r\n\t\tcollisionRect.setPosition(position);\r\n\t\t\r\n\t\tif (position.x + width >= xMax)\r\n\t\t{\r\n\t\t\tsetDirection(Constants.DIRECTION.DOWN_LEFT);\r\n\t\t\tSystem.out.println(\"im moving left!\");\r\n\t\t}\r\n\t\telse if(position.x <= xMin)\r\n\t\t{\r\n\t\t\tsetDirection(Constants.DIRECTION.DOWN_RIGHT);\r\n\t\t\tSystem.out.println(\"im movin right!\");\r\n\t\t}\r\n\t\t\r\n\t\t// If the Scrollable object is no longer visible:\r\n\t\tif (((position.y + height) > 480 + height) || (((position.x + width < 0) || position.x - width > Constants.TRUE_WIDTH))) \r\n\t\t{\r\n\t\t\tisScrolledDown = true;\r\n\t\t}\r\n\t}",
"private void moveTouch(float x, float y) {\n boolean updated = false;\n //Set boundaries\n int maxX = getMaxX();\n int maxY = getMaxY();\n\n\n if(Math.abs(x)>1) {\n if ((xPlacing) >= 0 && (maxX) <= displaySize.x) {\n if(xPlacing + x < 0){\n xPlacing = 0;\n } else if(xPlacing + getTotalWidth(blockSize)+x > displaySize.x){\n xPlacing = displaySize.x - getTotalWidth(blockSize);\n } else {\n xPlacing += x;\n }\n\n } else if(maxX >= displaySize.x && x <0){\n if(maxX + x < displaySize.x){\n xPlacing = displaySize.x - getTotalWidth(blockSize);\n } else {\n xPlacing += x;\n }\n } else if(xPlacing < 0 && x > 0){\n if(xPlacing + x > 0){\n xPlacing = 0;\n } else {\n xPlacing += x;\n }\n }\n updated = true;\n }\n\n if(Math.abs(y)>1){\n if(yPlacing >= 0 && maxY < displaySize.y){\n if(yPlacing + y < 0){\n yPlacing = 0;\n } else if(yPlacing + getTotalHeight(blockSize) + y > displaySize.y){\n yPlacing = displaySize.y - getTotalHeight(blockSize);\n } else {\n yPlacing += y;\n }\n } else if(maxY >= displaySize.y && y <0){\n if(maxY + y < displaySize.y){\n yPlacing = displaySize.y - getTotalHeight(blockSize);\n } else {\n yPlacing += y;\n }\n } else if(yPlacing < 0 && y > 0){\n if(yPlacing + y > 0){\n yPlacing = 0;\n } else {\n yPlacing += y;\n }\n }\n updated = true;\n }\n\n\n /*if(Math.abs(x) > 1) {\n if (xPlacing <= 100 && (xPlacing + x) <= 100) {\n xPlacing += x;\n updated = true;\n }\n }\n\n if(yPlacing <= 100 && (yPlacing+y)<=100 && Math.abs(y) > 1){\n yPlacing += y;\n updated = true;\n }*/\n\n\n /*if(xPlacing >100){\n xPlacing = 100;\n }\n if(yPlacing > 100) {\n yPlacing = 100;\n }*/\n\n if(updated){\n moved = true;\n invalidate();\n }\n\n /*float dx = Math.abs(x - mX);\n float dy = Math.abs(y - mY);\n if (dx >= TOLERANCE || dy >= TOLERANCE) {\n mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);\n mX = x;\n mY = y;\n }*/\n }",
"public void set() {\n if(keyLeft&&keyRight||!keyLeft&&!keyRight){\n xspeed *=0.8;\n }\n else if(keyLeft&&!keyRight) {\n xspeed--;\n }\n else if(keyRight&&!keyLeft){\n xspeed++;\n }\n if (xspeed>0 && xspeed <0.75) xspeed=0;\n if (xspeed<0 && xspeed >-0.75) xspeed=0;\n\n if (xspeed>7) xspeed=7;\n if (xspeed<-7) xspeed=-7;\n\n if(keyUp) {\n hitBox.y++;\n for(Wall wall: panel.walls) {\n if(wall.hitBox.intersects(hitBox)){\n yspeed=-8;\n }\n }\n hitBox.y--;\n }\n\n if (yspeed < 8) yspeed += 0.3;\n\n //Horizontal collisons\n hitBox.x += xspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){ //if on floor\n hitBox.x -= xspeed;//Moves hitbox back to last place\n while(!wall.hitBox.intersects(hitBox)){\n hitBox.x += Math.signum(xspeed);\n }\n hitBox.x -= Math.signum(xspeed); //Moves hitbox to space next to the wall\n panel.cameraX += x - hitBox.x;\n xspeed = 0;\n hitBox.x = x;\n }\n }\n\n //Vertical collisions\n hitBox.y += yspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){\n hitBox.y -= yspeed;\n while(!wall.hitBox.intersects(hitBox)) hitBox.y += Math.signum(yspeed);\n hitBox.y -= Math.signum(yspeed);\n yspeed = 0;\n y = hitBox.y;\n }\n }\n\n panel.cameraX -= xspeed;\n y += yspeed;\n hitBox.x=x;\n hitBox.y=y;\n\n //Death\n if(y>MainFrame.FRAME_HEIGHT+100) panel.reset();\n }",
"public void physics(double rate){\n\t\tfloat nextTop=0;\r\n\t\tif(getContained()==null){\r\n\t\t\tint year=Main.world.timeline.getTerra();\r\n\r\n\t\t\tgx=(int)Math.floor(x);\r\n\t\t\tgy=(int)Math.floor(y);\r\n\t\t\tif(gx<0){\r\n\t\t\t\tgx=0;\r\n\t\t\t}\r\n\t\t\tif(gy<0){\r\n\t\t\t\tgy=0;\r\n\t\t\t}\r\n\t\t\tMain.world.contacts(this);\r\n\t\t\tif(getTopObjects()>0){\r\n\t\t\t\ttop=getTopObjects();\r\n\t\t\t}else{\r\n\t\t\t\ttop=(Main.world.land.getHigh(year,gx,gy));\r\n\t\t\t}\r\n\r\n\t\t\tif(dx<pit){\r\n\t\t\t\tdx=pit;\r\n\t\t\t}\r\n\t\t\tif(dy<pit){\r\n\t\t\t\tdy=pit;\r\n\t\t\t}\r\n\t\t\tfloat mm=Main.level.getStats().getSize()-pit;\r\n\t\t\tif(dx>mm ){\r\n\t\t\t\tdx=mm;\r\n\t\t\t}\r\n\t\t\tif(dy>mm ){\r\n\t\t\t\tdy=mm;\r\n\t\t\t}\r\n\r\n\t\t\tnextTop=Main.world.land.getHigh(year,(int)Math.floor(dx), (int)Math.floor(dy));\r\n\t\t}else{\r\n\t\t\tfloat smx=getContained().boundsx;\r\n\t\t\tfloat smy=getContained().boundsy;\r\n\t\t\tfloat emx=getContained().boundex;\r\n\t\t\tfloat emy=getContained().boundey;\r\n\r\n\t\t\tif(dx<smx){\r\n\t\t\t\tdx=smx;\r\n\t\t\t}else if(dx>emx){\r\n\t\t\t\tdx=emx;\r\n\t\t\t}\r\n\r\n\t\t\tif(dy<smy){\r\n\t\t\t\tdy=smy;\r\n\t\t\t}else if(dy>emy){\r\n\t\t\t\tdy=emy;\r\n\t\t\t}\r\n\t\t\tgetContained().innerTouch(this);\r\n\t\t}\r\n\r\n\t\tint m=Main.level.getStats().getSize()-1;\r\n\t\tpz=z;\r\n\t\tz+=vz*rate;\r\n\t\tfloat hz=z-top;\r\n\t\tif(z<-2){\r\n\t\t\tz=-2;\r\n\t\t\tfallDamage();\r\n\t\t}\r\n\t\tif(hz>0){\r\n\t\t\tif(submerged()){\r\n\t\t\t\tvz-=UserData.getWaterGravity()*rate;\r\n\t\t\t\tif(vz<-1){\r\n\t\t\t\t\tvz=-1;\r\n\t\t\t\t}\r\n\t\t\t\tfloat zu=Main.world.land.getWaterHigh(gx,gy);\r\n\t\t\t\tfloat z1=zu;\r\n\t\t\t\tfloat z2=zu;\r\n\t\t\t\tfloat z3=zu;\r\n\t\t\t\tfloat z4=zu;\r\n\r\n\t\t\t\tif(gx>0){\r\n\t\t\t\t\tz1=Main.world.land.getWaterHigh(gx-1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gx<m){\r\n\t\t\t\t\tz2=Main.world.land.getWaterHigh(gx+1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy>0){\r\n\t\t\t\t\tz3=Main.world.land.getWaterHigh(gx,gy-1);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy<m){\r\n\t\t\t\t\tz4=Main.world.land.getWaterHigh(gx,gy+1);\r\n\t\t\t\t}\r\n\t\t\t\tif(z1>zu){\r\n\t\t\t\t\tvx+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z2>zu){\r\n\t\t\t\t\tvx-=rate;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(z3>zu){\r\n\t\t\t\t\tvy+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z4>zu){\r\n\t\t\t\t\tvy-=rate;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvz-=UserData.getGravity()*rate;\r\n\t\t\t}\r\n\t\t\tgrounded=false;//vz>=-0.02;\r\n\t\t}else{\r\n\t\t\tif(!grounded){\r\n\t\t\t\tgrounded=true;\r\n\t\t\t\tland();\r\n\r\n\t\t\t}\r\n\t\t\tvz=0;\r\n\t\t\tz=top;\r\n\t\t}\r\n\r\n\t\tdx+=vx*rate;\r\n\t\tdy+=vy*rate;\r\n\r\n\t\tfloat sz=nextTop-z;\r\n\t\tfloat sx=(float) (rate*(dx-x)/5f);\r\n\t\tfloat sy=(float) (rate*(dy-y)/5f);\r\n\r\n\t\tif(sz<=stepHeight && Math.abs(vx)<0.01f && Math.abs(vy)<0.01f){\r\n\t\t\tpx=x;\r\n\t\t\tpy=y;\r\n\t\t\tx+=sx;\r\n\t\t\ty+=sy;\r\n\t\t}else{\r\n\t\t\tdx=x;\r\n\t\t\tdy=y;\r\n\t\t}\r\n\t\tif(Math.abs(sx)<0.006 &&Math.abs(sy)<0.006){\r\n\t\t\tmoving=false;\r\n\t\t}else{\r\n\t\t\tmoving=true;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void command() {\n\t\tShape r = new Rectangle(0, 0, p.getImage().getWidth(), p.getImage().getHeight());\r\n\t\tr.setCenterX(p.getLoc().x + dx);\r\n\t\tr.setCenterY(p.getLoc().y + dy);\r\n\t\tSystem.out.println(commandBlockType);\r\n\t\tif (!m.isColliding(r)) {\r\n\t\t\tp.setColliding(false);\r\n\t\t\tp.getLoc().x+=dx;\r\n\t\t\tp.getLoc().y+=dy;\r\n\t\t} else {\r\n\t\t\tp.setColliding(true);\r\n\t\t}\r\n\t}",
"private void updateXBounds(float delta) {\n textureRegionBounds1.x += delta * speed;\n textureRegionBounds2.x += delta * speed;\n }",
"public void borders() {\n if (loc.y > height) {\n vel.y *= -bounce;\n loc.y = height;\n }\n if ((loc.x > width) || (loc.x < 0)) {\n vel.x *= -bounce;\n } \n //if (loc.x < 0) loc.x = width;\n //if (loc.x > width) loc.x = 0;\n }",
"public float latchOntoAnchor (RectF anchorSpriteBoundary){\n readyToLaunch = false;\n isAnchored = true;\n isExploding = false;\n Tether = new ElasticSling(anchorSpriteBoundary, atomSpriteBoundary, new Coordinate(screen_width, screen_length));\n\n /* Pass the parameters of motion to the sling*/\n Tether.setInitialConditions(xVelocity/2, 3*yVelocity/10);\n\n /* Since the playeris now slinged, it carries no autonomous motion of its own*/\n xVelocity = yVelocity = 0;\n\n float distanceToCompensate =\n (float) (defaultYCoordinateAsPerctangeOfScreen * screen_length) - anchorSpriteBoundary.centerY();\n\n /* If the player is out of a certain range, then don't bother compensating */\n moveOtherObjects = distanceToCompensate - screen_length / 50 == 0?\n false : true;\n\n return distanceToCompensate;\n }",
"private void accelerate() {\r\n\t\tif(physics.angleTo(closestShipPhysics) < 0){\r\n\t\t\tphysics.move(true, RIGHT);\r\n\t\t}\r\n\t\tif(physics.angleTo(closestShipPhysics) > 0){\r\n\t\t\tphysics.move(true, LEFT);\r\n\t\t}\r\n\t\telse{\r\n\t\tphysics.move(true, STRIGHT);\r\n\t\t}\r\n\t}",
"public float getStartX() {return startX;}",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"public void collideWith(Rigidbody obj) {\n\t\t\r\n\t}",
"private void collideStageLimits(GOval ball) {\n if (isBallCollideCelling(ball)){\n vy = - vy;\n }\n if (isBallCollideRightWall(ball) || isBallCollideLeftWall(ball)){\n vx = - vx;\n }\n }",
"private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"public void tick(){\n\t\t//first check if blocked\n\t\tsuper.tick();\n\t\ttickTimers();\n\t\tapplySpecialAbilitiesWithinDuration();\n\t\tif(sequence!=null){\n\t\t\tsequence.tick();\n\t\t}\n\t\tif(adjustToBlockageAndReturnTrueIfBlocked()||atEdge) {\n\t\t\tif(atEdge){\n\t\t\t\tcheckIfAtEdge();\n\t\t\t}\n\t\t\tif(charging) stopCharge();\n\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(buttonReleased){\n\t\t\tif(targetPositionReached()){\n\t\t\t\tvelX=0;\n\t\t\t\tvelY=0;\n\t\t\t\tmoving=false;\n\t\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirection=\"stand\";\n\t\t\t}\n\t\t}\n\t\tif(damaged){\n\t\t\tif(animation!=ANIMATION.DYING) {\n\t\t\t\tif(animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tanimation=ANIMATION.DAMAGED;\n\t\t\t\t\tif(damage!=null) sequence.startSequence(damage,stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetVelX(0);\n\t\t\tsetVelY(0);\n\t\t}\n\t\t\n\t\tx+=velX;\n\t\ty+=velY;\n\t\tupdatePosition();\n\t\tcheckIfAtEdge();\n\t\t\n\t\t\n\t}",
"public void bounce() {\n angle = -angle;\n }",
"public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}",
"public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }",
"public void takesHit()\n {\n // TODO: replace this line with your code\n }",
"@Override\n public void onMove(boolean absolute) {\n \n }",
"void collisionHappened(int position);",
"@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }",
"public void collideBoundary(){\n\t \tint bulletBouncer = 0;\n\t \tif ((this.getPosition()[0]-(this.getRadius()) <= 0.0 || (this.getPosition()[0]+(this.getRadius()) >= this.superWorld.getWorldWidth()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setXYVelocity( this.velocity.getVelocity()[0] * -1);\n\t \t}\n\t \tif ((this.getPosition()[1]-(this.getRadius()) <= 0.0 || (this.getPosition()[1]+(this.getRadius()) >= this.superWorld.getWorldHeight()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setYVelocity(this.velocity.getVelocity()[1] * -1);\n\t \t} \t\n\t \tif (this instanceof Bullet){\n\t \tBullet bullet = (Bullet) this;\n\t \tfor (int i = 0; i < bulletBouncer; i++){\n\t \t\tif (!bullet.isTerminated())\n\t \t\tbullet.bouncesCounter();\n\t \t}\n\t \t}\n\t }",
"public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }",
"private ObjectAnimator a(c paramc)\n/* */ {\n/* 143 */ int i = getWidth();\n/* 144 */ ObjectAnimator localObjectAnimator = ObjectAnimator.ofFloat(paramc, \"translationX\", new float[] { 0.0F, -i });\n/* 145 */ return localObjectAnimator;\n/* */ }",
"public abstract void collide(InteractiveObject obj);",
"public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}",
"public void update(){\n\t\t\tif (x<200){\n\t\t\t\txmoving=1; \n\t\t\t}\n\t\t\tif (x>900){ \n\t\t\t\txmoving=-.1; \n\t\t\t} \n\n\t\t\tx+=xmoving;\n\n\t}",
"void setPlayerXRelative(int x) {\n }",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t}",
"public void update(long delta){\n \n if(placement <= -1000){\n placement = zPosition;\n }\n placement -= 5;\n \n \n }",
"public void colapse(){\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(getDefaultWidth());\n\t}",
"public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }",
"@Override\n\tpublic void action(GameObject triggeredBy, CollisionBuffer cBuff) {\n\t\tMovableGameObject mObj = (MovableGameObject)triggeredBy;\n\t\tif(mObj != null){\n\t\t\t//Get the center position of the last active checkPoint of this movable game object\n\t\t\tVec cpCenter = mObj.getActiveCheckpoint().getCenter();\n\t\t\t//Decrement cpCenter by triggeredBy's dimensions to allow exact center of trigered by to land on center of activeCheckpoint\n\t\t\tcpCenter.incrementComponent(0, triggeredBy.getWidth()/-2.0);\n\t\t\tcpCenter.incrementComponent(1, triggeredBy.getHeight()/-2.0);\n\t\t\t\n\t\t\t//Set position of triggeredBy to cpCenter\n\t\t\ttriggeredBy.setPos(cpCenter);\n\t\t\t\n\t\t\t//Refresh triggeredBy so it's previousPosition gets set to it's currentPosition.\n\t\t\t//In case when the position is set to cpCenter & it is colliding with something it does not jump back and forth.\n\t\t\tmObj.refresh();\n\t\t}\n\n\t}",
"public void tick() {\n\n\t\tif (this.getMouseX() >= 1020 && this.getMouseX() <= 1084){\n\t\t\tinBoundsX = true;\n\t\t} else {\n\t\t\tinBoundsX = false;\n\t\t}\n\n\t\tif (this.getMouseY() >= 620 && this.getMouseY() <= 768){\n\t\t\tinBoundsY = true;\n\t\t} else {\n\t\t\tinBoundsY = false;\n\t\t}\n\n\t\t//Testing\n\t\t\n\t\t\n\t\tif(mouseClick == true && inBoundsX && inBoundsY){\n\t\t\tSystem.out.println(\"MADE IT.\");\n\t\t\tcardClicked = true;\n\t\t\tmouseClick = false;\n\t\t}\n\n\t}",
"public void checkCollision() {}",
"@Override\n public void update(float delta) {\n\n }",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"public void Attack(){\n float randomx = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/10;\n float randomy = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/5;\n Vector2 target = GameView.instance.player.aimFor();\n float dx = target.x-creationPoint.x;\n float dy =target.y-creationPoint.y;\n float l= (float)Math.sqrt(dx*dx+dy*dy);\n dx = dx/l-((float)Math.random()-0.5f)/2;\n dy = dy/l-(float)(Math.random())/10;\n ProjectilePool.instance.shootArrow(creationPoint.x, creationPoint.y, 1, dx, dy, 3);\n }",
"private void updatePos() {\n var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D();\n var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D();\n var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY());\n var hookBallCenter = new Vector2(hookBallBounds.getCenterX(), hookBallBounds.getCenterY());\n fullDirection = hookBallCenter.subtracted(ballCenter);\n var oposDir = ballCenter.subtracted(hookBallCenter).normalized();\n oposDir.multiplyBy(hookBallBounds.getWidth() / 2);\n hookBallCenter.add(oposDir);\n direction = hookBallCenter.subtracted(ballCenter);\n getTransform().setPosition(ballCenter);\n getTransform().setRotation(GeometryHelper.vectorToAngle(hookBallCenter.subtracted(ballCenter)));\n getTransform().translate(0, -GameSettings.ROPE_HEIGHT / 2 - 1);\n }",
"@Override\n\tpublic void onPostSolve(Contact c, ContactImpulse cImpulse) {\n\t\tBodyComponent body = (BodyComponent)c.getFixtureA().getBody().getUserData();\n\t\tif(c.isTouching() && body.getVelocity() > contactVelocity){\n\t\t\tmanifold=c.getManifold();\n\t\t\tc.getWorldManifold(worldManifold);\n\t\t\t\tint count=0;\n\t\t\t\tgame.getSoundPool().playRandom(game.getSoundPool().getPool().hit1,\n\t\t\t\t\t\tgame.getSoundPool().getPool().hit2,\n\t\t\t\t\t\tgame.getSoundPool().getPool().hit3,\n\t\t\t\t\t\tgame.getSoundPool().getPool().hit4);\n\t\t\t\t//pt.localPoint.\n\t\t\t\tfor(Spark spark : sparks){\n\t\t\t\t\tif(!spark.active){\n\t\t\t\t\t\tspark.active=true;\n\t\t\t\t\t\t//spark.x=pt.localPoint.x;\n\t\t\t\t\t\t//spark.y=pt.localPoint.y;\n\t\t\t\t\t\tspark.x=worldManifold.points[0].x;\n\t\t\t\t\t\tspark.y=worldManifold.points[0].y;\n\t\t\t\t\t\t//spark.vx=2*worldManifold.normal.x;\n\t\t\t\t\t\t//spark.vy=2*worldManifold.normal.y;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvel1 = c.getFixtureA().getBody().getLinearVelocityFromWorldPoint(worldManifold.points[0]);\n\t\t\t\t\t\tvel2 = c.getFixtureB().getBody().getLinearVelocityFromWorldPoint(worldManifold.points[0]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tspark.rotation=(int)(Math.random()*180);\n\t\t\t\t\t\tspark.dir=(int)(1-(Math.random()*2)*2);\n\t\t\t\t\t\tspark.vx=vel2.x/(5+(float)Math.random()*20);\n\t\t\t\t\t\tspark.vy=vel2.y/(5+(float)Math.random()*20);\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(++count>5){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}",
"public double getTimeFirstCollisionBoundary() {\n\t\tif (getWorld() == null) return Double.POSITIVE_INFINITY;\n\t\tdouble xTime = Double.POSITIVE_INFINITY;\n\t\tdouble yTime = Double.POSITIVE_INFINITY;\n\t\t\n\t\tif (this.getXVelocity() > 0)\n\t\t\txTime = (getWorld().getWidth() - getXCoordinate() - getRadius()) / getXVelocity();\n\t\tif (this.getXVelocity() < 0)\n\t\t\txTime = - ( getXCoordinate() - getRadius()) / getXVelocity();\n\t\tif (this.getXVelocity() == 0)\n\t\t\txTime = Double.POSITIVE_INFINITY;\n\t\t\n\t\tif (this.getYVelocity() > 0)\n\t\t\tyTime = (getWorld().getHeight() - getYCoordinate() -getRadius()) / getYVelocity();\n\t\tif (this.getYVelocity() < 0)\n\t\t\tyTime = - ( getYCoordinate() - getRadius()) / getYVelocity();\n\t\tif (this.getYVelocity() == 0)\n\t\t\tyTime = Double.POSITIVE_INFINITY;\n\t\t\n\t\treturn Math.min(xTime, yTime);\t\n\t}",
"public void run() {\n\tObjectFrame flange = lbr_iiwa_14_R820_1.getFlange();\t\t//flange frame\n\tObjectFrame lbrRoot = lbr_iiwa_14_R820_1.getRootFrame();\t//root frame\n\t\t\t\n\t// define frames for task trajectory:\n\tFrame F_contactEnd = new Frame(lbrRoot,500,0,385,Math.toRadians(180),Math.toRadians(0),Math.toRadians(180));\n\t\n\tFrame F_tmp = F_contactEnd.copy();\n\t\n\tF_flyMin \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, 50)).copy();\n\tF_fly3 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, 60)).copy();\n\tF_fly4 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 200,0, 0)).copy();\n\tF_flyMax \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, -60)).copy();\t\t\n\tF_contactStart \t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, -50)).copy();\n\t\n\tSystem.out.println(String.format(\"F_flyMin, x: %1$f y: %2$f z: %3$f\", F_flyMin.getX(), F_flyMin.getY(), F_flyMin.getZ()));\n\tSystem.out.println(String.format(\"F_fly3, x: %1$f y: %2$f z: %3$f\", F_fly3.getX(), F_fly3.getY(), F_fly3.getZ()));\n\tSystem.out.println(String.format(\"F_fly4, x: %1$f y: %2$f z: %3$f\", F_fly4.getX(), F_fly4.getY(), F_fly4.getZ()));\n\tSystem.out.println(String.format(\"F_flyMax, x: %1$f y: %2$f z: %3$f\", F_flyMax.getX(), F_flyMax.getY(), F_flyMax.getZ()));\n\tSystem.out.println(String.format(\"F_contactStart, x: %1$f y: %2$f z: %3$f\", F_contactStart.getX(), F_contactStart.getY(), F_contactStart.getZ()));\n\t\n\tSpline flyingPhase_spline = new Spline(\n\t\t\tlin(F_contactEnd),\n\t\t\tspl(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_contactStart)\n\t\t);\n\t\n\t\n\t// move to standBy position:\n\tSystem.out.println(\"going to standBy position\");\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\n\n\t\n\t/*\n\tSystem.out.println(\"going to end frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing));\n\t*/\n\t\n\t/*\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMin).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly3).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly4).setCartVelocity(v_taxing));\n\t\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMax).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing)); \n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - spline (3x)\");\n\tfor (int i=1; i<=3; i++)\n\t{\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250));\n\t}\n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - batch\");\n\tlbr_iiwa_14_R820_1.moveAsync(batch(\n\t\t\tlin(F_contactEnd),\n\t\t\tlin(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_contactStart)\n\t).setCartVelocity(v_fly));\n\t*/\n\t\n\t\n\tSystem.out.println(\"Setting impedance mode\");\n\tCartesianImpedanceControlMode cartImpMode = new CartesianImpedanceControlMode();\n\n\t/*\n\tcartImpMode.parametrize(CartDOF.TRANSL).setStiffness(1500);\n\tcartImpMode.parametrize(CartDOF.TRANSL).setDamping(0.7);\n\n\tcartImpMode.parametrize(CartDOF.Z).setStiffness(100);\n\n\tcartImpMode.parametrize(CartDOF.ROT).setStiffness(200);\n\tcartImpMode.parametrize(CartDOF.ROT).setDamping(0.7);\n\n\tcartImpMode.setNullSpaceDamping(0.3);\n\tcartImpMode.setNullSpaceStiffness(0);\n\n\tcartImpMode.setMaxControlForce(30, 30, 30, 10, 10, 10, false);\n\t*/\n\t\n\t// manage data recording\n\tDataRecorder rec = new DataRecorder(); //data recording \n\trec.setFileName(\"Recording.log\");\n\trec.setSampleRate(100);\n\trec.addCartesianForce(lbr_iiwa_14_R820_1.getFlange(),lbrRoot);\n\tStartRecordingAction startAction = new StartRecordingAction(rec);\n\t\n\tForceCondition condstart = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, 1); //recording trigger\n\tForceCondition condend = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, force_z); //stop movement trigger\n\t\n\t\n\tSystem.out.println(\"going to start frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing).setCartAcceleration(200));\t\n\t\n\t//start cycling\n\tfor (int i_cycle=1; i_cycle <= 3; i_cycle ++)\n\t{\n\t\tSystem.out.println(String.format(\"cycle # %1$d\", i_cycle));\n\t\t\n\t\t//PHASE 1: transition, landing\n\t\t//System.out.println(\"start transition phase, landing, impedance mode \");\n\t\t//lbr_iiwa_14_R820_1.move(linRel(0,0,-dz,lbrRoot).triggerWhen(condstart, startAction).breakWhen(condend).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t\n\t\tif (i_cycle == 1)\n\t\t{\n\t\t\t// check data recording\n\t\t\tSystem.out.println(\"recording activated\");\n\t\t\tif(rec.isFileAvailable())\n\t\t\t\tSystem.out.println(\"data file available\");\n\t\t\t\n\t\t\tURL url = rec.getURL();\n\t\t\tdummy = url.toString();\n\t\t\tSystem.out.println(dummy);\n\t\t}\n\t\t\n\t\t// print current force value\n\t\tForceSensorData data = lbr_iiwa_14_R820_1.getExternalForceTorque(lbr_iiwa_14_R820_1.getFlange());\n\t\tSystem.out.println(String.format(\"Fz = %1$f \",data.getForce().getZ()));\n\t\t\n\t\t// PHASE 2: contact phase\n\t\t//System.out.println(\"start contact phase, impedance mode\");\n\t\t//lbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_contact).setMode(cartImpMode));\n\t\t/*\n\t\t// PHASE 3: transition phase, take off\n\t\tSystem.out.println(\"start transition phase, impedance mode\");\n\t\tlbr_iiwa_14_R820_1.move(linRel(0,0,dz,lbrRoot).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t*/\n\t\t// PHASE 4: flying phase \n\t\tSystem.out.println(\"start flying phase, swift\");\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250).setMode(cartImpMode));\n\t}\n\t\n\t\n\t// stop recording\n\trec.stopRecording();\n\tSystem.out.println(\"data recording stopped\");\n\t\n\t\n\t// move to standBy position:\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\t\n\t}",
"public void updatePhysics() {\n ball.setLayoutX(ball.getLayoutX() + velX);\n ball.setLayoutY(ball.getLayoutY() - velY);\n\n velY += accelY;\n velX += accelX;\n }",
"public void update() {\n\t\t\n\t\t//System.out.println(this.observer);\n\t\t\n\t\tif(this.isCollidable == false){\n\t\t\tthis.x = -500;\n\t\t\tthis.y = -500;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (this.life < this.maxLife && !this.isDead()){\n\t\t\t\n\t\t\tif(recovery >= 1){\n\t\t\t\tthis.setLife(this.life + 1);\n\t\t\t\trecovery = 0;\n\t\t\t}\n\t\t\t\n\t\t\trecovery += 0.01;\n\t\t}\n\t\t\n\t\tsuper.update();\n\t\t\n\t\t//Shield movement\n\t\tInteger horizontalCorrection = (this.width - player.width)/2;\n\t\tInteger verticalCorrection = (this.height - player.height)/2;\n\n\t\t//Adjusting position player with force shield\n\t\tthis.x = player.x - horizontalCorrection;\n\t\tthis.y = player.y - verticalCorrection;\n\t}",
"public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }",
"public void updateUserDrag (float x , float y, RectF attachedAnchor){\n\n //Check to make sure that the AtomSlinger is indeed achored\n if (isAnchored) {\n Coordinate anchorPosition = convertRectFToCoordinate(attachedAnchor);\n\n /* The current Anchor might have been moved, so ensure the Tether keeps up with the Anchor*/\n Tether.updateAnchorPosition( anchorPosition );\n\n /* Ensure that the player can never launch the atom downwards */\n this.updatePosition\n ( x, (y <= anchorPosition.y) ? anchorPosition.y : y );\n\n double tempVelocity;\n\n switch ( Tether.stretch( centerX, centerY ) ) {\n case READYTOLAUNCH:\n readyToLaunch = true;\n tempVelocity = Math.sqrt(Tether.getPotentialEnergy() * 2 / mass);\n xVelocity = (float) (Tether.getCos() * tempVelocity);\n yVelocity = (float) (Tether.getSin() * tempVelocity);\n break;\n\n case MAXIMUMPOWER:\n readyToLaunch = true;\n tempVelocity = Math.sqrt(Tether.getPotentialEnergy() * 2 / mass);\n xVelocity = (float) (Tether.getCos() * tempVelocity);\n yVelocity = (float) (Tether.getSin() * tempVelocity);\n //enforce the maximum stretching by receiving the Tather object's end coordinates\n this.updatePosition( Tether.getStopX(), Tether.getStopY());\n break;\n\n case NOTENOUGHENERGY:\n readyToLaunch = false;\n xVelocity = yVelocity = 0;\n break;\n }\n\n double dx = centerX - attachedAnchor.centerX(),\n dy = centerY - attachedAnchor.centerY();\n\n angleWithAnchor = Math.atan(dx/dy);\n distance = Math.sqrt(dx*dx + dy*dy);\n }\n }",
"public void unitCollision() {\n\t}",
"public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {\n/* 132 */ player.motionX = 0.0D;\n/* 133 */ player.motionZ = 0.0D;\n/* */ \n/* 135 */ int searchRange = 20;\n/* 136 */ List<EntityLivingBase> entities = player.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(player.posX - searchRange, player.posY - searchRange, player.posZ - searchRange, player.posX + searchRange, player.posY + searchRange, player.posZ + searchRange));\n/* */ \n/* 138 */ if (entities.contains(player)) {\n/* 139 */ entities.remove(player);\n/* */ }\n/* 141 */ if (count < getMaxItemUseDuration(stack) - 20) {\n/* 142 */ for (int counter = entities.size() - 1; counter >= 0; counter--) {\n/* 143 */ if (player.getDistanceToEntity((Entity)entities.get(counter)) <= 3.0F && \n/* 144 */ WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.FIRE, (int)(150.0F * RelicsConfigHandler.soulTomeVisMult)).add(Aspect.ENTROPY, (int)(120.0F * RelicsConfigHandler.soulTomeVisMult)))) {\n/* */ \n/* 146 */ EntityLivingBase thrownEntity = entities.get(counter);\n/* */ \n/* 148 */ Vector3 entityVec = Vector3.fromEntityCenter((Entity)thrownEntity);\n/* 149 */ Vector3 playerVec = Vector3.fromEntityCenter((Entity)player);\n/* */ \n/* 151 */ Vector3 diff = entityVec.copy().sub(playerVec).multiply((1.0F / player.getDistanceToEntity((Entity)thrownEntity) * 3.0F));\n/* */ \n/* 153 */ float curve = (float)(1.0D / player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 8.0D);\n/* */ \n/* 155 */ if (!player.worldObj.isRemote)\n/* 156 */ for (int counterZ = 0; counterZ <= 3; counterZ++) {\n/* 157 */ Main.proxy.lightning(player.worldObj, player.posX, player.posY + 1.0D, player.posZ, entityVec.x, entityVec.y, entityVec.z, 40, curve, (int)(player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 6.0D), 0, 0.075F);\n/* */ } \n/* 159 */ player.worldObj.playSoundAtEntity((Entity)player, \"thaumcraft:zap\", 1.0F, 0.8F);\n/* */ \n/* 161 */ thrownEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceTLightning((Entity)player), (float)(20.0D + 80.0D * Math.random()));\n/* */ \n/* 163 */ thrownEntity.motionX = diff.x;\n/* 164 */ thrownEntity.motionY = diff.y + 1.0D;\n/* 165 */ thrownEntity.motionZ = diff.z;\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 195 */ this; this; this; this; if ((((count < getMaxItemUseDuration(stack) - 20) ? 1 : 0) & ((count % 4 == 0) ? 1 : 0)) != 0 && WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.EARTH, TerraCost).add(Aspect.AIR, AerCost).add(Aspect.FIRE, IgnisCost).add(Aspect.ENTROPY, PerditioCost))) {\n/* */ \n/* 197 */ EntityLivingBase randomEntity = null;\n/* */ \n/* 199 */ if (entities.size() > 0) {\n/* 200 */ randomEntity = entities.get((int)(entities.size() * Math.random()));\n/* */ }\n/* 202 */ if ((((randomEntity != null) ? 1 : 0) & (!player.worldObj.isRemote ? 1 : 0)) != 0) {\n/* */ \n/* 204 */ float soulDamage = randomEntity.getMaxHealth() / RelicsConfigHandler.soulTomeDivisor;\n/* */ \n/* 206 */ if (soulDamage > 20.0F) {\n/* 207 */ soulDamage = 20.0F;\n/* 208 */ } else if (soulDamage < 1.0F) {\n/* 209 */ soulDamage = 1.0F;\n/* */ } \n/* 211 */ randomEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceSoulDrain((Entity)player), soulDamage);\n/* 212 */ spawnSoul(player.worldObj, randomEntity, (EntityLivingBase)player);\n/* */ } \n/* */ } \n/* */ }",
"public void updateFireVector(){\n\t\tdouble difX = owner.getMouseX() - owner.getMidX();\n\t\tdouble difY = owner.getMouseY() - owner.getMidY();\n\t\tdouble magnitude = Math.pow(difX * difX + difY * difY, .5);\n//\t\tdouble newFireX = difX / magnitude;\n//\t\tdouble newFireY = difY / magnitude;\n//\t\tif(Math.abs(newFireX - fireX) > Math.abs(minChange)){\n//\t\t\tfireX = newFireX;\n//\t\t}\n//\t\tif(Math.abs(newFireY - fireY) > Math.abs(minChange)){\n//\t\t\tfireY = newFireY;\n//\t\t}\n\t\tfireX = difX / magnitude;\n\t\tfireY = difY / magnitude;\n//\t\tif(fireX < 0){\n//\t\t\tfacingRight = -1;\n//\t\t}\n//\t\telse{\n//\t\t\tfacingRight = 1;\n//\t\t}\n//\t\tSystem.out.println(fireX);\n//\t\tSystem.out.println(fireY);\n//\t\tSystem.out.println();\n\t}",
"Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);",
"@Override\n public int getMinX() {\n return this.minX;\n }",
"@Override\r\n public void Update()\r\n {\r\n double nextY;\r\n if(isJumping) {\r\n if(jumpSpeed > 1 && jumpDirection == -1) {\r\n jumpDirection = 1;\r\n jumpSpeed = 0;\r\n }\r\n else if(jumpDirection == 1) {\r\n if(jumpSpeed < 1) {\r\n jumpSpeed += 0.04;\r\n }\r\n } else {\r\n jumpSpeed += 0.04;\r\n }\r\n nextY = y + jumpDirection * GetSpeed(jumpSpeed) * 4;\r\n\r\n lista_static_element = refLink.GetMap().getList_static_element();\r\n\r\n for(int i = 0; i< lista_static_element.size(); i++){\r\n if(lista_static_element.get(i).GetRectangle().intersects(x , nextY , width , height)){\r\n isJumping = false;\r\n return;\r\n /*lista_static_element.remove(lista_static_element.get(i));\r\n refLink.GetMap().setList_dinamic_element(lista_static_element);*/\r\n }\r\n\r\n }\r\n\r\n\r\n lista_dinamic_element = refLink.GetMap().getList_star_blue();\r\n\r\n for(int i = 0; i< lista_dinamic_element.size(); i++){\r\n if(lista_dinamic_element.get(i).GetRectangle().intersects(x , nextY , width , height)){\r\n lista_dinamic_element.remove(lista_dinamic_element.get(i));\r\n refLink.GetMap().setList_star_blue(lista_dinamic_element);\r\n\r\n Scor.GetInstance().Update_Scor();\r\n\r\n //State.SetState(new GameOverState(refLink));\r\n }\r\n }\r\n\r\n list_fire = refLink.GetMap().getList_fire();\r\n for(int i = 0; i< list_fire.size(); i++){\r\n if(list_fire.get(i).GetRectangle().intersects(x , nextY , width , height)){\r\n list_fire.remove(list_fire.get(i));\r\n refLink.GetMap().setList_star_blue(list_fire);\r\n\r\n Scor.GetInstance().Update_Scor();\r\n\r\n State.SetState(new GameOverState(refLink));\r\n }\r\n }\r\n\r\n\r\n\r\n /*if(refLink.GetMap().CheckCollision((int)x+50,(int)y)){\r\n isJumping = false;\r\n return;\r\n }*/\r\n\r\n y = (float)nextY;\r\n\r\n if(y > 415) {\r\n isJumping = false;\r\n y = 415;\r\n }\r\n }\r\n ///Verifica daca a fost apasata o tasta\r\n GetInput();\r\n ///Actualizeaza pozitia\r\n Move();\r\n ///Actualizeaza imaginea\r\n if(refLink.GetKeyManager().left_arrow)\r\n {\r\n image = Assets.water_hero_left;\r\n }\r\n else if(refLink.GetKeyManager().right_arrow) {\r\n image = Assets.water_hero_right;\r\n }\r\n else {\r\n image = Assets.water_hero;\r\n }\r\n if(lista_dinamic_element.isEmpty() )\r\n Map.level = 2;\r\n }"
]
| [
"0.6159146",
"0.6036991",
"0.5749931",
"0.5714769",
"0.5714038",
"0.5701093",
"0.568742",
"0.56769276",
"0.5622881",
"0.56177866",
"0.56165487",
"0.56102604",
"0.56085885",
"0.55982226",
"0.5575676",
"0.5566481",
"0.5566136",
"0.5557456",
"0.55554223",
"0.55423445",
"0.5541826",
"0.5538835",
"0.5533752",
"0.5533663",
"0.55151993",
"0.5490065",
"0.54856336",
"0.54810613",
"0.5478513",
"0.54745257",
"0.54702747",
"0.54548013",
"0.5445391",
"0.5444976",
"0.54091305",
"0.5402556",
"0.53960544",
"0.538002",
"0.5377958",
"0.53770083",
"0.5376004",
"0.53532916",
"0.5352242",
"0.5348778",
"0.534519",
"0.5335531",
"0.5332942",
"0.53324",
"0.53277844",
"0.5311172",
"0.5303776",
"0.5298487",
"0.5295306",
"0.52925205",
"0.52868015",
"0.5280614",
"0.5279002",
"0.5270421",
"0.52386516",
"0.52371514",
"0.5234652",
"0.5231678",
"0.5227542",
"0.5226687",
"0.52265996",
"0.5220728",
"0.5212288",
"0.5205216",
"0.5198185",
"0.5197283",
"0.51917595",
"0.51900196",
"0.5187313",
"0.51855606",
"0.5184954",
"0.5174603",
"0.51701784",
"0.51628",
"0.5162544",
"0.5161018",
"0.5159948",
"0.515694",
"0.5155584",
"0.5153105",
"0.5150596",
"0.5149618",
"0.51431847",
"0.5141573",
"0.5135766",
"0.5134921",
"0.5133638",
"0.5132949",
"0.51262504",
"0.5122239",
"0.5118061",
"0.5117555",
"0.5115531",
"0.51145804",
"0.51139086",
"0.51115614"
]
| 0.6826254 | 0 |
/ renamed from: com.google.android.gms.internal.measurement.q5 | public interface C4932q5 extends C4994t5, Cloneable {
/* renamed from: B */
C4945r5 mo19056B();
/* renamed from: F */
C4945r5 mo19057F();
/* renamed from: a */
C4932q5 mo19393a(C4945r5 r5Var);
/* renamed from: a */
C4932q5 mo19394a(byte[] bArr) throws zzfn;
/* renamed from: a */
C4932q5 mo19395a(byte[] bArr, C5005u3 u3Var) throws zzfn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final com.google.android.gms.measurement.internal.zzak zza(java.lang.String r26, java.lang.String r27) {\n /*\n r25 = this;\n r15 = r27\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r26)\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r27)\n r25.zzd()\n r25.zzak()\n java.util.ArrayList r0 = new java.util.ArrayList\n java.lang.String r1 = \"lifetime_count\"\n java.lang.String r2 = \"current_bundle_count\"\n java.lang.String r3 = \"last_fire_timestamp\"\n java.lang.String r4 = \"last_bundled_timestamp\"\n java.lang.String r5 = \"last_bundled_day\"\n java.lang.String r6 = \"last_sampled_complex_event_id\"\n java.lang.String r7 = \"last_sampling_rate\"\n java.lang.String r8 = \"last_exempt_from_sampling\"\n java.lang.String r9 = \"current_session_count\"\n java.lang.String[] r1 = new java.lang.String[]{r1, r2, r3, r4, r5, r6, r7, r8, r9}\n java.util.List r1 = java.util.Arrays.asList(r1)\n r0.<init>(r1)\n r18 = 0\n android.database.sqlite.SQLiteDatabase r1 = r25.mo40210c_() // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n java.lang.String r2 = \"events\"\n r9 = 0\n java.lang.String[] r3 = new java.lang.String[r9] // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n java.lang.Object[] r0 = r0.toArray(r3) // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n r3 = r0\n java.lang.String[] r3 = (java.lang.String[]) r3 // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n java.lang.String r4 = \"app_id=? and name=?\"\n r0 = 2\n java.lang.String[] r5 = new java.lang.String[r0] // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n r5[r9] = r26 // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n r10 = 1\n r5[r10] = r15 // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n r6 = 0\n r7 = 0\n r8 = 0\n android.database.Cursor r14 = r1.query(r2, r3, r4, r5, r6, r7, r8) // Catch:{ SQLiteException -> 0x012b, all -> 0x0129 }\n boolean r1 = r14.moveToFirst() // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r1 != 0) goto L_0x005e\n if (r14 == 0) goto L_0x005d\n r14.close()\n L_0x005d:\n return r18\n L_0x005e:\n long r4 = r14.getLong(r9) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n long r6 = r14.getLong(r10) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n long r11 = r14.getLong(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r0 = 3\n boolean r1 = r14.isNull(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r2 = 0\n if (r1 == 0) goto L_0x0076\n r16 = r2\n goto L_0x007c\n L_0x0076:\n long r0 = r14.getLong(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r16 = r0\n L_0x007c:\n r0 = 4\n boolean r1 = r14.isNull(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r1 == 0) goto L_0x0086\n r0 = r18\n goto L_0x008e\n L_0x0086:\n long r0 = r14.getLong(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n java.lang.Long r0 = java.lang.Long.valueOf(r0) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n L_0x008e:\n r1 = 5\n boolean r8 = r14.isNull(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r8 == 0) goto L_0x0098\n r19 = r18\n goto L_0x00a2\n L_0x0098:\n long r19 = r14.getLong(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n java.lang.Long r1 = java.lang.Long.valueOf(r19) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r19 = r1\n L_0x00a2:\n r1 = 6\n boolean r8 = r14.isNull(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r8 == 0) goto L_0x00ac\n r20 = r18\n goto L_0x00b6\n L_0x00ac:\n long r20 = r14.getLong(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n java.lang.Long r1 = java.lang.Long.valueOf(r20) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r20 = r1\n L_0x00b6:\n r1 = 7\n boolean r8 = r14.isNull(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r8 != 0) goto L_0x00d3\n long r21 = r14.getLong(r1) // Catch:{ SQLiteException -> 0x00d0 }\n r23 = 1\n int r1 = (r21 > r23 ? 1 : (r21 == r23 ? 0 : -1))\n if (r1 != 0) goto L_0x00c9\n r9 = r10\n L_0x00c9:\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r9) // Catch:{ SQLiteException -> 0x00d0 }\n r21 = r1\n goto L_0x00d5\n L_0x00d0:\n r0 = move-exception\n goto L_0x012e\n L_0x00d3:\n r21 = r18\n L_0x00d5:\n r1 = 8\n boolean r8 = r14.isNull(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n if (r8 == 0) goto L_0x00df\n r8 = r2\n goto L_0x00e4\n L_0x00df:\n long r1 = r14.getLong(r1) // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r8 = r1\n L_0x00e4:\n com.google.android.gms.measurement.internal.zzak r22 = new com.google.android.gms.measurement.internal.zzak // Catch:{ SQLiteException -> 0x0125, all -> 0x011f }\n r1 = r22\n r2 = r26\n r3 = r27\n r10 = r11\n r12 = r16\n r23 = r14\n r14 = r0\n r15 = r19\n r16 = r20\n r17 = r21\n r1.<init>(r2, r3, r4, r6, r8, r10, r12, r14, r15, r16, r17) // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n boolean r0 = r23.moveToNext() // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n if (r0 == 0) goto L_0x0112\n com.google.android.gms.measurement.internal.zzez r0 = r25.zzr() // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n com.google.android.gms.measurement.internal.zzfb r0 = r0.zzf() // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n java.lang.String r1 = \"Got multiple records for event aggregates, expected one. appId\"\n java.lang.Object r2 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r26) // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n r0.zza(r1, r2) // Catch:{ SQLiteException -> 0x011b, all -> 0x0119 }\n L_0x0112:\n if (r23 == 0) goto L_0x0118\n r23.close()\n L_0x0118:\n return r22\n L_0x0119:\n r0 = move-exception\n goto L_0x0122\n L_0x011b:\n r0 = move-exception\n r14 = r23\n goto L_0x012e\n L_0x011f:\n r0 = move-exception\n r23 = r14\n L_0x0122:\n r18 = r23\n goto L_0x0152\n L_0x0125:\n r0 = move-exception\n r23 = r14\n goto L_0x012e\n L_0x0129:\n r0 = move-exception\n goto L_0x0152\n L_0x012b:\n r0 = move-exception\n r14 = r18\n L_0x012e:\n com.google.android.gms.measurement.internal.zzez r1 = r25.zzr() // Catch:{ all -> 0x014f }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ all -> 0x014f }\n java.lang.String r2 = \"Error querying events. appId\"\n java.lang.Object r3 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r26) // Catch:{ all -> 0x014f }\n com.google.android.gms.measurement.internal.zzex r4 = r25.zzo() // Catch:{ all -> 0x014f }\n r5 = r27\n java.lang.String r4 = r4.zza((java.lang.String) r5) // Catch:{ all -> 0x014f }\n r1.zza(r2, r3, r4, r0) // Catch:{ all -> 0x014f }\n if (r14 == 0) goto L_0x014e\n r14.close()\n L_0x014e:\n return r18\n L_0x014f:\n r0 = move-exception\n r18 = r14\n L_0x0152:\n if (r18 == 0) goto L_0x0157\n r18.close()\n L_0x0157:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zza(java.lang.String, java.lang.String):com.google.android.gms.measurement.internal.zzak\");\n }",
"public final com.google.android.gms.measurement.internal.zzw zzd(java.lang.String r30, java.lang.String r31) {\n /*\n r29 = this;\n r7 = r31\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r30)\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r31)\n r29.zzd()\n r29.zzak()\n r8 = 0\n android.database.sqlite.SQLiteDatabase r9 = r29.mo40210c_() // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n java.lang.String r10 = \"conditional_properties\"\n java.lang.String r11 = \"origin\"\n java.lang.String r12 = \"value\"\n java.lang.String r13 = \"active\"\n java.lang.String r14 = \"trigger_event_name\"\n java.lang.String r15 = \"trigger_timeout\"\n java.lang.String r16 = \"timed_out_event\"\n java.lang.String r17 = \"creation_timestamp\"\n java.lang.String r18 = \"triggered_event\"\n java.lang.String r19 = \"triggered_timestamp\"\n java.lang.String r20 = \"time_to_live\"\n java.lang.String r21 = \"expired_event\"\n java.lang.String[] r11 = new java.lang.String[]{r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21} // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n java.lang.String r12 = \"app_id=? and name=?\"\n r0 = 2\n java.lang.String[] r13 = new java.lang.String[r0] // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n r1 = 0\n r13[r1] = r30 // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n r2 = 1\n r13[r2] = r7 // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n r14 = 0\n r15 = 0\n r16 = 0\n android.database.Cursor r9 = r9.query(r10, r11, r12, r13, r14, r15, r16) // Catch:{ SQLiteException -> 0x0104, all -> 0x0100 }\n boolean r3 = r9.moveToFirst() // Catch:{ SQLiteException -> 0x00fc, all -> 0x00f8 }\n if (r3 != 0) goto L_0x0050\n if (r9 == 0) goto L_0x004f\n r9.close()\n L_0x004f:\n return r8\n L_0x0050:\n java.lang.String r16 = r9.getString(r1) // Catch:{ SQLiteException -> 0x00fc, all -> 0x00f8 }\n r10 = r29\n java.lang.Object r5 = r10.zza((android.database.Cursor) r9, (int) r2) // Catch:{ SQLiteException -> 0x00f6 }\n int r0 = r9.getInt(r0) // Catch:{ SQLiteException -> 0x00f6 }\n if (r0 == 0) goto L_0x0063\n r20 = r2\n goto L_0x0065\n L_0x0063:\n r20 = r1\n L_0x0065:\n r0 = 3\n java.lang.String r21 = r9.getString(r0) // Catch:{ SQLiteException -> 0x00f6 }\n r0 = 4\n long r23 = r9.getLong(r0) // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzks r0 = r29.zzg() // Catch:{ SQLiteException -> 0x00f6 }\n r1 = 5\n byte[] r1 = r9.getBlob(r1) // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable$Creator<com.google.android.gms.measurement.internal.zzao> r2 = com.google.android.gms.measurement.internal.zzao.CREATOR // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable r0 = r0.zza((byte[]) r1, r2) // Catch:{ SQLiteException -> 0x00f6 }\n r22 = r0\n com.google.android.gms.measurement.internal.zzao r22 = (com.google.android.gms.measurement.internal.zzao) r22 // Catch:{ SQLiteException -> 0x00f6 }\n r0 = 6\n long r18 = r9.getLong(r0) // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzks r0 = r29.zzg() // Catch:{ SQLiteException -> 0x00f6 }\n r1 = 7\n byte[] r1 = r9.getBlob(r1) // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable$Creator<com.google.android.gms.measurement.internal.zzao> r2 = com.google.android.gms.measurement.internal.zzao.CREATOR // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable r0 = r0.zza((byte[]) r1, r2) // Catch:{ SQLiteException -> 0x00f6 }\n r25 = r0\n com.google.android.gms.measurement.internal.zzao r25 = (com.google.android.gms.measurement.internal.zzao) r25 // Catch:{ SQLiteException -> 0x00f6 }\n r0 = 8\n long r3 = r9.getLong(r0) // Catch:{ SQLiteException -> 0x00f6 }\n r0 = 9\n long r26 = r9.getLong(r0) // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzks r0 = r29.zzg() // Catch:{ SQLiteException -> 0x00f6 }\n r1 = 10\n byte[] r1 = r9.getBlob(r1) // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable$Creator<com.google.android.gms.measurement.internal.zzao> r2 = com.google.android.gms.measurement.internal.zzao.CREATOR // Catch:{ SQLiteException -> 0x00f6 }\n android.os.Parcelable r0 = r0.zza((byte[]) r1, r2) // Catch:{ SQLiteException -> 0x00f6 }\n r28 = r0\n com.google.android.gms.measurement.internal.zzao r28 = (com.google.android.gms.measurement.internal.zzao) r28 // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzkr r17 = new com.google.android.gms.measurement.internal.zzkr // Catch:{ SQLiteException -> 0x00f6 }\n r1 = r17\n r2 = r31\n r6 = r16\n r1.<init>(r2, r3, r5, r6) // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzw r0 = new com.google.android.gms.measurement.internal.zzw // Catch:{ SQLiteException -> 0x00f6 }\n r14 = r0\n r15 = r30\n r14.<init>(r15, r16, r17, r18, r20, r21, r22, r23, r25, r26, r28) // Catch:{ SQLiteException -> 0x00f6 }\n boolean r1 = r9.moveToNext() // Catch:{ SQLiteException -> 0x00f6 }\n if (r1 == 0) goto L_0x00ef\n com.google.android.gms.measurement.internal.zzez r1 = r29.zzr() // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ SQLiteException -> 0x00f6 }\n java.lang.String r2 = \"Got multiple records for conditional property, expected one\"\n java.lang.Object r3 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r30) // Catch:{ SQLiteException -> 0x00f6 }\n com.google.android.gms.measurement.internal.zzex r4 = r29.zzo() // Catch:{ SQLiteException -> 0x00f6 }\n java.lang.String r4 = r4.zzc(r7) // Catch:{ SQLiteException -> 0x00f6 }\n r1.zza(r2, r3, r4) // Catch:{ SQLiteException -> 0x00f6 }\n L_0x00ef:\n if (r9 == 0) goto L_0x00f5\n r9.close()\n L_0x00f5:\n return r0\n L_0x00f6:\n r0 = move-exception\n goto L_0x0108\n L_0x00f8:\n r0 = move-exception\n r10 = r29\n goto L_0x0128\n L_0x00fc:\n r0 = move-exception\n r10 = r29\n goto L_0x0108\n L_0x0100:\n r0 = move-exception\n r10 = r29\n goto L_0x0129\n L_0x0104:\n r0 = move-exception\n r10 = r29\n r9 = r8\n L_0x0108:\n com.google.android.gms.measurement.internal.zzez r1 = r29.zzr() // Catch:{ all -> 0x0127 }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ all -> 0x0127 }\n java.lang.String r2 = \"Error querying conditional property\"\n java.lang.Object r3 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r30) // Catch:{ all -> 0x0127 }\n com.google.android.gms.measurement.internal.zzex r4 = r29.zzo() // Catch:{ all -> 0x0127 }\n java.lang.String r4 = r4.zzc(r7) // Catch:{ all -> 0x0127 }\n r1.zza(r2, r3, r4, r0) // Catch:{ all -> 0x0127 }\n if (r9 == 0) goto L_0x0126\n r9.close()\n L_0x0126:\n return r8\n L_0x0127:\n r0 = move-exception\n L_0x0128:\n r8 = r9\n L_0x0129:\n if (r8 == 0) goto L_0x012e\n r8.close()\n L_0x012e:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zzd(java.lang.String, java.lang.String):com.google.android.gms.measurement.internal.zzw\");\n }",
"public final com.google.android.gms.measurement.internal.zzkt zzc(java.lang.String r19, java.lang.String r20) {\n /*\n r18 = this;\n r8 = r20\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r19)\n com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r20)\n r18.zzd()\n r18.zzak()\n r9 = 0\n android.database.sqlite.SQLiteDatabase r10 = r18.mo40210c_() // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n java.lang.String r11 = \"user_attributes\"\n java.lang.String r0 = \"set_timestamp\"\n java.lang.String r1 = \"value\"\n java.lang.String r2 = \"origin\"\n java.lang.String[] r12 = new java.lang.String[]{r0, r1, r2} // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n java.lang.String r13 = \"app_id=? and name=?\"\n r0 = 2\n java.lang.String[] r14 = new java.lang.String[r0] // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n r1 = 0\n r14[r1] = r19 // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n r2 = 1\n r14[r2] = r8 // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n r15 = 0\n r16 = 0\n r17 = 0\n android.database.Cursor r10 = r10.query(r11, r12, r13, r14, r15, r16, r17) // Catch:{ SQLiteException -> 0x0085, all -> 0x0081 }\n boolean r3 = r10.moveToFirst() // Catch:{ SQLiteException -> 0x007d, all -> 0x0079 }\n if (r3 != 0) goto L_0x0041\n if (r10 == 0) goto L_0x0040\n r10.close()\n L_0x0040:\n return r9\n L_0x0041:\n long r5 = r10.getLong(r1) // Catch:{ SQLiteException -> 0x007d, all -> 0x0079 }\n r11 = r18\n java.lang.Object r7 = r11.zza((android.database.Cursor) r10, (int) r2) // Catch:{ SQLiteException -> 0x0077 }\n java.lang.String r3 = r10.getString(r0) // Catch:{ SQLiteException -> 0x0077 }\n com.google.android.gms.measurement.internal.zzkt r0 = new com.google.android.gms.measurement.internal.zzkt // Catch:{ SQLiteException -> 0x0077 }\n r1 = r0\n r2 = r19\n r4 = r20\n r1.<init>(r2, r3, r4, r5, r7) // Catch:{ SQLiteException -> 0x0077 }\n boolean r1 = r10.moveToNext() // Catch:{ SQLiteException -> 0x0077 }\n if (r1 == 0) goto L_0x0070\n com.google.android.gms.measurement.internal.zzez r1 = r18.zzr() // Catch:{ SQLiteException -> 0x0077 }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ SQLiteException -> 0x0077 }\n java.lang.String r2 = \"Got multiple records for user property, expected one. appId\"\n java.lang.Object r3 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r19) // Catch:{ SQLiteException -> 0x0077 }\n r1.zza(r2, r3) // Catch:{ SQLiteException -> 0x0077 }\n L_0x0070:\n if (r10 == 0) goto L_0x0076\n r10.close()\n L_0x0076:\n return r0\n L_0x0077:\n r0 = move-exception\n goto L_0x0089\n L_0x0079:\n r0 = move-exception\n r11 = r18\n goto L_0x00a9\n L_0x007d:\n r0 = move-exception\n r11 = r18\n goto L_0x0089\n L_0x0081:\n r0 = move-exception\n r11 = r18\n goto L_0x00aa\n L_0x0085:\n r0 = move-exception\n r11 = r18\n r10 = r9\n L_0x0089:\n com.google.android.gms.measurement.internal.zzez r1 = r18.zzr() // Catch:{ all -> 0x00a8 }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ all -> 0x00a8 }\n java.lang.String r2 = \"Error querying user property. appId\"\n java.lang.Object r3 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r19) // Catch:{ all -> 0x00a8 }\n com.google.android.gms.measurement.internal.zzex r4 = r18.zzo() // Catch:{ all -> 0x00a8 }\n java.lang.String r4 = r4.zzc(r8) // Catch:{ all -> 0x00a8 }\n r1.zza(r2, r3, r4, r0) // Catch:{ all -> 0x00a8 }\n if (r10 == 0) goto L_0x00a7\n r10.close()\n L_0x00a7:\n return r9\n L_0x00a8:\n r0 = move-exception\n L_0x00a9:\n r9 = r10\n L_0x00aa:\n if (r9 == 0) goto L_0x00af\n r9.close()\n L_0x00af:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zzc(java.lang.String, java.lang.String):com.google.android.gms.measurement.internal.zzkt\");\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }",
"public final android.util.Pair<com.google.android.gms.internal.measurement.zzcc.zzc, java.lang.Long> zza(java.lang.String r8, java.lang.Long r9) {\n /*\n r7 = this;\n r7.zzd()\n r7.zzak()\n r0 = 0\n android.database.sqlite.SQLiteDatabase r1 = r7.mo40210c_() // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n java.lang.String r2 = \"select main_event, children_to_process from main_event_params where app_id=? and event_id=?\"\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3] // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n r4 = 0\n r3[r4] = r8 // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n java.lang.String r5 = java.lang.String.valueOf(r9) // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n r6 = 1\n r3[r6] = r5 // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n android.database.Cursor r1 = r1.rawQuery(r2, r3) // Catch:{ SQLiteException -> 0x007d, all -> 0x007b }\n boolean r2 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x0079 }\n if (r2 != 0) goto L_0x0038\n com.google.android.gms.measurement.internal.zzez r8 = r7.zzr() // Catch:{ SQLiteException -> 0x0079 }\n com.google.android.gms.measurement.internal.zzfb r8 = r8.zzx() // Catch:{ SQLiteException -> 0x0079 }\n java.lang.String r9 = \"Main event not found\"\n r8.zza(r9) // Catch:{ SQLiteException -> 0x0079 }\n if (r1 == 0) goto L_0x0037\n r1.close()\n L_0x0037:\n return r0\n L_0x0038:\n byte[] r2 = r1.getBlob(r4) // Catch:{ SQLiteException -> 0x0079 }\n long r3 = r1.getLong(r6) // Catch:{ SQLiteException -> 0x0079 }\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ SQLiteException -> 0x0079 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r4 = com.google.android.gms.internal.measurement.zzcc.zzc.zzj() // Catch:{ IOException -> 0x0061 }\n com.google.android.gms.internal.measurement.zzjm r2 = com.google.android.gms.measurement.internal.zzks.zza(r4, (byte[]) r2) // Catch:{ IOException -> 0x0061 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r2 = (com.google.android.gms.internal.measurement.zzcc.zzc.zza) r2 // Catch:{ IOException -> 0x0061 }\n com.google.android.gms.internal.measurement.zzjj r2 = r2.zzv() // Catch:{ IOException -> 0x0061 }\n com.google.android.gms.internal.measurement.zzib r2 = (com.google.android.gms.internal.measurement.zzib) r2 // Catch:{ IOException -> 0x0061 }\n com.google.android.gms.internal.measurement.zzcc$zzc r2 = (com.google.android.gms.internal.measurement.zzcc.zzc) r2 // Catch:{ IOException -> 0x0061 }\n android.util.Pair r8 = android.util.Pair.create(r2, r3) // Catch:{ SQLiteException -> 0x0079 }\n if (r1 == 0) goto L_0x0060\n r1.close()\n L_0x0060:\n return r8\n L_0x0061:\n r2 = move-exception\n com.google.android.gms.measurement.internal.zzez r3 = r7.zzr() // Catch:{ SQLiteException -> 0x0079 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ SQLiteException -> 0x0079 }\n java.lang.String r4 = \"Failed to merge main event. appId, eventId\"\n java.lang.Object r8 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r8) // Catch:{ SQLiteException -> 0x0079 }\n r3.zza(r4, r8, r9, r2) // Catch:{ SQLiteException -> 0x0079 }\n if (r1 == 0) goto L_0x0078\n r1.close()\n L_0x0078:\n return r0\n L_0x0079:\n r8 = move-exception\n goto L_0x007f\n L_0x007b:\n r8 = move-exception\n goto L_0x0094\n L_0x007d:\n r8 = move-exception\n r1 = r0\n L_0x007f:\n com.google.android.gms.measurement.internal.zzez r9 = r7.zzr() // Catch:{ all -> 0x0092 }\n com.google.android.gms.measurement.internal.zzfb r9 = r9.zzf() // Catch:{ all -> 0x0092 }\n java.lang.String r2 = \"Error selecting main event\"\n r9.zza(r2, r8) // Catch:{ all -> 0x0092 }\n if (r1 == 0) goto L_0x0091\n r1.close()\n L_0x0091:\n return r0\n L_0x0092:\n r8 = move-exception\n r0 = r1\n L_0x0094:\n if (r0 == 0) goto L_0x0099\n r0.close()\n L_0x0099:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zza(java.lang.String, java.lang.Long):android.util.Pair\");\n }",
"private final synchronized void m46512Q() {\n if (!this.f40735q) {\n if (!this.f40731m.mo39849e()) {\n if (VERSION.SDK_INT < 18) {\n acd.m45777b(\"Disabling hardware acceleration on an AdView.\");\n m46513R();\n return;\n }\n acd.m45777b(\"Enabling hardware acceleration on an AdView.\");\n m46514S();\n return;\n }\n }\n acd.m45777b(\"Enabling hardware acceleration on an overlay.\");\n m46514S();\n }",
"private void upgradeDatabaseFrom3To4(SQLiteDatabase db) {\n db.execSQL(\"UPDATE OR IGNORE fields SET flags = \" + Field.TYPE_COUNTED_STRING_DISCRETE +\n \" WHERE measurement IN (SELECT id FROM measurements WHERE name = 'org.mozilla.searches.counts')\");\n }",
"private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) {\n /*\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r0)\n com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 }\n if (r1 == 0) goto L_0x000b\n com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x000b:\n com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 }\n int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 }\n r2 = 0\n if (r1 == 0) goto L_0x0018\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0018:\n java.lang.String r1 = \"com.google.android.gms\"\n r3 = 3\n android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d }\n java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d }\n java.lang.String r1 = \"com.google.android.gms.chimera.container.DynamiteLoaderImpl\"\n java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d }\n java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d }\n android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d }\n if (r4 != 0) goto L_0x0033\n r4 = r2\n goto L_0x0047\n L_0x0033:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoader\"\n android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d }\n boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d }\n if (r3 == 0) goto L_0x0041\n r4 = r1\n com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d }\n goto L_0x0047\n L_0x0041:\n com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d }\n r1.<init>(r4) // Catch:{ Exception -> 0x004d }\n r4 = r1\n L_0x0047:\n if (r4 == 0) goto L_0x0067\n zzaSG = r4 // Catch:{ Exception -> 0x004d }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x004d:\n r4 = move-exception\n java.lang.String r1 = \"Failed to load IDynamiteLoader from GmsCore: \"\n java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 }\n java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 }\n int r3 = r4.length() // Catch:{ all -> 0x0069 }\n if (r3 == 0) goto L_0x0062\n r1.concat(r4) // Catch:{ all -> 0x0069 }\n goto L_0x0067\n L_0x0062:\n java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 }\n r4.<init>(r1) // Catch:{ all -> 0x0069 }\n L_0x0067:\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0069:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj\");\n }",
"public static String m21414q(Context context) {\n Location r = m21415r(context);\n return r != null ? String.valueOf(r.getLongitude()) : \"\";\n }",
"public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = 0;\n r2 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));\n if (r2 <= 0) goto L_0x000b;\n L_0x0006:\n r0 = \"await must not be called on the UI thread when time is greater than zero.\";\n com.google.android.gms.common.internal.ad.m9057c(r0);\n L_0x000b:\n r0 = r3.f11872k;\n r1 = 1;\n r0 = r0 ^ r1;\n r2 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r0, r2);\n r0 = r3.f11876o;\n if (r0 != 0) goto L_0x0019;\n L_0x0018:\n goto L_0x001a;\n L_0x0019:\n r1 = 0;\n L_0x001a:\n r0 = \"Cannot await if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r0);\n r0 = r3.f11866e;\t Catch:{ InterruptedException -> 0x002d }\n r4 = r0.await(r4, r6);\t Catch:{ InterruptedException -> 0x002d }\n if (r4 != 0) goto L_0x0032;\t Catch:{ InterruptedException -> 0x002d }\n L_0x0027:\n r4 = com.google.android.gms.common.api.Status.zzfnl;\t Catch:{ InterruptedException -> 0x002d }\n r3.m14226b(r4);\t Catch:{ InterruptedException -> 0x002d }\n goto L_0x0032;\n L_0x002d:\n r4 = com.google.android.gms.common.api.Status.zzfnj;\n r3.m14226b(r4);\n L_0x0032:\n r4 = r3.m14229d();\n r5 = \"Result is not ready.\";\n com.google.android.gms.common.internal.ad.m9051a(r4, r5);\n r4 = r3.mo3575g();\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(long, java.util.concurrent.TimeUnit):R\");\n }",
"public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"private void m10992cQ(Context context) {\n try {\n String userId = UserServiceProxy.getUserId();\n String dz = C4580b.m11653dz(context);\n if (!TextUtils.isEmpty(dz)) {\n C4041a.m10039MV();\n C4041a.m10041N(dz, userId);\n String countryCode = AppStateModel.getInstance().getCountryCode();\n IEditorService iEditorService = (IEditorService) BizServiceManager.getService(IEditorService.class);\n String str = null;\n if (iEditorService != null) {\n str = iEditorService.getGpuType();\n }\n C4037m.m10029g(countryCode, dz, userId, str);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private final java.lang.Integer m22166b(java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r4 = this;\n r0 = java.lang.Integer.parseInt(r5);\t Catch:{ NumberFormatException -> 0x0009 }\n r0 = java.lang.Integer.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0009 }\n return r0;\n L_0x0009:\n r0 = \"PhenotypeFlag\";\n r1 = r4.a;\n r2 = java.lang.String.valueOf(r1);\n r2 = r2.length();\n r2 = r2 + 28;\n r3 = java.lang.String.valueOf(r5);\n r3 = r3.length();\n r2 = r2 + r3;\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \"Invalid integer value for \";\n r3.append(r2);\n r3.append(r1);\n r1 = \": \";\n r3.append(r1);\n r3.append(r5);\n r5 = r3.toString();\n android.util.Log.e(r0, r5);\n r5 = 0;\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.ai.b(java.lang.String):java.lang.Integer\");\n }",
"private void m14044a(C3372e c3372e, BDLocation bDLocation, SQLiteDatabase sQLiteDatabase) {\n if (bDLocation != null && bDLocation.getLocType() == 161) {\n if ((\"wf\".equals(bDLocation.getNetworkLocationType()) || bDLocation.getRadius() < 300.0f) && c3372e.f18275a != null) {\n int currentTimeMillis = (int) (System.currentTimeMillis() >> 28);\n System.currentTimeMillis();\n int i = 0;\n for (ScanResult scanResult : c3372e.f18275a) {\n if (scanResult.level != 0) {\n int i2 = i + 1;\n if (i2 <= 6) {\n ContentValues contentValues = new ContentValues();\n String encode2 = Jni.encode2(scanResult.BSSID.replace(Config.TRACE_TODAY_VISIT_SPLIT, \"\"));\n try {\n int i3;\n int i4;\n double d;\n Object obj;\n double d2;\n Cursor rawQuery = sQLiteDatabase.rawQuery(\"select * from wof where id = \\\"\" + encode2 + \"\\\";\", null);\n if (rawQuery == null || !rawQuery.moveToFirst()) {\n i3 = 0;\n i4 = 0;\n d = 0.0d;\n obj = null;\n d2 = 0.0d;\n } else {\n double d3 = rawQuery.getDouble(1) - 113.2349d;\n double d4 = rawQuery.getDouble(2) - 432.1238d;\n int i5 = rawQuery.getInt(4);\n i3 = rawQuery.getInt(5);\n i4 = i5;\n d = d3;\n double d5 = d4;\n obj = 1;\n d2 = d5;\n }\n if (rawQuery != null) {\n rawQuery.close();\n }\n if (obj == null) {\n contentValues.put(\"mktime\", Double.valueOf(bDLocation.getLongitude() + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(bDLocation.getLatitude() + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(1));\n contentValues.put(\"cc\", Integer.valueOf(1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n contentValues.put(\"id\", encode2);\n sQLiteDatabase.insert(\"wof\", null, contentValues);\n } else if (i3 == 0) {\n i = i2;\n } else {\n float[] fArr = new float[1];\n Location.distanceBetween(d2, d, bDLocation.getLatitude(), bDLocation.getLongitude(), fArr);\n if (fArr[0] > 1500.0f) {\n int i6 = i3 + 1;\n if (i6 <= 10 || i6 <= i4 * 3) {\n contentValues.put(\"cc\", Integer.valueOf(i6));\n } else {\n contentValues.put(\"mktime\", Double.valueOf(bDLocation.getLongitude() + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(bDLocation.getLatitude() + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(1));\n contentValues.put(\"cc\", Integer.valueOf(1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n }\n } else {\n d2 = ((d2 * ((double) i4)) + bDLocation.getLatitude()) / ((double) (i4 + 1));\n ContentValues contentValues2 = contentValues;\n contentValues2.put(\"mktime\", Double.valueOf((((d * ((double) i4)) + bDLocation.getLongitude()) / ((double) (i4 + 1))) + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(d2 + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(i4 + 1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n }\n try {\n if (sQLiteDatabase.update(\"wof\", contentValues, \"id = \\\"\" + encode2 + \"\\\"\", null) <= 0) {\n }\n } catch (Exception e) {\n }\n }\n } catch (Exception e2) {\n }\n i = i2;\n } else {\n return;\n }\n }\n }\n }\n }\n }",
"String m6946g() {\n return C1110i.m6017b(m6452q(), \"com.crashlytics.ApiEndpoint\");\n }",
"public final java.lang.String zza(long r5) {\n /*\n r4 = this;\n r4.zzd()\n r4.zzak()\n r0 = 0\n android.database.sqlite.SQLiteDatabase r1 = r4.mo40210c_() // Catch:{ SQLiteException -> 0x0043, all -> 0x0041 }\n java.lang.String r2 = \"select app_id from apps where app_id in (select distinct app_id from raw_events) and config_fetched_time < ? order by failed_config_fetch_time limit 1;\"\n r3 = 1\n java.lang.String[] r3 = new java.lang.String[r3] // Catch:{ SQLiteException -> 0x0043, all -> 0x0041 }\n java.lang.String r5 = java.lang.String.valueOf(r5) // Catch:{ SQLiteException -> 0x0043, all -> 0x0041 }\n r6 = 0\n r3[r6] = r5 // Catch:{ SQLiteException -> 0x0043, all -> 0x0041 }\n android.database.Cursor r5 = r1.rawQuery(r2, r3) // Catch:{ SQLiteException -> 0x0043, all -> 0x0041 }\n boolean r1 = r5.moveToFirst() // Catch:{ SQLiteException -> 0x003f }\n if (r1 != 0) goto L_0x0035\n com.google.android.gms.measurement.internal.zzez r6 = r4.zzr() // Catch:{ SQLiteException -> 0x003f }\n com.google.android.gms.measurement.internal.zzfb r6 = r6.zzx() // Catch:{ SQLiteException -> 0x003f }\n java.lang.String r1 = \"No expired configs for apps with pending events\"\n r6.zza(r1) // Catch:{ SQLiteException -> 0x003f }\n if (r5 == 0) goto L_0x0034\n r5.close()\n L_0x0034:\n return r0\n L_0x0035:\n java.lang.String r6 = r5.getString(r6) // Catch:{ SQLiteException -> 0x003f }\n if (r5 == 0) goto L_0x003e\n r5.close()\n L_0x003e:\n return r6\n L_0x003f:\n r6 = move-exception\n goto L_0x0045\n L_0x0041:\n r6 = move-exception\n goto L_0x005a\n L_0x0043:\n r6 = move-exception\n r5 = r0\n L_0x0045:\n com.google.android.gms.measurement.internal.zzez r1 = r4.zzr() // Catch:{ all -> 0x0058 }\n com.google.android.gms.measurement.internal.zzfb r1 = r1.zzf() // Catch:{ all -> 0x0058 }\n java.lang.String r2 = \"Error selecting expired configs\"\n r1.zza(r2, r6) // Catch:{ all -> 0x0058 }\n if (r5 == 0) goto L_0x0057\n r5.close()\n L_0x0057:\n return r0\n L_0x0058:\n r6 = move-exception\n r0 = r5\n L_0x005a:\n if (r0 == 0) goto L_0x005f\n r0.close()\n L_0x005f:\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zza(long):java.lang.String\");\n }",
"protected abstract float getMeasurement();",
"public double getBiasInNs() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.location.GpsClock.getBiasInNs():double, dex: in method: android.location.GpsClock.getBiasInNs():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getBiasInNs():double\");\n }",
"public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }",
"public static native int legacy2aidl_audio_usage_t_AudioUsage(int /*audio_usage_t*/ legacy);",
"@Override // com.google.android.gms.internal.measurement.zzzl, com.google.android.gms.internal.measurement.zzzr\n public final int zzf() {\n return super.zzf() + zzzj.zzh(1, this.key) + zzzj.zzh(2, this.value);\n }",
"public final void mo39749q() {\n HashMap hashMap = new HashMap(3);\n hashMap.put(\"app_muted\", String.valueOf(C14793ay.m42899e().mo39212b()));\n hashMap.put(\"app_volume\", String.valueOf(C14793ay.m42899e().mo39209a()));\n hashMap.put(\"device_volume\", String.valueOf(adh.m45630a(getContext())));\n mo39809a(\"volume\", (Map<String, ?>) hashMap);\n }",
"public void setTimeUncertaintyInNs(double r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeUncertaintyInNs(double):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeUncertaintyInNs(double):void\");\n }",
"public abstract double getMeasurement();",
"public abstract double getMeasurement();",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }",
"public String mo27383j() {\n return \"com.google.android.gms.location.internal.IGoogleLocationManagerService\";\n }",
"private void m6600Q() {\n this.f5397Q = new C1290d(this, (C1296Ua) null);\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.RECORDER_STATE\");\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.HANDLE_ERROR\");\n intentFilter.addAction(\"android.intent.action.USER_SWITCHED\");\n C0900b.m4902a(this.f5389I).mo4900a(this.f5397Q, intentFilter);\n }",
"public final void mo4165yQ() {\n if (this.bUR == Long.MAX_VALUE) {\n this.bUR = System.currentTimeMillis();\n }\n }",
"public double getTimeUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getTimeUncertaintyInNs():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getTimeUncertaintyInNs():double\");\n }",
"long getAudioLengthMs(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.getAudioLengthMs(int):long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.getAudioLengthMs(int):long\");\n }",
"static /* synthetic */ double m307-set0(android.location.GpsClock r1, double r2) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.location.GpsClock.-set0(android.location.GpsClock, double):double, dex: in method: android.location.GpsClock.-set0(android.location.GpsClock, double):double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set0(android.location.GpsClock, double):double\");\n }",
"public MMTMeasurement(){\n }",
"public interface C1326d extends IInterface {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a */\n public static abstract class C1327a extends Binder implements C1326d {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a$a */\n private static class C1328a implements C1326d {\n\n /* renamed from: ky */\n private IBinder f3425ky;\n\n C1328a(IBinder iBinder) {\n this.f3425ky = iBinder;\n }\n\n /* renamed from: a */\n public void mo7372a(C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeInt(i3);\n obtain.writeString(str);\n this.f3425ky.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeString(str);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeString(str2);\n obtain.writeString(str3);\n this.f3425ky.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n obtain.writeString(str2);\n this.f3425ky.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeStringList(list);\n this.f3425ky.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f3425ky;\n }\n\n /* renamed from: b */\n public void mo7381b(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void clearDefaultAccount() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public String getAccountName() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hl */\n public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hm */\n public boolean mo7389hm() throws RemoteException {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hn */\n public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void removeMoment(String momentId) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeString(momentId);\n this.f3425ky.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n /* renamed from: aA */\n public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r4v0 */\n /* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r4v5 */\n /* JADX WARNING: type inference failed for: r4v6 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]\n uses: [com.google.android.gms.internal.fh, android.net.Uri]\n mth insns count: 188\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 3 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {\n /*\n r8 = this;\n r4 = 0\n r7 = 1\n switch(r9) {\n case 1: goto L_0x0010;\n case 2: goto L_0x0028;\n case 3: goto L_0x0044;\n case 4: goto L_0x005c;\n case 5: goto L_0x0076;\n case 6: goto L_0x0086;\n case 8: goto L_0x0093;\n case 9: goto L_0x00a8;\n case 14: goto L_0x00de;\n case 16: goto L_0x0113;\n case 17: goto L_0x0139;\n case 18: goto L_0x014a;\n case 19: goto L_0x0163;\n case 34: goto L_0x0178;\n case 40: goto L_0x0191;\n case 41: goto L_0x01aa;\n case 42: goto L_0x01bb;\n case 43: goto L_0x01d1;\n case 44: goto L_0x01e2;\n case 45: goto L_0x01fb;\n case 1598968902: goto L_0x000a;\n default: goto L_0x0005;\n }\n L_0x0005:\n boolean r7 = super.onTransact(r9, r10, r11, r12)\n L_0x0009:\n return r7\n L_0x000a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r11.writeString(r0)\n goto L_0x0009\n L_0x0010:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7378a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0028:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n java.lang.String r2 = r10.readString()\n r8.mo7379a(r0, r1, r2)\n r11.writeNoException()\n goto L_0x0009\n L_0x0044:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7382b(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x005c:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0074\n com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)\n L_0x006d:\n r8.mo7372a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0074:\n r0 = r4\n goto L_0x006d\n L_0x0076:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.getAccountName()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x0086:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n r8.clearDefaultAccount()\n r11.writeNoException()\n goto L_0x0009\n L_0x0093:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7373a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00a8:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00da\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r1 = r0\n L_0x00c4:\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00dc\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.os.Bundle r0 = (android.os.Bundle) r0\n L_0x00d2:\n r8.mo7376a(r2, r1, r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00da:\n r1 = r4\n goto L_0x00c4\n L_0x00dc:\n r0 = r4\n goto L_0x00d2\n L_0x00de:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n java.lang.String r3 = r10.readString()\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0102\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r4 = r0\n L_0x0102:\n java.lang.String r5 = r10.readString()\n java.lang.String r6 = r10.readString()\n r0 = r8\n r0.mo7375a(r1, r2, r3, r4, r5, r6)\n r11.writeNoException()\n goto L_0x0009\n L_0x0113:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n int r3 = r10.readInt()\n int r4 = r10.readInt()\n java.lang.String r5 = r10.readString()\n r0 = r8\n r0.mo7374a(r1, r2, r3, r4, r5)\n r11.writeNoException()\n goto L_0x0009\n L_0x0139:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r10.readString()\n r8.removeMoment(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x014a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7383c(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0163:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7381b(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0178:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.util.ArrayList r1 = r10.createStringArrayList()\n r8.mo7380a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0191:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7385d(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01aa:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7388hl()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01bb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n boolean r0 = r8.mo7389hm()\n r11.writeNoException()\n if (r0 == 0) goto L_0x01cf\n r0 = r7\n L_0x01ca:\n r11.writeInt(r0)\n goto L_0x0009\n L_0x01cf:\n r0 = 0\n goto L_0x01ca\n L_0x01d1:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7390hn()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01e2:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7386e(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01fb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r1 = r10.readInt()\n if (r1 == 0) goto L_0x0214\n com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)\n L_0x0214:\n r8.mo7377a(r0, r4)\n r11.writeNoException()\n goto L_0x0009\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo7372a(C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7373a(C1320b bVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;\n\n /* renamed from: a */\n void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7378a(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;\n\n /* renamed from: a */\n void mo7380a(C1320b bVar, List<String> list) throws RemoteException;\n\n /* renamed from: b */\n void mo7381b(C1320b bVar) throws RemoteException;\n\n /* renamed from: b */\n void mo7382b(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: c */\n void mo7383c(C1320b bVar, String str) throws RemoteException;\n\n void clearDefaultAccount() throws RemoteException;\n\n /* renamed from: d */\n void mo7385d(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: e */\n void mo7386e(C1320b bVar, String str) throws RemoteException;\n\n String getAccountName() throws RemoteException;\n\n /* renamed from: hl */\n String mo7388hl() throws RemoteException;\n\n /* renamed from: hm */\n boolean mo7389hm() throws RemoteException;\n\n /* renamed from: hn */\n String mo7390hn() throws RemoteException;\n\n void removeMoment(String str) throws RemoteException;\n}",
"@Override // com.google.android.gms.internal.measurement.zzgi\n public final /* synthetic */ zzgi zza(zzgj zzgj) {\n return zza((zza<MessageType, BuilderType>) ((zzib) zzgj));\n }",
"public long getFullBiasInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getFullBiasInNs():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getFullBiasInNs():long\");\n }",
"static /* synthetic */ long m312-set5(android.location.GpsClock r1, long r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set5(android.location.GpsClock, long):long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set5(android.location.GpsClock, long):long\");\n }",
"public final void m12868a(int r5, int r6, android.content.Intent r7) {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n switch(r5) {\n case 1: goto L_0x0017;\n case 2: goto L_0x000c;\n default: goto L_0x0005;\n };\n L_0x0005:\n r0 = r1;\n L_0x0006:\n if (r0 == 0) goto L_0x0027;\n L_0x0008:\n m12867b(r4);\n L_0x000b:\n return;\n L_0x000c:\n r2 = r4.o();\n r2 = com.google.android.gms.common.GoogleApiAvailability.a(r2);\n if (r2 != 0) goto L_0x0005;\n L_0x0016:\n goto L_0x0006;\n L_0x0017:\n r2 = -1;\n if (r6 == r2) goto L_0x0006;\n L_0x001a:\n if (r6 != 0) goto L_0x0005;\n L_0x001c:\n r0 = new com.google.android.gms.common.ConnectionResult;\n r2 = 13;\n r3 = 0;\n r0.<init>(r2, r3);\n r4.f6901e = r0;\n goto L_0x0005;\n L_0x0027:\n r0 = r4.f6900d;\n r1 = r4.f6901e;\n m12865a(r4, r0, r1);\n goto L_0x000b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzmr.a(int, int, android.content.Intent):void\");\n }",
"public final android.os.Bundle zzi(java.lang.String r8) {\n /*\n r7 = this;\n r7.zzd()\n r7.zzak()\n r0 = 0\n android.database.sqlite.SQLiteDatabase r1 = r7.mo40210c_() // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n java.lang.String r2 = \"select parameters from default_event_params where app_id=?\"\n r3 = 1\n java.lang.String[] r3 = new java.lang.String[r3] // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n r4 = 0\n r3[r4] = r8 // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n android.database.Cursor r1 = r1.rawQuery(r2, r3) // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n boolean r2 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x00c0 }\n if (r2 != 0) goto L_0x0031\n com.google.android.gms.measurement.internal.zzez r8 = r7.zzr() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.measurement.internal.zzfb r8 = r8.zzx() // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r2 = \"Default event parameters not found\"\n r8.zza(r2) // Catch:{ SQLiteException -> 0x00c0 }\n if (r1 == 0) goto L_0x0030\n r1.close()\n L_0x0030:\n return r0\n L_0x0031:\n byte[] r2 = r1.getBlob(r4) // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r3 = com.google.android.gms.internal.measurement.zzcc.zzc.zzj() // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzjm r2 = com.google.android.gms.measurement.internal.zzks.zza(r3, (byte[]) r2) // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r2 = (com.google.android.gms.internal.measurement.zzcc.zzc.zza) r2 // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzjj r2 = r2.zzv() // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzib r2 = (com.google.android.gms.internal.measurement.zzib) r2 // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzcc$zzc r2 = (com.google.android.gms.internal.measurement.zzcc.zzc) r2 // Catch:{ IOException -> 0x00a8 }\n r7.zzg() // Catch:{ SQLiteException -> 0x00c0 }\n java.util.List r8 = r2.zza() // Catch:{ SQLiteException -> 0x00c0 }\n android.os.Bundle r2 = new android.os.Bundle // Catch:{ SQLiteException -> 0x00c0 }\n r2.<init>() // Catch:{ SQLiteException -> 0x00c0 }\n java.util.Iterator r8 = r8.iterator() // Catch:{ SQLiteException -> 0x00c0 }\n L_0x0058:\n boolean r3 = r8.hasNext() // Catch:{ SQLiteException -> 0x00c0 }\n if (r3 == 0) goto L_0x00a0\n java.lang.Object r3 = r8.next() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.internal.measurement.zzcc$zze r3 = (com.google.android.gms.internal.measurement.zzcc.zze) r3 // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r4 = r3.zzb() // Catch:{ SQLiteException -> 0x00c0 }\n boolean r5 = r3.zzi() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0076\n double r5 = r3.zzj() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putDouble(r4, r5) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0076:\n boolean r5 = r3.zzg() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0084\n float r3 = r3.zzh() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putFloat(r4, r3) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0084:\n boolean r5 = r3.zzc() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0092\n java.lang.String r3 = r3.zzd() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putString(r4, r3) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0092:\n boolean r5 = r3.zze() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x009f\n long r5 = r3.zzf() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putLong(r4, r5) // Catch:{ SQLiteException -> 0x00c0 }\n L_0x009f:\n goto L_0x0058\n L_0x00a0:\n if (r1 == 0) goto L_0x00a7\n r1.close()\n L_0x00a7:\n return r2\n L_0x00a8:\n r2 = move-exception\n com.google.android.gms.measurement.internal.zzez r3 = r7.zzr() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r4 = \"Failed to retrieve default event parameters. appId\"\n java.lang.Object r8 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r8) // Catch:{ SQLiteException -> 0x00c0 }\n r3.zza(r4, r8, r2) // Catch:{ SQLiteException -> 0x00c0 }\n if (r1 == 0) goto L_0x00bf\n r1.close()\n L_0x00bf:\n return r0\n L_0x00c0:\n r8 = move-exception\n goto L_0x00c6\n L_0x00c2:\n r8 = move-exception\n goto L_0x00db\n L_0x00c4:\n r8 = move-exception\n r1 = r0\n L_0x00c6:\n com.google.android.gms.measurement.internal.zzez r2 = r7.zzr() // Catch:{ all -> 0x00d9 }\n com.google.android.gms.measurement.internal.zzfb r2 = r2.zzf() // Catch:{ all -> 0x00d9 }\n java.lang.String r3 = \"Error selecting default event parameters\"\n r2.zza(r3, r8) // Catch:{ all -> 0x00d9 }\n if (r1 == 0) goto L_0x00d8\n r1.close()\n L_0x00d8:\n return r0\n L_0x00d9:\n r8 = move-exception\n r0 = r1\n L_0x00db:\n if (r0 == 0) goto L_0x00e0\n r0.close()\n L_0x00e0:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zzi(java.lang.String):android.os.Bundle\");\n }",
"private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }",
"public static native int aidl2legacy_AudioUsage_audio_usage_t(int /*AudioUsage.* */ aidl);",
"public String mo27384k() {\n return \"com.google.android.location.internal.GoogleLocationManagerService.START\";\n }",
"@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }",
"public double getBiasUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getBiasUncertaintyInNs():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getBiasUncertaintyInNs():double\");\n }",
"public void resetTimeUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.resetTimeUncertaintyInNs():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetTimeUncertaintyInNs():void\");\n }",
"public final String mo6464b() {\n return \"com.google.android.gms.ads.eventattestation.internal.IEventAttestationService\";\n }",
"static /* synthetic */ long m314-set7(android.location.GpsClock r1, long r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set7(android.location.GpsClock, long):long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set7(android.location.GpsClock, long):long\");\n }",
"public com.google.android.gms.internal.zzp zzc(com.google.android.gms.internal.zzr<?> r21) throws com.google.android.gms.internal.zzae {\n /*\n r20 = this;\n r18 = android.os.SystemClock.elapsedRealtime();\n L_0x0004:\n r3 = 0;\n r9 = 0;\n r8 = java.util.Collections.emptyList();\n r4 = r21.zze();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n if (r4 != 0) goto L_0x0040;\n L_0x0010:\n r2 = java.util.Collections.emptyMap();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n L_0x0014:\n r0 = r20;\n r4 = r0.zzbp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r0 = r21;\n r17 = r4.zza(r0, r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r3 = r17.getStatusCode();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r8 = r17.zzp();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r2 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n if (r3 != r2) goto L_0x008b;\n L_0x002a:\n r2 = r21.zze();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n if (r2 != 0) goto L_0x0075;\n L_0x0030:\n r2 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r3 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n r4 = 0;\n r5 = 1;\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n L_0x003f:\n return r2;\n L_0x0040:\n r2 = new java.util.HashMap;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.<init>();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r5 = r4.zza;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n if (r5 == 0) goto L_0x0051;\n L_0x0049:\n r5 = \"If-None-Match\";\n r6 = r4.zza;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.put(r5, r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n L_0x0051:\n r6 = r4.zzc;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r10 = 0;\n r5 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r5 <= 0) goto L_0x0014;\n L_0x0059:\n r5 = \"If-Modified-Since\";\n r6 = r4.zzc;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r4 = com.google.android.gms.internal.zzap.zzb(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.put(r5, r4);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n goto L_0x0014;\n L_0x0066:\n r2 = move-exception;\n r2 = \"socket\";\n r3 = new com.google.android.gms.internal.zzad;\n r3.<init>();\n r0 = r21;\n zza(r2, r0, r3);\n goto L_0x0004;\n L_0x0075:\n r16 = zza(r8, r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r10 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r11 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n r12 = r2.data;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r13 = 1;\n r2 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r14 = r2 - r18;\n r10.<init>(r11, r12, r13, r14, r16);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r2 = r10;\n goto L_0x003f;\n L_0x008b:\n r2 = r17.getContent();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n if (r2 == 0) goto L_0x0109;\n L_0x0091:\n r4 = r17.getContentLength();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r0 = r20;\n r4 = r0.zza(r2, r4);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n L_0x009b:\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6 - r18;\n r2 = DEBUG;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n if (r2 != 0) goto L_0x00ab;\n L_0x00a5:\n r10 = 3000; // 0xbb8 float:4.204E-42 double:1.482E-320;\n r2 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r2 <= 0) goto L_0x00de;\n L_0x00ab:\n r5 = \"HTTP response for request=<%s> [lifetime=%d], [size=%s], [rc=%d], [retryCount=%s]\";\n r2 = 5;\n r9 = new java.lang.Object[r2];\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 0;\n r9[r2] = r21;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 1;\n r6 = java.lang.Long.valueOf(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = 2;\n if (r4 == 0) goto L_0x010d;\n L_0x00be:\n r2 = r4.length;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00c3:\n r9[r6] = r2;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 3;\n r6 = java.lang.Integer.valueOf(r3);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 4;\n r6 = r21.zzi();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6.zzc();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = java.lang.Integer.valueOf(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n com.google.android.gms.internal.zzaf.zzb(r5, r9);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00de:\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r3 < r2) goto L_0x00e6;\n L_0x00e2:\n r2 = 299; // 0x12b float:4.19E-43 double:1.477E-321;\n if (r3 <= r2) goto L_0x0111;\n L_0x00e6:\n r2 = new java.io.IOException;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2.<init>();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n throw r2;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00ec:\n r2 = move-exception;\n r3 = r2;\n r4 = new java.lang.RuntimeException;\n r5 = \"Bad URL \";\n r2 = r21.getUrl();\n r2 = java.lang.String.valueOf(r2);\n r6 = r2.length();\n if (r6 == 0) goto L_0x0164;\n L_0x0101:\n r2 = r5.concat(r2);\n L_0x0105:\n r4.<init>(r2, r3);\n throw r4;\n L_0x0109:\n r2 = 0;\n r4 = new byte[r2];\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n goto L_0x009b;\n L_0x010d:\n r2 = \"null\";\n goto L_0x00c3;\n L_0x0111:\n r2 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r5 = 0;\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n goto L_0x003f;\n L_0x011f:\n r2 = move-exception;\n r3 = r17;\n L_0x0122:\n if (r3 == 0) goto L_0x016a;\n L_0x0124:\n r3 = r3.getStatusCode();\n r2 = \"Unexpected response code %d for %s\";\n r5 = 2;\n r5 = new java.lang.Object[r5];\n r6 = 0;\n r7 = java.lang.Integer.valueOf(r3);\n r5[r6] = r7;\n r6 = 1;\n r7 = r21.getUrl();\n r5[r6] = r7;\n com.google.android.gms.internal.zzaf.zzc(r2, r5);\n if (r4 == 0) goto L_0x0192;\n L_0x0141:\n r2 = new com.google.android.gms.internal.zzp;\n r5 = 0;\n r6 = android.os.SystemClock.elapsedRealtime();\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\n r4 = 401; // 0x191 float:5.62E-43 double:1.98E-321;\n if (r3 == r4) goto L_0x0155;\n L_0x0151:\n r4 = 403; // 0x193 float:5.65E-43 double:1.99E-321;\n if (r3 != r4) goto L_0x0170;\n L_0x0155:\n r3 = \"auth\";\n r4 = new com.google.android.gms.internal.zza;\n r4.<init>(r2);\n r0 = r21;\n zza(r3, r0, r4);\n goto L_0x0004;\n L_0x0164:\n r2 = new java.lang.String;\n r2.<init>(r5);\n goto L_0x0105;\n L_0x016a:\n r3 = new com.google.android.gms.internal.zzq;\n r3.<init>(r2);\n throw r3;\n L_0x0170:\n r4 = 400; // 0x190 float:5.6E-43 double:1.976E-321;\n if (r3 < r4) goto L_0x017e;\n L_0x0174:\n r4 = 499; // 0x1f3 float:6.99E-43 double:2.465E-321;\n if (r3 > r4) goto L_0x017e;\n L_0x0178:\n r3 = new com.google.android.gms.internal.zzg;\n r3.<init>(r2);\n throw r3;\n L_0x017e:\n r4 = 500; // 0x1f4 float:7.0E-43 double:2.47E-321;\n if (r3 < r4) goto L_0x018c;\n L_0x0182:\n r4 = 599; // 0x257 float:8.4E-43 double:2.96E-321;\n if (r3 > r4) goto L_0x018c;\n L_0x0186:\n r3 = new com.google.android.gms.internal.zzac;\n r3.<init>(r2);\n throw r3;\n L_0x018c:\n r3 = new com.google.android.gms.internal.zzac;\n r3.<init>(r2);\n throw r3;\n L_0x0192:\n r2 = \"network\";\n r3 = new com.google.android.gms.internal.zzo;\n r3.<init>();\n r0 = r21;\n zza(r2, r0, r3);\n goto L_0x0004;\n L_0x01a1:\n r2 = move-exception;\n r4 = r9;\n goto L_0x0122;\n L_0x01a5:\n r2 = move-exception;\n r4 = r9;\n r3 = r17;\n goto L_0x0122;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaj.zzc(com.google.android.gms.internal.zzr):com.google.android.gms.internal.zzp\");\n }",
"public void mo3864q() {\n /*\n r47 = this;\n r1 = r47\n r2 = -36394236204204(0xffffdee64e7aab54, double:NaN)\n p000.C0200av.m970a(r2)\n r2 = -36424300975276(0xffffdedf4e7aab54, double:NaN)\n p000.C0200av.m970a(r2)\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0432eo.m1606a(r0)\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r8 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n r18 = -27091337041068(0xffffe75c4e7aab54, double:NaN)\n r20 = 2\n r21 = -26726264820908(0xffffe7b14e7aab54, double:NaN)\n r30 = -26756329591980(0xffffe7aa4e7aab54, double:NaN)\n r32 = -26919538349228(0xffffe7844e7aab54, double:NaN)\n r15 = 4\n r4 = 28\n r34 = -27061272269996(0xffffe7634e7aab54, double:NaN)\n r14 = 1\n java.lang.Integer r5 = java.lang.Integer.valueOf(r14)\n r12 = 0\n java.lang.Integer r36 = java.lang.Integer.valueOf(r12)\n if (r0 == 0) goto L_0x023e\n fo r0 = p000.C0489fo.USB\n go r13 = p000.C0544go.f2400t\n r1.mo3857e(r12, r0, r13)\n go r10 = p000.C0544go.f2344F\n r1.mo3857e(r14, r0, r10)\n ko r10 = r1.f3511b\n java.lang.Boolean r43 = java.lang.Boolean.TRUE\n r10.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x006d\n L_0x006a:\n r46 = r0\n goto L_0x0077\n L_0x006d:\n r23 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r23)\n goto L_0x006a\n L_0x0077:\n boolean r0 = r46.isEmpty()\n if (r0 == 0) goto L_0x009c\n boolean r0 = r13.mo2961a()\n if (r0 != 0) goto L_0x009c\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n r5 = 16\n r4 = r10\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n r2 = 4\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r6 = 0\n r7 = 1\n goto L_0x0431\n L_0x009c:\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 >= r4) goto L_0x016a\n java.lang.String r0 = r13.f2410c\n go r2 = p000.C0544go.f2374g\n if (r13 == r2) goto L_0x00b1\n go r2 = p000.C0544go.f2376h\n if (r13 == r2) goto L_0x00b1\n go r2 = p000.C0544go.f2352N\n if (r13 != r2) goto L_0x00af\n goto L_0x00b1\n L_0x00af:\n r2 = 0\n goto L_0x00b2\n L_0x00b1:\n r2 = 1\n L_0x00b2:\n if (r2 == 0) goto L_0x00bd\n r2 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n L_0x00bd:\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00e0 }\n java.lang.Class[] r2 = r2.getParameterTypes() // Catch:{ Exception -> 0x00e0 }\n int r2 = r2.length // Catch:{ Exception -> 0x00e0 }\n if (r2 != r15) goto L_0x00e2\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00e0 }\n java.lang.Class<?> r3 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00e0 }\n java.lang.Object[] r4 = new java.lang.Object[r15] // Catch:{ Exception -> 0x00e0 }\n int r6 = r13.f2409b // Catch:{ Exception -> 0x00e0 }\n java.lang.Integer r6 = java.lang.Integer.valueOf(r6) // Catch:{ Exception -> 0x00e0 }\n r4[r12] = r6 // Catch:{ Exception -> 0x00e0 }\n r4[r14] = r5 // Catch:{ Exception -> 0x00e0 }\n r4[r20] = r46 // Catch:{ Exception -> 0x00e0 }\n r5 = 3\n r4[r5] = r0 // Catch:{ Exception -> 0x00e0 }\n java.lang.Object r0 = r2.invoke(r3, r4) // Catch:{ Exception -> 0x00e0 }\n goto L_0x00f9\n L_0x00e0:\n r0 = move-exception\n goto L_0x0109\n L_0x00e2:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00e0 }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00e0 }\n r3 = 3\n java.lang.Object[] r3 = new java.lang.Object[r3] // Catch:{ Exception -> 0x00e0 }\n int r4 = r13.f2409b // Catch:{ Exception -> 0x00e0 }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ Exception -> 0x00e0 }\n r3[r12] = r4 // Catch:{ Exception -> 0x00e0 }\n r3[r14] = r5 // Catch:{ Exception -> 0x00e0 }\n r3[r20] = r46 // Catch:{ Exception -> 0x00e0 }\n java.lang.Object r0 = r0.invoke(r2, r3) // Catch:{ Exception -> 0x00e0 }\n L_0x00f9:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x00e0 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x00e0 }\n r2 = 4\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r6 = 0\n r7 = 1\n goto L_0x0227\n L_0x0109:\n r2 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n r3 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r3)\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r2, r0)\n if (r17 == 0) goto L_0x014d\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r6 = 0\n r12 = r18\n r7 = 1\n r14 = r2\n r2 = 4\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0165\n L_0x014d:\n r2 = 4\n r6 = 0\n r7 = 1\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x0165:\n p000.C0550gu.m1821c(r0)\n goto L_0x0225\n L_0x016a:\n r2 = 4\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r6 = 0\n r7 = 1\n android.media.AudioManager r0 = r10.f3020a\n if (r0 != 0) goto L_0x018e\n r10 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r10)\n r10 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x0227\n L_0x018e:\n r11 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r11)\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x01d1 }\n java.lang.Class[] r11 = r11.getParameterTypes() // Catch:{ all -> 0x01d1 }\n int r11 = r11.length // Catch:{ all -> 0x01d1 }\n r12 = 3\n if (r11 != r12) goto L_0x01b7\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x01d1 }\n android.media.AudioManager r10 = r10.f3020a // Catch:{ all -> 0x01d1 }\n java.lang.Object[] r12 = new java.lang.Object[r12] // Catch:{ all -> 0x01d1 }\n int r13 = r13.f2409b // Catch:{ all -> 0x01d1 }\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13) // Catch:{ all -> 0x01d1 }\n r12[r6] = r13 // Catch:{ all -> 0x01d1 }\n r12[r7] = r5 // Catch:{ all -> 0x01d1 }\n r12[r20] = r0 // Catch:{ all -> 0x01d1 }\n r11.invoke(r10, r12) // Catch:{ all -> 0x01d1 }\n goto L_0x01cf\n L_0x01b7:\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x01d1 }\n android.media.AudioManager r10 = r10.f3020a // Catch:{ all -> 0x01d1 }\n java.lang.Object[] r12 = new java.lang.Object[r2] // Catch:{ all -> 0x01d1 }\n int r13 = r13.f2409b // Catch:{ all -> 0x01d1 }\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13) // Catch:{ all -> 0x01d1 }\n r12[r6] = r13 // Catch:{ all -> 0x01d1 }\n r12[r7] = r5 // Catch:{ all -> 0x01d1 }\n r12[r20] = r46 // Catch:{ all -> 0x01d1 }\n r5 = 3\n r12[r5] = r0 // Catch:{ all -> 0x01d1 }\n r11.invoke(r10, r12) // Catch:{ all -> 0x01d1 }\n L_0x01cf:\n r0 = 0\n goto L_0x0227\n L_0x01d1:\n r0 = move-exception\n r10 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r3, r5, r0)\n if (r17 == 0) goto L_0x020d\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0222\n L_0x020d:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x0222:\n p000.C0550gu.m1821c(r0)\n L_0x0225:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0227:\n r10 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n r37 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r40 = 16\n goto L_0x0419\n L_0x023e:\n r2 = 4\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r6 = 0\n r7 = 1\n fo r0 = p000.C0489fo.USB\n go r10 = p000.C0544go.f2400t\n r1.mo3857e(r7, r0, r10)\n go r10 = p000.C0544go.f2344F\n r1.mo3857e(r6, r0, r10)\n ko r11 = r1.f3511b\n java.lang.Boolean r43 = java.lang.Boolean.TRUE\n r11.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x0262\n L_0x025f:\n r46 = r0\n goto L_0x026c\n L_0x0262:\n r12 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n goto L_0x025f\n L_0x026c:\n boolean r0 = r46.isEmpty()\n if (r0 == 0) goto L_0x0294\n boolean r0 = r10.mo2961a()\n if (r0 != 0) goto L_0x0294\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r10 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r13 = 28\n r14 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r12 = r5\n p000.C0279ch.m1112i(r10, r12, r13, r14)\n r10 = r5\n goto L_0x0431\n L_0x0294:\n r0 = 28\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r0) goto L_0x034f\n java.lang.String r0 = r10.f2410c\n go r11 = p000.C0544go.f2374g\n if (r10 == r11) goto L_0x02ab\n go r11 = p000.C0544go.f2376h\n if (r10 == r11) goto L_0x02ab\n go r11 = p000.C0544go.f2352N\n if (r10 != r11) goto L_0x02a9\n goto L_0x02ab\n L_0x02a9:\n r11 = 0\n goto L_0x02ac\n L_0x02ab:\n r11 = 1\n L_0x02ac:\n if (r11 == 0) goto L_0x02b7\n r11 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r11)\n L_0x02b7:\n java.lang.reflect.Method r11 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x02f9 }\n java.lang.Class[] r11 = r11.getParameterTypes() // Catch:{ Exception -> 0x02f9 }\n int r11 = r11.length // Catch:{ Exception -> 0x02f9 }\n if (r11 != r2) goto L_0x02da\n java.lang.reflect.Method r11 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x02f9 }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x02f9 }\n java.lang.Object[] r13 = new java.lang.Object[r2] // Catch:{ Exception -> 0x02f9 }\n int r10 = r10.f2409b // Catch:{ Exception -> 0x02f9 }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ Exception -> 0x02f9 }\n r13[r6] = r10 // Catch:{ Exception -> 0x02f9 }\n r13[r7] = r5 // Catch:{ Exception -> 0x02f9 }\n r13[r20] = r46 // Catch:{ Exception -> 0x02f9 }\n r5 = 3\n r13[r5] = r0 // Catch:{ Exception -> 0x02f9 }\n java.lang.Object r0 = r11.invoke(r12, r13) // Catch:{ Exception -> 0x02f9 }\n goto L_0x02f1\n L_0x02da:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x02f9 }\n java.lang.Class<?> r11 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x02f9 }\n r12 = 3\n java.lang.Object[] r12 = new java.lang.Object[r12] // Catch:{ Exception -> 0x02f9 }\n int r10 = r10.f2409b // Catch:{ Exception -> 0x02f9 }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ Exception -> 0x02f9 }\n r12[r6] = r10 // Catch:{ Exception -> 0x02f9 }\n r12[r7] = r5 // Catch:{ Exception -> 0x02f9 }\n r12[r20] = r46 // Catch:{ Exception -> 0x02f9 }\n java.lang.Object r0 = r0.invoke(r11, r12) // Catch:{ Exception -> 0x02f9 }\n L_0x02f1:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x02f9 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x02f9 }\n goto L_0x0404\n L_0x02f9:\n r0 = move-exception\n r10 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r5, r0)\n if (r17 == 0) goto L_0x0335\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x034a\n L_0x0335:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x034a:\n p000.C0550gu.m1821c(r0)\n goto L_0x0402\n L_0x034f:\n android.media.AudioManager r0 = r11.f3020a\n if (r0 != 0) goto L_0x036b\n r10 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r10)\n r10 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x0404\n L_0x036b:\n r12 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ae }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ all -> 0x03ae }\n int r12 = r12.length // Catch:{ all -> 0x03ae }\n r13 = 3\n if (r12 != r13) goto L_0x0394\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ae }\n android.media.AudioManager r11 = r11.f3020a // Catch:{ all -> 0x03ae }\n java.lang.Object[] r13 = new java.lang.Object[r13] // Catch:{ all -> 0x03ae }\n int r10 = r10.f2409b // Catch:{ all -> 0x03ae }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ all -> 0x03ae }\n r13[r6] = r10 // Catch:{ all -> 0x03ae }\n r13[r7] = r5 // Catch:{ all -> 0x03ae }\n r13[r20] = r0 // Catch:{ all -> 0x03ae }\n r12.invoke(r11, r13) // Catch:{ all -> 0x03ae }\n goto L_0x03ac\n L_0x0394:\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ae }\n android.media.AudioManager r11 = r11.f3020a // Catch:{ all -> 0x03ae }\n java.lang.Object[] r13 = new java.lang.Object[r2] // Catch:{ all -> 0x03ae }\n int r10 = r10.f2409b // Catch:{ all -> 0x03ae }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ all -> 0x03ae }\n r13[r6] = r10 // Catch:{ all -> 0x03ae }\n r13[r7] = r5 // Catch:{ all -> 0x03ae }\n r13[r20] = r46 // Catch:{ all -> 0x03ae }\n r5 = 3\n r13[r5] = r0 // Catch:{ all -> 0x03ae }\n r12.invoke(r11, r13) // Catch:{ all -> 0x03ae }\n L_0x03ac:\n r0 = 0\n goto L_0x0404\n L_0x03ae:\n r0 = move-exception\n r10 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r3, r5, r0)\n if (r17 == 0) goto L_0x03ea\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x03ff\n L_0x03ea:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x03ff:\n p000.C0550gu.m1821c(r0)\n L_0x0402:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0404:\n r10 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n r37 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r40 = 28\n L_0x0419:\n r41 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r44 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r39 = r10\n p000.C0279ch.m1113j(r37, r39, r40, r41, r43, r44, r46)\n r11 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r11, r10, r0)\n r0 = r5\n L_0x0431:\n java.lang.String r5 = r10.toString()\n p000.C0550gu.m1820b(r0, r5)\n r10 = 100\n java.lang.Thread.sleep(r10)\n fo r0 = p000.C0489fo.WIRED_HEADPHONE\n go r5 = p000.C0544go.f2352N\n go[] r10 = new p000.C0544go[r7]\n go r11 = p000.C0544go.f2365a0\n r10[r6] = r11\n r1.mo3858f(r7, r0, r5, r10)\n ko r0 = r1.f3511b\n go r10 = p000.C0544go.f2405w\n java.lang.Boolean r43 = java.lang.Boolean.FALSE\n r0.getClass()\n r11 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r46 = p000.C0200av.m970a(r11)\n boolean r11 = r46.isEmpty()\n if (r11 == 0) goto L_0x0483\n boolean r11 = r10.mo2961a()\n if (r11 != 0) goto L_0x0483\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r10 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r13 = 19\n r14 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r12 = r5\n p000.C0279ch.m1112i(r10, r12, r13, r14)\n goto L_0x061f\n L_0x0483:\n int r11 = android.os.Build.VERSION.SDK_INT\n r12 = 28\n if (r11 >= r12) goto L_0x053c\n java.lang.String r0 = r10.f2410c\n go r11 = p000.C0544go.f2374g\n if (r10 == r11) goto L_0x0498\n go r11 = p000.C0544go.f2376h\n if (r10 == r11) goto L_0x0498\n if (r10 != r5) goto L_0x0496\n goto L_0x0498\n L_0x0496:\n r5 = 0\n goto L_0x0499\n L_0x0498:\n r5 = 1\n L_0x0499:\n if (r5 == 0) goto L_0x04a4\n r11 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r11)\n L_0x04a4:\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04e6 }\n java.lang.Class[] r5 = r5.getParameterTypes() // Catch:{ Exception -> 0x04e6 }\n int r5 = r5.length // Catch:{ Exception -> 0x04e6 }\n if (r5 != r2) goto L_0x04c7\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04e6 }\n java.lang.Class<?> r11 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04e6 }\n java.lang.Object[] r12 = new java.lang.Object[r2] // Catch:{ Exception -> 0x04e6 }\n int r10 = r10.f2409b // Catch:{ Exception -> 0x04e6 }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ Exception -> 0x04e6 }\n r12[r6] = r10 // Catch:{ Exception -> 0x04e6 }\n r12[r7] = r36 // Catch:{ Exception -> 0x04e6 }\n r12[r20] = r46 // Catch:{ Exception -> 0x04e6 }\n r10 = 3\n r12[r10] = r0 // Catch:{ Exception -> 0x04e6 }\n java.lang.Object r0 = r5.invoke(r11, r12) // Catch:{ Exception -> 0x04e6 }\n goto L_0x04de\n L_0x04c7:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04e6 }\n java.lang.Class<?> r5 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04e6 }\n r11 = 3\n java.lang.Object[] r11 = new java.lang.Object[r11] // Catch:{ Exception -> 0x04e6 }\n int r10 = r10.f2409b // Catch:{ Exception -> 0x04e6 }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ Exception -> 0x04e6 }\n r11[r6] = r10 // Catch:{ Exception -> 0x04e6 }\n r11[r7] = r36 // Catch:{ Exception -> 0x04e6 }\n r11[r20] = r46 // Catch:{ Exception -> 0x04e6 }\n java.lang.Object r0 = r0.invoke(r5, r11) // Catch:{ Exception -> 0x04e6 }\n L_0x04de:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x04e6 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x04e6 }\n goto L_0x05f1\n L_0x04e6:\n r0 = move-exception\n r10 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r5, r0)\n if (r17 == 0) goto L_0x0522\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0537\n L_0x0522:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x0537:\n p000.C0550gu.m1821c(r0)\n goto L_0x05ef\n L_0x053c:\n android.media.AudioManager r5 = r0.f3020a\n if (r5 != 0) goto L_0x0558\n r10 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r10)\n r10 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x05f1\n L_0x0558:\n r11 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r11)\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x059b }\n java.lang.Class[] r11 = r11.getParameterTypes() // Catch:{ all -> 0x059b }\n int r11 = r11.length // Catch:{ all -> 0x059b }\n r12 = 3\n if (r11 != r12) goto L_0x0581\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x059b }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059b }\n java.lang.Object[] r12 = new java.lang.Object[r12] // Catch:{ all -> 0x059b }\n int r10 = r10.f2409b // Catch:{ all -> 0x059b }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ all -> 0x059b }\n r12[r6] = r10 // Catch:{ all -> 0x059b }\n r12[r7] = r36 // Catch:{ all -> 0x059b }\n r12[r20] = r5 // Catch:{ all -> 0x059b }\n r11.invoke(r0, r12) // Catch:{ all -> 0x059b }\n goto L_0x0599\n L_0x0581:\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x059b }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059b }\n java.lang.Object[] r12 = new java.lang.Object[r2] // Catch:{ all -> 0x059b }\n int r10 = r10.f2409b // Catch:{ all -> 0x059b }\n java.lang.Integer r10 = java.lang.Integer.valueOf(r10) // Catch:{ all -> 0x059b }\n r12[r6] = r10 // Catch:{ all -> 0x059b }\n r12[r7] = r36 // Catch:{ all -> 0x059b }\n r12[r20] = r46 // Catch:{ all -> 0x059b }\n r10 = 3\n r12[r10] = r5 // Catch:{ all -> 0x059b }\n r11.invoke(r0, r12) // Catch:{ all -> 0x059b }\n L_0x0599:\n r0 = 0\n goto L_0x05f1\n L_0x059b:\n r0 = move-exception\n r10 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r3, r5, r0)\n if (r17 == 0) goto L_0x05d7\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x05ec\n L_0x05d7:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x05ec:\n p000.C0550gu.m1821c(r0)\n L_0x05ef:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x05f1:\n r10 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n r37 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r40 = 19\n r41 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r44 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r39 = r10\n p000.C0279ch.m1113j(r37, r39, r40, r41, r43, r44, r46)\n r11 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r11, r10, r0)\n r0 = r5\n r5 = r10\n L_0x061f:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2339A\n java.lang.Boolean r43 = java.lang.Boolean.FALSE\n r0.getClass()\n r10 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r46 = p000.C0200av.m970a(r10)\n boolean r10 = r46.isEmpty()\n if (r10 == 0) goto L_0x065f\n boolean r10 = r5.mo2961a()\n if (r10 != 0) goto L_0x065f\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r10 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r13 = 23\n r14 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r12 = r5\n p000.C0279ch.m1112i(r10, r12, r13, r14)\n goto L_0x07fd\n L_0x065f:\n int r10 = android.os.Build.VERSION.SDK_INT\n r11 = 28\n if (r10 >= r11) goto L_0x071a\n java.lang.String r0 = r5.f2410c\n go r10 = p000.C0544go.f2374g\n if (r5 == r10) goto L_0x0676\n go r10 = p000.C0544go.f2376h\n if (r5 == r10) goto L_0x0676\n go r10 = p000.C0544go.f2352N\n if (r5 != r10) goto L_0x0674\n goto L_0x0676\n L_0x0674:\n r10 = 0\n goto L_0x0677\n L_0x0676:\n r10 = 1\n L_0x0677:\n if (r10 == 0) goto L_0x0682\n r10 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r10)\n L_0x0682:\n java.lang.reflect.Method r10 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c4 }\n java.lang.Class[] r10 = r10.getParameterTypes() // Catch:{ Exception -> 0x06c4 }\n int r10 = r10.length // Catch:{ Exception -> 0x06c4 }\n if (r10 != r2) goto L_0x06a5\n java.lang.reflect.Method r10 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c4 }\n java.lang.Class<?> r11 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c4 }\n java.lang.Object[] r12 = new java.lang.Object[r2] // Catch:{ Exception -> 0x06c4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c4 }\n r12[r6] = r5 // Catch:{ Exception -> 0x06c4 }\n r12[r7] = r36 // Catch:{ Exception -> 0x06c4 }\n r12[r20] = r46 // Catch:{ Exception -> 0x06c4 }\n r5 = 3\n r12[r5] = r0 // Catch:{ Exception -> 0x06c4 }\n java.lang.Object r0 = r10.invoke(r11, r12) // Catch:{ Exception -> 0x06c4 }\n goto L_0x06bc\n L_0x06a5:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c4 }\n java.lang.Class<?> r10 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c4 }\n r11 = 3\n java.lang.Object[] r11 = new java.lang.Object[r11] // Catch:{ Exception -> 0x06c4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c4 }\n r11[r6] = r5 // Catch:{ Exception -> 0x06c4 }\n r11[r7] = r36 // Catch:{ Exception -> 0x06c4 }\n r11[r20] = r46 // Catch:{ Exception -> 0x06c4 }\n java.lang.Object r0 = r0.invoke(r10, r11) // Catch:{ Exception -> 0x06c4 }\n L_0x06bc:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x06c4 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x06c4 }\n goto L_0x07cf\n L_0x06c4:\n r0 = move-exception\n r10 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r5, r0)\n if (r17 == 0) goto L_0x0700\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0715\n L_0x0700:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x0715:\n p000.C0550gu.m1821c(r0)\n goto L_0x07cd\n L_0x071a:\n android.media.AudioManager r10 = r0.f3020a\n if (r10 != 0) goto L_0x0736\n r10 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r10)\n r10 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x07cf\n L_0x0736:\n r10 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r10 = p000.C0200av.m970a(r10)\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x0779 }\n java.lang.Class[] r11 = r11.getParameterTypes() // Catch:{ all -> 0x0779 }\n int r11 = r11.length // Catch:{ all -> 0x0779 }\n r12 = 3\n if (r11 != r12) goto L_0x075f\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x0779 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0779 }\n java.lang.Object[] r12 = new java.lang.Object[r12] // Catch:{ all -> 0x0779 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0779 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0779 }\n r12[r6] = r5 // Catch:{ all -> 0x0779 }\n r12[r7] = r36 // Catch:{ all -> 0x0779 }\n r12[r20] = r10 // Catch:{ all -> 0x0779 }\n r11.invoke(r0, r12) // Catch:{ all -> 0x0779 }\n goto L_0x0777\n L_0x075f:\n java.lang.reflect.Method r11 = p000.C0735ko.f3017f // Catch:{ all -> 0x0779 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0779 }\n java.lang.Object[] r12 = new java.lang.Object[r2] // Catch:{ all -> 0x0779 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0779 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0779 }\n r12[r6] = r5 // Catch:{ all -> 0x0779 }\n r12[r7] = r36 // Catch:{ all -> 0x0779 }\n r12[r20] = r46 // Catch:{ all -> 0x0779 }\n r5 = 3\n r12[r5] = r10 // Catch:{ all -> 0x0779 }\n r11.invoke(r0, r12) // Catch:{ all -> 0x0779 }\n L_0x0777:\n r0 = 0\n goto L_0x07cf\n L_0x0779:\n r0 = move-exception\n r10 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n r10 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r10)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r3, r5, r0)\n if (r17 == 0) goto L_0x07b5\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x07ca\n L_0x07b5:\n r10 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n r10 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r10)\n p000.C0550gu.m1819a(r5, r12)\n L_0x07ca:\n p000.C0550gu.m1821c(r0)\n L_0x07cd:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x07cf:\n r10 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r10)\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n r37 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r40 = 23\n r41 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r44 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r39 = r10\n p000.C0279ch.m1113j(r37, r39, r40, r41, r43, r44, r46)\n r11 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r11, r10, r0)\n r0 = r5\n r5 = r10\n L_0x07fd:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0697ju.m2181d(r0)\n if (r0 == 0) goto L_0x09f1\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2402u\n java.lang.Boolean r43 = java.lang.Boolean.FALSE\n r0.getClass()\n r10 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r46 = p000.C0200av.m970a(r10)\n boolean r10 = r46.isEmpty()\n if (r10 == 0) goto L_0x0845\n boolean r10 = r5.mo2961a()\n if (r10 != 0) goto L_0x0845\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r5 = 17\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r4 = r8\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n goto L_0x09ea\n L_0x0845:\n int r8 = android.os.Build.VERSION.SDK_INT\n r9 = 28\n if (r8 >= r9) goto L_0x0907\n java.lang.String r0 = r5.f2410c\n go r8 = p000.C0544go.f2374g\n if (r5 == r8) goto L_0x085c\n go r8 = p000.C0544go.f2376h\n if (r5 == r8) goto L_0x085c\n go r8 = p000.C0544go.f2352N\n if (r5 != r8) goto L_0x085a\n goto L_0x085c\n L_0x085a:\n r8 = 0\n goto L_0x085d\n L_0x085c:\n r8 = 1\n L_0x085d:\n if (r8 == 0) goto L_0x0868\n r8 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r8)\n L_0x0868:\n java.lang.reflect.Method r8 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08aa }\n java.lang.Class[] r8 = r8.getParameterTypes() // Catch:{ Exception -> 0x08aa }\n int r8 = r8.length // Catch:{ Exception -> 0x08aa }\n if (r8 != r2) goto L_0x088b\n java.lang.reflect.Method r8 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08aa }\n java.lang.Class<?> r9 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08aa }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ Exception -> 0x08aa }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08aa }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08aa }\n r2[r6] = r5 // Catch:{ Exception -> 0x08aa }\n r2[r7] = r36 // Catch:{ Exception -> 0x08aa }\n r2[r20] = r46 // Catch:{ Exception -> 0x08aa }\n r5 = 3\n r2[r5] = r0 // Catch:{ Exception -> 0x08aa }\n java.lang.Object r0 = r8.invoke(r9, r2) // Catch:{ Exception -> 0x08aa }\n goto L_0x08a2\n L_0x088b:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08aa }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08aa }\n r8 = 3\n java.lang.Object[] r8 = new java.lang.Object[r8] // Catch:{ Exception -> 0x08aa }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08aa }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08aa }\n r8[r6] = r5 // Catch:{ Exception -> 0x08aa }\n r8[r7] = r36 // Catch:{ Exception -> 0x08aa }\n r8[r20] = r46 // Catch:{ Exception -> 0x08aa }\n java.lang.Object r0 = r0.invoke(r2, r8) // Catch:{ Exception -> 0x08aa }\n L_0x08a2:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x08aa }\n int r14 = r0.intValue() // Catch:{ Exception -> 0x08aa }\n goto L_0x09bc\n L_0x08aa:\n r0 = move-exception\n r5 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r5)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n r5 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r5)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r2, r0)\n if (r17 == 0) goto L_0x08e6\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x08fb\n L_0x08e6:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x08fb:\n p000.C0550gu.m1821c(r0)\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = -999(0xfffffffffffffc19, float:NaN)\n goto L_0x09c2\n L_0x0907:\n android.media.AudioManager r8 = r0.f3020a\n if (r8 != 0) goto L_0x0923\n r2 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n r2 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n p000.C0550gu.m1819a(r0, r2)\n r14 = 1\n goto L_0x09bc\n L_0x0923:\n r8 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r8 = p000.C0200av.m970a(r8)\n java.lang.reflect.Method r9 = p000.C0735ko.f3017f // Catch:{ all -> 0x0966 }\n java.lang.Class[] r9 = r9.getParameterTypes() // Catch:{ all -> 0x0966 }\n int r9 = r9.length // Catch:{ all -> 0x0966 }\n r10 = 3\n if (r9 != r10) goto L_0x094c\n java.lang.reflect.Method r2 = p000.C0735ko.f3017f // Catch:{ all -> 0x0966 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0966 }\n java.lang.Object[] r9 = new java.lang.Object[r10] // Catch:{ all -> 0x0966 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0966 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0966 }\n r9[r6] = r5 // Catch:{ all -> 0x0966 }\n r9[r7] = r36 // Catch:{ all -> 0x0966 }\n r9[r20] = r8 // Catch:{ all -> 0x0966 }\n r2.invoke(r0, r9) // Catch:{ all -> 0x0966 }\n goto L_0x0964\n L_0x094c:\n java.lang.reflect.Method r9 = p000.C0735ko.f3017f // Catch:{ all -> 0x0966 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0966 }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ all -> 0x0966 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0966 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0966 }\n r2[r6] = r5 // Catch:{ all -> 0x0966 }\n r2[r7] = r36 // Catch:{ all -> 0x0966 }\n r2[r20] = r46 // Catch:{ all -> 0x0966 }\n r5 = 3\n r2[r5] = r8 // Catch:{ all -> 0x0966 }\n r9.invoke(r0, r2) // Catch:{ all -> 0x0966 }\n L_0x0964:\n r14 = 0\n goto L_0x09bc\n L_0x0966:\n r0 = move-exception\n r5 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r5)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n r5 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n java.lang.String r2 = p000.C0279ch.m1123t(r0, r2, r5)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r3, r2, r0)\n if (r17 == 0) goto L_0x09a2\n java.lang.String r16 = p000.C0200av.m970a(r34)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x09b7\n L_0x09a2:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x09b7:\n p000.C0550gu.m1821c(r0)\n r14 = -999(0xfffffffffffffc19, float:NaN)\n L_0x09bc:\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = r14\n L_0x09c2:\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r37 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r40 = 17\n r41 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r44 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r39 = r8\n p000.C0279ch.m1113j(r37, r39, r40, r41, r43, r44, r46)\n r3 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r3, r8, r0)\n r0 = r2\n L_0x09ea:\n java.lang.String r2 = r8.toString()\n p000.C0550gu.m1820b(r0, r2)\n L_0x09f1:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0936oo.mo3864q():void\");\n }",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"public final String mo38130a() {\n return \"com.google.android.gms.ads.service.CACHE\";\n }",
"public interface C7878U {\n /* renamed from: Lg */\n public static final int f26781Lg = 1;\n /* renamed from: Mg */\n public static final int f26782Mg = 2;\n public static final int NOERROR = 0;\n /* renamed from: Ng */\n public static final int f26783Ng = 3;\n /* renamed from: Og */\n public static final int f26784Og = 4;\n /* renamed from: Pg */\n public static final int f26785Pg = 5;\n /* renamed from: Qg */\n public static final int f26786Qg = 6;\n}",
"public interface VirtualUsersMeasurement {\n\n\t/**\n\t * Measurement name.\n\t */\n\tString MEASUREMENT_NAME = \"virtualUsers\";\n\n\t/**\n\t * Tags.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Tags {\n\t\t/**\n\t\t * Node name field\n\t\t */\n\t\tString NODE_NAME = \"nodeName\";\n\n\t\tString TEST_NAME = \"testName\";\n\n\t\tString RUN_ID = \"runId\";\n\t}\n\n\t/**\n\t * Fields.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Fields {\n\t\t/**\n\t\t * Minimum active threads field.\n\t\t */\n\t\tString MIN_ACTIVE_THREADS = \"minActiveThreads\";\n\n\t\t/**\n\t\t * Maximum active threads field.\n\t\t */\n\t\tString MAX_ACTIVE_THREADS = \"maxActiveThreads\";\n\n\t\t/**\n\t\t * Mean active threads field.\n\t\t */\n\t\tString MEAN_ACTIVE_THREADS = \"meanActiveThreads\";\n\n\t\t/**\n\t\t * Started threads field.\n\t\t */\n\t\tString STARTED_THREADS = \"startedThreads\";\n\n\t\t/**\n\t\t * Finished threads field.\n\t\t */\n\t\tString FINISHED_THREADS = \"finishedThreads\";\n\t}\n}",
"@Update\n void update(Measurement measurement);",
"private final void m711f() {\n /*\n r25 = this;\n r6 = r25\n long r7 = android.os.SystemClock.uptimeMillis()\n awv r0 = r6.f534s\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r14 = 1\n r15 = 0\n if (r0 != 0) goto L_0x0013\n goto L_0x0224\n L_0x0013:\n int r1 = r6.f511B\n if (r1 > 0) goto L_0x0221\n akn r0 = r6.f531p\n long r1 = r6.f513D\n r0.mo453a(r1)\n akn r0 = r6.f531p\n akl r1 = r0.f603f\n if (r1 != 0) goto L_0x0025\n goto L_0x0041\n L_0x0025:\n akm r2 = r1.f582f\n boolean r2 = r2.f597g\n if (r2 != 0) goto L_0x00e4\n boolean r1 = r1.mo441b()\n if (r1 == 0) goto L_0x00e4\n akl r1 = r0.f603f\n akm r1 = r1.f582f\n long r1 = r1.f595e\n int r3 = (r1 > r11 ? 1 : (r1 == r11 ? 0 : -1))\n if (r3 == 0) goto L_0x00e4\n int r0 = r0.f604g\n r1 = 100\n if (r0 >= r1) goto L_0x00e4\n L_0x0041:\n akn r0 = r6.f531p\n long r1 = r6.f513D\n akp r3 = r6.f533r\n akl r4 = r0.f603f\n if (r4 == 0) goto L_0x0050\n akm r0 = r0.mo449a(r4, r1)\n goto L_0x005a\n L_0x0050:\n awt r1 = r3.f612b\n long r4 = r3.f614d\n long r2 = r3.f613c\n akm r0 = r0.mo451a(r1, r2)\n L_0x005a:\n if (r0 == 0) goto L_0x00c8\n akn r1 = r6.f531p\n aky[] r2 = r6.f519d\n bgq r3 = r6.f520e\n akk r4 = r6.f522g\n ajd r4 = (p000.ajd) r4\n bhz r4 = r4.f433a\n awv r5 = r6.f534s\n bgr r13 = r6.f521f\n akl r9 = r1.f603f\n if (r9 == 0) goto L_0x007e\n long r11 = r9.f586j\n akm r9 = r9.f582f\n long r9 = r9.f595e\n long r11 = r11 + r9\n long r9 = r0.f592b\n long r9 = r11 - r9\n r18 = r9\n goto L_0x0086\n L_0x007e:\n awt r9 = r0.f591a\n boolean r9 = r9.mo1504a()\n r18 = 0\n L_0x0086:\n akl r9 = new akl\n r16 = r9\n r17 = r2\n r20 = r3\n r21 = r4\n r22 = r5\n r23 = r0\n r24 = r13\n r16.<init>(r17, r18, r20, r21, r22, r23, r24)\n akl r2 = r1.f603f\n if (r2 == 0) goto L_0x00a1\n r2.mo439a(r9)\n goto L_0x00a5\n L_0x00a1:\n r1.f601d = r9\n r1.f602e = r9\n L_0x00a5:\n r2 = 0\n r1.f605h = r2\n r1.f603f = r9\n int r2 = r1.f604g\n int r2 = r2 + r14\n r1.f604g = r2\n aws r1 = r9.f577a\n long r2 = r0.f592b\n r1.mo1483a(r6, r2)\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 != r9) goto L_0x00c3\n long r0 = r9.mo434a()\n r6.m691a(r0)\n L_0x00c3:\n r6.m706b(r15)\n goto L_0x00e4\n L_0x00c8:\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n if (r0 == 0) goto L_0x00df\n akx[] r0 = r6.f535t\n int r1 = r0.length\n r2 = 0\n L_0x00d2:\n if (r2 >= r1) goto L_0x00df\n r3 = r0[r2]\n boolean r3 = r3.mo359g()\n if (r3 == 0) goto L_0x00e4\n int r2 = r2 + 1\n goto L_0x00d2\n L_0x00df:\n awv r0 = r6.f534s\n r0.mo1494d()\n L_0x00e4:\n boolean r0 = r6.f539x\n if (r0 == 0) goto L_0x00f2\n boolean r0 = r25.m717l()\n r6.f539x = r0\n r25.m718m()\n goto L_0x00f5\n L_0x00f2:\n r25.m716k()\n L_0x00f5:\n akn r0 = r6.f531p\n akl r0 = r0.f602e\n if (r0 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n if (r1 != 0) goto L_0x012b\n akm r1 = r0.f582f\n boolean r1 = r1.f597g\n if (r1 != 0) goto L_0x0107\n goto L_0x01ba\n L_0x0107:\n r1 = 0\n L_0x0109:\n akx[] r2 = r6.f518c\n int r3 = r2.length\n if (r1 >= r3) goto L_0x0129\n r2 = r2[r1]\n axx[] r3 = r0.f579c\n r3 = r3[r1]\n if (r3 != 0) goto L_0x0117\n goto L_0x0126\n L_0x0117:\n axx r4 = r2.mo358f()\n if (r4 != r3) goto L_0x0126\n boolean r3 = r2.mo359g()\n if (r3 == 0) goto L_0x0126\n r2.mo361i()\n L_0x0126:\n int r1 = r1 + 1\n goto L_0x0109\n L_0x0129:\n goto L_0x01ba\n L_0x012b:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n boolean r1 = r1.f580d\n if (r1 == 0) goto L_0x01ba\n bgr r0 = r0.f585i\n akn r1 = r6.f531p\n akl r2 = r1.f602e\n if (r2 == 0) goto L_0x0147\n akl r2 = r2.f583g\n if (r2 == 0) goto L_0x0145\n r2 = 1\n goto L_0x0148\n L_0x0145:\n L_0x0147:\n r2 = 0\n L_0x0148:\n p000.bks.m3512b(r2)\n akl r2 = r1.f602e\n akl r2 = r2.f583g\n r1.f602e = r2\n akl r1 = r1.f602e\n bgr r2 = r1.f585i\n aws r3 = r1.f577a\n long r3 = r3.mo1486c()\n r9 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))\n if (r5 == 0) goto L_0x016a\n r25.m715j()\n r0 = 0\n goto L_0x01bb\n L_0x016a:\n r3 = 0\n L_0x016b:\n akx[] r4 = r6.f518c\n int r5 = r4.length\n if (r3 >= r5) goto L_0x01b9\n r4 = r4[r3]\n boolean r5 = r0.mo1867a(r3)\n if (r5 != 0) goto L_0x0179\n goto L_0x01b6\n L_0x0179:\n boolean r5 = r4.mo362j()\n if (r5 != 0) goto L_0x01b6\n bgm r5 = r2.f3835c\n bgl r5 = r5.mo1861a(r3)\n boolean r9 = r2.mo1867a(r3)\n aky[] r10 = r6.f519d\n r10 = r10[r3]\n int r10 = r10.mo344a()\n akz[] r11 = r0.f3834b\n r11 = r11[r3]\n akz[] r12 = r2.f3834b\n r12 = r12[r3]\n if (r9 == 0) goto L_0x01b3\n boolean r9 = r12.equals(r11)\n if (r9 == 0) goto L_0x01b3\n r9 = 6\n if (r10 != r9) goto L_0x01a5\n goto L_0x01b3\n L_0x01a5:\n akh[] r5 = m701a(r5)\n axx[] r9 = r1.f579c\n r9 = r9[r3]\n long r10 = r1.f586j\n r4.mo353a(r5, r9, r10)\n goto L_0x01b6\n L_0x01b3:\n r4.mo361i()\n L_0x01b6:\n int r3 = r3 + 1\n goto L_0x016b\n L_0x01b9:\n L_0x01ba:\n r0 = 0\n L_0x01bb:\n boolean r1 = r6.f537v\n if (r1 == 0) goto L_0x0224\n akn r1 = r6.f531p\n akl r2 = r1.f601d\n if (r2 == 0) goto L_0x0224\n akl r3 = r2.f583g\n if (r3 == 0) goto L_0x0224\n akl r1 = r1.f602e\n if (r2 == r1) goto L_0x01ce\n goto L_0x01d4\n L_0x01ce:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x0224\n L_0x01d4:\n long r1 = r6.f513D\n long r3 = r3.mo434a()\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 < 0) goto L_0x0224\n if (r0 != 0) goto L_0x01e1\n goto L_0x01e4\n L_0x01e1:\n r25.m703b()\n L_0x01e4:\n akn r0 = r6.f531p\n akl r9 = r0.f601d\n akl r0 = r0.f602e\n if (r9 == r0) goto L_0x01ed\n goto L_0x01f0\n L_0x01ed:\n r25.m715j()\n L_0x01f0:\n akn r0 = r6.f531p\n akl r0 = r0.mo448a()\n r6.m693a(r9)\n akm r0 = r0.f582f\n awt r1 = r0.f591a\n long r2 = r0.f592b\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r0 = r25\n akp r0 = r0.m686a(r1, r2, r4)\n r6.f533r = r0\n akm r0 = r9.f582f\n boolean r0 = r0.f596f\n if (r0 != 0) goto L_0x0214\n r0 = 3\n goto L_0x0216\n L_0x0214:\n r0 = 0\n L_0x0216:\n akc r1 = r6.f529n\n r1.mo409b(r0)\n r25.m710e()\n r0 = 1\n goto L_0x01bb\n L_0x0221:\n r0.mo1494d()\n L_0x0224:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r14) goto L_0x022c\n goto L_0x03b3\n L_0x022c:\n r1 = 4\n if (r0 == r1) goto L_0x03b3\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x03ad\n java.lang.String r4 = \"doSomeWork\"\n p000.blk.m3619a(r4)\n r25.m710e()\n boolean r4 = r0.f580d\n r9 = 1000(0x3e8, double:4.94E-321)\n if (r4 == 0) goto L_0x02b5\n long r4 = android.os.SystemClock.elapsedRealtime()\n long r4 = r4 * r9\n aws r11 = r0.f577a\n akp r12 = r6.f533r\n long r12 = r12.f623m\n long r14 = r6.f527l\n long r12 = r12 - r14\n r11.mo1489d(r12)\n r11 = 0\n r12 = 1\n r14 = 1\n L_0x0258:\n akx[] r13 = r6.f518c\n int r15 = r13.length\n if (r11 >= r15) goto L_0x02b2\n r13 = r13[r11]\n int r15 = r13.mo356d()\n if (r15 == 0) goto L_0x02ad\n long r2 = r6.f513D\n r13.mo484a(r2, r4)\n if (r12 == 0) goto L_0x0275\n boolean r2 = r13.mo486w()\n if (r2 == 0) goto L_0x0274\n r12 = 1\n goto L_0x0276\n L_0x0274:\n L_0x0275:\n r12 = 0\n L_0x0276:\n axx[] r2 = r0.f579c\n r2 = r2[r11]\n axx r3 = r13.mo358f()\n if (r2 != r3) goto L_0x028c\n akl r15 = r0.f583g\n if (r15 == 0) goto L_0x028c\n boolean r15 = r13.mo359g()\n if (r15 == 0) goto L_0x028c\n r15 = 1\n goto L_0x028d\n L_0x028c:\n r15 = 0\n L_0x028d:\n if (r2 == r3) goto L_0x0291\n L_0x028f:\n r2 = 1\n goto L_0x02a0\n L_0x0291:\n if (r15 != 0) goto L_0x028f\n boolean r2 = r13.mo485v()\n if (r2 != 0) goto L_0x028f\n boolean r2 = r13.mo486w()\n if (r2 != 0) goto L_0x028f\n r2 = 0\n L_0x02a0:\n if (r14 != 0) goto L_0x02a4\n L_0x02a2:\n r14 = 0\n goto L_0x02a7\n L_0x02a4:\n if (r2 == 0) goto L_0x02a2\n r14 = 1\n L_0x02a7:\n if (r2 != 0) goto L_0x02ad\n r13.mo363k()\n goto L_0x02ae\n L_0x02ad:\n L_0x02ae:\n int r11 = r11 + 1\n goto L_0x0258\n L_0x02b2:\n r16 = r12\n goto L_0x02be\n L_0x02b5:\n aws r2 = r0.f577a\n r2.mo1482a()\n r14 = 1\n r16 = 1\n L_0x02be:\n akm r2 = r0.f582f\n long r2 = r2.f595e\n r4 = 2\n if (r16 != 0) goto L_0x02c6\n goto L_0x02e9\n L_0x02c6:\n boolean r5 = r0.f580d\n if (r5 == 0) goto L_0x02e9\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 == 0) goto L_0x02db\n akp r5 = r6.f533r\n long r11 = r5.f623m\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 > 0) goto L_0x02e9\n L_0x02db:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 == 0) goto L_0x02e9\n r6.m690a(r1)\n r25.m709d()\n goto L_0x036b\n L_0x02e9:\n akp r0 = r6.f533r\n int r2 = r0.f615e\n if (r2 == r4) goto L_0x02f0\n goto L_0x034c\n L_0x02f0:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x02fc\n boolean r0 = r25.m712g()\n if (r0 == 0) goto L_0x034c\n goto L_0x033f\n L_0x02fc:\n if (r14 == 0) goto L_0x034c\n boolean r0 = r0.f617g\n if (r0 == 0) goto L_0x033f\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n boolean r2 = r0.mo441b()\n if (r2 != 0) goto L_0x030d\n L_0x030c:\n goto L_0x0314\n L_0x030d:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 != 0) goto L_0x033f\n goto L_0x030c\n L_0x0314:\n akk r0 = r6.f522g\n long r2 = r25.m719n()\n ajf r5 = r6.f528m\n akq r5 = r5.mo376Q()\n float r5 = r5.f625b\n boolean r11 = r6.f538w\n long r2 = p000.blm.m3661b(r2, r5)\n if (r11 == 0) goto L_0x032f\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f438f\n goto L_0x0333\n L_0x032f:\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f437e\n L_0x0333:\n r15 = 0\n int r0 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1))\n if (r0 <= 0) goto L_0x033f\n int r0 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r0 >= 0) goto L_0x033f\n goto L_0x034c\n L_0x033f:\n r0 = 3\n r6.m690a(r0)\n boolean r0 = r6.f537v\n if (r0 == 0) goto L_0x036b\n r25.m707c()\n goto L_0x036b\n L_0x034c:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 != r2) goto L_0x036b\n akx[] r0 = r6.f535t\n int r0 = r0.length\n if (r0 != 0) goto L_0x035f\n boolean r0 = r25.m712g()\n if (r0 != 0) goto L_0x036b\n goto L_0x0361\n L_0x035f:\n if (r14 != 0) goto L_0x036b\n L_0x0361:\n boolean r0 = r6.f537v\n r6.f538w = r0\n r6.m690a(r4)\n r25.m709d()\n L_0x036b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x037f\n akx[] r0 = r6.f535t\n int r2 = r0.length\n r3 = 0\n L_0x0375:\n if (r3 >= r2) goto L_0x037f\n r5 = r0[r3]\n r5.mo363k()\n int r3 = r3 + 1\n goto L_0x0375\n L_0x037f:\n boolean r0 = r6.f537v\n if (r0 != 0) goto L_0x0384\n goto L_0x038b\n L_0x0384:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 == r2) goto L_0x0391\n L_0x038b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x0392\n L_0x0391:\n goto L_0x03a4\n L_0x0392:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x0398\n goto L_0x039e\n L_0x0398:\n if (r0 == r1) goto L_0x039e\n r6.m692a(r7, r9)\n goto L_0x03a9\n L_0x039e:\n bkp r0 = r6.f516a\n r0.mo2044a()\n goto L_0x03a9\n L_0x03a4:\n r0 = 10\n r6.m692a(r7, r0)\n L_0x03a9:\n p000.blk.m3618a()\n return\n L_0x03ad:\n r0 = 10\n r6.m692a(r7, r0)\n return\n L_0x03b3:\n bkp r0 = r6.f516a\n r0.mo2044a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m711f():void\");\n }",
"private final void m110463ax() {\n boolean z;\n if (C25352e.m83221d(this.f77546j)) {\n C24962g.m81963b(this.f77546j);\n boolean z2 = true;\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j))) {\n z = true;\n } else {\n z = false;\n }\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n String openUrl = awemeRawAd.getOpenUrl();\n boolean b = C25371n.m83473b(openUrl);\n if (C25352e.m83361c(openUrl)) {\n String builder = Uri.parse(C24505a.f64678a).buildUpon().appendQueryParameter(\"tag\", \"result_ad\").toString();\n C7573i.m23582a((Object) builder, \"Uri.parse(CommercializeC… .toString()\");\n openUrl = C25352e.m83325a(openUrl, builder);\n } else {\n z2 = false;\n }\n if (!z || !b || !C25371n.m83458a(mo75261ab(), openUrl, this.f77546j, false, false)) {\n Context ab = mo75261ab();\n Aweme aweme2 = this.f77546j;\n String N = C25352e.m83303N(this.f77546j);\n String O = C25352e.m83304O(this.f77546j);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd2, \"mAweme.awemeRawAd!!\");\n if (C25371n.m83453a(ab, aweme2, N, O, awemeRawAd2.isUseOrdinaryWeb(), false, 5)) {\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"open_url_h5\").mo65270a(mo75261ab());\n }\n return;\n }\n if (z2) {\n C24558c a = C24558c.m80613a();\n C7573i.m23582a((Object) a, \"CommercializeManager.getInstance()\");\n a.f64800a = this.f77546j;\n }\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"open_url_app\").mo65270a(mo75261ab());\n C25371n.m83440a((C25372a) new C34217k(this));\n }\n }",
"private static boolean m2541g(Context context) {\n try {\n if (C0820dq.m2439m(context) != 1 || !f1840a || StatisticsManager.m2538d(context) < 100) {\n return false;\n }\n long f = StatisticsManager.m2540f(context);\n long time = new Date().getTime();\n if (time - f < 3600000) {\n return false;\n }\n StatisticsManager.m2533a(context, time);\n f1840a = false;\n return true;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"isUpdate\");\n return false;\n }\n }",
"private void m14048a(List<ScanResult> list, SQLiteDatabase sQLiteDatabase) {\n Throwable th;\n System.currentTimeMillis();\n this.f18056e = false;\n if (list != null && list.size() != 0 && sQLiteDatabase != null && list != null) {\n double d = 0.0d;\n double d2 = 0.0d;\n int i = 0;\n Object obj = null;\n double[] dArr = new double[8];\n Object obj2 = null;\n int i2 = 0;\n StringBuffer stringBuffer = new StringBuffer();\n int i3 = 0;\n for (ScanResult scanResult : list) {\n if (i3 > 10) {\n break;\n }\n if (i3 > 0) {\n stringBuffer.append(\",\");\n }\n i3++;\n stringBuffer.append(\"\\\"\").append(Jni.encode2(scanResult.BSSID.replace(Config.TRACE_TODAY_VISIT_SPLIT, \"\"))).append(\"\\\"\");\n }\n Cursor cursor = null;\n Cursor rawQuery;\n try {\n rawQuery = sQLiteDatabase.rawQuery(\"select * from wof where id in (\" + stringBuffer.toString() + \");\", null);\n try {\n if (rawQuery.moveToFirst()) {\n while (!rawQuery.isAfterLast()) {\n double d3 = rawQuery.getDouble(1) - 113.2349d;\n double d4 = rawQuery.getDouble(2) - 432.1238d;\n int i4 = rawQuery.getInt(4);\n int i5 = rawQuery.getInt(5);\n if (i5 <= 8 || i5 <= i4) {\n int i6;\n Object obj3;\n float[] fArr;\n if (!this.f18055d) {\n if (obj == null) {\n int i7;\n if (obj2 != null) {\n int i8 = 0;\n while (i8 < i2) {\n Object obj4;\n double d5;\n double d6;\n fArr = new float[1];\n Location.distanceBetween(d4, d3, dArr[i8 + 1], dArr[i8], fArr);\n if (fArr[0] < 1000.0f) {\n obj4 = 1;\n d5 = d + dArr[i8];\n d6 = dArr[i8 + 1] + d2;\n i5 = i + 1;\n } else {\n obj4 = obj;\n i5 = i;\n d6 = d2;\n d5 = d;\n }\n i8 += 2;\n d2 = d6;\n d = d5;\n obj = obj4;\n i = i5;\n }\n if (obj == null) {\n if (i2 >= 8) {\n break;\n }\n i4 = i2 + 1;\n dArr[i2] = d3;\n i7 = i4 + 1;\n dArr[i4] = d4;\n i6 = i7;\n obj3 = obj2;\n } else {\n d += d3;\n d2 += d4;\n i++;\n i6 = i2;\n obj3 = obj2;\n }\n } else {\n i4 = i2 + 1;\n dArr[i2] = d3;\n i7 = i4 + 1;\n dArr[i4] = d4;\n i3 = 1;\n i6 = i7;\n }\n } else {\n fArr = new float[1];\n Location.distanceBetween(d4, d3, d2 / ((double) i), d / ((double) i), fArr);\n if (fArr[0] > 1000.0f) {\n rawQuery.moveToNext();\n } else {\n i6 = i2;\n obj3 = obj2;\n }\n }\n } else {\n fArr = new float[1];\n Location.distanceBetween(d4, d3, this.f18059h, this.f18058g, fArr);\n if (((double) fArr[0]) > this.f18057f + 2000.0d) {\n rawQuery.moveToNext();\n } else {\n obj = 1;\n d += d3;\n d2 += d4;\n i++;\n i6 = i2;\n obj3 = obj2;\n }\n }\n if (i > 4) {\n break;\n }\n rawQuery.moveToNext();\n i2 = i6;\n obj2 = obj3;\n } else {\n rawQuery.moveToNext();\n }\n }\n if (i > 0) {\n this.f18056e = true;\n this.f18060i = d / ((double) i);\n this.f18061j = d2 / ((double) i);\n }\n }\n if (rawQuery != null) {\n try {\n rawQuery.close();\n } catch (Exception e) {\n }\n }\n } catch (Exception e2) {\n cursor = rawQuery;\n } catch (Throwable th2) {\n th = th2;\n }\n } catch (Exception e3) {\n if (cursor != null) {\n try {\n cursor.close();\n } catch (Exception e4) {\n }\n }\n } catch (Throwable th3) {\n rawQuery = null;\n th = th3;\n if (rawQuery != null) {\n try {\n rawQuery.close();\n } catch (Exception e5) {\n }\n }\n throw th;\n }\n }\n }",
"public static void m92440a(Context context, int i, String str, String str2, String str3) {\n skc skc = new skc(context);\n long a = m92438a(str3);\n long currentTimeMillis = System.currentTimeMillis();\n skc.mo25675a(f107597c, 0, currentTimeMillis + a, m92439a(context, i, a, str, str2, str3), \"com.google.android.gms\");\n }",
"public static C2703g m4547k(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.maps.model.internal.IMarkerDelegate\");\n return queryLocalInterface instanceof C2703g ? (C2703g) queryLocalInterface : new C2705i(iBinder);\n }",
"private static abstract class <init> extends com.google.android.gms.games.dMatchesImpl\n{\n\n public com.google.android.gms.games.multiplayer.turnbased.Q V(Status status)\n {\n return new com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.LoadMatchesResult(status) {\n\n final TurnBasedMultiplayerImpl.LoadMatchesImpl Ln;\n final Status wz;\n\n public LoadMatchesResponse getMatches()\n {\n return new LoadMatchesResponse(new Bundle());\n }\n\n public Status getStatus()\n {\n return wz;\n }\n\n public void release()\n {\n }\n\n \n {\n Ln = TurnBasedMultiplayerImpl.LoadMatchesImpl.this;\n wz = status;\n super();\n }\n };\n }",
"public interface MyConstants {\n\n //ALL_PREFS\n TinyDB db = TinyDB.getInstance();\n String PREF_TRACKER_APP = \"PREF_TRACKER_APP\";\n String PREF_EMAIL = \"PREF_EMAIL\";\n String PREF_PASSWORD = \"PREF_PASSWORD\";\n String PREF_MOBILE_NUMBER = \"PREF_MOBILE_NUMBER\";\n\n //ALL_VARIABLES\n String LOCATION_TIME = \"time\";\n String POWER = \"power\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n String ALTITUDE = \"altitude\";\n String BEARING = \"bearing\";\n String SPEED = \"speed\";\n String PROVIDER = \"provider\";\n String ACCURACY = \"accuracy\";\n String ELAPSED_REAL_TIME_NANOS = \"elapsedRealtimeNanos\";\n String BEARING_ACCURACY_DEGREES = \"getBearingAccuracyDegrees\";\n String SPEED_ACCURACY_METER_PER_SECOND = \"getSpeedAccuracyMetersPerSecond\";\n String VERTICAL_ACCURACY_METERS = \"getVerticalAccuracyMeters\";\n}",
"public DataUsage getusageData(int uid)\n {\n Calendar calendar=Calendar.getInstance();\n long to=calendar.getTimeInMillis();\n calendar.add(Calendar.DAY_OF_MONTH,-30);\n long from=calendar.getTimeInMillis();\n\n double total=0;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n NetworkStatsManager service=context.getSystemService(NetworkStatsManager.class);\n NetworkStats bucket= null;\n try {\n bucket = service.queryDetailsForUid(ConnectivityManager.TYPE_WIFI,\"\",from,to,uid);\n double received=0;\n double send=0;\n\n //get the details along with the time of data usage of an application\n while (bucket.hasNextBucket())\n {\n NetworkStats.Bucket tempbucket=new NetworkStats.Bucket();\n bucket.getNextBucket(tempbucket);\n received=(double)tempbucket.getRxBytes()+received;\n send=(double)tempbucket.getTxBytes()+send;\n }\n bucket.close();\n DataUsage temp =new DataUsage();\n double uploaded=send/(1024*1024);\n double downloaded=received/(1024*1024);\n\n total=(received+send)/(1024*1024);\n\n temp.setDownload(\"\"+String.format(\"%.2f\",downloaded));\n temp.setUpload(\"\"+String.format(\"%.2f\",uploaded));\n temp.setTotal(\"\"+String.format(\"%.2f\",total));\n return temp;\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }\n\n return null;\n }",
"@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }",
"private final com.google.android.play.p179a.p352a.ae m28545b(com.google.protobuf.nano.a r8) {\n /*\n r7 = this;\n r6 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n L_0x0002:\n r0 = r8.a();\n switch(r0) {\n case 0: goto L_0x000f;\n case 8: goto L_0x0010;\n case 18: goto L_0x001d;\n case 24: goto L_0x002a;\n case 34: goto L_0x0037;\n case 42: goto L_0x0044;\n case 50: goto L_0x0051;\n case 58: goto L_0x005e;\n case 66: goto L_0x006b;\n case 74: goto L_0x0078;\n case 82: goto L_0x0086;\n case 90: goto L_0x0094;\n case 98: goto L_0x00a2;\n case 106: goto L_0x00b0;\n case 114: goto L_0x00be;\n case 122: goto L_0x00cc;\n case 130: goto L_0x00dc;\n case 138: goto L_0x00eb;\n case 144: goto L_0x00fa;\n case 152: goto L_0x0108;\n case 160: goto L_0x0117;\n case 168: goto L_0x0126;\n default: goto L_0x0009;\n };\n L_0x0009:\n r0 = super.m4918a(r8, r0);\n if (r0 != 0) goto L_0x0002;\n L_0x000f:\n return r7;\n L_0x0010:\n r0 = r8.j();\n r7.f30754b = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x001d:\n r0 = r8.f();\n r7.f30755c = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x002a:\n r0 = r8.i();\n r7.f30757e = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0037:\n r0 = r8.f();\n r7.f30758f = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0044:\n r0 = r8.f();\n r7.f30759g = r0;\n r0 = r7.f30753a;\n r0 = r0 | 32;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0051:\n r0 = r8.f();\n r7.f30762j = r0;\n r0 = r7.f30753a;\n r0 = r0 | 256;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x005e:\n r0 = r8.f();\n r7.f30763k = r0;\n r0 = r7.f30753a;\n r0 = r0 | 512;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x006b:\n r0 = r8.f();\n r7.f30760h = r0;\n r0 = r7.f30753a;\n r0 = r0 | 64;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0078:\n r0 = r8.f();\n r7.f30761i = r0;\n r0 = r7.f30753a;\n r0 = r0 | 128;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0086:\n r0 = r8.f();\n r7.f30764l = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1024;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0094:\n r0 = r8.f();\n r7.f30765m = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2048;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00a2:\n r0 = r8.f();\n r7.f30766n = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4096;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00b0:\n r0 = r8.f();\n r7.f30767o = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8192;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00be:\n r0 = r8.f();\n r7.f30768p = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16384;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00cc:\n r0 = r8.f();\n r7.f30769q = r0;\n r0 = r7.f30753a;\n r1 = 32768; // 0x8000 float:4.5918E-41 double:1.61895E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00dc:\n r0 = r8.f();\n r7.f30770r = r0;\n r0 = r7.f30753a;\n r1 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00eb:\n r0 = r8.f();\n r7.f30771s = r0;\n r0 = r7.f30753a;\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00fa:\n r0 = r8.j();\n r7.f30756d = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0108:\n r0 = r8.i();\n r7.f30772t = r0;\n r0 = r7.f30753a;\n r1 = 262144; // 0x40000 float:3.67342E-40 double:1.295163E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0117:\n r0 = r8.e();\n r7.f30773u = r0;\n r0 = r7.f30753a;\n r1 = 524288; // 0x80000 float:7.34684E-40 double:2.590327E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0126:\n r1 = r7.f30753a;\n r1 = r1 | r6;\n r7.f30753a = r1;\n r1 = r8.o();\n r2 = r8.i();\t Catch:{ IllegalArgumentException -> 0x0151 }\n switch(r2) {\n case 0: goto L_0x015a;\n case 1: goto L_0x015a;\n case 2: goto L_0x015a;\n default: goto L_0x0136;\n };\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0136:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = 48;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = \" is not a valid enum PairedDeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0151 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0151:\n r2 = move-exception;\n r8.e(r1);\n r7.m4918a(r8, r0);\n goto L_0x0002;\n L_0x015a:\n r7.f30774v = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r7.f30753a;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2 | r6;\n r7.f30753a = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n goto L_0x0002;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.ae.b(com.google.protobuf.nano.a):com.google.android.play.a.a.ae\");\n }",
"public String getMeasurementCode() {\n return this.measurementCode;\n }",
"private Map<String, C0148k> m471c() {\n HashMap hashMap = new HashMap();\n try {\n Class.forName(\"com.google.android.gms.ads.AdView\");\n C0148k kVar = new C0148k(\"com.google.firebase.firebase-ads\", \"0.0.0\", \"binary\");\n hashMap.put(kVar.mo326a(), kVar);\n C0135c.m449h().mo273b(\"Fabric\", \"Found kit: com.google.firebase.firebase-ads\");\n } catch (Exception unused) {\n }\n return hashMap;\n }",
"private void m10265b(String str) {\n if (!TextUtils.isEmpty(str)) {\n final ArrayList arrayList = new ArrayList();\n boolean a = C1849a.m9641a();\n StringBuilder stringBuilder = new StringBuilder(a ? \"http://maps.google.cn/maps/api/elevation/json?path=\" : \"https://maps.googleapis.com/maps/api/elevation/json?path=\");\n stringBuilder.append(str).append(\"&samples=\").append(this.f8993u);\n if (!a) {\n stringBuilder.append(\"&key=AIzaSyC6rtQRpblQN3RWVE3OCK_c8q4QhWVSnfg\");\n }\n this.f8996x.m13745a(new JsonObjectRequest(stringBuilder.toString(), null, new Listener<JSONObject>(this) {\n /* renamed from: b */\n final /* synthetic */ C1998a f8964b;\n\n public /* synthetic */ void onResponse(Object obj) {\n m10245a((JSONObject) obj);\n }\n\n /* renamed from: a */\n public void m10245a(JSONObject jSONObject) {\n if (\"OK\".equals(jSONObject.optString(\"status\"))) {\n JSONArray optJSONArray = jSONObject.optJSONArray(\"results\");\n for (int i = 0; i < optJSONArray.length(); i++) {\n try {\n arrayList.add(Double.valueOf(((JSONObject) optJSONArray.get(i)).optDouble(\"elevation\")));\n } catch (JSONException e) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", e.getMessage());\n }\n }\n this.f8964b.f8976d.setMaxAltitude(((Double) Collections.max(arrayList)).doubleValue());\n this.f8964b.f8973a.mo3315b(arrayList);\n } else if (\"INVALID_REQUEST\".equals(jSONObject.optString(\"status\"))) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n } else {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n }\n }\n }, new C19945(this)), this.f8974b);\n }\n }",
"interface cm\n{\n\n public abstract void f(com.google.android.gms.internal.d.a a);\n\n public abstract cj lS();\n\n public abstract cj lT();\n\n public abstract ck lU();\n\n public abstract ck lV();\n\n public abstract ck lW();\n\n public abstract ck lX();\n}",
"private Measurement getMeasurements(){\n Measurement measurement = new Measurement();\n\n //set to date of measurement added\n measurement.setDate(new Date());\n\n //retrieve measurement data from edit texts. if edit text is empty make measurement 0;\n String neckString = neckEditText.getText().toString();\n double neck = (!neckString.equals(\"\")) ? Double.parseDouble(neckString) : 0;\n measurement.setNeck(neck);\n\n String chestString = chestEditText.getText().toString();\n double chest = (!chestString.equals(\"\")) ? Double.parseDouble(chestString) : 0;\n measurement.setChest(chest);\n\n String shoulderString = shoulderEditText.getText().toString();\n double shoulders = (!shoulderString.equals(\"\")) ? Double.parseDouble(shoulderString) : 0;\n measurement.setShoulders(shoulders);\n\n String leftArmString = leftArmEditText.getText().toString();\n double leftArm = (!leftArmString.equals(\"\")) ? Double.parseDouble(leftArmString) : 0;\n measurement.setLeftArm(leftArm);\n\n String rightArmString = rightArmEditText.getText().toString();\n double rightArm = (!rightArmString.equals(\"\")) ? Double.parseDouble(rightArmString) : 0;\n measurement.setRightArm(rightArm);\n\n String leftForearmString = leftForearmEditText.getText().toString();\n double leftForearm = (!leftForearmString.equals(\"\")) ? Double.parseDouble(leftForearmString) : 0;\n measurement.setLeftForearm(leftForearm);\n\n String rightForearmString = rightForearmEditText.getText().toString();\n double rightForearm = (!rightForearmString.equals(\"\")) ? Double.parseDouble(rightForearmString) : 0;\n measurement.setRightForearm(rightForearm);\n\n String waistString = waistEditText.getText().toString();\n double waist = (!waistString.equals(\"\")) ? Double.parseDouble(waistString) : 0;\n measurement.setWaist(waist);\n\n String hipsString = hipsEditText.getText().toString();\n double hips = (!hipsString.equals(\"\")) ? Double.parseDouble(hipsString) : 0;\n measurement.setHips(hips);\n\n String leftLegString = leftLegEditText.getText().toString();\n double leftLeg = (!leftLegString.equals(\"\")) ? Double.parseDouble(leftLegString) : 0;\n measurement.setLeftLeg(leftLeg);\n\n String rightLegString = rightLegEditText.getText().toString();\n double rightLeg = (!rightLegString.equals(\"\")) ? Double.parseDouble(rightLegString) : 0;\n measurement.setRightLeg(rightLeg);\n\n String leftCalfString = leftCalfEditText.getText().toString();\n double leftCalf = (!leftCalfString.equals(\"\")) ? Double.parseDouble(leftCalfString) : 0;\n measurement.setLeftCalf(leftCalf);\n\n String rightCalfString = rightCalfEditText.getText().toString();\n double rightCalf = (!rightCalfString.equals(\"\")) ? Double.parseDouble(rightCalfString) : 0;\n measurement.setRightCalf(rightCalf);\n\n String weightString = weightEditText.getText().toString();\n double weight = (!weightString.equals(\"\")) ? Double.parseDouble(weightString) : 0;\n measurement.setWeight(weight);\n\n String bodyFatString = bodyFatEditText.getText().toString();\n double bodyFat = (!bodyFatString.equals(\"\")) ? Double.parseDouble(bodyFatString) : 0;\n measurement.setBodyFat(bodyFat);\n\n //below variables are should be retrieved from the Shared Preferences.\n int age = mSharedPreferences.getInt(Constants.AGE, 0);\n measurement.setAge(age);\n boolean male = mSharedPreferences.getBoolean(Constants.SEX, true);\n measurement.setMale(male);\n String activityLevel = mSharedPreferences.getString(Constants.ACTIVITY, \"\");\n\n if(activityLevel.equals(getString(R.string.sedentary))){\n measurement.setActivityLevel(Calculators.SEDENTERAY);\n } else if(activityLevel.equals(getString(R.string.light))){\n measurement.setActivityLevel(Calculators.LIGHT);\n }else if(activityLevel.equals(getString(R.string.moderate))){\n measurement.setActivityLevel(Calculators.MODERATE);\n }else if(activityLevel.equals(getString(R.string.very_active))){\n measurement.setActivityLevel(Calculators.VERY_ACTIVE);\n }else if(activityLevel.equals(getString(R.string.extremely_active))){\n measurement.setActivityLevel(Calculators.EXTREMELY_ACTIVE);\n }\n\n double height = mSharedPreferences.getFloat(Constants.HEIGHT,0);\n measurement.setHeight(height);\n\n //if weight is more than 0 use the Calculators class to calculate the rest of the measurement variables\n if(weight > 0){\n measurement.setRestingEnergyExpenditure(Calculators.getRestingEnergyExpenditure(weight, height, age, male));\n measurement.setTotalDailyEnergyExpenditure(Calculators.getTotalDailyEnergyExpenditure(measurement.getRestingEnergyExpenditure(), measurement.getActivityLevel()));\n measurement.setProteinAmount(Calculators.getProteinAmount(weight));\n measurement.setFatAmount(Calculators.getFatAmount(measurement.getTotalDailyEnergyExpenditure()));\n measurement.setCarbAmount(Calculators.getCarbAmount(measurement.getProteinAmount(), measurement.getFatAmount(), measurement.getTotalDailyEnergyExpenditure()));\n measurement.setBMI(Calculators.getBMI(height, weight, true));\n measurement.setBMICategory(Calculators.getBMICatagory(measurement.getBMI()));\n measurement.setWaistToHeightRatio(Calculators.waistToHeightRatio(waist, height));\n measurement.setWITHCategory(Calculators.getWTHCatagory(measurement.getWaistToHeightRatio(), male));\n }\n return measurement;\n }",
"public java.lang.String toString() {\n /*\n r4 = this;\n r1 = com.google.android.gms.internal.zzkq.a;\n r0 = r4.isEmpty();\t Catch:{ ClassCastException -> 0x000c }\n if (r0 == 0) goto L_0x000e;\n L_0x0008:\n r0 = \"{}\";\n L_0x000b:\n return r0;\n L_0x000c:\n r0 = move-exception;\n throw r0;\n L_0x000e:\n r2 = new java.lang.StringBuilder;\n r0 = r4.mSize;\n r0 = r0 * 28;\n r2.<init>(r0);\n r0 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r2.append(r0);\n r0 = 0;\n L_0x001d:\n r3 = r4.mSize;\n if (r0 >= r3) goto L_0x0054;\n L_0x0021:\n if (r0 <= 0) goto L_0x0029;\n L_0x0023:\n r3 = \", \";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x005e }\n L_0x0029:\n r3 = r4.keyAt(r0);\n if (r3 == r4) goto L_0x0034;\n L_0x002f:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n if (r1 == 0) goto L_0x003a;\n L_0x0034:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n L_0x003a:\n r3 = 61;\n r2.append(r3);\n r3 = r4.valueAt(r0);\n if (r3 == r4) goto L_0x004a;\n L_0x0045:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n if (r1 == 0) goto L_0x0050;\n L_0x004a:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n L_0x0050:\n r0 = r0 + 1;\n if (r1 == 0) goto L_0x001d;\n L_0x0054:\n r0 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r2.append(r0);\n r0 = r2.toString();\n goto L_0x000b;\n L_0x005e:\n r0 = move-exception;\n throw r0;\n L_0x0060:\n r0 = move-exception;\n throw r0;\n L_0x0062:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.toString():java.lang.String\");\n }",
"@Override\r\n public void onSensorChanged(SensorEvent event) {\r\n /*final DocumentReference dr = nFirestore.collection(\"User\").document(mAuth.getCurrentUser().getUid());*/\r\n if (running){\r\n steps = findViewById(R.id.steps);\r\n final Map<String,Object> userMap = new HashMap<>();\r\n Fitness.getHistoryClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .readDailyTotal(DataType.TYPE_STEP_COUNT_DELTA)\r\n .addOnSuccessListener(\r\n new OnSuccessListener<DataSet>() {\r\n @Override\r\n public void onSuccess(DataSet dataSet) {\r\n long total =\r\n dataSet.isEmpty()\r\n ? 0\r\n : dataSet.getDataPoints().get(0).getValue(Field.FIELD_STEPS).asInt();\r\n getGroup();\r\n u.setSteps(String.valueOf(total));\r\n u.setTop(\"10\");\r\n u.setUid(mAuth.getCurrentUser().getUid());\r\n getTopPos();\r\n\r\n //u.setGroup(\"group\");\r\n /*userMap.get(\"group\") = getGroup().get(\"group\");*/\r\n //userMap.put(\"group\",getGroup().get(\"group\"));\r\n //userMap.put(\"steps\",String.valueOf(total));\r\n /*batch.update(dr,\"steps\",String.valueOf(total));*/\r\n //calculateTop();\r\n //top = calculateTop();\r\n //userMap.put(\"top\",String.valueOf(top));\r\n nFirestore.collection(\"user\").document(mAuth.getCurrentUser().getUid()).set(u);\r\n //nFirestore.collection(\"User\").document(mAuth.getCurrentUser().getUid()).set(getGroup().get(\"group\"));\r\n steps.setText(String.valueOf(total));\r\n\r\n }\r\n })\r\n .addOnFailureListener(\r\n new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Log.w(TAGFit, \"There was a problem getting the step count.\", e);\r\n }\r\n });\r\n }\r\n }",
"public final void mo2487a(com.google.android.gms.common.api.ResultCallback<? super R> r5) {\n /*\n r4 = this;\n r0 = r4.f11863a;\n monitor-enter(r0);\n if (r5 != 0) goto L_0x000c;\n L_0x0005:\n r5 = 0;\n r4.f11868g = r5;\t Catch:{ all -> 0x000a }\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x000a:\n r5 = move-exception;\n goto L_0x003c;\n L_0x000c:\n r1 = r4.f11872k;\t Catch:{ all -> 0x000a }\n r2 = 1;\n r1 = r1 ^ r2;\n r3 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r3);\t Catch:{ all -> 0x000a }\n r1 = r4.f11876o;\t Catch:{ all -> 0x000a }\n if (r1 != 0) goto L_0x001a;\n L_0x0019:\n goto L_0x001b;\n L_0x001a:\n r2 = 0;\n L_0x001b:\n r1 = \"Cannot set callbacks if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r2, r1);\t Catch:{ all -> 0x000a }\n r1 = r4.mo2488b();\t Catch:{ all -> 0x000a }\n if (r1 == 0) goto L_0x0028;\n L_0x0026:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x0028:\n r1 = r4.m14229d();\t Catch:{ all -> 0x000a }\n if (r1 == 0) goto L_0x0038;\n L_0x002e:\n r1 = r4.f11864b;\t Catch:{ all -> 0x000a }\n r2 = r4.mo3575g();\t Catch:{ all -> 0x000a }\n r1.m8915a(r5, r2);\t Catch:{ all -> 0x000a }\n goto L_0x003a;\n L_0x0038:\n r4.f11868g = r5;\t Catch:{ all -> 0x000a }\n L_0x003a:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x003c:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(com.google.android.gms.common.api.ResultCallback):void\");\n }",
"public void setTimeInNs(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeInNs(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeInNs(long):void\");\n }",
"private static C2499b m9558d(Context context) {\n C2502b bVar = new C2502b();\n Intent intent = new Intent(\"com.google.android.gms.ads.identifier.service.START\");\n intent.setPackage(\"com.google.android.gms\");\n if (context.bindService(intent, bVar, 1)) {\n try {\n C2501a aVar = new C2501a(bVar.mo8982a());\n C2499b bVar2 = new C2499b();\n bVar2.f7871c = aVar.mo8979a();\n bVar2.f7873e = aVar.mo8981b();\n return bVar2;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n } finally {\n context.unbindService(bVar);\n }\n }\n return null;\n }",
"static /* synthetic */ double m310-set3(android.location.GpsClock r1, double r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set3(android.location.GpsClock, double):double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set3(android.location.GpsClock, double):double\");\n }",
"private final void zaa(java.lang.StringBuilder r10, java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>> r11, android.os.Parcel r12) {\n /*\n r9 = this;\n android.util.SparseArray r0 = new android.util.SparseArray\n r0.<init>()\n java.util.Set r11 = r11.entrySet()\n java.util.Iterator r11 = r11.iterator()\n L_0x000d:\n boolean r1 = r11.hasNext()\n if (r1 == 0) goto L_0x0027\n java.lang.Object r1 = r11.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r2 = r1.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r2 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r2\n int r2 = r2.getSafeParcelableFieldId()\n r0.put(r2, r1)\n goto L_0x000d\n L_0x0027:\n r11 = 123(0x7b, float:1.72E-43)\n r10.append(r11)\n int r11 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r12)\n r1 = 1\n r2 = 0\n r3 = 0\n L_0x0033:\n int r4 = r12.dataPosition()\n if (r4 >= r11) goto L_0x0262\n int r4 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r12)\n int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r4)\n java.lang.Object r5 = r0.get(r5)\n java.util.Map$Entry r5 = (java.util.Map.Entry) r5\n if (r5 == 0) goto L_0x0033\n if (r3 == 0) goto L_0x0050\n java.lang.String r3 = \",\"\n r10.append(r3)\n L_0x0050:\n java.lang.Object r3 = r5.getKey()\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r5 = r5.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r5 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r5\n java.lang.String r6 = \"\\\"\"\n r10.append(r6)\n r10.append(r3)\n java.lang.String r3 = \"\\\":\"\n r10.append(r3)\n boolean r3 = r5.zacn()\n if (r3 == 0) goto L_0x010a\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00f4;\n case 2: goto L_0x00eb;\n case 3: goto L_0x00e2;\n case 4: goto L_0x00d9;\n case 5: goto L_0x00d4;\n case 6: goto L_0x00cb;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c1;\n case 9: goto L_0x00c1;\n case 10: goto L_0x0097;\n case 11: goto L_0x008f;\n default: goto L_0x0074;\n }\n L_0x0074:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n int r11 = r5.zapt\n r12 = 36\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>(r12)\n java.lang.String r12 = \"Unknown field out type = \"\n r0.append(r12)\n r0.append(r11)\n java.lang.String r11 = r0.toString()\n r10.<init>(r11)\n throw r10\n L_0x008f:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n java.lang.String r11 = \"Method does not accept concrete type.\"\n r10.<init>(r11)\n throw r10\n L_0x0097:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.HashMap r4 = new java.util.HashMap\n r4.<init>()\n java.util.Set r6 = r3.keySet()\n java.util.Iterator r6 = r6.iterator()\n L_0x00a8:\n boolean r7 = r6.hasNext()\n if (r7 == 0) goto L_0x00bc\n java.lang.Object r7 = r6.next()\n java.lang.String r7 = (java.lang.String) r7\n java.lang.String r8 = r3.getString(r7)\n r4.put(r7, r8)\n goto L_0x00a8\n L_0x00bc:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r4)\n goto L_0x0105\n L_0x00c1:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n goto L_0x0101\n L_0x00c6:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n goto L_0x0101\n L_0x00cb:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n goto L_0x0101\n L_0x00d4:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0101\n L_0x00d9:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n java.lang.Double r3 = java.lang.Double.valueOf(r3)\n goto L_0x0101\n L_0x00e2:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n java.lang.Float r3 = java.lang.Float.valueOf(r3)\n goto L_0x0101\n L_0x00eb:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n goto L_0x0101\n L_0x00f4:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n goto L_0x0101\n L_0x00f9:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n L_0x0101:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r3)\n L_0x0105:\n r9.zab((java.lang.StringBuilder) r10, (com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>) r5, (java.lang.Object) r3)\n goto L_0x025f\n L_0x010a:\n boolean r3 = r5.zapu\n if (r3 == 0) goto L_0x0188\n java.lang.String r3 = \"[\"\n r10.append(r3)\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x017d;\n case 1: goto L_0x0175;\n case 2: goto L_0x016d;\n case 3: goto L_0x0165;\n case 4: goto L_0x015d;\n case 5: goto L_0x0158;\n case 6: goto L_0x0150;\n case 7: goto L_0x0148;\n case 8: goto L_0x0140;\n case 9: goto L_0x0140;\n case 10: goto L_0x0140;\n case 11: goto L_0x0120;\n default: goto L_0x0118;\n }\n L_0x0118:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out.\"\n r10.<init>(r11)\n throw r10\n L_0x0120:\n android.os.Parcel[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelArray(r12, r4)\n int r4 = r3.length\n r6 = 0\n L_0x0126:\n if (r6 >= r4) goto L_0x0184\n if (r6 <= 0) goto L_0x012f\n java.lang.String r7 = \",\"\n r10.append(r7)\n L_0x012f:\n r7 = r3[r6]\n r7.setDataPosition(r2)\n java.util.Map r7 = r5.zacq()\n r8 = r3[r6]\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r7, (android.os.Parcel) r8)\n int r6 = r6 + 1\n goto L_0x0126\n L_0x0140:\n java.lang.UnsupportedOperationException r10 = new java.lang.UnsupportedOperationException\n java.lang.String r11 = \"List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported\"\n r10.<init>(r11)\n throw r10\n L_0x0148:\n java.lang.String[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createStringArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeStringArray(r10, r3)\n goto L_0x0184\n L_0x0150:\n boolean[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBooleanArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (boolean[]) r3)\n goto L_0x0184\n L_0x0158:\n java.math.BigDecimal[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimalArray(r12, r4)\n goto L_0x0179\n L_0x015d:\n double[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createDoubleArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (double[]) r3)\n goto L_0x0184\n L_0x0165:\n float[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createFloatArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (float[]) r3)\n goto L_0x0184\n L_0x016d:\n long[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (long[]) r3)\n goto L_0x0184\n L_0x0175:\n java.math.BigInteger[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigIntegerArray(r12, r4)\n L_0x0179:\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (T[]) r3)\n goto L_0x0184\n L_0x017d:\n int[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createIntArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (int[]) r3)\n L_0x0184:\n java.lang.String r3 = \"]\"\n goto L_0x0227\n L_0x0188:\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x0258;\n case 1: goto L_0x0250;\n case 2: goto L_0x0248;\n case 3: goto L_0x0240;\n case 4: goto L_0x0238;\n case 5: goto L_0x0233;\n case 6: goto L_0x022b;\n case 7: goto L_0x0215;\n case 8: goto L_0x0207;\n case 9: goto L_0x01f9;\n case 10: goto L_0x01a5;\n case 11: goto L_0x0195;\n default: goto L_0x018d;\n }\n L_0x018d:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out\"\n r10.<init>(r11)\n throw r10\n L_0x0195:\n android.os.Parcel r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcel(r12, r4)\n r3.setDataPosition(r2)\n java.util.Map r4 = r5.zacq()\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r4, (android.os.Parcel) r3)\n goto L_0x025f\n L_0x01a5:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.Set r4 = r3.keySet()\n r4.size()\n java.lang.String r5 = \"{\"\n r10.append(r5)\n java.util.Iterator r4 = r4.iterator()\n r5 = 1\n L_0x01ba:\n boolean r6 = r4.hasNext()\n if (r6 == 0) goto L_0x01f6\n java.lang.Object r6 = r4.next()\n java.lang.String r6 = (java.lang.String) r6\n if (r5 != 0) goto L_0x01cd\n java.lang.String r5 = \",\"\n r10.append(r5)\n L_0x01cd:\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r10.append(r6)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = \":\"\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = r3.getString(r6)\n java.lang.String r5 = com.google.android.gms.common.util.JsonUtils.escapeString(r5)\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r5 = 0\n goto L_0x01ba\n L_0x01f6:\n java.lang.String r3 = \"}\"\n goto L_0x0227\n L_0x01f9:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encodeUrlSafe(r3)\n goto L_0x0222\n L_0x0207:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encode(r3)\n goto L_0x0222\n L_0x0215:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.JsonUtils.escapeString(r3)\n L_0x0222:\n r10.append(r3)\n java.lang.String r3 = \"\\\"\"\n L_0x0227:\n r10.append(r3)\n goto L_0x025f\n L_0x022b:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0233:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0254\n L_0x0238:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0240:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0248:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0250:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n L_0x0254:\n r10.append(r3)\n goto L_0x025f\n L_0x0258:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n r10.append(r3)\n L_0x025f:\n r3 = 1\n goto L_0x0033\n L_0x0262:\n int r0 = r12.dataPosition()\n if (r0 != r11) goto L_0x026e\n r11 = 125(0x7d, float:1.75E-43)\n r10.append(r11)\n return\n L_0x026e:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException r10 = new com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException\n r0 = 37\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Overread allowed size end=\"\n r1.append(r0)\n r1.append(r11)\n java.lang.String r11 = r1.toString()\n r10.<init>(r11, r12)\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.server.response.SafeParcelResponse.zaa(java.lang.StringBuilder, java.util.Map, android.os.Parcel):void\");\n }",
"public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}",
"private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }",
"public final void mo5384q() {\n if (this.f9712e) {\n this.f9712e = false;\n this.f9713f = 0;\n RecyclerView recyclerView = this.f9709b;\n if (recyclerView != null) {\n recyclerView.f1041a.mo5397b();\n }\n }\n }",
"static /* synthetic */ double m315-set8(android.location.GpsClock r1, double r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set8(android.location.GpsClock, double):double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set8(android.location.GpsClock, double):double\");\n }",
"public final java.lang.String mo40211d_() {\n /*\n r6 = this;\n android.database.sqlite.SQLiteDatabase r0 = r6.mo40210c_()\n r1 = 0\n java.lang.String r2 = \"select app_id from queue order by has_realtime desc, rowid asc limit 1;\"\n android.database.Cursor r0 = r0.rawQuery(r2, r1) // Catch:{ SQLiteException -> 0x002b, all -> 0x0026 }\n boolean r2 = r0.moveToFirst() // Catch:{ SQLiteException -> 0x0024 }\n if (r2 == 0) goto L_0x001d\n r2 = 0\n java.lang.String r1 = r0.getString(r2) // Catch:{ SQLiteException -> 0x0024 }\n if (r0 == 0) goto L_0x001c\n r0.close()\n L_0x001c:\n return r1\n L_0x001d:\n if (r0 == 0) goto L_0x0023\n r0.close()\n L_0x0023:\n return r1\n L_0x0024:\n r2 = move-exception\n goto L_0x002d\n L_0x0026:\n r0 = move-exception\n r5 = r1\n r1 = r0\n r0 = r5\n goto L_0x0041\n L_0x002b:\n r2 = move-exception\n r0 = r1\n L_0x002d:\n com.google.android.gms.measurement.internal.zzez r3 = r6.zzr() // Catch:{ all -> 0x0040 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0040 }\n java.lang.String r4 = \"Database error getting next bundle app id\"\n r3.zza(r4, r2) // Catch:{ all -> 0x0040 }\n if (r0 == 0) goto L_0x003f\n r0.close()\n L_0x003f:\n return r1\n L_0x0040:\n r1 = move-exception\n L_0x0041:\n if (r0 == 0) goto L_0x0046\n r0.close()\n L_0x0046:\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.mo40211d_():java.lang.String\");\n }",
"static /* synthetic */ double m308-set1(android.location.GpsClock r1, double r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set1(android.location.GpsClock, double):double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set1(android.location.GpsClock, double):double\");\n }",
"public final String mo38131b() {\n return \"com.google.android.gms.ads.internal.cache.ICacheService\";\n }",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private static boolean zza(com.google.firebase.iid.FirebaseInstanceId r6, java.lang.String r7) {\n /*\n java.lang.String r0 = \"!\"\n java.lang.String[] r7 = r7.split(r0)\n int r0 = r7.length\n r1 = 1\n r2 = 2\n if (r0 != r2) goto L_0x0075\n r0 = 0\n r2 = r7[r0]\n r7 = r7[r1]\n r3 = -1\n int r4 = r2.hashCode() // Catch:{ IOException -> 0x0054 }\n r5 = 83\n if (r4 == r5) goto L_0x0028\n r5 = 85\n if (r4 == r5) goto L_0x001e\n goto L_0x0031\n L_0x001e:\n java.lang.String r4 = \"U\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 1\n goto L_0x0031\n L_0x0028:\n java.lang.String r4 = \"S\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 0\n L_0x0031:\n switch(r3) {\n case 0: goto L_0x0046;\n case 1: goto L_0x0035;\n default: goto L_0x0034;\n } // Catch:{ IOException -> 0x0054 }\n L_0x0034:\n goto L_0x0075\n L_0x0035:\n r6.zzc(r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"unsubscribe operation succeeded\"\n L_0x0042:\n android.util.Log.d(r6, r7) // Catch:{ IOException -> 0x0054 }\n goto L_0x0075\n L_0x0046:\n r6.zzb((java.lang.String) r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"subscribe operation succeeded\"\n goto L_0x0042\n L_0x0054:\n r6 = move-exception\n java.lang.String r7 = \"FirebaseInstanceId\"\n java.lang.String r1 = \"Topic sync failed: \"\n java.lang.String r6 = r6.getMessage()\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r2 = r6.length()\n if (r2 == 0) goto L_0x006c\n java.lang.String r6 = r1.concat(r6)\n goto L_0x0071\n L_0x006c:\n java.lang.String r6 = new java.lang.String\n r6.<init>(r1)\n L_0x0071:\n android.util.Log.e(r7, r6)\n return r0\n L_0x0075:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zza(com.google.firebase.iid.FirebaseInstanceId, java.lang.String):boolean\");\n }",
"@Override\n public void onAccuracyChanged(Sensor arg0, int arg1) {\n\n }",
"@javax.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private final com.google.android.gms.internal.ads.alc m16975a(@javax.annotation.Nullable android.content.Context r4, boolean r5, boolean r6) {\n /*\n r3 = this;\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11765Q\n com.google.android.gms.internal.ads.ars r1 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r1.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n r1 = 0\n if (r0 != 0) goto L_0x0014\n return r1\n L_0x0014:\n boolean r0 = com.google.android.gms.common.util.C3563o.m12763b()\n if (r0 != 0) goto L_0x001b\n return r1\n L_0x001b:\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11773Y\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11771W\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n return r1\n L_0x0040:\n if (r5 == 0) goto L_0x0045\n if (r6 == 0) goto L_0x0045\n return r1\n L_0x0045:\n java.lang.Object r5 = r3.f13322a\n monitor-enter(r5)\n android.os.Looper r6 = android.os.Looper.getMainLooper() // Catch:{ all -> 0x007f }\n if (r6 == 0) goto L_0x007d\n if (r4 != 0) goto L_0x0051\n goto L_0x007d\n L_0x0051:\n com.google.android.gms.internal.ads.akx r6 = r3.f13331j // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x005c\n com.google.android.gms.internal.ads.akx r6 = new com.google.android.gms.internal.ads.akx // Catch:{ all -> 0x007f }\n r6.<init>() // Catch:{ all -> 0x007f }\n r3.f13331j = r6 // Catch:{ all -> 0x007f }\n L_0x005c:\n com.google.android.gms.internal.ads.alc r6 = r3.f13330i // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x006f\n com.google.android.gms.internal.ads.alc r6 = new com.google.android.gms.internal.ads.alc // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.akx r0 = r3.f13331j // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.zzang r1 = r3.f13328g // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.ck r4 = com.google.android.gms.internal.ads.C3712cg.m16480a(r4, r1) // Catch:{ all -> 0x007f }\n r6.<init>(r0, r4) // Catch:{ all -> 0x007f }\n r3.f13330i = r6 // Catch:{ all -> 0x007f }\n L_0x006f:\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n r4.mo14478a() // Catch:{ all -> 0x007f }\n java.lang.String r4 = \"start fetching content...\"\n com.google.android.gms.internal.ads.C3900je.m17433d(r4) // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r4\n L_0x007d:\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r1\n L_0x007f:\n r4 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C3883io.m16975a(android.content.Context, boolean, boolean):com.google.android.gms.internal.ads.alc\");\n }",
"public void resetBiasUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.resetBiasUncertaintyInNs():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetBiasUncertaintyInNs():void\");\n }",
"public long mo15024g() {\n throw new UnsupportedOperationException();\n }",
"public final /* synthetic */ Object zzpq() {\n \n /* JADX ERROR: Method code generation error\n jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE (wrap: android.content.Context\n 0x0000: IGET (r0v0 android.content.Context) = (r2v0 'this' com.google.android.gms.internal.ads.zzwo A[THIS]) com.google.android.gms.internal.ads.zzwo.val$context android.content.Context), (wrap: java.lang.String\n 0x0002: CONST_STR (r1v0 java.lang.String) = \"native_ad\") com.google.android.gms.internal.ads.zzwj.zzb(android.content.Context, java.lang.String):void type: STATIC in method: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object, dex: classes2.dex\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:245)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:213)\n \tat jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:109)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)\n \tat jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:92)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:58)\n \tat jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:210)\n \tat jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:203)\n \tat jadx.core.codegen.ClassGen.addMethod(ClassGen.java:316)\n \tat jadx.core.codegen.ClassGen.addMethods(ClassGen.java:262)\n \tat jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:225)\n \tat jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:110)\n \tat jadx.core.codegen.ClassGen.makeClass(ClassGen.java:76)\n \tat jadx.core.codegen.CodeGen.wrapCodeGen(CodeGen.java:44)\n \tat jadx.core.codegen.CodeGen.generateJavaCode(CodeGen.java:32)\n \tat jadx.core.codegen.CodeGen.generate(CodeGen.java:20)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:36)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -2 is negative\n \tat java.base/java.util.ArrayList.shiftTailOverGap(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat jadx.core.dex.instructions.args.SSAVar.removeUse(SSAVar.java:86)\n \tat jadx.core.utils.InsnRemover.unbindArgUsage(InsnRemover.java:90)\n \tat jadx.core.dex.nodes.InsnNode.replaceArg(InsnNode.java:130)\n \tat jadx.core.codegen.InsnGen.inlineMethod(InsnGen.java:892)\n \tat jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:669)\n \tat jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:357)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:239)\n \t... 19 more\n */\n /*\n this = this;\n android.content.Context r0 = r2.val$context\n java.lang.String r1 = \"native_ad\"\n com.google.android.gms.internal.ads.zzwj.zza(r0, r1)\n com.google.android.gms.internal.ads.zzzh r0 = new com.google.android.gms.internal.ads.zzzh\n r0.<init>()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object\");\n }",
"public void setBiasUncertaintyInNs(double r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setBiasUncertaintyInNs(double):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setBiasUncertaintyInNs(double):void\");\n }",
"private final synchronized void m46516U() {\n if (this.f40716Q != null) {\n for (alb b : this.f40716Q.values()) {\n b.mo38266b();\n }\n }\n this.f40716Q = null;\n }",
"public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }",
"public void setBiasInNs(double r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.location.GpsClock.setBiasInNs(double):void, dex: in method: android.location.GpsClock.setBiasInNs(double):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setBiasInNs(double):void\");\n }",
"public static String m21381A(Context context) {\n String str = \"\";\n if (VERSION.SDK_INT >= 21) {\n UsageStatsManager usageStatsManager = (UsageStatsManager) context.getSystemService(\"usagestats\");\n if (usageStatsManager == null) {\n return str;\n }\n long currentTimeMillis = System.currentTimeMillis();\n List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(0, currentTimeMillis - 60000, currentTimeMillis);\n if (queryUsageStats == null) {\n return str;\n }\n TreeMap treeMap = new TreeMap();\n for (UsageStats usageStats : queryUsageStats) {\n treeMap.put(Long.valueOf(usageStats.getLastTimeUsed()), usageStats);\n }\n return !treeMap.isEmpty() ? ((UsageStats) treeMap.get(treeMap.lastKey())).getPackageName() : str;\n }\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Constants.FLAG_ACTIVITY_NAME);\n return activityManager != null ? ((RunningTaskInfo) activityManager.getRunningTasks(5).get(0)).topActivity.getPackageName() : str;\n }",
"public float getMicGainDb();",
"@Override\n public void ensureMeasurementInitialized(String measurement, int version, MeasurementFields fields) {\n final int currentVersion = getMeasurementVersion(measurement);\n Logger.info(LOG_TAG, \"Initializing measurement \" + measurement + \" to \" +\n version + \" (current \" + currentVersion + \")\");\n \n if (currentVersion == version) {\n Logger.info(LOG_TAG, \"Measurement \" + measurement + \" already at v\" + version);\n return;\n }\n \n final SQLiteDatabase db = this.helper.getWritableDatabase();\n if (!db.inTransaction()) {\n Logger.warn(LOG_TAG, \"ensureMeasurementInitialized should be called within a transaction.\");\n }\n \n final ContentValues mv = new ContentValues();\n mv.put(\"name\", measurement);\n mv.put(\"version\", version);\n \n final int measurementID = (int) db.insert(\"measurements\", null, mv);\n \n final ContentValues v = new ContentValues();\n v.put(\"measurement\", measurementID);\n for (FieldSpec field : fields.getFields()) {\n v.put(\"name\", field.name);\n v.put(\"flags\", field.type);\n Logger.debug(LOG_TAG, \"M: \" + measurementID + \" F: \" + field.name + \" (\" + field.type + \")\");\n db.insert(\"fields\", null, v);\n }\n \n notifyMeasurementVersionUpdated(measurement, version);\n \n // Let's be easy for now.\n synchronized (fields) {\n fieldsCacheUpdated = false;\n }\n }",
"private static int zza(byte[] r1, int r2, int r3, com.google.android.gms.internal.clearcut.zzfl r4, java.lang.Class<?> r5, com.google.android.gms.internal.clearcut.zzay r6) throws java.io.IOException {\n /*\n r0 = com.google.android.gms.internal.clearcut.zzdt.zzgq;\n r4 = r4.ordinal();\n r4 = r0[r4];\n switch(r4) {\n case 1: goto L_0x0085;\n case 2: goto L_0x0080;\n case 3: goto L_0x0073;\n case 4: goto L_0x0066;\n case 5: goto L_0x0066;\n case 6: goto L_0x005d;\n case 7: goto L_0x005d;\n case 8: goto L_0x0054;\n case 9: goto L_0x0047;\n case 10: goto L_0x0047;\n case 11: goto L_0x0047;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x002f;\n case 15: goto L_0x0024;\n case 16: goto L_0x0019;\n case 17: goto L_0x0013;\n default: goto L_0x000b;\n };\n L_0x000b:\n r1 = new java.lang.RuntimeException;\n r2 = \"unsupported field type.\";\n r1.<init>(r2);\n throw r1;\n L_0x0013:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2, r6);\n goto L_0x0099;\n L_0x0019:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zza(r2);\n goto L_0x0042;\n L_0x0024:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zzm(r2);\n goto L_0x004d;\n L_0x002f:\n r4 = com.google.android.gms.internal.clearcut.zzea.zzcm();\n r4 = r4.zze(r5);\n r1 = zza(r4, r1, r2, r3, r6);\n goto L_0x0099;\n L_0x003c:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n L_0x0042:\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0051;\n L_0x0047:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n L_0x004d:\n r2 = java.lang.Integer.valueOf(r2);\n L_0x0051:\n r6.zzff = r2;\n goto L_0x0099;\n L_0x0054:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r1, r2);\n r1 = java.lang.Float.valueOf(r1);\n goto L_0x006e;\n L_0x005d:\n r3 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2);\n r1 = java.lang.Long.valueOf(r3);\n goto L_0x007b;\n L_0x0066:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzc(r1, r2);\n r1 = java.lang.Integer.valueOf(r1);\n L_0x006e:\n r6.zzff = r1;\n r1 = r2 + 4;\n goto L_0x0099;\n L_0x0073:\n r3 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2);\n r1 = java.lang.Double.valueOf(r3);\n L_0x007b:\n r6.zzff = r1;\n r1 = r2 + 8;\n goto L_0x0099;\n L_0x0080:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2, r6);\n goto L_0x0099;\n L_0x0085:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0093;\n L_0x0091:\n r2 = 1;\n goto L_0x0094;\n L_0x0093:\n r2 = 0;\n L_0x0094:\n r2 = java.lang.Boolean.valueOf(r2);\n goto L_0x0051;\n L_0x0099:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(byte[], int, int, com.google.android.gms.internal.clearcut.zzfl, java.lang.Class, com.google.android.gms.internal.clearcut.zzay):int\");\n }",
"public static void m5806a(Context context) {\n f4669a = FirebaseAnalytics.getInstance(context);\n f4669a.m12579a(\"app_version\", String.valueOf(C1570t.m5994b(context)));\n }",
"public final void mo15472Dq(int i) {\n AppMethodBeat.m2504i(37307);\n if (!(((C3947z) C13459z.this.qZo).qWM == null || i * 1000 < ((C3947z) C13459z.this.qZo).qWM.qXt || C13459z.this.raO)) {\n C13459z.this.raO = true;\n C45344ma c45344ma = new C45344ma();\n c45344ma.cHQ.cHR = ((C3947z) C13459z.this.qZo).qWM.cHR;\n C4879a.xxA.mo10055m(c45344ma);\n }\n AppMethodBeat.m2505o(37307);\n }"
]
| [
"0.5964942",
"0.5798602",
"0.57980436",
"0.5468886",
"0.54679775",
"0.54135233",
"0.53192025",
"0.5307678",
"0.53036964",
"0.52902806",
"0.52608347",
"0.52483743",
"0.52385676",
"0.52252704",
"0.51797736",
"0.51740885",
"0.5171474",
"0.5153768",
"0.51446533",
"0.51442444",
"0.51416975",
"0.51394165",
"0.51344",
"0.51191086",
"0.5102164",
"0.5102164",
"0.50959885",
"0.50945824",
"0.507291",
"0.50568795",
"0.50553524",
"0.50197804",
"0.5013886",
"0.4998429",
"0.49856475",
"0.496967",
"0.49656296",
"0.49637356",
"0.49618638",
"0.49533755",
"0.4945765",
"0.49436545",
"0.49396324",
"0.49224725",
"0.49066752",
"0.4901488",
"0.49007872",
"0.48938468",
"0.48896778",
"0.4884119",
"0.4883399",
"0.48826304",
"0.4863141",
"0.48628035",
"0.485098",
"0.48452348",
"0.48446307",
"0.48441565",
"0.48422274",
"0.484105",
"0.4837492",
"0.48361242",
"0.4833667",
"0.48279834",
"0.48251572",
"0.48155123",
"0.4812296",
"0.48085943",
"0.48030737",
"0.48013178",
"0.47990152",
"0.47967148",
"0.4795992",
"0.47940186",
"0.47882685",
"0.47879606",
"0.47873735",
"0.47865462",
"0.47851655",
"0.4784168",
"0.4778894",
"0.47725874",
"0.47704414",
"0.4767208",
"0.4755867",
"0.47546038",
"0.4752381",
"0.47437516",
"0.47366166",
"0.47358918",
"0.47277442",
"0.4723224",
"0.47171465",
"0.46989548",
"0.4696474",
"0.46929842",
"0.46922904",
"0.46907294",
"0.46894923",
"0.46889305",
"0.468852"
]
| 0.0 | -1 |
/ renamed from: B | C4945r5 mo19056B(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public static Note getB() {return (Note)B.clone();}",
"void mapFromB(B pSourceObject, A pDestinationObject);",
"public void selectB() { }",
"private void passB() {\n // PROGRAM 1: Student must complete this method\n //place inputB data into output\n for (int i = 0; i < output.length; i++) {\n output[i] = inputB[i];\n }\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"public interface InterfaceB {\n\tpublic String getB1();\n\n\tpublic String getB2();\n}",
"public interface B{\n String getName();\n}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"B createB();",
"public abstract C0631bt mo9227aB();",
"BElement createBElement();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"BSubstitution createBSubstitution();",
"ClassB initClassB(ClassB iClassB)\n {\n iClassB.updateElementValue(\"ClassB\");\n return iClassB;\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"BOperation createBOperation();",
"public void incB() {\n this.countB++;\n }",
"public void movB(){\r\n\t\tint aux1[][]= new int [3][1];\r\n\t\tint aux2[][]= new int [3][1];\r\n\t\tint aux3[][]= new int [3][1];\r\n\t\tint aux4[][]= new int [3][1];\r\n\t\t\r\n\t\taux1=this.cloneF(5, 2);//copiamos el del bloque 5 la fila 3\r\n\t\taux2=this.cloneC(2, 2);\r\n\t\taux3=this.cloneF(4, 0);\r\n\t\taux4=this.cloneC(0, 0);\r\n\t\t\r\n\t\tthis.copiaEnFilaUnaColumna(aux4, 5, 2);\r\n\t\tthis.copiaEnColumnaUnaFila(aux1, 2, 2);\r\n\t\tthis.copiaEnFilaUnaColumna(aux2, 4, 0);\r\n\t\tthis.copiaEnColumnaUnaFila(aux3, 0, 0);\r\n\t\t\r\n\t\t\r\n\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"@Override\n public void b() {\n }",
"private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}",
"void mo2508a(bxb bxb);",
"B getResult();",
"public abstract B zzjo();",
"public interface InterB {\n String a = \"B\";\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"void mapFromA(A pSourceObject, B pDestinationObject);",
"public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}",
"public abstract B copy();",
"@Override\n\tpublic void b() {\n\n\t}",
"public interface B extends A {\n void b();\n}",
"public int getB();",
"B setM1(M1 m1);",
"B setM1(M1 m1);",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface B\n{\n String foo();\n}",
"public abstract T zzm(B b);",
"B database(S database);",
"int getB();",
"int getB();",
"int getB();",
"int getB();",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"@Override\r\n\tpublic void visit(ParkB parkB) {\n\t\t\r\n\t}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void zzc(B b, int i, int i2);",
"public bb b() {\n return a(this.a);\n }",
"@Override\r\n\tpublic void B() {\n\t\tSystem.out.println(C.a);\r\n\t}",
"C map(A first, B second);",
"@Override\n\tpublic void foo() {\n\t\tSystem.out.println(\"Foo from B\");\n\t}",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public abstract void mo70713b();",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface InterfaceB extends SuperInterface{\n\n int getB();\n}",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public void b() {\n ((a) this.a).b();\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"BElementStructure createBElementStructure();",
"private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}",
"float getB();",
"public abstract void zzf(Object obj, B b);",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"private BigB()\r\n{\tsuper();\t\r\n}",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }",
"public void AlignStrB(String B) {\n this.B = B.toLowerCase();\n this.Align();\n }",
"public interface C4932q5 extends C4994t5, Cloneable {\n /* renamed from: B */\n C4945r5 mo19056B();\n\n /* renamed from: F */\n C4945r5 mo19057F();\n\n /* renamed from: a */\n C4932q5 mo19393a(C4945r5 r5Var);\n\n /* renamed from: a */\n C4932q5 mo19394a(byte[] bArr) throws zzfn;\n\n /* renamed from: a */\n C4932q5 mo19395a(byte[] bArr, C5005u3 u3Var) throws zzfn;\n}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract void zzb(B b, int i, long j);",
"boolean hasB();",
"boolean hasB();",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public t b() {\n return a(this.a);\n }",
"public void b() {\r\n }",
"public abstract Object mo1185b();",
"@Override\n\t\tpublic void displayB() {\n\t\t\tSystem.out.println(\"Display B class X\");\n\t\t}",
"public\n\tABSwap () {\n\n\t\tthis (\n\t\t\t\"a\",\n\t\t\t\"b\");\n\n\t}",
"public abstract BoundType b();",
"public static void main(String[] args) {\n\n A ab = new B();\n A ac = new C();\n C c = new C();\n C2 c2 = new C2();\n// ab = (C) ab;\n// ac = (B) ac;\n\n }",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"String getModelB();",
"public B getSecond() {return second; }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public abstract void zza(B b, int i, zzeh zzeh);",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }"
]
| [
"0.6168248",
"0.6133565",
"0.5985599",
"0.59641045",
"0.58938",
"0.5866303",
"0.58157825",
"0.5812386",
"0.5799051",
"0.5794127",
"0.5794127",
"0.5774261",
"0.57724583",
"0.5710076",
"0.5686314",
"0.56344587",
"0.5618661",
"0.5603938",
"0.5600358",
"0.5598823",
"0.5593705",
"0.5592437",
"0.5590449",
"0.5586943",
"0.557136",
"0.5560787",
"0.5554617",
"0.5553189",
"0.55353785",
"0.5532798",
"0.5529052",
"0.5526763",
"0.55251193",
"0.5517331",
"0.5505879",
"0.55040234",
"0.54776293",
"0.5476618",
"0.54701674",
"0.5466764",
"0.5439022",
"0.5439022",
"0.5433246",
"0.54271483",
"0.5424315",
"0.54229784",
"0.54220855",
"0.54220855",
"0.54220855",
"0.54220855",
"0.53939444",
"0.5385745",
"0.53750813",
"0.5369462",
"0.5369462",
"0.5357193",
"0.5356221",
"0.5334098",
"0.53097844",
"0.52967227",
"0.52878267",
"0.5287515",
"0.5284305",
"0.52806807",
"0.52781665",
"0.52603763",
"0.5241145",
"0.5233956",
"0.52300626",
"0.52283967",
"0.52237564",
"0.5212664",
"0.52042043",
"0.5200854",
"0.52006334",
"0.5199863",
"0.51972544",
"0.51940304",
"0.51865697",
"0.51802945",
"0.5174065",
"0.5173303",
"0.5169911",
"0.5169911",
"0.5167876",
"0.51570666",
"0.5148724",
"0.5141944",
"0.5141204",
"0.51339644",
"0.5132892",
"0.5132808",
"0.51293194",
"0.5124288",
"0.5119432",
"0.5118742",
"0.510947",
"0.5106094",
"0.5104323",
"0.51011395",
"0.5087933"
]
| 0.0 | -1 |
/ renamed from: F | C4945r5 mo19057F(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private void m50367F() {\n }",
"static void feladat4() {\n\t}",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"public void mo21781F() {\n }",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"void mo21075f();",
"@Override\n public void func_104112_b() {\n \n }",
"public void f() {\n this.f25459e.J();\n }",
"void mo9704b(float f, float f2, int i);",
"static void feladat9() {\n\t}",
"@Override\n public int f() {\n return 0;\n }",
"static void feladat6() {\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public void mo1406f() {\n }",
"static void feladat7() {\n\t}",
"@Override\r\n\tprotected void doF7() {\n\t\t\r\n\t}",
"@Override\n\tpublic void f1() {\n\n\t}",
"public FI_() {\n }",
"static void feladat5() {\n\t}",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"@Override\n\tpublic void af(String t) {\n\n\t}",
"public abstract int mo123247f();",
"public static void feec() {\n\t}",
"public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"public final void mo8765a(float f) {\n }",
"public void mo1963f() throws cf {\r\n }",
"public int getF() {\n\t\treturn f;\n\t}",
"static void feladat3() {\n\t}",
"static void feladat8() {\n\t}",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"public double getF();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public String shortName() {\r\n\t\treturn \"F\";\r\n\t}",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"protected float method_4216() {\r\n return 5.0F;\r\n }",
"public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }",
"double cFromF(double f) {\n return (f-32) * 5 / 9;\n }",
"@Override\n public void bfs() {\n\n }",
"void mo9696a(float f, float f2, int i);",
"void mo84656a(float f);",
"@Override\n\tpublic void visitTlfold(Tlfold p) {\n\n\t}",
"void mo9705c(float f, float f2);",
"public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }",
"public T fjern();",
"void mo34547J(float f, float f2);",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private void m25426f() {\n C0396d.m1465a(this.f19104f).m1469a(this.f19111m, this.f19111m.m6587a());\n }",
"public abstract int mo9741f();",
"public static void main(String[] args) {\n\r\n\t\t new F();\r\n\t\t new F();\r\n\t\t new F();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"void mo54440f();",
"@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}",
"static void feladat10() {\n\t}",
"public abstract void mo70718c(String str, float f);",
"void mo9694a(float f, float f2);",
"void mo3193f();",
"FunctionCall getFc();",
"void mo9703b(float f, float f2);",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"void f1() {\r\n\t}",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"void mo56155a(float f);",
"public void method_4270() {}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"public abstract void mo70714b(String str, float f);",
"C3579d mo19694a(C3581f fVar) throws IOException;",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"public abstract C0620bi mo9231aF();",
"public void furyo ()\t{\n }",
"public f206(String name) {\n super(name);\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"void mo72112a(float f);",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"public abstract void mo70705a(String str, float f);",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"public abstract void mo70706a(String str, float f, float f2);",
"static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }",
"private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }",
"public void mo42331g() {\n mo42335f();\n }",
"public void f() {\n }",
"private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}",
"public void mo444f() {\n C0211f<U> fVar = this.f477f;\n if (fVar != null) {\n fVar.mo385c();\n }\n }",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public int mo13019f() {\n return super.mo13019f();\n }",
"protected boolean func_70041_e_() { return false; }",
"void mo6072a(float f) {\n this.f2347q = this.f2342e.mo6054a(f);\n }",
"public void mo21779D() {\n }",
"@Override\n\t\t\tpublic int af() {\n\t\t\t\tSystem.out.println(\"dsdfdghbd\");\n\t\t\t\treturn 0;\n\t\t\t}",
"public void mo1964g() throws cf {\r\n }",
"void mo9695a(float f, float f2, float f3, float f4, float f5);",
"public float e()\r\n/* 20: */ {\r\n/* 21:167 */ return this.c;\r\n/* 22: */ }"
]
| [
"0.67594206",
"0.6682047",
"0.6654164",
"0.63115543",
"0.6290152",
"0.6184858",
"0.6136476",
"0.6125863",
"0.6086097",
"0.60753244",
"0.6023528",
"0.60079014",
"0.6001622",
"0.5988257",
"0.59842396",
"0.59836054",
"0.59783787",
"0.5977854",
"0.59647906",
"0.5937223",
"0.5920804",
"0.5910607",
"0.5900094",
"0.5889142",
"0.5888176",
"0.58873385",
"0.5880146",
"0.58708906",
"0.58363855",
"0.5832604",
"0.5832598",
"0.58168805",
"0.5809417",
"0.5803604",
"0.5799766",
"0.57926434",
"0.5791786",
"0.5788189",
"0.5787239",
"0.5763154",
"0.5760554",
"0.5744371",
"0.5740954",
"0.57345724",
"0.57201",
"0.57088494",
"0.5701296",
"0.569689",
"0.56955826",
"0.5693873",
"0.56681097",
"0.56579745",
"0.5655747",
"0.5648773",
"0.5637516",
"0.56367284",
"0.5633705",
"0.56268203",
"0.5617044",
"0.5596565",
"0.5590233",
"0.55886555",
"0.5583207",
"0.5575683",
"0.55747443",
"0.5573883",
"0.5559535",
"0.55557644",
"0.5552788",
"0.5552648",
"0.55503684",
"0.55434823",
"0.55432296",
"0.5539003",
"0.55143845",
"0.55105674",
"0.5499616",
"0.5488613",
"0.5483967",
"0.54805124",
"0.5476525",
"0.5476334",
"0.5476334",
"0.54736996",
"0.5471482",
"0.5471225",
"0.5470477",
"0.5469306",
"0.54520535",
"0.5451019",
"0.5447901",
"0.54459363",
"0.5442151",
"0.54272795",
"0.5420377",
"0.5418614",
"0.54173005",
"0.54113156",
"0.5410494",
"0.54100895",
"0.5406654"
]
| 0.0 | -1 |
/ renamed from: a | C4932q5 mo19393a(C4945r5 r5Var); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: a | C4932q5 mo19394a(byte[] bArr) throws zzfn; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: a | C4932q5 mo19395a(byte[] bArr, C5005u3 u3Var) throws zzfn; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
Parse a datestring into an instant. If timezone or time information is missing, UTC is assumed. | public static Instant parse(final String dateString) {
for (DateTimeFormatter formatter : VALID_DATE_FORMATS) {
try {
final var temporalAccessor = formatter.parse(dateString);
return Instant.from(temporalAccessor);
} catch (final Exception e) {
//ignore failures - if no date string is parsable, an error is thrown below
}
}
throw new IllegalArgumentException("Invalid date format: \"" + dateString + "\"");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Timestamp parseDateTime(String date) {\n if (date.endsWith(\"Z\"))\n return parseDateTime_(date);\n else\n return oneOf(date, format_with_tz, format_precise_with_tz);\n }",
"static Timestamp parseString(String timestampString,\n String pattern,\n boolean withZoneUTC) {\n return parseString(timestampString, pattern, withZoneUTC,\n (pattern == null));\n }",
"public static DateTime parseTimestampWithTimeZone(String str) {\n return DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ssZ\").parseDateTime(str);\n }",
"public Date parseDate(String dateString, boolean isUTC)\n\t{\n\t\tDate parsedDate = null;\n\t\tSimpleDateFormat dateFormatter = null; \n\t\t//Log.d(\"123 \", \"dateString------>>>>>\"+dateString);\n\t\n\t\tif(dateString!=null){\n\t\t\ttry {\n\t\t\t\tdateFormatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\t\t\t\n\t\t\t\tif(isUTC)\n\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\t\t\t\n\t\t\t\tparsedDate = dateFormatter.parse(dateString);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//Logs.show(e);\n\t\t\t\tdateFormatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n\t\t\t\t\n\t\t\t\tif(isUTC)\n\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tparsedDate = dateFormatter.parse(dateString);\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t//Logs.show(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Log.e(\"123 \", \"parsedDate------>>>>>\"+parsedDate);\n\t\treturn parsedDate;\n\t}",
"private static Timestamp parseString(String timestampString,\n String pattern,\n boolean withZoneUTC,\n boolean optionalFracSecond) {\n boolean optionalZoneOffset = false;\n if ((pattern == null ||\n pattern.equals(TimestampDef.DEFAULT_PATTERN)) &&\n withZoneUTC) {\n\n String tsStr = trimUTCZoneOffset(timestampString);\n /*\n * If no zone offset or UTC zone in timestamp string, then parse it\n * using parseWithDefaultPattern(). Otherwise, parse it with\n * DateTimeFormatter.\n */\n if (tsStr != null) {\n return parseWithDefaultPattern(tsStr);\n }\n optionalZoneOffset = true;\n }\n\n String fmt = (pattern == null) ? TimestampDef.DEFAULT_PATTERN : pattern;\n try {\n DateTimeFormatter dtf = getDateTimeFormatter(fmt, withZoneUTC,\n optionalFracSecond,\n optionalZoneOffset,\n 0);\n TemporalAccessor ta = dtf.parse(timestampString);\n if (!ta.isSupported(ChronoField.YEAR) ||\n !ta.isSupported(ChronoField.MONTH_OF_YEAR) ||\n !ta.isSupported(ChronoField.DAY_OF_MONTH)) {\n\n throw new IllegalArgumentException(\"The timestamp string \" +\n \"must contain year, month and day\");\n }\n\n Instant instant;\n boolean hasOffset = (ta.isSupported(ChronoField.OFFSET_SECONDS) &&\n ta.get(ChronoField.OFFSET_SECONDS) != 0);\n if (ta.isSupported(ChronoField.HOUR_OF_DAY)) {\n instant = hasOffset ? OffsetDateTime.from(ta).toInstant() :\n Instant.from(ta);\n } else {\n instant = LocalDate.from(ta).atStartOfDay\n ((hasOffset ? ZoneOffset.from(ta) : UTCZone)).toInstant();\n }\n return toTimestamp(instant);\n } catch (IllegalArgumentException iae) {\n throw new IllegalArgumentException(\"Failed to parse the date \" +\n \"string '\" + timestampString + \"' with the pattern: \" +\n fmt + \": \" + iae.getMessage(), iae);\n } catch (DateTimeParseException dtpe) {\n throw new IllegalArgumentException(\"Failed to parse the date \" +\n \"string '\" + timestampString + \"' with the pattern: \" +\n fmt + \": \" + dtpe.getMessage(), dtpe);\n } catch (DateTimeException dte) {\n throw new IllegalArgumentException(\"Failed to parse the date \" +\n \"string '\" + timestampString + \"' with the pattern: \" +\n fmt + \": \" + dte.getMessage(), dte);\n }\n }",
"private static Date parseISOTimestring(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public Date parse (String dateAsString , String dateFormat) throws Exception ;",
"public static Date convert(String timeString){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MMM/yyyy:HH:mm:ss ZZZZ\");\n // set default timezone to be runtime independent\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n try {\n return dateFormat.parse(timeString);\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE, \"Date cannot be parsed: \"+ timeString, e);\n return null;\n }\n }",
"public Date parseString(String dateString) throws ParseException {\n return dateFormat.parse(dateString);\n }",
"private static Date parseTimestringWithMillisWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-9);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"private LocalDateTime parseDate(String timeStr) throws DateTimeParseException {\n return LocalDateTime.parse(timeStr, formatter);\n }",
"private void parseUTCString(String str)\n {\n SimpleDateFormat formatter;\n // Treat the sub-second part as optional\n if (str.indexOf(\".\") != -1) {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n } else {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n try {\n Date date = formatter.parse(str);\n itsValue = date.getTime() * 1000L + DUTC.get() * 1000000L + 3506716800000000L;\n } catch (Exception e) {\n throw new NumberFormatException(\"Couldn't parse date as UTC_STRING\");\n }\n }",
"public static Timestamp parseString(String timestampString) {\n return parseString(timestampString, null, true);\n }",
"public static Date parseTimeZoneDateTime(String date)\n\t{\n\t\treturn parseFormatDate(date, getTimeZoneDateTimeFormat());\n\t}",
"public static Date parseDateTime(String str)\n {\n if(Empty.isEmpty(str))\n return null;\n if(str.length() <= 10)\n return parse(str);\n try{\n \treturn (new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\")).parse(str);\n\t\t}catch(ParseException e){\n\t\t \t return null;\n\t\t}\n }",
"private static Date parseISOTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatMiliSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatMiliSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"private static Date parseTimestampWithSecondsWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public static Date parseDate(String date) {\n return DateUtil.toDate(date);\n }",
"public static synchronized Date parseDate(String s) throws ParseException {\n return dateFormat.parse(s);\n }",
"public static Date parseDate(String dateString, String userId) throws ParseException\n\t{\n\t\tif ((dateString == null) || (dateString.trim().length() == 0)) return null;\n\t\tDateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, getPreferredLocale(userId));\n\t\tformat.setTimeZone(getPreferredTimeZone(userId));\n\t\tDate rv = format.parse(dateString);\n\t\treturn rv;\n\t}",
"public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}",
"public Date parseDateFromString(final String dateString) {\r\n\t\tDateFormat df = getDateTimeFormat();\r\n\t\tsynchronized (df) {\r\n\t\t\ttry {\r\n\t\t\t\treturn df.parse(dateString);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\tDominoUtils.handleException(e);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static Date parseRFC3339Date(String dateString)\n throws java.text.ParseException, IndexOutOfBoundsException {\n\n Date currentDate = new Date();\n \n if (dateString.endsWith(\"Z\")) {\n try {\n SimpleDateFormat s = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\");\n currentDate = s.parse(dateString);\n } catch (java.text.ParseException pe) {\n pe.printStackTrace();\n }\n return currentDate;\n }\n \n return currentDate;\n }",
"public static Date parse(String input) throws java.text.ParseException {\n\t\treturn new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(input);\n\n\t}",
"public static DateTime parseTime(String str) {\n if (str.indexOf('.') == -1) {\n return DateTimeFormat.forPattern(\"HH:mm:ss\").withZoneUTC().parseDateTime(str);\n } else {\n return DateTimeFormat.forPattern(\"HH:mm:ss.SSS\").withZoneUTC().parseDateTime(str);\n }\n }",
"public static Date parseDateOnly(String dateString, String userId) throws ParseException\n\t{\n\t\tif ((dateString == null) || (dateString.trim().length() == 0)) return null;\n\t\tDateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM, getPreferredLocale(userId));\n\t\tformat.setTimeZone(getPreferredTimeZone(userId));\n\t\tDate rv = format.parse(dateString);\n\t\treturn rv;\n\t}",
"public static Date parseDateTime(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateTimeFormat());\n\t}",
"private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }",
"public static TimeInstant parse(String timeInstantExpr) {\n if (timeInstantExpr == null || timeInstantExpr.length() == 0) {\n throw new IllegalArgumentException(\"Empty time instant expression\");\n }\n TimeInstant instant = new TimeInstant();\n String expr = timeInstantExpr.toLowerCase().trim();\n\n // now + time amount (optional)\n boolean begin = expr.startsWith(\"begin\");\n boolean end = expr.startsWith(\"end\");\n if (!begin && !end) {\n if (expr.startsWith(\"now\")) {\n instant.setTimeMode(TimeMode.NOW);\n if (expr.length() > 3) {\n instant.setTimeAmount(TimeAmount.parse(expr.substring(3)));\n }\n } else {\n instant.setTimeMode(null);\n instant.setTimeAmount(TimeAmount.parse(expr));\n }\n return instant;\n }\n // begin/end modes\n instant.setTimeMode(begin ? TimeMode.BEGIN : TimeMode.END);\n\n // Look for braces limits \"begin[year March]\"\n String example = begin ? \"begin[year March]\" : \"end[year March]\";\n int bracesBegin = expr.indexOf('[');\n int bracesEnd = expr.indexOf(']');\n if (bracesBegin == -1 || bracesEnd == -1 || bracesBegin >= bracesEnd) {\n throw new IllegalArgumentException(\"Missing braces (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n // Interval type\n String[] intervalTerms = expr.substring(bracesBegin+1, bracesEnd).split(\"\\\\s+\");\n if (intervalTerms.length > 2) {\n throw new IllegalArgumentException(\"Too many settings (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n instant.setIntervalType(DateIntervalType.getByName(intervalTerms[0]));\n if (instant.getIntervalType() == null) {\n throw new IllegalArgumentException(\"Invalid interval (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n\n // First month of year\n if (intervalTerms.length == 2) {\n instant.setFirstMonthOfYear(Month.getByName(intervalTerms[1]));\n if (instant.getFirstMonthOfYear() == null) {\n throw new IllegalArgumentException(\"Invalid first year month (ex '\" + example + \"'): \" + timeInstantExpr);\n }\n }\n // Time amount\n if (bracesEnd < expr.length()) {\n expr = expr.substring(bracesEnd + 1).trim();\n if (!expr.isEmpty()) {\n TimeAmount timeAmount = TimeAmount.parse(expr);\n instant.setTimeAmount(timeAmount);\n }\n }\n return instant;\n }",
"public static Date GetDateObjectFromStringUpdate(String dateAsString) {\n\t\tSimpleDateFormat lv_formatter = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tlv_formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = lv_formatter.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}",
"public static Date parseDate(String date) throws java.text.ParseException {\n if(date == null) return null;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n try {\n return sdf.parse(date);\n\n } catch(ParseException e) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n try {\n return sdf.parse(date);\n\n } catch(ParseException e2) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.parse(date);\n }\n } \n }",
"private static Date parseTimestringWithMicrosWithTimeZone(String timestring) throws ParseException {\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n boolean containsDot = false;\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-12);\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsLen);\r\n String timeZone = timestring.substring(len-5, len);\r\n Date date = formatMiliSecsTZ.parse(milisTime+timeZone);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsWTLen);\r\n String timeZone = timestring.substring(len-5, len);\r\n Date date = formatMiliSecsTZwT.parse(milisTime+timeZone);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public static Date parseDate(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateFormat());\n\t}",
"public static Date parseTimestamp(String time) throws ParseException{\r\n /**\r\n * Checks whether timestring contains UTC time zone identifier\r\n */\r\n boolean containsZ = time.contains(\"Z\");\r\n if(containsZ){\r\n time = time.replace(\"Z\", \"+0000\");\r\n }\r\n /**\r\n * checks if the timestring ends with \"+hh\" or \"-hh\" time zone definition\r\n * modifies timestring with minutes to time zone\r\n */\r\n char suffixTZ = time.charAt(time.length()-3);\r\n if(suffixTZ == '+' || suffixTZ == '-'){\r\n time = time+\"00\";\r\n }\r\n int len = time.length();\r\n /**\r\n * checks patterns ending with seconds only\r\n */\r\n if(len == patternSecsLen){\r\n return parseTimestampWithSeconds(time);\r\n }\r\n /**\r\n * checks patterns ending with milliseconds\r\n */\r\n else if(len == patternMiliSecsLen){\r\n return parseTimestringWithMillis(time);\r\n }\r\n /**\r\n * checks patterns ending with seconds and time zone\r\n */\r\n else if(len == patternSecsTZLen){\r\n return parseTimestampWithSecondsWithTimeZone(time);\r\n }\r\n /**\r\n * checks patterns ending with milliseconds and time zone\r\n */\r\n else if(len == patternMiliSecsTZLen){\r\n return parseTimestringWithMillisWithTimeZone(time);\r\n }\r\n /**\r\n * checks patterns according to ISO pattern\r\n */\r\n else if(len == patternISOLen){\r\n return parseISOTimestring(time);\r\n }\r\n /**\r\n * checks patterns according to ISO pattern with milliseconds\r\n */\r\n else if(len == patternISOMilisLen){\r\n return parseISOTimestringWithMillis(time);\r\n }\r\n /**\r\n * checks patterns ending with microseconds\r\n */\r\n else if(len == patternMicroSecLen){\r\n return parseTimestringWithMicros(time);\r\n }\r\n /**\r\n * checks patterns ending with microseconds and time zone\r\n */\r\n else if(len == patternMicroSecTZLen){\r\n return parseTimestringWithMicrosWithTimeZone(time);\r\n }\r\n \r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public DateParser(String dateAndTimeString) {\n this.dateAndTimeString = dateAndTimeString;\n }",
"private LocalDateTime parseDate(String s) {\n String[] splitDate = s.split(\" \", 2);\n // Split day, month, year\n String[] splitDateElements = splitDate[0].split(\"/\", 3);\n int day = parseInt(splitDateElements[0]);\n int month = parseInt(splitDateElements[1]);\n int year = parseInt(splitDateElements[2]);\n // Split hours and minutes\n int hours = parseInt(splitDate[1].substring(0, 2));\n int mins = parseInt(splitDate[1].substring(2, 4));\n return LocalDateTime.of(year, month, day, hours, mins);\n }",
"public static LocalDate parse(String dateStr) {\n String d = dateStr.substring(0, dateStr.indexOf('T'));\n LocalDate ld = null;\n try {\n ld = LocalDate.parse(d);\n } catch (Exception e) {\n System.err.println(\"Failed to parse datestring \" + dateStr + \" into a LocalDate!\");\n //e.printStackTrace();\n }\n // TODO: review what happens if format is invalid/LocalDate.parse fails - throw error, return null or both?\n return ld;\n }",
"public static LocalDate parseDate(String dateString)\n throws DateTimeParseException {\n\n // this parses '2011-12-03', timezone information ignored\n return LocalDate.parse(dateString, DateTimeFormatter.ISO_LOCAL_DATE);\n }",
"public static Calendar parseISODate(String dateAsString, String timezone) throws ParseException {\n\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.US);\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(SERVER_TIME_ZONE));\n try {\n\n Calendar date = Calendar.getInstance();\n\n if (dateAsString != null && !(dateAsString.equalsIgnoreCase(\"\"))) {\n\n date.setTime(simpleDateFormat.parse(dateAsString));\n date.setTimeZone(TimeZone.getTimeZone(timezone));\n\n }\n\n return date;\n\n } catch (ParseException e) {\n\n Log.d(TAG, \"Failed to parse date: \" + dateAsString + \" to iso format: \" + DATE_FORMAT);\n throw e;\n\n }\n\n }",
"private static Date parseTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-4);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public static Date getDateFromStringUTC(String dateString) {\n if(dateString == null || dateString.isEmpty()) return null;\n\n Date date = null;\n\n try {\n SimpleDateFormat df = new SimpleDateFormat(DATE_STRING_FORMAT);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n date = df.parse(dateString);\n\n }\n catch (Exception e) {e.printStackTrace();}\n\n return date;\n }",
"public LocalDateTime parseLocalDateTime(String inputString){\r\n LocalDateTime dateTime = null;\r\n\r\n //handle cases like Thu Oct 9 09:43:23 2016 where dayOfMonth has one digit\r\n Pattern patternDateTime1 = Pattern.compile(\"(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\\\s{1,2}\\\\d\\\\s\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\s\\\\d{4}\"); //date pattern\r\n DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern(\"EEE MMM d HH:mm:ss yyyy\");\r\n Matcher matcherDateTime1 = patternDateTime1.matcher(inputString);\r\n\r\n //handle cases like Thu Oct 19 09:43:23 2016 where dayOfMonth has two digit\r\n Pattern patternDateTime2 = Pattern.compile(\"(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\\\s{1,2}\\\\d{2}\\\\s\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\s\\\\d{4}\"); //date pattern\r\n DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern(\"EEE MMM dd HH:mm:ss yyyy\");\r\n Matcher matcherDateTime2 = patternDateTime2.matcher(inputString);\r\n\r\n if (matcherDateTime1.find()){\r\n try {\r\n dateTime = LocalDateTime.parse(matcherDateTime1.group(),formatter1);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }else if(matcherDateTime2.find()){\r\n try {\r\n dateTime = LocalDateTime.parse(matcherDateTime2.group(),formatter2);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }\r\n return dateTime;\r\n }",
"private static Date parseTimeStamp(String timestamp) {\n if (timestamp == null) {\n return null;\n }\n\n try {\n return SIMPLE_DATE_FORMAT.parse(timestamp);\n } catch (ParseException dateTimeParseException) {\n return null;\n }\n }",
"public static Date parseHttpDate(String dateString)\n {\n if (dateString == null)\n {\n return null;\n }\n \n TimeZone gmt = TimeZone.getTimeZone(\"GMT\");\n \n for (int i = 0; i < INPUT_FORMATS.length; i++)\n {\n SimpleDateFormat format = new SimpleDateFormat(INPUT_FORMATS[i]);\n format.setTimeZone(gmt);\n try\n {\n return format.parse(dateString);\n }\n catch (ParseException e)\n {\n // try the next pattern\n }\n }\n \n return null;\n }",
"public static Date makeDate(String tvaTimeString) throws TVAnytimeException\n\t{\n\t\tint year = -1;\n\t\tint month = -1;\n\t\tint day = -1;\n\t\tint hours = -1;\n\t\tint minutes = -1;\n\t\tint seconds = -1;\n\n\t\tint offsetHours = 0;\t\t// an offset to deal with time zones\n\t\tint offsetMinutes = 0;\n\n\t\t// look to see if the string ends in \"Z\" (GMT) \n\t\tif (tvaTimeString.endsWith(\"Z\")) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n\t\t}\n // or no +/- for offset\n else if (tvaTimeString.length()>6 && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"+\")) && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"-\")) ) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n }\n\t\t// if not, pull out the offsets for hours and minutes\n\t\telse {\n\t\t\tString stringOffset = (tvaTimeString.substring(tvaTimeString.length()-6, tvaTimeString.length()));\n\n\t\t\ttry {\n\t\t\t\toffsetHours = Integer.parseInt(stringOffset.substring(1,3));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetHours. \"+e);\n\t\t\t}\n\n\t\t\tif (offsetHours < 0 || offsetHours > 23)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hours offset is out of range (must be between 0 and 23).\");\n\n\t\t\ttry {\n\t\t\t\toffsetMinutes = Integer.parseInt(stringOffset.substring(4,6));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetMinutes. \"+e);\n\t\t\t}\n\n\t\t\t// check for valid offsetMinutes range\n\t\t\tif (offsetMinutes < 0 || offsetMinutes > 59)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes offset is out of range (must be between 0 and 59).\");\n\n\t\t\t// if a negative offset...\n\t\t\tif (stringOffset.startsWith(\"-\")) {\n\t\t\t\toffsetHours = (offsetHours * -1);\n\t\t\t\toffsetMinutes = (offsetMinutes * -1);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tyear = Integer.parseInt(tvaTimeString.substring(0, 4));\n\t\t\tmonth = Integer.parseInt(tvaTimeString.substring(5, 7));\n\t\t\tday = Integer.parseInt(tvaTimeString.substring(8, 10));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing year, month or day integer. \"+e);\n\t\t}\n\n\t\t// check validity of year\n\t\tif (year < 0)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: year is out of range (must be greater than 0.\");\n\n\t\t// check validity of month\n\t\tif (month < 1 || month > 12)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: month is out of range (must be between 1 and 12).\");\n\n\t\t// check validity of day\n\t\tif (day < 1 || day > 31)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: day is out of range (must be between 1 and 31).\");\n\n\t\ttry {\n\t\t\thours = Integer.parseInt(tvaTimeString.substring(11, 13));\n\t\t\tminutes = Integer.parseInt(tvaTimeString.substring(14, 16));\n\t\t\tseconds = Integer.parseInt(tvaTimeString.substring(17, 19));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing hour, minute or seconds integer. \"+e);\n\t\t}\n\n\t\t// check validity of hours\n\t\tif (hours < 0 || hours > 23)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hour is out of range (must be between 0 and 23.\");\n\n\t\t// check validity of minutes\n\t\tif (minutes < 0 || minutes > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes is out of range (must be between 0 and 59).\");\n\n\t\t// check validity of seconds\n\t\tif (seconds < 0 || seconds > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: seconds is out of range (must be between 0 and 59).\");\n\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\tcal.set(year, month-1, day, hours-offsetHours, minutes-offsetMinutes, seconds);\n cal.set(Calendar.MILLISECOND, 0);\n\n\t\tcal.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n\t\treturn cal.getTime();\n\t}",
"@Override\n\tpublic Date unmarshal(String v) throws Exception {\n\t\ttry {\n\t\t\tfmt.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\t\treturn fmt.parse(v);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"private static Date parseTimestampWithSeconds(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"public static Date parseDateFromDefault(String dateString) throws ParseException\n\t{\n\t\tif ((dateString == null) || (dateString.trim().length() == 0)) return null;\n\t\tDateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, Locale.getDefault());\n\t\tformat.setTimeZone(TimeZone.getDefault());\n\t\tDate rv = format.parse(dateString);\n\t\treturn rv;\n\t}",
"private void parse(String str) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Remove any extraneous whitespace before parsing\n str = str.trim();\n\n // Apply some heuristics to str to figure out what format it\n // is in, then call the appropriate parsing function.\n if ((str.length() >= 3) && (str.substring(0, 2).equals(\"0x\"))) {\n // If the string begins with \"0x\", then it should be HEX_BAT.\n parseHexBAT(str);\n } else if (str.charAt(4) == ' ') {\n // Fifth character is a space, therefore should be in FORMATTED_BAT\n // format.\n parseFormattedBAT(str);\n } else if (str.charAt(4) == '-') {\n // Fifth character is a \"-\", therefore should be in UTC_STRING format.\n parseUTCString(str);\n } else if (str.indexOf('.') != -1) {\n // The string contains a \".\" charcater. Try to parse it as SECS_BAT.\n parseSecsBAT(str);\n } else {\n // Fall through to DECIMAL_BAT format.\n parseDecimalBAT(str);\n }\n // Check that we didn't create an ASAP or NEVER by mistake.\n if (isASAP() || isNEVER()) {\n throw new NumberFormatException(\"absolute time reserved value: \\\"\" + str + \"\\\"\");\n }\n }",
"private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}",
"@Test\n\tpublic void testParseDate1() throws ParseException {\n\t\tDate date = ParserFacade.getInstance().parseDate(\"1/2 2am\");\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DATE, 1);\n\t\tcal.set(Calendar.MONTH, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 2);\n\t\tcal.set(Calendar.MINUTE, 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\t\tcal.set(Calendar.MILLISECOND, 0);\n\t\tassertEquals(cal.getTime(), date);\n\n\t}",
"private DateTime calculateOnset(String dateStr) throws ParseException {\n long utcOnset;\n\n synchronized (UTC_FORMAT) {\n utcOnset = UTC_FORMAT.parse(dateStr).getTime();\n }\n\n // return a UTC\n DateTime onset = new DateTime(true);\n onset.setTime(utcOnset);\n return onset;\n }",
"public static LocalDateTime dateTimeFromISO8601(String string) {\n if (string == null) {\n throw new DateTimeParseException(\"ISO-8601 string is null.\", \"\", 0);\n }\n\n // If the date-time is specified with a space separating the date and time,\n // convert the space to 'T' so that it is proper ISO-8601. This tolerance is\n // needed to support PostgreSQL-style times.\n if (string.length() > DATE_TIME_DELIMITATION_INDEX\n && string.charAt(DATE_TIME_DELIMITATION_INDEX) == ' ') {\n char[] characters = string.toCharArray();\n characters[DATE_TIME_DELIMITATION_INDEX] = 'T';\n string = new String(characters);\n }\n\n // If the date-time is specified with a two-digit time zone offset instead of\n // an offset in the form [+-]HH:MM, then convert to the latter. This tolerance\n // is needed to support PostgreSQL-style times.\n int length = string.length();\n if (length > 3) {\n char sign = string.charAt(length - 3);\n if (sign == '+' || sign == '-') {\n char d1 = string.charAt(length - 2);\n char d2 = string.charAt(length - 1);\n if (d1 >= '0' && d1 <= '9' && d2 >= '0' && d2 <= '9') {\n string = string + \":00\";\n }\n }\n }\n\n LocalDateTime dateTime;\n try {\n dateTime = LocalDateTime.parse(string);\n } catch (DateTimeParseException e1) {\n try {\n LocalDate date = LocalDate.parse(string);\n dateTime = LocalDateTime.of(date, LocalTime.MIDNIGHT);\n } catch (DateTimeParseException e2) {\n try {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(string);\n dateTime = LocalDateTime.ofInstant(\n zonedDateTime.toInstant(), ZoneOffset.UTC);\n } catch (DateTimeParseException e3) {\n throw new DateTimeParseException(\n \"DateTime not provided in any supported ISO-8601 format.\", string, 0);\n }\n }\n }\n return dateTime;\n }",
"public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }",
"public static Date parseDate(String s) {\n\t\tDate d = null;\n\t\tif (s == null) {\n\t\t\treturn d;\n\t\t}\n\n\t\tString pattern = \"\";\n\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 20) {\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\t\t\t} else {\n\t\t\t\tif (s.lastIndexOf(':') != s.indexOf(':'))\n\t\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\t\t\t\telse\n\t\t\t\t\tpattern = \"dd/MM/yyyy HH:mm\";\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(pattern);\n\t\tsdf.setTimeZone(TimeZone.getDefault());\n\t\tif (s.length() > 0) {\n\t\t\ttry {\n\t\t\t\td = sdf.parse(s);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella conversione della data. \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}",
"public LocalDateTime parseDate(String str) {\n String time = str.substring(str.indexOf(\",\") + 2);\n int hour = new Integer(time.split(\":\")[0].trim());\n int min = new Integer(time.split(\":\")[1].trim());\n LocalTime localTime = LocalTime.of(hour, min);\n\n str = str.substring(0, str.indexOf(\",\")).trim();\n LocalDate localDate = LocalDate.now();\n\n if (str.contains(\"вчера\")) {\n localDate.minusDays(1);\n } else if (!str.contains(\"сегодня\") && !str.contains(\"вчера\")) {\n int year = new Integer(\"20\" + str.substring(str.length() - 2));\n String strMonth = str.substring(2, 6).trim();\n int day = new Integer(str.substring(0, 2).trim());\n localDate = LocalDate.of(year, parseMonth(strMonth), day);\n }\n return LocalDateTime.of(localDate, localTime);\n }",
"public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }",
"public void testParser1() throws Exception {\n // YYYY-MM-DDThh:mm:ss.sTZD => 1997-07-16T19:20:30.45+02:00\n Calendar ref = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+2:00\"));\n ref.set(1997, 06, 16, 19, 20, 30);\n ref.set(Calendar.MILLISECOND, 45);\n Calendar cal = DateParser.parse(\"1997-07-16T19:20:30.045+02:00\");\n assertEquals(ref.getTime(), cal.getTime());\n // calendars are not equals since they have different time zones - but\n // datetime in milliseconds are the same\n }",
"public static Date stringToTime(String time)\r\n/* 43: */ {\r\n/* 44: */ try\r\n/* 45: */ {\r\n/* 46: 54 */ return sdfTime.parse(time);\r\n/* 47: */ }\r\n/* 48: */ catch (ParseException e)\r\n/* 49: */ {\r\n/* 50: 56 */ log.fatal(\"DateUtil.stringToTime抛出异常\", e);\r\n/* 51: */ }\r\n/* 52: 57 */ return new Date();\r\n/* 53: */ }",
"public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }",
"public static Calendar parseCxsDateString(String inputCalendarString) {\r\n\t\tif (inputCalendarString == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tCalendar cal;\r\n\t\tif (inputCalendarString.indexOf('T') > -1) {\r\n\t\t\tcal = parse(inputCalendarString, CAL_DATETIME_FORMAT);\r\n\t\t} else {\r\n\t\t\tcal = parse(inputCalendarString, CAL_DATE_FORMAT);\r\n\t\t\tif (cal == null) {\r\n\t\t\t\tcal = parse(inputCalendarString, ISO_DATE_FORMAT);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn cal;\r\n\t}",
"private static boolean isParseDate(String dateStr) {\n try {\n simpleDateFormat.parse(dateStr);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }",
"private static Date ISO_8601toDate(String dateTime) throws ParseException {\n\n //already in UTC\n if (dateTime.endsWith(\"Z\")) {\n return dateTimeFormatZ.parse(dateTime);\n }\n\n int positionT = dateTime.indexOf('T');\n\n int positionZ = dateTime.indexOf('+', positionT);\n if (positionZ == -1) {\n positionZ = dateTime.indexOf('-', positionT);\n }\n\n //no timezone specified, defaults to UTC\n if (positionZ == -1) {\n return dateTimeFormatZ.parse(dateTime + 'Z');\n }\n\n //convert to General time zone to preserve the timezone provided\n return dateTimeFormatGtz.parse(dateTime.substring(0, positionZ)\n + \"GMT\"\n + dateTime.substring(positionZ));\n }",
"Optional<T> parse(@Nonnull String s);",
"private AbsTime(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Parse the string.\n parse(t);\n }",
"public static Date ISO8601_toDate(String dateString) throws java.text.ParseException {\n SimpleDateFormat df = new SimpleDateFormat( \"yyyy-MM-dd'T'HH:mm:ssz\" );\n\n //this is zero time so we need to add that TZ indicator for\n if ( dateString.endsWith( \"Z\" ) ) {\n dateString = dateString.substring( 0, dateString.length() - 1) + \"GMT-00:00\";\n } else {\n int inset = 6;\n\n String s0 = dateString.substring( 0, dateString.length() - inset );\n String s1 = dateString.substring( dateString.length() - inset, dateString.length() );\n\n dateString = s0 + \"GMT\" + s1;\n }\n\n return df.parse(dateString);\n\n }",
"private void parse(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Empty job execution instruction found!\");\n }\n String[] parts = str.split(\" \");\n if (parts.length == 1) {\n parseSpecial(str);\n } else if (parts.length == 5) {\n try {\n setMinutes(parseMinutes(parts[0].trim().toLowerCase()));\n setHours(parseHours(parts[1].trim().toLowerCase()));\n setDaysOfMonth(parseDaysOfMonth(parts[2].trim().toLowerCase()));\n setMonths(parseMonths(parts[3].trim().toLowerCase()));\n setDaysOfWeek(parseDaysOfWeek(parts[4].trim().toLowerCase()));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed:\" + e.getMessage());\n }\n } else {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed!\");\n }\n }",
"@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 5) {\n try {\n\n Date btTime = timeFormatter.parse(tmp[1]);\n\n // Timezone code\n /*\n * int timeZone = parseStringToInt(tmp[5]); int\n * offSetMinutes; if (timeZone < 0) { offSetMinutes =\n * timeZone*60 - parseStringToInt(tmp[6]); } else {\n * offSetMinutes = timeZone*60 + parseStringToInt(tmp[6]); }\n * TimeZone myGPSTimezone = TimeZone.getTimeZone(\"UTC\");\n * myGPSTimezone.setRawOffset(offSetMinutes*60*1000);\n */\n GPSCalendar.setTimeInMillis(btTime.getTime());\n GPSCalendar.set(parseStringToInt(tmp[4]), parseStringToInt(tmp[3]),\n parseStringToInt(tmp[2]));\n\n updateTimeStamp(GPSCalendar.getTimeInMillis());\n if (!\"A\".equals(tmp[6])) {\n return;\n }\n } catch (ParseException e) {\n Log.e(TAG, \"Could not parse: \" + tmp[1]);\n return;\n }\n }\n }",
"@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }",
"public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}",
"public static Date parseTimestamp(String timestamp) {\n if (StringUtils.isNullOrWhitespace(timestamp) || timestamp.equals(\"null\")) {\n return null;\n }\n\n try {\n return sDateFormatCache.get(TIMESTAMP_FORMAT, new Callable<DateFormat>() {\n @Override\n public DateFormat call() throws Exception {\n return new SimpleDateFormat(TIMESTAMP_FORMAT);\n }\n }).parse(timestamp);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }",
"@Test\n public void testDeserialize_String() throws Exception {\n System.out.println(\"deserialize\");\n String date = \"\";\n Date expResult = null;\n Date result = DateUtil.parseDate(date);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private LocalTime parse(String timeString, boolean recursivelyCalled) {\n LocalTime parsed = null;\n try {\n parsed = LocalTime.parse(timeString);\n } catch (DateTimeParseException | IndexOutOfBoundsException exception) {\n int indexOfColon = timeString.indexOf(\":\");\n String newString = null;\n if (recursivelyCalled) {\n //Has excepted on the supposedly \"fixed\" & parsable string, now try removing the end of the string\n newString = timeString.substring(indexOfColon - 2, indexOfColon + 3); //ie \"12:30blabla\" would return \"12:30\"\n } else {\n newString = timeString.substring(indexOfColon - 2);\n }\n return parse(newString, true);\n }\n return parsed;\n }",
"private static Instant instant(final String time) {\n return date(\"2012-01-17 \" + time).toInstant();\n }",
"public static Date getExpirationAsDate(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n try {\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.parse(dateStr);\n } catch (ParseException e) {\n e.printStackTrace();\n return new Date();\n }\n }",
"private Date parseDate(String text) throws Exception {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n return dateFormat.parse(text);\n }",
"public static Instant extractInstant(Sentence s) throws GPSTimeException {\n\t\tNMEADateAndTime dt = extractInfo(s);\n\t\tif (dt != null) {\n\t\t\treturn convert(dt).toInstant();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static LocalDate parse(String dateString){\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//below LocalDate::from means use method from in LocalDate(?)\r\n\t\t\treturn DATE_FORMATTER.parse(dateString,LocalDate::from);\r\n\t\t}\r\n\t\tcatch (DateTimeParseException e){\r\n\t\t\treturn null;\t\t\r\n\t\t}\r\n\t}",
"public static LocalDateTime unmarshal(String dateTime) {\n \tDateTimeFormatter format = DateTimeFormatter.ISO_LOCAL_DATE_TIME;\n \treturn LocalDateTime.parse(dateTime, format);\n }",
"public static Date GetDateObjectFromString(String dateAsString) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = sdf.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}",
"public static LocalDateTime parseDateString(\n String date, String pattern) throws DukeParseException {\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(pattern);\n LocalDate localDate = LocalDate.parse(date, dtf);\n return LocalDateTime.of(localDate, LocalTime.of(12, 0));\n } catch (DateTimeParseException exception) {\n String msg = String.format(\"Ensure the date passed in is of the form: '%s'.\", pattern);\n throw new DukeParseException(msg);\n }\n }",
"public static java.util.Date convertToUDatetime(String datetimeInString) {\n\t\tif (datetimeInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(datetimeInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}",
"public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}",
"private static Date parseTimestringWithMicros(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n boolean containsDot = false;\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-7);\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsLen);\r\n Date date = formatMiliSecs.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsWTLen);\r\n Date date = formatMiliSecsWT.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }",
"private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }",
"public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }",
"public static TS valueOf(String time) {\n\t\tif (time != null) {\n\t\t\ttime = time.trim();\n\t\t}\n\t\tif (time == null || time.equals(\"\")) {\n\t\t\treturn TSnull.NA;\n\t\t}\n\t\t//return new TSjuDateAdapter(parseDate(time).getTime(), time.length());\n\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tint precision = time.indexOf('+'), field, i = 0, zoneOffset;\n\t\tfinal int realLen = time.length();\n\t\tboolean hasTimezone = false;\n\t\tc.clear();\n\t\tif (precision < 0) {\n\t\t\tprecision = time.indexOf('-');\n\t\t\tif (precision < 0) {\n\t\t\t\tprecision = realLen;\n\t\t\t} else {\n\t\t\t\ti = -1;\n\t\t\t}\n\t\t} else {\n\t\t\ti = 1;\n\t\t}\n\t\tif (i != 0) {\n\t\t\tif ((realLen - precision) % 2 == 0) {\n\t\t\t\tthrow new RuntimeException(\"not a valid date: \" + time);\n\t\t\t}\n\t\t\tzoneOffset = MILLIS_PER_HOUR * parseInt(time, precision + 1, precision + 3);\n\t\t\tif (precision + 3 < realLen) {\n\t\t\t\tzoneOffset += (MILLIS_PER_MINUTE * parseInt(time, precision + 3, precision + 5));\n\t\t\t}\n\t\t\tzoneOffset *= i;\n\t\t\tc.set(Calendar.ZONE_OFFSET, zoneOffset);\n\t\t\thasTimezone = true;\n\t\t}\n\t\tif (precision < 4 || (precision < 14 && precision % 2 == 1)) {\n\t\t\tthrow new RuntimeException(\"not a valid date: \" + time);\n\t\t}\n\t\tc.set(Calendar.YEAR, parseInt(time, 0, 4));\n\t\tif (precision >= 6) {\n\t\t\tc.set(Calendar.MONTH, parseInt(time, 4, 6) - 1);\n\t\t\tif (precision >= 8) {\n\t\t\t\tc.set(Calendar.DAY_OF_MONTH, parseInt(time, 6, 8));\n\t\t\t\tif (precision >= 10) {\n\t\t\t\t\tc.set(Calendar.HOUR_OF_DAY, parseInt(time, 8, 10));\n\t\t\t\t\tif (precision >= 12) {\n\t\t\t\t\t\tc.set(Calendar.MINUTE, parseInt(time, 10, 12));\n\t\t\t\t\t\tif (precision >= 14) {\n\t\t\t\t\t\t\tc.set(Calendar.SECOND, parseInt(time, 12, 14));\n\t\t\t\t\t\t\tif (precision >= 16) {\n\t\t\t\t\t\t\t\tfield = parseInt(time, 15, precision);\n\t\t\t\t\t\t\t\tfor (i = precision; i < 18; i++)\n\t\t\t\t\t\t\t\t{\tfield = field * 10;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (i = precision; i > 18; i--)\n\t\t\t\t\t\t\t\t{\tfield = field / 10;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tc.set(Calendar.MILLISECOND, field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (time.indexOf('.') >= 0) {\n\t\t\tprecision--;\n\t\t}\n\t\treturn new TSjuDateAdapter(c, precision, hasTimezone);\n\t}",
"public java.util.Date parse(java.lang.String r4, java.text.ParsePosition r5) {\n /*\n r3 = this;\n boolean r0 = r3.looksLikeISO8601(r4)\n if (r0 == 0) goto L_0x000b\n java.util.Date r4 = r3.parseAsISO8601(r4, r5)\n return r4\n L_0x000b:\n int r0 = r4.length()\n L_0x000f:\n int r0 = r0 + -1\n if (r0 < 0) goto L_0x0021\n char r1 = r4.charAt(r0)\n r2 = 48\n if (r1 < r2) goto L_0x0021\n r2 = 57\n if (r1 <= r2) goto L_0x0020\n goto L_0x0021\n L_0x0020:\n goto L_0x000f\n L_0x0021:\n if (r0 >= 0) goto L_0x0034\n r0 = 0\n boolean r0 = com.fasterxml.jackson.core.p007io.NumberInput.inLongRange(r4, r0)\n if (r0 == 0) goto L_0x0034\n java.util.Date r5 = new java.util.Date\n long r0 = java.lang.Long.parseLong(r4)\n r5.<init>(r0)\n return r5\n L_0x0034:\n java.util.Date r4 = r3.parseAsRFC1123(r4, r5)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fasterxml.jackson.databind.util.StdDateFormat.parse(java.lang.String, java.text.ParsePosition):java.util.Date\");\n }",
"abstract public ZonedDateTime getZonedDateTime(String zoneString);",
"public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }",
"public static Date parseDateTime(String formattedDate) {\n\t\treturn parseDate(formattedDate, DEFAULT_DATE_TIME_FORMAT);\n\t}",
"public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }",
"public static LocalDateTime parseDateTime(String input) {\n\n if (input.contains(\"Weekly\")) {\n WeeklyFlag = true;\n input = input.replace(\"Weekly\",\"\");\n }\n LocalDateTime dateTime = null;\n ArrayList<String> patterns = getPatterns(false);\n for (String pattern : patterns) {\n if (dateTime == null) {\n try {\n dateTime = LocalDateTime.parse(input.trim(), DateTimeFormatter.ofPattern(pattern));\n } catch (Exception e) {\n e.addSuppressed(new CommandException()); // do nothing basically.\n }\n } else {\n break;\n }\n }\n if (dateTime == null) {\n patterns = getPatterns(true);\n for (String datePattern : patterns) {\n if (dateTime == null) {\n try {\n dateTime = LocalDate.parse(input.trim(),\n DateTimeFormatter.ofPattern(datePattern)).atStartOfDay();\n } catch (Exception e) {\n e.addSuppressed(new CommandException()); // do nothing basically.\n }\n } else {\n break;\n }\n }\n }\n return dateTime;\n }",
"protected static Date parseDate(String dateStr) {\n if (dateStr != null) {\n try {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n return df.parse(dateStr);\n }\n catch (Exception e) {\n throw new IllegalArgumentException(\"Expected date in format yyyy-MM-dd but got \" + dateStr, e);\n }\n }\n return null;\n }",
"public static Time fromString(String str) {\n checkFormat(str);\n int h = Integer.parseInt(str.substring(0, 2));\n int m = Integer.parseInt(str.substring(3, 5));\n String mStr = str.substring(6);\n boolean b = mStr.equals(\"PM\");\n\n return new Time(h, m, b);\n }",
"public String parseTime(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time.split(\" \")[0]);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static Time fromString( String timeStr ) {\n int hour, minute;\n\n String[] parts = timeStr.split( \":\" );\n if ( parts.length != 2 ) throw new NumberFormatException( timeStr );\n hour = Integer.parseInt( parts[ 0 ] );\n\n String[] subParts = parts[ 1 ].split( \" \" );\n if ( subParts.length > 2 ) throw new NumberFormatException( timeStr );\n minute = Integer.parseInt( subParts[ 0 ] );\n\n if ( subParts.length == 2 ) { // Meridiem indicator is present.\n switch ( subParts[ 1 ] ) {\n case \"AM\":\n case \"am\":\n if ( hour == Time.HALF_DAY_HRS ) {\n hour = 0;\n }\n break;\n case \"PM\":\n case \"pm\":\n if ( hour != Time.HALF_DAY_HRS ) {\n hour += Time.HALF_DAY_HRS;\n }\n break;\n default:\n throw new NumberFormatException( timeStr );\n }\n }\n if (\n hour < 0 || hour >= Time.HRS_PER_DAY ||\n minute < 0 || minute >= Time.MINS_PER_HR\n ) {\n throw new NumberFormatException( \"Bad time \" + hour + ':' + minute );\n }\n return new Time( hour, minute );\n }",
"public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }"
]
| [
"0.66379386",
"0.6382169",
"0.6318029",
"0.6241739",
"0.6144781",
"0.6066631",
"0.60608846",
"0.6002626",
"0.599136",
"0.5980628",
"0.58683205",
"0.58643043",
"0.5836238",
"0.5822335",
"0.57858753",
"0.5781972",
"0.5725795",
"0.57238317",
"0.5714259",
"0.56740135",
"0.56655246",
"0.56481004",
"0.5640621",
"0.5632398",
"0.56116605",
"0.5606949",
"0.55892736",
"0.5586141",
"0.5578432",
"0.55773664",
"0.5552362",
"0.5546062",
"0.5540964",
"0.5540543",
"0.553931",
"0.55244374",
"0.5522446",
"0.5500586",
"0.54906017",
"0.54751426",
"0.5470133",
"0.5447499",
"0.5422761",
"0.54210705",
"0.54160345",
"0.5385903",
"0.53486013",
"0.5347915",
"0.53316575",
"0.53160757",
"0.5304604",
"0.5282617",
"0.5266978",
"0.5265706",
"0.5256538",
"0.52510035",
"0.52177155",
"0.5208609",
"0.5202539",
"0.51844686",
"0.5182265",
"0.5156194",
"0.5134048",
"0.51235867",
"0.5116889",
"0.51105195",
"0.51036435",
"0.51015866",
"0.50865126",
"0.5051196",
"0.50431347",
"0.5041709",
"0.5040717",
"0.50396603",
"0.5039257",
"0.50388896",
"0.5033636",
"0.5032579",
"0.50280076",
"0.5024578",
"0.5021108",
"0.50071037",
"0.49950272",
"0.49949577",
"0.49932978",
"0.4987108",
"0.49851558",
"0.49774882",
"0.49741012",
"0.4964638",
"0.4945694",
"0.4940184",
"0.49355125",
"0.49287626",
"0.49205467",
"0.49099576",
"0.49078143",
"0.48983258",
"0.48802334",
"0.48721877"
]
| 0.72095287 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
txtFile = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
txtReplace = new javax.swing.JTextField();
btReplace = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jLabel1.setText("Find what");
jLabel2.setText("Replace with");
btReplace.setText("Replace");
btReplace.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btReplaceActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(68, 68, 68)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtReplace))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(31, 31, 31)
.addComponent(txtFile, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createSequentialGroup()
.addGap(118, 118, 118)
.addComponent(btReplace)))
.addContainerGap(66, Short.MAX_VALUE))
);
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel1, jLabel2});
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {txtFile, txtReplace});
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(56, 56, 56)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(txtFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(txtReplace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
.addComponent(btReplace)
.addGap(20, 20, 20))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.69452274",
"0.6942602",
"0.6935845",
"0.6931919",
"0.6928187",
"0.6925288",
"0.69251484",
"0.69117147",
"0.6911646",
"0.6892842",
"0.68927234",
"0.6891408",
"0.68907607",
"0.68894386",
"0.68836755",
"0.688209",
"0.6881168",
"0.68787616",
"0.68757504",
"0.68741524",
"0.68721044",
"0.685922",
"0.68570775",
"0.6855737",
"0.6855207",
"0.68546575",
"0.6853559",
"0.6852262",
"0.6852262",
"0.68443567",
"0.6837038",
"0.6836797",
"0.68291426",
"0.6828922",
"0.68269444",
"0.6824652",
"0.682331",
"0.68175536",
"0.68167555",
"0.6810103",
"0.6809546",
"0.68085015",
"0.68083894",
"0.6807979",
"0.68027437",
"0.67950374",
"0.67937446",
"0.67921823",
"0.67911226",
"0.67900467",
"0.6788873",
"0.67881",
"0.6781613",
"0.67669237",
"0.67660683",
"0.6765841",
"0.6756988",
"0.675558",
"0.6752552",
"0.6752146",
"0.6742482",
"0.67395985",
"0.673791",
"0.6736197",
"0.6733452",
"0.67277217",
"0.6726687",
"0.67204696",
"0.67168",
"0.6714824",
"0.6714823",
"0.6708782",
"0.67071444",
"0.670462",
"0.67010295",
"0.67004406",
"0.6699407",
"0.6698219",
"0.669522",
"0.66916007",
"0.6689694"
]
| 0.0 | -1 |
Creates the representation for a real type variable. The static keyword is needed to preserve type variable annotation (I don't know why). If this method were nonstatic the annotation TestAnnotation1 is not preserved for reflection | public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {
AnnotatedType referencedTypeVariable = getAnnotatedType();
TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);
return typeInstance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString,staticTransientInt=54321,staticTransientString=staticTransientString,transientInt=98765,transientString=transientString]\",\n ReflectionToStringBuilder.toString(instance1, null, true, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21147() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedType_cf21147__7 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedType_cf21147__7);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@Test\n public void testInheritedReflectionStatics() {\n final InheritedReflectionStaticFieldsFixture instance1 = new InheritedReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, InheritedReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n }",
"@Test\n\tpublic void testReturnedClass() {\n\t\tassertEquals(\"java.lang.reflect.TypeVariable<D>\", String.valueOf(sut.getActualType()));\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21139() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_9218 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9218);\n // AssertGenerator replace invocation\n boolean o_annotatedType_cf21139__9 = // StatementAdderMethod cloned existing statement\n type.equals(vc_9218);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedType_cf21139__9);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21140() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_9219 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedType_cf21140__9 = // StatementAdderMethod cloned existing statement\n type.equals(vc_9219);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedType_cf21140__9);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"Type createType();",
"Type createType();",
"Type createType();",
"TypeDef createTypeDef();",
"@Test\n void rawType_rawType() {\n var ref = new TypeRef<String>() {};\n assertEquals(String.class, ref.rawType());\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8782() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedParameterizedType_cf8782__7 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedParameterizedType_cf8782__7);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"UserDefinedType createUserDefinedType();",
"TypeDefinition createTypeDefinition();",
"@Test\n public void testSelfInstanceTwoVarsReflectionObjectCycle() {\n final SelfInstanceTwoVarsReflectionTestFixture test = new SelfInstanceTwoVarsReflectionTestFixture();\n assertEquals(this.toBaseString(test) + \"[otherType=\" + test.getOtherType().toString() + \",typeIsSelf=\" + this.toBaseString(test) + \"]\", test.toString());\n }",
"public VarTypeNative getFieldVarType();",
"@Test\n public void testSelfInstanceVarReflectionObjectCycle() {\n final SelfInstanceVarReflectionTestFixture test = new SelfInstanceVarReflectionTestFixture();\n assertEquals(this.toBaseString(test) + \"[typeIsSelf=\" + this.toBaseString(test) + \"]\", test.toString());\n }",
"private void createImplicitFieldType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendField.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tfinal JvmField inferredField = (JvmField) this.jvmModelAssocitions.getPrimaryJvmElement(it);\n\t\t\t\tif (inferredField == null || inferredField.getType() == null || inferredField.getType().eIsProxy()) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn inferredField.getType().getSimpleName();\n\t\t\t},\n\t\t\tnull,\n\t\t\t() -> this.grammar.getAOPMemberAccess().getInitialValueAssignment_2_3_3_1());\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8774() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_3674 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_3674);\n // AssertGenerator replace invocation\n boolean o_annotatedParameterizedType_cf8774__9 = // StatementAdderMethod cloned existing statement\n type.equals(vc_3674);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedParameterizedType_cf8774__9);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"public Framework_annotation<T> build_normal();",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"DatatypeType createDatatypeType();",
"public static AnnotationType createEntity() {\n return new AnnotationType()\n .name(DEFAULT_NAME)\n .label(DEFAULT_LABEL)\n .description(DEFAULT_DESCRIPTION)\n .emotional(DEFAULT_EMOTIONAL)\n .weight(DEFAULT_WEIGHT)\n .color(DEFAULT_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21206_failAssert23_literalMutation22513_cf23139_failAssert8() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_9264 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_9264;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9262 = (javax.lang.model.type.TypeMirror)null;\n // MethodAssertGenerator build local variable\n Object o_17_0 = vc_9262;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_10112 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_10110 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_10110.get(vc_10112);\n // MethodAssertGenerator build local variable\n Object o_27_0 = vc_9260;\n // StatementAdderMethod cloned existing statement\n vc_9260.get(vc_9262, vc_9264);\n org.junit.Assert.fail(\"annotatedType_cf21206 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedType_cf21206_failAssert23_literalMutation22513_cf23139 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36424_failAssert23_literalMutation37781_cf43041_failAssert11() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_16166 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_14_0 = vc_16166;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_16164 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_19200 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_19198 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_19198, vc_19200);\n // MethodAssertGenerator build local variable\n Object o_24_0 = vc_16164;\n // StatementAdderMethod cloned existing statement\n type.get(vc_16164, vc_16166);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithSuper_cf36424 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithSuper_cf36424_failAssert23_literalMutation37781_cf43041 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8775() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_3675 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedParameterizedType_cf8775__9 = // StatementAdderMethod cloned existing statement\n type.equals(vc_3675);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedParameterizedType_cf8775__9);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"private static TypeToken<?> typeVariable() {\n\t\tParameterizedType t = (ParameterizedType)TypeToken.of(Identity.class).getSupertype(StreamElement.class).getType();\n\t\treturn TypeToken.of(t.getActualTypeArguments()[0]);\n\t}",
"private static ReflectField convertField(DocletEnvironment docletEnvironment, VariableElement fieldDoc, List<ReflectClass<TypeElement>> reflectClasses) {\n ReflectField field = new ReflectField();\n field.setSimpleName(fieldDoc.getSimpleName().toString());\n // use the same, variable element does not have a qualified name\n field.setName(fieldDoc.getSimpleName().toString());\n field.setStatic(fieldDoc.getModifiers().contains(Modifier.STATIC));\n field.setPublic(fieldDoc.getModifiers().contains(Modifier.PUBLIC));\n field.setDescription(convertDoc(docletEnvironment, fieldDoc));\n field.setDefaultValue(fieldDoc.getConstantValue() != null ? fieldDoc.getConstantValue().toString() : null);\n field.setType(convertGenericClass(docletEnvironment, fieldDoc.asType(), reflectClasses));\n //find annotations\n for (AnnotationMirror annotationDesc : fieldDoc.getAnnotationMirrors()) {\n field.getAnnotations().add(convertAnnotation(docletEnvironment, annotationDesc));\n }\n return field;\n }",
"DataType createDataType();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27961() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_12387 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27961__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_12387);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27961__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription);",
"TypeLiteralExp createTypeLiteralExp();",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166_failAssert15() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"HUZo@XT$QA3=&:J/N_\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_470 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_16_0 = vc_470;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_468 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_468;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_466 = (com.squareup.javapoet.TypeName)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_29_0 = vc_466;\n // StatementAdderMethod cloned existing statement\n vc_466.get(vc_468, vc_470);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"@Override\n public Void visitTypeVariable(TypeVariable t, Void aVoid) {\n reflectClass.setName(t.asElement().getSimpleName().toString());\n return super.visitTypeVariable(t, aVoid);\n }",
"@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 1)\n public static void printSpecificStaticFieldsTedious (final DynamicContext dc) {\n final String format = \"disl: tedious %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_TYPE\", \"Ljava/lang/Class;\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_NAME\", \"Ljava/lang/String;\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_RAND\", \"I\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_MATH\", \"D\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }",
"InstrumentedType withTypeVariable(TypeVariableToken typeVariable);",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21192_failAssert20_add22488_cf25319_failAssert10() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_9254 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_11_0 = vc_9254;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9252 = (java.lang.reflect.Type)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_9252;\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_9252, vc_9254);\n // StatementAdderMethod cloned existing statement\n type.get(vc_9252, vc_9254);\n org.junit.Assert.fail(\"annotatedType_cf21192 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedType_cf21192_failAssert20_add22488_cf25319 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"FieldType createFieldType();",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21184_failAssert18() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9248 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_9248);\n org.junit.Assert.fail(\"annotatedType_cf21184 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869_failAssert9() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_12422 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_14_0 = vc_12422;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_12420 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_16032 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_16030 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_16028 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_16028.get(vc_16030, vc_16032);\n // MethodAssertGenerator build local variable\n Object o_26_0 = vc_12420;\n // StatementAdderMethod cloned existing statement\n type.get(vc_12420, vc_12422);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36379() {\n java.lang.String expected = (\"? super @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithSuper_cf36379__8 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithSuper_cf36379__8);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36372() {\n java.lang.String expected = (\"? super @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_16131 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithSuper_cf36372__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_16131);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithSuper_cf36372__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21188_failAssert19_add22480() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_9254 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9254);\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9252 = (java.lang.reflect.Type)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9252);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9250 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9250);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n vc_9250.get(vc_9252, vc_9254);\n // StatementAdderMethod cloned existing statement\n vc_9250.get(vc_9252, vc_9254);\n org.junit.Assert.fail(\"annotatedType_cf21188 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"ScalarTypeDefinition createScalarTypeDefinition();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27968() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27968__8 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27968__8);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf927() {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf927__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf927__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"StructureType createStructureType();",
"ConceptType createConceptType();",
"public static $type () {\n }",
"public interface InstrumentedType extends TypeDescription {\n\n /**\n * Creates a new instrumented type that includes a new field.\n *\n * @param token A token that represents the field's shape.\n * @return A new instrumented type that is equal to this instrumented type but with the additional field.\n */\n InstrumentedType withField(FieldDescription.Token token);\n\n /**\n * Creates a new instrumented type that includes a new field.\n *\n * @param token A token that represents the field's shape.\n * @param value The value that this assigned to this field.\n * @return A new instrumented type that is equal to this instrumented type but with the additional field.\n */\n InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);\n\n /**\n * Creates a new instrumented type that includes a new method or constructor.\n *\n * @param token A token that represents the method's shape.\n * @return A new instrumented type that is equal to this instrumented type but with the additional method.\n */\n InstrumentedType withMethod(MethodDescription.Token token);\n\n /**\n * Creates a new instrumented type that includes a new record component.\n *\n * @param token A token that represents the record component's shape.\n * @return A new instrumented type that is equal to this instrumented type but with the additional record component.\n */\n InstrumentedType withRecordComponent(RecordComponentDescription.Token token);\n\n /**\n * Creates a new instrumented type with changed modifiers.\n *\n * @param modifiers The instrumented type's modifiers.\n * @return A new instrumented type that is equal to this instrumented type but with the given modifiers.\n */\n InstrumentedType withModifiers(int modifiers);\n\n /**\n * Creates a new instrumented type with the given interfaces implemented.\n *\n * @param interfaceTypes The interface types to implement.\n * @return A new instrumented type that is equal to this instrumented type but with the given interfaces implemented.\n */\n InstrumentedType withInterfaces(TypeList.Generic interfaceTypes);\n\n /**\n * Creates a new instrumented type with the given type variable defined.\n *\n * @param typeVariable The type variable to declare.\n * @return A new instrumented type that is equal to this instrumented type but with the given type variable declared.\n */\n InstrumentedType withTypeVariable(TypeVariableToken typeVariable);\n\n /**\n * Creates a new instrumented type with the given annotations.\n *\n * @param annotationDescriptions The annotations to add to the instrumented type.\n * @return A new instrumented type that is equal to this instrumented type but annotated with the given annotations\n */\n InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);\n\n /**\n * Creates a new instrumented type with the supplied nest host. An instrumented type can be its own nest host.\n * Setting a nest host removes all nest members from the instrumented type.\n *\n * @param nestHost The nest host of the created instrumented type.\n * @return A new instrumented type with the supplied type as its nest host.\n */\n InstrumentedType withNestHost(TypeDescription nestHost);\n\n /**\n * Creates a new instrumented types with the supplied nest members added to this instrumented type. The instrumented\n * type is defined as a nest host if this method is invoked. Any previous nest members are prepended to the supplied types.\n *\n * @param nestMembers The nest members to add to the created instrumented type.\n * @return A new instrumented type that applies the supplied nest members.\n */\n InstrumentedType withNestMembers(TypeList nestMembers);\n\n /**\n * Creates a new instrumented type with the supplied enclosing type.\n *\n * @param enclosingType The type to define as the created instrumented type's enclosing type.\n * @return A new instrumented type with the supplied type as its enclosing type.\n */\n InstrumentedType withEnclosingType(TypeDescription enclosingType);\n\n /**\n * Creates a new instrumented type with the supplied enclosing method.\n *\n * @param enclosingMethod The method to define as the created instrumented type's enclosing method.\n * @return A new instrumented type with the supplied method as its enclosing method.\n */\n InstrumentedType withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod);\n\n /**\n * Creates a new instrumented type that is declared by the supplied type.\n *\n * @param declaringType The type that declares the instrumented type or {@code null} if no such type exists.\n * @return A new instrumented type that is declared by the instrumented type.\n */\n InstrumentedType withDeclaringType(@MaybeNull TypeDescription declaringType);\n\n /**\n * Creates a new instrumented type that indicates that it declared the supplied types.\n *\n * @param declaredTypes The types to add to the created instrumented type as declared types.\n * @return A new instrumented type that indicates that it has declared the supplied types.\n */\n InstrumentedType withDeclaredTypes(TypeList declaredTypes);\n\n /**\n * Creates a new instrumented type that includes the supplied permitted subclasses or unseals the type.\n *\n * @param permittedSubclasses A list of permitted subclasses to include or {@code null} to unseal the type.\n * @return A new instrumented type that includes the supplied permitted subclasses or unseals the type.\n */\n InstrumentedType withPermittedSubclasses(@MaybeNull TypeList permittedSubclasses);\n\n /**\n * Creates a new instrumented type that indicates that is defined as a local class. Setting this property\n * resets the anonymous class property.\n *\n * @param localClass {@code true} if the instrumented type is supposed to be treated as a local class.\n * @return A new instrumented type that is treated as a local class.\n */\n InstrumentedType withLocalClass(boolean localClass);\n\n /**\n * Creates a new instrumented type that indicates that it is defined as an anonymous class. Setting this property\n * resets the local class property.\n *\n * @param anonymousClass {@code true} if the instrumented type is supposed to be treated as an anonymous class.\n * @return A new instrumented type that is treated as an anonymous class.\n */\n InstrumentedType withAnonymousClass(boolean anonymousClass);\n\n /**\n * Creates a new instrumented type that indicates that it defined as a record type. Setting this property to false\n * removes all record components.\n *\n * @param record {@code true} if the instrumented type is supposed to be a record.\n * @return A new instrumented type that is defined as a record.\n */\n InstrumentedType withRecord(boolean record);\n\n /**\n * Creates a new instrumented type that includes the given {@link net.bytebuddy.implementation.LoadedTypeInitializer}.\n *\n * @param loadedTypeInitializer The type initializer to include.\n * @return A new instrumented type that is equal to this instrumented type but with the additional type initializer.\n */\n InstrumentedType withInitializer(LoadedTypeInitializer loadedTypeInitializer);\n\n /**\n * Creates a new instrumented type that executes the given initializer in the instrumented type's\n * type initializer.\n *\n * @param byteCodeAppender The byte code to add to the type initializer.\n * @return A new instrumented type that is equal to this instrumented type but with the given stack manipulation\n * attached to its type initializer.\n */\n InstrumentedType withInitializer(ByteCodeAppender byteCodeAppender);\n\n /**\n * Returns the {@link net.bytebuddy.implementation.LoadedTypeInitializer}s that were registered\n * for this instrumented type.\n *\n * @return The registered loaded type initializers for this instrumented type.\n */\n LoadedTypeInitializer getLoadedTypeInitializer();\n\n /**\n * Returns this instrumented type's type initializer.\n *\n * @return This instrumented type's type initializer.\n */\n TypeInitializer getTypeInitializer();\n\n /**\n * Validates the instrumented type to define a legal Java type.\n *\n * @return This instrumented type as a non-modifiable type description.\n */\n TypeDescription validated();\n\n /**\n * Implementations represent an {@link InstrumentedType} with a flexible name.\n */\n interface WithFlexibleName extends InstrumentedType {\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withField(FieldDescription.Token token);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withAuxiliaryField(FieldDescription.Token token, Object value);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withMethod(MethodDescription.Token token);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withRecordComponent(RecordComponentDescription.Token token);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withModifiers(int modifiers);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withInterfaces(TypeList.Generic interfaceTypes);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withNestHost(TypeDescription nestHost);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withNestMembers(TypeList nestMembers);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withEnclosingType(@MaybeNull TypeDescription enclosingType);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withDeclaringType(@MaybeNull TypeDescription declaringType);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withDeclaredTypes(TypeList declaredTypes);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withPermittedSubclasses(@MaybeNull TypeList permittedSubclasses);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withLocalClass(boolean localClass);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withAnonymousClass(boolean anonymousClass);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withRecord(boolean record);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withTypeVariable(TypeVariableToken typeVariable);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withInitializer(LoadedTypeInitializer loadedTypeInitializer);\n\n /**\n * {@inheritDoc}\n */\n WithFlexibleName withInitializer(ByteCodeAppender byteCodeAppender);\n\n /**\n * Creates a new instrumented type with a changed name.\n *\n * @param name The name of the instrumented type.\n * @return A new instrumented type that has the given name.\n */\n WithFlexibleName withName(String name);\n\n /**\n * Applies a transformation onto all existing type variables of this instrumented type. A transformation is potentially unsafe\n * and it is the responsibility of the supplier to return a valid type variable token from the transformer.\n *\n * @param matcher The matcher to decide what type variables to transform.\n * @param transformer The transformer to apply on all matched type variables.\n * @return A new instrumented type with all matched type variables transformed.\n */\n WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer);\n }\n\n /**\n * Implementations are able to prepare an {@link InstrumentedType}.\n */\n interface Prepareable {\n\n /**\n * Prepares a given instrumented type.\n *\n * @param instrumentedType The instrumented type in its current form.\n * @return The prepared instrumented type.\n */\n InstrumentedType prepare(InstrumentedType instrumentedType);\n\n /**\n * A prepareable that does not alter the instrumented type.\n */\n enum NoOp implements Prepareable {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public InstrumentedType prepare(InstrumentedType instrumentedType) {\n return instrumentedType;\n }\n }\n }\n\n /**\n * A factory for creating an {@link InstrumentedType}.\n */\n interface Factory {\n\n /**\n * Creates an instrumented type that represents the provided type.\n *\n * @param typeDescription The type to represent.\n * @return An appropriate instrumented type.\n */\n InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription);\n\n /**\n * Creates a new instrumented type as a subclass.\n *\n * @param name The type's name.\n * @param modifiers The type's modifiers.\n * @param superClass The type's super class.\n * @return A new instrumented type representing a subclass of the given parameters.\n */\n InstrumentedType.WithFlexibleName subclass(String name, int modifiers, TypeDescription.Generic superClass);\n\n /**\n * Default implementations of instrumented type factories.\n */\n enum Default implements Factory {\n\n /**\n * A factory for an instrumented type that allows to modify represented types.\n */\n MODIFIABLE {\n /** {@inheritDoc} */\n public InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription) {\n return new InstrumentedType.Default(typeDescription.getName(),\n typeDescription.getModifiers(),\n typeDescription.getSuperClass(),\n typeDescription.getTypeVariables().asTokenList(is(typeDescription)),\n typeDescription.getInterfaces().accept(Generic.Visitor.Substitutor.ForDetachment.of(typeDescription)),\n typeDescription.getDeclaredFields().asTokenList(is(typeDescription)),\n Collections.<String, Object>emptyMap(),\n typeDescription.getDeclaredMethods().asTokenList(is(typeDescription)),\n typeDescription.getRecordComponents().asTokenList(is(typeDescription)),\n typeDescription.getDeclaredAnnotations(),\n TypeInitializer.None.INSTANCE,\n LoadedTypeInitializer.NoOp.INSTANCE,\n typeDescription.getDeclaringType(),\n typeDescription.getEnclosingMethod(),\n typeDescription.getEnclosingType(),\n typeDescription.getDeclaredTypes(),\n typeDescription.isSealed()\n ? typeDescription.getPermittedSubtypes()\n : TypeList.UNDEFINED,\n typeDescription.isAnonymousType(),\n typeDescription.isLocalType(),\n typeDescription.isRecord(),\n typeDescription.isNestHost()\n ? TargetType.DESCRIPTION\n : typeDescription.getNestHost(),\n typeDescription.isNestHost()\n ? typeDescription.getNestMembers().filter(not(is(typeDescription)))\n : Collections.<TypeDescription>emptyList());\n }\n },\n\n /**\n * A factory for an instrumented type that does not allow to modify represented types.\n */\n FROZEN {\n /** {@inheritDoc} */\n public InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription) {\n return new Frozen(typeDescription, LoadedTypeInitializer.NoOp.INSTANCE);\n }\n };\n\n /**\n * {@inheritDoc}\n */\n public InstrumentedType.WithFlexibleName subclass(String name, int modifiers, TypeDescription.Generic superClass) {\n return new InstrumentedType.Default(name,\n modifiers,\n superClass,\n Collections.<TypeVariableToken>emptyList(),\n Collections.<Generic>emptyList(),\n Collections.<FieldDescription.Token>emptyList(),\n Collections.<String, Object>emptyMap(),\n Collections.<MethodDescription.Token>emptyList(),\n Collections.<RecordComponentDescription.Token>emptyList(),\n Collections.<AnnotationDescription>emptyList(),\n TypeInitializer.None.INSTANCE,\n LoadedTypeInitializer.NoOp.INSTANCE,\n TypeDescription.UNDEFINED,\n MethodDescription.UNDEFINED,\n TypeDescription.UNDEFINED,\n Collections.<TypeDescription>emptyList(),\n TypeList.UNDEFINED,\n false,\n false,\n false,\n TargetType.DESCRIPTION,\n Collections.<TypeDescription>emptyList());\n }\n }\n }\n\n /**\n * A default implementation of an instrumented type.\n */\n class Default extends AbstractBase.OfSimpleType implements InstrumentedType.WithFlexibleName {\n\n /**\n * A set containing all keywords of the Java programming language.\n */\n private static final Set<String> KEYWORDS = new HashSet<String>(Arrays.asList(\n \"abstract\", \"continue\", \"for\", \"new\", \"switch\", \"assert\", \"default\", \"goto\", \"package\", \"synchronized\", \"boolean\",\n \"do\", \"if\", \"private\", \"this\", \"break\", \"double\", \"implements\", \"protected\", \"throw\", \"byte\", \"else\", \"import\",\n \"public\", \"throws\", \"case\", \"enum\", \"instanceof\", \"return\", \"transient\", \"catch\", \"extends\", \"int\", \"short\",\n \"try\", \"char\", \"final\", \"interface\", \"static\", \"void\", \"class\", \"finally\", \"long\", \"strictfp\", \"volatile\",\n \"const\", \"float\", \"native\", \"super\", \"while\"\n ));\n\n /**\n * The binary name of the instrumented type.\n */\n private final String name;\n\n /**\n * The modifiers of the instrumented type.\n */\n private final int modifiers;\n\n /**\n * The generic super type of the instrumented type.\n */\n @MaybeNull\n private final Generic superClass;\n\n /**\n * The instrumented type's type variables in their tokenized form.\n */\n private final List<? extends TypeVariableToken> typeVariables;\n\n /**\n * A list of interfaces of the instrumented type.\n */\n private final List<? extends Generic> interfaceTypes;\n\n /**\n * A list of field tokens describing the fields of the instrumented type.\n */\n private final List<? extends FieldDescription.Token> fieldTokens;\n\n /**\n * A mapping of auxiliary field names to their mapped values.\n */\n private final Map<String, Object> auxiliaryFields;\n\n /**\n * A list of method tokens describing the methods of the instrumented type.\n */\n private final List<? extends MethodDescription.Token> methodTokens;\n\n /**\n * A list of record component tokens describing the record components of the instrumented type.\n */\n private final List<? extends RecordComponentDescription.Token> recordComponentTokens;\n\n /**\n * A list of annotations of the annotated type.\n */\n private final List<? extends AnnotationDescription> annotationDescriptions;\n\n /**\n * The type initializer of the instrumented type.\n */\n private final TypeInitializer typeInitializer;\n\n /**\n * The loaded type initializer of the instrumented type.\n */\n private final LoadedTypeInitializer loadedTypeInitializer;\n\n /**\n * The declaring type of the instrumented type or {@code null} if no such type exists.\n */\n @MaybeNull\n private final TypeDescription declaringType;\n\n /**\n * The enclosing method of the instrumented type or {@code null} if no such type exists.\n */\n @MaybeNull\n private final MethodDescription.InDefinedShape enclosingMethod;\n\n /**\n * The enclosing type of the instrumented type or {@code null} if no such type exists.\n */\n @MaybeNull\n private final TypeDescription enclosingType;\n\n /**\n * A list of types that are declared by this type.\n */\n private final List<? extends TypeDescription> declaredTypes;\n\n /**\n * A list of permitted subclasses or {@code null} if this type is not sealed.\n */\n @MaybeNull\n private final List<? extends TypeDescription> permittedSubclasses;\n\n /**\n * {@code true} if this type is an anonymous class.\n */\n private final boolean anonymousClass;\n\n /**\n * {@code true} if this type is a local class.\n */\n private final boolean localClass;\n\n /**\n * {@code true} if this class is a record class.\n */\n private final boolean record;\n\n /**\n * The nest host of this instrumented type or a description of {@link TargetType} if this type is its own nest host.\n */\n private final TypeDescription nestHost;\n\n /**\n * A list of all members of this types nest group excluding this type.\n */\n private final List<? extends TypeDescription> nestMembers;\n\n /**\n * Creates a new instrumented type.\n *\n * @param name The binary name of the instrumented type.\n * @param modifiers The modifiers of the instrumented type.\n * @param typeVariables The instrumented type's type variables in their tokenized form.\n * @param superClass The generic super type of the instrumented type.\n * @param interfaceTypes A list of interfaces of the instrumented type.\n * @param fieldTokens A list of field tokens describing the fields of the instrumented type.\n * @param auxiliaryFieldValues A mapping of auxiliary field names to their mapped values.\n * @param methodTokens A list of method tokens describing the methods of the instrumented type.\n * @param recordComponentTokens A list of record component tokens describing the record components of the instrumented type.\n * @param annotationDescriptions A list of annotations of the annotated type.\n * @param typeInitializer The type initializer of the instrumented type.\n * @param loadedTypeInitializer The loaded type initializer of the instrumented type.\n * @param declaringType The declaring type of the instrumented type or {@code null} if no such type exists.\n * @param enclosingMethod The enclosing method of the instrumented type or {@code null} if no such type exists.\n * @param enclosingType The enclosing type of the instrumented type or {@code null} if no such type exists.\n * @param declaredTypes A list of types that are declared by this type.\n * @param permittedSubclasses A list of permitted subclasses or {@code null} if this type is not sealed.\n * @param anonymousClass {@code true} if this type is an anonymous class.\n * @param localClass {@code true} if this type is a local class.\n * @param record {@code true} if this type is a record class.\n * @param nestHost The nest host of this instrumented type or a description of {@link TargetType} if this type is its own nest host.\n * @param nestMembers A list of all members of this types nest group excluding this type.\n */\n protected Default(String name,\n int modifiers,\n @MaybeNull Generic superClass,\n List<? extends TypeVariableToken> typeVariables,\n List<? extends Generic> interfaceTypes,\n List<? extends FieldDescription.Token> fieldTokens,\n Map<String, Object> auxiliaryFieldValues,\n List<? extends MethodDescription.Token> methodTokens,\n List<? extends RecordComponentDescription.Token> recordComponentTokens,\n List<? extends AnnotationDescription> annotationDescriptions,\n TypeInitializer typeInitializer,\n LoadedTypeInitializer loadedTypeInitializer,\n @MaybeNull TypeDescription declaringType,\n @MaybeNull MethodDescription.InDefinedShape enclosingMethod,\n @MaybeNull TypeDescription enclosingType,\n List<? extends TypeDescription> declaredTypes,\n @MaybeNull List<? extends TypeDescription> permittedSubclasses,\n boolean anonymousClass,\n boolean localClass,\n boolean record,\n TypeDescription nestHost,\n List<? extends TypeDescription> nestMembers) {\n this.name = name;\n this.modifiers = modifiers;\n this.typeVariables = typeVariables;\n this.superClass = superClass;\n this.interfaceTypes = interfaceTypes;\n this.fieldTokens = fieldTokens;\n this.auxiliaryFields = auxiliaryFieldValues;\n this.methodTokens = methodTokens;\n this.recordComponentTokens = recordComponentTokens;\n this.annotationDescriptions = annotationDescriptions;\n this.typeInitializer = typeInitializer;\n this.loadedTypeInitializer = loadedTypeInitializer;\n this.declaringType = declaringType;\n this.enclosingMethod = enclosingMethod;\n this.enclosingType = enclosingType;\n this.declaredTypes = declaredTypes;\n this.permittedSubclasses = permittedSubclasses;\n this.anonymousClass = anonymousClass;\n this.localClass = localClass;\n this.record = record;\n this.nestHost = nestHost;\n this.nestMembers = nestMembers;\n }\n\n /**\n * Creates a new instrumented type.\n *\n * @param name The type's name.\n * @param superClass The type's super class.\n * @param modifierContributor The type's modifiers.\n * @return An appropriate instrumented type.\n */\n public static InstrumentedType of(String name, TypeDescription.Generic superClass, ModifierContributor.ForType... modifierContributor) {\n return of(name, superClass, ModifierContributor.Resolver.of(modifierContributor).resolve());\n }\n\n /**\n * Creates a new instrumented type.\n *\n * @param name The type's name.\n * @param superClass The type's super class.\n * @param modifiers The type's modifiers.\n * @return An appropriate instrumented type.\n */\n public static InstrumentedType of(String name, TypeDescription.Generic superClass, int modifiers) {\n return Factory.Default.MODIFIABLE.subclass(name, modifiers, superClass);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withModifiers(int modifiers) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withField(FieldDescription.Token token) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n CompoundList.of(fieldTokens, token.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAuxiliaryField(FieldDescription.Token token, Object value) {\n Map<String, Object> auxiliaryFields = new HashMap<String, Object>(this.auxiliaryFields);\n Object previous = auxiliaryFields.put(token.getName(), value);\n if (previous != null) {\n if (previous == value) {\n return this;\n } else {\n throw new IllegalStateException(\"Field \" + token.getName()\n + \" for \" + this\n + \" already mapped to \" + previous\n + \" and not \" + value);\n }\n }\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n CompoundList.of(fieldTokens, token.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n new LoadedTypeInitializer.Compound(loadedTypeInitializer, new LoadedTypeInitializer.ForStaticField(token.getName(), value)),\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withMethod(MethodDescription.Token token) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n CompoundList.of(methodTokens, token.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withRecordComponent(RecordComponentDescription.Token token) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n CompoundList.of(recordComponentTokens, token.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n true,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInterfaces(TypeList.Generic interfaceTypes) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n CompoundList.of(this.interfaceTypes, interfaceTypes.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAnnotations(List<? extends AnnotationDescription> annotationDescriptions) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n CompoundList.of(this.annotationDescriptions, annotationDescriptions),\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withNestHost(TypeDescription nestHost) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost.equals(this)\n ? TargetType.DESCRIPTION\n : nestHost,\n Collections.<TypeDescription>emptyList());\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withNestMembers(TypeList nestMembers) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n TargetType.DESCRIPTION,\n CompoundList.of(this.nestMembers, nestMembers));\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withEnclosingType(@MaybeNull TypeDescription enclosingType) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n MethodDescription.UNDEFINED,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingMethod.getDeclaringType(),\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withDeclaringType(@MaybeNull TypeDescription declaringType) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withDeclaredTypes(TypeList declaredTypes) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n CompoundList.of(this.declaredTypes, declaredTypes),\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withPermittedSubclasses(@MaybeNull TypeList permittedSubclasses) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses == null || this.permittedSubclasses == null\n ? permittedSubclasses\n : CompoundList.of(this.permittedSubclasses, permittedSubclasses),\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withTypeVariable(TypeVariableToken typeVariable) {\n return new Default(name,\n modifiers,\n superClass,\n CompoundList.of(typeVariables, typeVariable.accept(Generic.Visitor.Substitutor.ForDetachment.of(this))),\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withName(String name) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer) {\n List<TypeVariableToken> typeVariables = new ArrayList<TypeVariableToken>(this.typeVariables.size());\n int index = 0;\n for (TypeVariableToken typeVariableToken : this.typeVariables) {\n typeVariables.add(matcher.matches(getTypeVariables().get(index++))\n ? transformer.transform(this, typeVariableToken)\n : typeVariableToken);\n }\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withLocalClass(boolean localClass) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n false,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAnonymousClass(boolean anonymousClass) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n false,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withRecord(boolean record) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n record\n ? recordComponentTokens\n : Collections.<RecordComponentDescription.Token>emptyList(),\n annotationDescriptions,\n typeInitializer,\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInitializer(LoadedTypeInitializer loadedTypeInitializer) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer,\n new LoadedTypeInitializer.Compound(this.loadedTypeInitializer, loadedTypeInitializer),\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInitializer(ByteCodeAppender byteCodeAppender) {\n return new Default(name,\n modifiers,\n superClass,\n typeVariables,\n interfaceTypes,\n fieldTokens,\n auxiliaryFields,\n methodTokens,\n recordComponentTokens,\n annotationDescriptions,\n typeInitializer.expandWith(byteCodeAppender),\n loadedTypeInitializer,\n declaringType,\n enclosingMethod,\n enclosingType,\n declaredTypes,\n permittedSubclasses,\n anonymousClass,\n localClass,\n record,\n nestHost,\n nestMembers);\n }\n\n /**\n * {@inheritDoc}\n */\n public LoadedTypeInitializer getLoadedTypeInitializer() {\n return loadedTypeInitializer;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeInitializer getTypeInitializer() {\n return typeInitializer;\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public MethodDescription.InDefinedShape getEnclosingMethod() {\n return enclosingMethod;\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public TypeDescription getEnclosingType() {\n return enclosingType;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getDeclaredTypes() {\n return new TypeList.Explicit(declaredTypes);\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isAnonymousType() {\n return anonymousClass;\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isLocalType() {\n return localClass;\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public PackageDescription getPackage() {\n int packageIndex = name.lastIndexOf('.');\n return packageIndex == -1\n ? PackageDescription.DEFAULT\n : new PackageDescription.Simple(name.substring(0, packageIndex));\n }\n\n /**\n * {@inheritDoc}\n */\n public AnnotationList getDeclaredAnnotations() {\n return new AnnotationList.Explicit(annotationDescriptions);\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public TypeDescription getDeclaringType() {\n return declaringType;\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public Generic getSuperClass() {\n return superClass == null\n ? Generic.UNDEFINED\n : new Generic.LazyProjection.WithResolvedErasure(superClass, Generic.Visitor.Substitutor.ForAttachment.of(this));\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList.Generic getInterfaces() {\n return new TypeList.Generic.ForDetachedTypes.WithResolvedErasure(interfaceTypes, TypeDescription.Generic.Visitor.Substitutor.ForAttachment.of(this));\n }\n\n /**\n * {@inheritDoc}\n */\n public FieldList<FieldDescription.InDefinedShape> getDeclaredFields() {\n return new FieldList.ForTokens(this, fieldTokens);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodList<MethodDescription.InDefinedShape> getDeclaredMethods() {\n return new MethodList.ForTokens(this, methodTokens);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList.Generic getTypeVariables() {\n return TypeList.Generic.ForDetachedTypes.attachVariables(this, typeVariables);\n }\n\n /**\n * {@inheritDoc}\n */\n public int getModifiers() {\n return modifiers;\n }\n\n /**\n * {@inheritDoc}\n */\n public String getName() {\n return name;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription getNestHost() {\n return nestHost.represents(TargetType.class)\n ? this\n : nestHost;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getNestMembers() {\n return nestHost.represents(TargetType.class)\n ? new TypeList.Explicit(CompoundList.of(this, nestMembers))\n : nestHost.getNestMembers();\n }\n\n /**\n * {@inheritDoc}\n */\n public RecordComponentList<RecordComponentDescription.InDefinedShape> getRecordComponents() {\n return new RecordComponentList.ForTokens(this, recordComponentTokens);\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE\", justification = \"Assuming super class for given instance.\")\n public boolean isRecord() {\n return record\n && superClass != null\n && getSuperClass().asErasure().equals(JavaType.RECORD.getTypeStub());\n }\n\n @Override\n public boolean isSealed() {\n return permittedSubclasses != null;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getPermittedSubtypes() {\n return permittedSubclasses == null\n ? new TypeList.Empty()\n : new TypeList.Explicit(permittedSubclasses);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription validated() {\n if (!isValidIdentifier(getName().split(\"\\\\.\"))) {\n throw new IllegalStateException(\"Illegal type name: \" + getName() + \" for \" + this);\n } else if ((getModifiers() & ~ModifierContributor.ForType.MASK) != EMPTY_MASK) {\n throw new IllegalStateException(\"Illegal modifiers \" + getModifiers() + \" for \" + this);\n } else if (isPackageType() && getModifiers() != PackageDescription.PACKAGE_MODIFIERS) {\n throw new IllegalStateException(\"Illegal modifiers \" + getModifiers() + \" for package \" + this);\n }\n TypeDescription.Generic superClass = getSuperClass();\n if (superClass != null) {\n if (!superClass.accept(Generic.Visitor.Validator.SUPER_CLASS)) {\n throw new IllegalStateException(\"Illegal super class \" + superClass + \" for \" + this);\n } else if (!superClass.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on super class \" + superClass + \" for \" + this);\n } else if (!superClass.asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible super type \" + superClass + \" for \" + this);\n }\n }\n Set<TypeDescription> interfaceErasures = new HashSet<TypeDescription>();\n for (TypeDescription.Generic interfaceType : getInterfaces()) {\n if (!interfaceType.accept(Generic.Visitor.Validator.INTERFACE)) {\n throw new IllegalStateException(\"Illegal interface \" + interfaceType + \" for \" + this);\n } else if (!interfaceType.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on interface \" + interfaceType + \" for \" + this);\n } else if (!interfaceErasures.add(interfaceType.asErasure())) {\n throw new IllegalStateException(\"Already implemented interface \" + interfaceType + \" for \" + this);\n } else if (!interfaceType.asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible interface type \" + interfaceType + \" for \" + this);\n }\n }\n TypeList.Generic typeVariables = getTypeVariables();\n if (!typeVariables.isEmpty() && isAssignableTo(Throwable.class)) {\n throw new IllegalStateException(\"Cannot define throwable \" + this + \" to be generic\");\n }\n Set<String> typeVariableNames = new HashSet<String>();\n for (TypeDescription.Generic typeVariable : typeVariables) {\n String variableSymbol = typeVariable.getSymbol();\n if (!typeVariableNames.add(variableSymbol)) {\n throw new IllegalStateException(\"Duplicate type variable symbol '\" + typeVariable + \"' for \" + this);\n } else if (!isValidIdentifier(variableSymbol)) {\n throw new IllegalStateException(\"Illegal type variable name '\" + typeVariable + \"' for \" + this);\n } else if (!Generic.Visitor.Validator.ForTypeAnnotations.ofFormalTypeVariable(typeVariable)) {\n throw new IllegalStateException(\"Illegal type annotation on '\" + typeVariable + \"' for \" + this);\n }\n boolean interfaceBound = false;\n Set<TypeDescription.Generic> bounds = new HashSet<Generic>();\n for (TypeDescription.Generic bound : typeVariable.getUpperBounds()) {\n if (!bound.accept(Generic.Visitor.Validator.TYPE_VARIABLE)) {\n throw new IllegalStateException(\"Illegal type variable bound \" + bound + \" of \" + typeVariable + \" for \" + this);\n } else if (!bound.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on type variable \" + bound + \" for \" + this);\n } else if (!bounds.add(bound)) {\n throw new IllegalStateException(\"Duplicate bound \" + bound + \" of \" + typeVariable + \" for \" + this);\n } else if (interfaceBound && (bound.getSort().isTypeVariable() || !bound.isInterface())) {\n throw new IllegalStateException(\"Illegal interface bound \" + bound + \" of \" + typeVariable + \" for \" + this);\n }\n interfaceBound = true;\n }\n if (!interfaceBound) {\n throw new IllegalStateException(\"Type variable \" + typeVariable + \" for \" + this + \" does not define at least one bound\");\n }\n }\n TypeDescription enclosingType = getEnclosingType();\n if (enclosingType != null && (enclosingType.isArray() || enclosingType.isPrimitive())) {\n throw new IllegalStateException(\"Cannot define array type or primitive type \" + enclosingType + \" + as enclosing type for \" + this);\n }\n MethodDescription.InDefinedShape enclosingMethod = getEnclosingMethod();\n if (enclosingMethod != null && enclosingMethod.isTypeInitializer()) {\n throw new IllegalStateException(\"Cannot enclose type declaration in class initializer \" + enclosingMethod);\n }\n TypeDescription declaringType = getDeclaringType();\n if (declaringType != null) {\n if (declaringType.isPrimitive() || declaringType.isArray()) {\n throw new IllegalStateException(\"Cannot define array type or primitive type \" + declaringType + \" as declaring type for \" + this);\n }\n } else if (enclosingType == null && enclosingMethod == null && (isLocalType() || isAnonymousType())) {\n throw new IllegalStateException(\"Cannot define an anonymous or local class without a declaring type for \" + this);\n }\n Set<TypeDescription> declaredTypes = new HashSet<TypeDescription>();\n for (TypeDescription declaredType : getDeclaredTypes()) {\n if (declaredType.isArray() || declaredType.isPrimitive()) {\n throw new IllegalStateException(\"Cannot define array type or primitive type \" + declaredType + \" + as declared type for \" + this);\n } else if (!declaredTypes.add(declaredType)) {\n throw new IllegalStateException(\"Duplicate definition of declared type \" + declaredType);\n }\n }\n TypeDescription nestHost = getNestHost();\n if (nestHost.equals(this)) {\n Set<TypeDescription> nestMembers = new HashSet<TypeDescription>();\n for (TypeDescription nestMember : getNestMembers()) {\n if (nestMember.isArray() || nestMember.isPrimitive()) {\n throw new IllegalStateException(\"Cannot define array type or primitive type \" + nestMember + \" + as nest member of \" + this);\n } else if (!nestMember.isSamePackage(this)) {\n throw new IllegalStateException(\"Cannot define nest member \" + nestMember + \" + within different package then \" + this);\n } else if (!nestMembers.add(nestMember)) {\n throw new IllegalStateException(\"Duplicate definition of nest member \" + nestMember);\n }\n }\n } else if (nestHost.isArray() || nestHost.isPrimitive()) {\n throw new IllegalStateException(\"Cannot define array type or primitive type \" + nestHost + \" + as nest host for \" + this);\n } else if (!nestHost.isSamePackage(this)) {\n throw new IllegalStateException(\"Cannot define nest host \" + nestHost + \" + within different package then \" + this);\n }\n for (TypeDescription permittedSubclass : getPermittedSubtypes()) {\n if (!permittedSubclass.isAssignableTo(this) || permittedSubclass.equals(this)) {\n throw new IllegalStateException(\"Cannot assign permitted subclass \" + permittedSubclass + \" to \" + this);\n }\n }\n Set<TypeDescription> typeAnnotationTypes = new HashSet<TypeDescription>();\n for (AnnotationDescription annotationDescription : getDeclaredAnnotations()) {\n if (!annotationDescription.isSupportedOn(ElementType.TYPE)\n && !(isAnnotation() && annotationDescription.isSupportedOn(ElementType.ANNOTATION_TYPE))\n && !(isPackageType() && annotationDescription.isSupportedOn(ElementType.PACKAGE))) {\n throw new IllegalStateException(\"Cannot add \" + annotationDescription + \" on \" + this);\n } else if (!typeAnnotationTypes.add(annotationDescription.getAnnotationType())) {\n throw new IllegalStateException(\"Duplicate annotation \" + annotationDescription + \" for \" + this);\n }\n }\n Set<FieldDescription.SignatureToken> fieldSignatureTokens = new HashSet<FieldDescription.SignatureToken>();\n for (FieldDescription.InDefinedShape fieldDescription : getDeclaredFields()) {\n String fieldName = fieldDescription.getName();\n if (!fieldSignatureTokens.add(fieldDescription.asSignatureToken())) {\n throw new IllegalStateException(\"Duplicate field definition for \" + fieldDescription);\n } else if (!isValidIdentifier(fieldName)) {\n throw new IllegalStateException(\"Illegal field name for \" + fieldDescription);\n } else if ((fieldDescription.getModifiers() & ~ModifierContributor.ForField.MASK) != EMPTY_MASK) {\n throw new IllegalStateException(\"Illegal field modifiers \" + fieldDescription.getModifiers() + \" for \" + fieldDescription);\n }\n Generic fieldType = fieldDescription.getType();\n if (!fieldType.accept(Generic.Visitor.Validator.FIELD)) {\n throw new IllegalStateException(\"Illegal field type \" + fieldType + \" for \" + fieldDescription);\n } else if (!fieldType.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on \" + fieldType + \" for \" + this);\n } else if (!fieldDescription.isSynthetic() && !fieldType.asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible field type \" + fieldDescription.getType() + \" for \" + fieldDescription);\n }\n Set<TypeDescription> fieldAnnotationTypes = new HashSet<TypeDescription>();\n for (AnnotationDescription annotationDescription : fieldDescription.getDeclaredAnnotations()) {\n if (!annotationDescription.isSupportedOn(ElementType.FIELD)) {\n throw new IllegalStateException(\"Cannot add \" + annotationDescription + \" on \" + fieldDescription);\n } else if (!fieldAnnotationTypes.add(annotationDescription.getAnnotationType())) {\n throw new IllegalStateException(\"Duplicate annotation \" + annotationDescription + \" for \" + fieldDescription);\n }\n }\n }\n Set<MethodDescription.SignatureToken> methodSignatureTokens = new HashSet<MethodDescription.SignatureToken>();\n for (MethodDescription.InDefinedShape methodDescription : getDeclaredMethods()) {\n if (!methodSignatureTokens.add(methodDescription.asSignatureToken())) {\n throw new IllegalStateException(\"Duplicate method signature for \" + methodDescription);\n } else if ((methodDescription.getModifiers() & ~ModifierContributor.ForMethod.MASK) != 0) {\n throw new IllegalStateException(\"Illegal modifiers \" + methodDescription.getModifiers() + \" for \" + methodDescription);\n } else if (isInterface() && !methodDescription.isPublic() && !methodDescription.isPrivate()) {\n throw new IllegalStateException(\"Methods declared by an interface must be public or private \" + methodDescription);\n }\n Set<String> methodTypeVariableNames = new HashSet<String>();\n for (TypeDescription.Generic typeVariable : methodDescription.getTypeVariables()) {\n String variableSymbol = typeVariable.getSymbol();\n if (!methodTypeVariableNames.add(variableSymbol)) {\n throw new IllegalStateException(\"Duplicate type variable symbol '\" + typeVariable + \"' for \" + methodDescription);\n } else if (!isValidIdentifier(variableSymbol)) {\n throw new IllegalStateException(\"Illegal type variable name '\" + typeVariable + \"' for \" + methodDescription);\n } else if (!Generic.Visitor.Validator.ForTypeAnnotations.ofFormalTypeVariable(typeVariable)) {\n throw new IllegalStateException(\"Illegal type annotation on '\" + typeVariable + \"' for \" + methodDescription);\n }\n boolean interfaceBound = false;\n Set<TypeDescription.Generic> bounds = new HashSet<Generic>();\n for (TypeDescription.Generic bound : typeVariable.getUpperBounds()) {\n if (!bound.accept(Generic.Visitor.Validator.TYPE_VARIABLE)) {\n throw new IllegalStateException(\"Illegal type variable bound \" + bound + \" of \" + typeVariable + \" for \" + methodDescription);\n } else if (!bound.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on bound \" + bound + \" of \" + typeVariable + \" for \" + this);\n } else if (!bounds.add(bound)) {\n throw new IllegalStateException(\"Duplicate bound \" + bound + \" of \" + typeVariable + \" for \" + methodDescription);\n } else if (interfaceBound && (bound.getSort().isTypeVariable() || !bound.isInterface())) {\n throw new IllegalStateException(\"Illegal interface bound \" + bound + \" of \" + typeVariable + \" for \" + methodDescription);\n }\n interfaceBound = true;\n }\n if (!interfaceBound) {\n throw new IllegalStateException(\"Type variable \" + typeVariable + \" for \" + methodDescription + \" does not define at least one bound\");\n }\n }\n Generic returnType = methodDescription.getReturnType();\n if (methodDescription.isTypeInitializer()) {\n throw new IllegalStateException(\"Illegal explicit declaration of a type initializer by \" + this);\n } else if (methodDescription.isConstructor()) {\n if (!returnType.represents(void.class)) {\n throw new IllegalStateException(\"A constructor must return void \" + methodDescription);\n } else if (!returnType.getDeclaredAnnotations().isEmpty()) {\n throw new IllegalStateException(\"The void non-type must not be annotated for \" + methodDescription);\n }\n } else if (!isValidIdentifier(methodDescription.getInternalName())) {\n throw new IllegalStateException(\"Illegal method name \" + returnType + \" for \" + methodDescription);\n } else if (!returnType.accept(Generic.Visitor.Validator.METHOD_RETURN)) {\n throw new IllegalStateException(\"Illegal return type \" + returnType + \" for \" + methodDescription);\n } else if (!returnType.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on return type \" + returnType + \" for \" + methodDescription);\n } else if (!methodDescription.isSynthetic() && !methodDescription.getReturnType().asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible return type \" + methodDescription.getReturnType() + \" for \" + methodDescription);\n }\n Set<String> parameterNames = new HashSet<String>();\n for (ParameterDescription.InDefinedShape parameterDescription : methodDescription.getParameters()) {\n Generic parameterType = parameterDescription.getType();\n if (!parameterType.accept(Generic.Visitor.Validator.METHOD_PARAMETER)) {\n throw new IllegalStateException(\"Illegal parameter type of \" + parameterDescription + \" for \" + methodDescription);\n } else if (!parameterType.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on parameter \" + parameterDescription + \" for \" + methodDescription);\n } else if (!methodDescription.isSynthetic() && !parameterType.asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible parameter type of \" + parameterDescription + \" for \" + methodDescription);\n }\n if (parameterDescription.isNamed()) {\n String parameterName = parameterDescription.getName();\n if (!parameterNames.add(parameterName)) {\n throw new IllegalStateException(\"Duplicate parameter name of \" + parameterDescription + \" for \" + methodDescription);\n } else if (!isValidIdentifier(parameterName)) {\n throw new IllegalStateException(\"Illegal parameter name of \" + parameterDescription + \" for \" + methodDescription);\n }\n }\n if (parameterDescription.hasModifiers() && (parameterDescription.getModifiers() & ~ModifierContributor.ForParameter.MASK) != EMPTY_MASK) {\n throw new IllegalStateException(\"Illegal modifiers of \" + parameterDescription + \" for \" + methodDescription);\n }\n Set<TypeDescription> parameterAnnotationTypes = new HashSet<TypeDescription>();\n for (AnnotationDescription annotationDescription : parameterDescription.getDeclaredAnnotations()) {\n if (!annotationDescription.isSupportedOn(ElementType.PARAMETER)) {\n throw new IllegalStateException(\"Cannot add \" + annotationDescription + \" on \" + parameterDescription);\n } else if (!parameterAnnotationTypes.add(annotationDescription.getAnnotationType())) {\n throw new IllegalStateException(\"Duplicate annotation \" + annotationDescription + \" of \" + parameterDescription + \" for \" + methodDescription);\n }\n }\n }\n for (TypeDescription.Generic exceptionType : methodDescription.getExceptionTypes()) {\n if (!exceptionType.accept(Generic.Visitor.Validator.EXCEPTION)) {\n throw new IllegalStateException(\"Illegal exception type \" + exceptionType + \" for \" + methodDescription);\n } else if (!exceptionType.accept(Generic.Visitor.Validator.ForTypeAnnotations.INSTANCE)) {\n throw new IllegalStateException(\"Illegal type annotations on \" + exceptionType + \" for \" + methodDescription);\n } else if (!methodDescription.isSynthetic() && !exceptionType.asErasure().isVisibleTo(this)) {\n throw new IllegalStateException(\"Invisible exception type \" + exceptionType + \" for \" + methodDescription);\n }\n }\n Set<TypeDescription> methodAnnotationTypes = new HashSet<TypeDescription>();\n for (AnnotationDescription annotationDescription : methodDescription.getDeclaredAnnotations()) {\n if (!annotationDescription.isSupportedOn(methodDescription.isMethod() ? ElementType.METHOD : ElementType.CONSTRUCTOR)) {\n throw new IllegalStateException(\"Cannot add \" + annotationDescription + \" on \" + methodDescription);\n } else if (!methodAnnotationTypes.add(annotationDescription.getAnnotationType())) {\n throw new IllegalStateException(\"Duplicate annotation \" + annotationDescription + \" for \" + methodDescription);\n }\n }\n AnnotationValue<?, ?> defaultValue = methodDescription.getDefaultValue();\n if (defaultValue != null && !methodDescription.isDefaultValue(defaultValue)) {\n throw new IllegalStateException(\"Illegal default value \" + defaultValue + \"for \" + methodDescription);\n }\n Generic receiverType = methodDescription.getReceiverType();\n if (receiverType != null && !receiverType.accept(Generic.Visitor.Validator.RECEIVER)) {\n throw new IllegalStateException(\"Illegal receiver type \" + receiverType + \" for \" + methodDescription);\n } else if (methodDescription.isStatic()) {\n if (receiverType != null) {\n throw new IllegalStateException(\"Static method \" + methodDescription + \" defines a non-null receiver \" + receiverType);\n }\n } else if (methodDescription.isConstructor()) {\n if (receiverType == null || !receiverType.asErasure().equals(enclosingType == null ? this : enclosingType)) {\n throw new IllegalStateException(\"Constructor \" + methodDescription + \" defines an illegal receiver \" + receiverType);\n }\n } else if (/* methodDescription.isMethod() */ receiverType == null || !equals(receiverType.asErasure())) {\n throw new IllegalStateException(\"Method \" + methodDescription + \" defines an illegal receiver \" + receiverType);\n }\n }\n return this;\n }\n\n /**\n * Checks if an array of identifiers is a valid compound Java identifier.\n *\n * @param identifier an array of potentially invalid Java identifiers.\n * @return {@code true} if all identifiers are valid and the array is not empty.\n */\n private static boolean isValidIdentifier(String[] identifier) {\n if (identifier.length == 0) {\n return false;\n }\n for (String part : identifier) {\n if (!isValidIdentifier(part)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Checks if a Java identifier is valid.\n *\n * @param identifier The identifier to check for validity.\n * @return {@code true} if the given identifier is valid.\n */\n private static boolean isValidIdentifier(String identifier) {\n if (KEYWORDS.contains(identifier) || identifier.length() == 0 || !Character.isJavaIdentifierStart(identifier.charAt(0))) {\n return false;\n } else if (identifier.equals(PackageDescription.PACKAGE_CLASS_NAME)) {\n return true;\n }\n for (int index = 1; index < identifier.length(); index++) {\n if (!Character.isJavaIdentifierPart(identifier.charAt(index))) {\n return false;\n }\n }\n return true;\n }\n }\n\n /**\n * A frozen representation of an instrumented type of which the structure must not be modified.\n */\n class Frozen extends AbstractBase.OfSimpleType implements InstrumentedType.WithFlexibleName {\n\n /**\n * The represented type description.\n */\n private final TypeDescription typeDescription;\n\n /**\n * The type's loaded type initializer.\n */\n private final LoadedTypeInitializer loadedTypeInitializer;\n\n /**\n * Creates a new frozen representation of an instrumented type.\n *\n * @param typeDescription The represented type description.\n * @param loadedTypeInitializer The type's loaded type initializer.\n */\n protected Frozen(TypeDescription typeDescription, LoadedTypeInitializer loadedTypeInitializer) {\n this.typeDescription = typeDescription;\n this.loadedTypeInitializer = loadedTypeInitializer;\n }\n\n /**\n * {@inheritDoc}\n */\n public AnnotationList getDeclaredAnnotations() {\n return typeDescription.getDeclaredAnnotations();\n }\n\n /**\n * {@inheritDoc}\n */\n public int getModifiers() {\n return typeDescription.getModifiers();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList.Generic getTypeVariables() {\n return typeDescription.getTypeVariables();\n }\n\n /**\n * {@inheritDoc}\n */\n public String getName() {\n return typeDescription.getName();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public Generic getSuperClass() {\n return typeDescription.getSuperClass();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList.Generic getInterfaces() {\n return typeDescription.getInterfaces();\n }\n\n /**\n * {@inheritDoc}\n */\n public FieldList<FieldDescription.InDefinedShape> getDeclaredFields() {\n return typeDescription.getDeclaredFields();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodList<MethodDescription.InDefinedShape> getDeclaredMethods() {\n return typeDescription.getDeclaredMethods();\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isAnonymousType() {\n return typeDescription.isAnonymousType();\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isLocalType() {\n return typeDescription.isLocalType();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public PackageDescription getPackage() {\n return typeDescription.getPackage();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public TypeDescription getEnclosingType() {\n return typeDescription.getEnclosingType();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public TypeDescription getDeclaringType() {\n return typeDescription.getDeclaringType();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getDeclaredTypes() {\n return typeDescription.getDeclaredTypes();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public MethodDescription.InDefinedShape getEnclosingMethod() {\n return typeDescription.getEnclosingMethod();\n }\n\n /**\n * {@inheritDoc}\n */\n @MaybeNull\n public String getGenericSignature() {\n // Embrace use of native generic signature by direct delegation.\n return typeDescription.getGenericSignature();\n }\n\n /**\n * {@inheritDoc}\n */\n public int getActualModifiers(boolean superFlag) {\n // Embrace use of native actual modifiers by direct delegation.\n return typeDescription.getActualModifiers(superFlag);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription getNestHost() {\n return typeDescription.getNestHost();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getNestMembers() {\n return typeDescription.getNestMembers();\n }\n\n /**\n * {@inheritDoc}\n */\n public RecordComponentList<RecordComponentDescription.InDefinedShape> getRecordComponents() {\n return typeDescription.getRecordComponents();\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isRecord() {\n return typeDescription.isRecord();\n }\n\n @Override\n public boolean isSealed() {\n return typeDescription.isSealed();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeList getPermittedSubtypes() {\n return typeDescription.getPermittedSubtypes();\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withField(FieldDescription.Token token) {\n throw new IllegalStateException(\"Cannot define field for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAuxiliaryField(FieldDescription.Token token, Object value) {\n throw new IllegalStateException(\"Cannot define auxiliary field for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withMethod(MethodDescription.Token token) {\n throw new IllegalStateException(\"Cannot define method for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withRecordComponent(RecordComponentDescription.Token token) {\n throw new IllegalStateException(\"Cannot define record component for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withModifiers(int modifiers) {\n throw new IllegalStateException(\"Cannot change modifiers for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInterfaces(TypeList.Generic interfaceTypes) {\n throw new IllegalStateException(\"Cannot add interfaces for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withTypeVariable(TypeVariableToken typeVariable) {\n throw new IllegalStateException(\"Cannot define type variable for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAnnotations(List<? extends AnnotationDescription> annotationDescriptions) {\n throw new IllegalStateException(\"Cannot add annotation to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withNestHost(TypeDescription nestHost) {\n throw new IllegalStateException(\"Cannot set nest host of frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withNestMembers(TypeList nestMembers) {\n throw new IllegalStateException(\"Cannot add nest members to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withEnclosingType(@MaybeNull TypeDescription enclosingType) {\n throw new IllegalStateException(\"Cannot set enclosing type of frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod) {\n throw new IllegalStateException(\"Cannot set enclosing method of frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withDeclaringType(@MaybeNull TypeDescription declaringType) {\n throw new IllegalStateException(\"Cannot add declaring type to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withDeclaredTypes(TypeList declaredTypes) {\n throw new IllegalStateException(\"Cannot add declared types to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withPermittedSubclasses(@MaybeNull TypeList permittedSubclasses) {\n throw new IllegalStateException(\"Cannot add permitted subclasses to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withLocalClass(boolean localClass) {\n throw new IllegalStateException(\"Cannot define local class state for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withAnonymousClass(boolean anonymousClass) {\n throw new IllegalStateException(\"Cannot define anonymous class state for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withRecord(boolean record) {\n throw new IllegalStateException(\"Cannot define record state for frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInitializer(LoadedTypeInitializer loadedTypeInitializer) {\n return new Frozen(typeDescription, new LoadedTypeInitializer.Compound(this.loadedTypeInitializer, loadedTypeInitializer));\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withInitializer(ByteCodeAppender byteCodeAppender) {\n throw new IllegalStateException(\"Cannot add initializer to frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withName(String name) {\n throw new IllegalStateException(\"Cannot change name of frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer) {\n throw new IllegalStateException(\"Cannot add type variables of frozen type: \" + typeDescription);\n }\n\n /**\n * {@inheritDoc}\n */\n public LoadedTypeInitializer getLoadedTypeInitializer() {\n return loadedTypeInitializer;\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeInitializer getTypeInitializer() {\n return TypeInitializer.None.INSTANCE;\n }\n\n @MaybeNull\n @Override\n public ClassFileVersion getClassFileVersion() {\n return typeDescription.getClassFileVersion();\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription validated() {\n return typeDescription;\n }\n }\n}",
"NamedType createNamedType();",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21206_failAssert23() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_9264 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9262 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_9260.get(vc_9262, vc_9264);\n org.junit.Assert.fail(\"annotatedType_cf21206 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4132_failAssert24() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"HUZo@XT$QA3=&:J/N_\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_470 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_16_0 = vc_470;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_468 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_468;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_466 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_1770 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_1768 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_1768.get(vc_1770);\n // MethodAssertGenerator build local variable\n Object o_30_0 = vc_466;\n // StatementAdderMethod cloned existing statement\n vc_466.get(vc_468, vc_470);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4132 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"Annotation createAnnotation();",
"Annotation createAnnotation();",
"ExtensionType createExtensionType();",
"FieldsType createFieldsType();",
"public boolean usesTypeAnnotations() {\n return true;\n }",
"RealConstant createRealConstant();",
"private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8845_failAssert25_literalMutation10295_cf10601_failAssert20() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<jaKva.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_3720 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_3720;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_3718 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_4430 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_4428 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_4426 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_4426.get(vc_4428, vc_4430);\n // MethodAssertGenerator build local variable\n Object o_25_0 = vc_3718;\n // StatementAdderMethod cloned existing statement\n type.get(vc_3718, vc_3720);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8845 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8845_failAssert25_literalMutation10295_cf10601 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"TypeSystemDefinition createTypeSystemDefinition();",
"ObjectTypeDefinition createObjectTypeDefinition();",
"Variable createVariable();",
"Variable createVariable();",
"WallType createWallType();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36371() {\n java.lang.String expected = (\"? super @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_16130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_16130);\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithSuper_cf36371__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_16130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithSuper_cf36371__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"public Framework_annotation<T> build_annotation();",
"abstract public Type type();",
"UniqueType createUniqueType();",
"DomainType createDomainType();",
"FieldRuleType createFieldRuleType();",
"private JavaType(String name) {\n this.name = name;\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21202_failAssert22_add22504() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9258 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9258);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_9258);\n // StatementAdderMethod cloned existing statement\n type.get(vc_9258);\n org.junit.Assert.fail(\"annotatedType_cf21202 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28027_failAssert26_literalMutation29405() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? e{xtends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"? e{xtends @com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull java.lang.String\");\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_12432 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12432);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_12430 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12430);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_12428 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12428);\n // StatementAdderMethod cloned existing statement\n vc_12428.get(vc_12430, vc_12432);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28027 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(2005);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(2, \"RuntimeInvisibleAnnotations\", \"RuntimeInvisibleAnnotations\", \"RuntimeInvisibleAnnotations\", \"RuntimeInvisibleAnnotations\");\n fieldWriter0.visitAnnotation(\"RuntimeInvisibleAnnotations\", true);\n ByteVector byteVector0 = new ByteVector(2);\n fieldWriter0.put(byteVector0);\n }",
"static String varType(Field field)\r\n {\r\n switch(field.type)\r\n {\r\n case Field.BYTE:\r\n return \"BYTE\";\r\n case Field.SHORT:\r\n return \"SHORT\";\r\n case Field.INT:\r\n case Field.SEQUENCE:\r\n case Field.LONG:\r\n return \"LONG\";\r\n case Field.CHAR:\r\n case Field.ANSICHAR:\r\n return \"CHAR(\"+String.valueOf(field.length)+\")\";\r\n case Field.DATE:\r\n case Field.DATETIME:\r\n case Field.TIME:\r\n case Field.TIMESTAMP:\r\n return \"DATETIME\";\r\n case Field.FLOAT:\r\n case Field.DOUBLE:\r\n if (field.scale != 0)\r\n return \"DOUBLE(\"+String.valueOf(field.precision)+\", \"+String.valueOf(field.scale)+\")\";\r\n else if (field.precision != 0)\r\n return \"DOUBLE(\"+String.valueOf(field.precision)+\")\";\r\n return \"DOUBLE\";\r\n case Field.BLOB:\r\n return \"LONGBINARY\";\r\n case Field.TLOB:\r\n return \"LONGTEXT\";\r\n case Field.MONEY:\r\n return \"DOUBLE(15,2)\";\r\n case Field.USERSTAMP:\r\n return \"VARCHAR(16)\";\r\n case Field.IDENTITY:\r\n return \"<not supported>\";\r\n }\r\n return \"unknown\";\r\n }",
"public TYPE SemantMe() {\n\t\tSYM_TABLE sym_table = SYM_TABLE.getInstance();\n\t\t\n\t\t// Lookup the name\n\t\tTYPE t = sym_table.find(this.type);\n\t\t// Check it\n\t\tif (t == null || !t.isTypeName())\n\t\t {\n\t\t\t// Code bug -- type given does not exist in table or just is not a name a of a type\n\t\t\treport_error();\n\t\t }\n\t\t\t// Its fine, declare it\n\t\treturn new TYPE_VAR_DEC(t.name,this.name);\n }",
"Type() {\n }",
"@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36432_failAssert24_literalMutation37798() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? super @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"? super @com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull\");\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_16170 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_16170);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_16168 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_16168);\n // StatementAdderMethod cloned existing statement\n vc_16168.get(vc_16170);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithSuper_cf36432 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"public String getStaticTypeObject(Object staticObject) throws ApplicationException\r\n\t{\r\n\t\tString staticObjectType = null;\r\n\t\tif(staticObject instanceof Participant)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.PARTICIPANT_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse if(staticObject instanceof SpecimenCollectionGroup)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.SCG_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse if(staticObject instanceof Specimen)\r\n\t\t{\r\n\t\t\tstaticObjectType = AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tErrorKey errorkey = ErrorKey.getErrorKey(\"errors.item.invalid\");\r\n\t\t\tthrow new ApplicationException(errorkey, null, \"CaTissue Hook Entity\");\r\n\t\t}\r\n\t\treturn staticObjectType;\r\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21219_failAssert26() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedType_cf21219 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"public void testGetRdfType() throws Exception {\n System.out.println(\"getRdfType\");\n LocalNameHelper instance = new LocalNameHelper(TestClass.class);\n String expResult = \"TestClass\";\n String result = instance.getLocalName();\n assertEquals(expResult, result);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8823_failAssert20_literalMutation10254_cf15787_failAssert4() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List0java.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_3710 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_3710;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_3708 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_17_0 = vc_3708;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3706 = (com.squareup.javapoet.TypeName)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_26_0 = vc_3706;\n // StatementAdderMethod cloned existing statement\n vc_3706.get(vc_3708, vc_3710);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8823 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8823_failAssert20_literalMutation10254_cf15787 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }",
"public interface FieldGenerator extends Serializable {\n\n\t/**\n\t * Generate {@link Field} based on bean type and {@link JNIPropertyConstraint}\n\t * @param type\n\t * @param restriction\n\t * @return {@link Field}\n\t */\n\tpublic Field<?> createField(Class<?> type, JNIPropertyConstraint restriction);\n\t\n\t/**\n\t * Generate {@link Field} based on bean type and {@link JNIProperty}\n\t * @param type\n\t * @param property\n\t * @return {@link Field}\n\t */\n\tpublic Field<?> createField(Class<?> type, JNIProperty property);\n}",
"@SuppressWarnings(\"unchecked\")\n private JSimpleField createSimpleField(String description, TypeToken<?> fieldTypeToken, String fieldName,\n int storageId, io.permazen.annotation.JField annotation, Method getter, Method setter, String fieldDescription) {\n\n // Get explicit type name, if any\n final String typeName = annotation.type().length() > 0 ? annotation.type() : null;\n\n // Include containing type for annotation description; with autogenProperties it can be more than one\n description += \" in \" + this.type;\n\n // Complex sub-field?\n final boolean isSubField = setter == null;\n\n // Sanity check annotation\n if (isSubField && annotation.unique())\n throw new IllegalArgumentException(\"invalid \" + description + \": unique() constraint not allowed on complex sub-field\");\n if (annotation.uniqueExclude().length > 0 && !annotation.unique())\n throw new IllegalArgumentException(\"invalid \" + description + \": use of uniqueExclude() requires unique = true\");\n\n // See if field type encompasses one or more JClass types and is therefore a reference type\n final Class<?> fieldRawType = fieldTypeToken.getRawType();\n boolean isReferenceType = false;\n for (JClass<?> jclass : this.jdb.jclasses.values()) {\n if (fieldRawType.isAssignableFrom(jclass.type)) {\n isReferenceType = true;\n break;\n }\n }\n\n // Check for reference to UntypedJObject - not currently allowed\n if (UntypedJObject.class.isAssignableFrom(fieldRawType)) {\n throw new IllegalArgumentException(\"invalid \" + description + \": references to \"\n + (!UntypedJObject.class.equals(fieldRawType) ? \"sub-types of \" : \"\")\n + UntypedJObject.class.getName() + \" are not allowed; use \" + JObject.class.getName() + \" instead\");\n }\n\n // See if field type is a simple type, known either by explicitly-given name or type\n FieldType<?> nonReferenceType = null;\n if (typeName != null) {\n\n // Field type is explicitly specified by name\n if ((nonReferenceType = this.jdb.db.getFieldTypeRegistry().getFieldType(typeName)) == null)\n throw new IllegalArgumentException(\"invalid \" + description + \": unknown simple field type `\" + typeName + \"'\");\n\n // Verify field type matches what we expect\n final TypeToken<?> expectedType = isSubField ? nonReferenceType.getTypeToken().wrap() : nonReferenceType.getTypeToken();\n if (!expectedType.equals(fieldTypeToken)) {\n throw new IllegalArgumentException(\"invalid \" + description + \": field type `\" + typeName\n + \"' supports values of type \" + nonReferenceType.getTypeToken() + \" but \" + fieldTypeToken\n + \" is required (according to the getter method's return type)\");\n }\n } else {\n\n // Try to find a field type supporting getter method return type\n final List<? extends FieldType<?>> fieldTypes = this.jdb.db.getFieldTypeRegistry().getFieldTypes(fieldTypeToken);\n switch (fieldTypes.size()) {\n case 0:\n nonReferenceType = null;\n break;\n case 1:\n nonReferenceType = fieldTypes.get(0);\n break;\n default:\n if (!isReferenceType) {\n throw new IllegalArgumentException(\"invalid \" + description + \": an explicit type() must be specified\"\n + \" because type \" + fieldTypeToken + \" is supported by multiple registered simple field types: \"\n + fieldTypes);\n }\n break;\n }\n }\n\n // Handle enum and enum array types\n Class<? extends Enum<?>> enumType = null;\n Class<?> enumArrayType = null;\n int enumArrayDimensions = -1;\n if (nonReferenceType == null) {\n\n // Handle non-array Enum type\n enumType = Enum.class.isAssignableFrom(fieldRawType) ?\n (Class<? extends Enum<?>>)fieldRawType.asSubclass(Enum.class) : null;\n if (enumType != null) {\n nonReferenceType = new EnumFieldType(enumType);\n enumArrayDimensions = 0;\n }\n\n // Handle array Enum type\n if (fieldRawType.isArray()) {\n\n // Get base type and count dimensions\n assert nonReferenceType == null;\n enumArrayDimensions = 0;\n Class<?> baseType = fieldRawType;\n while (baseType != null && baseType.isArray()) {\n enumArrayDimensions++;\n baseType = baseType.getComponentType();\n }\n\n // Is array base type an Enum type?\n if (Enum.class.isAssignableFrom(baseType)) {\n\n // Get base Enum<?> type\n enumType = (Class<? extends Enum<?>>)baseType.asSubclass(Enum.class);\n\n // Get the corresponding EnumValue[][]... Java type and FieldType (based on the Enum's identifier list)\n Class<?> enumValueArrayType = EnumValue.class;\n nonReferenceType = new EnumFieldType(enumType);\n for (int i = 0; i < enumArrayDimensions; i++) {\n enumValueArrayType = Array.newInstance(enumValueArrayType, 0).getClass();\n nonReferenceType = this.jdb.db.getFieldTypeRegistry().getArrayType(nonReferenceType);\n }\n\n // Save type info\n enumType = (Class<? extends Enum<?>>)baseType.asSubclass(Enum.class);\n enumArrayType = fieldRawType;\n }\n }\n }\n\n // If field type neither refers to a JClass type, nor is a registered field type, nor is an enum type, fail\n if (!isReferenceType && nonReferenceType == null && enumType == null && enumArrayType == null) {\n throw new IllegalArgumentException(\"invalid \" + description + \": an explicit type() must be specified\"\n + \" because no known type supports values of type \" + fieldTypeToken);\n }\n\n // Handle ambiguity between reference vs. non-reference\n if (isReferenceType && nonReferenceType != null) {\n\n // If an explicit type name was provided, assume they want the specified non-reference type\n if (typeName != null)\n isReferenceType = false;\n else {\n throw new IllegalArgumentException(\"invalid \" + description + \": an explicit type() must be specified\"\n + \" because type \" + fieldTypeToken + \" is ambiguous, being both a @\" + PermazenType.class.getSimpleName()\n + \" reference type and a simple Java type supported by type `\" + nonReferenceType + \"'\");\n }\n }\n\n // Sanity check annotation some more\n if (!isReferenceType && annotation.onDelete() != DeleteAction.EXCEPTION)\n throw new IllegalArgumentException(\"invalid \" + description + \": onDelete() only allowed on reference fields\");\n if (!isReferenceType && annotation.cascadeDelete())\n throw new IllegalArgumentException(\"invalid \" + description + \": cascadeDelete() only allowed on reference fields\");\n if (!isReferenceType && annotation.unique() && !annotation.indexed())\n throw new IllegalArgumentException(\"invalid \" + description + \": unique() constraint requires field to be indexed\");\n if (nonReferenceType != null && nonReferenceType.getTypeToken().isPrimitive()\n && Arrays.asList(annotation.uniqueExclude()).contains(io.permazen.annotation.JField.NULL)) {\n throw new IllegalArgumentException(\"invalid \" + description + \": uniqueExclude() = JField.NULL is incompatible\"\n + \" with fields having primitive type\");\n }\n if (!isReferenceType && annotation.cascades().length != 0)\n throw new IllegalArgumentException(\"invalid \" + description + \": cascades() only allowed on reference fields\");\n if (!isReferenceType && annotation.inverseCascades().length != 0)\n throw new IllegalArgumentException(\"invalid \" + description + \": inverseCascades() only allowed on reference fields\");\n\n // Create simple, enum, enum array, or reference field\n try {\n return\n isReferenceType ?\n new JReferenceField(this.jdb, fieldName, storageId, fieldDescription, fieldTypeToken, annotation, getter, setter) :\n enumArrayType != null ?\n new JEnumArrayField(this.jdb, fieldName, storageId, enumType,\n enumArrayType, enumArrayDimensions, nonReferenceType, annotation, fieldDescription, getter, setter) :\n enumType != null ?\n new JEnumField(this.jdb, fieldName, storageId, enumType, annotation, fieldDescription, getter, setter) :\n new JSimpleField(this.jdb, fieldName, storageId, fieldTypeToken,\n nonReferenceType, annotation.indexed(), annotation, fieldDescription, getter, setter);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"invalid \" + description + \": \" + e.getMessage(), e);\n }\n }",
"private String defineName(final TypeMirror typeMirror, final TypeNodeKind typeNodeKind, final TypeScriptType typeScriptTypeAnnotation) {\n if (typeScriptTypeAnnotation != null) {\n final String typeFromAnnotation = defineTypeFromAnnotation(typeScriptTypeAnnotation);\n if (!UNDEFINED.equals(typeFromAnnotation)) {\n return typeFromAnnotation;\n }\n }\n\n final String name;\n switch (typeNodeKind) {\n case ARRAY:\n name = defineNameFromArrayType((ArrayType) typeMirror);\n break;\n case COLLECTION:\n name = defineNameFromCollectionType((DeclaredType) typeMirror);\n break;\n case MAP:\n name = defineNameFromMapType((DeclaredType) typeMirror);\n break;\n case SIMPLE:\n default:\n name = defineNameFromSimpleType(typeMirror);\n break;\n }\n return name;\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(953);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 0, \"O8\", \"\", \"O8\", \"O8\");\n fieldWriter0.visitAnnotation(\"x!|VK3#k&ddT\", true);\n int int0 = fieldWriter0.getSize();\n assertEquals(36, int0);\n }",
"LocalSimpleType getSimpleType();",
"void printStaticTypeDeclaration(SchemaType sType, SchemaTypeSystem system) throws IOException {\n Class<?> factoryClass;\n if (sType.isAnonymousType() && !sType.isDocumentType() && !sType.isAttributeType()) {\n factoryClass = ElementFactory.class;\n } else if (sType.isSimpleType()) {\n factoryClass = SimpleTypeFactory.class;\n } else if (sType.isAbstract()) {\n factoryClass = AbstractDocumentFactory.class;\n } else {\n factoryClass = DocumentFactory.class;\n }\n\n String factoryName = factoryClass.getSimpleName();\n\n String fullName = sType.getFullJavaName().replace('$', '.');\n String sysName = sType.getTypeSystem().getName();\n\n\n emit(factoryName + \"<\" + fullName + \"> Factory = new \" + factoryName +\n \"<>(\" + sysName + \".TypeSystemHolder.typeSystem, \\\"\" + ((SchemaTypeSystemImpl) system).handleForType(sType) + \"\\\");\"\n );\n emit(\"org.apache.xmlbeans.SchemaType type = Factory.getType();\");\n emit(\"\");\n }",
"public Value makeNonPolymorphic() {\n if (var == null)\n return this;\n Value r = new Value(this);\n r.var = null;\n r.flags &= ~(PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }",
"TypeRef getType();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27960() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_12386 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12386);\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27960__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_12386);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27960__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"public static ParameterExpression variable(Class type) { throw Extensions.todo(); }",
"public static AnnotationType createUpdatedEntity() {\n return new AnnotationType()\n .name(UPDATED_NAME)\n .label(UPDATED_LABEL)\n .description(UPDATED_DESCRIPTION)\n .emotional(UPDATED_EMOTIONAL)\n .weight(UPDATED_WEIGHT)\n .color(UPDATED_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"private String prepareType(String smaliType) {\n int arrayDimensions = 0;\n \n String typeWithoutBrackets = smaliType;\n \n while (typeWithoutBrackets.startsWith(\"[\")) {\n arrayDimensions++;\n typeWithoutBrackets = typeWithoutBrackets.substring(1);\n }\n \n if(SmaliNameConverter.isPrimitiveSmaliType(typeWithoutBrackets)) {\n return (typeWithoutBrackets.equals(\"V\")) ? \"\" : smaliType ; \n }\n \n String classOfType = SmaliNameConverter.convertTypeFromSmali(typeWithoutBrackets);\n String packageOfType = SmaliNameConverter.extractPackageNameFromClassName(classOfType);\n\n StringBuilder type = new StringBuilder();\n\n for(int i = 0; i < arrayDimensions; i++) {\n type.append(\"[\");\n }\n\n boolean isCurrentClassObject = (classOfType.equals(currentClassType)); \n boolean isInternalObject = (packageOfType.equals(currentPackage)); \n \n char typeChar = isCurrentClassObject? 'T' : \n isInternalObject? 'O' : 'E' ;\n \n type.append(typeChar);\n\n return type.toString();\n }",
"TypeInterface createTypeInterface();",
"@Override\n \tpublic void logVarCreated(String name, String type) {\n \t\tSystem.out.println(\"\\tVariable created: [\" + type + \"] \" + name );\n \t}"
]
| [
"0.59822583",
"0.564146",
"0.5602319",
"0.55903125",
"0.55824727",
"0.54854363",
"0.5446282",
"0.5446282",
"0.5446282",
"0.5377793",
"0.53777665",
"0.5298977",
"0.52724165",
"0.5203784",
"0.51841795",
"0.51659584",
"0.51430583",
"0.5127535",
"0.5061637",
"0.50583524",
"0.5058178",
"0.5042475",
"0.49816722",
"0.4980939",
"0.49739566",
"0.49712026",
"0.49568868",
"0.49535328",
"0.4950966",
"0.49382702",
"0.49322227",
"0.4918079",
"0.49170637",
"0.49168187",
"0.49158415",
"0.49109495",
"0.4909724",
"0.48973656",
"0.48953658",
"0.48889363",
"0.48863113",
"0.48813513",
"0.48791057",
"0.4876122",
"0.4865181",
"0.48578715",
"0.48372996",
"0.48324823",
"0.48228365",
"0.4819654",
"0.4818095",
"0.48178208",
"0.48128554",
"0.48086658",
"0.48086658",
"0.48060358",
"0.4804015",
"0.47975937",
"0.4790298",
"0.47647837",
"0.4763044",
"0.4759885",
"0.47542822",
"0.47452286",
"0.47452286",
"0.47422636",
"0.47258878",
"0.47204092",
"0.47125772",
"0.47052142",
"0.46980307",
"0.46956924",
"0.46928486",
"0.4692504",
"0.4689245",
"0.4683366",
"0.4676073",
"0.46740422",
"0.46702677",
"0.46667993",
"0.46650174",
"0.46650082",
"0.46592033",
"0.46539345",
"0.46524566",
"0.46475616",
"0.46419096",
"0.46385354",
"0.46352774",
"0.46351692",
"0.46314338",
"0.4630901",
"0.46234292",
"0.46193662",
"0.46140125",
"0.46118072",
"0.46059123",
"0.45960045",
"0.45959097",
"0.4595181"
]
| 0.637956 | 0 |
creating the main referral panel | public void patientReferralPanel(Container pane) {
JPanel referralPanel = new JPanel();
referralPanel.setLayout(new GridLayout(1,2));
// creating the left hand side of the page
JPanel leftPanel = new JPanel();
leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));
// creating the specality section
JPanel specialtyPanel = new JPanel();
specialtyPanel.setBorder(BorderFactory.createTitledBorder("Specialty"));
JComboBox specalites = new JComboBox(new Object[] { "", "Radiology", "Obstetrics & Gynecology", "Cardiovascular", "Anesthesiology", "Orthopaedic Surgery", "Ophthalmology", "Dermatology", "Pediatrics" });
specialtyPanel.add(specalites);
leftPanel.add(specialtyPanel);
// creating the provider section
JPanel providerPanel = new JPanel();
providerPanel.setBorder(BorderFactory.createTitledBorder("Provider"));
/**** Data Retrieve *****/
String [] fields = {};
String [] params = {};
docs = serv.getData(CShareObjects.DOCTOR, fields, params);
JComboBox providers = new JComboBox(docs.toArray());
providerPanel.add(providers);
// adding the provider panel to the left panel
leftPanel.add(providerPanel);
// creating the additional notes section
JPanel notes = new JPanel();
notes.setBorder(BorderFactory.createTitledBorder("Additional Notes"));
notes.setLayout(new BoxLayout(notes, BoxLayout.Y_AXIS));
// creating the notes entered text area
JTextArea notesEntered = new JTextArea(4, 10);
notesEntered.setText("");
notesEntered.setEditable(true);
notesEntered.setLineWrap(true);
JScrollPane scroll = new JScrollPane(notesEntered);
scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
notes.add(scroll);
// adding the notes to the notes and submit section
leftPanel.add(notes);
// adding the left panel to the main panel veiw
referralPanel.add(leftPanel);
// creating the right hand side of the page
JPanel rightPanel = new JPanel();
rightPanel.setLayout(new GridLayout(2,1));
// creating reason for referral panel
JPanel reason = new JPanel();
reason.setBorder(BorderFactory.createTitledBorder("Reason For Referral"));
reason.setLayout(new BoxLayout(reason, BoxLayout.Y_AXIS));
/***** Data retrieval ******/
String [] fields2 = {"PatientID"};
String [] params2 = {pat.getID()};
List<PatientDiagnosis> diags = serv.getData(CShareObjects.PATIENTDIAGNOSIS, fields2, params2);
for (PatientDiagnosis pd : diags) {
reason.add(createDiagnosis(pd));
}
JCheckBox other = new JCheckBox("Other (input reason below)");
other.setSelected(false);
reason.add(other);
JTextArea otherReason = new JTextArea(1, 5);
otherReason.setEditable(true);
reason.add(otherReason);
// adding invisible panels for formating
reason.add(new JPanel());
reason.add(new JPanel());
reason.add(new JPanel());
reason.add(new JPanel());
// adding the reason for referral to the right panel
rightPanel.add(reason);
// creating the refer button
JPanel refferButtonPanel = new JPanel();
refferButtonPanel.setLayout(new BoxLayout(refferButtonPanel, BoxLayout.LINE_AXIS));
refferButtonPanel.add(new JPanel());
refferButtonPanel.add(new JButton("Refer"));
refferButtonPanel.add(new JPanel());
// adding the submit panel to the notes and submit panel
rightPanel.add(refferButtonPanel);
// adding the right panel to the main referral page
referralPanel.add(rightPanel);
// adding the referral panel to the passed in container
pane.add(referralPanel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"private void getEditLinkPanel() {\n\t\ttry{\n\t\t\tEditLinkPanel editLinkPanel = new EditLinkPanel(newsItem, feedNewsPresenter);\n\t\t\toptionPanel.add(editLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public JFrame linkFrame()\n\t{\n\t\tJFrame frame = new JFrame();\n\t\tframe.setSize(400, 600);\n\t\tframe.setLayout(new GridLayout(3, 1));\n\t\tframe.setTitle(\"Web Page Links\");\n\n\t\tJPanel panelOne = new JPanel();\n\t\tJPanel panelTwo = new JPanel();\n\n\t\tenterURL = new JTextField(\"\", 20);\t//Text field that is displayed in the first panel.\n\t\tpanelOne.add(enterURL);\n\n\t\tdisplayLinks = new JButton(\"Display Links\");\t//Button that is displayed in the second panel.\n\n\t\tdisplayLinks.addActionListener(new ActionListener(){\t//Button gets the text from enterURL.\n\t\t\tpublic void actionPerformed(ActionEvent event)\n\t\t\t{\n\t\t\t\tgetText();\n\t\t\t\tsetString();\n\n\t\t\t}});\n\n\t\tpanelTwo.add(displayLinks);\n\n\t\tframe.add(panelOne);\n\t\tframe.add(panelTwo);\n\t\tframe.add(generateLinks());\t\t//Supposed to generate links based on user text in panelOne.\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\treturn frame;\n\t}",
"public Patient_Record_Lookup_Panel() \n\t{\n\t\t//setLayout(new GridLayout(3, 1));\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n JPanel top = new JPanel();\n\t\ttop.add(new Centered_Text_Panel(\"Record Lookup:\"));\n add(top);\n \n\t\tadd(new Lookup_Panel());\n\n\t\tadd(record_output_panel = new Patient_Record_Output());\n\t}",
"@Override\n public void setupPanel()\n {\n\n }",
"private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n // Bottom border\n builder.setBorder(Borders.createEmptyBorder(\"1dlu, 3dlu, 2dlu, 3dlu\"));\n CellConstraints cc = new CellConstraints();\n\n int row = 1;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.status\"),\n cc.xy(1, row));\n row += 2;\n builder.add(synchronizationStatusLabel, cc.xy(1, row));\n row += 2;\n builder.add(synchronizationDateLabel, cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.you_have\"),\n cc.xy(1, row));\n row += 2;\n builder.add(newNoticesLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(filesAvailableLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(downloadsLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(uploadsLine.getUIComponent(), cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(\n Translation.getTranslation(\"status_tab.online_storage.title\"),\n cc.xy(1, row));\n row += 2;\n builder.add(onlineStorageAccountLabel.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(onlineStorageSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(licenseInfoSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(buyNowLabel.getUIComponent(), cc.xy(1, row));\n if (PreferencesEntry.SHOW_TELL_A_FRIEND\n .getValueBoolean(getController()))\n {\n row += 2;\n builder.add(tellFriendLabel.getUIComponent(), cc.xy(1, row));\n }\n\n return builder.getPanel();\n }",
"private JPanel getLinkPanel() {\n JPanel p = ProgramPresets.createTitledPanel(\"LINK\");\n p.setLayout(new BorderLayout());\n linkLabel = new JLabel(LINK);\n linkLabel.setForeground(ProgramPresets.COLOR_BUTTONS);\n linkLabel.setFont(ProgramPresets.DEFAULT_FONT_ITALICS);\n linkLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n linkLabel.addMouseListener(new MouseAdapter() {\n \n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n Desktop.getDesktop().browse(new URI(LINK));\n } catch (IOException | URISyntaxException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n \n @Override\n public void mouseExited(MouseEvent e) {\n linkLabel.setText(LINK);\n }\n \n @Override\n public void mouseEntered(MouseEvent e) {\n linkLabel.setText(\"<html><a href=''>\" + LINK + \"</a></html>\");\n \n }\n \n });\n linkLabel.setHorizontalAlignment(SwingConstants.CENTER);\n linkLabel.setVerticalAlignment(SwingConstants.CENTER);\n p.add(linkLabel, BorderLayout.CENTER);\n JPanel sub = ProgramPresets.createPanel();\n sub.setLayout(new BorderLayout());\n sub.add(Box.createRigidArea(new Dimension(100, 0)), BorderLayout.EAST);\n sub.add(p, BorderLayout.CENTER);\n sub.add(Box.createRigidArea(new Dimension(100, 0)), BorderLayout.WEST);\n sub.add(Box.createRigidArea(new Dimension(0, 20)), BorderLayout.SOUTH);\n return sub;\n }",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"public NavigationPanel()\n\t{\n\t\tmakeContent();\n\t}",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}",
"public AboutUsPanel() {\n initComponents();\n }",
"private void getDeleteLinkPanel() {\n\t\ttry{\n\t\t\tDeleteLinkPanel deleteLinkPanel = new DeleteLinkPanel(newsItem);\n\t\t\toptionPanel.add(deleteLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public LookUpPanel() {\n initComponents(); \n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainDetailsPanel() {\n initComponents();\n MiniTimelinePanel timelinePanel = new MiniTimelinePanel();\n DiscoveryEventUtils.getDiscoveryEventBus().register(timelinePanel);\n jTabbedPane1.add(Bundle.DomainDetailsPanel_miniTimelineTitle_text(), timelinePanel);\n for (BlackboardArtifact.ARTIFACT_TYPE type : SearchData.Type.DOMAIN.getArtifactTypes()) {\n jTabbedPane1.add(type.getDisplayName(), new DomainArtifactsTabPanel(type));\n }\n }",
"public Lookup_Panel()\n\t\t{\n\t\t\tsetLayout(new GridLayout(2, 4));\n\n\n\t\t\tadd(new Centered_Text_Panel(\"Lookup\"));\n\t\t\tadd(record_types_combo_box = new JComboBox(record_types));\n\t\t\tadd(new Centered_Text_Panel(\" for patient with SSN \"));\n\t\t\tadd(ssn_field = new JTextField(8));\n\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Centered_Text_Panel(\"\"));\n\t\t\tadd(new Submit_Button());\n\t\t}",
"private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }",
"private void $$$setupUI$$$() {\n myMainPanel = new JPanel();\n myMainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n myArchetypesPanel = new JPanel();\n myArchetypesPanel.setLayout(new BorderLayout(0, 0));\n myArchetypesPanel.setInheritsPopupMenu(true);\n myMainPanel.add(myArchetypesPanel, new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n alsoDownloadExampleSourceCheckBox = new JCheckBox();\n this.$$$loadButtonText$$$(alsoDownloadExampleSourceCheckBox, ResourceBundle.getBundle(\"Bundle\").getString(\"AsposeWizardPanel.WizardStep.ExampleChkbox\"));\n myArchetypesPanel.add(alsoDownloadExampleSourceCheckBox, BorderLayout.SOUTH);\n fieldTextPane = new JTextPane();\n fieldTextPane.setText(\"\");\n myArchetypesPanel.add(fieldTextPane, BorderLayout.WEST);\n bannerLbl = new JLabel();\n bannerLbl.setAlignmentY(0.0f);\n bannerLbl.setHorizontalAlignment(2);\n bannerLbl.setHorizontalTextPosition(2);\n bannerLbl.setIcon(new ImageIcon(getClass().getResource(\"/resources/long_bannerIntelliJ.png\")));\n bannerLbl.setIconTextGap(0);\n bannerLbl.setText(\"\");\n bannerLbl.setVerticalAlignment(1);\n bannerLbl.setVerticalTextPosition(1);\n myMainPanel.add(bannerLbl, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(10, -1), new Dimension(390, -1), new Dimension(66666, -1), 1, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 2, new Insets(10, 10, 10, 10), -1, -1));\n panel1.setAlignmentX(0.0f);\n panel1.setAlignmentY(0.0f);\n panel1.setOpaque(true);\n myMainPanel.add(panel1, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel1.setBorder(BorderFactory.createTitledBorder(null, ResourceBundle.getBundle(\"Bundle\").getString(\"AsposeWizardPanel.WizardStep.headingMavn\"), TitledBorder.LEFT, TitledBorder.DEFAULT_POSITION, new Font(panel1.getFont().getName(), panel1.getFont().getStyle(), panel1.getFont().getSize()), new Color(-16777216)));\n final JLabel label1 = new JLabel();\n label1.setText(\"GroupId\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myGroupIdField = new JTextField();\n panel1.add(myGroupIdField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"ArtifactId\");\n panel1.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myArtifactIdField = new JTextField();\n panel1.add(myArtifactIdField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Version\");\n panel1.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myVersionField = new JTextField();\n myVersionField.setText(\"\");\n panel1.add(myVersionField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n }",
"private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"public AdminCoursePanel(PanelController panMan, AdminFunctController adCon) {\n\t\tsuper(panMan);\n\t\tthis.adCon = adCon;\n\n\t\tsetLayout(new BorderLayout());\n\t\tdisplay = new JPanel();\n\n\t\tsetupToolBar();\n\t\tsetupButtons();\n\t\tsetupTable();\n\t\tsetupTextArea();\n\n\t\tadd(display, BorderLayout.CENTER);\n\t}",
"public AppoinmentPanel() {\n initComponents();\n }",
"public MainUiPanel() {\n initComponents();\n// initializeTable();\n ArrayList<Client> loc = LocationAction.getLocationList();\n for(Client cl: loc){\n// column.add(cl.getClientName());\n// }\n \n jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi(cl.getClientId()));\n// jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi());\n }\n }",
"public MainMenuPanel() {\n\t\tinitComponents();\n\t}",
"public AdminProfile_panel() {\n initComponents();\n \n }",
"public RepalyPanel() {\n\t\t\ttry {\n//\t\t\t\tthis.addMouseListener(new MouseAdapter() {\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n//\t\t\t\t\t\tSystem.out.println(e.getX() + \" \" + e.getY());\n//\t\t\t\t\t}\n//\t\t\t\t});\n\n\t\t\t\tsetLayout(null);\n\n\t\t\t\t// 退出按键\n\t\t\t\tjbRestart = MyButton.makeButton(restart, restart_down,\n\t\t\t\t\t\trestart_hover);\n\t\t\t\tadd(jbRestart);\n\t\t\t\tjbRestart.setBounds(540, 355, 140, 56);\n\t\t\t\tjbRestart.addActionListener(this);\n\n\t\t\t\t// 确认退出按键\n\t\t\t\tjbContinue = MyButton.makeButton(continue_pic, continue_down,\n\t\t\t\t\t\tcontinue_hover);\n\t\t\t\tadd(jbContinue);\n\t\t\t\tjbContinue.setBounds(345, 355, 140, 56);\n\t\t\t\tjbContinue.addActionListener(this);\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}",
"private void initURLMenuComponents()\n {\n urlPanel = new JPanel(new BorderLayout());\n urlControls = new JPanel(new GridLayout(1, 2));\n addUrlButton = new JButton(\"Add\");\n removeUrlButton = new JButton(\"Remove\");\n urlModel = new DefaultListModel();\n urlList = new JList(urlModel);\n urlScroll = new JScrollPane(urlList);\n urlScroll.setBorder(null);\n \n addUrlButton.setIcon(new ImageIcon(miniMenuAddImage));\n removeUrlButton.setIcon(new ImageIcon(miniMenuRemoveImage));\n urlControls.add(addUrlButton);\n urlControls.add(removeUrlButton);\n \n urlPanel.add(urlScroll, BorderLayout.CENTER);\n urlPanel.add(urlControls, BorderLayout.NORTH);\n urlPanel.setBorder(BorderFactory.createTitledBorder(\"URL Queue\"));\n \n addUrlButton.addActionListener(this);\n removeUrlButton.addActionListener(this);\n \n leftPane.add(urlPanel);\n leftPane.add(workerPanel);\n \n crawlPane.add(leftPane, BorderLayout.WEST);\n crawlPane.add(rightPane, BorderLayout.CENTER);\n crawlPane.setBackground(Color.GREEN); \n }",
"private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}",
"public MaintenancePanel(Frame fr, MaintenanceController mc) {\n\t\tsuper(fr, TITLE, false);\n\n\t\tmctrl = mc;\n\n\t\t// north part\n\t\tLabel lb = new Label(TITLE);\n\t\tlb.setFont(new Font(\"Helvetica\", Font.BOLD, 24));\n\t\tPanel tp1 = new Panel();\n\t\ttp1.add(lb);\n\n\t\tPanel tpn = new Panel();\n\t\ttpn.setLayout(new GridLayout(0, 1));\n\n\t\tpassword = new LabelledDisplay(\"Password:\", 30, LabelledDisplay.FLOW);\n\t\tPasswordListener pl = new PasswordListener(mc.getAccessManager());\n\t\tpassword.addListener(pl);\n\n\t\tPanel tp3 = new Panel();\n\t\tvalidPswd = new WarningDisplay(\"Valid Password\");\n\t\tinvalidPswd = new WarningDisplay(\"Invalid Password\");\n\t\ttp3.add(validPswd);\n\t\ttp3.add(invalidPswd);\n\t\ttpn.add(tp1);\n\t\ttpn.add(password);\n\t\ttpn.add(tp3);\n\n\t\t// center part\n\t\tPanel tpc = new Panel();\n\t\ttpc.setLayout(new GridLayout(0, 1));\n\n\t\tcDisplay = new CoinDisplay(mctrl);\n\t\tdDisplay = new ItemDisplay(mctrl, Store.DRINK);\n\t\tsDisplay = new ItemDisplay(mctrl, Store.SNACK);\n\n\t\tPanel tp5 = new Panel();\n\t\ttp5.setLayout(new GridLayout(0, 1));\n\n\t\ttotalCash = new ButtonItem(\"Show Total Cash Held\", 5, ButtonItem.FLOW);\n\t\tTotalCashButtonListener tl;\n\n\t\ttl = new TotalCashButtonListener(mctrl);\n\t\ttotalCash.addListener(tl);\n\n\t\ttransferCash = new Button(\"Press to Collect All Cash\");\n\t\ttransferCash.addActionListener(new TransferCashButtonListener(mctrl));\n\n\t\tPanel tp6 = new Panel();\n\t\ttp6.setLayout(new FlowLayout());\n\t\ttp6.add(transferCash);\n\n\t\tcollectCash =\n\t\t\tnew LabelledDisplay(\"Collect Cash:\", 5, LabelledDisplay.FLOW);\n\t\texitBtn = new Button(\"Press Here when Finished\");\n\t\texitBtn.addActionListener(new ExitButtonListener(mctrl));\n\n\t\ttp5.add(totalCash);\n\t\ttp5.add(tp6);\n\t\ttp5.add(collectCash);\n\t\ttp5.add(exitBtn);\n\t\ttpc.setLayout(new BorderLayout());\n\t\tPanel pp = new Panel();\n\t\tpp.setLayout(new GridLayout(1, 2));\n\t\tpp.add(cDisplay);\n\t\tif (!dDisplay.isEmpty())\n\t\t\tpp.add(dDisplay);\n\t\tif (!sDisplay.isEmpty())\n\t\t\tpp.add(sDisplay);\n\t\ttpc.add(\"Center\", pp);\n\t\ttpc.add(\"South\", tp5);\n\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add(\"North\", tpn);\n\t\tthis.add(\"Center\", tpc);\n\n\t\tpack();\n\t\tframeWidth=this.getWidth();\n frameHeight=this.getHeight();\n frameX=(screenWidth-frameWidth);\n frameY=0;\n setBounds(frameX,frameY,frameWidth, frameHeight);\n\t}",
"public Administrative() {\r\n\t\tsetTitle(\"APB\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 418, 238);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new TitledBorder(UIManager\r\n\t\t\t\t.getBorder(\"TitledBorder.border\"), \"Administrative\",\r\n\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, null));\r\n\t\tpanel.setBounds(10, 11, 379, 183);\r\n\t\tcontentPane.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJButton btnBarber = new JButton(\"Barber\");\r\n\t\tbtnBarber.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterBarber frame = new RegisterBarber();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the phonebook frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBarber.setBounds(10, 45, 157, 37);\r\n\t\tpanel.add(btnBarber);\r\n\r\n\t\tJButton btnTipoJob = new JButton(\"Tipo de Servi\\u00E7o\");\r\n\t\tbtnTipoJob.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterDoneService frame = new RegisterDoneService();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the Service Type frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTipoJob.setBounds(215, 45, 149, 37);\r\n\t\tpanel.add(btnTipoJob);\r\n\r\n\t\tJButton btnPhonebook = new JButton(\"Phonebook\");\r\n\t\tbtnPhonebook.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterPhonebook frame = new RegisterPhonebook();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPhonebook.setBounds(10, 93, 157, 37);\r\n\t\tpanel.add(btnPhonebook);\r\n\r\n\t\tJButton btnVoltar = new JButton(\"Voltar\");\r\n\t\tbtnVoltar.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tMainMenu frame = new MainMenu();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton to go back\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVoltar.setBounds(151, 141, 89, 23);\r\n\t\tpanel.add(btnVoltar);\r\n\r\n\t\tJButton btnRecibo = new JButton(\"Recibo\");\r\n\t\tbtnRecibo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the receipt frame\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tGenerateReceipt frame = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tframe = new GenerateReceipt();\r\n\t\t\t\t} catch (ParseException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the receipt frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRecibo.setBounds(215, 93, 149, 37);\r\n\t\tpanel.add(btnRecibo);\r\n\t}",
"private void displayUserDelegation() {\r\n userDelegationForm = new UserDelegationForm(mdiForm,true);\r\n userDelegationForm.display();\r\n }",
"public abstract void createContents(Panel mainPanel);",
"private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"public ControladorPanel() { }",
"private void initJoin() {\n\n\t\tthis.setResizable(false);\n\t\tthis.setSize(400, 155);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\n\t\tJPanel panNom = addPannelName();\n\t\tJPanel panPass = addPannelPassword();\n\n\t\tJPanel content = new JPanel();\n\n\t\tcontent.add(panNom);\n\t\tcontent.add(panPass);\n\n\t\tJPanel control = new JPanel();\n\n\t\tJButton okBouton = addOKButton();\n\t\tJButton cancelButton = addCancelButton();\n\n\t\tcontrol.add(okBouton);\n\t\tcontrol.add(cancelButton);\n\n\t\tthis.getContentPane().add(content, BorderLayout.NORTH);\n\t\tthis.getContentPane().add(control, BorderLayout.SOUTH);\n\t}",
"public Flow()\n\t{\n\t\tnpanel=new JPanel();\n\t\tspanel=new JPanel();\n\t\tmpanel=new JPanel();\n\t\t\n\t\tbutton=new JButton(\"Summit\");\n\t\tbutton1=new JButton(\"Logout\");\n\t\ttrip=new JButton(\"自动切换账号\");\n\t\texit=new JButton(\"Exit\");\n\t\tsetDefault=new JButton(\"设置为默认账号\");\n\n\t\tla1=new JLabel(\"账号: \",JLabel.RIGHT);\n\t\tla2=new JLabel(\"密码: \",JLabel.RIGHT);\n\t\tla3=new JLabel(\"将当前账号设置为默认登陆账号,以便下次自动登陆轻松上网\",JLabel.CENTER);\n\t\tla3.setFont(new Font(\"宋体\",Font.BOLD,14));\n\t\tla4= new JLabel(\"\",JLabel.CENTER);la4.setFont(new Font(\"宋体\",Font.BOLD,20));\n\t\tla5= new JLabel(\"\",JLabel.CENTER);la5.setFont(new Font(\"宋体\",Font.BOLD,14));\n\t\tla6= new JLabel(\"\",JLabel.CENTER);la6.setFont(new Font(\"宋体\",Font.BOLD,20));\n\t\tla7= new JLabel(\"本机所使用的流量 :\",JLabel.CENTER);la6.setFont(new Font(\"宋体\",Font.BOLD,20));\n\t\t\n\t\t//获取输入历史\n\t\tuser=new JComboBox<String>();\n\t\tuser.setEditable(true);\n\t\tres5=dbc.executeQuery(\"select * from lazer\");\n\t\tuser.addItem(\" \");\n\t\ttry {\n\t\t\twhile (res5.next())\n\t\t\t{\n\t\t\t\tuser.addItem(res5.getString(1));\n\t\t\t}\t\n\t\t} catch (SQLException e) {e.printStackTrace();}\n\n\t\tuser.addFocusListener(this);\n\t\tuser.addItemListener(this);\n\t\tpw=new JPasswordField(10);\n\t\tpw.addFocusListener(this);\n\t\t//\n\t\tl5=new JLabel(\"\",JLabel.CENTER);\n\t\tl5.setBackground(Color.cyan);\n\t\tl6=new JLabel(\"\",JLabel.CENTER);\n\t\tl7=new JLabel(\"800\",JLabel.CENTER);\n\t\tt4=new JTextField(10);\n\t\tt5=new JTextField(10);\n\t\t//设置默认的流量额度\n\t\tt4.setText(\"800\");\n\t\t\n\t\tl1=new JLabel(\"Username:\",JLabel.RIGHT);\n\t\tl2=new JLabel(\" Used(M) :\",JLabel.RIGHT);\n\t\tl3=new JLabel(\" Total(M) :\",JLabel.RIGHT);\n\t\tl4=new JLabel(\"设置额定流量(M) :\",JLabel.RIGHT);\n\t\tinit();\n\t}",
"public CreditsPanel() {\n super(RRConstants.BACKGROUND_COLOR);\n contributorFont = RRConstants.getFont(15);\n\n /* this is a useful helper variable used to position elements in\n aesthetically pleasing places in the CreditsPanel */\n int increment = RRConstants.HEIGHT/10;\n\n // title of the CreditsPanel\n JLabel credits = makeText(\"CREDITS\", nameFont);\n \n // the first section of the JPanel - represents the names of creators\n JLabel creatorSubtitle = makeText(\"Created by:\", buttonFont);\n JLabel creatorText = makeText(\n \"<html><center>Isabel Bryant,<br>\" + \n \"Hunter Sessa,<br>\" + \n \"Mara Steiu &<br>\" + \n \"Angelina Li</html>\", textFont);\n\n // second section of the JPanel - represents names of contributors\n JLabel contributorSubtitle = makeText(\"Thanks to:\", buttonFont);\n JLabel contributorText = makeText(\n \"<html><center>Ada & Takis,<br>\" + \n \"This: bit.ly/sojavaswing,<br>\" + \n \"and CS230 for teaching us <br>\" + \n \"how to make our game.</html>\", contributorFont);\n\n //setting up backButton - getButton is a method inherited from TextPanel\n backButton = getButton(\"BACK TO MENU\", BACK_COLOR, new ButtonListener());\n \n /* adding each component to the CreditsPanel, using the addComponent \n method inherited from TextPanel */\n addComponent(credits, RRConstants.HEIGHT/6);\n addComponent(creatorSubtitle, RRConstants.HEIGHT/5 + increment);\n addComponent(creatorText, RRConstants.HEIGHT/5 + (3*increment/2));\n addComponent(contributorSubtitle, RRConstants.HEIGHT/2 + increment/2);\n addComponent(contributorText, RRConstants.HEIGHT/2 + increment);\n addComponent(backButton, RRConstants.HEIGHT - RRConstants.HEIGHT/6 - increment);\n }",
"private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}",
"public void onModuleLoad() { \n\t\tsingleton = this;\n\t\t\n\t\tdockPanel.setWidth(\"100%\");\n\t\tdockPanel.setSpacing(8);\n\t\t\n\t\tmenuBar.setVisible(false);\n\t\tmenuBar.setStyleName(\"menu\");\n\t\t\n\t\tflowPanel.setWidth(\"100%\");\n\t\tflowPanel.add(menuBar);\n\t\t\n\t\tstatusBar.setVisible(false);\n\t\tstatusBar.setStyleName(\"status\");\n\t\t\n\t\tflowPanel.add(statusBar);\n\t\t\n\t\tdockPanel.add(flowPanel,DockPanel.NORTH);\n\t\t\n\t\tloginPanel.setVisible(false);\n\t\tdockPanel.add(loginPanel,DockPanel.WEST);\n\t\t\n\t\tpublisherListPanel.setVisible(false);\n\t\tpublisherListPanel.setWidth(\"100%\");\n\t\tdockPanel.add(publisherListPanel,DockPanel.CENTER);\n\t\t\n\t\tRootPanel.get(\"publisher\").add(dockPanel);\n\t}",
"private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }",
"public AboutPanel() {\n super();\n initialize();\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }",
"public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}",
"public FDRSettingsPanel() {\n initComponents();\n }",
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"private void putPanels() {\n\t\tfrmUserDesign.getContentPane().add(userDesignPanel, \"userDesign\");\n\t\tfrmUserDesign.getContentPane().add(vendasClass.getVendas(), \"Vendas\");\n\t\tfrmUserDesign.getContentPane().add(maquinaClass.getMaquinas(), \"Maquinas\");\n\t\tfrmUserDesign.getContentPane().add(funcionarioClasse.getFuncionarios(), \"Funcionarios\");\n\t\tfrmUserDesign.getContentPane().add(produtoClass.getProdutos(), \"Produtos\");\n\t\tfrmUserDesign.getContentPane().add(chart.getGrafico(), \"Grafico\");\n\t\tcl.show(frmUserDesign.getContentPane(), \"userDesign\");// mostrar o main menu\n\t}",
"public ButtonMenuPanelBuyer() {\n initComponents();\n }",
"@Override protected JComponent setupPanel()\t{ return null; }",
"private void actionOnClicReferences() {\r\n\t\tReferencesWindow refWin = new ReferencesWindow();\r\n\t\trefWin.setVisible(true);\r\n\t}",
"public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"private JPanel getPanelLocalProxy() {\n \t\tif (panelLocalProxy == null) {\n \t\t\tjLabel6 = new JLabel();\n \t\t\tGridBagConstraints gridBagConstraints15 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n \n \t\t\tjavax.swing.JLabel jLabel = new JLabel();\n \t\t\tjavax.swing.JLabel jLabel1 = new JLabel();\n \t\t\t\n \t\t\tpanelLocalProxy = new JPanel();\n \t\t\tpanelLocalProxy.setLayout(new GridBagLayout());\n \t\t\tpanelLocalProxy.setBorder(javax.swing.BorderFactory.createTitledBorder(\n \t\t\t\t\tnull, this.extension.getMessages().getString(\"spiderajax.proxy.local.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, \n \t\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN, 11), java.awt.Color.black));\t// ZAP: i18n\n \t\t\tjLabel.setText(\"Address (eg localhost, 127.0.0.1)\");\n \t\t\tgridBagConstraints4.gridx = 0;\n \t\t\tgridBagConstraints4.gridy = 0;\n \t\t\tgridBagConstraints4.ipadx = 0;\n \t\t\tgridBagConstraints4.ipady = 0;\n \t\t\tgridBagConstraints4.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints4.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints4.weightx = 0.5D;\n \t\t\tgridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints5.gridx = 1;\n \t\t\tgridBagConstraints5.gridy = 0;\n \t\t\tgridBagConstraints5.weightx = 0.5D;\n \t\t\tgridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints5.ipadx = 50;\n \t\t\tgridBagConstraints5.ipady = 0;\n \t\t\tgridBagConstraints5.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints5.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.gridx = 0;\n \t\t\tgridBagConstraints6.gridy = 1;\n \t\t\tgridBagConstraints6.ipadx = 0;\n \t\t\tgridBagConstraints6.ipady = 0;\n \t\t\tgridBagConstraints6.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints6.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.weightx = 0.5D;\n \t\t\tgridBagConstraints7.gridx = 1;\n \t\t\tgridBagConstraints7.gridy = 1;\n \t\t\tgridBagConstraints7.weightx = 0.5D;\n \t\t\tgridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints7.ipadx = 50;\n \t\t\tgridBagConstraints7.ipady = 0;\n \t\t\tgridBagConstraints7.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints7.insets = new java.awt.Insets(2,2,2,2);\n \t\t\t\n \t\n \t\t\t\n \t\t\t\n \t\t\tjLabel1.setText(this.extension.getMessages().getString(\"spiderajax.proxy.local.label.port\"));\n \t\t\tjLabel6.setText(this.extension.getMessages().getString(\"spiderajax.proxy.local.label.browser\"));\n \t\t\tgridBagConstraints15.anchor = java.awt.GridBagConstraints.NORTHWEST;\n \t\t\tgridBagConstraints15.gridx = 0;\n \t\t\tgridBagConstraints15.gridy = 4;\n \t\t\tgridBagConstraints15.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints15.weightx = 1.0D;\n \t\t\tgridBagConstraints15.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints15.gridwidth = 2;\n \t\t\tpanelLocalProxy.add(jLabel, gridBagConstraints4);\n \t\t\tpanelLocalProxy.add(getTxtProxyIp(), gridBagConstraints5);\n \t\t\tpanelLocalProxy.add(jLabel1, gridBagConstraints6);\n \t\t\tpanelLocalProxy.add(getSpinnerProxyPort(), gridBagConstraints7);\n \t\t\tpanelLocalProxy.add(jLabel6, gridBagConstraints15);\n \t\t\t\n \t\t}\n \t\treturn panelLocalProxy;\n \t}",
"public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }",
"public MainExonCorPanel() {\n initComponents();\n errorsp.setVisible(false);\n jSplitPane1.setDividerLocation(0);\n }",
"public void buildMainGUI(){\n // Clear the frame\n rebuildFrame();\n \n // Header options in main GUI\n header.setText(\" Problem choice: \");\n \n //------Unique panel objects here---------\n \n JButton project1Button = new JButton(\"Project 1 - Search, Constraint Satisfaction, and Graph Coloring\");\n project1Button.addActionListener((ActionEvent e) -> {\n \n // If pressed, build project 1 GUI\n buildProject1GUI();\n \n });\n controlPanel.add(project1Button);\n \n \n //----------------------------------------\n \n // Display GUI after finished building\n controlFrame.pack();\n controlFrame.setVisible(true);\n }",
"final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }",
"@Override\r\n\tpublic void createContents(Panel mainPanel) {\n\t\t\r\n\t\t\r\nsetTitle(\"¿Dónde invierto?\");\r\n\t\t\r\n\t\tmainPanel.setLayout(new VerticalLayout());\r\n\t\tnew Label(mainPanel).setText(\"Menú Principal\").setFontSize(15).setForeground(Color.RED);\r\n\t\tnew Label(mainPanel).setText(\"Seleccionar la opción deseada\").setFontSize(13).setForeground(Color.BLACK);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Carga Correcta de las Empresas!\").setFontSize(9).setForeground(Color.GREEN).bindVisibleToProperty(\"bloq\");\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Mostrar el valor de una cuenta predefinida\");\r\n\t\tButton bot_MostrarCuentas= new Button(mainPanel);\r\n\t\t\r\n\t\tbot_MostrarCuentas.setCaption(\"Mostrar valores de la Empresa\");//.bindEnabledToProperty(\"bloq\");\r\n\t\tbot_MostrarCuentas.onClick(() -> new mostrarValoresDeEmpresas(this,new mostrarValoresDeEmpresasViewModel()).open());\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Crear un nuevo indicador\");\r\n\t\tnew Button(mainPanel).setCaption(\"Escribir formula\").onClick(() -> new crearIndicadores(this,new crearIndicadoresViewModel()).open());\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Menu de Metodologias\");\r\n\t\t\r\n\t\tPanel parte1 =new Panel(mainPanel);\r\n\t\tparte1.setLayout(new ColumnLayout(2));\t\r\n\t\tButton bot_evaluarEmpresas= new Button(parte1);\r\n\t\tbot_evaluarEmpresas.setCaption(\"Evaluar una empresa\");\r\n\t\tbot_evaluarEmpresas.setWidth(125);\r\n\t\tbot_evaluarEmpresas.onClick(() -> new evaluarEmpresas(this, new evaluarEmpresasViewModel()).open());\r\n\t\r\n\t\tButton bot_configurarMetodologia= new Button(parte1);\r\n\t\tbot_configurarMetodologia.setCaption(\"Crear Metodologia\");\r\n\t\tbot_configurarMetodologia.setWidth(125);\r\n\t\tbot_configurarMetodologia.onClick(() ->crearNuevaMetodologia());\t\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t/*\tnew Label(mainPanel).setText(\"Importar/Exportar archivos\");\r\n\t\t\r\n\t\tButton bot_impExpArchivos = new Button(mainPanel);\r\n\t\tbot_impExpArchivos.setCaption(\"Importar Archivos o exportar\");\r\n\t\tbot_impExpArchivos.setWidth(125);\r\n\t\tbot_impExpArchivos.onClick(() -> new importarExportarArchivos(this, new importarExportarArchivosViewModel()).open());\r\n\t\t\r\n\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\"Desde aca abajo vuela todo y va a otra ventana \\\\|/\").setFontSize(8);\r\n\t */\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Cargar un archivo de empresas\");\r\n\t\tPanel panel2 = new Panel(mainPanel);\r\n\t\tpanel2.setLayout(new ColumnLayout(2));\r\n\t\t\r\n\t\tFileSelector fileSelector = new FileSelector(panel2);\r\n\t\tfileSelector.extensions(\"*.txt\");\r\n\t\tfileSelector.setCaption(\"Seleccionar archivo\");\r\n\t\tfileSelector.setWidth(125);\r\n\t\tfileSelector.bindValueToProperty(\"rutaArchivo\");\r\n\t\tfileSelector.onClick(() -> this.cargarArchivo());\r\n\t\t\r\n\t\tnew TextBox(panel2).setWidth(125).bindValueToProperty(\"rutaArchivo\");\r\n\t\t\r\n\t\t\r\n\t\tnew Button(mainPanel).setCaption(\"Procesar archivo\").onClick(() -> this.cargarArchivo());\r\n\r\n\t\tIOs.leerIndicadoresDeArchivo(\"archivoIndicadores.txt\");\r\n\t\t\r\n\t\tRepositorioDeEmpresas.traerEmpresasDeLaDB();\r\n\t}",
"public ControlDeskView(ControlDesk controlDesk, int maxMembers) {\n\n\t\tthis.controlDesk = controlDesk; // so here we assign the controlDesk\n\n\t\tthis.maxMembers = maxMembers; // here go the members, I do not know how are they getting this number tho, \n\t\t\n\t\tint numLanes = controlDesk.getNumLanes(); // I remember seeing this function, It returns the number of lanes here. Altho, we could have simply given it that number as it is\n\n\n\t\twin = new JFrame(\"Control Desk\"); // The new frame that is gonna be decorated\n\n\t\twin.getContentPane().setLayout(new BorderLayout()); //\n\n\t\t((JPanel) win.getContentPane()).setOpaque(false);\n\n\t\tJPanel colPanel = new JPanel();\n\n\t\tcolPanel.setLayout(new BorderLayout());\n\n\t\t// Controls Panel\n\t\tJPanel controlsPanel = new JPanel();\n\t\tcontrolsPanel.setLayout(new GridLayout(3, 1));\n\t\tcontrolsPanel.setBorder(new TitledBorder(\"Controls\"));\n\n\t\taddParty = new JButton(\"Start a new Tourney\");\n\t\tJPanel addPartyPanel = new JPanel();\n\t\taddPartyPanel.setLayout(new FlowLayout());\n\t\taddParty.addActionListener(this);\n\t\taddPartyPanel.add(addParty);\n\t\tcontrolsPanel.add(addPartyPanel);\n\n\t\tassign = new JButton(\"Assign Lanes\");\n\t\tJPanel assignPanel = new JPanel();\n\t\tassignPanel.setLayout(new FlowLayout());\n\t\tassign.addActionListener(this);\n\t\tassignPanel.add(assign);\n\n\t\tfinished = new JButton(\"Ight, Ima head out\");\n\t\tJPanel finishedPanel = new JPanel();\n\t\tfinishedPanel.setLayout(new FlowLayout());\n\t\tfinished.addActionListener(this);\n\t\tfinishedPanel.add(finished);\n\t\tcontrolsPanel.add(finishedPanel);\n\n\t\t// Lane Status Panel\n\t\tJPanel laneStatusPanel = new JPanel();\n\t\tlaneStatusPanel.setLayout(new GridLayout(numLanes, 1));\n\t\tlaneStatusPanel.setBorder(new TitledBorder(\"Lane Status\"));\n\n\t\tHashSet lanes = controlDesk.getLanes();\n\t\tIterator it = lanes.iterator();\n\t\t\n\t\tint laneCount = 0; // initialising the lane count. \n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\n\t\t\t// so this is the loop that deals with every lane, i.e . every party that there is.\n\n\t\t\tLane curLane = (Lane) it.next();\n\n\t\t\tLaneStatusView laneStat = new LaneStatusView(curLane,(laneCount+1));\n\n\t\t\tcurLane.subscribe(laneStat);\n\n\t\t\t((Pinsetter)curLane.getPinsetter()).subscribe(laneStat);\n\n\t\t\tJPanel lanePanel = laneStat.showLane();\n\n\t\t\tSystem.out.println(\"Yo Mami, me is here. Let's study what the code has been doing\"); \n\n\t\t\tlanePanel.setBorder(new TitledBorder(\"Lane Number : \" + ++laneCount ));\n\n\t\t\tlaneStatusPanel.add(lanePanel);\n\t\t}\n\n\t\t// Party Queue Panel\n\t\tJPanel partyPanel = new JPanel();\n\t\tpartyPanel.setLayout(new FlowLayout());\n\t\tpartyPanel.setBorder(new TitledBorder(\"Party Queue : Or whatever you may wanna call it\"));\n\n\t\tVector empty = new Vector();\n\t\tempty.add(\"(Empty)\");\n\n\t\tpartyList = new JList(empty);\n\t\tpartyList.setFixedCellWidth(120);\n\t\tpartyList.setVisibleRowCount(10);\n\t\tJScrollPane partyPane = new JScrollPane(partyList);\n\t\tpartyPane.setVerticalScrollBarPolicy(\n\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpartyPanel.add(partyPane);\n\t\t//\t\tpartyPanel.add(partyList);\n\n\t\t// Clean up main panel\n\t\tcolPanel.add(controlsPanel, \"East\");\n\t\tcolPanel.add(laneStatusPanel, \"Center\");\n\t\tcolPanel.add(partyPanel, \"West\");\n\n\t\twin.getContentPane().add(\"Center\", colPanel);\n\n\t\twin.pack();\n\n\t\tSystem.out.println(\"This statement is here because I want to check how many times is this file being called. Will need to see how many times it is being printed\");\n\n\t\t/* Close program when this window closes */\n\t\twin.addWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\t// Center Window on Screen\n\t\tDimension screenSize = (Toolkit.getDefaultToolkit()).getScreenSize();\n\t\twin.setLocation(\n\t\t\t((screenSize.width) / 2) - ((win.getSize().width) / 2),\n\t\t\t((screenSize.height) / 2) - ((win.getSize().height) / 2));\n\t\twin.show();\n\n\t}",
"private void initComponents() {\n contentPanel = new JPanel();\n label_visitDate = new JLabel();\n visitDate = ATBasicComponentFactory.createDateField(detailsModel.getModel( PatronVisits.PROPERTYNAME_VISIT_DATE));\n visitTypeLabel = new JLabel();\n visitTypeComboBox = ATBasicComponentFactory.createComboBox(detailsModel, PatronVisits.PROPERTYNAME_VISIT_TYPE, PatronVisits.class);\n label_subject = new JLabel();\n address1 = ATBasicComponentFactory.createTextField(detailsModel.getModel(PatronVisits.PROPERTYNAME_CONTACT_ARCHIVIST));\n label_topic = new JLabel();\n scrollPane1 = new JScrollPane();\n patronNotes = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_TOPIC));\n scrollPane5 = new JScrollPane();\n researchPurposeTable = new DomainSortableTable(PatronVisitsResearchPurposes.class);\n panel12 = new JPanel();\n addResearchPurpose = new JButton();\n editResearchPurposeButton = new JButton();\n removeResearchPurpose = new JButton();\n separator5 = new JSeparator();\n tabbedPane1 = new JTabbedPane();\n panel1 = new JPanel();\n subjectLabel = new JLabel();\n scrollPane3 = new JScrollPane();\n subjectsTable = new DomainSortableTable(PatronVisitsSubjects.class);\n panel10 = new JPanel();\n addSubject = new JButton();\n removeSubject = new JButton();\n separator1 = new JSeparator();\n namesLabel = new JLabel();\n scrollPane4 = new JScrollPane();\n namesTable = new DomainSortableTable(PatronVisitsNames.class);\n panel11 = new JPanel();\n editNameRelationshipButton = new JButton();\n addName = new JButton();\n removeName = new JButton();\n panel2 = new JPanel();\n scrollPane2 = new JScrollPane();\n resourcesTable = new DomainSortableTable(PatronVisitsResources.class);\n panel3 = new JPanel();\n addResourceButton = new JButton();\n removeResourceButton = new JButton();\n resourcesUsedLabel = new JLabel();\n scrollPane6 = new JScrollPane();\n textArea1 = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_DETAILS_ON_RESOURCES));\n panel4 = new JPanel();\n userDefinedStringLabel = new JLabel();\n userDefinedTextField1 = ATBasicComponentFactory.createTextField(detailsModel.getModel(PatronVisits.PROPERTYNAME_USER_DEFINED_STRING1),false);\n userDefinedBooleanLabel = new JLabel();\n userDefinedCheckBox1 = ATBasicComponentFactory.createCheckBox(detailsModel, PatronVisits.PROPERTYNAME_USER_DEFINED_BOOLEAN1, PatronVisits.class);\n userDefinedTextLabel = new JLabel();\n scrollPane7 = new JScrollPane();\n userDefinedTextArea1 = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_USER_DEFINED_TEXT1));\n CellConstraints cc = new CellConstraints();\n\n //======== this ========\n setLayout(new FormLayout(\n \"default:grow\",\n \"top:default:grow\"));\n\n //======== contentPanel ========\n {\n contentPanel.setBorder(Borders.DLU4_BORDER);\n contentPanel.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n },\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- label_visitDate ----\n label_visitDate.setText(\"Date\");\n ATFieldInfo.assignLabelInfo(label_visitDate, PatronVisits.class, PatronVisits.PROPERTYNAME_VISIT_DATE);\n contentPanel.add(label_visitDate, cc.xy(1, 1));\n\n //---- visitDate ----\n visitDate.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n visitDate.setColumns(10);\n contentPanel.add(visitDate, cc.xy(3, 1));\n\n //---- visitTypeLabel ----\n visitTypeLabel.setText(\"Visit Type\");\n ATFieldInfo.assignLabelInfo(visitTypeLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_VISIT_TYPE);\n contentPanel.add(visitTypeLabel, cc.xy(1, 3));\n contentPanel.add(visitTypeComboBox, cc.xy(3, 3));\n\n //---- label_subject ----\n label_subject.setText(\"Contact\");\n ATFieldInfo.assignLabelInfo(label_subject, PatronVisits.class, PatronVisits.PROPERTYNAME_CONTACT_ARCHIVIST);\n contentPanel.add(label_subject, cc.xy(1, 5));\n\n //---- address1 ----\n address1.setColumns(30);\n contentPanel.add(address1, cc.xy(3, 5));\n\n //---- label_topic ----\n label_topic.setText(\"Topic\");\n ATFieldInfo.assignLabelInfo(label_topic, PatronVisits.class, PatronVisits.PROPERTYNAME_TOPIC);\n contentPanel.add(label_topic, cc.xy(1, 7));\n\n //======== scrollPane1 ========\n {\n\n //---- patronNotes ----\n patronNotes.setRows(4);\n patronNotes.setLineWrap(true);\n patronNotes.setWrapStyleWord(true);\n patronNotes.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n patronNotes.setMinimumSize(new Dimension(200, 16));\n scrollPane1.setViewportView(patronNotes);\n }\n contentPanel.add(scrollPane1, cc.xy(3, 7));\n\n //======== scrollPane5 ========\n {\n scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane5.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane5.setPreferredSize(new Dimension(219, 100));\n\n //---- researchPurposeTable ----\n researchPurposeTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n researchPurposeTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n researchPurposeTableMouseClicked(e);\n }\n });\n scrollPane5.setViewportView(researchPurposeTable);\n }\n contentPanel.add(scrollPane5, cc.xywh(1, 9, 3, 1));\n\n //======== panel12 ========\n {\n panel12.setBackground(new Color(231, 188, 251));\n panel12.setOpaque(false);\n panel12.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel12.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- addResearchPurpose ----\n addResearchPurpose.setText(\"Add Reseach Purpose\");\n addResearchPurpose.setOpaque(false);\n addResearchPurpose.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addResearchPurpose.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addResearchPurposeActionPerformed();\n }\n });\n panel12.add(addResearchPurpose, cc.xy(1, 1));\n\n //---- editResearchPurposeButton ----\n editResearchPurposeButton.setText(\"Edit Research Purpose\");\n editResearchPurposeButton.setOpaque(false);\n editResearchPurposeButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n editResearchPurposeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n editResearchPurposeButtonActionPerformed();\n }\n });\n panel12.add(editResearchPurposeButton, cc.xy(3, 1));\n\n //---- removeResearchPurpose ----\n removeResearchPurpose.setText(\"Remove Reseach Purpose\");\n removeResearchPurpose.setOpaque(false);\n removeResearchPurpose.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeResearchPurpose.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeResearchPurposeActionPerformed();\n }\n });\n panel12.add(removeResearchPurpose, cc.xy(5, 1));\n }\n contentPanel.add(panel12, cc.xywh(1, 11, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- separator5 ----\n separator5.setBackground(new Color(220, 220, 232));\n separator5.setForeground(new Color(147, 131, 86));\n separator5.setMinimumSize(new Dimension(1, 10));\n separator5.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n contentPanel.add(separator5, cc.xywh(1, 13, 3, 1));\n\n //======== tabbedPane1 ========\n {\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- subjectLabel ----\n subjectLabel.setText(\"Subjects\");\n panel1.add(subjectLabel, cc.xy(1, 1));\n\n //======== scrollPane3 ========\n {\n scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane3.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane3.setPreferredSize(new Dimension(219, 100));\n\n //---- subjectsTable ----\n subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n scrollPane3.setViewportView(subjectsTable);\n }\n panel1.add(scrollPane3, cc.xy(1, 3));\n\n //======== panel10 ========\n {\n panel10.setBackground(new Color(231, 188, 251));\n panel10.setOpaque(false);\n panel10.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel10.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- addSubject ----\n addSubject.setText(\"Add Subject\");\n addSubject.setOpaque(false);\n addSubject.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addSubject.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addSubjectActionPerformed();\n }\n });\n panel10.add(addSubject, cc.xy(1, 1));\n\n //---- removeSubject ----\n removeSubject.setText(\"Remove Subject\");\n removeSubject.setOpaque(false);\n removeSubject.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeSubject.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeSubjectActionPerformed();\n }\n });\n panel10.add(removeSubject, cc.xy(3, 1));\n }\n panel1.add(panel10, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- separator1 ----\n separator1.setMinimumSize(new Dimension(1, 10));\n separator1.setForeground(new Color(147, 131, 86));\n panel1.add(separator1, cc.xy(1, 7));\n\n //---- namesLabel ----\n namesLabel.setText(\"Names\");\n panel1.add(namesLabel, cc.xy(1, 9));\n\n //======== scrollPane4 ========\n {\n scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane4.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane4.setPreferredSize(new Dimension(219, 100));\n\n //---- namesTable ----\n namesTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n namesTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n namesTableMouseClicked(e);\n }\n });\n scrollPane4.setViewportView(namesTable);\n }\n panel1.add(scrollPane4, cc.xy(1, 11));\n\n //======== panel11 ========\n {\n panel11.setBackground(new Color(231, 188, 251));\n panel11.setOpaque(false);\n panel11.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel11.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- editNameRelationshipButton ----\n editNameRelationshipButton.setText(\"Edit Name Link\");\n editNameRelationshipButton.setOpaque(false);\n editNameRelationshipButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n editNameRelationshipButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n editNameRelationshipButtonActionPerformed();\n }\n });\n panel11.add(editNameRelationshipButton, cc.xy(1, 1));\n\n //---- addName ----\n addName.setText(\"Add Name\");\n addName.setOpaque(false);\n addName.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addName.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addNameActionPerformed();\n }\n });\n panel11.add(addName, cc.xy(3, 1));\n\n //---- removeName ----\n removeName.setText(\"Remove Name\");\n removeName.setOpaque(false);\n removeName.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeName.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeNameActionPerformed();\n }\n });\n panel11.add(removeName, cc.xy(5, 1));\n }\n panel1.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n }\n tabbedPane1.addTab(\"Subjects and Names\", panel1);\n\n\n //======== panel2 ========\n {\n panel2.setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n }));\n\n //======== scrollPane2 ========\n {\n scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane2.setPreferredSize(new Dimension(219, 100));\n\n //---- resourcesTable ----\n resourcesTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n scrollPane2.setViewportView(resourcesTable);\n }\n panel2.add(scrollPane2, cc.xy(1, 1));\n\n //======== panel3 ========\n {\n panel3.setLayout(new FlowLayout());\n\n //---- addResourceButton ----\n addResourceButton.setText(\"Add Resource\");\n addResourceButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addResourceButtonActionPerformed();\n }\n });\n panel3.add(addResourceButton);\n\n //---- removeResourceButton ----\n removeResourceButton.setText(\"Remove Resource\");\n removeResourceButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeResourceButtonActionPerformed();\n }\n });\n panel3.add(removeResourceButton);\n }\n panel2.add(panel3, cc.xy(1, 3));\n\n //---- resourcesUsedLabel ----\n resourcesUsedLabel.setText(\"Details On Resources Used\");\n ATFieldInfo.assignLabelInfo(resourcesUsedLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_DETAILS_ON_RESOURCES);\n panel2.add(resourcesUsedLabel, cc.xy(1, 5));\n\n //======== scrollPane6 ========\n {\n\n //---- textArea1 ----\n textArea1.setRows(10);\n scrollPane6.setViewportView(textArea1);\n }\n panel2.add(scrollPane6, cc.xy(1, 7));\n }\n tabbedPane1.addTab(\"Resources Used\", panel2);\n\n\n //======== panel4 ========\n {\n panel4.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n },\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n }));\n\n //---- userDefinedStringLabel ----\n userDefinedStringLabel.setText(\"User String\");\n ATFieldInfo.assignLabelInfo(userDefinedStringLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_STRING1);\n panel4.add(userDefinedStringLabel, cc.xy(1, 1));\n panel4.add(userDefinedTextField1, cc.xy(3, 1));\n\n //---- userDefinedBooleanLabel ----\n userDefinedBooleanLabel.setText(\"User Boolean\");\n ATFieldInfo.assignLabelInfo(userDefinedBooleanLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_BOOLEAN1);\n panel4.add(userDefinedBooleanLabel, cc.xy(1, 3));\n\n //---- userDefinedCheckBox1 ----\n userDefinedCheckBox1.setText(\"Option\");\n panel4.add(userDefinedCheckBox1, cc.xy(3, 3));\n\n //---- userDefinedTextLabel ----\n userDefinedTextLabel.setText(\"User Text\");\n ATFieldInfo.assignLabelInfo(userDefinedTextLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_TEXT1);\n panel4.add(userDefinedTextLabel, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));\n\n //======== scrollPane7 ========\n {\n scrollPane7.setViewportView(userDefinedTextArea1);\n }\n panel4.add(scrollPane7, cc.xy(3, 5));\n }\n tabbedPane1.addTab(\"User Defined Fields\", panel4);\n\n }\n contentPanel.add(tabbedPane1, cc.xywh(1, 15, 3, 1));\n }\n add(contentPanel, cc.xy(1, 1));\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}",
"private void initAdminComponents() {\n\t\t\n\t\tcreateUserList();\n\t\tcreateUserListQual();\n\t\t\n\t\tlayeredPaneAdmin = new JLayeredPane();\n\t\tlayeredPaneAdmin.setBackground(new Color(100, 149, 237));\n\t\tlayeredPane.setLayer(layeredPaneAdmin, 0);\n\t\tlayeredPaneAdmin.setBounds(0, 0, 941, 760);\n\t\tlayeredPane.add(layeredPaneAdmin);\n\t\t\n\t\tpnlAdmin = new JPanel();\n\t\tlayeredPaneAdmin.setLayer(pnlAdmin, 0);\n\t\tpnlAdmin.setBounds(0, 0, 947, 760);\n\t\tlayeredPaneAdmin.add(pnlAdmin);\n\t\t\n\t\tlayeredPaneAdminComponents = new JLayeredPane();\n\t\tlayeredPaneAdminComponents.setBounds(0, 0, 937, 760);\n\t\t\n\t\tpnlReportGeneration = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlReportGeneration, 0);\n\t\tpnlReportGeneration.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlReportGeneration);\n\t\tpnlReportGeneration.setLayout(null);\n\t\t\n\t\tscrlPaneProjects = new JScrollPane();\n\t\tscrlPaneProjects.setBounds(378, 73, 160, 170);\n\t\tpnlReportGeneration.add(scrlPaneProjects);\n\t\t\n\t\tlistProjectsGeneratable = new JList(projectsList);\n\t\tlistProjectsGeneratable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneProjects.setViewportView(listProjectsGeneratable);\n\t\t\n\t\tJLabel lblSelectProjectTo = new JLabel(\"Select project to generate report:\");\n\t\tlblSelectProjectTo.setBounds(68, 75, 169, 14);\n\t\tpnlReportGeneration.add(lblSelectProjectTo);\n\t\t\n\t\tbtnCancelReport = new JButton(\"Cancel\");\n\t\tbtnCancelReport.setBounds(628, 647, 83, 23);\n\t\tpnlReportGeneration.add(btnCancelReport);\n\t\t\n\t\tbtnCreateReport = new JButton(\"Create Report\");\n\t\tbtnCreateReport.setBounds(482, 647, 109, 23);\n\t\tpnlReportGeneration.add(btnCreateReport);\n\t\t\n\t\tJLabel lblEnterPathFor = new JLabel(\"Enter path for reports to go to:\");\n\t\tlblEnterPathFor.setBounds(68, 272, 160, 14);\n\t\tpnlReportGeneration.add(lblEnterPathFor);\n\t\t\n\t\ttxtReportPath = new JTextField();\n\t\ttxtReportPath.setBounds(380, 269, 267, 20);\n\t\tpnlReportGeneration.add(txtReportPath);\n\t\ttxtReportPath.setColumns(10);\n\t\t\n\t\tPanel pnlUsers = new Panel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlUsers, 0);\n\t\tpnlUsers.setEnabled(false);\n\t\tpnlUsers.setBounds(0, 0, 157, 28);\n\t\tlayeredPaneAdminComponents.add(pnlUsers);\n\t\tpnlUsers.setBackground(Color.LIGHT_GRAY);\n\t\tpnlUsers.setLayout(null);\n\t\t\n\t\tJLabel lblUsers = DefaultComponentFactory.getInstance().createLabel(\"USERS\");\n\t\tlblUsers.setBounds(58, 5, 40, 16);\n\t\tlblUsers.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\n\t\tpnlUsers.add(lblUsers);\n\t\t\n\t\tpnlCreateQualification = new JPanel();\n\t\tpnlCreateQualification.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlCreateQualification);\n\t\tpnlCreateQualification.setVisible(false);\n\t\t\n\t\tJLabel lblCreateQualification = new JLabel(\"Create New Qualification\");\n\t\tlblCreateQualification.setBounds(246, 11, 262, 51);\n\t\tlblCreateQualification.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tlblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setBounds(111, 131, 56, 20);\n\t\tlblTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblDescription = new JLabel(\"Description:\");\n\t\tlblDescription.setBounds(61, 193, 120, 14);\n\t\tlblDescription.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblAssignToUsers = new JLabel(\"Assign to Users\");\n\t\tlblAssignToUsers.setBounds(247, 298, 147, 14);\n\t\tlblAssignToUsers.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblAvailable_1 = new JLabel(\"Available\");\n\t\tlblAvailable_1.setBounds(121, 314, 60, 14);\n\t\tlblAvailable_1.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\tJLabel lblAssigned_1 = new JLabel(\"Assigned\");\n\t\tlblAssigned_1.setBounds(462, 314, 67, 14);\n\t\tlblAssigned_1.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\ttxtNewQualificationName = new JTextField();\n\t\ttxtNewQualificationName.setBounds(240, 133, 154, 20);\n\t\ttxtNewQualificationName.setColumns(10);\n\t\t\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\n\t\tscrollPane_1.setBounds(240, 194, 387, 79);\n\t\t\n\t\ttxtNewQualificationDesc = new JTextArea();\n\t\tscrollPane_1.setViewportView(txtNewQualificationDesc);\n\t\t\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tscrollPane_2.setBounds(80, 339, 154, 287);\n\t\tlistCreateQualAvailUsers = new JList(userListAvailQual);\n\t\tscrollPane_2.setViewportView(listCreateQualAvailUsers);\n\t\t\n\t\tJScrollPane scrollPane_3 = new JScrollPane();\n\t\tscrollPane_3.setBounds(406, 339, 154, 287);\n\t\t\n\t\tlistCreateQualAssignedUsers = new JList(userListAssignQual);\n\t\tscrollPane_3.setViewportView(listCreateQualAssignedUsers);\n\t\t\n\t\tbtnAssignUserQual = new JButton(\"->\");\n\t\tbtnAssignUserQual.setBounds(271, 445, 89, 23);\n\t\t\n\t\tbtnAssignUserQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnUnassignUserQual = new JButton(\"<-\");\n\t\tbtnUnassignUserQual.setBounds(271, 519, 89, 23);\n\t\t\t\t\n\t\tbtnUnassignUserQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnCreateQual = new JButton(\"CREATE\");\n\t\tbtnCreateQual.setBounds(271, 668, 123, 41);\n\t\t\t\t\t\t\n\t\tbtnCreateQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnCancelAddQualifcation = new JButton(\"Cancel\");\n\t\tbtnCancelAddQualifcation.setBounds(400, 668, 100, 30);\n\n\t\tbtnCancelAddQualifcation.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tpnlCreateQualification.setLayout(null);\n\t\tpnlCreateQualification.add(lblCreateQualification);\n\t\tpnlCreateQualification.add(lblTitle);\n\t\tpnlCreateQualification.add(txtNewQualificationName);\n\t\tpnlCreateQualification.add(lblDescription);\n\t\tpnlCreateQualification.add(scrollPane_1);\n\t\tpnlCreateQualification.add(lblAssignToUsers);\n\t\tpnlCreateQualification.add(lblAvailable_1);\n\t\tpnlCreateQualification.add(lblAssigned_1);\n\t\tpnlCreateQualification.add(scrollPane_2);\n\t\tpnlCreateQualification.add(btnAssignUserQual);\n\t\tpnlCreateQualification.add(btnUnassignUserQual);\n\t\tpnlCreateQualification.add(scrollPane_3);\n\t\tpnlCreateQualification.add(btnCreateQual);\n\t\tpnlCreateQualification.add(btnCancelAddQualifcation);\n\t\t\n\t\tpnlCreateUser = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlCreateUser, 0);\n\t\tpnlCreateUser.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlCreateUser);\n\t\tpnlCreateUser.setVisible(false);\n\t\tpnlCreateUser.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tpnlCreateUser.setBorder(new SoftBevelBorder(BevelBorder.RAISED, new Color(220, 20, 60), null, null, null));\n\t\t\n\t\tlblEnterUserInfo = new JLabel(\"Enter User Info\");\n\t\tlblEnterUserInfo.setBounds(314, 21, 155, 25);\n\t\tlblEnterUserInfo.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tlblFirstName_1 = new JLabel(\"First Name:\");\n\t\tlblFirstName_1.setBounds(116, 64, 79, 17);\n\t\tlblFirstName_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tbtnCreateUser = new JButton(\"Create User\");\n\t\tbtnCreateUser.setBounds(144, 496, 200, 29);\n\t\t\n\t\tbtnCreateUser.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\trdbtnAdmin = new JRadioButton(\"Admin\");\n\t\trdbtnAdmin.setBounds(228, 437, 61, 23);\n\t\tbuttonGroup.add(rdbtnAdmin);\n\t\trdbtnAdmin.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\trdbtnManager = new JRadioButton(\"Manager\");\n\t\trdbtnManager.setBounds(314, 437, 75, 23);\n\t\tbuttonGroup.add(rdbtnManager);\n\t\trdbtnManager.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\trdbtnWorker = new JRadioButton(\"Worker\");\n\t\trdbtnWorker.setBounds(420, 437, 67, 23);\n\t\tbuttonGroup.add(rdbtnWorker);\n\t\trdbtnWorker.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\ttxtCreateFirstName = new JTextField();\n\t\ttxtCreateFirstName.setBounds(257, 64, 291, 20);\n\t\ttxtCreateFirstName.setColumns(10);\n\t\t\n\t\ttxtCreateLastName = new JTextField();\n\t\ttxtCreateLastName.setBounds(257, 126, 291, 20);\n\t\ttxtCreateLastName.setColumns(10);\n\t\t\n\t\ttxtCreateUsername = new JTextField();\n\t\ttxtCreateUsername.setBounds(257, 179, 291, 20);\n\t\ttxtCreateUsername.setColumns(10);\n\t\t\n\t\ttxtCreateEmailAddress = new JTextField();\n\t\ttxtCreateEmailAddress.setBounds(257, 235, 291, 20);\n\t\ttxtCreateEmailAddress.setColumns(10);\n\t\t\n\t\ttxtCreatePhoneNumber = new JTextField();\n\t\ttxtCreatePhoneNumber.setBounds(257, 292, 291, 20);\n\t\ttxtCreatePhoneNumber.setColumns(10);\n\t\t\n\t\ttxtCreatePassword = new JPasswordField();\n\t\ttxtCreatePassword.setBounds(257, 348, 292, 22);\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.setBounds(401, 493, 133, 35);\n\t\t\t\t\t\t\t\t\n\t\tbtnCancel.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblLastName_1 = new JLabel(\"Last Name:\");\n\t\tlblLastName_1.setBounds(117, 129, 78, 17);\n\t\tlblLastName_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblUsername_1 = new JLabel(\"Username:\");\n\t\tlblUsername_1.setBounds(121, 182, 74, 17);\n\t\tlblUsername_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblEmailAddress_1 = new JLabel(\"Email Address:\");\n\t\tlblEmailAddress_1.setBounds(94, 238, 101, 17);\n\t\tlblEmailAddress_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPhoneNumber_1 = new JLabel(\"Phone Number\");\n\t\tlblPhoneNumber_1.setBounds(91, 295, 104, 17);\n\t\tlblPhoneNumber_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setBounds(123, 349, 72, 17);\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tlblUserType = new JLabel(\"User Type:\");\n\t\tlblUserType.setBounds(121, 438, 74, 17);\n\t\tlblUserType.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tpnlCreateUser.setLayout(null);\n\t\tpnlCreateUser.add(lblEnterUserInfo);\n\t\tpnlCreateUser.add(lblFirstName_1);\n\t\tpnlCreateUser.add(txtCreateFirstName);\n\t\tpnlCreateUser.add(lblLastName_1);\n\t\tpnlCreateUser.add(txtCreateLastName);\n\t\tpnlCreateUser.add(lblUsername_1);\n\t\tpnlCreateUser.add(txtCreateUsername);\n\t\tpnlCreateUser.add(lblEmailAddress_1);\n\t\tpnlCreateUser.add(txtCreateEmailAddress);\n\t\tpnlCreateUser.add(lblPhoneNumber_1);\n\t\tpnlCreateUser.add(txtCreatePhoneNumber);\n\t\tpnlCreateUser.add(lblPassword);\n\t\tpnlCreateUser.add(txtCreatePassword);\n\t\tpnlCreateUser.add(lblUserType);\n\t\tpnlCreateUser.add(rdbtnAdmin);\n\t\tpnlCreateUser.add(rdbtnManager);\n\t\tpnlCreateUser.add(rdbtnWorker);\n\t\tpnlCreateUser.add(btnCreateUser);\n\t\tpnlCreateUser.add(btnCancel);\n\t\t//create task end\t\n\t\t//edit user info start\t\t\t\t\n\t\tpnlUserEditInfo = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 0);\n\t\tpnlUserEditInfo.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlUserEditInfo);\n\t\tpnlUserEditInfo.setBorder(new TitledBorder(null, \"User Edit/Info\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tJLabel lblFullName = new JLabel(\"Full Name\");\n\t\tlblFullName.setBounds(264, 16, 127, 45);\n\t\tlblFullName.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tJLabel lblFirstName = new JLabel(\"First Name:\");\n\t\tlblFirstName.setBounds(85, 89, 79, 17);\n\t\tlblFirstName.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\ttextFirstName = new JTextField();\n\t\ttextFirstName.setBounds(214, 91, 330, 20);\n\t\ttextFirstName.setColumns(10);\n\t\ttextLastName = new JTextField();\n\t\ttextLastName.setBounds(214, 134, 330, 20);\n\t\ttextLastName.setColumns(10);\n\t\ttextUsername = new JTextField();\n\t\ttextUsername.setBounds(214, 179, 330, 20);\n\t\ttextUsername.setColumns(10);\n\t\ttextEmail = new JTextField();\n\t\ttextEmail.setBounds(214, 229, 330, 20);\n\t\ttextEmail.setColumns(10);\n\t\ttextPhone = new JTextField();\n\t\ttextPhone.setBounds(214, 283, 330, 20);\n\t\ttextPhone.setColumns(10);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setBounds(22, 376, 699, 2);\n\t\tseparator.setBackground(Color.BLACK);\n\t\tseparator.setForeground(Color.BLACK);\n\t\tJScrollPane scrlPaneAssignedQuals = new JScrollPane();\n\t\tscrlPaneAssignedQuals.setBounds(275, 438, 174, 271);\n\t\t\n\t\tunassignQual = new JButton(\"<-\");\n\t\tunassignQual.setBounds(206, 581, 64, 29);\n\t\t\n\t\tunassignQual.setToolTipText(\"Click to remove assigned Qualifications\");\n\t\tunassignQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tassignQual = new JButton(\"->\");\n\t\tassignQual.setBounds(206, 523, 64, 29);\n\t\t\n\t\tassignQual.setToolTipText(\"Click to move selected Qualifications to Assigned\");\n\t\tassignQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\t\n\t\t\n\t\tlistAssignedQuals = new JList(assignedQualList);\n\t\tscrlPaneAssignedQuals.setViewportView(listAssignedQuals);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tJLabel lblLastName = new JLabel(\"Last Name:\");\n\t\tlblLastName.setBounds(86, 134, 78, 17);\n\t\tlblLastName.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tlblUsername.setBounds(90, 182, 74, 17);\n\t\tlblUsername.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblEmailAddress = new JLabel(\"Email Address:\");\n\t\tlblEmailAddress.setBounds(63, 232, 101, 17);\n\t\tlblEmailAddress.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPhoneNumber = new JLabel(\"Phone Number:\");\n\t\tlblPhoneNumber.setBounds(55, 286, 109, 17);\n\t\tlblPhoneNumber.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblAvailable = new JLabel(\"Available\");\n\t\tlblAvailable.setBounds(67, 410, 60, 17);\n\t\tlblAvailable.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tJLabel lblAssigned = new JLabel(\"Assigned\");\n\t\tlblAssigned.setBounds(318, 410, 86, 17);\n\t\tlblAssigned.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tbtnChangePassword = new JButton(\"Change Password\");\n\t\tbtnChangePassword.setBounds(328, 331, 142, 34);\n\t\t\n\t\tbtnSaveChanges = new JButton(\"Save Changes\");\n\t\tbtnSaveChanges.setBounds(164, 331, 127, 34);\n\t\t\n\t\tbtnSaveChanges.setToolTipText(\"Save Changes to Database\");\n\t\t\n\t\tJScrollPane scrlPaneAvailableQuals = new JScrollPane();\n\t\tscrlPaneAvailableQuals.setBounds(22, 438, 174, 271);\n\t\t\n\t\tlistAvailableQuals = new JList(availableQualList);\n\t\tscrlPaneAvailableQuals.setViewportView(listAvailableQuals);\n\t\t\n\t\tpnlDeleteUser = new JPanel();\n\t\tpnlDeleteUser.setBounds(531, 620, 166, 89);\n\t\tpnlDeleteUser.setBorder(new TitledBorder(null, \"WARNING AREA\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpnlDeleteUser.setBackground(new Color(245, 222, 179));\n\t\tpnlDeleteUser.setLayout(null);\n\t\t\n\t\tbtnDeleteUser = new JButton(\"ARCHIVE USER\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tbtnDeleteUser.setFont(new Font(\"Tahoma\", Font.BOLD, 10));\n\t\tbtnDeleteUser.setBounds(17, 27, 140, 39);\n\t\tpnlDeleteUser.add(btnDeleteUser);\n\t\t\n\t\tJLabel lblUserType_1 = new JLabel(\"User Type\");\n\t\tlblUserType_1.setBounds(562, 89, 82, 20);\n\t\tlblUserType_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\trdbtnAdminDetails = new JRadioButton(\"Admin\");\n\t\trdbtnAdminDetails.setBounds(562, 129, 109, 23);\n\t\tbuttonGroup_1.add(rdbtnAdminDetails);\n\t\t\n\t\trdbtnManagerDetails = new JRadioButton(\"Manager\");\n\t\trdbtnManagerDetails.setBounds(562, 170, 120, 23);\n\t\tbuttonGroup_1.add(rdbtnManagerDetails);\n\t\t\n\t\trdbtnWorkerDetails = new JRadioButton(\"Worker\");\n\t\trdbtnWorkerDetails.setBounds(562, 211, 120, 23);\n\t\tbuttonGroup_1.add(rdbtnWorkerDetails);\n\t\tpnlUserEditInfo.setLayout(null);\n\t\tpnlUserEditInfo.add(lblFullName);\n\t\tpnlUserEditInfo.add(lblPhoneNumber);\n\t\tpnlUserEditInfo.add(textPhone);\n\t\tpnlUserEditInfo.add(btnSaveChanges);\n\t\tpnlUserEditInfo.add(btnChangePassword);\n\t\tpnlUserEditInfo.add(separator);\n\t\tpnlUserEditInfo.add(lblAvailable);\n\t\tpnlUserEditInfo.add(lblAssigned);\n\t\tpnlUserEditInfo.add(scrlPaneAvailableQuals);\n\t\tpnlUserEditInfo.add(assignQual);\n\t\tpnlUserEditInfo.add(unassignQual);\n\t\tpnlUserEditInfo.add(scrlPaneAssignedQuals);\n\t\tpnlUserEditInfo.add(pnlDeleteUser);\n\t\tpnlUserEditInfo.add(lblFirstName);\n\t\tpnlUserEditInfo.add(textFirstName);\n\t\tpnlUserEditInfo.add(lblLastName);\n\t\tpnlUserEditInfo.add(textLastName);\n\t\tpnlUserEditInfo.add(lblUsername);\n\t\tpnlUserEditInfo.add(textUsername);\n\t\tpnlUserEditInfo.add(lblEmailAddress);\n\t\tpnlUserEditInfo.add(textEmail);\n\t\tpnlUserEditInfo.add(rdbtnWorkerDetails);\n\t\tpnlUserEditInfo.add(rdbtnManagerDetails);\n\t\tpnlUserEditInfo.add(rdbtnAdminDetails);\n\t\tpnlUserEditInfo.add(lblUserType_1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tpnlViewTickets = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlViewTickets, 0);\n\t\tpnlViewTickets.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlViewTickets);\n\t\tpnlViewTickets.setVisible(false);\n\t\t\n\t\tpnlOpenTicketsLbl = new JPanel();\n\t\tpnlOpenTicketsLbl.setBounds(0, 0, 746, 26);\n\t\tpnlOpenTicketsLbl.setBackground(UIManager.getColor(\"Button.shadow\"));\n\t\tpnlOpenTicketsLbl.setLayout(null);\n\t\t\n\t\tlblOpenTickets = new JLabel(\"Open Tickets\");\n\t\tlblOpenTickets.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblOpenTickets.setBounds(312, 0, 189, 15);\n\t\tpnlOpenTicketsLbl.add(lblOpenTickets);\n\t\t\n\t\tpnlClosedTicketsLbl = new JPanel();\n\t\tpnlClosedTicketsLbl.setBounds(0, 329, 746, 26);\n\t\tpnlClosedTicketsLbl.setBackground(SystemColor.controlShadow);\n\t\tpnlClosedTicketsLbl.setLayout(null);\n\t\t\n\t\tlblClosedTickets = new JLabel(\"Closed Tickets\");\n\t\tlblClosedTickets.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblClosedTickets.setBounds(302, 0, 189, 26);\n\t\tpnlClosedTicketsLbl.add(lblClosedTickets);\n\t\t\n\t\tscrlOpenTickets = new JScrollPane();\n\t\tscrlOpenTickets.setBounds(0, 22, 746, 307);\n\t\t\n\t\tscrlClosedTickets = new JScrollPane();\n\t\tscrlClosedTickets.setBounds(0, 354, 746, 366);\n\t\t\n\t\tlistClosedTickets = new JList(closedTickets);\n\t\tlistClosedTickets.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlClosedTickets.setViewportView(listClosedTickets);\n\t\tpnlViewTickets.setLayout(null);\n\t\t\n\t\tlistOpenTickets = new JList(openTickets);\n\t\tlistOpenTickets.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlOpenTickets.setViewportView(listOpenTickets);\n\t\tpnlViewTickets.add(scrlOpenTickets);\n\t\tpnlViewTickets.add(pnlOpenTicketsLbl);\n\t\tpnlViewTickets.add(pnlClosedTicketsLbl);\n\t\tpnlViewTickets.add(scrlClosedTickets);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(0, 23, 157, 314);\n\t\tlayeredPaneAdminComponents.add(scrollPane);\n\t\tlistUsers = new JList(userList);\n\t\t\n\t\tscrollPane.setViewportView(listUsers);\n\t\tlistUsers.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tlistUsers.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlistUsers.setLayoutOrientation(JList.VERTICAL);\n\t\tlistUsers.setVisibleRowCount(1);\n\t\t\n\t\tbtn_create_new_user = new JButton(\"Create New User\");\n\t\tbtn_create_new_user.setBounds(177, 0, 130, 28);\n\t\tlayeredPaneAdminComponents.add(btn_create_new_user);\n\t\tbtn_add_qualifications = new JButton(\"Add Qualifications\");\n\t\tbtn_add_qualifications.setBounds(678, 0, 150, 28);\n\t\tlayeredPaneAdminComponents.add(btn_add_qualifications);\n\t\t\n\t\tbtnViewTickets = new JButton(\"Ticket Viewer\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tbtnViewTickets.setBounds(328, 0, 139, 28);\n\t\tlayeredPaneAdminComponents.add(btnViewTickets);\n\t\t\n\t\tpnlTicketDetails = new JPanel();\n\t\tpnlTicketDetails.setBorder(new TitledBorder(null, \"Ticket Details\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tlayeredPaneAdminComponents.setLayer(pnlTicketDetails, 10);\n\t\tpnlTicketDetails.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlTicketDetails);\n\t\tpnlTicketDetails.setLayout(null);\n\t\tpnlTicketDetails.setVisible(false);\n\t\tpnlAdmin.setLayout(null);\n\t\t\n\t\tJLabel lblTicketDetails = new JLabel(\"Ticket Details\");\n\t\tlblTicketDetails.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tlblTicketDetails.setBounds(265, 11, 155, 65);\n\t\tpnlTicketDetails.add(lblTicketDetails);\n\t\t\n\t\tJLabel lblTitle_2 = new JLabel(\"Title:\");\n\t\tlblTitle_2.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblTitle_2.setBounds(69, 78, 121, 14);\n\t\tpnlTicketDetails.add(lblTitle_2);\n\t\t\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblMessage.setBounds(69, 103, 121, 32);\n\t\tpnlTicketDetails.add(lblMessage);\n\t\t\n\t\tJLabel lblSubmittedBy = new JLabel(\"Submitted By:\");\n\t\tlblSubmittedBy.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblSubmittedBy.setBounds(69, 213, 155, 26);\n\t\tpnlTicketDetails.add(lblSubmittedBy);\n\t\t\n\t\tJLabel lblDateSubmitted = new JLabel(\"Date Submitted:\");\n\t\tlblDateSubmitted.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblDateSubmitted.setBounds(69, 274, 142, 14);\n\t\tpnlTicketDetails.add(lblDateSubmitted);\n\t\t\n\t\tlblDone = new JLabel(\"Done?\");\n\t\tlblDone.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblDone.setBounds(297, 421, 87, 46);\n\t\tpnlTicketDetails.add(lblDone);\n\t\t\n\t\trdbtnTicketDoneYes = new JRadioButton(\"Yes\");\n\t\tbuttonGroup_2.add(rdbtnTicketDoneYes);\n\t\trdbtnTicketDoneYes.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\trdbtnTicketDoneYes.setBounds(224, 474, 109, 23);\n\t\tpnlTicketDetails.add(rdbtnTicketDoneYes);\n\t\t\n\t\trdbtnTicketDoneNo = new JRadioButton(\"No\");\n\t\tbuttonGroup_2.add(rdbtnTicketDoneNo);\n\t\trdbtnTicketDoneNo.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\trdbtnTicketDoneNo.setBounds(369, 474, 109, 23);\n\t\tpnlTicketDetails.add(rdbtnTicketDoneNo);\n\t\t\n\t\tlblTicketDetailsTitle = new JLabel(\"\");\n\t\tlblTicketDetailsTitle.setBounds(200, 80, 487, 23);\n\t\tpnlTicketDetails.add(lblTicketDetailsTitle);\n\t\t\n\t\tbtnTicketDetailsClose = new JButton(\"Close\");\n\t\t\n\t\tbtnTicketDetailsClose.setBounds(647, 11, 89, 23);\n\t\tpnlTicketDetails.add(btnTicketDetailsClose);\n\t\t\n\t\tlblTicketDetailsMessage = new JLabel(\" \");\n\t\tlblTicketDetailsMessage.setBounds(200, 114, 503, 88);\n\t\tpnlTicketDetails.add(lblTicketDetailsMessage);\n\t\t\n\t\tlblTicketDetailsSubmittedBy = new JLabel(\"\");\n\t\tlblTicketDetailsSubmittedBy.setBounds(200, 221, 503, 18);\n\t\tpnlTicketDetails.add(lblTicketDetailsSubmittedBy);\n\t\t\n\t\tlblTicketDetailsDate = new JLabel(\"\");\n\t\tlblTicketDetailsDate.setBounds(221, 276, 354, 26);\n\t\tpnlTicketDetails.add(lblTicketDetailsDate);\n\t\t\n\t\tbtnTicketDoneSave = new JButton(\"Save\");\n\t\t\n\t\tbtnTicketDoneSave.setBounds(280, 520, 89, 23);\n\t\tpnlTicketDetails.add(btnTicketDoneSave);\n\t\t\n\t\tpnlArchivedUsers = new JPanel();\n\t\tpnlArchivedUsers.setBackground(Color.LIGHT_GRAY);\n\t\tpnlArchivedUsers.setBounds(0, 337, 157, 28);\n\t\tlayeredPaneAdminComponents.add(pnlArchivedUsers);\n\t\tpnlArchivedUsers.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_6 = new JLabel(\"ARCHIVED USERS\");\n\t\tlblNewLabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel_6.setBounds(24, 5, 107, 20);\n\t\tpnlArchivedUsers.add(lblNewLabel_6);\n\t\t\n\t\tJScrollPane scrollPane_5 = new JScrollPane();\n\t\tscrollPane_5.setBounds(0, 365, 157, 393);\n\t\tlayeredPaneAdminComponents.add(scrollPane_5);\n\t\t\n\t\tlistArchivedUsers = new JList(archivedUserList);\n\t\tlistArchivedUsers.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tscrollPane_5.setViewportView(listArchivedUsers);\n\t\tpnlAdmin.add(layeredPaneAdminComponents);\n\t\t\n\t\tbtnReportGenerator = new JButton(\"Generate Report\");\n\t\tbtnReportGenerator.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnReportGenerator.setBounds(477, 0, 172, 28);\n\t\tlayeredPaneAdminComponents.add(btnReportGenerator);\n\t}",
"public void addComponentsToPanel() {\n\t\tpanel.add(backBtn);\n\t\tpanel.add(forgotPassword);\n\t\tpanel.add(txtPass);\n\t\tpanel.add(txtSendEmail);\n\t\tpanel.add(remindMeBtn);\n\n\t\tpanel.add(backgroundLabel);\n\t}",
"public ControlPanel() {\n\t\tpanelName = null;\n\t}",
"public ContactPanel() {\n initComponents();\n }",
"private ApplyPanel(EditablePanel mainPanel) {\r\n this.mainPanel = mainPanel;\r\n masterLayout();\r\n }",
"private void createRolodexComponent() {\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n\r\n pnlMain = new JPanel();\r\n pnlControl = new JPanel();\r\n if(functionType!='N') // bijosh. For rolodex references details buttons not required\r\n {\r\n btnOK = new JButton();\r\n btnOK.setFont(fontFactory.getLabelFont());\r\n btnCancel = new JButton();\r\n btnCancel.setFont(fontFactory.getLabelFont());\r\n }\r\n \r\n //Moved for case#3341 - Sponsor Validation and UI realigmnent - Start\r\n //Comments Text\r\n txtComments = new JTextArea(6,60);\r\n txtComments.setDocument(new LimitedPlainDocument(300));\r\n txtComments.setFont(fontFactory.getNormalFont());\r\n txtComments.setLineWrap(true);\r\n txtComments.setWrapStyleWord(true); \r\n txtComments.setTabSize(2);\r\n txtComments.setWrapStyleWord(true);\r\n txtComments.setLineWrap(true);\r\n txtComments.addKeyListener(new CoeusTextListener());\r\n txtComments.setFocusable(true);\r\n scrlPnComments = new JScrollPane(); \r\n //coeusqa-1528 start\r\n Dimension commentsDimension = new Dimension(652, 100);\r\n scrlPnComments.setMinimumSize(commentsDimension);\r\n scrlPnComments.setPreferredSize(commentsDimension);\r\n scrlPnComments.setViewportView(txtComments);\r\n //coeusqa-1528 end\r\n scrlPnComments.setBackground(java.awt.Color.white);\r\n scrlPnComments.setForeground(java.awt.Color.white); \r\n //Moved for case#3341 - Sponsor Validation and UI realigmnent - End\r\n \r\n pnlRolodexDetails = new JPanel();\r\n pnlMain.setLayout(new BorderLayout(10,10));\r\n GridBagConstraints gridBagConstraints1;\r\n pnlControl.setLayout(new GridBagLayout());\r\n GridBagConstraints gridBagConstraints2;\r\n //For Rolodex references\r\n if (functionType != 'N' ) \r\n {\r\n btnOK.setText(\"OK\");\r\n gridBagConstraints2 = new GridBagConstraints();\r\n gridBagConstraints2.gridx = 0;\r\n gridBagConstraints2.gridy = 0;\r\n gridBagConstraints2.ipadx = 28;\r\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\r\n gridBagConstraints2.insets = new Insets(0, 0, 5, 0);\r\n pnlControl.add(btnOK, gridBagConstraints2);\r\n\r\n btnOK.setMnemonic('O');\r\n btnOK.addActionListener( this );\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addActionListener( this );\r\n\r\n btnCancel.setMnemonic('C');\r\n\r\n gridBagConstraints2 = new GridBagConstraints();\r\n gridBagConstraints2.gridx = 0;\r\n gridBagConstraints2.gridy = 1;\r\n gridBagConstraints2.ipadx = 8;\r\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\r\n //gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST;\r\n gridBagConstraints2.insets = new Insets(0, 0, 15, 0);\r\n pnlControl.add(btnCancel, gridBagConstraints2); \r\n btnSponsor = new JButton();\r\n btnSponsor.setFont(fontFactory.getLabelFont());\r\n btnSponsor.setText(\"Sponsor\"); \r\n gridBagConstraints2 = new GridBagConstraints();\r\n gridBagConstraints2.gridx = 0;\r\n gridBagConstraints2.gridy = 2;\r\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\r\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlControl.add(btnSponsor, gridBagConstraints2);\r\n btnSponsor.addActionListener( this );\r\n btnSponsor.setMnemonic('S');\r\n btnSponsor.setNextFocusableComponent(txtLastName); \r\n JPanel pnlControls = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n pnlControls.add(pnlControl);\r\n pnlMain.add(pnlControls,BorderLayout.EAST);\r\n }\r\n gridBagConstraints1 = new GridBagConstraints();\r\n gridBagConstraints1.gridx = 1;\r\n gridBagConstraints1.gridy = 0;\r\n gridBagConstraints1.ipadx = 2;\r\n gridBagConstraints1.ipady = 30;\r\n gridBagConstraints1.insets = new Insets(0, 7, 7, 1);\r\n gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTH;\r\n \r\n pnlRolodexDetails.setLayout(new GridBagLayout());\r\n GridBagConstraints gridBagConstraints3;\r\n if(functionType!='N') { // bijosh. For rolodex details\r\n pnlRolodexDetails.setBorder(new BevelBorder(BevelBorder.LOWERED));\r\n }\r\n\r\n //Moved for case#3341 - Sponsor Validation and UI realigmnent - Start\r\n //Row 1 - Start\r\n //This row contains the following components in order\r\n //RolodexID (label, text), LastUpdate(label, text), UpdateUser (label, text)\r\n //Roloedex ID Label\r\n lblRolodexID = new JLabel();\r\n lblRolodexID.setFont(fontFactory.getLabelFont());\r\n lblRolodexID.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblRolodexID.setText(\"Rolodex Id: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 0;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblRolodexID, gridBagConstraints3);\r\n \r\n //Rolodex ID Text\r\n txtRolodexId = new CoeusTextField();\r\n txtRolodexId.setDocument(new JTextFieldFilter(JTextFieldFilter.NUMERIC,8)); \r\n txtRolodexId.setFont(fontFactory.getNormalFont());\r\n txtRolodexId.setName(\"txtRolodexId\");\r\n txtRolodexId.setNextFocusableComponent(txtLastUpdate);\r\n txtRolodexId.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 0;\r\n //gridBagConstraints3.ipadx = 60;\r\n txtRolodexId.setPreferredSize(new Dimension(60,20));\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtRolodexId, gridBagConstraints3);\r\n \r\n //Last Update Label\r\n lblLastUpdate = new JLabel();\r\n lblLastUpdate.setFont(fontFactory.getLabelFont());\r\n lblLastUpdate.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblLastUpdate.setText(\"Last Update: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 2;\r\n gridBagConstraints3.gridy = 0;\r\n gridBagConstraints3.gridwidth = 1;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST; \r\n pnlRolodexDetails.add(lblLastUpdate, gridBagConstraints3);\r\n \r\n //Last Update Text\r\n txtLastUpdate = new CoeusTextField();\r\n txtLastUpdate.setFont(fontFactory.getNormalFont());\r\n txtLastUpdate.setName(\"txtLastUpdate\");\r\n txtLastUpdate.setPreferredSize(new Dimension(160,20));\r\n txtLastUpdate.setNextFocusableComponent(txtUpdateUser);\r\n txtLastUpdate.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 3;\r\n gridBagConstraints3.gridy = 0;\r\n gridBagConstraints3.gridwidth = 1;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtLastUpdate, gridBagConstraints3);\r\n \r\n //Last UpdateUser Label\r\n lblUpdateUser = new JLabel();\r\n lblUpdateUser.setFont(fontFactory.getLabelFont());\r\n lblUpdateUser.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblUpdateUser.setText(\"Updated By: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 0;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblUpdateUser, gridBagConstraints3);\r\n\r\n //Last UpdateUser Text\r\n txtUpdateUser = new CoeusTextField();\r\n txtUpdateUser.setFont(fontFactory.getNormalFont());\r\n // Bug fix for case #1839 start 13\r\n /* UserId to UserName Enhancement - Start\r\n * The following line is commented to avoid the fixed size of the username display field\r\n */ \r\n //txtUpdateUser.setDocument(new LimitedPlainDocument(20));\r\n //UserId to UserName Enhancement - End\r\n txtUpdateUser.setMinimumSize(new Dimension(160, 20));\r\n txtUpdateUser.setMaximumSize(new Dimension(160, 20));\r\n txtUpdateUser.setPreferredSize(new Dimension(160, 20));\r\n // Bug fix for case #1839 end 13 \r\n txtUpdateUser.setName(\"txtUpdateUser\");\r\n txtUpdateUser.setNextFocusableComponent(txtLastName);\r\n txtUpdateUser.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 0;\r\n// gridBagConstraints3.ipadx = 50;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtUpdateUser, gridBagConstraints3);\r\n //Row 1 - End\r\n \r\n //Row 2 - Start\r\n //This row contains the following components in order\r\n //LastName (label), FirstName(label), MiddleName(label) \r\n //Last Name Label\r\n lblLastName = new JLabel();\r\n lblLastName.setFont(fontFactory.getLabelFont());\r\n lblLastName.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n lblLastName.setText(\"Last:\"); \r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 1;\r\n gridBagConstraints3.gridwidth = 1;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(lblLastName, gridBagConstraints3);\r\n \r\n //First Name label\r\n lblFirstName = new JLabel();\r\n lblFirstName.setFont(fontFactory.getLabelFont());\r\n lblFirstName.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n lblFirstName.setText(\"First:\");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 3;\r\n gridBagConstraints3.gridy = 1;\r\n gridBagConstraints3.gridwidth = 2;\r\n //gridBagConstraints3.ipadx = 42;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(lblFirstName, gridBagConstraints3);\r\n \r\n //Middle Name Label\r\n lblMiddleName = new JLabel();\r\n lblMiddleName.setFont(fontFactory.getLabelFont());\r\n lblMiddleName.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n lblMiddleName.setText(\"Middle:\");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 1;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(lblMiddleName, gridBagConstraints3);\r\n //Row 2 - End\r\n \r\n //Row 3 - Start\r\n //This row contains the following components in order\r\n //Name (label), LastName(text), FirstName(text) MiddleName(text) \r\n //Name Label \r\n lblName = new JLabel();\r\n lblName.setFont(fontFactory.getLabelFont());\r\n // Bug fix for case #1839 end 0 \r\n lblName.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblName.setText(\"Name: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 2;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblName, gridBagConstraints3);\r\n \r\n //Last Name Text\r\n txtLastName = new CoeusTextField();\r\n txtLastName.setDocument(new LimitedPlainDocument(20));\r\n txtLastName.setFont(fontFactory.getNormalFont());\r\n //txtLastName.setColumns(10);\r\n txtLastName.setName(\"txtLastName\");\r\n txtLastName.setNextFocusableComponent(txtFirstName);\r\n txtLastName.addKeyListener(new CoeusTextListener());\r\n txtLastName.setMinimumSize(new Dimension(160, 20));\r\n txtLastName.setMaximumSize(new Dimension(160, 20));\r\n txtLastName.setPreferredSize(new Dimension(160, 20)); \r\n gridBagConstraints3 = new GridBagConstraints();\r\n txtLastName.setFocusable(true);\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 2;\r\n gridBagConstraints3.gridwidth = 2;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //gridBagConstraints3.ipadx = 130; \r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtLastName, gridBagConstraints3);\r\n \r\n //First Name Text\r\n txtFirstName = new CoeusTextField();\r\n txtFirstName.setDocument(new LimitedPlainDocument(20));\r\n txtFirstName.setFont(fontFactory.getNormalFont());\r\n\r\n txtFirstName.setName(\"txtFirstName\");\r\n txtFirstName.setNextFocusableComponent(txtMiddleName);\r\n txtFirstName.addKeyListener(new CoeusTextListener());\r\n txtFirstName.setMinimumSize(new Dimension(160, 20));\r\n txtFirstName.setMaximumSize(new Dimension(160, 20));\r\n txtFirstName.setPreferredSize(new Dimension(160, 20));\r\n txtFirstName.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 3;\r\n gridBagConstraints3.gridy = 2;\r\n gridBagConstraints3.gridwidth = 2;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //gridBagConstraints3.ipadx = 100; \r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtFirstName, gridBagConstraints3);\r\n \r\n //Middle Name Text\r\n txtMiddleName = new CoeusTextField();\r\n // Bug fix for case #1839 start 1\r\n //txtMiddleName.setMinimumSize(new Dimension(60, 20));\r\n //txtMiddleName.setMaximumSize(new Dimension(60, 20));\r\n //txtMiddleName.setPreferredSize(new Dimension(60, 20));\r\n // Bug fix for case #1839 end 1 \r\n txtMiddleName.setDocument(new LimitedPlainDocument(20));\r\n txtMiddleName.setFont(fontFactory.getNormalFont());\r\n\r\n txtMiddleName.setName(\"txtMiddleName\");\r\n txtMiddleName.setNextFocusableComponent(txtSuffix);\r\n txtMiddleName.addKeyListener(new CoeusTextListener());\r\n txtMiddleName.setMinimumSize(new Dimension(160, 20));\r\n txtMiddleName.setMaximumSize(new Dimension(160, 20));\r\n txtMiddleName.setPreferredSize(new Dimension(160, 20));\r\n txtMiddleName.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 2;\r\n //gridBagConstraints3.ipadx = 80;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtMiddleName, gridBagConstraints3); \r\n //Row 3 - End\r\n \r\n //Row 4 - Start\r\n //Suffix Label\r\n lblSuffix = new JLabel();\r\n lblSuffix.setFont(fontFactory.getLabelFont()); \r\n lblSuffix.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblSuffix.setText(\"Suffix: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 3;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblSuffix, gridBagConstraints3);\r\n \r\n //Suffix Text\r\n txtSuffix = new CoeusTextField();\r\n txtSuffix.setDocument(new LimitedPlainDocument(10));\r\n txtSuffix.setFont(fontFactory.getNormalFont());\r\n txtSuffix.setName(\"txtSuffix\");\r\n txtSuffix.setNextFocusableComponent(txtPrefix);\r\n txtSuffix.addKeyListener(new CoeusTextListener());\r\n txtSuffix.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 3;\r\n //gridBagConstraints3.ipadx = 58;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n txtSuffix.setPreferredSize(new Dimension(60, 20)); \r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtSuffix, gridBagConstraints3);\r\n \r\n //Prefix Label\r\n lblPrefix = new JLabel();\r\n lblPrefix.setFont(fontFactory.getLabelFont()); \r\n lblPrefix.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblPrefix.setText(\"Prefix: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 2;\r\n gridBagConstraints3.gridy = 3;\r\n //gridBagConstraints3.ipady = 2;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n // Bug fix for case #1839 start 11\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n // Bug fix for case #1839 end 11\r\n pnlRolodexDetails.add(lblPrefix, gridBagConstraints3);\r\n \r\n //Prefix Text\r\n txtPrefix = new CoeusTextField();\r\n // Bug fix for case #1839 start 2\r\n txtPrefix.setMinimumSize(new Dimension(60, 20));\r\n txtPrefix.setMaximumSize(new Dimension(60, 20));\r\n txtPrefix.setPreferredSize(new Dimension(60, 20));\r\n // Bug fix for case #1839 end 2 \r\n txtPrefix.setDocument(new LimitedPlainDocument(10));\r\n txtPrefix.setFont(fontFactory.getNormalFont());\r\n txtPrefix.setName(\"txtPrefix\");\r\n txtPrefix.addKeyListener(new CoeusTextListener());\r\n txtPrefix.setNextFocusableComponent(txtTitle);\r\n txtPrefix.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 3;\r\n gridBagConstraints3.gridy = 3;\r\n //gridBagConstraints3.ipadx = 50;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtPrefix, gridBagConstraints3);\r\n\r\n //Title Label\r\n lblTitle = new JLabel();\r\n lblTitle.setFont(fontFactory.getLabelFont());\r\n // Bug fix for case #1839 start 0\r\n lblTitle.setMaximumSize(new Dimension(20,20));\r\n lblTitle.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblTitle.setText(\"Title: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 3;\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.VERTICAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n pnlRolodexDetails.add(lblTitle, gridBagConstraints3);\r\n\r\n //Title Text\r\n txtTitle = new CoeusTextField();\r\n // Bug fix for case #1839 start 3\r\n txtTitle.setMinimumSize(new Dimension(160, 20));\r\n txtTitle.setMaximumSize(new Dimension(160, 20));\r\n txtTitle.setPreferredSize(new Dimension(160, 20));\r\n // Bug fix for case #1839 end 3 \r\n txtTitle.setDocument(new LimitedPlainDocument(35));\r\n txtTitle.setFont(fontFactory.getNormalFont()); \r\n txtTitle.setName(\"txtTitle\");\r\n txtTitle.setNextFocusableComponent(txtSponsorCode);\r\n txtTitle.addKeyListener(new CoeusTextListener());\r\n txtTitle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n txtTitle.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 3;\r\n // gridBagConstraints3.gridwidth = 3;\r\n // gridBagConstraints3.ipadx = 144;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n // gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtTitle, gridBagConstraints3);\r\n //Row 4 - End\r\n \r\n //Row 5 - Start\r\n //Sponsor Label\r\n lblSponsor = new JLabel();\r\n lblSponsor.setFont(fontFactory.getLabelFont());\r\n lblSponsor.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblSponsor.setText(\"Sponsor: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 4;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblSponsor, gridBagConstraints3);\r\n \r\n //Sponsor Text\r\n txtSponsorCode = new CoeusTextField();\r\n //Added by chandra to fix #1346\r\n txtSponsorCode.setMinimumSize(new Dimension(60, 20));\r\n txtSponsorCode.setMaximumSize(new Dimension(60, 20));\r\n txtSponsorCode.setPreferredSize(new Dimension(60, 20));\r\n //End Chandra #1346\r\n txtSponsorCode.setDocument(new JTextFieldFilter(JTextFieldFilter.ALPHA_NUMERIC,6));\r\n txtSponsorCode.setRequestFocusEnabled(true);\r\n txtSponsorCode.setDisabledTextColor(java.awt.Color.white);\r\n txtSponsorCode.setName(\"txtSponsor\");\r\n txtSponsorCode.setNextFocusableComponent(txtOrganization);\r\n txtSponsorCode.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 4;\r\n //gridBagConstraints3.ipadx = 58;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtSponsorCode, gridBagConstraints3);\r\n txtSponsorCode.addFocusListener(new FocusListener(){\r\n\r\n /* declare a variable to hold the SponsorCode before getting focus\r\n * in the txtSponsorCode text box\r\n */\r\n String oldSpCode =\"\";\r\n public void focusGained(FocusEvent e){\r\n /*Get the sponsorCode information into the variable*/\r\n oldSpCode = txtSponsorCode.getText().toString().trim();\r\n }\r\n public void focusLost(FocusEvent e){\r\n String sponsorCode = \"\";\r\n sponsorCode = txtSponsorCode.getText().toString().trim();\r\n \r\n //Added for Case# 3341 - Sponsor Code Validation - start\r\n //If the sponsor Code is empty, clear the sponsor name\r\n if(sponsorCode.equals(\"\")){\r\n lblSponsorName.setText(\"\");\r\n } \r\n //Added for Case# 3341 - Sponsor Code Validation - end\r\n \r\n /*Check the sponsorCode before user changes and with the latest\r\n * if any change then call the servlet for sponsor information\r\n */\r\n if ((!isSponsorSearchRequired) && !e.isTemporary() &&\r\n isSponsorInfoRequired && (oldSpCode.equals(sponsorCode))){\r\n if (!sponsorCode.equals(\"\") ){\r\n //Commented for case#3341 - Sponsor Validation\r\n getSponsorInfo(sponsorCode);\r\n /* set the isSponsorsearchReuired to false.so that the\r\n * varibale will be initialized to the same value for setting\r\n * in mouse double click. This variable is allowed to restrict\r\n * the focusLost event for txtSponsorcode when showing sponsor\r\n * search screen on double clicking in txtSponsorCode.\r\n */\r\n isSponsorSearchRequired =false;\r\n }\r\n \r\n }else if( (!isSponsorSearchRequired)\r\n && (!oldSpCode.equals(sponsorCode)) && (!e.isTemporary())) {\r\n if (!sponsorCode.equals(\"\") ){\r\n //Commented for case#3341 - Sponsor Validation\r\n getSponsorInfo(sponsorCode);\r\n /* set the isSponsorsearchReuired to false.so that the\r\n * varibale will be initialized to the same value for setting\r\n * in mouse double click. This variable is allowed to restrict\r\n * the focusLost event for txtSponsorcode when showing sponsor\r\n * search screen on double clicking in txtSponsorCode.\r\n */\r\n isSponsorSearchRequired =false;\r\n }\r\n }\r\n }\r\n \r\n });\r\n\r\n txtSponsorCode.addMouseListener(new MouseAdapter(){\r\n public void mouseClicked(MouseEvent me){\r\n /* If the user double clikcs in the txtSponsorCode call\r\n * showsponsorInfo window\r\n */\r\n if (me.getClickCount() == 2) {\r\n /*set issponsorSearchRequired to true to avoid firing in\r\n *focusLost event\r\n */\r\n txtSponsorCode.setCursor(new Cursor(Cursor.WAIT_CURSOR) );\r\n isSponsorSearchRequired =true;\r\n showSponsorInfo();\r\n txtSponsorCode.setCursor(new Cursor(Cursor.DEFAULT_CURSOR) );\r\n }\r\n }\r\n });\r\n txtSponsorCode.addKeyListener( new CoeusTextListener());\r\n txtSponsorCode.addActionListener( this );\r\n \r\n //Sponsor Name Label\r\n lblSponsorName = new JLabel();\r\n lblSponsorName.setFont(fontFactory.getLabelFont());\r\n lblSponsorName.setText(\"\");\r\n lblSponsorName.setName(\"lblSponsorName\");\r\n lblSponsorName.setHorizontalTextPosition(JLabel.LEFT);\r\n Dimension dimension = new Dimension(400,20);\r\n lblSponsorName.setMinimumSize(dimension);\r\n lblSponsorName.setMaximumSize(dimension);\r\n lblSponsorName.setPreferredSize(dimension);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n// gridBagConstraints3.gridx = 2;\r\n gridBagConstraints3.gridy = 4;\r\n gridBagConstraints3.gridwidth = 3;\r\n// gridBagConstraints3.weightx= 3;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //comment for bug fix 1839\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n //gridBagConstraints3.ipadx = 290;\r\n /**bug fix for case 1839 start 12 */\r\n //lblSponsorName.setMinimumSize(new Dimension( 280, 20 ) );\r\n //lblSponsorName.setPreferredSize( new Dimension( 280, 20 ) );\r\n //lblSponsorName.setMaximumSize( new Dimension( 280, 20 ) );\r\n /** bug fix for case 1839 end 12 */\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(lblSponsorName, gridBagConstraints3); \r\n //Row 5 - End\r\n //coeusqa-1528 start SHABARISH\r\n JPanel pnlStatus = new JPanel();\r\n pnlStatus.setLayout(new GridBagLayout());\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 4;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n GridBagConstraints statusGridBagConstraints;\r\n \r\n \r\n ButtonGroup buttonGroup = new ButtonGroup ();\r\n radioActiveStatus = new JRadioButton(\"Active\");\r\n radioActiveStatus.setFocusable(true);\r\n radioActiveStatus.addItemListener(new ItemListener() {\r\n public void itemStateChanged(ItemEvent ie){\r\n if (rldxBean!=null) { \r\n if (ie.getStateChange()==1) {\r\n dataChanged = true;\r\n }else {\r\n dataChanged = false;\r\n }\r\n }\r\n }\r\n });\r\n statusGridBagConstraints = new GridBagConstraints();\r\n statusGridBagConstraints.gridx = 0;\r\n statusGridBagConstraints.gridy = 0;\r\n statusGridBagConstraints.insets = new Insets(2, 0, 2, 2);\r\n statusGridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\r\n buttonGroup.add(radioActiveStatus);\r\n pnlStatus.add(radioActiveStatus, statusGridBagConstraints);\r\n //radioActiveStatus.setSelected(true);\r\n radioInActiveStatus = new JRadioButton(\"Inactive\");\r\n radioInActiveStatus.setFocusable(true);\r\n radioInActiveStatus.addItemListener(new ItemListener() {\r\n public void itemStateChanged(ItemEvent ie){\r\n if (rldxBean!=null) { \r\n if (ie.getStateChange()==1) {\r\n dataChanged = true;\r\n }else {\r\n dataChanged = false;\r\n }\r\n }\r\n }\r\n });\r\n buttonGroup.add(radioInActiveStatus);\r\n statusGridBagConstraints = new GridBagConstraints();\r\n statusGridBagConstraints.gridx = 1;\r\n statusGridBagConstraints.gridy = 0;\r\n statusGridBagConstraints.insets = new Insets(2, 0, 2, 2);\r\n statusGridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlStatus.add(radioInActiveStatus, statusGridBagConstraints);\r\n pnlRolodexDetails.add(pnlStatus, gridBagConstraints3);\r\n //coeusqa-1528 end\r\n //coeusqa-1528 start\r\n if(rldxBean != null && rldxBean.getStatus()!=null && ACTIVE_STATUS.equalsIgnoreCase(rldxBean.getStatus().trim())) {\r\n radioActiveStatus.setSelected(true);\r\n }\r\n else if(rldxBean != null && INACTIVE_STATUS.equalsIgnoreCase(rldxBean.getStatus().trim())) {\r\n radioInActiveStatus.setSelected(true);\r\n }\r\n //coeusqa-1528 ends\r\n //Row 6 - Start\r\n //Organization Label\r\n lblOrganization = new JLabel();\r\n lblOrganization.setFont(fontFactory.getLabelFont());\r\n lblOrganization.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\r\n lblOrganization.setText(\"Organization: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 5;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblOrganization, gridBagConstraints3);\r\n \r\n //Organization Text\r\n txtOrganization = new CoeusTextField();\r\n txtOrganization.setDocument(new LimitedPlainDocument(80));\r\n txtOrganization.setFont(fontFactory.getNormalFont());\r\n txtOrganization.setRequestFocusEnabled(true);\r\n txtOrganization.setName(\"txtOrganization\");\r\n txtOrganization.setNextFocusableComponent(txtAddress1);\r\n // JM 7-22-2011 added required field highlighting\r\n txtOrganization.setRequired(true);\r\n // END\r\n txtOrganization.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 5;\r\n gridBagConstraints3.gridwidth = 5;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //gridBagConstraints3.ipadx = 442;\r\n //txtOrganization.setPreferredSize(new Dimension(589, 20));\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtOrganization, gridBagConstraints3);\r\n txtOrganization.addKeyListener(new CoeusTextListener()); \r\n //Row 6 - End\r\n\r\n //Row 7 - Start\r\n //Address Label\r\n lblAddress = new JLabel();\r\n lblAddress.setFont(fontFactory.getLabelFont());\r\n lblAddress.setText(\"Address: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 6;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblAddress, gridBagConstraints3);\r\n \r\n //Address1 text\r\n txtAddress1 = new CoeusTextField();\r\n // Bug fix for case #1839 start 4\r\n //txtAddress1.setMinimumSize(new Dimension(589, 20));\r\n //txtAddress1.setMaximumSize(new Dimension(589, 20));\r\n //txtAddress1.setPreferredSize(new Dimension(589, 20));\r\n // Bug fix for case #1839 end 4 \r\n txtAddress1.setDocument(new LimitedPlainDocument(80));\r\n txtAddress1.setFont(fontFactory.getNormalFont());\r\n txtAddress1.setNextFocusableComponent(txtAddress2);\r\n txtAddress1.addKeyListener(new CoeusTextListener());\r\n txtAddress1.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 6;\r\n gridBagConstraints3.gridwidth = 5;\r\n // gridBagConstraints3.ipadx = 442;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //commented for bug fix 1839\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtAddress1, gridBagConstraints3); \r\n //Row 7 - End\r\n\r\n //Row 8 - Start\r\n //Address2 text\r\n txtAddress2 = new CoeusTextField();\r\n // Bug fix for case #1839 start 5\r\n //txtAddress2.setMinimumSize(new Dimension(589, 20));\r\n //txtAddress2.setMaximumSize(new Dimension(589, 20));\r\n //txtAddress2.setPreferredSize(new Dimension(589, 20));\r\n // Bug fix for case #1839 end 5 \r\n txtAddress2.setDocument(new LimitedPlainDocument(80));\r\n txtAddress2.setFont(fontFactory.getNormalFont());\r\n txtAddress2.setNextFocusableComponent(txtAddress3);\r\n txtAddress2.addKeyListener(new CoeusTextListener());\r\n txtAddress2.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 7;\r\n gridBagConstraints3.gridwidth = 5;\r\n //gridBagConstraints3.ipadx = 442;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //commented for bug fix 1839\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtAddress2, gridBagConstraints3); \r\n //Row 8 - End\r\n \r\n //Row 9 Start\r\n //Address3 text\r\n txtAddress3 = new CoeusTextField();\r\n // Bug fix for case #1839 start 6\r\n //txtAddress3.setMinimumSize(new Dimension(589, 20));\r\n //txtAddress3.setMaximumSize(new Dimension(589, 20));\r\n //txtAddress3.setPreferredSize(new Dimension(589, 20));\r\n // Bug fix for case #1839 end 6 \r\n txtAddress3.setDocument(new LimitedPlainDocument(80));\r\n txtAddress3.setFont(fontFactory.getNormalFont());\r\n txtAddress3.setNextFocusableComponent(txtCity);\r\n txtAddress3.addKeyListener(new CoeusTextListener());\r\n txtAddress3.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 8;\r\n gridBagConstraints3.gridwidth = 5;\r\n // gridBagConstraints3.ipadx = 442;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //commented for bug fix 1839\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtAddress3, gridBagConstraints3); \r\n //Row 9 End\r\n\r\n //Row 10 - Start\r\n //This row contains the following components in order\r\n //City (label, text), County(label, text)\r\n //City Label\r\n lblCity = new JLabel();\r\n lblCity.setFont(fontFactory.getLabelFont());\r\n lblCity.setText(\"City: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 9;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblCity, gridBagConstraints3);\r\n \r\n //City Text\r\n txtCity = new CoeusTextField();\r\n txtCity.setDocument(new LimitedPlainDocument(30));\r\n txtCity.setFont(fontFactory.getNormalFont());\r\n txtCity.setNextFocusableComponent(txtCounty);\r\n txtCity.addKeyListener(new CoeusTextListener());\r\n txtCity.setFocusable(true);\r\n\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 9;\r\n gridBagConstraints3.gridwidth = 2;\r\n //gridBagConstraints3.ipadx = 120;\r\n txtCity.setPreferredSize(new Dimension(130, 20));\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtCity, gridBagConstraints3);\r\n \r\n //County Label\r\n lblCounty = new JLabel();\r\n lblCounty.setFont(fontFactory.getLabelFont());\r\n lblCounty.setText(\"County: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 9;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblCounty, gridBagConstraints3); \r\n \r\n //County Text\r\n txtCounty = new CoeusTextField();\r\n // Bug fix for case #1839 start 7\r\n txtCounty.setMinimumSize(new Dimension(160, 20));\r\n txtCounty.setMaximumSize(new Dimension(160, 20));\r\n txtCounty.setPreferredSize(new Dimension(160, 20));\r\n // Bug fix for case #1839 end 7 \r\n txtCounty.setDocument(new LimitedPlainDocument(30));\r\n txtCounty.setFont(fontFactory.getNormalFont());\r\n txtCounty.setFocusable(true);\r\n txtCounty.setNextFocusableComponent(cmbState);\r\n txtCounty.addKeyListener(new CoeusTextListener());\r\n\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 9;\r\n //gridBagConstraints3.ipadx = 80;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //commented for bug fix 1839\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtCounty, gridBagConstraints3);\r\n //Row 10 - End\r\n \r\n //Row 11 - Start\r\n //This row contains the following components in order\r\n //State (label, combo), PostalCode(label, text) \r\n //State Label\r\n lblState = new JLabel();\r\n lblState.setFont(fontFactory.getLabelFont());\r\n //Modified for Case#4254 - change \"State\" Label to \"State/ Province\" \r\n// lblState.setText(\"State Name: \");\r\n lblState.setText(\"State/ Province Name: \");\r\n //Case#4254 - End\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 10; \r\n gridBagConstraints3.insets = new Insets(2, 0, 2,2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblState, gridBagConstraints3);\r\n \r\n //State Combo - Start\r\n //Modified for case#3278 - State Combobox is made non editable\r\n cmbState = new CoeusComboBox();\r\n cmbState.setEditable(false);\r\n //Modified for Case#4252 - Rolodex state dropdown associated with country - Start\r\n// cmbState.setShowCode(true); \r\n //Case#4252 - End\r\n cmbState.setMaximumSize(new java.awt.Dimension(130, 20));\r\n\r\n cmbState.setMinimumSize(new java.awt.Dimension(130, 20));\r\n cmbState.setPreferredSize(new java.awt.Dimension(130,20));\r\n cmbState.setFocusable(true);\r\n cmbState.addItemListener(new ItemListener() {\r\n public void itemStateChanged(ItemEvent ie){\r\n if (rldxBean!=null) {\r\n String bnSelectState=\r\n ((ComboBoxBean)cmbState.getSelectedItem()).getCode();\r\n if (bnSelectState.equalsIgnoreCase(rldxBean.getState())) {\r\n dataChanged = false;\r\n }else {\r\n dataChanged = true;\r\n }\r\n }\r\n }\r\n });\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 10;\r\n gridBagConstraints3.gridwidth = 2;\r\n //gridBagConstraints3.ipadx = 15;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(cmbState, gridBagConstraints3);\r\n \r\n //Postal Code Label\r\n lblPostalCode = new JLabel();\r\n lblPostalCode.setFont(fontFactory.getLabelFont());\r\n lblPostalCode.setText(\"Postal Code: \");\r\n //GridBagConstraints \r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 10;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblPostalCode, gridBagConstraints3);\r\n \r\n //Postal Code Text\r\n txtPostalCode = new CoeusTextField();\r\n // Bug fix for case #1839 start 8\r\n txtPostalCode.setMinimumSize(new Dimension(160, 20));\r\n txtPostalCode.setMaximumSize(new Dimension(160, 20));\r\n txtPostalCode.setPreferredSize(new Dimension(160, 20));\r\n txtPostalCode.setFocusable(true);\r\n // Bug fix for case #1839 end 8 \r\n txtPostalCode.setDocument(new LimitedPlainDocument(15));\r\n txtPostalCode.setFont(fontFactory.getNormalFont());\r\n txtPostalCode.setNextFocusableComponent(cmbCountry);\r\n txtPostalCode.addKeyListener(new CoeusTextListener());\r\n txtPostalCode.addFocusListener( new FocusAdapter(){\r\n public void focusGained( FocusEvent focusEvt ){\r\n if( !focusEvt.isTemporary() && cmbState.isPopupVisible() ){\r\n cmbState.hidePopup();\r\n }\r\n }\r\n }); \r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 10;\r\n //gridBagConstraints3.ipadx = 80;\r\n gridBagConstraints3.insets = new java.awt.Insets(0, 0, 0, 5);\r\n //commented for bug fix 1839\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n //gridBagConstraints3.ipady = 1;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtPostalCode, gridBagConstraints3);\r\n cmbState.setNextFocusableComponent(txtPostalCode); \r\n //Row 11 - End\r\n\r\n //Row 12 - Start\r\n //This row contains the following components in order\r\n //Country (label, combo), Phone(label, text) \r\n //Country Label\r\n lblCountry = new JLabel();\r\n lblCountry.setFont(fontFactory.getLabelFont());\r\n lblCountry.setText(\"Country: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 11;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblCountry, gridBagConstraints3);\r\n \r\n //Country Combo\r\n cmbCountry = new CoeusComboBox();\r\n cmbCountry.setFont(fontFactory.getNormalFont());\r\n cmbCountry.setNextFocusableComponent(txtPhone);\r\n cmbCountry.setMaximumSize(new java.awt.Dimension(130, 20));\r\n cmbCountry.setMinimumSize(new java.awt.Dimension(130, 20));\r\n cmbCountry.setPreferredSize(new java.awt.Dimension(130,20));\r\n cmbCountry.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 11;\r\n gridBagConstraints3.gridwidth = 2;\r\n //gridBagConstraints3.ipadx = 100;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(cmbCountry, gridBagConstraints3);\r\n \r\n //Added for Case#4252 - Rolodex state dropdown associated with country - Start\r\n requester = new RequesterBean();\r\n requester.setFunctionType(GET_STATE_WITH_COUNTRY);\r\n RolodexMaintController rldxController = new RolodexMaintController();\r\n ResponderBean response = rldxController.sendToServer(\"/rolMntServlet\",requester);\r\n if(response != null && response.isSuccessfulResponse()){\r\n hmComboStateWithCountry = (HashMap)response.getDataObject();\r\n }\r\n //Case#4252 - End\r\n \r\n /* added mouse listener to the country combo for handling state\r\n * combo information\r\n */\r\n cmbCountry.addItemListener(new ItemListener() {\r\n public void itemStateChanged(ItemEvent ie){\r\n userDataChanged();\r\n //Modified by shiji for fixing bug id : 1843 : step 1 - start\r\n ComboBoxBean cmbBeanCountry = new ComboBoxBean(\"\",\"\");\r\n cmbBeanCountry = (ComboBoxBean)cmbCountry.getSelectedItem();\r\n //bug id : 1843 : step 1 - end\r\n //Modified for Case#4252 - Rolodex state dropdown associated with country - Start\r\n// if (cmbBeanCountry.getCode().trim().equalsIgnoreCase(\"USA\")){\r\n// if(functionType != 'V'){\r\n// cmbState.setShowCode(true);\r\n// }\r\n//\r\n// /* If country selected is USA then add all the state codes\r\n// * information to the state combo else clear the state\r\n// * combo and allow the user to enter the state information\r\n// */\r\n// setStateInfo();\r\n// }else {\r\n// cmbState.setShowCode(false);\r\n//\r\n// clearStateInfo();\r\n// }\r\n //Case#4252 - End\r\n clearStateInfo();\r\n if(cmbBeanCountry != null && !cmbBeanCountry.getCode().equals(\"\")){\r\n Vector comboList = (Vector)hmComboStateWithCountry.get(cmbBeanCountry.getCode());\r\n if(comboList != null && comboList.size() > 0){\r\n int comboLength = comboList.size();\r\n for(int comboIndex=0;comboIndex<comboLength;comboIndex++){\r\n ComboBoxBean listBox = (ComboBoxBean)comboList.elementAt(comboIndex);\r\n if(listBox!=null)\r\n cmbState.addItem(listBox);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n \r\n //Phone Label\r\n lblPhone = new JLabel();\r\n lblPhone.setFont(fontFactory.getLabelFont());\r\n lblPhone.setText(\"Phone: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 11;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblPhone, gridBagConstraints3);\r\n \r\n //Phone Text\r\n txtPhone = new CoeusTextField();\r\n // Bug fix for case #1839 start 9\r\n txtPhone.setMinimumSize(new Dimension(160, 20));\r\n txtPhone.setMaximumSize(new Dimension(160, 20));\r\n txtPhone.setPreferredSize(new Dimension(160, 20));\r\n // Bug fix for case #1839 end 9 \r\n txtPhone.setDocument(new LimitedPlainDocument(20));\r\n txtPhone.setFont(fontFactory.getNormalFont());\r\n txtPhone.setNextFocusableComponent(txtEMail);\r\n txtPhone.addKeyListener(new CoeusTextListener());\r\n txtPhone.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 11;\r\n // gridBagConstraints3.ipadx = 80;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n //commented for bug fix 1839\r\n //gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtPhone, gridBagConstraints3);\r\n //Row 12 - End\r\n\r\n //Row 13 - Start\r\n //This row contains the following components in order\r\n //EMail (label, text), Fax(label, text) \r\n //EMail Label\r\n lblEMail = new JLabel();\r\n lblEMail.setFont(fontFactory.getLabelFont());\r\n lblEMail.setText(\"E Mail: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 12;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblEMail, gridBagConstraints3);\r\n \r\n //EMail Text\r\n txtEMail = new CoeusTextField();\r\n txtEMail.setDocument(new LimitedPlainDocument(60));\r\n txtEMail.setFont(fontFactory.getNormalFont());\r\n txtEMail.setNextFocusableComponent(txtFax);\r\n txtEMail.addKeyListener(new CoeusTextListener());\r\n txtEMail.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 12;\r\n //Modified by shiji for fixing the bug id 1870 : start\r\n gridBagConstraints3.gridwidth = 3;\r\n //gridBagConstraints3.ipadx = 120;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n txtEMail.setPreferredSize(new Dimension(350,20));\r\n //Bug fix id 1870 : end\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtEMail, gridBagConstraints3);\r\n \r\n //Fax Label\r\n lblFax = new JLabel();\r\n lblFax.setFont(fontFactory.getLabelFont());\r\n lblFax.setText(\"Fax: \");//RolodexMaintenanceDetailForm\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 4;\r\n gridBagConstraints3.gridy = 12;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;\r\n pnlRolodexDetails.add(lblFax, gridBagConstraints3);\r\n \r\n //Fax Text\r\n txtFax = new CoeusTextField();\r\n // Bug fix for case #1839 start 10\r\n txtFax.setMinimumSize(new Dimension(160, 20));\r\n txtFax.setMaximumSize(new Dimension(160, 20));\r\n txtFax.setPreferredSize(new Dimension(160, 20));\r\n // Bug fix for case #1839 end 10 \r\n txtFax.setDocument(new LimitedPlainDocument(20));\r\n txtFax.setFont(fontFactory.getNormalFont());\r\n txtFax.setNextFocusableComponent(txtComments);\r\n txtFax.addKeyListener(new CoeusTextListener());\r\n txtFax.setFocusable(true);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 5;\r\n gridBagConstraints3.gridy = 12;\r\n // commented for bug fix 1839\r\n // gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n // gridBagConstraints3.ipadx = 80;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(txtFax, gridBagConstraints3); \r\n //Row 13 - End\r\n \r\n //Row 14 - Start\r\n //Comments Label\r\n lblComments = new JLabel();\r\n lblComments.setFont(fontFactory.getLabelFont());\r\n lblComments.setText(\"Comments: \");\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.gridy = 13;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHEAST;\r\n pnlRolodexDetails.add(lblComments, gridBagConstraints3);\r\n gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 1;\r\n gridBagConstraints3.gridy = 13;\r\n gridBagConstraints3.gridwidth = 5;\r\n// // gridBagConstraints3.ipadx = 424;\r\n// // gridBagConstraints3.ipady = 80;\r\n gridBagConstraints3.insets = new Insets(2, 0, 2, 2);\r\n// //commented for bug fix 1839\r\n// // gridBagConstraints3.fill = java.awt.GridBagConstraints.VERTICAL; \r\n\r\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;\r\n pnlRolodexDetails.add(scrlPnComments, gridBagConstraints3);\r\n //scrlPnComments.setPreferredSize(new Dimension(424, 80)); \r\n //Row 14 - End\r\n //Moved for case#3341 - Sponsor Validation and UI realigmnent - End\r\n \r\n gridBagConstraints1 = new GridBagConstraints();\r\n gridBagConstraints1.gridx = 0;\r\n gridBagConstraints1.gridy = 0;\r\n// JPanel centerPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n// centerPanel.add(pnlRolodexDetails);\r\n// pnlMain.add(centerPanel,BorderLayout.CENTER);\r\n pnlMain.add(pnlRolodexDetails,BorderLayout.CENTER);\r\n // this.setLayout(new BorderLayout(5,5));\r\n /**bug fix for case 1839 start 13 */\r\n this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS));\r\n /** bug fix for case 1839 end 13 */\r\n this.add(pnlMain);//,BorderLayout.CENTER);\r\n }",
"public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }",
"private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }",
"public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this);\n \t//creationLink.setID(\"<creationLink>\"); // can't use label or it will draw one \n \t//invisibleLinkEndpoint.addLinkRef(creationLink);\n \tcreationLink=null;\n invisibleLinkEndpoint.setSize(0,0);\n \n \t}",
"private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}",
"public void factoryMainScreen()\n\t{\n\t\t\n\t}",
"public ManagerMain(String username) {\r\n\t\tsetUndecorated(true);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 404, 426);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new TitledBorder(null, \"Hi, Manager!!!!\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tpanel.setBounds(31, 32, 324, 356);\r\n\t\tcontentPane.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJButton btnlogout = new JButton(\"Logout\");\r\n\t\tbtnlogout.setBounds(42, 284, 235, 37);\r\n\t\tpanel.add(btnlogout);\r\n\t\tbtnlogout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tdispose();\r\n\t\t\t\tLogin l = new Login();\r\n\t\t\t\tl.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnlogout.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\t\r\n\t\tJButton btnnewstaff = new JButton(\"Create new staff account\");\r\n\t\tbtnnewstaff.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tdispose();\r\n\t\t\t\tCreateStaff cs = new CreateStaff(username);\r\n\t\t\t\tcs.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnnewstaff.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tbtnnewstaff.setBounds(42, 155, 235, 37);\r\n\t\tpanel.add(btnnewstaff);\r\n\t\t\r\n\t\tJButton btnSeeDataOf = new JButton(\"See data of Staff\");\r\n\t\tbtnSeeDataOf.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tdataStaff ds = new dataStaff(username);\r\n\t\t\t\tds.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSeeDataOf.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tbtnSeeDataOf.setBounds(42, 89, 235, 37);\r\n\t\tpanel.add(btnSeeDataOf);\r\n\t\t\r\n\t\tJButton btnSeeDataOff = new JButton(\"See data of Customer\");\r\n\t\tbtnSeeDataOff.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tdataCustomer dc = new dataCustomer(username);\r\n\t\t\t\tdc.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSeeDataOff.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tbtnSeeDataOff.setBounds(42, 26, 235, 37);\r\n\t\tpanel.add(btnSeeDataOff);\r\n\t\t\r\n\t\tJButton btnGetReport = new JButton(\"Get Report\");\r\n\t\tbtnGetReport.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tdispose();\r\n\t\t\t\tqueryingDatabase qD = new queryingDatabase();\r\n\t\t\t\tqD.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnGetReport.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tbtnGetReport.setBounds(42, 216, 235, 37);\r\n\t\tpanel.add(btnGetReport);\r\n\t}",
"public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"public void setUpBalancerPage() {\n\t\t// Reactant Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the reactant side */\n\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 150, 0, 35, \"#\"));\n\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 150, 0, 100, \"Formula\"));\n\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 185, 0, 140, \"Moles\"));\t\t\n\n\t\tButton addReactant = SpeedFormat.button(new Button(), balancerPage, 10, 80, \"Add\", \"\");\n\t\t\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the reactant side */\n\t\taddReactant.setOnAction(action -> {\n\t\t\tif (intReactant < 5) {\n\t\t\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 150, 35, \"#\"));\n\t\t\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intReactant * 165), 150, 100, \"Formula\"));\n\t\t\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 185, 140, \"Moles\"));\n\n\t\t\t\tplusReactant.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intReactant - 1) * 165), 170, \"+\", \"\"));\n\t\t\t\tplusReactant.get(plusReactant.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintReactant++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the reactant side\n\t\tButton removeReactant = SpeedFormat.button(new Button(), balancerPage, 60, 80, \"Remove\", \"\");\n\n\t\tremoveReactant.setOnAction(action -> {\n\t\t\tif (intReactant > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(reactantTextAmt.get(reactantTextAmt.size() - 1), reactant.get(reactant.size() - 1), \n\t\t\t\t\t\treactantMol.get(reactantMol.size() - 1), plusReactant.get(plusReactant.size() - 1));\n\t\t\t\treactantTextAmt.remove(reactantTextAmt.size() - 1);\n\t\t\t\treactant.remove(reactant.size() - 1);\n\t\t\t\treactantMol.remove(reactantMol.size() - 1);\n\t\t\t\tplusReactant.remove(plusReactant.size() - 1);\n\t\t\t\tintReactant--;\n\t\t\t}\n\t\t});\n\n\t\t// Creates the Equation Arrow Text\n\t\tText equationArrow = SpeedFormat.text(new Text(), balancerPage, 50, 290, \"↓\", \"\");\n\t\tequationArrow.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 40));\n\n\t\t// Product Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the product side */\n\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 400, 35, \"#\"));\n\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 400, 100, \"Formula\"));\n\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 435, 140, \"Moles\"));\n\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the product side */\n\t\tButton addProduct = SpeedFormat.button(new Button(), balancerPage, 10, 330, \"Add\", \"\");\n\n\t\taddProduct.setOnAction(action -> {\n\t\t\tif (intProduct < 5) {\n\t\t\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 400, 35, \"#\"));\n\t\t\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intProduct * 165), 400, 100, \"Formula\"));\n\t\t\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 435, 140, \"Moles\"));\n\n\t\t\t\tplusProduct.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intProduct - 1) * 165), 420, \"+\", \"\"));\n\t\t\t\tplusProduct.get(plusProduct.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintProduct++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the product side\n\t\tButton removeProduct = SpeedFormat.button(new Button(), balancerPage, 60, 330, \"Remove\", \"\");\n\n\t\tremoveProduct.setOnAction(action -> {\n\t\t\tif (intProduct > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(productTextAmt.get(productTextAmt.size() - 1), product.get(product.size() - 1), \n\t\t\t\t\t\tproductMol.get(productMol.size() - 1), plusProduct.get(plusProduct.size() - 1));\n\t\t\t\tproductTextAmt.remove(productTextAmt.size() - 1);\n\t\t\t\tproduct.remove(product.size() - 1);\n\t\t\t\tproductMol.remove(productMol.size() - 1);\n\t\t\t\tplusProduct.remove(product.size() - 1);\n\t\t\t\tintProduct--;\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Creates the calculated texts objects\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\trMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 230, \"\", \"\");\n\t\t\trGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 250, \"\", \"\");\n\t\t\tpMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 480, \"\", \"\");\n\t\t\tpGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 500, \"\", \"\");\n\t\t}\n\t\t\n\t\t/* Creates a button that will calculate the limiting moles and sets the end text \n\t\tto the moles and grams of a given formula */\n\t\tButton go = SpeedFormat.button(new Button(), balancerPage, 10, 520, \"Go\", \"\");\t\n\t\t\n\t\tgo.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!intChecker(reactantTextAmt.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantAmt[i] = Integer.parseInt(intChecker(reactantTextAmt.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tChemical chemR = new Chemical(reactant.get(i).getText());\n\t\t\t\treactantMM[i] = chemR.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!doubleChecker(reactantMol.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantMoles[i] = Double.parseDouble(doubleChecker(reactantMol.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!intChecker(productTextAmt.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductAmt[j] = Integer.parseInt(intChecker(productTextAmt.get(j).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tChemical chemP = new Chemical(product.get(j).getText());\n\t\t\t\tproductMM[j] = chemP.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!doubleChecker(productMol.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductMoles[j] = Double.parseDouble(doubleChecker(productMol.get(j).getText()));\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmolCalculator();\n\t\t\tend();\n\t\t});\n\t\t\n\t\t// Creates a button that will clear all of the textfields\n\t\tButton clear = SpeedFormat.button(new Button(), balancerPage, 50, 520, \"Clear\", \"\");\t\n\t\t\n\t\tclear.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\treactantTextAmt.get(i).clear();\n\t\t\t\treactant.get(i).clear();\n\t\t\t\treactantMol.get(i).clear();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intProduct; i++) {\n\t\t\t\tproductTextAmt.get(i).clear();\n\t\t\t\tproduct.get(i).clear();\n\t\t\t\tproductMol.get(i).clear();\n\t\t\t}\n\t\t});\n\t}",
"public PrintsPanel() {\n initComponents();\n createPanels();\n\n }",
"UserLoginPanel() {\n\t\tJPanel myPanel = new MyPanel();\n\t\tJPanel feedbackPanel = new FeedbackPanel();\n\n\t\tthis.setLayout(new GridLayout(3, 1));\n\t\tthis.add(feedbackPanel);\n\t\tthis.add(myPanel);\n\t\tthis.add(new JPanel());\n\n\t\tthis.setVisible(true);\n\t}",
"void createMainContent() {\n appContent = new DashboardMain(this);\n }",
"private void getMarkAsTopNewsLinkPanel() {\n\t\ttry{\n\t\t\tMarkAsTopNewsLinkPanel asTopNewsLinkPanel = new MarkAsTopNewsLinkPanel(newsItem,feedNewsPresenter);\n\t\t\toptionPanel.add(asTopNewsLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }",
"private void createAdhocPanel() {\n\t\tString adhoc = I18n.getHierarchyTreeConstants().adhoc();\n\t\tString adhocTooltip = I18n.getHierarchyTreeConstants().adhocTooltip();\n\t\tcreateAnchor(adhoc, null, new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHistoryItem lastHistoryItem =\n\t\t\t\t\tHistoryManager.HISTORY.getLastHistoryItem();\n\t\t\t\tfinal ListFilter lf;\n\t\t\t\tif (lastHistoryItem == null) {\n\t\t\t\t\tlf = HistoryManager.HISTORY.getBaseListFilter();\n\t\t\t\t} else {\n\t\t\t\t\tlf = lastHistoryItem.getListFilter().clone();\n\t\t\t\t}\n\t\t\t\tAdhocDialog.DIALOG.showDialog(lf);\n\t\t\t}\n\t\t}, adhocTooltip);\n\t\tString clearTooltip =\n\t\t\tI18n.getHierarchyTreeConstants().clearListFilterTooltip();\n\t\tcreateImage(HierarchyResources.INSTANCE.clear(), clearHandler,\n\t\t\tclearTooltip);\n\t}",
"private void buildLeftHandNavNar() {\n\t\tsetCurrentSelectedDefinitionObjId(null);\n\t\tsetCurrentSelectedParamerterObjId(null);\n\t\tsetCurrentSelectedFunctionObjId(null);\n\t\tgetFunctionArgumentList().clear();\n\t\tgetFunctionArgNameMap().clear();\n\t\trightHandNavPanel.clear();\n\t\tNavPills navPills = new NavPills();\n\t\tnavPills.setStacked(true);\n\t\t\n\t\tgeneralInformation = new AnchorListItem();\n\t\t//includeLibrary = new AnchorListItem();\n\t\tparameterLibrary = new AnchorListItem();\n\t\tdefinitionLibrary = new AnchorListItem();\n\t\tfunctionLibrary = new AnchorListItem();\n\t\tviewCQL = new AnchorListItem();\n\t\t\n\t\tgeneralInformation.setIcon(IconType.INFO);\n\t\tgeneralInformation.setText(\"General Information\");\n\t\tgeneralInformation.setTitle(\"General Information\");\n\t\tgeneralInformation.setActive(true);\n\t\t\n\t\t//includeLibrary.setIcon(IconType.INFO);\n\t\t//includeLibrary.setText(\"Inlude library\");\n\t\t//includeLibrary.setTitle(\"Inlude library\");\n\t\t//includeLibrary.setActive(true);\n\t\t\n\t\tparameterLibrary.setIcon(IconType.PENCIL);\n\t\tparameterLibrary.setTitle(\"Parameter\");\n\t\tparamBadge.setText(\"\" + viewParameterList.size());\n\t\tAnchor paramAnchor = (Anchor) (parameterLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tparamAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tparamLabel.setStyleName(\"transparentLabel\");\n\t\tparamAnchor.add(paramLabel);\n\t\tparamBadge.setPull(Pull.RIGHT);\n\t\t//paramBadge.setMarginLeft(45);\n\t\tparamAnchor.add(paramBadge);\n\t\tparamAnchor.setDataParent(\"#navGroup\");\n\t\tparamAnchor.setDataToggle(Toggle.COLLAPSE);\n\t\tparameterLibrary.setHref(\"#collapseParameter\");\n\t\t\n\t\tparameterLibrary.add(paramCollapse);\n\t\t\n\t\tdefinitionLibrary.setIcon(IconType.PENCIL);\n\t\tdefinitionLibrary.setTitle(\"Define\");\n\t\tdefineBadge.setText(\"\" + viewDefinitions.size());\n\t\tAnchor defineAnchor = (Anchor) (definitionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tdefineAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tdefineLabel.setStyleName(\"transparentLabel\");\n\t\tdefineAnchor.add(defineLabel);\n\t\tdefineBadge.setPull(Pull.RIGHT);\n\t\t//defineBadge.setMarginLeft(52);\n\t\tdefineAnchor.add(defineBadge);\n\t\tdefineAnchor.setDataParent(\"#navGroup\");\n\t\tdefinitionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tdefinitionLibrary.setHref(\"#collapseDefine\");\n\t\t\n\t\tdefinitionLibrary.add(defineCollapse);\n\t\t\n\t\tfunctionLibrary.setIcon(IconType.PENCIL);\n\t\t/* functionLibrary.setText(\"Functions\"); */\n\t\tfunctionLibrary.setTitle(\"Functions\");\n\t\t\n\t\tfunctionBadge.setText(\"\" + viewFunctions.size());\n\t\tAnchor funcAnchor = (Anchor) (functionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tfuncAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tfunctionLibLabel.setStyleName(\"transparentLabel\");\n\t\tfuncAnchor.add(functionLibLabel);\n\t\tfunctionBadge.setPull(Pull.RIGHT);\n\t\t\n\t\t//functionBadge.setMarginLeft(57);\n\t\tfuncAnchor.add(functionBadge);\n\t\tfuncAnchor.setDataParent(\"#navGroup\");\n\t\tfunctionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tfunctionLibrary.setHref(\"#collapseFunction\");\n\t\t\n\t\tfunctionLibrary.add(functionCollapse);\n\t\t\n\t\tviewCQL.setIcon(IconType.BOOK);\n\t\tviewCQL.setText(\"View CQL\");\n\t\tviewCQL.setTitle(\"View CQL\");\n\t\t\n\t\tnavPills.add(generalInformation);\n\t\t//snavPills.add(includeLibrary);\n\t\tnavPills.add(parameterLibrary);\n\t\t\n\t\tnavPills.add(definitionLibrary);\n\t\tnavPills.add(functionLibrary);\n\t\tnavPills.add(viewCQL);\n\t\t\n\t\tnavPills.setWidth(\"200px\");\n\t\t\n\t\tmessagePanel.add(successMessageAlert);\n\t\tmessagePanel.add(warningMessageAlert);\n\t\tmessagePanel.add(errorMessageAlert);\n\t\tmessagePanel.add(warningConfirmationMessageAlert);\n\t\tmessagePanel.add(globalWarningConfirmationMessageAlert);\n\t\tmessagePanel.add(deleteConfirmationMessgeAlert);\n\t\t\n\t\t// rightHandNavPanel.add(messagePanel);\n\t\trightHandNavPanel.add(navPills);\n\t}",
"void setMainAction(LinkActionGUI linkActionGUI);",
"public static void initialisePanel(){\n\t\t\n\t\tBrewPanel = new JPanel();\n\t\tBrewPanel.setLayout(new MigLayout(\"\", \"[grow][65px:n:65px]\", \"[20px:n:20px][25px:n:25px][grow]\"));\n\t\t\n\t\t\n\t\t//Header\n\t\tBrewHeader = new JLabel(\"Brew\");\n\t\tBrewHeader.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tBrewPanel.add(BrewHeader, \"cell 0 0,grow\");\n\t\t\n\t\t\n\t\t//Subtitle\n\t\tBrewSubtitle = new JLabel(\"Browse and edit the brew database.\");\n\t\tBrewSubtitle.setFont(new Font(\"Tahoma\", Font.ITALIC, 13));\n\t\tBrewPanel.add(BrewSubtitle, \"cell 0 1,growx,aligny top\");\n\t\t\n\t\tbtnPrintBrew = new JButton();\n\t\tbtnPrintBrew.setIcon(new ImageIcon(BrewPanel.class.getResource(\"/images/print.png\")));\n\t\tbtnPrintBrew.setToolTipText(\"Save currently selected brew data to printable .pdf\");\n\t\tBrewPanel.setVisible(true);\n \tbtnPrintBrew.setVisible(false);\n\t\tbtnPrintBrew.setEnabled(false);\n\t\tBrewPanel.add(btnPrintBrew, \"cell 1 0\");\n\t\t\n\t\t//Tabbed Pane\n\t\ttabbedBrewPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tBrewPanel.add(tabbedBrewPane, \"cell 0 2 2,grow\");\n\t\t\t\t\n\t\t\n\t\t//Brew Search Tab\n\t\tBrewSearchPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Search\", null, BrewSearchPanel.tabbedBrewSearchPanel, null);\n\t\t\n\t\t\n\t\t//Brew Data Tab\n\t\tBrewDataPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Brew Data\", null, BrewDataPanel.tabbedBrewDataPanel, null);\n\t\t\n\t\t\n\t\t//Brew Notes Tab\n\t\tBrewNotesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Notes\", null, BrewNotesPanel.tabbedBrewNotesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewPicturesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Pictures\", null, BrewPicturesPanel.tabbedBrewPicturesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewCostPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Costs\", null, BrewCostPanel.tabbedBrewCostPanel, null);\n\t\t\t\t\n\t\t\n\t\t//Add New Brew Tab\n\t\tBrewAddPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Add New Brew\", new ImageIcon(BrewPanel.class.getResource(\"/images/new.png\")), BrewAddPanel.tabbedBrewAddPanel, null);\n\t\t\n\t\t\n\t\t//Set some tabs disabled initially\n\t\ttabbedBrewPane.setEnabledAt(1, false);\n\t\ttabbedBrewPane.setEnabledAt(2, false);\n\t\ttabbedBrewPane.setEnabledAt(3, false);\n\t\ttabbedBrewPane.setEnabledAt(4, false);\n\t\t\n\t \t\n\t\t//Add it all to the main window\n\t\tLegacyApp.WineBrewDBFrame.getContentPane().add(BrewPanel, \"cell 0 0,grow\");\n\t\tBrewPanel.setVisible(false);\n\n\t\t\n\t\tBrewPanelStatus = \"Initialised\";\n\t\t\n\t\t\n\t\t//Add print button listener\n\t\tbtnPrintBrew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser c = new JFileChooser();\n\t\t\t int rVal = c.showSaveDialog(LegacyApp.WineBrewDBFrame);\n\t\t\t if (rVal == JFileChooser.APPROVE_OPTION) {\t\t\t \t \t \n\t\t\t\t\tString pdflocation = c.getCurrentDirectory().toString() + LegacyApp.OSSlash + c.getSelectedFile().getName() + \".pdf\";\n\t\t\t\t\tBrewPDF.createPDF(pdflocation);\t \t \n\t\t\t \t \n\t\t\t }\n\t\t\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t\t\t \t \n\t\t\t }\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttabbedBrewPane.addChangeListener(new ChangeListener() {\n\t\t // This method is called whenever the selected tab changes\n\t\t public void stateChanged(ChangeEvent evt) {\n\t\t JTabbedPane pane = (JTabbedPane)evt.getSource();\n\n\t\t // Get current tab\n\t\t int sel = pane.getSelectedIndex();\n\t\t if(sel == 0 || sel == 5){\n\t\t \tbtnPrintBrew.setVisible(false);\n\t\t \t\tbtnPrintBrew.setEnabled(false);\n\t\t }else{\n\t\t \tbtnPrintBrew.setVisible(true);\n\t\t \t\tbtnPrintBrew.setEnabled(true);\n\t\t }\n\t\t }\n\t\t});\n\t}",
"public GuiUrlGrabber() {\n initComponents();\n }",
"private void initComponents() {//GEN-BEGIN:initComponents\n\t\tpnlMain = new javax.swing.JPanel();\n\n\t\tsetTitle(\"JasperViewer\");\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\tpnlMain.setLayout(new java.awt.BorderLayout());\n\n\t\tgetContentPane().add(pnlMain, java.awt.BorderLayout.CENTER);\n\n\t\tpack();\n\t\tjava.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetSize(new java.awt.Dimension(400, 300));\n\t\tsetLocation((screenSize.width-400)/2,(screenSize.height-300)/2);\n\t}",
"public NewUserPanel() throws Exception {\n\t\tdatabase = new Database();\n\t\t\n\t\ttxtEmailAddress = new JTextField();\n\t\ttxtEmailAddress.setText(\"Email Address\");\n\t\ttxtEmailAddress.setColumns(10);\n\t\ttxtEmailAddress.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n txtEmailAddress.setText(\"\");\n }\n });\n\t\t\n\t\ttxtPassword = new JTextField();\n\t\ttxtPassword.setText(\"Password\");\n\t\ttxtPassword.setColumns(10);\n\t\ttxtPassword.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtPassword.setText(\"\");\n }\n });\n\t\t\n\t\ttxtConfirmPassword = new JTextField();\n\t\ttxtConfirmPassword.setText(\"Confirm Password\");\n\t\ttxtConfirmPassword.setColumns(10);\n\t\ttxtConfirmPassword.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtConfirmPassword.setText(\"\");\n }\n });\n\t\t\n\t\ttxtBirthdayxxxxxxxx = new JTextField();\n\t\ttxtBirthdayxxxxxxxx.setText(\"Birthday (YYYY-MM-DD)\");\n\t\ttxtBirthdayxxxxxxxx.setColumns(12);\n\t\ttxtBirthdayxxxxxxxx.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtBirthdayxxxxxxxx.setText(\"\");\n }\n });\n\t\t\n\t\ttxtDisplayName = new JTextField();\n\t\ttxtDisplayName.setText(\"Display Name\");\n\t\ttxtDisplayName.setColumns(10);\n\t\ttxtDisplayName.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtDisplayName.setText(\"\");\n }\n });\n\t\t\n\t\tJCheckBox chckbxMusicArtist = new JCheckBox(\"Music Artist\");\n\t\t\n\t\tJCheckBox chckbxProducer = new JCheckBox(\"Producer\");\n\t\t\n\t\tJButton btnNext = new JButton(\"Next ->\");\n\t\tbtnNext.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t //Check booleans\n\t\t\t\tif (chckbxMusicArtist.isSelected() && !chckbxProducer.isSelected()) {\n\t\t\t\t\t//Music artist only\n\t\t\t\t\tString recordCompany = JOptionPane.showInputDialog(getParent(),\n\t\t\t\t\t\t \"Who is your record company? (Leave blank if not signed).\");\n\t\t\t\t\t\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPreparedStatement insertArt = con.prepareStatement(\"INSERT INTO Artist VALUES ('\" + email + \"', '\" + recordCompany + \"');\");\n\t\t\t\t\t\t\tinsertArt.executeUpdate();\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else if (!chckbxMusicArtist.isSelected() && chckbxProducer.isSelected()) {\n\t\t\t\t\t//Producer only\n\t\t\t\t\tString companyName = JOptionPane.showInputDialog(getParent(),\n\t\t\t\t\t\t \"What is your company name?\");\n\t\t\t\t\tString contactInfo = JOptionPane.showInputDialog(getParent(), \n\t\t\t\t\t\t\t\"Contact Information?\");\n\t\t\t\t\t\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPreparedStatement insertPro = con.prepareStatement(\"INSERT INTO Producer VALUES ('\" + email + \"', '\" + companyName + \"', '\" + contactInfo + \"');\");\n\t\t\t\t\t\t\tinsertPro.executeUpdate();\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if (chckbxMusicArtist.isSelected() && chckbxProducer.isSelected()) {\n\t\t\t\t\t//Both\n\t\t\t\t\tJOptionPane.showMessageDialog(getParent(), \"Cannot be both a artist and a producer\");\n\t\t\t\t} else {\n\t\t\t\t\t//None\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t\t \"This email address has already been registered!\");\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJLabel lblNewUser = new JLabel(\"New User\");\n\t\t\n\t\tJButton button = new JButton(\"<- Back\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t //Return back to Login Screen\n\t\t\t\tLoginPanel back;\n\t\t\t\ttry {\n\t\t\t\t\tback = new LoginPanel();\n\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\tframe.setContentPane(back);\n\t\t\t\t\tframe.repaint();\n\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tGroupLayout groupLayout = new GroupLayout(this);\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(230, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(button)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t.addContainerGap())\n\t\t\t\t.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(35)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblNewUser)\n\t\t\t\t\t\t.addComponent(chckbxProducer)\n\t\t\t\t\t\t.addComponent(chckbxMusicArtist)\n\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t.addComponent(txtDisplayName, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtBirthdayxxxxxxxx, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(txtConfirmPassword, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtPassword, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtEmailAddress, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 371, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addContainerGap(44, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(20)\n\t\t\t\t\t.addComponent(lblNewUser)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(txtEmailAddress, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(txtPassword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtConfirmPassword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtBirthdayxxxxxxxx, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtDisplayName, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(chckbxMusicArtist)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(chckbxProducer)\n\t\t\t\t\t\t\t.addContainerGap(36, Short.MAX_VALUE))\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 189, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t\t\t\t.addComponent(button))\n\t\t\t\t\t\t\t.addContainerGap())))\n\t\t);\n\t\tsetLayout(groupLayout);\n\n\t}",
"public PrincipalPanel() {\n\t\tinitialize();\n\t}",
"public AboutPanel_V2() {\n init();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(51, 102, 0));\n\t\tframe.getContentPane().setForeground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 922, 661);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJLabel lblCredits = new JLabel(\"\");\n\t\tlblCredits.setForeground(new Color(255, 255, 255));\n\t\tlblCredits.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblCredits.setBounds(300, 108, 79, 27);\n\t\tframe.getContentPane().add(lblCredits);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\t\n\t\tpanel.setForeground(new Color(255, 0, 102));\n\t\tpanel.setBackground(new Color(51, 51, 51));\n\t\tpanel.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel.setBounds(36, 151, 855, 459);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(16, 18, 821, 424);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setFont(new Font(\"Chalkboard SE\", Font.PLAIN, 15));\n\t\ttextArea.setForeground(new Color(255, 255, 255));\n\t\tscrollPane.setViewportView(textArea);\n\t\ttextArea.setBackground(new Color(0, 51, 51));\n\t\t\n\t\t\n\t\ttextField_URL = new JTextField();\n\t\ttextField_URL.setBackground(new Color(255, 255, 255));\n\t\ttextField_URL.setBounds(87, 71, 292, 26);\n\t\tframe.getContentPane().add(textField_URL);\n\t\ttextField_URL.setColumns(10);\n\t\t\n\t\tJLabel lblUrl = new JLabel(\"URL\");\n\t\tlblUrl.setForeground(new Color(255, 255, 255));\n\t\tlblUrl.setFont(new Font(\"Chalkduster\", Font.BOLD, 15));\n\t\tlblUrl.setBounds(51, 76, 38, 16);\n\t\tframe.getContentPane().add(lblUrl);\n\t\t\n\t\ttextField_SEARCH = new JTextField();\n\t\ttextField_SEARCH.setBackground(new Color(255, 255, 255));\n\t\ttextField_SEARCH.setBounds(584, 71, 217, 26);\n\t\tframe.getContentPane().add(textField_SEARCH);\n\t\ttextField_SEARCH.setColumns(10);\n\t\t\n\t\tJLabel lblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setForeground(new Color(255, 255, 255));\n\t\tlblSearch.setFont(new Font(\"Chalkduster\", Font.PLAIN, 16));\n\t\tlblSearch.setBounds(521, 75, 61, 16);\n\t\tframe.getContentPane().add(lblSearch);\n\t\t\n\t\tJButton btnAz = new JButton(\"A-Z\");\n\t\tbtnAz.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnAz.setForeground(new Color(0, 0, 0));\n\t\tbtnAz.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortAtoZ(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAz.setBounds(97, 109, 94, 26);\n\t\tframe.getContentPane().add(btnAz);\n\t\t\n\t\tJLabel lblSorting = new JLabel(\"Sorting\");\n\t\tlblSorting.setForeground(new Color(255, 255, 255));\n\t\tlblSorting.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblSorting.setBounds(36, 108, 61, 30);\n\t\tframe.getContentPane().add(lblSorting);\n\t\t\n\t\tJButton btnZa = new JButton(\"Z-A\"); \n\t\tbtnZa.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnZa.setForeground(new Color(0, 0, 0));\n\t\tbtnZa.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortZtoA(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRankLastToFirst(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnZa.setBounds(185, 108, 94, 26);\n\t\tframe.getContentPane().add(btnZa);\n\t\t\n\t\t\n\t\tJButton btnSubmit = new JButton(\"Submit\"); // Submit button\n\t\tbtnSubmit.setBackground(new Color(153, 153, 153));\n\t\tbtnSubmit.setForeground(new Color(0, 0, 0));\n\t\tbtnSubmit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tlblCredits.setText(\"Credits\");\n\t\t\t\t\tbtnAz.setText(\"A-Z\");\n\t\t\t\t\tbtnZa.setText(\"Z-A\");\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tlblCredits.setText(\"Ratings\");\n\t\t\t\t\tbtnAz.setText(\"1-250\");\n\t\t\t\t\tbtnZa.setText(\"250-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSubmit.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnSubmit.setBounds(375, 71, 94, 29);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\t\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setForeground(new Color(0, 0, 0));\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSearch(textField_URL.getText(), textField_SEARCH.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndSearch(textField_URL.getText(), textField_SEARCH.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSearch.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnSearch.setBounds(800, 71, 91, 29);\n\t\tframe.getContentPane().add(btnSearch);\n\t\t\n\t\tJButton btnExport = new JButton(\"Export\");\n\t\tbtnExport.setForeground(new Color(0, 0, 0));\n\t\tbtnExport.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Coming Soon!\");\n\t\t\t\t\n\t\t\t\t/// add code for export method button in this part\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnExport.setBackground(new Color(216, 191, 216));\n\t\tbtnExport.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnExport.setBounds(800, 108, 91, 29);\n\t\tframe.getContentPane().add(btnExport);\n\t\t\n\t\tJLabel lblWebScrappingTool = new JLabel(\"Web Scrapping Tool for Cool People\");\n\t\tlblWebScrappingTool.setForeground(new Color(255, 255, 255));\n\t\tlblWebScrappingTool.setFont(new Font(\"Chalkduster\", Font.BOLD, 30));\n\t\tlblWebScrappingTool.setBounds(126, 6, 648, 53);\n\t\tframe.getContentPane().add(lblWebScrappingTool);\n\t\t\n\t\t\n\t\t\n\t\tJButton btnLowhigh = new JButton(\"Low-High\");\n\t\tbtnLowhigh.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnLowhigh.setForeground(new Color(0, 0, 0));\n\t\tbtnLowhigh.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortCreditsLowToHigh(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRatesLowToHigh(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLowhigh.setBounds(371, 110, 109, 25);\n\t\tframe.getContentPane().add(btnLowhigh);\n\t\t\n\t\tJButton btnHighlow = new JButton(\"High-Low\");\n\t\tbtnHighlow.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnHighlow.setForeground(new Color(0, 0, 0));\n\t\tbtnHighlow.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortCreditsHighToLow(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRatesHighToLow(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnHighlow.setBounds(473, 108, 109, 29);\n\t\tframe.getContentPane().add(btnHighlow);\n\t\t\n\t\t\n\t\t\n\t\ttextField_SAVE_AS = new JTextField();\n\t\ttextField_SAVE_AS.setBackground(new Color(255, 255, 255));\n\t\ttextField_SAVE_AS.setBounds(671, 109, 130, 26);\n\t\tframe.getContentPane().add(textField_SAVE_AS);\n\t\ttextField_SAVE_AS.setColumns(10);\n\t\t\n\t\tJLabel lblSaveAs = new JLabel(\"Save As\");\n\t\tlblSaveAs.setForeground(new Color(255, 255, 255));\n\t\tlblSaveAs.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblSaveAs.setBounds(608, 108, 61, 27);\n\t\tframe.getContentPane().add(lblSaveAs);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Created by Rachada Chairangsaris (Bay), Toby Odebo, Matt Kline\");\n\t\tlblNewLabel.setFont(new Font(\"Chalkduster\", Font.PLAIN, 13));\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setBounds(234, 615, 492, 16);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void setUpInfoPanel() {\n\t\t\n\t}",
"public AuthenticationPanel() {\n\t\tsuper();\n\t\tinitComponents();\n\t\tinitComponents2();\n\t}",
"public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}",
"@Override\n\tpublic void createContents(Panel mainPanel) {\n\t\tmainPanel.setLayout(new ColumnLayout(5));\n\t\tnew Label(mainPanel).setText(\"El jugador\");\n\t\tnew Label(mainPanel).setText(this.getModel().nombre);\n\t\tnew Label(mainPanel).setText(\"se retira con \");\n\t\tnew Label(mainPanel).bindValueToProperty(Jugador.FICHAS);\n\t\tnew Label(mainPanel).setText(\"$\");\n\t Button boton = new Button(mainPanel).setCaption(\"OK\");\n\t boton.onClick(new MessageSend(this,\"cerrar\"));\n\t \n\t \n\t \n\t}",
"private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}"
]
| [
"0.6287663",
"0.623816",
"0.61526656",
"0.6128851",
"0.60871536",
"0.6071955",
"0.6065365",
"0.6048173",
"0.6041403",
"0.5969679",
"0.5945859",
"0.59137136",
"0.590039",
"0.58988035",
"0.5882565",
"0.58765614",
"0.58699167",
"0.5855446",
"0.5850651",
"0.5850556",
"0.5841393",
"0.58348143",
"0.5829652",
"0.5822244",
"0.58205205",
"0.5798553",
"0.57937855",
"0.5791613",
"0.57887834",
"0.577429",
"0.57701373",
"0.5766925",
"0.5761179",
"0.57344633",
"0.57340217",
"0.57233125",
"0.5704191",
"0.5702368",
"0.5700995",
"0.56893146",
"0.5687715",
"0.5683183",
"0.56822133",
"0.5679562",
"0.56757367",
"0.56748074",
"0.5669757",
"0.56661654",
"0.5665586",
"0.56575555",
"0.56495965",
"0.5647889",
"0.5645584",
"0.56451404",
"0.56399965",
"0.5639142",
"0.5638945",
"0.56360304",
"0.56287754",
"0.5621914",
"0.5621526",
"0.5619269",
"0.5617099",
"0.5608831",
"0.5606784",
"0.5605487",
"0.56053436",
"0.56030416",
"0.56009525",
"0.5596352",
"0.5594602",
"0.55860436",
"0.55829036",
"0.55779666",
"0.55764097",
"0.55715203",
"0.55645937",
"0.5550603",
"0.5546241",
"0.55428123",
"0.5535793",
"0.5534639",
"0.55308855",
"0.55304986",
"0.5525368",
"0.5524448",
"0.5524314",
"0.5523991",
"0.5521712",
"0.5520297",
"0.55182844",
"0.5517893",
"0.5516268",
"0.5511446",
"0.5510172",
"0.5509241",
"0.5507437",
"0.5502216",
"0.5500881",
"0.5500336"
]
| 0.68157905 | 0 |
creating the panes within the screen | public void createAndShowGUI(JFrame frame) {
providerSideBar(frame.getContentPane(), pat);
topBarPatientInformation(frame.getContentPane(), pat);
patientReferralPanel(frame.getContentPane());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialPanes()\r\n\t{\n\t\t\t\tlmg.setLayout(null);\r\n\t\t\t\tlmg.setBounds(0, 0, 1280, 720);\r\n\t\t\t\t\r\n\t\t//adding child panes\r\n\t\t\t\t//World background pane\r\n\t\t\t\t\tlmg.add(wB, new Integer(0));\r\n\t\t\t\t//World pane\r\n\t\t\t\t\tlmg.add(w, new Integer(1));\r\n\t\t\t\t\t\r\n\t\t//DisplayPanel adds the layered pane which holds all child pane\r\n\t\t\t\tadd(lmg);\r\n\t}",
"private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}",
"protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}",
"public void setPanels() {\n\t\tframe.setPreferredSize(new Dimension(3000, 2000));\n\n\t\tcontainer.setBackground(lightGray);\n\t\tcontainer.setPreferredSize(new Dimension(2300, 120));\n\t\tcontainer.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tagePanel.setBackground(lightGray);\n\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\tagePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\theightPanel.setBackground(lightGray);\n\t\theightPanel.setPreferredSize(new Dimension(1200, 120));\n\t\theightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tweightPanel.setBackground(lightGray);\n\t\tweightPanel.setPreferredSize(new Dimension(850, 120));\n\t\tweightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\thairPanel.setBackground(lightGray);\n\t\thairPanel.setPreferredSize(new Dimension(900, 120));\n\t\thairPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\teyePanel.setBackground(lightGray);\n\t\teyePanel.setPreferredSize(new Dimension(900, 120));\n\t\teyePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tabilitySelectionPanel.setBackground(lightGray);\n\t\tabilitySelectionPanel.setPreferredSize(new Dimension(2400, 120));\n\t\tabilitySelectionPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tphysicalAbilityPanel.setBackground(lightGray);\n\t\tphysicalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tphysicalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tmentalAbilityPanel.setBackground(lightGray);\n\t\tmentalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tmentalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\t}",
"private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}",
"private void initStackPanes() {\n\t\tstackPanes=new ArrayList<StackPane>();\n\t\tstackPanes.add(c0);\n\t\tstackPanes.add(c1);\n\t\tstackPanes.add(c2);\n\t\tstackPanes.add(c3);\n\t\tstackPanes.add(c4);\n\t\tstackPanes.add(c5);\n\t\tstackPanes.add(c6);\n\t\tstackPanes.add(c7);\n\t\tstackPanes.add(c8);\n\t\tstackPanes.add(c9);\n\t\tstackPanes.add(c10);\n\t\tstackPanes.add(c11);\n\t\tstackPanes.add(c12);\n\t\tstackPanes.add(c13);\n\t\tstackPanes.add(c14);\n\t\tstackPanes.add(c15);\n\t\tstackPanes.add(c16);\n\t\tstackPanes.add(c17);\n\t\tstackPanes.add(c18);\n\t\tstackPanes.add(c19);\n\t\tstackPanes.add(c20);\n\t\tstackPanes.add(c21);\n\t\tstackPanes.add(c22);\n\t\tstackPanes.add(c23);\n\t\tstackPanes.add(c24);\n\t\tstackPanes.add(c25);\n\t\tstackPanes.add(c26);\n\t\tstackPanes.add(c27);\n\t\tstackPanes.add(c28);\n\t\tstackPanes.add(c29);\n\t\tstackPanes.add(c30);\n\t\tstackPanes.add(c31);\n\t\tstackPanes.add(c32);\n\t\tstackPanes.add(c33);\n\t\tstackPanes.add(c34);\n\t\tstackPanes.add(c35);\n\t\tstackPanes.add(c36);\n\t\tstackPanes.add(c37);\n\t\tstackPanes.add(c38);\n\t\tstackPanes.add(c39);\n\t\tstackPanes.add(c40);\n\t\tstackPanes.add(c41);\n\t\tstackPanes.add(c42);\n\t\tstackPanes.add(c43);\n\t\tstackPanes.add(c44);\n\t\tstackPanes.add(c45);\n\t\tstackPanes.add(c46);\n\t\tstackPanes.add(c47);\n\t}",
"public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}",
"private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}",
"public PaneOrganizer() {\n\t\t\n\t\t_root = new BorderPane();\n\t\t_game = new Game(_root);\n\t\tthis.setupButton();\n\t\t\n\t}",
"public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"private Pane createLayout() {\n root = new Pane();\n root.setPrefSize(Main.APP_W, Main.APP_H);\n\n // Logo\n ImageView logoView = new ImageView(new Image(\"res/snake.png\"));\n logoView.setFitHeight(500);\n logoView.setPreserveRatio(true);\n logoView.setLayoutX(40);\n logoView.setLayoutY(40);\n\n // Controls diagram\n ImageView controlsView = new ImageView(new Image(\"res/controls.png\"));\n controlsView.setFitHeight(100);\n controlsView.setPreserveRatio(true);\n controlsView.setLayoutX(350);\n controlsView.setLayoutY(40);\n\n // Control instructions\n Text keys = new Text(\"Use arrow keys to direct the snake \\nspacebar to pause / resume the game\");\n keys.setFont(Font.font(\"Calibri\", FontWeight.BOLD, 20));\n keys.setFill(Color.BLUE);\n keys.setLayoutX(470);\n keys.setLayoutY(90);\n\n // Play button image\n ImageView playView = new ImageView(new Image(\"res/play.png\"));\n playView.setFitHeight(150);\n playView.setPreserveRatio(true);\n playView.setLayoutX(320);\n playView.setLayoutY(170);\n\n // Click here instructions\n // Control instructions\n Text clickHere = new Text(\"Click to play\");\n clickHere.setFont(Font.font(\"Calibri\", FontWeight.BOLD, 20));\n clickHere.setFill(Color.BLUE);\n clickHere.setLayoutX(348);\n clickHere.setLayoutY(348);\n\n // Background\n ImageView backgroundView = new ImageView(Main.BACKGROUND_IMAGE);\n\n // Add elements to the root\n root.getChildren().setAll(backgroundView, logoView, controlsView, keys, playView, clickHere);\n\n return root;\n }",
"private void putPanels() {\n\t\tfrmUserDesign.getContentPane().add(userDesignPanel, \"userDesign\");\n\t\tfrmUserDesign.getContentPane().add(vendasClass.getVendas(), \"Vendas\");\n\t\tfrmUserDesign.getContentPane().add(maquinaClass.getMaquinas(), \"Maquinas\");\n\t\tfrmUserDesign.getContentPane().add(funcionarioClasse.getFuncionarios(), \"Funcionarios\");\n\t\tfrmUserDesign.getContentPane().add(produtoClass.getProdutos(), \"Produtos\");\n\t\tfrmUserDesign.getContentPane().add(chart.getGrafico(), \"Grafico\");\n\t\tcl.show(frmUserDesign.getContentPane(), \"userDesign\");// mostrar o main menu\n\t}",
"private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}",
"private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }",
"private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }",
"private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }",
"public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}",
"private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }",
"public void agregarPaneles(){\n vistaInicial.jpIzquierda.removeAll();\n this.limpiarPaneles();\n vistaInicial.jpIzquierda.add(panelIngresoControlador.getPanelIngreso());\n vistaInicial.jpDerecha.add(panelBusquedaControlador.getPanelBusqueda());\n vistaInicial.jpCentral.add(panelLibro);\n vistaInicial.jpIzquierda.repaint();\n this.actualizarPaneles();\n }",
"private void initializePresentation() {\r\n viewRankingAttemptFX = new ViewRankingAttemptFX(this);\r\n viewRankingPlayerFX = new ViewRankingPlayerFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewProblemListFX = new ViewProblemListFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewMenuFX = new ViewMenuFX(this);\r\n viewSettingsFX = new ViewSettingsFX(this);\r\n viewGenerateFX = new ViewGenerateFX(this);\r\n viewAttemptFX = new ViewAttemptFX(this);\r\n viewAttemptListFX = new ViewAttemptListFX(this);\r\n\r\n viewsFX.add(viewLoginFX);\r\n viewsFX.add(viewRankingAttemptFX);\r\n viewsFX.add(viewRankingPlayerFX);\r\n viewsFX.add(viewRegisterFX);\r\n viewsFX.add(viewProblemListFX);\r\n viewsFX.add(viewMenuFX);\r\n viewsFX.add(viewSettingsFX);\r\n viewsFX.add(viewGenerateFX);\r\n viewsFX.add(viewAttemptFX);\r\n viewsFX.add(viewAttemptListFX);\r\n\r\n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}",
"public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\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\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\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}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}",
"private void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }",
"private void createLabelsPane() {\n\t\tVBox labelsPane = new VBox();\n\t\tlabelsPane.setAlignment(Pos.CENTER);\n\t\tlabelsPane.setPrefSize(200,100);\n\t\tButton quit = new Button(\"Quit\");\n\t\tButton restart = new Button(\"Restart\");\n\t\tHBox buttons = new HBox();\n\t\tquit.setFocusTraversable(false);\n\t\trestart.setFocusTraversable(false);\n\t\tbuttons.getChildren().addAll(quit, restart);\n\t\tbuttons.setSpacing(15);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\t//Here we set the spacing between the buttons and the border\n\t\tbuttons.setMargin(quit, new Insets(5,5,10,5));\n\t\tbuttons.setMargin(restart, new Insets(5,5,10,5));\n\t\tquit.setOnAction(new QuitHandler());\n\t\trestart.setOnAction(new RestartHandler());\n\t\tLabel instructions = new Label(\"Use arrows keys to move Pacman, P to pause, and U to unpause.\");\n\t\tinstructions.setFont(new Font(\"Arial Black\", 16));\n\t\t_instructions1 = new Label(\"Choose difficulty at beginning of game. Diffculty: \" + _difficultyLevel);\n\t\t_instructions1.setFont(new Font(\"Arial Black\", 16));\n\t\tlabelsPane.setSpacing(5);\n\t\tPaneOrganizer.this.createButtonsPane(labelsPane);\n\t\tlabelsPane.getChildren().addAll(instructions, _instructions1, buttons);\n\t\tlabelsPane.setMargin(quit, new Insets(5,5,10,5));\n\t\tlabelsPane.setStyle(\"-fx-background-color: gray;\");\n\t\t_root.setBottom(labelsPane);\n\t}",
"Board createLayout();",
"@Override\n\tpublic Perspective createPerspective() {\n\t\tif (app == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// return the default perspective in case we're creating new preferences of\n\t\t// a virgin application.\n\t\tEuclidianView ev = app.getEuclidianView1();\n\t\tPerspective perspective = new Perspective();\n\n\t\tif (dockManager.getRoot() != null) {\n\t\t\t// get the information about the split panes\n\t\t\tDockSplitPaneW.TreeReader spTreeReader = new DockSplitPaneW.TreeReader(\n\t\t\t\t\tapp);\n\t\t\tperspective.setSplitPaneData(\n\t\t\t\t\tspTreeReader.getInfo(dockManager.getRoot()));\n\n\t\t\t// get the information about the dock panels\n\t\t\tDockPanelW[] panels = dockManager.getPanels();\n\t\t\tDockPanelData[] dockPanelInfo = new DockPanelData[panels.length];\n\n\t\t\tfor (int i = 0; i < panels.length; ++i) {\n\t\t\t\t// just the width of the panels isn't updated every time the\n\t\t\t\t// panel\n\t\t\t\t// is updated, so we have to take care of this by ourself\n\t\t\t\tif (panels[i].isVisible()) {\n\t\t\t\t\tDockSplitPaneW parent = panels[i].getParentSplitPane();\n\t\t\t\t\tif (parent != null && parent\n\t\t\t\t\t\t\t.getOrientation() == SwingConstants.HORIZONTAL_SPLIT) {\n\t\t\t\t\t\tpanels[i].setEmbeddedSize(panels[i].getWidth());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpanels[i].setEmbeddedSize(panels[i].getHeight());\n\t\t\t\t\t}\n\t\t\t\t\tpanels[i].setEmbeddedDef(panels[i].calculateEmbeddedDef());\n\t\t\t\t}\n\t\t\t\tdockPanelInfo[i] = panels[i].createInfo();\n\t\t\t}\n\t\t\t// Sort the dock panels as the entries with the smallest amount of\n\t\t\t// definition should\n\t\t\t// be read first by the loading algorithm.\n\t\t\tArrays.sort(dockPanelInfo, (o1, o2) -> o2.getEmbeddedDef().length()\n\t\t\t\t\t- o1.getEmbeddedDef().length());\n\n\t\t\tperspective.setDockPanelData(dockPanelInfo);\n\t\t} else {\n\t\t\tperspective.setSplitPaneData(\n\t\t\t\t\tgetDefaultPerspectives(Perspective.GEOMETRY - 1)\n\t\t\t\t\t\t\t.getSplitPaneData());\n\t\t\tperspective.setDockPanelData(\n\t\t\t\t\tgetDefaultPerspectives(Perspective.GEOMETRY - 1)\n\t\t\t\t\t\t\t.getDockPanelData());\n\t\t}\n\t\tperspective.setToolbarDefinition(((GuiManagerW) app.getGuiManager())\n\t\t\t\t.getGeneralToolbarDefinition());\n\t\tperspective.setShowToolBar(app.showToolBar());\n\t\tperspective.setShowAxes(ev.getShowXaxis() && ev.getShowYaxis());\n\t\tperspective.setShowGrid(ev.getShowGrid());\n\t\tperspective.setShowInputPanel(app.showAlgebraInput());\n\t\tperspective.setShowInputPanelCommands(app.showInputHelpToggle());\n\t\tperspective.setInputPosition(app.getInputPosition());\n\t\t\n\t\tperspective.setToolBarPosition(app.getToolbarPosition());\n\t\t//perspective.setShowToolBarHelp(app.showToolBarHelp());\n\t\t//perspective.setShowDockBar(app.isShowDockBar());\n\t\t//perspective.setDockBarEast(app.isDockBarEast());\n\n\t\tperspective.setLabelingStyle(ev.getSettings().getDefaultLabelingStyle());\n\n\t\treturn perspective;\n\t}",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}",
"protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}",
"public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }",
"public void pridajPane() {\n\t\tmojPane.setAlignment(Pos.CENTER);\n\n\t\tmojPane.getChildren().addAll(informacia, vyberPredmetov, tabulkaZiak);\n\t}",
"private void addGUIComponents() {\n\t\t\n\t\t/*length panel*/\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setBackground(new Color(109,109,109));\n\t\tGridLayout layout = new GridLayout(1,2);\n\t\tlayout.setHgap(20);\n\t\tlengthPanel.setLayout(layout);\n\n\t\tJPanel lengthLeftPan = new JPanel();\n\t\tlengthLeftPan.setBackground(new Color(109,109,109));\n\t\tlengthLeftPan.setLayout(new GridLayout(9,2));\n\t\tlengthLeftPan.add(_X_A0_lb);\n\t\tlengthLeftPan.add(_X_A0);\n\t\tlengthLeftPan.add(_Y_A0_lb);\n\t\tlengthLeftPan.add(_Y_A0);\n\t\tlengthLeftPan.add(_X_d_lb);\n\t\tlengthLeftPan.add(_X_d);\n\t\tlengthLeftPan.add(_Y_d_lb);\n\t\tlengthLeftPan.add(_Y_d);\n\t\tlengthLeftPan.add(_X_s_lb);\n\t\tlengthLeftPan.add(_X_s);\n\t\tlengthLeftPan.add(_Y_s_lb);\n\t\tlengthLeftPan.add(_Y_s);\n\t\tlengthLeftPan.add(_ro_min_lb);\n\t\tlengthLeftPan.add(_ro_min);\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\t\tlengthLeftPan.add(new JLabel(\"\"));\n\n\t\tJPanel lengthRightPan = new JPanel(new GridLayout(10,2));\n\t\tlengthRightPan.setBackground(new Color(109,109,109));\n\t\tlengthRightPan.add(_L3_lb);\n\t\tlengthRightPan.add(_L3);\n\t\tlengthRightPan.add(_L31_lb);\n\t\tlengthRightPan.add(_L31);\n\t\tlengthRightPan.add(_L3p_lb);\n\t\tlengthRightPan.add(_L3p);\n\t\tlengthRightPan.add(_L4_lb);\n\t\tlengthRightPan.add(_L4);\n\t\tlengthRightPan.add(_L5_lb);\n\t\tlengthRightPan.add(_L5);\n\t\tlengthRightPan.add(_L1_lb);\n\t\tlengthRightPan.add(_L1);\n\t\tlengthRightPan.add(_rR_lb);\n\t\tlengthRightPan.add(_rR);\n\t\tlengthRightPan.add(_rG_lb);\n\t\tlengthRightPan.add(_rG);\n\t\tlengthRightPan.add(_ep_lb);\n\t\tlengthRightPan.add(_ep);\n\t\tlengthRightPan.add(_y_lb);\n\t\tlengthRightPan.add(_y);\n\t\t\n\t\tlengthPanel.add(lengthLeftPan);\n\t\tlengthPanel.add(lengthRightPan);\n\t\t\n\t\t/*angle panel*/\n\t\tJPanel anglePanel = new JPanel(new GridLayout(5,2));\n\t\tanglePanel.setBackground(new Color(109,109,109));\n\t\tanglePanel.add(_delta_lb);\n\t\tanglePanel.add(_delta);\n\t\tanglePanel.add(_gama_lb);\n\t\tanglePanel.add(_gama);\n\t\tanglePanel.add(_miu_an_min_lb);\n\t\tanglePanel.add(_miu_an_min);\n\t\tanglePanel.add(_miu_ab_min_lb);\n\t\tanglePanel.add(_miu_ab_min);\n\t\tanglePanel.add(_n_lb);\n\t\tanglePanel.add(_n);\n\t\t\n\t\t\n\t\t/*Title label for the length panel*/\n\t\tJLabel lengthPanelTitle = new JLabel(LanguageFactory.getInstance().getExpresion(LENGTH_TITLE_NAME));\n\t\t/*Title label for the angle panel*/\n\t\tJLabel anglePanelTitle = new JLabel(LanguageFactory.getInstance().getExpresion(ANGLE_TITLE_NAME));\n\t\t\n\t\t/*Wave radius textbox label*/\n\t\tJLabel waveRadius = new JLabel(LanguageFactory.getInstance().getExpresion(WAVE_RADIUS_LABEL_NAME));\n\t\t/*Seiben (???) radius textbox label*/\n\t\tJLabel seibenRadius = new JLabel(LanguageFactory.getInstance().getExpresion(SEIBEN_RADIUS_LABEL_NAME));\n\t\t\n\t\t\n\t\tJPanel radiusPan = new JPanel(new GridLayout(2,2));\n\t\tradiusPan.setBackground(new Color(109,109,109));\n\t\tradiusPan.add(waveRadius);\n\t\tradiusPan.add(_waveRad);\n\t\tradiusPan.add(seibenRadius);\n\t\tradiusPan.add(_siebenRad);\n\t\t\n\t\t\n\t\tJPanel leftPan = new JPanel(new GridBagLayout());\n\t\tleftPan.setBorder(BorderFactory.createRaisedBevelBorder());\n\t\tleftPan.setBackground(new Color(109,109,109));\n\t\tleftPan.add(lengthPanelTitle, new GBC(0,0).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0,10,50,10));\n\t\tleftPan.add(lengthPanel, new GBC(0,1).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0, 10, 0, 10));\n\t\tleftPan.add(radiusPan, new GBC(0,2).setFill(GBC.NONE).setAnchor(GBC.NORTHWEST).setInsets(20, 10, 0, 10));\n\t\t\n\t\tJPanel rightPan = new JPanel(new GridBagLayout());\n\t\trightPan.setBorder(BorderFactory.createRaisedBevelBorder());\n\t\trightPan.setBackground(new Color(109,109,109));\n\t\trightPan.add(anglePanelTitle, new GBC(1,0).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0,10,50,10));\n\t\trightPan.add(anglePanel, new GBC(1,1).setFill(GBC.NONE).setAnchor(GBC.NORTH).setInsets(0, 10, 0, 10));\n\t\t\n\t\t/*adding the two panels to the layout*/\n\t\tJPanel mainPan = new JPanel(new GridBagLayout());\n\t\tmainPan.add(leftPan, new GBC(0, 0).setFill(GBC.VERTICAL).setAnchor(GBC.NORTH).setInsets(0, 0, 0, 20).setWeight(100, 100));\n\t\tmainPan.add(rightPan, new GBC(1, 0).setFill(GBC.VERTICAL).setAnchor(GBC.NORTH).setInsets(0, 20, 0, 0).setWeight(100, 100));\n\t\tmainPan.add(_drawing_btn, new GBC(2, 0, 1, 2).setFill(GBC.NONE).setAnchor(GBC.NORTH));\n\t\t\n\t\tsetLayout(new BorderLayout());\n\t\tadd(mainPan, BorderLayout.CENTER);\n\t\tsetPreferredSize(new Dimension(800, 400));\n\t\tsetSize(getPreferredSize());\n\n\t}",
"private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }",
"public PaneOrganizer() {\n\t\t_root = new BorderPane(); // new border pane\n\t\t\n\t\tLabel score = new Label(\"Score: 0\"); // score label\n\t\tscore.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tLabel lives = new Label(\"Lives: 3\"); // lives label\n\t\tlives.setTextFill(Color.WHITE); // text color\n\t\t\n\t\tGame game = new Game(score, lives); // game pane\n\t\tHBox hbox = new HBox(); // hbox to organize the quit button\n\n\t\tButton quit = new Button(\"Quit\"); // Creating quit button\n\t\tquit.setOnAction(new QuitHandler()); // add the quit handler\n\t\tquit.minHeight(Constants.QUIT_HEIGHT); // sizing\n\n\t\thbox.getChildren().addAll(quit, score, lives); // add components to hbox\n\t\thbox.setSpacing(20);\n\t\t\n\t\t_root.setCenter(game); // set the game pane\n\t\t_root.setBottom(hbox); // set the hbox\n\t\t_root.setStyle(\"-fx-background-color: black\");\n\t}",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new GridLayoutManager(3, 5, new Insets(0, 5, 5, 5), -1, -1));\n worldMap = new JPanel();\n worldMap.setLayout(new GridBagLayout());\n worldMap.setBackground(new Color(-1250068));\n rootPanel.add(worldMap, new GridConstraints(1, 0, 2, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(500, 500), null, null, 0, false));\n simulationTime = new JLabel();\n simulationTime.setText(\"0s\");\n rootPanel.add(simulationTime, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Simulation time:\");\n rootPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n rootPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n averageWaitingTime = new JLabel();\n averageWaitingTime.setText(\"0s\");\n rootPanel.add(averageWaitingTime, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Average waiting time\");\n rootPanel.add(label2, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}",
"protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}",
"private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}",
"public Parent createContent(){\n Pane root = new Pane();\n root.setPrefSize((dimension * tileSize)+(tileSize*4)+menuWidth, (dimension * tileSize)+(tileSize*4));\n root.getChildren().addAll(tileGroup);\n TopOfBoard top = new TopOfBoard();\n Parent controlsAndMovement = top.newScene();\n root.getChildren().addAll(controlsAndMovement);\n\n // setting main game board template\n for (int i = 0; i< dimension; i++){\n for (int j = 0; j< dimension; j++){\n if (i==0||i== dimension -1||j==0||j== dimension -1){\n if (i==0) {\n if (j==0){\n tileInit(i, j, tileGroup, tileSize * 2, tileSize * 2, j * tileSize, i * tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, i * tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize*2, tileSize, (j * tileSize)+tileSize, i * tileSize);\n }\n }\n else if (i== dimension -1){\n if (j==0){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, j * tileSize, (i * tileSize)+tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, (i * tileSize)+tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize * 2, tileSize, (j * tileSize) + tileSize, (i * tileSize) + tileSize);\n }\n }\n else if (j==0){\n tileInit(i, j, tileGroup, tileSize, tileSize*2, j * tileSize, (i * tileSize)+(tileSize));\n\n }\n else if (j== dimension -1) {\n tileInit(i, j, tileGroup, tileSize, tileSize*2, (j * tileSize)+(tileSize), (i * tileSize)+tileSize);\n }\n\n }\n }\n\n // Setting player score board\n for (int q = 1; q <= numOfPlayers; q++){\n if (q == 1){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*3);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*3.5), \"Player 1 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 2){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*5);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*5.5), \"Player 2 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 3){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*7);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*7.5), \"Player 3 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 4){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*9);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*9.5), \"Player 4 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n\n }\n\n for (int r = 1; r <= numOfPlayers; r++) {\n if (r == 1) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(0);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 0.5), \"Player 1 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 2) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 3);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 3.5), \"Player 2 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 3) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 6);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 6.5), \"Player 3 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 4) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 9);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 9.5), \"Player 4 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n\n }\n }\n addImg();\n }\n return root;\n }",
"private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }",
"public void setupSidePanels() {\n\t\tURL url = getClass().getResource(\".coredata/background/LeftTeam.png\");\n\t\tleftTeamIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\tleftTeam = new JLabel(leftTeamIcon);\n\t\turl = getClass().getResource(\".coredata/background/RightTeam.png\");\n\t\trightTeamIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\trightTeam = new JLabel(rightTeamIcon);\n\t\tleftTeam.setPreferredSize(new Dimension(273, 501));\n\t\trightTeam.setPreferredSize(new Dimension(273, 501));\n\t\tscroll.setPreferredSize(new Dimension(724, 484));\n\t\tleftPanel = new JLayeredPane();\n\t\tleftPanel.setPreferredSize(new Dimension(273, 501));\n\t\tleftTeam.setBounds(0, 0, 273, 501);\n\t\tleftPanel.add(leftTeam, new Integer(0));\n\t\tadd(leftPanel, BorderLayout.LINE_START);\n\t\trightPanel = new JLayeredPane();\n\t\trightPanel.setPreferredSize(new Dimension(273, 501));\n\t\trightTeam.setBounds(0, 0, 273, 501);\n\t\trightPanel.add(rightTeam, new Integer(0));\n\t\tadd(rightPanel, BorderLayout.LINE_END);\n\t}",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewTaskPane textListPane = new NewTaskPane();\n\t\trootPane = new HomePane(new MainLeftPane(),textListPane);\t\t\n\t}",
"private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}",
"private void createConent() {\n\t\tdockPanel = new DockLayoutPanel(Unit.PX);\n\t\tribbonBarPanel = new RibbonBarContainer();\n\t\tbattleMatCanvasPanel = new SimpleLayoutPanel();\n\t\tmainPanel = new LayoutPanel();\n\t\tmainPanel.setSize(\"100%\", \"100%\");\n\t\tbattleMatCanvas = new BattleMatCanvas();\n\t\tbattleMatCanvasPanel.clear();\n\t\tbattleMatCanvasPanel.add(battleMatCanvas);\n\t\teast.setSize(\"100%\", \"100%\");\n\t\teast.add(assetManagementPanel);\n\t\tsplitPanel = new SplitLayoutPanel() {\n\t\t\t@Override\n\t\t\tpublic void onResize() {\n\t\t\t\tsuper.onResize();\n\t\t\t\tbattleMatCanvas.onResize();\n\t\t\t};\n\t\t};\n\t\tmainPanel.add(splitPanel);\n\t\tdockPanel.clear();\n\t\tdockPanel.addNorth(ribbonBarPanel, Constants.RIBBON_BAR_SIZE);\n\t\tdockPanel.add(mainPanel);\n\t\t// MUST CALL THIS METHOD to set the constraints; if you don't not much\n\t\t// will be displayed!\n\t\tdockPanel.forceLayout();\n\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\tpublic void onResize(final ResizeEvent event) {\n\t\t\t\tdoWindowResize(event);\n\t\t\t}\n\t\t});\n\t}",
"public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}",
"protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }",
"private void createGrid(int numRows) {\n // Creates a grid so that we can display the animation. We will see\n // other layout panes in the lectures.\n grid = new GridPane();\n\n // We need to create a 2D array of javafx Buttons that we will\n // add to the grid. The 2D array makes it much easier to change\n // the colour of the buttons in the grid; easy lookup using\n // 2D indicies. Note that we make this read-only for this display\n // onlt grid. If you go for flair marks, then I'd imagine that you\n // could create something similar that allows you to edits frames\n // in the footage.\n gridArray = new Button[numRows][numRows];\n Button displayButton = null;\n for (int row = 0; row < numRows; row++) {\n for (int col = 0; col < numRows; col++) { // The display is square\n displayButton = new Button();\n gridArray[row][col] = displayButton;\n displayButton.setDisable(true);\n grid.add(displayButton, col, row);\n }\n }\n\n // Create a scene to hold the grid of buttons\n // The stage will \"shrink wrap\" around the grid of buttons,\n // so we don't need to set its height and width.\n scene = new Scene(grid);\n stage.setScene(scene);\n scene.getStylesheets().add(Animator.class.getResource(\"styling.css\").toExternalForm());\n\n // Make it resizable so that the window shrinks to fit the scene grid\n stage.setResizable(true);\n stage.sizeToScene();\n // Raise the curtain on the stage!\n stage.show();\n // Stop the user from resizing the window\n stage.setResizable(false);\n }",
"@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }",
"public void initView() {\n JPanel pane= new JPanel();\n panel = new JPanel();\n this.getFile(pane);\n JScrollPane scp = new JScrollPane(pane);\n scp.setPreferredSize(new Dimension(500, 280));\n scp.setVisible(true);\n enter.setPreferredSize(new Dimension(100, 50));\n enter.setVisible(true);\n enter.setActionCommand(\"enter\");\n enter.addActionListener(this);\n send.setPreferredSize(new Dimension(80, 50));\n send.setVisible(true);\n send.setActionCommand(\"sendOptions\");\n send.addActionListener(this);\n send.setEnabled(true);\n back.setVisible(true);\n back.setActionCommand(\"back\");\n back.addActionListener(this);\n back.setPreferredSize(new Dimension(80, 50));\n \n panel.add(scp);\n panel.add(send);\n panel.add(enter);\n panel.add(back);\n Launch.frame.add(panel);\n }",
"private void addPanels() {\n\t\tthis.add(dicePanel, BorderLayout.WEST);\n\t\tthis.add(inputPanel, BorderLayout.CENTER);\n\t\tthis.add(infoPanel, BorderLayout.SOUTH);\n\t}",
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }",
"protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}",
"private void createTileViews() {\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tTileView tv = new TileView(context, row, column);\n\t\t\t\ttileViews.add(tv);\n\t\t\t\ttableRow.get(row).addView(tv);\n\t\t\t} // end column\n\t\t\tparentLayout.addView(tableRow.get(row));\n\t\t} // end row\n\n\t}",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"public void setFrames(){\n\n format = new DecimalFormat(\"#.##\");\n\n //==Background panels for layout===\n JPanel panel = new JPanel();\n panel.setBounds(1157, 75, 400, 800);\n panel.setBackground(Color.WHITE);\n panel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n panel.setVisible(true);\n main.add(panel);\n\n JPanel topPanel = new JPanel();\n topPanel.setBounds(0, 0, 1157, 75);\n topPanel.setBorder(BorderFactory.createLineBorder(Color.black, 2));\n main.add(topPanel);\n\n JPanel rightPanel = new JPanel();\n rightPanel.setBounds(0, 75, 300, 500);\n rightPanel.setBackground(Color.WHITE);\n rightPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(rightPanel);\n\n JPanel speedPanel = new JPanel();\n speedPanel.setBounds(385, 510, 325, 250);\n speedPanel.setBackground(Color.WHITE);\n speedPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(speedPanel);\n\n JPanel authPanel = new JPanel();\n authPanel.setBounds(735, 510, 300, 250);\n authPanel.setBackground(Color.WHITE);\n authPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(authPanel);\n\n center = new JPanel();\n center.setLayout(new GridLayout(1,2));\n\n gauge = new Gauge(0.0, 100.0, Gauge.SEMI_CIRCLE);\n gauge.setBackground(Color.WHITE);\n gauge.setForeground(Color.BLACK);\n gauge.setHighlight(Color.DARK_GRAY);\n gauge.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 14));\n center.add(gauge);\n center.setBounds(450, 100, 400, 300);\n\n main.add(center);\n\n main.setVisible(true);\n }",
"private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}",
"public void initProductionSpaces(){\n\n if (productionSpaces != null){\n for(int i = 0;i<3;i++){\n if (productionSpaces[i] != null)\n this.remove(productionSpaces[i]);\n }\n }\n\n productionSpaces = new JLayeredPane[3];\n productionCards = new JLabel[3][3];\n for(int i = 0;i<3;i++){\n productionSpaces[i] = new JLayeredPane();\n\n productionSpaces[i].setSize(psWidth,psHeight);\n productionSpaces[i].setBounds(psx[i],psy,psWidth,psHeight);\n\n //productionSpaces[i].setBackground(Color.WHITE);\n productionSpaces[i].setOpaque(false);\n add(productionSpaces[i]);\n\n }\n\n }",
"private void setupPanels() {\n for (String className : PANEL_CLASS_NAMES) {\n try {\n Class<?> c = Class.forName(className);\n Object p = c.newInstance();\n VisualizationPanel panel = (VisualizationPanel) p;\n panel.setGcTraceSet(gcTraceSet);\n gcTraceSet.addListener(panel.getListener());\n panels.add(panel);\n tabbedPane.addTab(panel.getPanelName(), panel.getPanel());\n } catch (ClassNotFoundException e) {\n ErrorReporting.warning(className + \" not found\");\n } catch (InstantiationException e) {\n ErrorReporting.warning(\"could not instantiate \" + className);\n } catch (IllegalAccessException e) {\n ErrorReporting.warning(\"could not access constructor of \" + className);\n } catch (ClassCastException e) {\n ErrorReporting.warning(\"could not cast \" + className + \" to VisualizationPanel\");\n }\n }\n ErrorReporting.fatalError(panels.size() > TRACE_MANAGEMENT_PANEL_INDEX,\n \"There must be at least one panel set up, \" +\n \"the trace management panel.\");\n try {\n traceManagementPanel =\n (TraceManagementPanel) panels.get(TRACE_MANAGEMENT_PANEL_INDEX);\n } catch (ClassCastException e) {\n ErrorReporting.fatalError(\"could not cast panel with index \" +\n TRACE_MANAGEMENT_PANEL_INDEX + \" to TraceManagementPanel\");\n }\n ErrorReporting.fatalError(traceManagementPanel != null,\n \"The trace management panel should not be null\");\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}",
"private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }",
"private Pane getGridPane ()\r\n {\r\n GridPane gridPane = new GridPane();\r\n \r\n int i = 0;\r\n for(Button b : this.buttons)\r\n {\r\n gridPane.add( b, i*(i+(int)b.getWidth()), 0);\r\n i++;\r\n }\r\n \r\n return gridPane;\r\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }",
"private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }",
"void createPieceViews() {\n\t pieceViews = new ArrayList<ImageView>();\n\t for (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.add(new ImageView(this));\n\t\t}\n\t}",
"@Override\n\tprotected void createShell() {\n\t\tRectangle bounds = new Rectangle(100, 50, 600, 510);\n\t\tString shellTxt = \"Cohorts Report\";\n\t\tbuildShell(shellTxt, bounds);\n\t\t// create the composites\n\t\tcreateMyGroups();\n\t}",
"public void setUpView() {\n\n\n\t\t//Make the components\n\t\tinputAnswer = new Button(\"Submit\");\n\t\tbegin\t\t= new Button(\"Begin level \" + gameLevel);\n\t\tblueButt\t= new Button();\n\t\tredButt = new Button();\n\t\tgreenButt = new Button();\n\t\tyellowButt = new Button();\n\t\tclear = new Button(\"Clear\");\n\t\tguessArea = new TextArea();\n\t\ttopPan = new Panel();\n\t\tinstructLab = new Label(\"Welcome to the great guessing game. Try and finish it, its fun honest!\");\n\t\treset = new Button(\"Start again?\");\n\t\tpointsLab = new Label(\"Points: \" + points);\n\t\t\n\t\t//Change the font\n\t\tFont font = new Font(\"Verdana\", Font.BOLD, 18);\n\t\tinstructLab.setFont(font);\n\t\t\n\t\t//Add the label to the top panel\n\t\ttopPan.add(instructLab);\n\t\t\n\t\t//Set layout\n\t\tsetLayout(new MigLayout());\n\t\n\t\t//Set the size of the components\n\t\tblueButt.setPreferredSize (new Dimension(60, 50));\n\t\tredButt.setPreferredSize (new Dimension(60, 50));\n\t\tgreenButt.setPreferredSize (new Dimension(60, 50));\n\t\tyellowButt.setPreferredSize(new Dimension(60, 50));\n\t\tguessArea.setPreferredSize (new Dimension(50, 10));\n\t\tpointsLab.setPreferredSize (new Dimension(100, 30));\n\t\t\n\t\t//Turn the submit button of until there is something to submit\n\t\tinputAnswer.setEnabled(false);\n\n\t\t//Set the button colour\n\t\tblueButt.setBackground (Color.blue);\n\t\tredButt.setBackground (Color.red);\n\t\tgreenButt.setBackground (Color.green);\n\t\tyellowButt.setBackground(Color.yellow);\n\t\t\n\t\t//Hide the reset button until it is needed\n\t\treset.setVisible(false);\n\n\t\t//Add the components to the applet\n\t\tadd(topPan, \"wrap\");\n\t\tadd(redButt, \"cell 0 1\");\n\t\tadd(blueButt, \"cell 0 1\");\t\t\n\t\tadd(greenButt, \"cell 0 1\");\n\t\tadd(yellowButt, \"cell 0 1\");\n\t\tadd(begin, \"wrap\");\n\t\tadd(guessArea, \"wrap\");\n\t\tadd(inputAnswer,\"split 2\");\t\n\t\tadd(clear, \"gap left 340, cell 0 2, wrap\");\n\t\tadd(reset, \t\t\"wrap\");\n\t\tadd(pointsLab);\n\n\n\n\t\t//If the status bar is present show the user there level\n\t\tshowStatus(\"You are on level: \" + gameLevel);\n\n\n\t\t//Set the size of the applet\n\t\tsetSize(new Dimension(1000, 1000));\n\n\t}",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // Make activity fullscreen\n\n // SIEMPRE SIEMPRE CREAMOS ESTA COSA, PARA QUE TODOO LO DEMAS JALE\n final Context context = this;\n AbsoluteLayout windowsCanvas = new AbsoluteLayout(this);\n\n // CREAMOS EL CONTENEDOR PADRE\n this.window = new SfPanel();\n\n // CREAMOS PANELES HIJOS\n //SfPanel cuadro1 = new SfPanel();\n //SfPanel cuadro2 = new SfPanel();\n\n // CREO EL VIEW\n View backGround = new View(context);\n ///View c1 = new View(context);\n //ImageView c2 = new ImageView(context);\n\n // LE DOY COLOR DE FONDO\n\n backGround.setBackgroundResource(R.color.darksss);\n //backGround.setBackgroundResource(R.drawable.po);\n\n //c1.setBackgroundColor(Color.RED);\n\n // LENO VIEWS (LOS QUE SE PUEDAN)\n //c2.setImageResource(R.drawable.go_1);\n\n // PONEMOS EL VIEW EN EL PANEL\n this.window.setView(backGround);\n //cuadro1.setView(c1);\n //cuadro2.setView(c2);\n\n // DOY TAMAÑOS A TODOO\n this.window.setSize(-100, -100);\n //cuadro1.setSize(-90, -50);\n //cuadro2.setSize(-40, -25);\n\n // HACEMOS APPENDS\n //this.window.append(cuadro1);\n //this.window.append(cuadro2);\n\n // AGREGAMOS A LA PANTALLA\n windowsCanvas.addView(backGround);\n //windowsCanvas.addView(c1);\n //windowsCanvas.addView(c2);\n\n String name = new String();\n int id;\n String idPokemon = new String();\n\n for ( int i = 1; i<=15; i++ ) {\n name = \"go_\".concat(String.valueOf(i));\n\n SfPanel pokemonPanel = new SfPanel();\n ImageView pokemonView = new ImageView(context);\n\n id = context.getResources().getIdentifier(name, \"drawable\", context.getPackageName());\n pokemonView.setImageResource(id);\n //pokemonView.setBackgroundColor(Color.GRAY);\n //pokemonView.setBackgroundResource(R.drawable.border);\n idPokemon = String.valueOf(i);\n\n final String finalIdPokemon = idPokemon;\n pokemonView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"POKEMON CON ID: \" + String.valueOf(finalIdPokemon), Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(Home.this, pokemonDetail.class);\n intent.putExtra(\"pokemonId\", finalIdPokemon);\n startActivity(intent);\n\n }\n });\n\n pokemonPanel.setView(pokemonView);\n this.window.append(pokemonPanel);\n pokemonPanel.setSize(-30,-15);\n pokemonPanel.setMargin(15,5,25,0);\n pokemonPanel.setKey(name);\n windowsCanvas.addView(pokemonView);\n }\n\n // PONER ESTO\n window.update(this);\n\n // MAGIA\n //Activity activity = (Activity) context;\n this.setContentView(windowsCanvas);\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewSchedulePane SchListPane = new NewSchedulePane();\n\t\trootPane = new HomePane(new MainLeftPane(),SchListPane);\n\t}",
"private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }",
"public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }",
"private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}",
"private void setInitialPanAndZoom() {\r\n\t\tif (this.largestDimension == Dimensions.HORIZONTAL) {\r\n\t\t\tif (this.numHexCol <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexCol <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexCol <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexCol <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexCol <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexCol <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexCol <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.numHexRow <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexRow <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexRow <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexRow <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexRow <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexRow <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexRow <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"private Parent createContent(){\n Pane root = new Pane();\n root.setPrefSize(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n\n Rectangle background = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n background.setFill(Color.rgb(152, 172, 172));\n root.getChildren().add(background);\n\n Rectangle bar = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT+1), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1)); // the Board area\n bar.setFill(Color.rgb(31, 31, 31));\n root.getChildren().add(bar);\n\n Rectangle holdArea = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT-1) + 96, 10, BRICK_SIZE*4+4, BRICK_SIZE*4+4);\n holdArea.setFill(Color.rgb(31, 31, 31));\n holdArea.setStroke(Color.WHITE);\n holdArea.setStrokeWidth(1.0);\n root.getChildren().add(holdArea);\n\n Text holdLabel = new Text();\n holdLabel.setText(\"Hold: (X)\");\n holdLabel.setLayoutX(BRICK_SIZE*(Board.BOUNDARY_RIGHT) + 96);\n holdLabel.setLayoutY(32);\n holdLabel.setFill(Color.WHITESMOKE);\n holdLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(holdLabel);\n\n Rectangle next = new Rectangle(BRICK_SIZE*(Board.BOUNDARY_RIGHT-1) + 96, 150, BRICK_SIZE*4+4, BRICK_SIZE*4+4);\n next.setFill(Color.rgb(91, 91, 91));\n next.setStroke(Color.WHITE);\n next.setStrokeWidth(1.0);\n root.getChildren().add(next);\n\n Text nextLabel = new Text();\n nextLabel.setText(\"Next:\");\n nextLabel.setLayoutX(BRICK_SIZE*(Board.BOUNDARY_RIGHT) + 96);\n nextLabel.setLayoutY(172);\n nextLabel.setFill(Color.WHITESMOKE);\n nextLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(nextLabel);\n\n Canvas canvas = new Canvas(BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n g = canvas.getGraphicsContext2D();\n root.getChildren().add(canvas);\n\n Label scoreLabel = new Label();\n scoreLabel.setText(\"Score\");\n scoreLabel.setLayoutX(360);\n scoreLabel.setLayoutY(332);\n scoreLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(scoreLabel);\n\n Label highScoreLabel = new Label();\n highScoreLabel.setText(\"High Score\");\n highScoreLabel.setLayoutX(360);\n highScoreLabel.setLayoutY(382);\n highScoreLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(highScoreLabel);\n\n Label levelLabel = new Label();\n levelLabel.setText(\"Level\");\n levelLabel.setLayoutX(360);\n levelLabel.setLayoutY(432);\n levelLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(levelLabel);\n\n Label linesLabel = new Label();\n linesLabel.setText(\"Lines Cleared\");\n linesLabel.setLayoutX(360);\n linesLabel.setLayoutY(482);\n linesLabel.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(linesLabel);\n\n board = new Board();\n\n score.setText(\"\" + board.getScore());\n score.setLayoutX(360);\n score.setLayoutY(352);\n score.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(score);\n\n highScore.setText(\"\" + Math.max(FileHandler.readHighScore(), board.getScore()));\n highScore.setLayoutX(360);\n highScore.setLayoutY(402);\n highScore.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(highScore);\n\n level.setText(\"\" + board.getLevel());\n level.setLayoutX(360);\n level.setLayoutY(452);\n level.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(level);\n\n lines.setText(\"\" + board.getTotalLinesCleared());\n lines.setLayoutX(360);\n lines.setLayoutY(502);\n lines.setFont(Font.font(\"Impact\", 20));\n root.getChildren().add(lines);\n\n refreshDisplay();\n\n // The AnimationTimer is responsible for moving the currently controlled piece down.\n AnimationTimer animationTimer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if(time < 0.2){\n time = 0.0;\n }\n time += timeFractionBasedOnLevel();\n if(time >= 60.0){\n board.moveDown();\n refreshDisplay();\n time = 0.0;\n }\n }\n };\n animationTimer.start();\n\n return root;\n }",
"private void initialize() {\n\t\tSystem.setProperty(\"sun.java2d.uiScale\", \"1.0\");\n\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(47, 79, 79));\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\n\t\tpanellHome =new Home_Panel();\n\t\tpanellHome.setBounds(0, 0, 733, 494);\t\n\t\t\n\t\tpanelAnimalInsertion =new AnimalInsertion_Panel();\n\t\tpanelAnimalInsertion.setBounds(0, 0, 733, 494);\n\t\t\n\t\tpanelAvailableAnimals=new AvailableAnimals_Panel();\n\t\tpanelAvailableAnimals.setBounds(0, 0, 791, 585);\n\n\t\tpanelAdoptionHistory=new AdoptionHistory_Panel();\n\t\tpanelAdoptionHistory.setBounds(0, 0, 733, 535);\n\n\t\tpanelAdoptionStatistics=new AdoptionStatistics_Panel();\n\t\tpanelAdoptionStatistics.setBounds(0, 0, 733, 535);\n\t\t\n\t\tpanelProffesionalServices=new ProffesionalServices_Panel();\n\t\tpanelProffesionalServices.setBounds(0, 0, 733, 535);\n\t\t\n\t\t\n\t\tJPanel panelMenu = new JPanel();\n\t\tpanelMenu.setBackground(new Color(0, 128, 128));\n\t\tpanelMenu.setBounds(0, 0, 218, 585);\n\t\tframe.getContentPane().add(panelMenu);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJPanel paneHome = new JPanel();\n\t\tpaneHome.addMouseListener(new PanelButtonMouseAdapter(paneHome)\n\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\n\t\t\t\tmenuClicked(panellHome);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneHome.setBackground(new Color(0, 139, 139));\n\t\tpaneHome.setBounds(0, 131, 214, 37);\n\t\tpanelMenu.add(paneHome);\n\t\tpaneHome.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Home\");\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(78, 12, 45, 13);\n\t\tpaneHome.add(lblNewLabel);\n\t\t\n\t\t\n\t\tJPanel paneAvailableAnimals = new JPanel();\n\t\tpaneAvailableAnimals.addMouseListener(new PanelButtonMouseAdapter(paneAvailableAnimals)\n\t\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAvailableAnimals);\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\t\n\t\tpaneAvailableAnimals.setBackground(new Color(0, 139, 139));\n\t\tpaneAvailableAnimals.setBounds(0, 169, 214, 37);\n\t\tpanelMenu.add(paneAvailableAnimals);\n\t\tpaneAvailableAnimals.setLayout(null);\n\t\t\n\t\tJLabel lblAvailableAnimals = new JLabel(\"Available Animals\");\n\t\tlblAvailableAnimals.setForeground(new Color(255, 255, 255));\n\t\tlblAvailableAnimals.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAvailableAnimals.setBounds(38, 6, 132, 27);\n\t\tpaneAvailableAnimals.add(lblAvailableAnimals);\n\t\t\n\t\tJPanel paneAnimalInsertion = new JPanel();\n\t\tpaneAnimalInsertion.addMouseListener(new PanelButtonMouseAdapter(paneAnimalInsertion)\n{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAnimalInsertion);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t});\n\t\tpaneAnimalInsertion.setBackground(new Color(0, 139, 139));\n\t\tpaneAnimalInsertion.setBounds(0, 205, 214, 37);\n\t\tpanelMenu.add(paneAnimalInsertion);\n\t\tpaneAnimalInsertion.setLayout(null);\n\t\t\n\t\tJLabel lblAnimalInsertion = new JLabel(\"Animal Insertion\");\n\t\tlblAnimalInsertion.setForeground(new Color(255, 255, 255));\n\t\tlblAnimalInsertion.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAnimalInsertion.setBounds(38, 10, 142, 17);\n\t\tpaneAnimalInsertion.add(lblAnimalInsertion);\n\t\t\n\t\tJPanel paneAdoptionHistory = new JPanel();\n\t\tpaneAdoptionHistory.addMouseListener(new PanelButtonMouseAdapter(paneAdoptionHistory)\n\t\t\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\tmenuClicked(panelAdoptionHistory);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneAdoptionHistory.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionHistory.setBounds(0, 241, 214, 37);\n\t\tpanelMenu.add(paneAdoptionHistory);\n\t\tpaneAdoptionHistory.setLayout(null);\n\t\t\n\t\tJLabel lblAdoptionsHistory = new JLabel(\"Adoption's History\");\n\t\tlblAdoptionsHistory.setForeground(new Color(255, 255, 255));\n\t\tlblAdoptionsHistory.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsHistory.setBounds(38, 7, 129, 27);\n\t\tpaneAdoptionHistory.add(lblAdoptionsHistory);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(image));\n\t\tlblNewLabel_1.setBounds(60, 10, 125, 111);\n\t\tpanelMenu.add(lblNewLabel_1);\n\t\t\n\t\tJPanel paneAdoptionStatistics = new JPanel();\n\t\tpaneAdoptionStatistics.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelAdoptionStatistics);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneAdoptionStatistics.setLayout(null);\n\t\tpaneAdoptionStatistics.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionStatistics.setBounds(0, 277, 214, 37);\n\t\tpanelMenu.add(paneAdoptionStatistics);\n\t\t\n\t\tJLabel lblAdoptionsStatistics = new JLabel(\"Adoption's Statistics\");\n\t\tlblAdoptionsStatistics.setForeground(Color.WHITE);\n\t\tlblAdoptionsStatistics.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsStatistics.setBounds(22, 3, 166, 27);\n\t\tpaneAdoptionStatistics.add(lblAdoptionsStatistics);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Shir Bata\");\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\n\t\tlblNewLabel_2.setBounds(28, 516, 64, 23);\n\t\tpanelMenu.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblKoralBukra = new JLabel(\"Koral Bukra\");\n\t\tlblKoralBukra.setForeground(Color.WHITE);\n\t\tlblKoralBukra.setBounds(112, 516, 106, 23);\n\t\tpanelMenu.add(lblKoralBukra);\n\t\t\n\t\tJLabel lblMotiBarshazky = new JLabel(\"Moti Barshazky\");\n\t\tlblMotiBarshazky.setForeground(Color.WHITE);\n\t\tlblMotiBarshazky.setBounds(109, 536, 109, 23);\n\t\tpanelMenu.add(lblMotiBarshazky);\n\t\t\n\t\tJLabel lblTomerCarmel = new JLabel(\"Tomer Carmel\");\n\t\tlblTomerCarmel.setForeground(Color.WHITE);\n\t\tlblTomerCarmel.setBounds(18, 536, 106, 23);\n\t\tpanelMenu.add(lblTomerCarmel);\n\t\t\n\t\tJPanel paneProffessionalServices = new JPanel();\n\t\tpaneProffessionalServices.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelProffesionalServices);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneProffessionalServices.setLayout(null);\n\t\tpaneProffessionalServices.setBackground(new Color(0, 139, 139));\n\t\tpaneProffessionalServices.setBounds(0, 315, 214, 37);\n\t\tpanelMenu.add(paneProffessionalServices);\n\t\t\n\t\tJLabel lblProffessionalServices = new JLabel(\"Proffessional Services\");\n\t\tlblProffessionalServices.setForeground(Color.WHITE);\n\t\tlblProffessionalServices.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblProffessionalServices.setBounds(22, 3, 166, 27);\n\t\tpaneProffessionalServices.add(lblProffessionalServices);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(47, 79, 79));\n\t\tpanel.setBounds(219, 0, 791, 585);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\tframe.setBounds(100, 100, 1024, 622);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tpanel.add(panelAnimalInsertion);\n\t\tpanel.add(panelAvailableAnimals);\n\t\tpanel.add(panellHome);\n\t\tpanel.add(panelAdoptionHistory);\n\t\tpanel.add(panelAdoptionStatistics);\n\t\tpanel.add(panelProffesionalServices);\n\t\t\n\t\t\n\t\t\n\t\tHome_Panel home_Panel = new Home_Panel();\n\t\thome_Panel.setBounds(0, 0, 733, 494);\n\t\tpanel.add(home_Panel);\n\t\tmenuClicked(panellHome);\n\n\t\t\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}",
"private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }",
"static JPanel createContainers()\n\t{\n\t\tscore.setFont(new Font(\"Arial\", 0, 14));\n\t\tscore.setForeground(Color.RED);\n\n\t\tJPanel mainPanel = createMainPanel();\n\t\tmainPanel.setBackground(Color.black);\n\t\tJPanel scoringPanel = createScoringPanel(score);\n\t\tJPanel gamePanel = createGamePanel();\n\n\t\tPortfolio1.gameCards = Portfolio1.createGameCards();\n\n\t\tfor (GameCard card : Portfolio1.gameCards)\n\t\t{\n\t\t\tgamePanel.add(card);\n\t\t}\n\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(scoringPanel);\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(gamePanel);\n\n\t\treturn mainPanel;\n\t}",
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"public void constructGameView(int num){\r\n\t\t\r\n\t\t//Create pawn panel\r\n\t\tgameView.getGamePiecesPanel().createPawnPanel(num);\r\n\t\t\r\n\t\t//Add action listeners to pawn buttons\r\n\t\tgameView.getGamePiecesPanel().setGamePieceButtonListener(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif( pawnListener != null ){\r\n\r\n\t\t\t\t\tObject source = e.getSource();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(source instanceof PawnButton){\r\n\t\t\t\t\t\tint index = ((PawnButton) source).getIndex();\r\n\t\t\t\t\t\tVari vari = ((PawnButton) source).getColor(); \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tpawnListener.pawnPressPerformed(new PawnButtonEvent(index, vari));\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}",
"public Panneaux(){\n this.infoPane = new InfoPane();\n this.leftPanel = new LeftPanel();\n this.catalogue = leftPanel.getCatatalogue();\n this.panier = leftPanel.getPanier();\n }"
]
| [
"0.7404924",
"0.69707805",
"0.6797986",
"0.6731859",
"0.67124933",
"0.666409",
"0.661302",
"0.6579211",
"0.6533978",
"0.64937854",
"0.64905465",
"0.6439987",
"0.63907397",
"0.6374396",
"0.6357265",
"0.6348668",
"0.63381827",
"0.63340515",
"0.6325254",
"0.6298035",
"0.627816",
"0.6273525",
"0.6259246",
"0.6231179",
"0.6207429",
"0.619482",
"0.61935455",
"0.6185",
"0.61846286",
"0.61770856",
"0.61752874",
"0.61749345",
"0.6171325",
"0.6166302",
"0.61644244",
"0.61606556",
"0.61529493",
"0.61497945",
"0.6140012",
"0.6123062",
"0.6121722",
"0.6116967",
"0.6109533",
"0.6103636",
"0.6100279",
"0.6098903",
"0.60814637",
"0.60798067",
"0.6077103",
"0.6074965",
"0.60747164",
"0.60738605",
"0.6071829",
"0.60645324",
"0.60611105",
"0.6055341",
"0.6052926",
"0.60503733",
"0.60409385",
"0.6040746",
"0.6011554",
"0.6008419",
"0.60075504",
"0.6005267",
"0.598429",
"0.5983214",
"0.59829414",
"0.59736425",
"0.5970099",
"0.59609455",
"0.596032",
"0.59590757",
"0.5958347",
"0.59577495",
"0.5955661",
"0.5952329",
"0.5952324",
"0.59517217",
"0.594576",
"0.5945676",
"0.5937974",
"0.5937047",
"0.59367466",
"0.5933592",
"0.5927131",
"0.5922825",
"0.59180605",
"0.591799",
"0.5916244",
"0.5915495",
"0.59116435",
"0.589871",
"0.58932",
"0.5887794",
"0.58850926",
"0.5882964",
"0.58816695",
"0.58764386",
"0.5870834",
"0.5870307",
"0.58696455"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.vendor_newlead_bar, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@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 }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@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 }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@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 }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@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}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
]
| [
"0.7247938",
"0.7202959",
"0.7196692",
"0.71785426",
"0.7108701",
"0.70417315",
"0.70402646",
"0.70132303",
"0.7011096",
"0.69826573",
"0.6946997",
"0.69409776",
"0.6935366",
"0.69191027",
"0.69191027",
"0.6893088",
"0.6885528",
"0.6877815",
"0.68763673",
"0.686437",
"0.686437",
"0.686437",
"0.686437",
"0.68540627",
"0.68493474",
"0.68218297",
"0.68192774",
"0.68153644",
"0.68153644",
"0.6815331",
"0.6808357",
"0.680292",
"0.68001926",
"0.6793566",
"0.6790724",
"0.6790344",
"0.67855906",
"0.67613244",
"0.67596716",
"0.67503935",
"0.674636",
"0.674636",
"0.6743352",
"0.6741959",
"0.6728363",
"0.6725486",
"0.67250663",
"0.67250663",
"0.67230934",
"0.67131525",
"0.67084885",
"0.67067933",
"0.6701798",
"0.6700826",
"0.6699366",
"0.6696747",
"0.66889644",
"0.6685846",
"0.6685846",
"0.6684866",
"0.6682888",
"0.66810936",
"0.6679739",
"0.6670028",
"0.6669299",
"0.6664124",
"0.6659152",
"0.6659152",
"0.6659152",
"0.6658369",
"0.66567385",
"0.66567385",
"0.66567385",
"0.66540265",
"0.6653653",
"0.66526854",
"0.66509074",
"0.66492856",
"0.6648748",
"0.6648541",
"0.6648053",
"0.66467965",
"0.66467464",
"0.66459095",
"0.66453874",
"0.66439164",
"0.6641125",
"0.66372454",
"0.663597",
"0.6634331",
"0.6634331",
"0.6634331",
"0.66339976",
"0.6631227",
"0.6630643",
"0.6628774",
"0.66286343",
"0.66267",
"0.6621867",
"0.6620775",
"0.6620775"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
switch (item.getItemId()){
/* case R.id.action_credit:
Intent search = new Intent(this,CreditHistoryActivity.class);
startActivity(search);
return true;*/
case R.id.action_alert:
Intent alert = new Intent(this,VendorAlertActivity.class);
startActivity(alert);
return true;
}
//noinspection SimplifiableIfStatement
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.7904035",
"0.78057915",
"0.77662706",
"0.7727266",
"0.76317817",
"0.76219225",
"0.7584542",
"0.7530336",
"0.7487623",
"0.7457442",
"0.7457442",
"0.7438915",
"0.7421425",
"0.7403424",
"0.73923",
"0.7387485",
"0.7379756",
"0.7370862",
"0.73622537",
"0.73564696",
"0.7345994",
"0.73419464",
"0.73299843",
"0.7327844",
"0.7326043",
"0.73197556",
"0.7317143",
"0.73140186",
"0.7304616",
"0.7304616",
"0.7302084",
"0.7298582",
"0.72940314",
"0.7287458",
"0.72837925",
"0.7281312",
"0.7279086",
"0.7260266",
"0.7260266",
"0.7260266",
"0.7259928",
"0.7259814",
"0.7250412",
"0.72233367",
"0.72201204",
"0.7218085",
"0.72047156",
"0.71999466",
"0.7198876",
"0.719304",
"0.71861094",
"0.7177511",
"0.71693677",
"0.7167732",
"0.7154041",
"0.71537524",
"0.71356887",
"0.7135142",
"0.7135142",
"0.71303266",
"0.71286845",
"0.7124354",
"0.71238357",
"0.71235263",
"0.71224594",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71173346",
"0.7117265",
"0.7116576",
"0.71150905",
"0.7112618",
"0.71099126",
"0.7109077",
"0.71057403",
"0.71000075",
"0.70982087",
"0.70952326",
"0.7093795",
"0.7093795",
"0.708655",
"0.7082642",
"0.708111",
"0.7080437",
"0.707404",
"0.70684844",
"0.70619047",
"0.70604676",
"0.7060448",
"0.7051464",
"0.70378536",
"0.70378536",
"0.7036111",
"0.70355594",
"0.70355594",
"0.7032436",
"0.7031054",
"0.70297045",
"0.701964"
]
| 0.0 | -1 |
These field names must be stable to ensure the builder api is stable. | private CoreTracer(
final Config config,
final String serviceName,
SharedCommunicationObjects sharedCommunicationObjects,
final Writer writer,
final IdGenerationStrategy idGenerationStrategy,
final Sampler<DDSpan> sampler,
final HttpCodec.Injector injector,
final HttpCodec.Extractor extractor,
final AgentScopeManager scopeManager,
final Map<String, ?> localRootSpanTags,
final Map<String, ?> defaultSpanTags,
final Map<String, String> serviceNameMappings,
final Map<String, String> taggedHeaders,
final int partialFlushMinSpans,
final StatsDClient statsDClient,
final TagInterceptor tagInterceptor,
final boolean strictTraceWrites,
final InstrumentationGateway instrumentationGateway) {
assert localRootSpanTags != null;
assert defaultSpanTags != null;
assert serviceNameMappings != null;
assert taggedHeaders != null;
this.checkpointer = SamplingCheckpointer.create();
this.serviceName = serviceName;
this.sampler = sampler;
this.injector = injector;
this.extractor = extractor;
this.localRootSpanTags = localRootSpanTags;
this.defaultSpanTags = defaultSpanTags;
this.serviceNameMappings = serviceNameMappings;
this.partialFlushMinSpans = partialFlushMinSpans;
this.idGenerationStrategy =
null == idGenerationStrategy
? Config.get().getIdGenerationStrategy()
: idGenerationStrategy;
if (statsDClient != null) {
this.statsDClient = statsDClient;
} else if (writer == null || writer instanceof DDAgentWriter) {
this.statsDClient = createStatsDClient(config);
} else {
// avoid creating internal StatsD client when using external trace writer
this.statsDClient = StatsDClient.NO_OP;
}
this.monitoring =
config.isHealthMetricsEnabled()
? new MonitoringImpl(this.statsDClient, 10, TimeUnit.SECONDS)
: Monitoring.DISABLED;
this.performanceMonitoring =
config.isPerfMetricsEnabled()
? new MonitoringImpl(this.statsDClient, 10, TimeUnit.SECONDS)
: Monitoring.DISABLED;
this.traceWriteTimer = performanceMonitoring.newThreadLocalTimer("trace.write");
if (scopeManager == null) {
ContinuableScopeManager csm =
new ContinuableScopeManager(
config.getScopeDepthLimit(),
this.statsDClient,
config.isScopeStrictMode(),
config.isScopeInheritAsyncPropagation());
this.scopeManager = csm;
} else {
this.scopeManager = scopeManager;
}
this.externalAgentLauncher = new ExternalAgentLauncher(config);
if (sharedCommunicationObjects == null) {
sharedCommunicationObjects = new SharedCommunicationObjects();
}
sharedCommunicationObjects.monitoring = monitoring;
sharedCommunicationObjects.createRemaining(config);
if (writer == null) {
this.writer =
WriterFactory.createWriter(
config, sharedCommunicationObjects, sampler, this.statsDClient);
} else {
this.writer = writer;
}
this.pendingTraceBuffer =
strictTraceWrites ? PendingTraceBuffer.discarding() : PendingTraceBuffer.delaying();
pendingTraceFactory = new PendingTrace.Factory(this, pendingTraceBuffer, strictTraceWrites);
pendingTraceBuffer.start();
this.writer.start();
metricsAggregator = createMetricsAggregator(config, sharedCommunicationObjects);
// Schedule the metrics aggregator to begin reporting after a random delay of 1 to 10 seconds
// (using milliseconds granularity.) This avoids a fleet of traced applications starting at the
// same time from sending metrics in sync.
AgentTaskScheduler.INSTANCE.scheduleWithJitter(
new AgentTaskScheduler.Task<MetricsAggregator>() {
@Override
public void run(MetricsAggregator target) {
target.start();
}
},
metricsAggregator,
1,
TimeUnit.SECONDS);
this.tagInterceptor =
null == tagInterceptor ? new TagInterceptor(new RuleFlags(config)) : tagInterceptor;
this.instrumentationGateway = instrumentationGateway;
shutdownCallback = new ShutdownHook(this);
try {
Runtime.getRuntime().addShutdownHook(shutdownCallback);
} catch (final IllegalStateException ex) {
// The JVM is already shutting down.
}
registerClassLoader(ClassLoader.getSystemClassLoader());
StatusLogger.logStatus(config);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Builder() {\n\t\t}",
"protected Builder<?> addLocalFieldsToBuilder(Builder<? extends Builder<?>> builder) {\n builder.setName(this.name).setUnits(this.units).setDescription(this.getDescription()).setAxisType(this.axisType)\n .setAttributes(this.attributes).setDependenceType(this.dependenceType).setDependsOn(this.dependsOn)\n .setSpacing(this.spacing).setIsSubset(this.isSubset);\n\n return builder;\n }",
"private Field(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Builder() {}",
"private Builder()\n {\n }",
"private Builder(final String name) {\n this.name = name;\n this.id = \"\";\n this.email = \"\";\n this.link = \"\";\n this.displayName = \"\";\n this.description = \"\";\n this.image = null;\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public Builder(String name) {\n this.name = name;\n }",
"@Override\n public Builder<?> toBuilder() {\n return addLocalFieldsToBuilder(builder());\n }",
"private Playready(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private UpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Package(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private MsgFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n this.unknownFields = builder.getUnknownFields();\r\n }",
"@Generated(\"Speedment\")\npublic interface UserBuilder extends User, Buildable<User> {\n \n UserBuilder setId(Integer id);\n \n UserBuilder setMail(String mail);\n}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getBuilderBytes() {\n java.lang.Object ref = builder_;\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 builder_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private Model(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"private ExpandInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private StoredInfoTypeVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GoodsItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private ResponseKv(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BuilderUtils() {}",
"private knock_rs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MessageUpdateQuest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private Index(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private OrderKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Escrow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ReflectionRequest(Builder builder) {\n super(builder);\n }",
"private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private E(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ProtobufSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private void setChangeNameReq(\n ChangeName.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 12;\n }",
"private OrcSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DataModelBuilder() {\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"private AttributeSigning(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RequestUpdateAction(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private KeyValue(Builder builder) {\n super(builder);\n }",
"private V_2603() {\n\t\tsuper(\"V_2603\", org.jooq.examples.h2.matchers.NonPublic.NON_PUBLIC);\n\t}",
"public com.google.protobuf.ByteString\n getBuilderBytes() {\n java.lang.Object ref = builder_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n builder_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public com.google.devtools.kythe.proto.Storage.VName.Builder getVNameBuilder() {\n \n onChanged();\n return getVNameFieldBuilder().getBuilder();\n }",
"private Column(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private TestBeanRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Column(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CSTeamKick(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private UpdateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Code(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MessageWithLotsOfFields(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder() {\n\t\t}",
"private HeartBeatReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HowMe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MessageInformationQuest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private UDeliveryMade(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DevConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ClientRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private GoodsItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private knock_rq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private UpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static abstract interface Builder\n/* */ {\n/* */ public abstract Builder paths(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder methods(RequestMethod... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder params(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder headers(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder consumes(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder produces(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder mappingName(String paramString);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);\n/* */ \n/* */ \n/* */ \n/* */ public abstract RequestMappingInfo build();\n/* */ }",
"private ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern (String field) {\n this.field = field;\n }",
"private Item(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private StatusChanged(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private flight(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public Builder() { }",
"Builder addCopyrightHolder(Person.Builder value);",
"private Contact(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ExtKeyInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private SupplierInfoBuilder() {\n }",
"private RequestChangeMap(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }"
]
| [
"0.60994536",
"0.6073955",
"0.60465205",
"0.59739953",
"0.58719313",
"0.5856783",
"0.58244026",
"0.58244026",
"0.5815062",
"0.5806372",
"0.5745956",
"0.5705518",
"0.56793934",
"0.5672295",
"0.5668248",
"0.56576914",
"0.5657225",
"0.56545705",
"0.5650098",
"0.5609556",
"0.560853",
"0.5600194",
"0.5583864",
"0.55799896",
"0.5574994",
"0.55689555",
"0.5561374",
"0.5561374",
"0.5561374",
"0.5561374",
"0.55601746",
"0.55598426",
"0.55522555",
"0.5551338",
"0.5551119",
"0.55482614",
"0.5547597",
"0.55399436",
"0.553882",
"0.55346304",
"0.5530618",
"0.55262214",
"0.5516755",
"0.55153906",
"0.5513868",
"0.5506846",
"0.5505772",
"0.5490048",
"0.5489029",
"0.5488815",
"0.5483628",
"0.5465081",
"0.54593605",
"0.54539144",
"0.54507226",
"0.54488325",
"0.5444931",
"0.5443717",
"0.5439728",
"0.5439291",
"0.54385555",
"0.543503",
"0.5433614",
"0.5433354",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.5422483",
"0.54191244",
"0.5410384",
"0.54093033",
"0.5407874",
"0.5406219",
"0.54057384",
"0.5405435",
"0.54030573",
"0.5401254",
"0.53968793",
"0.5393753",
"0.53924334",
"0.5390755",
"0.53894174",
"0.53841585",
"0.53836095",
"0.53825176"
]
| 0.0 | -1 |
Only visible for benchmarking purposes | PendingTrace createTrace(DDId id) {
return pendingTraceFactory.create(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int benchmarkedMethod() {\n return 3;\n }",
"public void testPerformance() {\n \t}",
"protected TestBench() {}",
"public abstract long mo9746k();",
"private void m50366E() {\n }",
"private TagsBenchmarksUtil() {}",
"@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}",
"@Benchmark\n public void testJMH(@SuppressWarnings(\"unused\") GraalState s) {\n }",
"@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}",
"@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }",
"@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }",
"@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }",
"private CostHelper() {}",
"public void method_4270() {}",
"public abstract int mo9754s();",
"private FastMath() {\r\n throw new AssertionError();\r\n }",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }",
"public abstract long mo9229aD();",
"public static int performanceCountGet() { return 0; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract long mo13681c();",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"@Test\n @Tag(\"slow\")\n public void testWOODW() {\n CuteNetlibCase.doTest(\"WOODW.SIF\", \"1.30447633308416\", \"6.463675062936\", NumberContext.of(7, 4));\n }",
"public void mo21877s() {\n }",
"@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"@Test\n @Tag(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }",
"@Override\n public void func_104112_b() {\n \n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"private Util() { }",
"@Test(timeout = 4000)\n public void test20() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n XSQLVAR[] xSQLVARArray0 = new XSQLVAR[0];\n FBResultSet fBResultSet0 = new FBResultSet(xSQLVARArray0, linkedList0);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, fBResultSet0);\n fBCachedFetcher0.next();\n boolean boolean0 = fBCachedFetcher0.isFirst();\n assertTrue(boolean0);\n }",
"private void m50367F() {\n }",
"public abstract long mo24410c();",
"@Test\n @Tag(\"slow\")\n public void testSHIP04L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"void m1864a() {\r\n }",
"private void optimiseEVProfile()\n\t{\n\t}",
"public abstract int mo9745j();",
"private void kk12() {\n\n\t}",
"private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }",
"void mo57277b();",
"private ArraySetHelper() {\n\t\t// nothing\n\t}",
"private void assertEqual(long count, long size) {\n\t\t\n\t}",
"@Test\n @Tag(\"slow\")\n public void testSHIP08L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }",
"@Test\n @Tag(\"slow\")\n public void testSHIP04S() {\n CuteNetlibCase.doTest(\"SHIP04S.SIF\", \"1798714.7004453915\", null, NumberContext.of(7, 4));\n }",
"public interface PerformanceTest {}",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"@Test(timeout = 4000)\n public void test23() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n XSQLVAR[] xSQLVARArray0 = new XSQLVAR[0];\n FBResultSet fBResultSet0 = new FBResultSet(xSQLVARArray0, linkedList0);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, fBResultSet0);\n fBCachedFetcher0.next();\n fBCachedFetcher0.next();\n boolean boolean0 = fBCachedFetcher0.previous();\n assertTrue(fBCachedFetcher0.isLast());\n assertTrue(boolean0);\n }",
"@Test\n public void testSumEstimatedProxySizeActualDevelopmentTime()\n {\n assertEquals(this.linealRegressionCalculator.sumEstimatedProxySizeActualDevelopmentTime(), 411628.6, 0.01); \n }",
"public abstract void mo56925d();",
"public void mo21795T() {\n }",
"@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }",
"public void mo21786K() {\n }",
"public abstract void mo6549b();",
"private ProcessorUtils() { }",
"@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }",
"void mo72113b();",
"@Test\n\tpublic void testExponentialSearch() {\n\t}",
"@Test\n @Tag(\"slow\")\n public void testSHIP08S() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"public void mo21787L() {\n }",
"private double getOEEPerformance(Batch batch) {\n return 1;\n }",
"public abstract long mo9743h();",
"void takeBefore(){\n beforeTimeNs=System.nanoTime();\n }",
"void mo60893b();",
"public void warmUp();",
"public abstract long mo9755t();",
"public abstract long mo20901UQ();",
"@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }",
"public abstract long mo24409b();",
"@Test\n @Tag(\"slow\")\n public void testSHIP12L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"void mo119582b();",
"void mo63094q();",
"private SBomCombiner()\n\t{}",
"public void mo21794S() {\n }",
"@Test\n public void timeAppendObject() {\n Object o =\n new Object() {\n @Override\n public String toString() {\n return \"constant\";\n }\n };\n BenchmarkState state = mPerfStatusReporter.getBenchmarkState();\n while (state.keepRunning()) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < mLength; ++j) {\n sb.append(o);\n }\n }\n }",
"@Test public void test_4() throws Exception {\n yetihelper.Helper v76=new yetihelper.Helper(); // time:1355223203509\n int v77=-2147483647; // time:1355223203509\n java.lang.Integer v78=v76.dummyInteger((int)v77); // time:1355223203509\n material.Square v79=new material.Square((java.lang.Integer)v78,(java.lang.Integer)v78); // time:1355223203509\n java.lang.Integer v80=v79.getRow(); // time:1355223203509\n material.Square v286=new material.Square((java.lang.Integer)v80,(java.lang.Integer)null); // time:1355223203642\n int v2252=v286.hashCode();\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223207190\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat material.Square.hashCode(Square.java:49)\n YETI EXCEPTION - END**/ \n /** original locs: 4674 minimal locs: 7**/\n \n }",
"public void func_70295_k_() {}",
"private void test() {\n\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo21792Q() {\n }",
"public void mo21878t() {\n }",
"@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"@Test\n @Tag(\"slow\")\n public void testSCFXM3() {\n CuteNetlibCase.doTest(\"SCFXM3.SIF\", \"54901.2545497515\", null, NumberContext.of(7, 4));\n }",
"public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }",
"private JacobUtils() {}",
"@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }",
"@Test\n @Tag(\"slow\")\n public void testPILOT_WE() {\n CuteNetlibCase.doTest(\"PILOT-WE.SIF\", \"-2720107.5328449034\", \"20770.464669007524\", NumberContext.of(7, 4));\n }",
"void mo33732Px();",
"void m63698a() {\n m63702c();\n m63701b();\n }",
"@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }",
"@Test\n @Tag(\"slow\")\n public void testSHIP12S() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"public abstract int mo9797a();",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(1988);\n classWriter0.version = 1988;\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 268435455, \"JSR/RET are not supported with computeFrames option\", \"JSR/RET are not supported with computeFrames option\", \"JSR/RET are not supported with computeFrames option\", \"JSR/RET are not supported with computeFrames option\");\n ByteVector byteVector0 = classWriter0.pool;\n fieldWriter0.put(byteVector0);\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n byte[][] byteArray0 = new byte[3][9];\n byte[] byteArray1 = new byte[4];\n byte byte0 = (byte)1;\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n fBCachedFetcher0.getFetchSize();\n try { \n fBCachedFetcher0.absolute(0);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // You cannot position to the row 0 with absolute() method.\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }",
"private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n XSQLVAR[] xSQLVARArray0 = new XSQLVAR[0];\n FBResultSet fBResultSet0 = new FBResultSet(xSQLVARArray0, linkedList0);\n byte[][] byteArray0 = new byte[7][0];\n byte[] byteArray1 = new byte[7];\n byteArray1[0] = (byte) (-111);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!3eO>|kx{3s''g6%=\");\n byteArray1[1] = (byte) (-109);\n byteArray1[2] = (byte)31;\n linkedList0.add((byte[][]) null);\n linkedList0.add(byteArray0);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, fBResultSet0);\n fBCachedFetcher0.next();\n fBCachedFetcher0.deleteRow();\n assertTrue(fBCachedFetcher0.isLast());\n }"
]
| [
"0.6574716",
"0.6349338",
"0.58236873",
"0.5695995",
"0.5590877",
"0.555667",
"0.5540628",
"0.55137914",
"0.5506368",
"0.55033016",
"0.55003536",
"0.54984856",
"0.5453926",
"0.54495084",
"0.5444222",
"0.54267734",
"0.54195184",
"0.5401007",
"0.5400946",
"0.54001534",
"0.53938645",
"0.5374298",
"0.5371865",
"0.5371865",
"0.5347484",
"0.5345099",
"0.53258",
"0.5289559",
"0.5289559",
"0.52848977",
"0.5284348",
"0.52674633",
"0.5264157",
"0.52463824",
"0.5245327",
"0.5236931",
"0.52328986",
"0.5226473",
"0.52262294",
"0.52234906",
"0.5220492",
"0.5219701",
"0.52196026",
"0.52138066",
"0.5207373",
"0.52025884",
"0.5201686",
"0.5198168",
"0.51969737",
"0.51874334",
"0.51848817",
"0.51741356",
"0.5174134",
"0.51716304",
"0.51668227",
"0.5166743",
"0.51623183",
"0.5159991",
"0.5155196",
"0.5153321",
"0.51526743",
"0.5150809",
"0.5140823",
"0.51365614",
"0.5127649",
"0.51268196",
"0.5125269",
"0.5115517",
"0.51123136",
"0.5110258",
"0.5108038",
"0.5107087",
"0.5100184",
"0.50959057",
"0.50955194",
"0.509435",
"0.5089873",
"0.5087331",
"0.50838345",
"0.50837433",
"0.50829566",
"0.5077404",
"0.5075514",
"0.50722396",
"0.5069416",
"0.5066558",
"0.5065749",
"0.5065254",
"0.5060239",
"0.506",
"0.50590557",
"0.50553536",
"0.505236",
"0.5051023",
"0.504845",
"0.5046077",
"0.50437295",
"0.5040281",
"0.50394917",
"0.50392973",
"0.50385755"
]
| 0.0 | -1 |
If an application is using a nonsystem classloader, that classloader should be registered here. Due to the way Spring Boot structures its' executable jar, this might log some warnings. | private void registerClassLoader(final ClassLoader classLoader) {
try {
for (final TraceInterceptor interceptor :
ServiceLoader.load(TraceInterceptor.class, classLoader)) {
addTraceInterceptor(interceptor);
}
} catch (final ServiceConfigurationError e) {
log.warn("Problem loading TraceInterceptor for classLoader: " + classLoader, e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ClassLoader getClassLoader() {\n return LoggerProviders.class.getClassLoader();\n }",
"void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"boolean isDelegatedToBootClassLoader(String packageName);",
"public ClassLoader getBootClassLoader ()\n {\n return bootLoader;\n }",
"protected void setUpClassloader() throws Exception\n {\n threadContextClassLoader = Thread.currentThread()\n .getContextClassLoader();\n Thread.currentThread()\n .setContextClassLoader(\n new URLClassLoader(new URL[0], this.getClass()\n .getClassLoader()));\n classLoaderSet = true;\n }",
"private void initializeBoot()\n {\n bootLoader = getClass().getClassLoader();\n\n // Get the home directory of the Java implementation we're being run by\n javaHomeDir = new File(System.getProperty(\"java.home\"));\n\n try {\n runtimeClassPath = getKnownJars(getBluejLibDir(), runtimeJars, false, numBuildJars);\n runtimeUserClassPath = getKnownJars(getBluejLibDir(), userJars, true, numUserBuildJars);\n }\n catch (Exception exc) {\n exc.printStackTrace();\n }\n }",
"default boolean canLoadClassPath(String classPath) { return true; }",
"@Override\n public ClassLoader getClassLoader() {\n return null;\n }",
"private void loadJarsFromClasspath() {\n\n loadedJarsMap.clear();\n\n ClassLoader classLoader = getClass().getClassLoader();\n URL[] urls = null;\n do {\n //check if the class loader is instance of URL and cast it\n if (classLoader instanceof URLClassLoader) {\n urls = ((URLClassLoader) classLoader).getURLs();\n } else {\n // if the ClassLoader is not instance of URLClassLoader we will break the cycle and log a message\n log.info(\"ClassLoader \" + classLoader\n + \" is not instance of URLClassLoader, so it will skip it.\");\n\n // if the ClassLoader is from JBoss, it is instance of BaseClassLoader,\n // we can take the ClassPath from a public method -> listResourceCache(), from JBoss-classloader.jar\n // this ClassLoader is empty, we will get the parent\n classLoader = classLoader.getParent();\n continue;\n }\n try {\n loadJarsFromManifestFile(classLoader);\n } catch (IOException ioe) {\n log.warn(\"MANIFEST.MF is loaded, so we will not search for duplicated jars!\");\n }\n\n // add all jars from ClassPath to the map\n for (int i = 0; i < urls.length; i++) {\n addJarToMap(urls[i].getFile());\n }\n\n // get the parent classLoader\n classLoader = classLoader.getParent();\n } while (classLoader != null);\n\n if (loadedJarsMap.isEmpty()) {\n // jars are not found, so probably no URL ClassLoaders are found\n throw new RuntimeException(\"Most probrably specific server is used without URLClassLoader instances!\");\n }\n }",
"public static void checkClassloaders() {\n\t\tSystem.out.println(ClassLoaderDemo.class.getClassLoader()); //sun.misc.Launcher$AppClassLoader@36422510\n\t\tSystem.out.println(ClassLoaderDemo.class.getClassLoader().getParent()); //sun.misc.Launcher$ExtClassLoader@308f5944\n\t\tSystem.out.println(ClassLoaderDemo.class.getClassLoader().getParent().getParent()); //null\n\t}",
"public static synchronized void bootstrap() {\n ImplementingClassResolver.clearCache();\n if (bootstrapedNeeded) {\n reflectionsModel.rescann(\"\");\n }\n bootstrapedNeeded = false;\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassFilter parentFilter, ClassLoaderPolicy policy)\n {\n Set<String> parentPackages = getParentPackages();\n String[] parentPkgs = parentPackages.toArray(new String[parentPackages.size()]);\n PackageClassFilter filter = new PackageClassFilter(parentPkgs);\n filter.setIncludeJava(true);\n CombiningClassFilter beforeFilter = CombiningClassFilter.create(filter, parentFilter);\n ParentPolicy parentPolicy = new ParentPolicy(beforeFilter, ClassFilterUtils.NOTHING);\n return initializeClassLoader(clazz, system, parentPolicy, policy);\n }",
"private void initClassloaders() {\n\t\tthis.commonloader = createClassloader(\"common\",null);\n\t\tthis.sharedloader = createClassloader(\"shared\", commonloader);\n\t\tthis.catalinaloader = createClassloader(\"server\", commonloader);\n\t}",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassFilter beforeFilter, ClassFilter afterFilter, ClassLoaderPolicy policy)\n {\n ParentPolicy parentPolicy = new ParentPolicy(beforeFilter, afterFilter);\n return initializeClassLoader(clazz, system, parentPolicy, policy);\n }",
"private void parseSystemClasspath() {\n\t // Look for all unique classloaders.\n\t // Keep them in an order that (hopefully) reflects the order in which class resolution occurs.\n\t ArrayList<ClassLoader> classLoaders = new ArrayList<>();\n\t HashSet<ClassLoader> classLoadersSet = new HashSet<>();\n\t classLoadersSet.add(ClassLoader.getSystemClassLoader());\n\t classLoaders.add(ClassLoader.getSystemClassLoader());\n\t if (classLoadersSet.add(Thread.currentThread().getContextClassLoader())) {\n\t classLoaders.add(Thread.currentThread().getContextClassLoader());\n\t }\n\t // Dirty method for looking for any other classloaders on the call stack\n\t try {\n\t // Generate stacktrace\n\t throw new Exception();\n\t } catch (Exception e) {\n\t StackTraceElement[] stacktrace = e.getStackTrace();\n\t for (StackTraceElement elt : stacktrace) {\n\t try {\n\t ClassLoader cl = Class.forName(elt.getClassName()).getClassLoader();\n\t if (classLoadersSet.add(cl)) {\n\t classLoaders.add(cl);\n\t }\n\t } catch (ClassNotFoundException e1) {\n\t }\n\t }\n\t }\n\n\t // Get file paths for URLs of each classloader.\n\t clearClasspath();\n\t for (ClassLoader cl : classLoaders) {\n\t if (cl != null) {\n\t for (URL url : getURLs(cl)) {\n\t \t\n\t if (\"file\".equals(url.getProtocol())) {\n\t addClasspathElement(url.getFile());\n\t }\n\t }\n\t }\n\t }\n\t}",
"SpringLoader getSpringLoader();",
"private void init() throws ClassNotFoundException{\n }",
"void addClassLoader(ClassLoader cl);",
"private static AndroidNClassLoader createAndroidNClassLoader(PathClassLoader original, Application application) throws Exception {\n AndroidNClassLoader androidNClassLoader = new AndroidNClassLoader(\"\", original, application);\n Field originPathList = ShareReflectUtil.findField(original, \"pathList\");\n Object originPathListObject = originPathList.get(original);\n //should reflect definingContext also\n Field originClassloader = ShareReflectUtil.findField(originPathListObject, \"definingContext\");\n originClassloader.set(originPathListObject, androidNClassLoader);\n //copy pathList\n Field pathListField = ShareReflectUtil.findField(androidNClassLoader, \"pathList\");\n //just use PathClassloader's pathList\n pathListField.set(androidNClassLoader, originPathListObject);\n\n //we must recreate dexFile due to dexCache\n List<File> additionalClassPathEntries = new ArrayList<>();\n Field dexElement = ShareReflectUtil.findField(originPathListObject, \"dexElements\");\n Object[] originDexElements = (Object[]) dexElement.get(originPathListObject);\n for (Object element : originDexElements) {\n DexFile dexFile = (DexFile) ShareReflectUtil.findField(element, \"dexFile\").get(element);\n if (dexFile == null) {\n continue;\n }\n additionalClassPathEntries.add(new File(dexFile.getName()));\n //protect for java.lang.AssertionError: Failed to close dex file in finalizer.\n oldDexFiles.add(dexFile);\n }\n Method makePathElements = ShareReflectUtil.findMethod(originPathListObject, \"makePathElements\", List.class, File.class,\n List.class);\n ArrayList<IOException> suppressedExceptions = new ArrayList<>();\n Object[] newDexElements = (Object[]) makePathElements.invoke(originPathListObject, additionalClassPathEntries, null, suppressedExceptions);\n dexElement.set(originPathListObject, newDexElements);\n\n try {\n Class.forName(CHECK_CLASSLOADER_CLASS, true, androidNClassLoader);\n } catch (Throwable thr) {\n Log.e(TAG, \"load TinkerTestAndroidNClassLoader fail, try to fixDexElementsForProtectedApp\");\n fixDexElementsForProtectedApp(application, newDexElements);\n }\n\n return androidNClassLoader;\n }",
"public Class<?> loadApplicationClass(String name) {\n \n for (GraphClassLoader graphClassLoader : this.classLoaders) {\n Class<?> loadClass = graphClassLoader.loadApplicationClass(name, \n false //don't try delegate\n );\n \n if (logger.isDebugEnabled()) {\n logger.debug(\"Attempting to load class \" + name + \" from classloader \" + graphClassLoader + \" on behalf of delegate \" + this);\n }\n \n if (loadClass != null) {\n return loadClass;\n }\n }\n \n return null;\n }",
"ClassLoaderLogInfo getClassLoaderLogInfo();",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy)\n {\n return initializeClassLoader(clazz, system, policy, getParentPackages());\n }",
"private ClassLoader getClassLoader() {\r\n return this.getClass().getClassLoader();\r\n }",
"@Override\n public Loader getClassLoader() {\n\treturn this.classLoader;\n }",
"private void setupLauncherClassLoader() throws Exception {\n ClassLoader extCL = ClassLoader.getSystemClassLoader().getParent();\n ClassPathBuilder cpb = new ClassPathBuilder(extCL);\n\n try {\n addFrameworkJars(cpb);\n addJDKToolsJar(cpb);\n findDerbyClient(cpb);\n File moduleDir = bootstrapFile.getParentFile();\n cpb.addGlob(moduleDir, additionalJars);\n this.launcherCL = cpb.create();\n } catch (IOException e) {\n throw new Error(e);\n }\n Thread.currentThread().setContextClassLoader(launcherCL);\n }",
"private void loadExtensions(final Class extensionClass, final ExtensionClassLoader extensionClassLoader) {\n final ServiceLoader<?> serviceLoader = ServiceLoader.load(extensionClass, extensionClassLoader);\n for (final Object o : serviceLoader) {\n final String extensionClassName = o.getClass().getCanonicalName();\n if (classLoaderMap.containsKey(extensionClassName)) {\n final String currDir = extensionClassLoader.getRootDir();\n final String existingDir = classLoaderMap.get(extensionClassName).getRootDir();\n LOGGER.warn(\"Skipping {} from {} which was already found in {}\", new Object[]{extensionClassName, currDir, existingDir});\n } else {\n classLoaderMap.put(o.getClass().getCanonicalName(), extensionClassLoader);\n }\n }\n }",
"public static List<ClassLoader> findAllClassLoaders(final LogNode log) {\n // Need both a set and a list so we can keep them unique, but in an order that (hopefully) reflects\n // the order in which the JDK calls classloaders.\n //\n // See:\n // https://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html\n // http://www.javaworld.com/article/2077344/core-java/find-a-way-out-of-the-classloader-maze.html?page=2\n //\n final AdditionOrderedSet<ClassLoader> classLoadersSet = new AdditionOrderedSet<>();\n\n // Look for classloaders on the call stack\n // Find the first caller in the call stack to call a method in the FastClasspathScanner package\n ClassLoader callerLoader = null;\n if (CALLER_RESOLVER == null) {\n if (log != null) {\n log.log(ClasspathFinder.class.getSimpleName() + \" could not create \"\n + CallerResolver.class.getSimpleName() + \", current SecurityManager does not grant \"\n + \"RuntimePermission(\\\"createSecurityManager\\\")\");\n }\n } else {\n final Class<?>[] callStack = CALLER_RESOLVER.getClassContext();\n if (callStack == null) {\n if (log != null) {\n log.log(ClasspathFinder.class.getSimpleName() + \": \" + CallerResolver.class.getSimpleName()\n + \"#getClassContext() returned null\");\n }\n } else {\n final String fcsPkgPrefix = FastClasspathScanner.class.getPackage().getName() + \".\";\n int fcsIdx;\n for (fcsIdx = callStack.length - 1; fcsIdx >= 0; --fcsIdx) {\n if (callStack[fcsIdx].getName().startsWith(fcsPkgPrefix)) {\n break;\n }\n }\n if (fcsIdx < 0 || fcsIdx == callStack.length - 1) {\n // Should not happen\n throw new RuntimeException(\"Could not find caller of \" + fcsPkgPrefix + \"* in call stack\");\n }\n\n // Get the caller's current classloader\n callerLoader = callStack[fcsIdx + 1].getClassLoader();\n }\n }\n boolean useCallerLoader = callerLoader != null;\n\n // Get the context classloader\n final ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();\n boolean useContextLoader = contextLoader != null;\n\n // Get the system classloader\n final ClassLoader systemLoader = ClassLoader.getSystemClassLoader();\n boolean useSystemLoader = systemLoader != null;\n\n // Establish descendancy relationships, and ignore any classloader that is an ancestor of another.\n if (useCallerLoader && useContextLoader && isDescendantOf(callerLoader, contextLoader)) {\n useContextLoader = false;\n }\n if (useContextLoader && useCallerLoader && isDescendantOf(contextLoader, callerLoader)) {\n useCallerLoader = false;\n }\n if (useSystemLoader && useContextLoader && isDescendantOf(systemLoader, contextLoader)) {\n useContextLoader = false;\n }\n if (useContextLoader && useSystemLoader && isDescendantOf(contextLoader, systemLoader)) {\n useSystemLoader = false;\n }\n if (useSystemLoader && useCallerLoader && isDescendantOf(systemLoader, callerLoader)) {\n useCallerLoader = false;\n }\n if (useCallerLoader && useSystemLoader && isDescendantOf(callerLoader, systemLoader)) {\n useSystemLoader = false;\n }\n if (!useCallerLoader && !useContextLoader && !useSystemLoader) {\n // Should not happen\n throw new RuntimeException(\"Could not find a usable ClassLoader\");\n }\n // There will generally only be one class left after this. In rare cases, you may have a separate\n // callerLoader and contextLoader, but those cases are ill-defined -- see:\n // http://www.javaworld.com/article/2077344/core-java/find-a-way-out-of-the-classloader-maze.html?page=2\n // We specifically add the classloaders in the following order however, so that in the case that there\n // are two of them left, they are resolved in this order. The relative ordering of callerLoader and\n // contextLoader is due to the recommendation at the above URL.\n if (useSystemLoader) {\n classLoadersSet.add(systemLoader);\n }\n if (useCallerLoader) {\n classLoadersSet.add(callerLoader);\n }\n if (useContextLoader) {\n classLoadersSet.add(contextLoader);\n }\n\n final List<ClassLoader> classLoaders = classLoadersSet.getList();\n if (log != null) {\n for (final ClassLoader classLoader : classLoaders) {\n log.log(\"Found ClassLoader \" + classLoader.toString());\n }\n log.addElapsedTime();\n }\n return classLoaders;\n }",
"public void environmentStart(EnvironmentClassLoader loader)\n {\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ParentPolicy parentPolicy, ClassLoaderPolicy policy)\n {\n ClassLoaderDomain domain = system.createAndRegisterDomain(\"TEST\", parentPolicy);\n return initializeClassLoader(clazz, system, domain, policy);\n }",
"public ClassLoader getClassLoader () { return _classLoader; }",
"private ClassLoader createBootClassLoader(ClassLoader hostClassLoader) throws MojoExecutionException {\n \n Set<URL> bootClassPath = artifactHelper.resolve(\"org.codehaus.fabric3\", \"fabric3-test-runtime\", runtimeVersion, Artifact.SCOPE_RUNTIME, \"jar\");\n return new URLClassLoader(bootClassPath.toArray(new URL[] {}), hostClassLoader);\n \n }",
"protected ClassLoader getClassLoader() throws PortletException {\n return getClass().getClassLoader();\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy, String... parentPackages)\n {\n // The parent filter\n PackageClassFilter filter = new PackageClassFilter(parentPackages);\n filter.setIncludeJava(true);\n return initializeClassLoader(clazz, system, filter, ClassFilterUtils.NOTHING, policy);\n }",
"boolean isForceClassLoaderReset();",
"public void initClassLoader() {\n FileClassLoadingService classLoader = new FileClassLoadingService();\n\n // init from preferences...\n Domain classLoaderDomain = getPreferenceDomain().getSubdomain(\n FileClassLoadingService.class);\n\n Collection details = classLoaderDomain.getPreferences();\n if (details.size() > 0) {\n\n // transform preference to file...\n Transformer transformer = new Transformer() {\n\n public Object transform(Object object) {\n DomainPreference pref = (DomainPreference) object;\n return new File(pref.getKey());\n }\n };\n\n classLoader.setPathFiles(CollectionUtils.collect(details, transformer));\n }\n\n this.modelerClassLoader = classLoader;\n }",
"public void loadClass(String name) throws InstantiationException, IllegalAccessException, ClassNotFoundException{\n\t\tSystem.out.println(\"Class object address \" + InspectClassLoader.class.hashCode());\n\t\tObject obj = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\").newInstance();\n\t\tSystem.out.println(\"Same class object: \" + (obj.getClass() == InspectClassLoader.class));\n\t\t\n\t\t// Class<?> object's class is ???\n\t\tClass<?> s = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\");\n\t\tSystem.out.println(s.getClass()); // output: java.land.Class\n\t\t\n\t\tSystem.out.println(\"class loader hashcode \" + getClass().getClassLoader().hashCode());\n\t}",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderDomain domain, ClassLoaderPolicy policy)\n {\n // Remember some information\n this.system = system;\n this.domain = domain;\n this.policy = policy;\n \n // Create the classloader\n ClassLoader classLoader = system.registerClassLoaderPolicy(domain, policy);\n\n // Load the class from the isolated classloader\n try\n {\n clazz = classLoader.loadClass(clazz.getName());\n }\n catch (ClassNotFoundException e)\n {\n throw new RuntimeException(\"Unable to load test class in isolated classloader \" + clazz, e);\n }\n \n return clazz;\n }",
"private boolean isInstanceOfNoAnnotationURLClassLoader(ClassLoader loader)\r\n {\r\n Class parent = loader.getClass();\r\n while (parent != null)\r\n {\r\n if (\"NoAnnotationURLClassLoader\".equals(parent.getSimpleName()))\r\n {\r\n return true;\r\n }\r\n parent = parent.getSuperclass();\r\n }\r\n return false;\r\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassFilter parentFilter, ClassLoaderPolicy policy)\n {\n ClassLoaderSystem system = new DefaultClassLoaderSystem();\n return initializeClassLoader(clazz, system, parentFilter, policy);\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy, Set<String> parentPackages)\n {\n String[] parentPkgs = parentPackages.toArray(new String[parentPackages.size()]);\n return initializeClassLoader(clazz, system, policy, parentPkgs);\n }",
"@Override\n public Class<?> findClass(String className) throws ClassNotFoundException {\n try {\n return super.findClass(className);\n } catch (ClassNotFoundException e) {\n if (fallbackClassLoader != null) {\n Throwable prob = null;\n try {\n return classForName(className, true, fallbackClassLoader);\n } catch (Exception e1) {\n prob = ClassUtil.getRootCause(e1);\n throw new ClassNotFoundException(prob.getMessage(), prob);\n }\n }\n throw e;\n }\n }",
"@OnThread(Tag.Any)\n private void bootBluej()\n {\n initializeBoot();\n try {\n URLClassLoader runtimeLoader = new URLClassLoader(runtimeClassPath, bootLoader);\n \n // Construct a bluej.Main object. This starts BlueJ \"proper\".\n Class<?> mainClass = Class.forName(\"bluej.Main\", true, runtimeLoader);\n mainClass.getDeclaredConstructor().newInstance();\n \n } catch (ClassNotFoundException | InstantiationException | NoSuchMethodException \n | InvocationTargetException | IllegalAccessException exc) {\n throw new RuntimeException(exc);\n }\n }",
"private static Class<?> loadClass(String archiveImplClassName) throws Exception \n {\n return SecurityActions.getThreadContextClassLoader().loadClass(archiveImplClassName);\n }",
"public IClassLoader getClassLoader();",
"static ClassLoader contextClassLoader() {\n return Thread.currentThread().getContextClassLoader();\n }",
"public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n load(basedir);\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }",
"private boolean canLoadClass(ClassLoader loader, String className) {\n try {\n loader.loadClass(className);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"ClassLoader getNewTempClassLoader() {\n return new ClassLoader(getClassLoader()) {\n };\n }",
"protected ClassLoader getRestrictedClassloader(Profile profile) throws MalformedURLException\n {\n StringContainsClassRestrictor recipeLoader = null;\n URL libUrl = servletContext.getResource(\"/WEB-INF/\" + RECIPE_LIBRARY_PATH + \"/\" + profile.getRecipeLibraryFile());\n recipeLoader = new StringContainsClassRestrictor(new URL[] { libUrl }, servletContext.getClassLoader(), RESTRICTED_PACKAGES);\n return recipeLoader;\n }",
"public ClassLoader getClassLoader() {\n\t\treturn ClassLoader.getSystemClassLoader();\n\t}",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderPolicy policy)\n {\n ClassLoaderSystem system = new DefaultClassLoaderSystem();\n return initializeClassLoader(clazz, system, policy, getParentPackages());\n }",
"ClassLoader getClassLoader() throws GeDARuntimeException;",
"private URLClassLoader getURLClassLoader(URL jarURL) {\n \t\tClassLoader baseClassLoader = AGLoader.class.getClassLoader();\n \t\tif (baseClassLoader == null)\n \t\t\tbaseClassLoader = ClassLoader.getSystemClassLoader();\n \t\treturn new URLClassLoader(new URL[] { jarURL }, baseClassLoader);\n \t}",
"public static Class<?> loadClass(String className) throws ClassNotFoundException {\n // Use the thread context class loader. This is necessary because in some configurations, e.g.\n // when run from a single JAR containing caliper and all its dependencies the caliper JAR\n // ends up on the boot class path of the Worker and so needs to the use thread context class\n // loader to load classes provided by the user.\n return Class.forName(className, true, Thread.currentThread().getContextClassLoader());\n }",
"public ClassNotFoundException () {\n\t\tsuper((Throwable)null); // Disallow initCause\n\t}",
"public ClassLoader getClassLoader() {\n return null;\n }",
"@Override\n protected Class<?> loadClass(String name, boolean resolve)\n throws ClassNotFoundException {\n Class<?> loadedClass = findLoadedClass(name);\n if (loadedClass == null) {\n try {\n if (_classLoader != null) {\n loadedClass = _classLoader.loadClass(name);\n }\n } catch (ClassNotFoundException ex) {\n // class not found in system class loader... silently skipping\n }\n\n try {\n // find the class from given jar urls as in first constructor parameter.\n if (loadedClass == null) {\n loadedClass = findClass(name);\n }\n } catch (ClassNotFoundException e) {\n // class is not found in the given urls.\n // Let's try it in parent classloader.\n // If class is still not found, then this method will throw class not found ex.\n loadedClass = super.loadClass(name, resolve);\n }\n }\n\n if (resolve) { // marked to resolve\n resolveClass(loadedClass);\n }\n return loadedClass;\n }",
"public ClassLoader getClassLoader ()\n {\n return Thread.currentThread ().getContextClassLoader ();\n }",
"public boolean loadAdditionalPackages( String canonicalNameClassOrPkg) throws Exception;",
"public static void main(String[] args) throws ClassNotFoundException {\n AnotherSpring anotherSpring = new AnotherSpring();\n anotherSpring.loadComponent(args);\n anotherSpring.startServer();\n }",
"public static void someApplicationBootupMethod() {\n if (!AgentLoader.loadAgentFromClasspath(\"avaje-ebeanorm-agent\", \"debug=1;packages=model.**\")) {\n System.out.println(\"avaje-ebeanorm-agent not found in classpath - not dynamically loaded\");\n }\n\n System.out.println(\"avaje-ebeanorm-agent loaded\");\n }",
"public void testGetBootClassPath() {\n if (mb.isBootClassPathSupported()) {\n String bootclasspath = mb.getBootClassPath();\n assertNotNull(bootclasspath);\n assertTrue(bootclasspath.length() > 0);\n } else {\n try {\n mb.getBootClassPath();\n fail(\"Should have thrown an UnsupportedOperationException\");\n } catch (UnsupportedOperationException ignore) {\n }\n }\n }",
"@Test\n\tpublic void testCheckpointedStreamingClassloaderJobWithCustomClassLoader() throws IOException, ProgramInvocationException {\n\t\tPackagedProgram streamingCheckpointedProg = new PackagedProgram(new File(STREAMING_CHECKPOINTED_PROG_JAR_FILE));\n\n\t\tTestStreamEnvironment.setAsContext(\n\t\t\ttestCluster,\n\t\t\tparallelism,\n\t\t\tCollections.singleton(new Path(STREAMING_CHECKPOINTED_PROG_JAR_FILE)),\n\t\t\tCollections.<URL>emptyList());\n\n\t\t// Program should terminate with a 'SuccessException':\n\t\t// we can not access the SuccessException here when executing the tests with maven, because its not available in the jar.\n\t\texpectedException.expectCause(\n\t\t\tMatchers.<Throwable>hasProperty(\"cause\",\n\t\t\t\thasProperty(\"class\",\n\t\t\t\t\thasProperty(\"canonicalName\", equalTo(\n\t\t\t\t\t\t\"org.apache.flink.test.classloading.jar.CheckpointedStreamingProgram.SuccessException\")))));\n\n\t\tstreamingCheckpointedProg.invokeInteractiveModeForExecution();\n\t}",
"void resetClassLoader (boolean forAdjunct) {\r\n synchronized (classLoaderLock) {\r\n if (classLoader == null) {\r\n return;\r\n }\r\n if (forAdjunct) {\r\n classLoader = CALClassLoader.resetAdjunctClasses(classLoader);\r\n } else {\r\n // Simply discard the class loader. This will unload all classes in the module\r\n // and adjunct.\r\n classLoader = null;\r\n }\r\n }\r\n }",
"private JarFileLoader() {\n }",
"protected void delayedInit() throws ServletException {\n\t\tThread currentThread = Thread.currentThread();\n\t\tClassLoader tccl = currentThread.getContextClassLoader();\n\t\tcurrentThread.setContextClassLoader(WebSocketServlet.class.getClassLoader());\n\t\ttry {\n\t\t\tsuper.init();\n\t\t} finally {\n\t\t\tcurrentThread.setContextClassLoader(tccl);\n\t\t}\n\t}",
"@Override\n public void onDiscovery(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) {\n }",
"public String getSystemClassPath();",
"@Override\n protected FilterClassLoader.Filter getExtensionParentClassLoaderFilter() {\n return new FilterClassLoader.Filter() {\n @Override\n public boolean acceptResource(String resource) {\n return ALLOWED_RESOURCES.contains(resource);\n }\n\n @Override\n public boolean acceptPackage(String packageName) {\n return ALLOWED_PACKAGES.contains(packageName);\n }\n };\n }",
"@PostConstruct\n private void init() throws MalformedURLException {\n workingDirectoryPath = Paths.get(workDirectory).toAbsolutePath();\n if (Files.exists(workingDirectoryPath)) {\n if (!Files.isDirectory(workingDirectoryPath)) {\n throw new FhFormException(workingDirectoryPath + \" is not a directory\");\n }\n } else {\n try {\n Files.createDirectories(workingDirectoryPath);\n } catch (IOException e) {\n throw new FhFormException(\"Cannot create \" + workingDirectoryPath, e);\n }\n }\n\n // create classloader\n URL url = workingDirectoryPath.toUri().toURL();\n\n workingDirectoryClassloader = FhCL.classLoader;\n addURLToClassLoader(url, workingDirectoryClassloader);\n }",
"public ClassLoader getClassLoader() {\n return new BundleClassLoader(bundle);\n }",
"protected ClassLoader getClassLoader()\n {\n return m_classLoader;\n }",
"private void hookLastInterceptor(final LoadPackageParam lp) {\n Log.i(TAG, \"start hookLastInterceptor:\" + lp.packageName);\n XposedHelpers.findAndHookMethod(Application.class, \"attach\", Context.class, new XC_MethodHook() {\n @Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n final ClassLoader cl = ((Context) param.args[0]).getClassLoader();\n\n try {\n cl.loadClass(\"okhttp3.internal.http.CallServerInterceptor\");\n cl.loadClass(\"okhttp3.Interceptor.Chain\");\n classInDexFound = true;\n realHookLastInterceptor(cl);\n } catch (Throwable e) {\n if (e instanceof ClassNotFoundException) {\n findHideDex(findDexListener);\n } else {\n e.printStackTrace();\n }\n }\n\n }\n });\n }",
"static private URLClassLoader separateClassLoader(URL[] classpath) throws Exception {\n\t\treturn new URLClassLoader(classpath, ClassLoader.getSystemClassLoader().getParent());\r\n\t}",
"public void setClassLoader(ComponentInitializer extClassLoader){\n\t\t\n\t\tthis.extClassLoader = extClassLoader;\n\t}",
"private static void initForClosingJars() throws NoSuchFieldException {\n jcpField = getField(URLClassLoader.class, URLCLASSLOADER_UCP_FIELD_NAME);\n loadersField = getField(URLClassPath.class, URLCLASSPATH_LOADERS_FIELD_NAME);\n urlsField = getField(URLClassPath.class, URLCLASSPATH_URLS_FIELD_NAME);\n lmapField = getField(URLClassPath.class, URLCLASSPATH_LMAP_FIELD_NAME);\n \n jarLoaderInnerClass = getInnerClass(URLClassPath.class, URLCLASSPATH_JARLOADER_INNER_CLASS_NAME);\n jarFileField = getField(jarLoaderInnerClass, URLCLASSPATH_JARLOADER_JARFILE_FIELD_NAME);\n }",
"protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}",
"@Override\n public ElementMatcher<ClassLoader> classLoaderMatcher() {\n return HibernateMatchers.CLASS_LOADER_MATCHER;\n }",
"public Class<?> loadClass(String str, boolean z) throws ClassNotFoundException {\n if (str.startsWith(BuildConfig.APPLICATION_ID) || str.startsWith(\"android\") || str.startsWith(\"external\") || str.startsWith(\"me.weishu.epic.art\") || str.startsWith(\"com.taobao.android.dexposed\")) {\n return this.mHostClassLoader.loadClass(str);\n }\n return super.loadClass(str, z);\n }",
"private void loadClassesFromJar(final String runnableID, final File jarfile) {\n \n mTaskCache.get(runnableID).taskClasses = new LinkedList<Class>();\n \n Log.i(TAG,\n \"XXX: Calling DexClassLoader with jarfile: \" + jarfile.getAbsolutePath());\n final File tmpDir = mContext.getDir(\"dex\", 0);\n \n mTaskCache.get(runnableID).classLoader = new DexClassLoader(\n jarfile.getAbsolutePath(),\n tmpDir.getAbsolutePath(),\n null,\n BackgroundService.class.getClassLoader());\n // mTaskCache.get(mCurrentRunnableID).classLoader = mTaskCache.get(runnableID).classLoader;\n // setRunnableID(runnableID); \n \n // load all available classes\n String path = jarfile.getPath();\n \n \n try {\n // load dexfile\n DexFile dx = DexFile.loadDex(\n path,\n File.createTempFile(\"opt\", \"dex\", mContext.getCacheDir()).getPath(),\n 0);\n \n // extract all available classes\n for (Enumeration<String> classNames = dx.entries(); classNames.hasMoreElements();) {\n String className = classNames.nextElement();\n Log.i(TAG, String.format(\"found class: %s\", className));\n try {\n // TODO: do only forName() here?\n // final Class<Object> loadedClass = (Class<Object>) mClassLoaderWrapper.get().loadClass(className);\n final Class<Object> loadedClass = (Class<Object>) mTaskCache.get(runnableID).classLoader.loadClass(className);\n Log.i(TAG, String.format(\"Loaded class: %s\", className));\n // add associated classes to task class list\n if (loadedClass == null) {\n Log.e(TAG, \"EEEEEE loadedClass is null\");\n }\n if (mTaskCache.get(runnableID) == null) {\n Log.e(TAG, \"EEEEEE no mapentry found\");\n }\n if (mTaskCache.get(runnableID).taskClasses == null) {\n Log.e(TAG, \"EEEEEE taskClasses empty\");\n }\n mTaskCache.get(runnableID).taskClasses.add(loadedClass);\n // add task class to task list\n if (DistributedRunnable.class.isAssignableFrom(loadedClass)) {\n mTaskCache.get(runnableID).taskClass = loadedClass;\n }\n }\n catch (ClassNotFoundException ex) {\n Log.getStackTraceString(ex);\n }\n }\n }\n catch (IOException e) {\n System.out.println(\"Error opening \" + path);\n }\n // notify listeners\n for (JobCenterHandler handler : mHandlerList) {\n handler.onBinaryReceived(runnableID);\n }\n }",
"ClasspathFinder(final ScanSpec scanSpec, final NestedJarHandler nestedJarHandler, final LogNode log) {\n // Get all classloaders, in classpath resolution order\n final AdditionOrderedSet<ClassLoader> allClassLoaders = new AdditionOrderedSet<>();\n for (final ClassLoader classLoader : scanSpec.classLoaders) {\n final ArrayList<ClassLoader> parentClassLoaders = new ArrayList<>();\n for (ClassLoader cl = classLoader; cl != null; cl = cl.getParent()) {\n parentClassLoaders.add(cl);\n }\n // OpenJDK calls classloaders in a top-down order\n for (int i = parentClassLoaders.size() - 1; i >= 0; --i) {\n allClassLoaders.add(parentClassLoaders.get(i));\n }\n }\n final List<ClassLoader> classLoaderOrder = allClassLoaders.getList();\n\n this.nestedJarHandler = nestedJarHandler;\n if (scanSpec.overrideClasspath != null) {\n // Manual classpath override\n if (scanSpec.overrideClassLoaders) {\n if (log != null) {\n log.log(\"It is not possible to override both the classpath and the ClassLoaders -- \"\n + \"ignoring the ClassLoader override\");\n }\n }\n final LogNode overrideLog = log == null ? null : log.log(\"Overriding classpath\");\n addClasspathElements(scanSpec.overrideClasspath, classLoaderOrder, overrideLog);\n if (overrideLog != null) {\n log.log(\"WARNING: when the classpath is overridden, there is no guarantee that the classes \"\n + \"found by classpath scanning will be the same as the classes loaded by the context \"\n + \"classloader\");\n }\n } else {\n // If system jars are not blacklisted, need to manually add rt.jar at the beginning of the classpath,\n // because it is included implicitly by the JVM.\n if (!scanSpec.blacklistSystemJars()) {\n // There should only be zero or one of these.\n final String rtJarPath = JarUtils.getRtJarPath();\n if (rtJarPath != null) {\n // Insert rt.jar as the first entry in the classpath.\n addClasspathElement(rtJarPath, classLoaderOrder, log);\n }\n }\n // Get all manually-added ClassLoaderHandlers\n final List<ClassLoaderHandler> classLoaderHandlers = new ArrayList<>();\n for (final Class<? extends ClassLoaderHandler> classLoaderHandler : scanSpec.extraClassLoaderHandlers) {\n try {\n classLoaderHandlers.add(classLoaderHandler.newInstance());\n } catch (InstantiationException | IllegalAccessException e) {\n if (log != null) {\n log.log(\"Could not instantiate \" + classLoaderHandler.getName(), e);\n }\n }\n }\n // Add all default ClassLoaderHandlers after manually-added ClassLoaderHandlers\n for (final Class<? extends ClassLoaderHandler> classLoaderHandlerClass : //\n ClassLoaderHandlerRegistry.DEFAULT_CLASS_LOADER_HANDLERS) {\n try {\n classLoaderHandlers.add(classLoaderHandlerClass.newInstance());\n } catch (InstantiationException | IllegalAccessException e) {\n if (log != null) {\n log.log(\"Could not instantiate \" + classLoaderHandlerClass.getName(), e);\n }\n }\n }\n if (log != null) {\n final LogNode classLoaderHandlerLog = log.log(\"ClassLoaderHandlers loaded:\");\n for (final ClassLoaderHandler classLoaderHandler : classLoaderHandlers) {\n classLoaderHandlerLog.log(classLoaderHandler.getClass().getName());\n }\n }\n\n // Try finding a handler for each of the classloaders discovered above\n for (final ClassLoader classLoader : classLoaderOrder) {\n // Skip system classloaders for efficiency if system jars are not going to be scanned.\n // TODO: Update to include JDK9 system classloader names.\n if (!scanSpec.blacklistSystemJars()\n || !classLoader.getClass().getName().startsWith(\"sun.misc.Launcher$ExtClassLoader\")) {\n final LogNode classLoaderLog = log == null ? null\n : log.log(\"Finding classpath elements in ClassLoader \" + classLoader);\n // Iterate through registered ClassLoaderHandlers\n boolean classloaderFound = false;\n for (final ClassLoaderHandler handler : classLoaderHandlers) {\n try {\n if (handler.handle(classLoader, this, classLoaderLog)) {\n classloaderFound = true;\n break;\n }\n } catch (final Exception e) {\n if (classLoaderLog != null) {\n classLoaderLog.log(\"Exception in ClassLoaderHandler\", e);\n }\n }\n }\n if (!classloaderFound) {\n if (classLoaderLog != null) {\n classLoaderLog.log(\"Unknown ClassLoader type, cannot scan classes\");\n }\n }\n }\n }\n\n if (!scanSpec.overrideClassLoaders) {\n // Add entries found in java.class.path, in case those entries were missed above due to some\n // non-standard classloader that uses this property\n final LogNode sysPropLog = log == null ? null\n : log.log(\"Getting classpath entries from java.class.path\");\n addClasspathElements(System.getProperty(\"java.class.path\"), classLoaderOrder, sysPropLog);\n }\n }\n }",
"private ClassLoader createBundleClassLoader(final FileSystemManager fileSystemManager,\n final FileObject bundleFile, final ClassLoader parentClassLoader)\n throws FileSystemException, ClassNotFoundException {\n logger.debug(\"Loading Bundle file: \" + bundleFile.getURL());\n final ClassLoader bundleClassLoader = new VfsBundleClassLoader.Builder()\n .withFileSystemManager(fileSystemManager).withBundleFile(bundleFile)\n .withParentClassloader(parentClassLoader).build();\n logger.info(\n \"Loaded Bundle file: \" + bundleFile.getURL() + \" as class loader \" + bundleClassLoader);\n return bundleClassLoader;\n }",
"public interface BootLoaderManager {\n\n /**\n * 注入上下文\n * @param atlasWrapperApplicationContext\n */\n BootLoaderManager attachContext(AtlasWrapperApplicationContext atlasWrapperApplicationContext);\n\n /**\n * 获取上下文环境\n * @return\n */\n AtlasWrapperApplicationContext getContext();\n\n /**\n * 启动加载\n */\n void load();\n}",
"private List<ExtensionClassLoader> getClassLoaders() {\n final List<ExtensionClassLoader> classLoaders = new ArrayList<>();\n\n // start with the class loader that loaded ExtensionManager, should be WebAppClassLoader for API WAR\n final ExtensionClassLoader frameworkClassLoader = new ExtensionClassLoader(\"web-api\", new URL[0], this.getClass().getClassLoader());\n classLoaders.add(frameworkClassLoader);\n\n // we want to use the system class loader as the parent of the extension class loaders\n ClassLoader systemClassLoader = FlowPersistenceProvider.class.getClassLoader();\n\n // add a class loader for each extension dir\n final Set<String> extensionDirs = properties.getExtensionsDirs();\n for (final String dir : extensionDirs) {\n if (!StringUtils.isBlank(dir)) {\n final ExtensionClassLoader classLoader = createClassLoader(dir, systemClassLoader);\n if (classLoader != null) {\n classLoaders.add(classLoader);\n }\n }\n }\n\n return classLoaders;\n }",
"public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n if (load(basedir, false) == null) {\n throw new ConfiguratorException(\n \"configurator.cannot.bootstrap\");\n }\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }",
"@Bean\n\tpublic TomcatServletWebServerFactory tomcatFactory() {\n\t return new TomcatServletWebServerFactory() {\n\t @Override\n\t protected void postProcessContext(Context context) {\n\t ((StandardJarScanner) context.getJarScanner()).setScanManifest(false);\n\t }};\n\t}",
"@Deprecated\n@ConsumerType\npublic interface DynamicClassLoaderProvider {\n\n /**\n * Return the class loader used for dynamic class loading.\n * The returned class loader should use the provided parent class loader\n * as one of its parent class loaders. This ensures that the returned\n * class loader has access to all dynamically loaded classes that\n * are not part of this class loader.\n * When the class loader is not needed anymore, it is released by\n * calling the {@link #release(ClassLoader)} method.\n * @param parent The parent class loader for this dynamic class loader.\n * @return The class loader.\n * @see #release(ClassLoader)\n */\n ClassLoader getClassLoader(ClassLoader parent);\n\n /**\n * Release the provided class loader.\n * When the class loader is not needed anymore, e.g. when the dynamic class\n * loader is shutdown, it is released with this method.\n * The implementation can use this hook to free any allocated resources etc.\n * @param classLoader The class loader.\n * @see #getClassLoader(ClassLoader)\n * @since 2.0\n */\n void release(ClassLoader classLoader);\n}",
"@Override\n public boolean canRun(Class<? extends Object> toRun)\n {\n boolean found = false;\n for (Annotation a : toRun.getAnnotations())\n {\n if (a.annotationType().getName().contains(\"org.springframework\"))\n {\n found = true;\n break;\n }\n }\n if (!found)\n {\n return false;\n }\n\n // Check spring-context is present in payload class loader, as well as our handler.\n try\n {\n toRun.getClassLoader().loadClass(\"org.springframework.context.annotation.AnnotationConfigApplicationContext\");\n toRun.getClassLoader().loadClass(\"com.enioka.jqm.handler.AnnotationSpringContextBootstrapHandler\");\n }\n catch (ClassNotFoundException e)\n {\n return false;\n }\n\n // OK, we can run this.\n return true;\n }",
"@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }",
"public static ClassLoader getDefaultClassLoader() {\n ClassLoader cl = null;\n try {\n cl = Thread.currentThread().getContextClassLoader();\n } finally {\n if (cl == null) {\n cl = ClassUtils.class.getClassLoader();\n }\n if (cl == null) {\n cl = ClassLoader.getSystemClassLoader();\n }\n }\n return cl;\n }",
"@Override\n\tpublic void earlyStartup() {\n\t}",
"public void initApplicationContext()\r\n/* 32: */ throws BeansException\r\n/* 33: */ {\r\n/* 34:103 */ super.initApplicationContext();\r\n/* 35:104 */ registerHandlers(this.urlMap);\r\n/* 36: */ }",
"static void setParentClassLoader(ClassLoader bootStrap, BaseManager baseMgr,\n DeploymentRequest req) throws ConfigException, IOException {\n\n List allClassPaths = new ArrayList();\n \n // system class loader \n List systemClasspath = baseMgr.getSystemCPathPrefixNSuffix();\n if (systemClasspath.size() > 0) {\n allClassPaths.addAll(systemClasspath);\n }\n\n // common class loader\n List commonClassPath = getCommonClasspath(baseMgr);\n if (commonClassPath.size() > 0) {\n allClassPaths.addAll(commonClassPath);\n }\n\n // shared class loader\n // Some explanation on the special handling below:\n // Per the platform specification, connector classes are to be availble\n // to all applications, i.e. a connector deployed to target foo should\n // be available to apps deployed on foo (and not target bar). In that\n // case, we will need to figure out all connector module deployed to \n // the target on which the application is deployed. Resolving the\n // classpath accordlingly. \n String targetString = req.getResourceTargetList();\n List<String> targets = null;\n if (targetString != null) {\n // get the accurate list of targets from client\n targets = DeploymentServiceUtils.getTargetNamesFromTargetString(\n targetString); \n } else {\n // get all the targets of this domain\n targets = new ArrayList<String>(); \n ConfigContext configContext = AdminService.getAdminService(\n ).getAdminContext().getAdminConfigContext();\n\n Server[] servers = ServerHelper.getServersInDomain(configContext); \n for (Server server: servers) {\n targets.add(server.getName());\n } \n Cluster[] clusters = ClusterHelper.getClustersInDomain(\n configContext); \n for (Cluster cluster: clusters) {\n targets.add(cluster.getName());\n } \n }\n\n for (String target: targets) {\n List sharedClassPath = \n baseMgr.getSharedClasspath(true, target);\n if (sharedClassPath.size() > 0) {\n allClassPaths.addAll(sharedClassPath);\n }\n }\n\n ClassLoader parentClassLoader = \n getClassLoader(allClassPaths, bootStrap, null);\n\n // sets the parent class loader\n req.setParentClassLoader(parentClassLoader);\n\n // sets the class path for the class loader\n req.setParentClasspath(allClassPaths);\n }",
"@Override\n protected void before() throws Throwable {\n ClassLoader oldClassLoader = ClassLoaders.setContextClassLoader(STANDALONE.getClass().getClassLoader());\n try {\n Method before = STANDALONE.getClass().getDeclaredMethod(\"before\");\n before.setAccessible(true);\n before.invoke(STANDALONE);\n } finally {\n ClassLoaders.setContextClassLoader(oldClassLoader);\n }\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\", \"resource\" })\n\tpublic static void main(String args[]) throws Exception {\n\t\tB b = new B();\n\t\t// a.setB(b);\n\n\t\t// System.out.printf(\"A classLoader is %s \\n\", a.getClass()\n\t\t// .getClassLoader());\n\t\tSystem.out.printf(\"B classLoader is %s \\n\", b.getClass()\n\t\t\t\t.getClassLoader());\n\t\t// System.out.printf(\"A.b classLoader is %s \\n\", a.getB().getClass()\n\t\t// .getClassLoader());\n\n\t\t// HotSwapClassLoader c1 = new HotSwapClassLoader(new URL[] { new File(\n\t\t// \"/home/atell/\") .toURI().toURL()}, b.getClass().getClassLoader());\n\t\tURLClassLoader c1 = new HotSwapClassLoader(\n\t\t\t\tnew URL[] { new File(\"/home/atell/\").toURI().toURL() },null);\n//\t\tThread.currentThread().setContextClassLoader(c1);\n\t\t\n\t\tClass clazz =c1.loadClass(\"urlclassloader.A\");\n\t\tSystem.out.println(clazz.getClassLoader());\n\t\n\t\tclazz.newInstance();\n\n//\t\tMethod method2 = clazz.getMethod(\"getB\", null);\n//\t\tObject bInstance = method2.invoke(aInstance, null);\n\n//\t\tSystem.out.printf(\" a classLoader is %s \\n\", aInstance.getClass()\n//\t\t\t\t.getClassLoader());\n//\t\tSystem.out.printf(\" a.b classLoader is %s \\n\", bInstance.getClass()\n//\t\t\t\t.getClassLoader());\n\t}",
"LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ClassLoader getClassLoaderFor(ObjectName mbeanName)\n throws InstanceNotFoundException{\n return mbsInterceptor.getClassLoaderFor(cloneObjectName(mbeanName));\n }",
"protected ClassLoader(ClassLoader parent) {\r\n if (parent == null) {\r\n if (!getClass().equals(Launcher.ExtClassLoader.class)) {\r\n this.parent = getSystemClassLoader();\r\n } else {\r\n this.parent = null;\r\n }\r\n } else {\r\n this.parent = parent;\r\n }\r\n RefNative.initNativeClassLoader(this, parent);\r\n }",
"public final void include(RuntimeEnv env, RuntimeStack stack, Scope3202 scope)\n throws IncludeEventException {\n env.addManualClassLoad(\"Symfony\\\\Component\\\\Console\\\\Logger\\\\ConsoleLogger\");\n }",
"public static void loadClass(String name) {\n\n }"
]
| [
"0.6006555",
"0.5895237",
"0.58126223",
"0.5750366",
"0.5717914",
"0.5681706",
"0.5680083",
"0.5626311",
"0.5604302",
"0.5531266",
"0.5472257",
"0.54611135",
"0.5442099",
"0.5426113",
"0.5387287",
"0.5382655",
"0.53751224",
"0.5338239",
"0.53310376",
"0.53270894",
"0.5293082",
"0.5291085",
"0.5290172",
"0.52884334",
"0.52835464",
"0.52436876",
"0.52368605",
"0.52358544",
"0.52351725",
"0.51763624",
"0.5174472",
"0.5166525",
"0.51363194",
"0.5127395",
"0.51219803",
"0.5118899",
"0.5101918",
"0.50857747",
"0.50749993",
"0.5071411",
"0.50472313",
"0.5035129",
"0.50335693",
"0.50246537",
"0.5016676",
"0.5007356",
"0.49872243",
"0.4978332",
"0.49750838",
"0.49662954",
"0.4965761",
"0.49648649",
"0.49569055",
"0.49504372",
"0.49254274",
"0.49212304",
"0.49140614",
"0.48813555",
"0.48789763",
"0.4878134",
"0.48702377",
"0.48619288",
"0.4855781",
"0.48551545",
"0.48433527",
"0.4837204",
"0.48365748",
"0.48169556",
"0.47965023",
"0.47923934",
"0.4790365",
"0.47870296",
"0.47867417",
"0.4783793",
"0.47830188",
"0.47811764",
"0.47745577",
"0.4770656",
"0.47700953",
"0.47683826",
"0.4766879",
"0.4763625",
"0.47599548",
"0.47579923",
"0.4756068",
"0.47534525",
"0.4753399",
"0.47361568",
"0.47285035",
"0.47264704",
"0.4722295",
"0.47111708",
"0.46944904",
"0.46885636",
"0.4667341",
"0.46639732",
"0.46599156",
"0.4658084",
"0.465184",
"0.46510085"
]
| 0.6120537 | 0 |
We use the sampler to know if the trace has to be reported/written. The sampler is called on the first span (root span) of the trace. If the trace is marked as a sample, we report it. | void write(final List<DDSpan> trace) {
if (trace.isEmpty()) {
return;
}
List<DDSpan> writtenTrace = trace;
if (!interceptors.isEmpty()) {
Collection<? extends MutableSpan> interceptedTrace = new ArrayList<>(trace);
try {
for (final TraceInterceptor interceptor : interceptors) {
interceptedTrace = interceptor.onTraceComplete(interceptedTrace);
}
} catch (Exception e) {
log.debug("Exception in TraceInterceptor", e);
return;
}
writtenTrace = new ArrayList<>(interceptedTrace.size());
for (final MutableSpan span : interceptedTrace) {
if (span instanceof DDSpan) {
writtenTrace.add((DDSpan) span);
}
}
}
if (!writtenTrace.isEmpty()) {
boolean forceKeep = metricsAggregator.publish(writtenTrace);
DDSpan rootSpan = writtenTrace.get(0).getLocalRootSpan();
setSamplingPriorityIfNecessary(rootSpan);
DDSpan spanToSample = rootSpan == null ? writtenTrace.get(0) : rootSpan;
spanToSample.forceKeep(forceKeep);
boolean published = forceKeep || sampler.sample(spanToSample);
if (published) {
writer.write(writtenTrace);
} else {
// with span streaming this won't work - it needs to be changed
// to track an effective sampling rate instead, however, tests
// checking that a hard reference on a continuation prevents
// reporting fail without this, so will need to be fixed first.
writer.incrementDropCounts(writtenTrace.size());
}
if (null != rootSpan) {
onRootSpan(rootSpan, published);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public boolean hasOverallSampling() {\n return overallSampling_ != null;\n }",
"@Test public void propagates_sampledFalse() throws Exception {\n tracing = GrpcTracing.create(tracingBuilder(Sampler.NEVER_SAMPLE).build());\n closeClient(client);\n client = newClient();\n\n GreeterGrpc.newBlockingStub(client).sayHello(HELLO_REQUEST);\n\n TraceContextOrSamplingFlags extracted = server.takeRequest();\n assertThat(extracted.sampled()).isFalse();\n\n // @After will check that nothing is reported\n }",
"@Test\n public void testDoReport() {\n long startTime = 111;\n String traceId = \"traceId\";\n String spanId = \"spanId\";\n SofaTracerSpanContext sofaTracerSpanContext = new SofaTracerSpanContext(traceId, spanId,\n null);\n Map<String, String> tags = new HashMap<String, String>();\n tags.put(\"key\", \"value\");\n\n // other case:sofaTracerSpanContext.setSampled(Boolean.False)\n sofaTracerSpanContext.setSampled(Boolean.TRUE);\n SofaTracerSpan sofaTracerSpan = new SofaTracerSpan(this.sofaTracer, startTime,\n \"testConstructSpan\", sofaTracerSpanContext, tags);\n\n clientAbstractDiskReporter.doReport(sofaTracerSpan);\n if(!sofaTracerSpanContext.isSampled()){\n // 没有初始化\n assertEquals(false, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertEquals(0, statReporter.getStatData().size());\n }else {\n // 初始化\n assertEquals(true, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertNotEquals(0, statReporter.getStatData().size());\n }\n }",
"public boolean shouldRecord() {\n return !this.instrumentationSampling.isSampleRateExceeded();\n }",
"public boolean hasOverallSampling() {\n return overallSamplingBuilder_ != null || overallSampling_ != null;\n }",
"protected Sampler nextIsASampler(Sampler element) throws NextIsNullException {\n incrementCurrent();\n return element;\n }",
"@java.lang.Override\n public boolean hasRandomSampling() {\n return randomSampling_ != null;\n }",
"@Test\n public void testNoExecutionsSinceLastSample() throws IOException {\n tracker.takeSample(10); // Journal: IDLE\n\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.takeSample(10); // Journal: IDLE A1\n tracker.takeSample(10); // Journal: A1\n\n tracker.exit();\n tracker.takeSample(10); // Journal: A1 IDLE\n assertThat(getCounterValue(step), equalTo(distribution(20)));\n\n tracker.takeSample(10); // Journal: IDLE\n assertThat(getCounterValue(step), equalTo(distribution(20)));\n }",
"private Sampler next2() {\n if (isFirst()) // must be the start of the subtree\n {\n calls = 0;\n noFailingSamples = 0;\n res = new SampleResult();\n res.setSampleLabel(getName());\n // Assume success\n res.setSuccessful(true);\n res.sampleStart();\n prevEndTime = res.getStartTime();//???\n pauseTime = 0;\n }\n boolean isLast = current==super.subControllersAndSamplers.size();\n Sampler returnValue = super.next();\n if (returnValue == null && isLast) // Must be the end of the controller\n {\n if (res != null) {\n // See BUG 55816\n if (!isIncludeTimers()) {\n long processingTimeOfLastChild = res.currentTimeInMillis() - prevEndTime;\n pauseTime += processingTimeOfLastChild;\n }\n res.setIdleTime(pauseTime+res.getIdleTime());\n res.sampleEnd();\n res.setResponseMessage(\"Number of samples in transaction : \" + calls + \", number of failing samples : \" + noFailingSamples);\n if(res.isSuccessful()) {\n res.setResponseCodeOK();\n }\n notifyListeners();\n }\n }\n else {\n // We have sampled one of our children\n calls++;\n }\n \n return returnValue;\n }",
"@Test\n public void simulatedStepByStepSamplingCollection() throws Exception {\n\n long samplingInterval = 10 * 1000L; // 10 seconds to allow us time to experiment\n\n // the sampling task run interval is 0, meaning no timer task will be registered\n SamplerImpl s = new SamplerImpl(0L, samplingInterval);\n s.registerOperation(MockSamplerOperation.class);\n\n MockSamplingConsumer msc = new MockSamplingConsumer();\n s.registerConsumer(msc);\n\n assertTrue(s.getLastRunTimestamp() <= 0);\n\n // we're not actually starting anything because the sampling task interval is 0, but the sampler will look\n // like it started; this will also run the first initialization run()\n s.start();\n\n assertTrue(s.isStarted());\n\n assertTrue(s.getLastRunTimestamp() > 0);\n SamplingInterval current = s.getCurrent();\n assertNotNull(current);\n\n s.run(); // first run, should not collect anyting\n\n long ts = current.getStartMs();\n\n // make sure it's rounded on the second\n assertEquals(0L, ts - ((ts / 1000) * 1000L));\n\n s.run(); // second collection run, should not collect anything\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n Set<Class<? extends Operation>> operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n assertTrue(current.getAnnotations().isEmpty());\n CounterValues cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(0L, cvs.getSuccessCount());\n assertEquals(0L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(0L, cvs.getFailureCount());\n assertEquals(0L, cvs.getFailureCumulatedDurationNano());\n\n // record a success and a failure\n s.record(System.currentTimeMillis(), 1L, 2L, new MockSamplerOperation()); // 1\n s.record(System.currentTimeMillis(), 3L, 5L, new MockSamplerOperation(), new SocketException()); // 2\n\n // another collection run, it should collect both the success and the failure\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n assertTrue(current.getAnnotations().isEmpty());\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(1L, cvs.getSuccessCount());\n assertEquals(1L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(1L, cvs.getFailureCount());\n assertEquals(2L, cvs.getFailureCumulatedDurationNano());\n Set<Class<? extends Throwable>> failureTypes = cvs.getFailureTypes();\n assertEquals(1, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertEquals(1L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n\n // record a success, the same type a failure, and an annotation\n s.record(System.currentTimeMillis(), 6L, 9L, new MockSamplerOperation()); // 3\n s.record(System.currentTimeMillis(), 10L, 14L, new MockSamplerOperation(), new SocketException()); // 4\n s.annotate(\"annotation 1\");\n\n // another collection run\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n List<String> annotations = current.getAnnotations();\n assertEquals(1, annotations.size());\n assertTrue(annotations.contains(\"annotation 1\"));\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(2L, cvs.getSuccessCount());\n assertEquals(1L + 3L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(2L, cvs.getFailureCount());\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano());\n failureTypes = cvs.getFailureTypes();\n assertEquals(1, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertEquals(2L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n\n // record a success, a different type a failure, and another annotation\n s.record(System.currentTimeMillis(), 15L, 20L, new MockSamplerOperation()); // 5\n s.record(System.currentTimeMillis(), 21L, 27L, new MockSamplerOperation(), new ConnectException()); // 6\n s.annotate(\"annotation 2\");\n\n // another collection run\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n annotations = current.getAnnotations();\n assertEquals(2, annotations.size());\n assertEquals(\"annotation 1\", annotations.get(0));\n assertEquals(\"annotation 2\", annotations.get(1));\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(3L, cvs.getSuccessCount());\n assertEquals(1L + 3L + 5L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(3L, cvs.getFailureCount());\n assertEquals(2L + 4L + 6L, cvs.getFailureCumulatedDurationNano());\n failureTypes = cvs.getFailureTypes();\n assertEquals(2, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertTrue(failureTypes.contains(ConnectException.class));\n assertEquals(2L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n assertEquals(1L, cvs.getFailureCount(ConnectException.class));\n assertEquals(6L, cvs.getFailureCumulatedDurationNano(ConnectException.class));\n }",
"public static void sample() {\n System.out.println(\"# 1\");\n Observable.fromIterable(sData)\n .timestamp()\n .sample(1000, TimeUnit.MICROSECONDS)\n .subscribe(new MyObserver<>());\n\n /*\n Emission controlled by sampler inner observable\n */\n System.out.println(\"# 2\");\n Observable.fromIterable(sData)\n .sample((observer) -> {\n System.out.println(\"emitter\");\n Observable.just(\"123\").subscribe(observer);\n }, true).subscribe(new MyObserver<>());\n }",
"public void record() {\n stats.record();\n }",
"@java.lang.Override\n public boolean hasClientSampling() {\n return clientSampling_ != null;\n }",
"public boolean hasRandomSampling() {\n return randomSamplingBuilder_ != null || randomSampling_ != null;\n }",
"@SuppressWarnings(\"unchecked\")\n void setSamplingPriorityIfNecessary(final DDSpan rootSpan) {\n\n if (sampler instanceof PrioritySampler\n && rootSpan != null\n && rootSpan.context().getSamplingPriority() == PrioritySampling.UNSET) {\n\n ((PrioritySampler<DDSpan>) sampler).setSamplingPriority(rootSpan);\n }\n }",
"synchronized void writeSampleData(final int trackIndex, final ByteBuffer byteBuf, final MediaCodec.BufferInfo bufferInfo) {\n\t\tif (mStatredCount > 0)\n\t\t\tmMediaMuxer.writeSampleData(trackIndex, byteBuf, bufferInfo);\n\t}",
"void enableSampledStatistics();",
"@Override\n public SampleResult sample(Entry e) {\n return sample();\n }",
"@Override\n public SampleResult sample(Entry e) {\n return sample();\n }",
"private void logDroppedSample()\n {\n droppedSamplesSinceLastLog.incrementAndGet();\n if (droppedSamplesStatement.warn(new Object[] {droppedSamplesSinceLastLog.get()}))\n {\n droppedSamplesSinceLastLog.set(0);\n }\n }",
"public interface Sampler {\n\n /**\n * Initialize internal state based on the external configuration.\n */\n void configure(SamplerConfiguration configuration) throws UserErrorException;\n\n /**\n * Registers an operation to sample. Operations cannot be registered after the sampler was started. The idea\n * behind registering operations in advance (and not collecting operation types as they show up) is that we\n * speed up the recording code by not having to synchronize on the counter storage to extend it, and also makes\n * the samples generated by the sampler more predictable.\n *\n * @return the corresponding counter that was created upon registering the operation type.\n *\n * @exception IllegalStateException if attempting to register an operation after the sampler was started.\n * @exception IllegalArgumentException on illegal operation type.\n */\n Counter registerOperation(Class<? extends Operation> operationType);\n\n /**\n * @return whether consumer was successfully added or not.\n */\n boolean registerConsumer(SamplingConsumer consumer);\n\n /**\n * Starts the sampler. Once started, the sampler will continuously and regularly produce samples each\n * <b>samplingIntervalMs</b>milliseconds and send them to all registered SampleConsumers. It's usually a good\n * idea to register all consumers before calling start.\n *\n * The operation should be idempotent - once started, subsequent invocations should be noops.\n *\n * @exception java.lang.IllegalStateException if the start() is invoked without any operation registered.\n */\n void start();\n\n boolean isStarted();\n\n /**\n * Stops the sampler. Once stopped, record() will throw IllegalStateException and registered consumers will stop\n * receiving samples. It is up to the implementation whether will accept re-starting or not, the implementation\n * should make that clear.\n *\n * After stopping the sampler, all operation registrations are lost.\n *\n * stop() is guaranteed to allow for one more full sampling run after it was called and to trigger generation of\n * a final sampling interval that will contain all events recorded from the same thread that called stop().\n *\n * The implementation should propagate the event to all registered consumers to give them a chance to free up\n * resources they may be holding.\n *\n * @see Sampler#record(long, long, long, Operation, java.lang.Throwable...)\n */\n void stop();\n\n /**\n * Presents the operation to the sampler, giving it a chance to update its internal statistics.\n *\n * Important: this method will be presumably called concurrently from a large number of threads so it is important\n * to be very fast and not contend on shared resources unnecessarily.\n *\n * @param t0Ms - the time (in milliseconds) when the operation that is being recorded started.\n * @param t0Nano - the time (in nanoseconds) when the operation that is being recorded started. Logically, it\n * should be the same as t0Ms, but Java documentation advises against using nano-second precision time\n * to next absolute time information, so we are only using it to calculate delta in conjunction with 't1Nano'.\n * @param t1Nano - the time (in nanoseconds) when the operation that is being recorded ended. Java documentation\n * advises against using nano-second precision time to next absolute time information, so we are only using\n * this value to calculate delta in conjunction with 't0Nano'.\n * @param t - optionally a Throwable associated with the operation. Actually we only expect one or none exception\n * instances to be passed, the rest will be ignored.\n *\n * @exception IllegalStateException if called upon a stopped sampler.\n * @exception IllegalArgumentException for operations of unknown type.\n *\n * @see Sampler#registerOperation(Class)\n */\n void record(long t0Ms, long t0Nano, long t1Nano, Operation op, Throwable... t);\n\n /**\n * Sets the sampling interval. Implementations may accept or not changing the sampling interval after the\n * sampler was started. The documentation should describe the behavior.\n *\n * Note that the sampling task run interval *must* be smaller than the sampling interval, otherwise we cannot\n * generate samples at the required resolution.\n *\n * @see Sampler#setSamplingTaskRunIntervalMs(long);\n */\n void setSamplingIntervalMs(long ms);\n\n long getSamplingIntervalMs();\n\n /**\n * Sets the sampling task run interval. Implementations may accept or not changing the sampling interval after the\n * sampler was started. The documentation should describe the behavior.\n *\n * Note that the sampling task run interval *must* be smaller than the sampling interval, otherwise we cannot\n * generate samples at the required resolution.\n *\n * @see Sampler#setSamplingIntervalMs(long);\n */\n void setSamplingTaskRunIntervalMs(long ms);\n\n long getSamplingTaskRunIntervalMs();\n\n /**\n * @return registered consumers, in the order in which they were registered.\n */\n List<SamplingConsumer> getConsumers();\n\n /**\n * Registers a system-wide metric type. Values for this metric will be generated and included with each sampling\n * interval.\n *\n * @return true if the metric was successfully registered. A reason *not* to successfully register a metric would\n * be if the metric was already registered.\n */\n boolean registerMetric(Class<? extends Metric> metricType);\n\n Set<Class<? extends Metric>> getMetricTypes();\n\n /**\n * Annotate the statistics, using the current time stamp.\n */\n void annotate(String line);\n\n /**\n * May return null.\n */\n Counter getCounter(Class<? extends Operation> operationType);\n\n}",
"private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }",
"protected void handleRecordedSample() {\n List<Sample> trainingSet;\n try {\n trainingSet = TrainingSet.get();\n Normalizer normalizer = new CenterNormalizer();\n Classifier classifier = new TimeWarperClassifier();\n classifier.train(trainingSet);\n final String outputText = classifier.test(normalizer.normalize(recordedSample));\n lblOutput.setText(outputText);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Utils.textToSpeech(outputText);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n lblOutput.setText(outputText);\n }\n catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void sample() {\n getFunctionEstimator().sample();\n }",
"public void startFirstSampleTimer() {\n }",
"public boolean isTracing();",
"public void cleanAfterSample() {\n if(previousResult != null) {\n previousResult.cleanAfterSample();\n }\n samplerContext.clear();\n }",
"public static boolean isSigned_sampleCnt() {\n return true;\n }",
"public boolean statsRecorded() {\n\t\treturn !handStats.isEmpty();\n\t}",
"public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}",
"protected boolean canSampleArea() { return true; }",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"private void reportTestTrace() {\n int lastNewline = mCurrentTestTrace.length();\n while (lastNewline > 0 && mCurrentTestTrace.charAt(lastNewline - 1) == '\\n') {\n lastNewline--;\n }\n mCurrentTestTrace.delete(lastNewline, mCurrentTestTrace.length());\n // Add the trace.\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n mTestTraceCache.put(testId, mCurrentTestTrace.toString());\n }",
"private Sampler next1() {\n // Check if transaction is done\n if(transactionSampler != null && transactionSampler.isTransactionDone()) {\n if (log.isDebugEnabled()) {\n log.debug(\"End of transaction \" + getName());\n }\n // This transaction is done\n transactionSampler = null;\n return null;\n }\n \n // Check if it is the start of a new transaction\n if (isFirst()) // must be the start of the subtree\n {\n if (log.isDebugEnabled()) {\n log.debug(\"Start of transaction \" + getName());\n }\n transactionSampler = new TransactionSampler(this, getName());\n }\n \n // Sample the children of the transaction\n Sampler subSampler = super.next();\n transactionSampler.setSubSampler(subSampler);\n // If we do not get any sub samplers, the transaction is done\n if (subSampler == null) {\n transactionSampler.setTransactionDone();\n }\n return transactionSampler;\n }",
"@Override\n\tpublic void study() {\n\t\tSystem.out.println(\"You will study in JUR\");\n\t}",
"boolean startSample(int loopCount, float gain, int delay) {\n if (debugFlag)\n debugPrint(\"JSChannel: startSample must be overridden\");\n return false;\n }",
"public void step() {\n stats.record();\n updateGraph();\n }",
"boolean isSetValueSampledData();",
"public boolean hasSampleId() {\n return fieldSetFlags()[2];\n }",
"@Override\n\tpublic void sampleNode() {\n\n\t}",
"int stopSamples() {\n if (debugFlag)\n debugPrint(\"JSChannel: stopSample must be overridden\");\n// reloadSample\n\n startTime = 0;\n return 0;\n }",
"public abstract int trace();",
"boolean hasTraceTag();",
"Span nextSpan(TraceContextOrSamplingFlags extracted, Req request) {\n Boolean sampled = null;\n if (extracted.sampled() == null) { // Otherwise, try to make a new decision\n if (request instanceof HttpServletRequest) {\n if (webDebugMatcher.matches((HttpServletRequest) request)) {\n sampled = true;\n }\n }\n extracted = extracted.sampled(sampled);\n }\n Span span = extracted.context() != null\n ? tracer.joinSpan(extracted.context())\n : tracer.nextSpan(extracted);\n if (sampled != null && sampled) {\n span.tag(\"DebugMark\", webDebugMatcher.debugMark());\n }\n return span;\n }",
"@Test\n public void testSampledTimeDistributedBetweenExecutionFragments() throws IOException {\n NameContext stepA = createStep(\"A\");\n NameContext stepB = createStep(\"B\");\n\n tracker.enter(stepA);\n tracker.exit();\n tracker.enter(stepB);\n tracker.exit();\n // Expected journal: IDLE A1 IDLE B1 IDLE\n\n tracker.takeSample(50);\n assertThat(getCounterValue(stepA), equalTo(distribution(10)));\n assertThat(getCounterValue(stepB), equalTo(distribution(10)));\n }",
"@Test\n public void testCurrentOperationCountedInNextSample() throws IOException {\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.takeSample(20); // Journal: IDLE A1\n tracker.takeSample(10); // Journal: A1\n tracker.exit();\n tracker.takeSample(20); // Journal: A1 IDLE\n\n assertThat(getCounterValue(step), equalTo(distribution(30)));\n }",
"public void switchSampling(boolean start_or_dont) {\r\n //save a boolean for the loop's state before changes\r\n boolean weShouldReadold = this.weShouldRead;\r\n this.weShouldRead = start_or_dont;\r\n //if it's switching on from being previously off, start the loop again\r\n }",
"static void run_sample(int i)\r\n\t{\r\n\t}",
"boolean hasTelemetry();",
"private void addSampleData() {\r\n }",
"private void report() {\n\t\t\n\t}",
"protected void notifyListeners() {\n // TODO could these be done earlier (or just once?)\n JMeterContext threadContext = getThreadContext();\n JMeterVariables threadVars = threadContext.getVariables();\n SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);\n if (pack == null) {\n // If child of TransactionController is a ThroughputController and TPC does\n // not sample its children, then we will have this\n // TODO Should this be at warn level ?\n log.warn(\"Could not fetch SamplePackage\");\n } else {\n SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);\n // We must set res to null now, before sending the event for the transaction,\n // so that we can ignore that event in our sampleOccured method\n res = null;\n- // bug 50032 \n- if (!getThreadContext().isReinitializingSubControllers()) {\n- lnf.notifyListeners(event, pack.getSampleListeners());\n- }\n+ lnf.notifyListeners(event, pack.getSampleListeners());\n }\n }",
"@Override\n public boolean reportFixture(Fixture fixture) {\n if (fixture.testPoint(testPoint.x, testPoint.y)) {\n hitBody = fixture.getBody();\n return false;\n } else\n return true;\n }",
"public interface CurrentTrace {\n public int getMoteId();\n public Long getFirstTime();\n public Long getLastTime();\n public Double interpolationAt(long time);\n\n /**\n *\n * @param timeA\n * @param timeB\n * @return the average of all samples between the two times (inclusive); null if there are none\n */\n public Double averageIn(long timeA, long timeB);\n\n SampleIterator<Double> getMeasurementsCovering(long startTime, long endTime, long maxDeltaT) throws IOException;\n}",
"protected synchronized void started(ITrace trace) {\n\t\t//\n\t}",
"public boolean reportFixture(Fixture fixture) {\n \tselection = fixture;\n \treturn selection == null;\n\t}",
"public boolean hasClientSampling() {\n return clientSamplingBuilder_ != null || clientSampling_ != null;\n }",
"@Override\n public void onStartup() {\n if(jaegerConfig.isEnabled()) {\n Configuration.SamplerConfiguration samplerConfig = new Configuration.SamplerConfiguration().withType(jaegerConfig.getType()).withParam(jaegerConfig.getParam());\n Configuration.ReporterConfiguration reporterConfig = new Configuration.ReporterConfiguration().withLogSpans(true);\n tracer = new Configuration(serverConfig.getServiceId()).withSampler(samplerConfig).withReporter(reporterConfig).getTracer();\n }\n }",
"public void testSetPercentToSample()\n {\n double percentToSample = RandomSubVectorThresholdLearner.DEFAULT_PERCENT_TO_SAMPLE;\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>();\n assertEquals(percentToSample, instance.getPercentToSample(), 0.0);\n\n percentToSample = percentToSample / 2.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n \n percentToSample = 1.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n percentToSample = 0.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n percentToSample = 0.47;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n boolean exceptionThrown = false;\n try\n {\n instance.setPercentToSample(-0.1);\n }\n catch (IllegalArgumentException e)\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n assertEquals(percentToSample, instance.getPercentToSample());\n\n exceptionThrown = false;\n try\n {\n instance.setPercentToSample(1.1);\n }\n catch (IllegalArgumentException e)\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n assertEquals(percentToSample, instance.getPercentToSample());\n }",
"int pauseSample() {\n return 0;\n }",
"boolean shouldReportMetrics();",
"@Test\n\tpublic void testSampleSkirt() {\n\t\t// Note must use assertTrue(Arrays.equals(... as plain .equals does not work\n\t\t// right for arrays.\n\t\tassertTrue(Arrays.equals(new int[] {0, 0, 0}, pyr1.getSkirt()));\n\n\t\tassertTrue(Arrays.equals(new int[] {1, 0, 1}, pyr3.getSkirt()));\n\t\t\n\t\tassertTrue(Arrays.equals(new int[] {0, 0, 1}, s.getSkirt()));\n\t\t\n\t\tassertTrue(Arrays.equals(new int[] {1, 0}, sRotated.getSkirt()));\n\t\t\n\t\tassertTrue(Arrays.equals(new int[] {0, 2}, l2Rotated2.getSkirt()));\n\t}",
"@Override protected void succeeded(Description description) {\n try {\n assertThat(spans.poll(100, TimeUnit.MILLISECONDS))\n .withFailMessage(\"Span remaining in queue. Check for redundant reporting\")\n .isNull();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void updateSamples();",
"public void readSampless(){\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\treadBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\t// hand those arrays to our effect\n\t\t// and convert back to bytes\n\t\tprocess();\n\t\t\n\t\t// write to the line.\n\t\twriteBytes();\n\t\t// send samples to the listener\n\t\t// these will be what we just put into the line\n\t\t// which means they should be pretty well sync'd\n\t\t// with the audible result\n\t\tbroadcast();\n\t}",
"private void sampleAndUpdate(int[] profileToSample, GameObserver gameObs) {\n double[] samplePayoffs = gameObs.getSample(profileToSample);\n eGame.addSample(profileToSample, samplePayoffs);\n deviationTestOrder.update(profileToSample, samplePayoffs);\n }",
"@Override\n public boolean sampleDistance(Ray ray, Sampler sampler, MediumQueryRecord mRec) {\n Ray localRay = new Ray();\n worldToMedium.m.transform(ray.o, localRay.o);\n worldToMedium.m.transform(ray.d, localRay.d);\n //System.out.println(ray);\n\n double[] nearFar = new double[2];\n boolean hit = bbox.rayIntersect(localRay, nearFar);\n double near = nearFar[0];\n double far = nearFar[1];\n if (!hit) {\n mRec.weight.set(1,1,1);\n return false;\n }\n\n localRay.mint = Math.max(ray.mint, near);\n localRay.maxt = Math.min(ray.maxt, far);\n\n //System.out.println(\"localRay = \" + localRay);\n\n mRec.t = localRay.mint;\n Point3d p = new Point3d();\n // Sample distance by Woodcock tracking.\n while (true) {\n if (mRec.t > localRay.maxt) {\n mRec.weight.set(1,1,1);\n break;\n }\n\n mRec.t += -Math.log(1 - sampler.next1D()) / densityMultiplier;\n localRay.project(mRec.t, p);\n double sigmaT = data.lookupFloat(p) * densityMultiplier;\n if (sampler.next1D() * densityMultiplier < sigmaT) {\n mRec.weight.set(albedo);\n return true;\n }\n }\n return false;\n }",
"@Test public void currentSpanVisibleToUserInterceptors() throws Exception {\n closeClient(client);\n\n client = newClient(\n new ClientInterceptor() {\n @Override public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(\n MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) {\n testLogger.info(\"in span!\");\n tracer.currentSpanCustomizer().annotate(\"before\");\n return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>(\n next.newCall(method, callOptions)) {\n @Override\n public void start(Listener<RespT> responseListener, Metadata headers) {\n tracer.currentSpanCustomizer().annotate(\"start\");\n super.start(responseListener, headers);\n }\n };\n }\n },\n tracing.newClientInterceptor()\n );\n\n GreeterGrpc.newBlockingStub(client).sayHello(HELLO_REQUEST);\n\n assertThat(takeSpan().annotations())\n .extracting(Annotation::value)\n .containsOnly(\"before\", \"start\");\n }",
"public static boolean isTrace() {\n return getInstance().trace;\n }",
"Sample start();",
"public void report() \r\n\t{\r\n\t\tSystem.out.println(\"continuous counter\\n\");\r\n\t\tsuper.report();\r\n\t\tSystem.out.println(\"interval length: \" + (lastSampleTime - firstSampleTime));\r\n\t}",
"public interface Sampler<T> {\n\n T sample();\n}",
"public interface AudioSamplerNode extends SbNode {\n\n /**\n * Sets the <code>AudioDescriptor</code> that shall be sampled.\n * @param audioDescriptor The <code>AudioDescriptor</code> containing the\n * audio file to be sampled.\n */\n public void setAudioDescriptor( AudioDescriptor audioDescriptor );\n \n /**\n * Gets the <code>AudioDescriptor</code> that shall be sampled.\n * @return The <code>AudioDescriptor</code> to sample, or <code>null</code>\n * if none is set.\n */\n public AudioDescriptor getAudioDescriptor();\n\n /**\n * Sets the retrigger mode. The retrigger mode determines what\n * happens if a trigger event comes in and the sample is still playing.\n * @param retriggerMode The <code>RetriggerMode</code> to set. Must\n * not be <code>null</code>.\n */\n public void setRetriggerMode( RetriggerMode retriggerMode );\n \n /**\n * Gets the current retrigger mode. The retrigger mode determines what\n * happens if a trigger event comes in and the sample is still playing.\n * @return The <code>RetriggerMode</code>.\n */\n public RetriggerMode getRetriggerMode();\n \n /**\n * Sets the sample mode.\n * @param sampleMode The sample mode to set. Must not be <code>null</code>. \n */\n public void setSampleMode( SampleMode sampleMode );\n \n /**\n * Gets the current sample mode. Default is <code>START_TO_END</code>.\n * @return The current sample mode, never <code>null</code>.\n */\n public SampleMode getSampleMode();\n \n /**\n * Enables/disables the sample's default output device(s). \n * @param enabled <code>true</code> if sample playback shall\n * send to default output(s), <code>false</code> otherwise.\n */\n public void setDefaultOutputsEnabled( boolean enabled );\n\n /**\n * Gets the default output enabled flag.\n * @return <code>true</code> if sample playback sends to default output(s),\n * <code>false</code> otherwise.\n */\n public boolean getDefaultOutputsEnabled();\n \n /**\n * This enumeration contains options for the sample playback.\n */\n public static enum SampleMode {\n START_TO_END,\n }\n \n /**\n * This enumeration contains options that determine what to do\n * on a trigger event if a sample is still running.\n */\n public static enum RetriggerMode {\n CONTINUE,\n STOP,\n RESTART,\n STOP_ON_NOTE_OFF\n }\n}",
"public void testTrace() {\n\t\tLogAndTraceBroker broker = LogAndTraceBroker.getBroker();\n\t\tbroker.clearLogListeners();\n\t\tbroker.clearTraceListeners();\n\n\t\tbroker.addLogListener(new LogListener() {\n\n\t\t\t/**\n\t\t\t * @param pLevel\n\t\t\t * @param pMessageKey\n\t\t\t * @param pMessage\n\t\t\t * @param pParameters\n\t\t\t */\n\t\t\tpublic void log(Level pLevel, String pMessageKey, String pMessage, Object[] pParameters) {\n\t\t\t\tsetLogMessages(getLogMessages() + 1);\n\t\t\t}\n\t\t});\n\n\t\tbroker.addTraceListener(new TraceListener() {\n\n\t\t\tpublic void trace(Level pLevel, StackTraceElement pOrigin, String pMessage,\n\t\t\t\t\tThrowable pThrown) {\n\t\t\t\tsetTraceMessages(getTraceMessages() + 1);\n\t\t\t\tif (pMessage.startsWith(TEST)) {\n\t\t\t\t\tverify(\"Message level\", EQUAL, pLevel, Level.FINE);\n\t\t\t\t\tverify(\"Message text\", EQUAL, pMessage, TEST);\n\t\t\t\t\tverify(\"Message param\", EQUAL, pThrown.getMessage(), TEST);\n\t\t\t\t\tverify(\"Origin\", EQUAL, pOrigin.getMethodName(), \"testTrace\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void trace(Level pLevel, StackTraceElement pOrigin, String pMessage) {\n\t\t\t\tsetTraceMessages(getTraceMessages() + 1);\n\t\t\t\tif (pMessage.startsWith(TEST)) {\n\t\t\t\t\tverify(\"Message level\", EQUAL, pLevel, Level.FINEST);\n\t\t\t\t\tverify(\"Message text\", EQUAL, pMessage, TEST);\n\t\t\t\t\tverify(\"Origin\", EQUAL, pOrigin.getMethodName(), \"testTrace\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tsetLogMessages(0);\n\t\tsetTraceMessages(0);\n\t\tbroker.trace(Level.FINEST, TEST);\n\t\tbroker.trace(Level.FINE, TEST, new RuntimeException(TEST));\n\t\tverify(\"Message count logged\", EQUAL, new Integer(getLogMessages()), new Integer(0));\n\t\tverify(\"Message count traced\", EQUAL, new Integer(getTraceMessages()), new Integer(2));\n\n\t\tbroker.clearLogListeners();\n\t\tbroker.clearTraceListeners();\n\t}",
"private void sample() {\n gaugeSet.values().forEach((key, value) ->\n this.inner.labels(key).set(value != null ? value.doubleValue() : 0));\n }",
"boolean isTargetStatistic();",
"protected abstract boolean isSample(File file);",
"@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }",
"public boolean isRecordingFor(RenderNode mRenderNode) {\n\t\treturn false;\n\t}",
"@Override\n public boolean test(StackWalker.StackFrame t) {\n final String cname = t.getClassName();\n // We should skip all frames until we have found the logger,\n // because these frames could be frames introduced by e.g. custom\n // sub classes of Handler.\n if (lookingForLogger) {\n // Skip all frames until we have found the first logger frame.\n lookingForLogger = !isLoggerImplFrame(cname);\n return false;\n }\n // Continue walking until we've found the relevant calling frame.\n // Skips logging/logger infrastructure.\n return !Formatting.isFilteredFrame(t);\n }",
"@Override\n public void deliverSampler(HTTPSamplerBase sampler, TestElement[] subConfigs, SampleResult result) {\n deliverer.deliverSampler(sampler, subConfigs, result);\n }",
"void update_sample(int new_sample) {\n\t sample_choice = new_sample;\n\t combine_message_and_sample();\n\t update_content();\n }",
"public boolean isSetAudioSpan() {\n return this.audioSpan != null;\n }",
"public SampleResult sample() {\n SampleResult res = null;\n try {\n res = sample(getUrl(), getMethod(), false, 0);\n if(res != null) {\n res.setSampleLabel(getName());\n }\n return res;\n } catch (Exception e) {\n return errorResult(e, new HTTPSampleResult());\n }\n }",
"abstract public void writeTrack(Student student);",
"public SampleResult sample() {\n SampleResult res = null;\n try {\n res = sample(getUrl(), getMethod(), false, 0);\n if (res != null) {\n res.setSampleLabel(getName());\n }\n return res;\n } catch (Exception e) {\n return errorResult(e, new HTTPSampleResult());\n }\n }",
"@Override\r\n\tpublic void report() {\r\n\t}",
"private long getSampleTime() {\n return System.currentTimeMillis();\n\n }",
"public StageGenoSamplesRecord() {\n\t\tsuper(StageGenoSamples.STAGE_GENO_SAMPLES);\n\t}",
"@Test\n public void negativeSamplerTaskRunInterval() throws Exception {\n\n SamplerImpl si = new SamplerImpl(-1L, 1000L);\n si.registerOperation(MockSamplerOperation.class);\n si.start();\n assertTrue(si.isStarted());\n si.stop();\n assertFalse(si.isStarted());\n }",
"boolean isCohortSampled(Long transmissionid);",
"int stopSample() {\n// This will tell thread to stop reading and writing\n // reload with old URL\n // reloadSample\n if (debugFlag)\n debugPrint(\"JSChannel: stopSample must be overridden\");\n startTime = 0;\n return 0;\n }",
"public void setSampleMode( SampleMode sampleMode );",
"public void recordingStartCheck(SuiteEntry suite) throws Exception {\n // Check suite variable is not empty and get suite local name.\n if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) {\n //Create a document builder for storing the data.\n TECore.icFactory = DocumentBuilderFactory.newInstance();\n // Fortify Mod: prevent external entity injection\n TECore.icFactory.setExpandEntityReferences(false);\n try {\n TECore.icBuilder = TECore.icFactory.newDocumentBuilder();\n // Create a document for storing the xml data\n TECore.doc = TECore.icBuilder.newDocument();\n TECore.mainRootElement = TECore.doc.createElement(Constants.Requests);\n //Append the data in previous saved data.\n TECore.doc.appendChild(TECore.mainRootElement);\n } catch (Exception e) {\n System.out.println(ERROR_ON__RECORDING_AT_STARTING_ + e.toString());\n }\n }\n }",
"public final Object getSample()\n { return(this.sample); }",
"int pauseSamples() {\n return 0;\n }",
"@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }",
"@Override\r\n\tpublic boolean wasIncident() {\r\n\t\tdouble random = Math.random()*100;\r\n\t\tif(random<=25) return true;\r\n\t\treturn false;\r\n\t}",
"@Override\n public Sampler<?> apply(ConfigurationAdapter conf) {\n Map<String, String> items = new HashMap<String, String>();\n items.put(ProbabilitySampler.SAMPLER_FRACTION_CONF_KEY,\n conf.get(QueryServices.TRACING_PROBABILITY_THRESHOLD_ATTRIB, Double.toString(QueryServicesOptions.DEFAULT_TRACING_PROBABILITY_THRESHOLD)));\n return new ProbabilitySampler(HTraceConfiguration.fromMap(items));\n }",
"public abstract double sample();"
]
| [
"0.63049746",
"0.62554985",
"0.61639786",
"0.5771424",
"0.5720431",
"0.5694904",
"0.56802505",
"0.5645324",
"0.5441387",
"0.542199",
"0.5328676",
"0.5320752",
"0.53025085",
"0.527405",
"0.5251832",
"0.52347976",
"0.5210809",
"0.5194658",
"0.5194658",
"0.51779044",
"0.51767355",
"0.51514083",
"0.51341456",
"0.5094842",
"0.5081889",
"0.5077151",
"0.5060967",
"0.5038943",
"0.5026614",
"0.50002575",
"0.4996825",
"0.49882513",
"0.4977687",
"0.49694985",
"0.49645278",
"0.49423146",
"0.49357986",
"0.49219745",
"0.4916677",
"0.4904059",
"0.48979014",
"0.48899454",
"0.48799393",
"0.48754236",
"0.485793",
"0.48520947",
"0.48463374",
"0.48360083",
"0.4833666",
"0.4832924",
"0.48298308",
"0.48282298",
"0.48252764",
"0.48172873",
"0.48172748",
"0.481654",
"0.48049563",
"0.47986886",
"0.4781855",
"0.47811183",
"0.4773265",
"0.4771723",
"0.47605675",
"0.47515708",
"0.47491306",
"0.4744447",
"0.47382957",
"0.47196996",
"0.47182617",
"0.47134614",
"0.47115177",
"0.4702381",
"0.47018424",
"0.4701494",
"0.46836394",
"0.4679477",
"0.46755368",
"0.46597815",
"0.46590722",
"0.46562186",
"0.46402583",
"0.4639993",
"0.46315512",
"0.46280462",
"0.46199566",
"0.4615544",
"0.46113226",
"0.4602867",
"0.45995387",
"0.45987117",
"0.4597659",
"0.45900512",
"0.45886338",
"0.45864728",
"0.4586333",
"0.45859855",
"0.45711192",
"0.4568886",
"0.45658547",
"0.45607808"
]
| 0.5610017 | 8 |
There's a race where multiple threads can see PrioritySampling.UNSET here This check skips potential complex sampling priority logic when we know its redundant Locks inside DDSpanContext ensure the correct behavior in the race case | @SuppressWarnings("unchecked")
void setSamplingPriorityIfNecessary(final DDSpan rootSpan) {
if (sampler instanceof PrioritySampler
&& rootSpan != null
&& rootSpan.context().getSamplingPriority() == PrioritySampling.UNSET) {
((PrioritySampler<DDSpan>) sampler).setSamplingPriority(rootSpan);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void wtfIfInLock() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n Slogf.wtfStack(LOG_TAG, \"Shouldn't be called with DPMS lock held\");\n }\n }",
"@Override\n protected boolean tryAcquire(long value) {\n return counter.longValue() > value;\n }",
"@Override\n protected int tryAcquireShared(int ignored) {\n if (isSignalled()) {\n return 1;\n }\n\n return -1;// check in AbstractQueuedSynchronizer.doAcquireSharedInterruptibly() why -1 returned here.\n }",
"protected void beforeUnlockWaitingForBooleanCondition() {\n }",
"public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable();\n\n PriorityScheduler p = new PriorityScheduler();\n\n ThreadQueue t = p.newThreadQueue(true);\n ThreadQueue t1 = p.newThreadQueue(true);\n ThreadQueue t2 = p.newThreadQueue(true);\n ThreadQueue masterQueue = p.newThreadQueue(true);\n\n KThread tOwn = new KThread();\n KThread t1Own = new KThread();\n KThread t2Own = new KThread();\n\n t.acquire(tOwn);\n t1.acquire(t1Own);\n t2.acquire(t2Own);\n\n\n for (int i = 0; i < 3; i++) {\n for (int j = 1; j <= 3; j++) {\n KThread curr = new KThread();\n\n if (i == 0)\n t.waitForAccess(curr);\n else if (i == 1)\n t1.waitForAccess(curr);\n else\n t2.waitForAccess(curr);\n\n p.setPriority(curr, j);\n }\n }\n\n KThread temp = new KThread();\n t.waitForAccess(temp);\n p.getThreadState(temp).setPriority(4);\n\n temp = new KThread();\n t1.waitForAccess(temp);\n p.getThreadState(temp).setPriority(5);\n\n temp = new KThread();\n t2.waitForAccess(temp);\n p.getThreadState(temp).setPriority(7);\n\n temp = new KThread();\n\n masterQueue.waitForAccess(tOwn);\n masterQueue.waitForAccess(t1Own);\n masterQueue.waitForAccess(t2Own);\n\n masterQueue.acquire(temp);\n\n System.out.println(\"master queue: \"); masterQueue.print();\n// System.out.println(\"t queue: \"); t.print();\n// System.out.println(\"t1 queue: \"); t1.print();\n// System.out.println(\"t2 queue: \"); t2.print();\n//\n// System.out.println(\"tOwn effective priority = \" + p.getThreadState(tOwn).getEffectivePriority() + \" and priority = \" + p.getThreadState(tOwn).getPriority());\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority());\n\n System.out.println(\"After taking away max from master queue\");\n KThread temp1 = masterQueue.nextThread();\n masterQueue.print();\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority() + \" and it's priority = \" + p.getThreadState(temp).getPriority());\n System.out.println(\"nextThread's effective priority = \" + p.getThreadState(temp1).getEffectivePriority());\n Machine.interrupt().restore(machine_start_status);\n// while(count < numTests) {\n// KThread toRun = new KThread(new PriSchedTest(count++));\n// System.out.println(toRun);\n// t.waitForAccess(toRun);\n// p.getThreadState(toRun).setPriority(numTests-count);\n// toRun.fork();\n// }\n// count = 0;\n// while(count++ < numTests) {\n// KThread next = t.nextThread();\n// Lib.assertTrue(p.getThreadState(next).getPriority() == numTests-count);\n// System.out.println(\"Priority is \" + p.getThreadState(next).getPriority());\n// }\n }",
"@Test\n public void randomLockstep() {\n PriorityBlockingQueue pbq = new PriorityBlockingQueue();\n PriorityQueue pq = new PriorityQueue();\n List<Consumer<Queue>> frobbers = List.of(\n q -> q.add(42),\n q -> assertTrue(q.offer(86)),\n q -> q.poll(),\n q -> q.peek(),\n q -> {\n Iterator it = q.iterator();\n if (it.hasNext()) {\n it.next();\n it.remove();\n }});\n for (int i = 0; i < 100; i++) {\n Consumer<Queue> frobber = frobbers.get(rnd.nextInt(frobbers.size()));\n frobber.accept(pq);\n frobber.accept(pbq);\n assertInvariants(pbq);\n assertInvariants(pq);\n assertTrue(Arrays.equals(pq.toArray(), pbq.toArray()));\n }\n }",
"public boolean isLatencySuspendAble() {\n return false;\n }",
"private void checkForCPUChance()\n\t\t\t{\n\t\t\t\tf12 = false;\n\t\t\t\tfor (m = 0; m < 8; ++m)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (lose[m] == 2 && win[m] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf12 = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f12 == false)\n\t\t\t\t\tm = 10;\n\n\t\t\t}",
"@Override\n public void syncState() {\n scheduledCounter.check();\n }",
"protected void beforeNormalAccess(RDVariable rdv, RDThread rdt) {\n\t\t/*\n\t\t * lock the explicit lock\n\t\t */\n\n\t\tif (DEBUG)\n\t\t\tRaceDetector.printDebug(\" explicit lock (\"\n\t\t\t\t\t+ System.identityHashCode(rdv) + \") try to be locked \"\n\t\t\t\t\t+ Thread.currentThread());\n\n\t\trdv.raceAvoidLock.lock();\n\n\t\tif (DEBUG)\n\t\t\tRaceDetector.printDebug(\" explicit lock (\"\n\t\t\t\t\t+ System.identityHashCode(rdv) + \") locked \"\n\t\t\t\t\t+ Thread.currentThread());\n\t}",
"final void ensureLocked() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n return;\n }\n Slogf.wtfStack(LOG_TAG, \"Not holding DPMS lock.\");\n }",
"public void reportCurWakefulnessUsageEvent() {\n synchronized (this.mService) {\n try {\n ActivityManagerService.boostPriorityForLockedSection();\n this.mService.reportCurWakefulnessUsageEventLocked();\n } catch (Throwable th) {\n while (true) {\n ActivityManagerService.resetPriorityAfterLockedSection();\n throw th;\n }\n }\n }\n ActivityManagerService.resetPriorityAfterLockedSection();\n }",
"public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }",
"@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }",
"@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }",
"public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ return false;\r\n/* 51: */ }",
"void enableSampledStatistics();",
"public synchronized int getThreadPriority()\n/* */ {\n/* 219 */ return this.threadPriority;\n/* */ }",
"@java.lang.Override\n public boolean hasRandomSampling() {\n return randomSampling_ != null;\n }",
"public void acquire(PriorityQueue waitQueue) \n {\n waitQueue = null;\n donation = 0;\n lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or \n //the thread is acquiring the resource and needs to calculate the effective priority for the first time.\n }",
"protected synchronized void acquire(long delta) {\n if (delta <= 0) {\n throw new IllegalArgumentException(\"resource counter delta must be > 0\");\n }\n long prev = count;\n count -= delta;\n if (prev > 0 && count <= 0 ) {\n turnOff();\n }\n }",
"protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }",
"@ParameterizedTest\n\t@CsvSource({\n\t\t\t\"9, 1, 2, 3, 1, 10, 1, 10, 1, -1, -1, -1\",\n\t\t\t\"9, -1, -1, -1, 9, 10, 1, 10, 1, 9, -1, -1\",\n\t\t\t\"9, -1, -1, -1, 1, 10, 9, 10, 1, 9, -1, -1\",\n\t\t\t\"9, 3, 3, 3, 89, 100, 1, 10, 1, -1, -1, -1\",\n\t\t\t\"9, 1, -1, -1, 1, 10, 89, 100, 1, -1, -1, -1\",\n\t\t\t\"9, 1, 2, -1, 2, 2, 1, 10, 25, 1, 2, 9\",\n\t\t\t\"9, 3, 3, 3, 0, 2, 950, 1000, 25, 3, 3, -1\",\n\t\t\t\"9, -1, -1, -1, 9999, 10000, 950, 1000, 1, 9, 9, 9\",\n\t\t\t\"9, -1, -1, -1, 0, 1, 0, 390000, 1, -1, -1, -1\",\n\t\t\t\"4, -1, -1, -1, 100, 100, 1000, 1000, 1, 4, 4, 4\",\n\t\t\t\"5, 3, -1, -1, 100, 100, 1000, 1000, 10, 3, 5, 5\",\n\t\t\t\"5, 1, 3, 4, 100, 100, 1000, 1000, 25, 1, 3, 4\",\n\t})\n\tvoid usesExpectedMultiplier(\n\t\t\tlong consensusSec,\n\t\t\tlong old10XLevelStart,\n\t\t\tlong old25XLevelStart,\n\t\t\tlong old100XLevelStart,\n\t\t\tint firstUsed,\n\t\t\tint firstTps,\n\t\t\tint secondUsed,\n\t\t\tint secondTps,\n\t\t\tlong expectedMultiplier,\n\t\t\tlong new10XLevelStart,\n\t\t\tlong new25XLevelStart,\n\t\t\tlong new100XLevelStart\n\t) {\n\t\tfinal var aThrottle = DeterministicThrottle.withTps(firstTps);\n\t\tfinal var bThrottle = DeterministicThrottle.withTps(secondTps);\n\t\taThrottle.allow(firstUsed);\n\t\tbThrottle.allow(secondUsed);\n\t\tgiven(throttling.activeThrottlesFor(CryptoTransfer)).willReturn(List.of(aThrottle, bThrottle));\n\n\t\tsubject.resetExpectations();\n\t\tsubject.resetCongestionLevelStarts(instants(old10XLevelStart, old25XLevelStart, old100XLevelStart));\n\t\tsubject.updateMultiplier(Instant.ofEpochSecond(consensusSec));\n\t\tfinal long actualMultiplier = subject.currentMultiplier();\n\t\tfinal var starts = subject.congestionLevelStarts();\n\n\t\tassertEquals(expectedMultiplier, actualMultiplier);\n\t\tassertNullOrEquals(starts[0], new10XLevelStart);\n\t\tassertNullOrEquals(starts[1], new25XLevelStart);\n\t\tassertNullOrEquals(starts[2], new100XLevelStart);\n\t}",
"@GuardedBy(\"getLockObject()\")\n private void maybePauseDeviceWideLoggingLocked() {\n if (!areAllUsersAffiliatedWithDeviceLocked()) {\n if (mOwners.hasDeviceOwner()) {\n Slogf.i(LOG_TAG, \"There are unaffiliated users, network logging will be \"\n + \"paused if enabled.\");\n if (mNetworkLogger != null) {\n mNetworkLogger.pause();\n }\n }\n if (!isOrganizationOwnedDeviceWithManagedProfile()) {\n Slogf.i(LOG_TAG, \"Not org-owned managed profile device, security logging will be \"\n + \"paused if enabled.\");\n mSecurityLogMonitor.pause();\n }\n }\n }",
"private void notEligibleForRealMin() {\n eligibleForRealMin = false;\n }",
"public void rushToSecurity() {\n int priority = Thread.currentThread().getPriority();\n Thread.currentThread().setPriority(priority + 1);\n\n //sleep for a random time\n try {\n Thread.sleep((long) Math.random() * 50000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //setPriority back to default\n Thread.currentThread().setPriority(priority);\n }",
"public void isSafe() {\n\t\tsafetyLog = new boolean[proc];\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tsafetyLog[i] = true;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tfor (int j = 0; j < res; j++) {\r\n\t\t\t\tif (need[i][j] > available[0][j]) {\r\n\t\t\t\t\tsafetyLog[i] = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*System.out\r\n\t\t\t\t.println(\"Following processes are safe and unsafe to start with\");\r\n\r\n\t\tfor (int i = 0; i < proc; i++) {\r\n\t\t\tif (safetyLog[i]) {\r\n\t\t\t\tSystem.out.println(\"P\" + i + \": Safe\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"P\" + i + \": Un-Safe\");\r\n\t\t\t}\r\n\t\t}*/\r\n\r\n\t}",
"public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}",
"@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }",
"@Test\n public void writeTryLockFailedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int threadNum = 2;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountAndSleepInWriteTryLock(2000);\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n boolean result = false;\n if (testUse.count == 1000 || testUse.count == 999) {\n result = true;\n }\n Assert.assertTrue(result);\n }",
"@Test\n public void testSchedulingPolicy() {\n String queueName = \"single\";\n\n FSQueueMetrics metrics = FSQueueMetrics.forQueue(ms, queueName, null, false,\n CONF);\n metrics.setSchedulingPolicy(\"drf\");\n checkSchedulingPolicy(queueName, \"drf\");\n\n // test resetting the scheduling policy\n metrics.setSchedulingPolicy(\"fair\");\n checkSchedulingPolicy(queueName, \"fair\");\n }",
"public SampledPolicy() {\r\n super(ExecutablePolicyType.SAMPLED);\r\n }",
"@Test\n public void testNoGuaranteeModeCannotReplayTuples() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.NO_GUARANTEE)\n .setTupleTrackingEnforced(true)\n .build();\n doTestModeCannotReplayTuples(spoutConfig);\n }",
"private void updateIfStale() {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n synchronized (counterShards) {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n drainThreadToShared();\n globalLastDrainMillis = DateTimeUtils.currentTimeMillis();\n }\n }\n }\n }",
"@Test\n public void writeLockIsolationTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();\n int threadNum = 50;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n concurrentHashMap.put(testUse.minusCountInWriteLock(), \"value\");\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(950, testUse.count);\n }",
"public Boolean isTransmissionEffective() { return random.nextDouble() < transmissionProb; }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }",
"@Test\n public void testNoGuaranteeModeDisregardsMaxUncommittedOffsets() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.NO_GUARANTEE)\n .build();\n doTestModeDisregardsMaxUncommittedOffsets(spoutConfig);\n }",
"public boolean acquireNoWait(boolean forMerge) {\r\n return true;\r\n }",
"@Test\n public void writeTryWriteLockTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 1;\n final CountDownLatch countDownLatch = new CountDownLatch(1);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n testUse.minusCountInWriteTryLock(2000);\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n countDownLatch.await();\n Assert.assertEquals(999, testUse.count);\n }",
"public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }",
"default void acquirePermit() {\n acquirePermits(1);\n }",
"public void reportGlobalUsageEventLocked(int event) {\n synchronized (this.mService) {\n try {\n ActivityManagerService.boostPriorityForLockedSection();\n this.mService.reportGlobalUsageEventLocked(event);\n } catch (Throwable th) {\n while (true) {\n ActivityManagerService.resetPriorityAfterLockedSection();\n throw th;\n }\n }\n }\n ActivityManagerService.resetPriorityAfterLockedSection();\n }",
"public static void checkUnVolatile() {\n\t\tThreadGroup group = new ThreadGroup(\"unvolatile-demo-group\");\n\t\t\n\t\t\n\t\tThread t1 = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<100000000; i++) {\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnew Thread(group, t1, \"thread-1\").start();\n\t\t\n\t\tThread t2 = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<100000000; i++) {\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnew Thread(group, t2, \"thread-2\").start();\n\t\t\n\t\twhile(group.activeCount() > 0) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(30);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"unvolatile - \" + number);\n\t}",
"@Override\n public int getPriority() {\n return 1;\n }",
"protected synchronized void prune()\n {\n long ldtStart = Base.getSafeTimeMillis();\n int cCur = getUnits();\n int cMin = getLowUnits();\n if (cCur < cMin)\n {\n return;\n }\n\n int nType = getEvictionType();\n switch (nType)\n {\n default:\n case EVICTION_POLICY_HYBRID:\n {\n // sum the entries' units per priority\n int[] acUnits;\n while (true)\n {\n try\n {\n acUnits = new int[11];\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n Entry entry = (Entry) iter.next();\n int cUnits = entry.getUnits();\n try\n {\n acUnits[entry.getPriority()] += cUnits;\n }\n catch (IndexOutOfBoundsException e)\n {\n acUnits[Math.max(0, Math.min(entry.getPriority(), 10))] += cUnits;\n }\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n int cTotal = 0;\n int nPrunePriority = 0;\n while (nPrunePriority <= 10)\n {\n cTotal += acUnits[nPrunePriority];\n if (cTotal > cMin)\n {\n break;\n }\n ++nPrunePriority;\n }\n\n // build a list of entries to discard\n Entry entryDiscardHead = null;\n Entry entryDiscardTail = null;\n\n // determine the number at the cut-off priority that must be pruned\n int cAdditional = Math.max(0, cTotal - cMin);\n\n while (cCur > cMin)\n {\n try\n {\n for (Iterator iter = entrySet().iterator(); iter.hasNext() && cCur > cMin; )\n {\n Entry entry = (Entry) iter.next();\n int nPriority = entry.getPriority();\n if (nPriority >= nPrunePriority)\n {\n int cUnits = entry.getUnits();\n if (nPriority == nPrunePriority)\n {\n if (cAdditional <= 0)\n {\n continue;\n }\n cAdditional -= cUnits;\n }\n cCur -= cUnits;\n\n // remove the entry from the map\n super.removeEntryInternal(entry);\n\n // link the entry into the list of deferred\n // removals, but without changing its \"next\"\n // reference because the iterator that we are\n // using here is counting on that \"next\" ref\n if (entryDiscardHead == null)\n {\n entryDiscardHead = entry;\n }\n else\n {\n entryDiscardTail.setNext(entry);\n }\n entryDiscardTail = entry;\n }\n }\n\n // seal the end of the linked list of entries to discard\n if (entryDiscardTail != null)\n {\n entryDiscardTail.setNext(null);\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n // process the list of deferred removals\n for (Entry entryDiscard = entryDiscardHead; entryDiscard != null; )\n {\n // unlink it altogether\n Entry entryNext = entryDiscard.getNext();\n entryDiscard.setNext(null);\n\n // discard it\n removeExpired(entryDiscard, false);\n\n entryDiscard = entryNext;\n }\n }\n break;\n\n case EVICTION_POLICY_LRU:\n case EVICTION_POLICY_LFU:\n {\n boolean fLRU = (nType == EVICTION_POLICY_LRU);\n SparseArray array;\n while (true)\n {\n try\n {\n array = new SparseArray();\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n Entry entry = (Entry) iter.next();\n long lOrder = fLRU ? entry.getLastTouchMillis()\n : entry.getTouchCount();\n Object oPrev = array.set(lOrder, entry);\n if (oPrev != null)\n {\n // oops, more than one entry with the same order;\n // make a list of entries\n List list;\n if (oPrev instanceof List)\n {\n list = (List) oPrev;\n }\n else\n {\n list = new ArrayList();\n list.add((Entry) oPrev);\n }\n list.add(entry);\n array.set(lOrder, list);\n }\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n for (Iterator iter = array.iterator();\n getUnits() > cMin && iter.hasNext(); )\n {\n Object o = iter.next();\n if (o instanceof Entry)\n {\n Entry entry = (Entry) o;\n removeExpired(entry, true);\n }\n else\n {\n List list = (List) o;\n for (Iterator iterList = list.iterator();\n getUnits() > cMin && iterList.hasNext(); )\n {\n Entry entry = (Entry) iterList.next();\n removeExpired(entry, true);\n }\n }\n }\n }\n break;\n\n case EVICTION_POLICY_EXTERNAL:\n getEvictionPolicy().requestEviction(cMin);\n break;\n }\n m_stats.registerCachePrune(ldtStart);\n }",
"public void func_09_01_basic_02_bad() {\n\t synchronized (Lock) { //not compliant\n\t count++;\n\t // ...\n\t }\n\t}",
"@Test\n public void testTimerTracking_Discharging() {\n setDischarging();\n setProcessState(ActivityManager.PROCESS_STATE_BACKUP);\n\n JobStatus jobStatus = createJobStatus(\"testTimerTracking_Discharging\", 1);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n }\n\n assertNull(mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n List<TimingSession> expected = new ArrayList<>();\n\n long start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(5 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobStatus, null, false);\n }\n expected.add(createTimingSession(start, 5 * SECOND_IN_MILLIS, 1));\n assertEquals(expected, mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n\n // Test overlapping jobs.\n JobStatus jobStatus2 = createJobStatus(\"testTimerTracking_Discharging\", 2);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus2, null);\n }\n\n JobStatus jobStatus3 = createJobStatus(\"testTimerTracking_Discharging\", 3);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus3, null);\n }\n\n advanceElapsedClock(SECOND_IN_MILLIS);\n\n start = JobSchedulerService.sElapsedRealtimeClock.millis();\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(jobStatus, null);\n mQuotaController.prepareForExecutionLocked(jobStatus);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus2);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobStatus, null, false);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.prepareForExecutionLocked(jobStatus3);\n }\n advanceElapsedClock(20 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobStatus3, null, false);\n }\n advanceElapsedClock(10 * SECOND_IN_MILLIS);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStopTrackingJobLocked(jobStatus2, null, false);\n }\n expected.add(createTimingSession(start, MINUTE_IN_MILLIS, 3));\n assertEquals(expected, mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE));\n }",
"private void initializePriorities()\n {\n try\n {\n this.resourcePriorityAvailable =\n Integer.parseInt(parentProvider.getAccountID()\n .getAccountPropertyString(\n ProtocolProviderFactory.RESOURCE_PRIORITY));\n }\n catch(NumberFormatException ex)\n {\n logger.error(\"Wrong value for resource priority\", ex);\n }\n\n addDefaultValue(JabberStatusEnum.AWAY, -5);\n addDefaultValue(JabberStatusEnum.EXTENDED_AWAY, -10);\n addDefaultValue(JabberStatusEnum.ON_THE_PHONE, -15);\n addDefaultValue(JabberStatusEnum.IN_A_MEETING, -16);\n addDefaultValue(JabberStatusEnum.DO_NOT_DISTURB, -20);\n addDefaultValue(JabberStatusEnum.FREE_FOR_CHAT, +5);\n }",
"@Override\n public int getPriority() {\n return 75;\n }",
"@Test\n public void writeTryLockSuccessTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();\n int threadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteTryLock();\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertNotSame(1000, testUse.count);\n }",
"protected void afterLockWaitingForBooleanCondition() {\n }",
"@Test public void propagates_sampledFalse() throws Exception {\n tracing = GrpcTracing.create(tracingBuilder(Sampler.NEVER_SAMPLE).build());\n closeClient(client);\n client = newClient();\n\n GreeterGrpc.newBlockingStub(client).sayHello(HELLO_REQUEST);\n\n TraceContextOrSamplingFlags extracted = server.takeRequest();\n assertThat(extracted.sampled()).isFalse();\n\n // @After will check that nothing is reported\n }",
"@Override\n public boolean offer(Object o) {\n\n // Rank is extracted from the header\n Packet packet = (Packet) o;\n PriorityHeader header = (PriorityHeader) packet;\n int rank = (int)header.getPriority();\n\n this.reentrantLock.lock();\n boolean returnValue = false;\n try {\n\n // Keep track of the current queue bounds (Figure 13a in the SP-PIFO paper)\n for (int q=queueList.size()-1; q>=0; q--){\n if(SimulationLogger.hasQueueBoundTrackingEnabled()){\n SimulationLogger.logQueueBound(this.ownId, q, (int)queueBounds.get(q));\n }\n }\n\n // Aggregate adaptation parameters\n int currentQueueBound, currentQueueBoundPlus, currentQueueBoundMinus;\n int QLm, QLh, QLmplus, QLmminus, sumA1, sumA2, sumB1, sumB2;\n\n // SP-PIFO queue scanning process\n for (int q=queueList.size()-1; q>=0; q--){\n currentQueueBound = (int)queueBounds.get(q);\n if ((currentQueueBound <= rank) || q==0) {\n boolean result = queueList.get(q).offer(o);\n\n if (!result){\n // System.out.println(\"Greedy: Packet with rank \" + rank + \" has been dropped from queue \" + q + \".\");\n returnValue = false;\n break;\n } else {\n\n // Update general counter\n this.generalPacketCounter = this.generalPacketCounter + 1;\n\n // We compute the perceived rank\n Object[] contentPIFO = queueList.get(q).toArray();\n Arrays.sort(contentPIFO);\n Packet packet_maxrank = (Packet) contentPIFO[0];\n PriorityHeader header_maxrank = (PriorityHeader) packet_maxrank;\n int rank_perceived = (int)header_maxrank.getPriority();\n if (rank_perceived > rank){\n this.unpifoness = this.unpifoness + (rank_perceived - rank);\n }\n\n // IMPORTANT: If packet enqueued here, means that QLm <= rank < QLh\n // Packet enqueued, we update counters, and return true\n if (q==queueList.size()-1){\n QLh = rank_bound;\n QLm = (int)this.queueBounds.get(q);\n } else {\n QLh = (int)this.queueBounds.get(q+1);\n QLm = (int)this.queueBounds.get(q);\n }\n\n // To consider non continuous rank distributions, we have to keep track of the Qm+1 and Qh-1 ranks per each queue\n // This way we are sure that the boundary move we are analyzing will not be an empty rank\n currentQueueBoundPlus = (int)this.queueBoundsPlus.get(q);\n if (rank > QLm && rank < currentQueueBoundPlus){\n this.queueBoundsPlus.put(q, rank);\n }\n\n // Update counters per queue\n Object currentPackets = countersB21.get(q);\n if (currentPackets == null){\n countersB21.put(q, rank);\n } else {\n countersB21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersB22.get(q);\n if (currentPackets == null){\n countersB22.put(q, 1);\n } else {\n countersB22.put(q, (int)currentPackets+1);\n }\n\n if (rank != QLm){\n currentPackets = countersA21.get(q);\n if (currentPackets == null){\n countersA21.put(q, rank);\n } else {\n countersA21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersA22.get(q);\n if (currentPackets == null){\n countersA22.put(q, 1);\n } else {\n countersA22.put(q, (int)currentPackets+1);\n }\n }\n\n if (q!=queueList.size()-1){\n\n currentQueueBoundMinus = (int) this.queueBoundsMinus.get(q + 1);\n if (rank > currentQueueBoundMinus) {\n this.queueBoundsMinus.put(q + 1, rank);\n }\n\n currentPackets = countersA11.get(q+1);\n if (currentPackets == null){\n countersA11.put(q+1, importance(rank));\n } else {\n countersA11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersA12.get(q+1);\n if (currentPackets == null){\n countersA12.put(q+1, (importance(rank))*rank);\n } else {\n countersA12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n\n if(rank != (int)this.queueBoundsMinus.get(q+1)){\n currentPackets = countersB11.get(q+1);\n if (currentPackets == null){\n countersB11.put(q+1, importance(rank));\n } else {\n countersB11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersB12.get(q+1);\n if (currentPackets == null){\n countersB12.put(q+1, (importance(rank))*rank);\n } else {\n countersB12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n }\n }\n\n returnValue = true;\n break;\n }\n }\n }\n\n // When the threshold is reached, aggregate adaptation is considered based on the values in counters\n if(this.generalPacketCounter == 1000) {\n\n // Each queue bound expected unpifoness is compared to the one achieved by moving the boundaries\n for(int i=queueBounds.size()-1; i>0; i--){\n\n // Obtain the values of adjacent ranks to analyze\n QLm = (int)this.queueBounds.get(i);\n QLmplus = (int)this.queueBoundsPlus.get(i);\n QLmminus = (int)this.queueBoundsMinus.get(i);\n\n sumA1 = ((QLm) * (int)countersA11.get(i)) - (int)countersA12.get(i);\n sumA2 = (importance(QLm) * (int)countersA21.get(i)) - (importance(QLm) * (QLm) * (int)countersA22.get(i));\n\n if (i==(queueBounds.size()-1)){\n if ((sumA1 < sumA2) && (QLmplus != (int)this.rank_bound)){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n } else {\n if ((sumA1 < sumA2) && (QLmplus != (int)this.queueBounds.get(i+1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n }\n\n }\n\n // Reset the counters for the next iteration\n this.queueBoundsPlus.clear();\n this.queueBoundsMinus.clear();\n this.generalPacketCounter = 0;\n this.countersA11.clear();\n this.countersA12.clear();\n this.countersA21.clear();\n this.countersA22.clear();\n this.countersB11.clear();\n this.countersB12.clear();\n this.countersB21.clear();\n this.countersB22.clear();\n for (int i=0; i<queueList.size(); i++){\n countersA11.put(i,0);\n countersA12.put(i,0);\n countersA21.put(i,0);\n countersA22.put(i,0);\n countersB11.put(i,0);\n countersB12.put(i,0);\n countersB21.put(i,0);\n countersB22.put(i,0);\n }\n\n // Reinitialize the adjacent rank values based on the updated queue bounds\n for (int q=0; q<queueList.size(); q++){\n if (q==queueList.size()-1){\n this.queueBoundsPlus.put(q,this.rank_bound);\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n } else if (q==0){\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,0);\n } else{\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n }\n }\n }\n\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n this.reentrantLock.unlock();\n // System.out.println(\"Packet with rank \" + rank + \"enqueued_flag\" + returnValue);\n return returnValue;\n }\n }",
"@Test\n public void readWriteLockMixedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n int writeThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(10);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.getCountInReadLock();\n countDownLatch.countDown();\n }\n }).start();\n }\n for (int i = 0; i < writeThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(995, testUse.count);\n }",
"@Test\n public void readTryLockInTimeFailedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final CountDownLatch countDownLatch = new CountDownLatch(2);\n final List<Integer> result = new ArrayList<Integer>();\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n testUse.minusCountAndSleepInWriteLock(2000);\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n Thread.sleep(10);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Integer r = testUse.getCountInReadTryLock(1000);\n if(r !=null){\n result.add(r);\n }\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n countDownLatch.await();\n Assert.assertEquals(0, result.size());\n }",
"@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}",
"@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}",
"@Test\n public void testParallelOnce() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offset = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offset.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setOneShotMode(true);\n tst.setOneShotTimeoutMillis(MAX_FINISH_WAIT_MILLIS);\n tst.addTask(threads, inserter);\n tst.run();\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }",
"private void raisePriority() {\n Thread cThr = Thread.currentThread();\n _priority = (byte)((cThr instanceof H2O.FJWThr) ? ((H2O.FJWThr)cThr)._priority+1 : super.priority());\n }",
"@Test\n public void testBatchesAgeOut() {\n HystrixCollapserKey key = HystrixCollapserKey.Factory.asKey(\"Collapser-Batch-Size-B\");\n stream = RollingCollapserBatchSizeDistributionStream.getInstance(key, 10, 100);\n stream.startCachingStreamValuesIfUnstarted();\n\n final CountDownLatch latch = new CountDownLatch(1);\n stream.observe().take(30).subscribe(new Subscriber<CachedValuesHistogram>() {\n @Override\n public void onCompleted() {\n latch.countDown();\n }\n\n @Override\n public void onError(Throwable e) {\n fail(e.getMessage());\n }\n\n @Override\n public void onNext(CachedValuesHistogram distribution) {\n System.out.println(\"OnNext @ \" + System.currentTimeMillis());\n }\n });\n\n Collapser.from(key, 1).observe();\n Collapser.from(key, 2).observe();\n Collapser.from(key, 3).observe();\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n fail(\"Interrupted ex\");\n }\n\n Collapser.from(key, 4).observe();\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n fail(\"Interrupted ex\");\n }\n\n Collapser.from(key, 5).observe();\n Collapser.from(key, 6).observe();\n Collapser.from(key, 7).observe();\n Collapser.from(key, 8).observe();\n Collapser.from(key, 9).observe();\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n fail(\"Interrupted ex\");\n }\n\n Collapser.from(key, 10).observe();\n Collapser.from(key, 11).observe();\n Collapser.from(key, 12).observe();\n\n try {\n assertTrue(latch.await(10000, TimeUnit.MILLISECONDS));\n } catch (InterruptedException ex) {\n fail(\"Interrupted ex\");\n }\n\n assertEquals(0, stream.getLatest().getTotalCount());\n assertEquals(0, stream.getLatestMean());\n }",
"@Test\n public void writeLockInterruptSaveTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final CountDownLatch countDownLatch = new CountDownLatch(2);\n final Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n testUse.getCountAndSleepInReadLock(2000);\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n countDownLatch.countDown();\n }\n }\n });\n thread.start();\n Thread.sleep(1000);\n Thread.sleep(10);\n new Thread(new Runnable() {\n @Override\n public void run() {\n thread.interrupt();\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n countDownLatch.await();\n Assert.assertEquals(999, testUse.count);\n }",
"@GuardedBy(\"getLockObject()\")\n private void maybeResumeDeviceWideLoggingLocked() {\n boolean allUsersAffiliated = areAllUsersAffiliatedWithDeviceLocked();\n boolean orgOwnedProfileDevice = isOrganizationOwnedDeviceWithManagedProfile();\n mInjector.binderWithCleanCallingIdentity(() -> {\n if (allUsersAffiliated || orgOwnedProfileDevice) {\n mSecurityLogMonitor.resume();\n }\n // If there is no device owner, then per-user network logging may be enabled for the\n // managed profile. In which case, all users do not need to be affiliated.\n if (allUsersAffiliated || !mOwners.hasDeviceOwner()) {\n if (mNetworkLogger != null) {\n mNetworkLogger.resume();\n }\n }\n });\n }",
"@Test\n public void testSubsequentRunsWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // perform multiple runs (maximizing objective)\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"public void prepareForSnapshot() {\n if (readMap != null)\n return;\n\n readMap = new TreeMap<>();\n\n for (Map.Entry<GroupPartitionId, PagesAllocationRange> entry : writeMap.entrySet()) {\n if (!skippedParts.contains(entry.getKey()))\n readMap.put(entry.getKey(), entry.getValue());\n }\n\n skippedParts.clear();\n writeMap.clear();\n }",
"@Test\n public void testNoExecutionsSinceLastSample() throws IOException {\n tracker.takeSample(10); // Journal: IDLE\n\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.takeSample(10); // Journal: IDLE A1\n tracker.takeSample(10); // Journal: A1\n\n tracker.exit();\n tracker.takeSample(10); // Journal: A1 IDLE\n assertThat(getCounterValue(step), equalTo(distribution(20)));\n\n tracker.takeSample(10); // Journal: IDLE\n assertThat(getCounterValue(step), equalTo(distribution(20)));\n }",
"public boolean acquireNoWait() {\r\n return true;\r\n }",
"protected boolean checkLoad() {\n\t\treturn size <= maxThreshold;\n\t\t//return (size >= minThreshold || size <= minCapacity) && size <= maxThreshold;\n\t}",
"@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }",
"private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }",
"public boolean isAcquired() {\r\n return false;\r\n }",
"@Override public void postGlobal() {\n for(int i=1;i<_chkMins.length;++i)\n _chkMins[i] = _chkMins[i-1] < _chkMins[i] ? _chkMins[i-1] : _chkMins[i];\n }",
"@Test\n public void testSampledTimeDistributedBetweenExecutionFragments() throws IOException {\n NameContext stepA = createStep(\"A\");\n NameContext stepB = createStep(\"B\");\n\n tracker.enter(stepA);\n tracker.exit();\n tracker.enter(stepB);\n tracker.exit();\n // Expected journal: IDLE A1 IDLE B1 IDLE\n\n tracker.takeSample(50);\n assertThat(getCounterValue(stepA), equalTo(distribution(10)));\n assertThat(getCounterValue(stepB), equalTo(distribution(10)));\n }",
"@Test\n public void testParallelStressMultipleThreadsMultipleWorkersPositiveLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryPositiveLimit, expectedPositiveLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }",
"public static void performanceCountDisable() { }",
"private boolean preVote() {\n try {\n if (timeout > 0 ) {\n bar.attemptBarrier(timeout);\n } else {\n bar.barrier();\n }\n } catch ( Exception e ) {\n _logger.log(Level.FINE, \"synchronization.prevote.failed\", e);\n return false;\n }\n return true;\n }",
"public int getEffectivePriority() {\n Lib.assertTrue(Machine.interrupt().disabled());\n\n\n return getWinningPriority();\n }",
"@Test\n public void eagerModeDomainUnlockedWhenThreadStopped() throws Exception {\n int numAccts = TestDomainLockListener.HOLD_IT_AT_THIS_ENTRY + 2; \n \n for (int i = 1; i <= numAccts; i++) {\n createExternalAcctEntry(\"eagerMode-\" + i, \"test123\", null);\n }\n \n Map<String, Object> zmailDomainAttrs = AutoProvisionTestUtil.commonZmailDomainAttrs();\n // setup auto prov\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \n \"(&(uid=%u)(mail=eagerMode*)\" + AutoProvisionTestUtil.MarkEntryProvisionedListener.NOT_PROVED_FILTER + \")\");\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvAccountNameMap, Provisioning.A_uid);\n \n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvListenerClass, \n TestDomainLockListener.class.getName());\n Domain zmailDomain = createZmailDomain(genDomainSegmentName(), zmailDomainAttrs);\n \n // create a domain for the admin so the admin account won't interfere with our account counting\n Domain domain = provUtil.createDomain(getZmailDomainName(\"admin-domain\"));\n Account admin = provUtil.createGlobalAdmin(genAcctNameLocalPart(), domain);\n SoapTransport transport = authAdmin(admin.getName());\n \n /*\n * verify the auto prov thread is not running\n */\n verifyAutoProvTask(transport, Action.status, Status.idle);\n \n /*\n * change LC key autpprov_initial_sleep_ms to 0, so we don't need to wait that long\n * (default is 5 mins)\n */\n modifyLocalconfigAndReload(transport, LC.autoprov_initial_sleep_ms, \"0\");\n \n \n // schedule the domain on local server\n Server localServer = prov.getLocalServer();\n localServer.addAutoProvScheduledDomains(zmailDomain.getName());\n\n \n /*\n * verify the auto prov thread is running\n */\n verifyAutoProvTask(transport, Action.status, Status.running);\n \n /*\n * let the auto prov thread run for a while, until after the \n * TestDomainLockListener.HOLD_IT_AT_THIS_ENTRYth account is auto provisioned\n */\n while (true) {\n long numAcctsAutoProvisioned = prov.countObjects(CountObjectsType.account, zmailDomain, null);\n if (numAcctsAutoProvisioned == TestDomainLockListener.HOLD_IT_AT_THIS_ENTRY) {\n break;\n }\n System.out.println(getTestName() + \" waiting for 1 second\");\n Thread.sleep(Constants.MILLIS_PER_SECOND);\n }\n \n \n /*\n * verify the domain is locked, since the eager auto prov thread should be at work\n */\n prov.reload(zmailDomain);\n assertEquals(localServer.getId(), zmailDomain.getAutoProvLock());\n \n \n /*\n * un-schedule the domain\n */\n localServer.unsetAutoProvScheduledDomains();\n \n /*\n * verify the thread is stopped, and the domain is unlocked\n */\n verifyAutoProvTask(transport, Action.status, Status.idle);\n prov.reload(zmailDomain);\n assertNull(zmailDomain.getAutoProvLock());\n \n /*\n * done test, set the LC key back\n */\n modifyLocalconfigAndReload(transport, LC.autoprov_initial_sleep_ms, DEFAULT_AUTOPROV_INITIAL_SLEEP_MS);\n }",
"public abstract double getPriority();",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}",
"@Test\n public void exceptionInRunDoesNotPreventReleasingTheMutex() throws Exception {\n long twoDays = 2L * 24 * 60 * 60 * 1000L;\n SamplerImpl si = new SamplerImpl(250L, twoDays);\n si.registerOperation(MockSamplerOperation.class);\n\n si.start();\n\n assertTrue(si.isStarted());\n\n // \"break\" the sampler, so when run() is invoked, it'll throw an exception. Setting the consumers to\n // null will cause an NPE\n\n si.setConsumers(null);\n\n log.info(si + \" has been broken ...\");\n\n // attempt to stop, the stop must not block indefinitely, if it does, the JUnit will kill the test and fail\n\n long t0 = System.currentTimeMillis();\n\n si.stop();\n\n long t1 = System.currentTimeMillis();\n\n log.info(\"the sampler stopped, it took \" + (t1 - t0) + \" ms to stop the sampler\");\n }",
"public final int decrementPendingCountUnlessZero()\n/* */ {\n/* */ int i;\n/* */ \n/* */ \n/* 549 */ while (((i = this.pending) != 0) && \n/* 550 */ (!U.compareAndSwapInt(this, PENDING, i, i - 1))) {}\n/* 551 */ return i;\n/* */ }",
"boolean isSetValueSampledData();",
"boolean hasPriority();",
"boolean hasPriority();",
"boolean hasPriority();",
"protected boolean canSampleArea() { return true; }",
"public void updatePriority(){\n\t\tpriority = (int) priority / 2;\n\t}",
"protected void afterNormalAccess(RDVariable rdv, RDThread rdt) {\n\t\t/*\n\t\t * unlock the explicit lock\n\t\t */\n\n\t\trdv.raceAvoidLock.unlock();\n\n\t\tif (DEBUG)\n\t\t\tRaceDetector.printDebug(\" explicit lock (\"\n\t\t\t\t\t+ System.identityHashCode(rdv) + \") unlocked \"\n\t\t\t\t\t+ Thread.currentThread());\n\t}",
"double getMissChance();",
"@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void run() {\n\t\tList<LineageCacheEntry> lockedOrLiveEntries = new ArrayList<>();\n\t\tint count = 0;\n\n\t\t// Stop if 1) Evicted the request number of entries, 2) The parallel\n\t\t// CPU instruction is ended, and 3) No non-live entries left in the cache.\n\t\tlong t0 = DMLScript.STATISTICS ? System.nanoTime() : 0;\n\t\t/*while (!LineageGPUCacheEviction.isGPUCacheEmpty())\n\t\t{\n\t\t\tif (LineageCacheConfig.STOPBACKGROUNDEVICTION)\n\t\t\t\t// This logic reduces #evictions if the cpu instructions is so small\n\t\t\t\t// that it ends before the background thread reaches this condition.\n\t\t\t\t// However, this check decreases race conditions.\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tif (numEvicts > 0 && count > numEvicts)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tLineageCacheEntry le = LineageGPUCacheEviction.pollFirstEntry();\n\t\t\tGPUObject cachedGpuObj = le.getGPUObject();\n\t\t\tGPUObject headGpuObj = cachedGpuObj.lineageCachedChainHead != null\n\t\t\t\t\t? cachedGpuObj.lineageCachedChainHead : cachedGpuObj;\n\t\t\t// Check and continue if any object in the linked list is locked\n\t\t\tboolean lockedOrLive = false;\n\t\t\tGPUObject nextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\tif (!nextgpuObj.isrmVarPending() || nextgpuObj.isLocked()) // live or locked\n\t\t\t\t\tlockedOrLive = true;\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\t\t\tif (lockedOrLive) {\n\t\t\t\tlockedOrLiveEntries.add(le);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// TODO: First remove the gobj chains that don't contain any live and dirty objects.\n\t\t\t//currentAvailableMemory += headGpuObj.getSizeOnDevice();\n\n\t\t\t// Copy from device to host for all live and dirty objects\n\t\t\tboolean copied = false;\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t// Keeping isLinCached as True here will save data deletion by copyFromDeviceToHost\n\t\t\t\tif (!nextgpuObj.isrmVarPending() && nextgpuObj.isDirty()) { //live and dirty\n\t\t\t\t\tnextgpuObj.copyFromDeviceToHost(null, true, true);\n\t\t\t\t\tcopied = true;\n\t\t\t\t}\n\t\t\t\tnextgpuObj.setIsLinCached(false);\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\n\t\t\t// Copy from device cache to CPU lineage cache if not already copied\n\t\t\tLineageGPUCacheEviction.copyToHostCache(le, null, copied);\n\n\t\t\t// For all the other objects, remove and clear data (only once)\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\tboolean freed = false;\n\t\t\tsynchronized (nextgpuObj.getGPUContext().getMemoryManager().getGPUMatrixMemoryManager().gpuObjects) {\n\t\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t\t// If not live or live but not dirty\n\t\t\t\t\tif (nextgpuObj.isrmVarPending() || !nextgpuObj.isDirty()) {\n\t\t\t\t\t\tif (!freed) {\n\t\t\t\t\t\t\tnextgpuObj.clearData(null, true);\n\t\t\t\t\t\t\t//FIXME: adding to rmVar cache causes multiple failures due to concurrent\n\t\t\t\t\t\t\t//access to the rmVar cache and other data structures. VariableCP instruction\n\t\t\t\t\t\t\t//and other instruction free memory and add to rmVar cache in parallel to\n\t\t\t\t\t\t\t//the background eviction task, which needs to be synchronized.\n\t\t\t\t\t\t\tfreed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnextgpuObj.clearGPUObject();\n\t\t\t\t\t}\n\t\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Clear the GPUOjects chain\n\t\t\tGPUObject currgpuObj = headGpuObj;\n\t\t\twhile (currgpuObj.nextLineageCachedEntry != null) {\n\t\t\t\tnextgpuObj = currgpuObj.nextLineageCachedEntry;\n\t\t\t\tcurrgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj.nextLineageCachedEntry = null;\n\t\t\t\tnextgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj = nextgpuObj;\n\t\t\t}\n\n\t\t\t//if(currentAvailableMemory >= size)\n\t\t\t\t// This doesn't guarantee allocation due to fragmented freed memory\n\t\t\t//\tA = cudaMallocNoWarn(tmpA, size, null); \n\t\t\tif (DMLScript.STATISTICS) {\n\t\t\t\tLineageCacheStatistics.incrementGpuAsyncEvicts();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\t// Add the locked entries back to the eviction queue\n\t\tif (!lockedOrLiveEntries.isEmpty())\n\t\t\tLineageGPUCacheEviction.addEntryList(lockedOrLiveEntries);\n\t\t\n\t\tif (DMLScript.STATISTICS) //TODO: dedicated statistics for lineage\n\t\t\tGPUStatistics.cudaEvictTime.add(System.nanoTime() - t0); */\n\t}",
"public void setPriorityCollect()\n\t{\n\t\tsetCollect(_Prefix + HardZone.PRIORITY.toString(), \"\");\n\t}",
"protected void checkDeadLock()\r\n/* 303: */ {\r\n/* 304:389 */ EventExecutor e = executor();\r\n/* 305:390 */ if ((e != null) && (e.inEventLoop())) {\r\n/* 306:391 */ throw new BlockingOperationException(toString());\r\n/* 307: */ }\r\n/* 308: */ }",
"@Test\n public void testTakeBlocksWhenEmpty() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n assertEquals(InterruptedException.class, e.getClass());\n //e.printStackTrace();\n }\n }\n };\n\n Thread thread = new Thread(task);\n thread.start();\n\n\n Thread.sleep(LOCKUP_DETECT_TIMEOUT);\n try{\n thread.interrupt();\n thread.join();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n\n\n }",
"@java.lang.Override\n public boolean hasOverallSampling() {\n return overallSampling_ != null;\n }",
"public void acquireDeferredLock() {\r\n return;\r\n }",
"@Test\n public void testAtMostOnceModeCannotReplayTuples() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.AT_MOST_ONCE)\n .setTupleTrackingEnforced(true)\n .build();\n doTestModeCannotReplayTuples(spoutConfig);\n }"
]
| [
"0.57887846",
"0.5734726",
"0.55895716",
"0.53860015",
"0.53463197",
"0.52364844",
"0.52141845",
"0.5171367",
"0.5096981",
"0.50777763",
"0.5077412",
"0.5052223",
"0.5036858",
"0.50281423",
"0.50092214",
"0.5005412",
"0.50025934",
"0.49972138",
"0.49958244",
"0.49943164",
"0.49926224",
"0.49826032",
"0.49751893",
"0.4958027",
"0.49435797",
"0.49087086",
"0.4894869",
"0.4894334",
"0.48872924",
"0.48872152",
"0.48769462",
"0.48619446",
"0.4855265",
"0.48494187",
"0.48398182",
"0.4839414",
"0.48291054",
"0.48252478",
"0.48116052",
"0.48080742",
"0.480735",
"0.48071933",
"0.4804663",
"0.48014808",
"0.47930086",
"0.4782318",
"0.47814897",
"0.47805914",
"0.47758368",
"0.47757846",
"0.47642714",
"0.4764187",
"0.47628757",
"0.47619918",
"0.47595942",
"0.4759458",
"0.47357354",
"0.47119957",
"0.47119957",
"0.46840873",
"0.4680763",
"0.46752378",
"0.4671779",
"0.46599078",
"0.46589836",
"0.46569893",
"0.46549705",
"0.465426",
"0.46500903",
"0.4650009",
"0.46471396",
"0.4647038",
"0.46444005",
"0.46418762",
"0.4636351",
"0.46353924",
"0.4634464",
"0.46287414",
"0.46218604",
"0.46214196",
"0.46208033",
"0.46207753",
"0.46207753",
"0.46174964",
"0.4614337",
"0.46134073",
"0.46132994",
"0.46132994",
"0.46132994",
"0.4611584",
"0.46104503",
"0.4608775",
"0.46057007",
"0.4603274",
"0.45974842",
"0.45951194",
"0.45935047",
"0.4590449",
"0.45819816",
"0.457913"
]
| 0.63671786 | 0 |
TODO we will start propagating stack trace hash and it will need to be extracted here if available | @Override
public CoreSpanBuilder asChildOf(final AgentSpan.Context spanContext) {
parent = spanContext;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getStackTrace(Exception ex) {\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tex.printStackTrace(new PrintWriter(sw));\r\n return sw.toString();\r\n\t}",
"String getLogStackTrace();",
"@Override\n\tpublic synchronized Throwable fillInStackTrace() {\n\t\treturn super.fillInStackTrace();\n\t}",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }",
"static String handleStackTrace(Throwable ex){\n // add the stack trace message\n StringBuilder builder = new StringBuilder(SPACE);\n builder.append(ex.getMessage());\n builder.append(NEWLINE);\n\n // add each line of the stack trace.\n for (StackTraceElement element : ex.getStackTrace()){\n builder.append(SPACE);\n builder.append(element.toString());\n builder.append(NEWLINE);\n }\n return builder.toString();\n }",
"@Override\n public StackTraceElement[] getStackTrace() {\n return getCause() == null ? super.getStackTrace() : getCause().getStackTrace();\n }",
"private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}",
"public interface StackTrace {\r\n\r\n\t /**\r\n\t * Gets the class from which the stack is tracking.\r\n\t * \r\n\t * @return\t\t\tThe name of the class\r\n\t */\r\n public String getClazz();\r\n\r\n /**\r\n * Sets the class from which the stack should tracking.\r\n * \r\n * @param clazz\tThe name of the class\r\n */\r\n public void setClazz(String clazz);\r\n\r\n /**\r\n * Gets the current message from the StackTrace.\r\n * \r\n * @return\t\t\tThe message\r\n */\r\n public String getMessage();\r\n\r\n /**\r\n * Sets a message to the StackTrace.\r\n * \r\n * @param message\tThe message\r\n */\r\n public void setMessage(String message);\r\n\r\n /**\r\n * Gets the current stack.\r\n * \r\n * @return\t\t\tThe current stack\r\n */\r\n public String getStack();\r\n\r\n /**\r\n * Sets the current stack.\r\n * \r\n * @param stack\tThe new stack\r\n */\r\n public void setStack(String stack);\r\n}",
"@Override\n\tpublic StackTraceElement[] getStackTrace() {\n\t\treturn super.getStackTrace();\n\t}",
"@Override\n public void printStackTrace() {\n super.printStackTrace(); \n \n if(previous != null){\n previous.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\r\n\t}",
"private void printStackTrace(Exception ex, GUILog gl) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n gl.log(sw.toString()); // stack trace as a string\n ex.printStackTrace();\n }",
"private String stackTraceToString( Throwable t ){\n StringWriter writer = new StringWriter();\n PrintWriter printWriter = new PrintWriter( writer );\n t.printStackTrace( printWriter );\n printWriter.flush();\n return writer.toString();\n }",
"private String getStackTrace(Throwable throwable) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n throwable.printStackTrace(pw);\n return sw.toString();\n }",
"public final Map[] getStackTrace() {\n return this.stackTrace;\n }",
"public void test_getExceptionStackTrace() {\n String stackTrace = LogMessage.getExceptionStackTrace(error);\n\n assertTrue(\"'getExceptionStackTrace' should be correct.\", stackTrace.indexOf(\"java.lang.Exception\") != -1);\n }",
"@Override\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\n\t}",
"@Override\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\n\t}",
"@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n LogUtils.e(mTag, \"exceptionCaught, case\" + cause.toString());\n\n StackTraceElement[] stackElements = cause.getStackTrace();\n if (stackElements != null) {\n for (int i = 0; i < stackElements.length; i++) {\n LogUtils.e(mTag, \" \" + stackElements[i]);\n }\n }\n }",
"private void printStackTraceHerder() {\n PrintStream printStream = System.err;\n synchronized (printStream) {\n System.err.println(super.getMessage() + \"; nested exception is:\");\n this.detail.printStackTrace();\n }\n }",
"static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }",
"String getLogRetryStackTrace();",
"static <T extends Throwable> T augmentStackTrace(T e) {\n RandomizedContext context = RandomizedContext.current();\n return augmentStackTraceNoContext(e, context.getRandomnesses());\n }",
"public void testGetStackTrace() {\n StackTraceElement[] ste = new StackTraceElement[1]; \n ste[0] = new StackTraceElement(\"class\", \"method\", \"file\", -2);\n Throwable th = new Throwable(\"message\");\n th.setStackTrace(ste);\n ste = th.getStackTrace();\n assertEquals(\"incorrect length\", 1, ste.length);\n assertEquals(\"incorrect file name\", \"file\", ste[0].getFileName());\n assertEquals(\"incorrect line number\", -2, ste[0].getLineNumber());\n assertEquals(\"incorrect class name\", \"class\", ste[0].getClassName());\n assertEquals(\"incorrect method name\", \"method\", ste[0].getMethodName());\n assertTrue(\"native method should be reported\", ste[0].isNativeMethod());\n }",
"@Override\n\tpublic void trace(Message msg, Throwable t) {\n\n\t}",
"static void assignTrace(Pipe pipe, Throwable ex) {\n\n StackTraceElement[] trace = ex.getStackTrace();\n int traceLength = trace.length;\n\n // Prune the local trace for all calls that occur before (and including) the skeleton.\n String fileName = SkeletonMaker.class.getSimpleName();\n for (int i=trace.length; --i>=0; ) {\n StackTraceElement element = trace[i];\n if (fileName.equals(element.getFileName())) {\n traceLength = i;\n break;\n }\n }\n\n StackTraceElement[] stitch = stitch(pipe);\n\n StackTraceElement[] local = new Throwable().getStackTrace();\n int localStart = 0;\n\n // Prune the local trace for all calls that occur after the stub, or else just prune\n // this \"assignTrace\" method if no stub method is found.\n\n if (local.length != 0) {\n localStart = 1; // prune this method\n }\n\n fileName = StubMaker.class.getSimpleName();\n for (int i=0; i<local.length; i++) {\n StackTraceElement element = local[i];\n if (fileName.equals(element.getFileName())) {\n localStart = i;\n break;\n }\n }\n\n int localLength = local.length - localStart;\n\n var combined = new StackTraceElement[traceLength + stitch.length + localLength];\n System.arraycopy(trace, 0, combined, 0, traceLength);\n System.arraycopy(stitch, 0, combined, traceLength, stitch.length);\n System.arraycopy(local, localStart, combined, traceLength + stitch.length, localLength);\n\n ex.setStackTrace(combined);\n }",
"public String getOriginalStackTrace() {\n StringBuilder builder = new StringBuilder();\n\n builder.append(this.firstLine).append(\"\\n\");\n for (StackTraceElement element : stackTraceLines) {\n builder.append(\"\\tat \").append(element).append(\"\\n\");\n }\n\n return builder.substring(0, builder.length() - 1);\n }",
"public int getStackDepth()\n/* */ {\n/* 139 */ StackTraceElement[] stes = new Exception().getStackTrace();\n/* 140 */ int len = stes.length;\n/* 141 */ for (int i = 0; i < len; i++) {\n/* 142 */ StackTraceElement ste = stes[i];\n/* 143 */ if (ste.getMethodName().equals(\"_runExecute\"))\n/* */ {\n/* 145 */ return i - 1;\n/* */ }\n/* */ }\n/* 148 */ throw new AssertionError(\"Expected task to be run by WorkerThread\");\n/* */ }",
"void storeWebWideTrackingException(StoreExceptionsInformation args);",
"public String getStackTraceString() {\r\n\t\t// if there's no nested exception, there's no stackTrace\r\n\t\tif (nestedException_ == null)\r\n\t\t\treturn null;\r\n\r\n\t\tStringBuffer traceBuffer = new StringBuffer();\r\n\r\n\t\tif (nestedException_ instanceof WebAppException) {\r\n\r\n\t\t\ttraceBuffer.append(((WebAppException) nestedException_)\r\n\t\t\t\t\t.getStackTraceString());\r\n\t\t\ttraceBuffer.append(\"-------- nested by:\\n\");\r\n\t\t}\r\n\r\n\t\ttraceBuffer.append(stackTraceString_);\r\n\t\treturn traceBuffer.toString();\r\n\t}",
"private static FrameInfo getLoggingFrame() {\n StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();\n StackTraceElement loggingFrame = null;\n /*\n * We need to dig through all the frames until we get to a frame that contains this class, then dig through all\n * frames for this class, to finally come to a point where we have the frame for the calling method.\n */\n // Skip stackTrace[0], which is getStackTrace() on Win32 JDK 1.6.\n for (int ix = 1; ix < stackTrace.length; ix++) {\n loggingFrame = stackTrace[ix];\n if (loggingFrame.getClassName().contains(CLASS_NAME)) {\n for (int iy = ix; iy < stackTrace.length; iy++) {\n loggingFrame = stackTrace[iy];\n if (!loggingFrame.getClassName().contains(CLASS_NAME)) {\n break;\n }\n }\n break;\n }\n }\n return new FrameInfo(loggingFrame.getClassName(), loggingFrame.getMethodName());\n }",
"public Vector getStackTrace() {\r\n final Vector result = new Vector();\r\n\r\n for (int s = ((this.sp + 1) & 0xff) | 0x100; s > 0x100 && s < 0x1ff; s += 2) {\r\n final int adr = (this.memory[s] & 0xff) + (this.memory[s + 1] & 0xff) * 256;\r\n\r\n if (adr == 0) {\r\n break;\r\n }\r\n\r\n result.addElement(new Integer((adr - 2) & 0xffff));\r\n }\r\n\r\n return result;\r\n }",
"Object getTrace();",
"@Override\n public synchronized Throwable fillInStackTrace() {\n return this;\n }",
"@Override\n\tpublic void trace(Object message, Throwable t) {\n\n\t}",
"public static String getStackTrace() {\n Exception e = new Exception();\n return getStackTrace(e);\n }",
"public static String getStackTrace(Throwable t) {\n String stackTrace = null;\n try {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n t.printStackTrace(pw);\n pw.close();\n sw.close();\n stackTrace = sw.getBuffer().toString();\n } catch (Exception ex) {\n }\n return stackTrace;\n }",
"@Override\n\tpublic void trace(Marker marker, Message msg, Throwable t) {\n\n\t}",
"private static String callMethodAndLine() {\n\t\tStackTraceElement thisMethodStack = (new Exception()).getStackTrace()[4];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb\n.append(AT)\n\t\t\t\t.append(thisMethodStack.getClassName() + \".\")\n\t\t\t\t.append(thisMethodStack.getMethodName())\n\t\t\t\t.append(\"(\" + thisMethodStack.getFileName())\n\t\t\t\t.append(\":\" + thisMethodStack.getLineNumber() + \") \");\n\t\treturn sb.toString();\n\t}",
"public static String getStackTrace(Exception aInException) {\n\n StringWriter lStringWriter = new StringWriter();\n aInException.printStackTrace(new PrintWriter(lStringWriter));\n return lStringWriter.toString();\n\n }",
"protected String getStackTrace( final Throwable throwable, final String format )\n {\n if( null == throwable )\n {\n return \"\";\n }\n return ExceptionUtil.printStackTrace( throwable, m_stackDepth, m_printCascading );\n }",
"private ThrowableProxy(final Throwable parent, final Stack<Class<?>> stack, final Map<String, CacheEntry> map,\n final Throwable cause) {\n super(cause.getMessage(), null);\n this.name = cause.getClass().getName();\n super.setStackTrace(cause.getStackTrace());\n callerPackageData = resolvePackageData(stack, map, parent.getStackTrace(), cause.getStackTrace());\n this.proxyCause = cause.getCause() == null ? null :\n new ThrowableProxy(parent, stack, map, cause.getCause());\n setSuppressed(cause);\n }",
"public static String getStackMessage(Throwable exception) {\n\t\tStringWriter sw = new StringWriter();\n\t\tPrintWriter pw = new PrintWriter(sw);\n\t\tpw.print(\" [ \");\n\t\tpw.print(exception.getClass().getName());\n\t\tpw.print(\" ] \");\n\t\texception.printStackTrace(pw);\n\t\treturn sw.toString();\n\t}",
"public synchronized void check() {\n if (stack == null) {\n stack = Thread.currentThread().getStackTrace();\n } else {\n IllegalStateException ex =\n new IllegalStateException(\"This is the stack of the previous call\");\n ex.setStackTrace(stack);\n throw ex;\n }\n }",
"public static String getStackTrace(Throwable t) {\n StringWriter sw = new StringWriter();\n t.printStackTrace(new PrintWriter(sw));\n String stackTrace = sw.toString();\n stackTrace = stackTrace.replaceAll(\"<\", \"<\");\n stackTrace = stackTrace.replaceAll(\">\", \">\");\n\n return stackTrace;\n }",
"@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}",
"public int getCallStack() {\n\t\treturn this.callStack;\n\t}",
"public void printStackTrace(){\n\t\tprintStackTrace(System.err);\n\t}",
"private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public static void getExceptionDescriptive(Exception e, StackTraceElement l, WebDriver driver) throws IOException{\n\t\t String message1 = \"\", message2 = \"\", firstLine = \"\", secondLine = \"\";\n\t\t String errorCause = \"\", location = \"\", exceptionThrown = \"\";\n\t\t String packageNameOnly = \"\", classNameOnly = \"\", xml = \"\";\n\t\t String description = \"\", detected = \"\", runtime = \"\", subtotal = \"\";\n\t\t try{\n\t\t // CREATING NEW OR UPDATING EXISTING FAILED COUNTER RECORD: \n\t\t\t counter(\"failed.num\");\n\t\t\t \t\t \n\t\t\t if( (e.getCause().toString().length() > 0) && (e.getMessage().length() > 0) ) { \n\t\t\t\t message1 = e.getCause().toString();\n\t\t\t\t message2 = e.getMessage();\n\t\t\t\t if(message1.contains(\"\\\\r\") && message2.contains(\"\\\\r\")) { \n\t\t\t\t\t String [] multiline1 = message1.replaceAll(\"\\\\r\", \"\").split(\"\\\\n\");\t\t\t\n\t\t\t\t\t String [] multiline2 = message2.replaceAll(\"\\\\r\", \"\").split(\"\\\\n\");\n\t\t\t\t\t if(multiline1.length > 0) { firstLine = multiline1[0]; } else { firstLine = \"Unknown\"; }\n\t\t\t\t\t if(multiline2.length > 0) { secondLine = multiline2[0]; } else { secondLine = \"Unknown\"; }\n\t\t\t\t\t errorCause = firstLine.substring(0,firstLine.indexOf(\":\"));\n\t\t\t\t\t exceptionThrown = errorCause.substring(1 + errorCause.lastIndexOf(\".\"), errorCause.length());\n\t\t\t\t\t }\n\t\t\t\t }\n\n\t\t\t packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t location = packageNameOnly + File.separator + classNameOnly + File.separator + l.getMethodName() + \", line # \" + l.getLineNumber();\n\t\t xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t\t description = exceptionThrown;\n\t\t detected = getCurrentDateTimeFull();\n\t\t runtime = testRunTime(\"start.time\", System.currentTimeMillis());\n\t\t subtotal = testRunTime(\"ini.time\", System.currentTimeMillis());\n\t\t \n\t\t\t fileWriterPrinter(\"\\nError Cause: ---> \" + errorCause + \"\\nDescription: ---> \" + secondLine + \"\\n Location: ---> \" + location);\n\t\t\t getScreenShot(l, description, driver);\n\t\t\t \n\t\t // APPEND A NEW LOG RECORD:\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t\t fileWriter(\"run.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"run.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"run.log\", \" Location: ---> \" + location);\n\t \t\t // fileWriter(\"run.log\", \" Detected: ---> \" + detected);\n\t \t\t // fileWriter(\"run.log\", \" Runtime: ---> \" + runtime);\n\t \t\t // fileWriter(\"run.log\", \" Subtotal: ---> \" + subtotal);\t \t \n\t\t }\n\t\t \n\t\t // APPEND AN ERROR RECORD:\n\t\t\t fileWriter(\"failed.log\", \" Failure: #\" + fileScanner(\"failed.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Test: #\" + fileScanner(\"test.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Start: \" + convertCalendarMillisecondsAsStringToDateTimeHourMinSec(fileScanner(\"start.time\")));\n fileWriter(\"failed.log\", \" XML Path: \" + xml);\n\t\t\t fileWriter(\"failed.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"failed.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"failed.log\", \" Location: ---> \" + location);\n\t\t\t fileWriter(\"failed.log\", \" Detected: \" + detected);\n\t\t \t fileWriter(\"failed.log\", \" Runtime: \" + runtime);\n\t\t \t fileWriter(\"failed.log\", \" Subtotal: \" + subtotal);\n\t\t \t fileWriter(\"failed.log\", \"\");\n\t\t \t \n\t\t // APPEND DESCRIPTIVE RECORD:\n\t\t\t Assert.assertFalse(true, \"\\n Error Cause: ---> \" + errorCause\n\t\t\t\t\t + \"\\n Description: ---> \" + secondLine\n\t\t\t\t\t + \"\\n Location: ---> \" + location\n\t\t\t\t\t\t\t\t\t + \"\\n Detected: ---> \" + detected\n\t\t\t\t\t\t\t\t\t + \"\\n Runtime: ---> \" + runtime\n\t\t\t\t\t\t\t\t\t + \"\\n Subtotal: ---> \" + subtotal\n\t\t\t\t\t + \"\\n\"\n\t\t\t\t\t\t\t + xml\n\t\t\t\t\t\t\t + \"\\n\"\n\t\t\t\t \t + \"\\nStack Traces:\");\n\t\t\t \n\t\t\t } catch(Exception e1) {\n\t\t\t\t String s = e1.toString(), m = s;\n\t\t\t\t if(s.contains(\".\") && s.contains(\"Exception\")) {\n\t\t\t\t \t m = \".getCause() by \" + s.substring(s.lastIndexOf(\".\") + 1, s.lastIndexOf(\"Exception\")) + \" Exception\";\n\t\t\t\t \t }\n\t\t\t\t exceptionDescriptive(m, l);\t\n\t\t\t\t }\t\t \n\t\t }",
"public abstract long getTrace();",
"@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}",
"public static void printStackTrace____V (MJIEnv env, int objRef) {\n \n env.getThreadInfo().printStackTrace(objRef);\n }",
"private void setupErrorRecoveryStack(char[] origStack, int origSP) {\n System.arraycopy(origStack, 0, states, 0, (sp = origSP) + 1);\n }",
"private void printStackTrace( Exception e )\n {\n logger.printStackTrace( e, 1 );\n }",
"public final void printStackTrace( PrintWriter writer )\r\n {\r\n super.printStackTrace( writer );\r\n // Only print causal stack traces if pre-JDK 1.4.\r\n if ( !JDK1_4 ) {\r\n Throwable t = getCause();\r\n while ( t != null ) {\r\n writer.println( \"Caused by: \" + t );\r\n t.printStackTrace( writer );\r\n if ( t instanceof CanyonException ) {\r\n t = ( ( CanyonException ) t ).getCause();\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"private static void outputThrowable(Throwable cause, AppendingStringBuffer sb,\n\t\t\tboolean stopAtWicketServlet)\n\t{\n\t\tsb.append(cause);\n\t\tsb.append(\"\\n\");\n\t\tStackTraceElement[] trace = cause.getStackTrace();\n\t\tfor (int i = 0; i < trace.length; i++)\n\t\t{\n\t\t\tString traceString = trace[i].toString();\n\t\t\tif (!(traceString.startsWith(\"sun.reflect.\") && i > 1))\n\t\t\t{\n\t\t\t\tsb.append(\" at \");\n\t\t\t\tsb.append(traceString);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tif (stopAtWicketServlet\n\t\t\t\t\t\t&& traceString.startsWith(\"wicket.protocol.http.WicketServlet\"))\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public StackException(String message){\n super(message);\n }",
"void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);",
"public static String getStackTrace(final Exception ex)\n\t{\n\t\tfinal StringWriter sw = new StringWriter();\n\t\tfinal PrintWriter pw = new PrintWriter(sw, true);\n\t\tex.printStackTrace(pw);\n\t\tpw.flush();\n\t\tsw.flush();\n\t\treturn sw.toString();\n\t}",
"public interface CommonUtils {\n\tpublic static String getPrintStackTrace(Exception e){\n\t\t//StringWriter writes upon the string\n\t\tStringWriter sw = new StringWriter();\n\t\t//PrintWriter integrates with StringWriter\n\t\tPrintWriter pw = new PrintWriter(sw);\n\t\t//This line used to write in catch block then it will writes in the console prints upon the console\n\t\t//Basically prints the data upon the console\n\t\te.printStackTrace(pw);\n\t\t//it will converts to tostring method into some meaningful data\n\t\treturn sw.toString();\n\t}\n}",
"public String getStackTraceString(Throwable tr) {\n if (tr == null) {\n return \"\";\n }\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n tr.printStackTrace(pw);\n return sw.toString();\n }",
"synchronized public static String traceErrorForWeb(Throwable e) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(\n \" <font color='blue'><a href='#' onclick='$(info\" + e.hashCode() + \").style.display=\\\"block\\\"'>details</a>\"\n + \"<div id='info\" + e.hashCode() + \"' style='display:none'>\" + e.toString() + \" \" + Tools.traceError(e) + \"</div></font>\"\n );\n return sb.toString();\n }",
"public NSArray<Object> callStackReturnAddresses() {\n\t\tNSArray<Object> nsArray = new NSArray<Object>();\n\t\tnsArray.getWrappedList().add(exception.getStackTrace());\n\t\treturn nsArray;\n\t}",
"public String getExtendedStackTrace() {\n return getExtendedStackTrace(null);\n }",
"@Override\n\tpublic void trace(Marker marker, String message, Throwable t) {\n\n\t}",
"public void mo21818a(Throwable th) {\n th.printStackTrace();\n }",
"public static void exceptionDescriptive(String errorCause, StackTraceElement l) throws IOException {\n\t\t\t String secondLine = \"Browser Shut-Down\", location = \"\";\n\t\t\t String packageNameOnly, classNameOnly, xml, detected, runtime, subtotal;\n\n\t\t\t packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t location = packageNameOnly + File.separator + classNameOnly + File.separator + l.getMethodName() + \", line # \" + l.getLineNumber();\n\t\t xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t detected = getCurrentDateTimeFull();\n\t\t runtime = testRunTime(\"start.time\", System.currentTimeMillis());\n\t\t subtotal = testRunTime(\"ini.time\", System.currentTimeMillis());\n\t\t \t \n\t\t // APPEND A NEW LOG RECORDS:\n\t\t fileWriterPrinter(\"\\nError Cause: ---> \" + errorCause + \"\\nDescription: ---> \" + secondLine + \"\\n Location: ---> \" + location);\t\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t\t fileWriter(\"run.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"run.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"run.log\", \" Location: ---> \" + location);\t \t \n\t\t }\n\t\t \n\t\t // APPEND AN ERROR RECORD:\n\t\t\t fileWriter(\"failed.log\", \" Failure: #\" + fileScanner(\"failed.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Test: #\" + fileScanner(\"test.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Start: \" + convertCalendarMillisecondsAsStringToDateTimeHourMinSec(fileScanner(\"start.time\")));\n fileWriter(\"failed.log\", \" XML Path: \" + xml);\n\t\t\t fileWriter(\"failed.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"failed.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"failed.log\", \" Location: ---> \" + location);\n\t\t\t fileWriter(\"failed.log\", \" Detected: \" + detected);\n\t\t \t fileWriter(\"failed.log\", \" Runtime: \" + runtime);\n\t\t \t fileWriter(\"failed.log\", \" Subtotal: \" + subtotal);\n\t\t \t fileWriter(\"failed.log\", \"\");\n\t\t \t \n\t\t // APPEND DESCRIPTIVE RECORD:\n\t\t\t Assert.assertFalse(true, \"\\n Error Cause: ---> \" + errorCause\n\t\t\t\t\t + \"\\n Description: ---> \" + secondLine\n\t\t\t\t\t + \"\\n Location: ---> \" + location\n\t\t\t\t\t\t\t\t\t + \"\\n Detected: ---> \" + detected\n\t\t\t\t\t\t\t\t\t + \"\\n Runtime: ---> \" + runtime\n\t\t\t\t\t\t\t\t\t + \"\\n Subtotal: ---> \" + subtotal\n\t\t\t\t\t + \"\\n\"\n\t\t\t\t\t\t\t + xml\n\t\t\t\t\t\t\t + \"\\n\"\n\t\t\t\t \t + \"\\nStack Traces:\");\t\t\t \n\t\t }",
"private static JSONObject appendFullStackTrace (JSONObject jsonMetadata, Throwable t) {\n JSONArray stackArray = new JSONArray();\n\n Throwable throwable = t;\n\n StackTraceElement[] stackTraceElements;\n\n boolean first = true;\n\n // walk up the throwable's call stack:\n while (throwable != null) {\n stackArray.put((first ? \"Exception \" : \"Caused by: \") + throwable.getClass().getName() + (throwable.getMessage() != null ? \": \" + throwable.getMessage() : \"\"));\n\n stackTraceElements = throwable.getStackTrace();\n\n for (int i = 0; i < stackTraceElements.length; i++) {\n stackArray.put(stackTraceElements[i].toString());\n }\n\n throwable = throwable.getCause();\n\n first = false;\n }\n\n try {\n if (null == jsonMetadata) {\n jsonMetadata = new JSONObject();\n }\n jsonMetadata.put(\"$stacktrace\", stackArray);\n jsonMetadata.put(\"$exceptionMessage\", t.getLocalizedMessage ());\n jsonMetadata.put (\"$exceptionClass\", t.getClass().getName());\n }\n catch (JSONException e) {\n // ignore. getting the stacktrace is best effort\n }\n return jsonMetadata;\n }",
"public static String stackTrace(Exception exception) {\n\t\tStringWriter writer = new StringWriter();\n\t\tPrintWriter printWriter = new PrintWriter(writer);\n\t\texception.printStackTrace(printWriter);\n\t\tprintWriter.flush();\n\n\t\tString stackTrace = writer.toString();\n\t\treturn stackTrace;\n\t}",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"private Throwable m16892a() {\n StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();\n Throwable th = new Throwable();\n th.setStackTrace(stackTrace);\n return th;\n }",
"static void m34964c(Throwable th) {\n Thread currentThread = Thread.currentThread();\n currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);\n }",
"String getCauseException();",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"public static int getStackTrace_____3Ljava_lang_StackTraceElement_2 (MJIEnv env, int objref) {\n return env.getThreadInfo().getStackTrace(objref);\n }",
"private static String getNormalizedStackTrace(Throwable throwable, String... arguments) {\n var sw = new StringWriter();\n var pw = new PrintWriter(sw);\n throwable.printStackTrace(pw);\n String newStValue = sw.toString().replace('|', '!').replace(\"\\n\", \" - \");\n int curSize = arguments == null ? 0 : arguments.length;\n var newArgument = new StringBuilder();\n for (var i = 0; i < curSize; i++) {\n newArgument.append(arguments[i]);\n newArgument.append(\":\");\n }\n newArgument.append(newStValue);\n return newArgument.toString();\n }",
"public abstract int trace();",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic EntryMessage traceEntry() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void trace(CharSequence message, Throwable t) {\n\n\t}",
"@Before\n public void checkStackTraceIsIncluded() {\n assumeTrue(InternalFlags.getIncludeStackTraceOption() != IncludeStackTraceOption.OFF);\n }",
"public static String convertStackTrace(Exception e) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n return sw.toString();\n }",
"public static String getStackTrace(Throwable t) {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(os);\n t.printStackTrace(ps);\n return os.toString();\n }",
"public StackOverflowException(String e) {\n\t\tsuper(e);\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public static String getPrintStackTrace(Exception e){\n\t\tStringWriter sw = new StringWriter();\n\t\t//PrintWriter integrates with StringWriter\n\t\tPrintWriter pw = new PrintWriter(sw);\n\t\t//This line used to write in catch block then it will writes in the console prints upon the console\n\t\t//Basically prints the data upon the console\n\t\te.printStackTrace(pw);\n\t\t//it will converts to tostring method into some meaningful data\n\t\treturn sw.toString();\n\t}",
"public void testFillInStackTrace_manytimes() {\n Throwable th = makeThrowable();\n int len1 = th.getStackTrace().length;\n th.fillInStackTrace();\n assertEquals(\"case 1\", len1, th.getStackTrace().length);\n updateThrowable(th, 10);\n assertEquals(\"case 2\", len1, th.getStackTrace().length);\n }",
"public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 1, (Object[]) null, 23, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }",
"public void printStackTrace() {\n printStackTrace(System.err);\n }",
"private void sendOldError(Exception e) {\n }",
"@Override\n\tpublic void setStackTrace(StackTraceElement[] stackTrace) {\n\t\tsuper.setStackTrace(stackTrace);\n\t}",
"private static void a(com.bytedance.crash.nativecrash.c r10) {\n /*\n java.lang.String r0 = \".info\"\n java.io.File r10 = r10.a((java.lang.String) r0)\n boolean r0 = r10.isFile()\n if (r0 == 0) goto L_0x009b\n java.util.Properties r0 = new java.util.Properties\n r0.<init>()\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0094 }\n r2.<init>(r10) // Catch:{ Throwable -> 0x0094 }\n r0.load(r2) // Catch:{ Throwable -> 0x0093 }\n r2.close() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = \"alogJsonGenerated\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 != 0) goto L_0x009b\n java.lang.String r2 = \"aloglogdir\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 == 0) goto L_0x009b\n java.lang.String r3 = \"crash_time\"\n java.lang.String r3 = r0.getProperty(r3)\n r4 = 0\n if (r3 == 0) goto L_0x0042\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ NumberFormatException -> 0x0041 }\n long r6 = r3.longValue() // Catch:{ NumberFormatException -> 0x0041 }\n r4 = r6\n goto L_0x0042\n L_0x0041:\n L_0x0042:\n java.lang.String r3 = \"process_name\"\n java.lang.String r3 = r0.getProperty(r3)\n if (r3 != 0) goto L_0x004c\n java.lang.String r3 = \"\"\n L_0x004c:\n com.bytedance.crash.a.e r6 = new com.bytedance.crash.a.e\n r6.<init>(r3)\n java.util.List r2 = r6.a(r2, r4)\n com.bytedance.crash.e.d r2 = com.bytedance.crash.a.a.a((java.util.List<java.lang.String>) r2)\n boolean r3 = com.bytedance.crash.a.a.a((com.bytedance.crash.e.d) r2)\n if (r3 != 0) goto L_0x0060\n return\n L_0x0060:\n android.content.Context r3 = com.bytedance.crash.j.d()\n java.io.File r4 = com.bytedance.crash.i.h.c(r3)\n java.lang.String r5 = com.bytedance.crash.i.h.a()\n java.lang.String r6 = r2.f19427e\n java.lang.String r7 = r2.f19428f\n java.lang.String r8 = r2.g\n java.util.List<java.lang.String> r9 = r2.h\n com.bytedance.crash.i.d.a((java.io.File) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.util.List<java.lang.String>) r9)\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x008d }\n r2.<init>(r10) // Catch:{ Throwable -> 0x008d }\n java.lang.String r10 = \"alogJsonGenerated\"\n java.lang.String r1 = \"true\"\n r0.setProperty(r10, r1) // Catch:{ Throwable -> 0x008c }\n java.lang.String r10 = \"\"\n r0.store(r2, r10) // Catch:{ Throwable -> 0x008c }\n r2.close() // Catch:{ Throwable -> 0x008c }\n return\n L_0x008c:\n r1 = r2\n L_0x008d:\n if (r1 == 0) goto L_0x009b\n r1.close() // Catch:{ Throwable -> 0x009b }\n return\n L_0x0093:\n r1 = r2\n L_0x0094:\n if (r1 == 0) goto L_0x009a\n r1.close() // Catch:{ Throwable -> 0x009a }\n return\n L_0x009a:\n return\n L_0x009b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c):void\");\n }",
"public void testFillInStackTrace_return() {\n \n Throwable th = new Throwable();\n assertSame(th, th.fillInStackTrace());\n }",
"static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public static String getStackTraceAsString(Exception ex)\n {\n StringWriter errors = new StringWriter();\n ex.printStackTrace(new PrintWriter(errors));\n return errors.toString();\n }",
"private static void dumpServiceStacks() {\r\n ArrayList<Integer> pids = new ArrayList<>();\r\n pids.add(Process.myPid());\r\n\r\n ActivityManagerService.dumpStackTraces(\r\n pids, null, null, getInterestingNativePids());\r\n }",
"public ScGridColumn<AcFossWebServiceMessage> newStackTraceColumn()\n {\n return newStackTraceColumn(\"Stack Trace\");\n }"
]
| [
"0.6325559",
"0.62672585",
"0.6198736",
"0.61576915",
"0.605553",
"0.6008808",
"0.60074157",
"0.59775233",
"0.59497935",
"0.59436685",
"0.59204376",
"0.59174484",
"0.58933616",
"0.585634",
"0.58036935",
"0.57944345",
"0.57895356",
"0.57895356",
"0.5723456",
"0.5648493",
"0.56447065",
"0.56406385",
"0.5624501",
"0.5607917",
"0.560298",
"0.56004643",
"0.5600019",
"0.55982083",
"0.559366",
"0.5583127",
"0.5568262",
"0.55661726",
"0.5536309",
"0.5517452",
"0.55169463",
"0.5513612",
"0.55110073",
"0.54933083",
"0.54908735",
"0.54894286",
"0.548579",
"0.5484219",
"0.5482088",
"0.5481624",
"0.54583347",
"0.5455897",
"0.5453753",
"0.54386514",
"0.5434317",
"0.5433876",
"0.54261184",
"0.5424685",
"0.5410405",
"0.5400987",
"0.5395872",
"0.5394405",
"0.53885055",
"0.5386989",
"0.53827196",
"0.5380395",
"0.5378293",
"0.5378145",
"0.5360447",
"0.5359326",
"0.5357602",
"0.5355029",
"0.5350289",
"0.5344859",
"0.53429246",
"0.5341372",
"0.5338156",
"0.53346604",
"0.5328983",
"0.5322732",
"0.5299259",
"0.52931166",
"0.5271221",
"0.52661294",
"0.5260114",
"0.52515084",
"0.5244122",
"0.5242135",
"0.5238918",
"0.5238844",
"0.5237594",
"0.5227989",
"0.52249074",
"0.5219145",
"0.5217096",
"0.52032596",
"0.52026546",
"0.51972705",
"0.5193319",
"0.5192654",
"0.51906174",
"0.51870817",
"0.5181214",
"0.51786345",
"0.5174028",
"0.5170685",
"0.51674235"
]
| 0.0 | -1 |
Build the SpanContext, if the actual span has a parent, the following attributes must be propagated: ServiceName Baggage Trace (a list of all spans related) SpanType | private DDSpanContext buildSpanContext() {
final DDId traceId;
final DDId spanId = idGenerationStrategy.generate();
final DDId parentSpanId;
final Map<String, String> baggage;
final PendingTrace parentTrace;
final int samplingPriority;
final String origin;
final Map<String, String> coreTags;
final Map<String, ?> rootSpanTags;
final DDSpanContext context;
final Object requestContextData;
// FIXME [API] parentContext should be an interface implemented by ExtractedContext,
// TagContext, DDSpanContext, AgentSpan.Context
Object parentContext = parent;
if (parentContext == null && !ignoreScope) {
// use the Scope as parent unless overridden or ignored.
final AgentSpan activeSpan = scopeManager.activeSpan();
if (activeSpan != null) {
parentContext = activeSpan.context();
}
}
String parentServiceName = null;
// Propagate internal trace.
// Note: if we are not in the context of distributed tracing and we are starting the first
// root span, parentContext will be null at this point.
if (parentContext instanceof DDSpanContext) {
final DDSpanContext ddsc = (DDSpanContext) parentContext;
traceId = ddsc.getTraceId();
parentSpanId = ddsc.getSpanId();
baggage = ddsc.getBaggageItems();
parentTrace = ddsc.getTrace();
samplingPriority = PrioritySampling.UNSET;
origin = null;
coreTags = null;
rootSpanTags = null;
parentServiceName = ddsc.getServiceName();
if (serviceName == null) {
serviceName = parentServiceName;
}
RequestContext<Object> requestContext = ddsc.getRequestContext();
requestContextData = null == requestContext ? null : requestContext.getData();
} else {
if (parentContext instanceof ExtractedContext) {
// Propagate external trace
final ExtractedContext extractedContext = (ExtractedContext) parentContext;
traceId = extractedContext.getTraceId();
parentSpanId = extractedContext.getSpanId();
samplingPriority = extractedContext.getSamplingPriority();
baggage = extractedContext.getBaggage();
} else {
// Start a new trace
traceId = IdGenerationStrategy.RANDOM.generate();
parentSpanId = DDId.ZERO;
samplingPriority = PrioritySampling.UNSET;
baggage = null;
}
// Get header tags and set origin whether propagating or not.
if (parentContext instanceof TagContext) {
TagContext tc = (TagContext) parentContext;
coreTags = tc.getTags();
origin = tc.getOrigin();
requestContextData = tc.getRequestContextData();
} else {
coreTags = null;
origin = null;
requestContextData = null;
}
rootSpanTags = localRootSpanTags;
parentTrace = createTrace(traceId);
}
if (serviceName == null) {
serviceName = CoreTracer.this.serviceName;
}
final CharSequence operationName =
this.operationName != null ? this.operationName : resourceName;
final int tagsSize =
(null == tags ? 0 : tags.size())
+ defaultSpanTags.size()
+ (null == coreTags ? 0 : coreTags.size())
+ (null == rootSpanTags ? 0 : rootSpanTags.size());
// some attributes are inherited from the parent
context =
new DDSpanContext(
traceId,
spanId,
parentSpanId,
parentServiceName,
serviceName,
operationName,
resourceName,
samplingPriority,
origin,
baggage,
errorFlag,
spanType,
tagsSize,
parentTrace,
requestContextData);
// By setting the tags on the context we apply decorators to any tags that have been set via
// the builder. This is the order that the tags were added previously, but maybe the `tags`
// set in the builder should come last, so that they override other tags.
context.setAllTags(defaultSpanTags);
context.setAllTags(tags);
context.setAllTags(coreTags);
context.setAllTags(rootSpanTags);
return context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public CoreSpanBuilder asChildOf(final AgentSpan.Context spanContext) {\n parent = spanContext;\n return this;\n }",
"public Scope startScope(Span span) {\n // TODO we could do this in one go, but TracingContextUtils.CONTEXT_SPAN_KEY is private\n io.opentelemetry.context.Context newContext =\n io.opentelemetry.context.Context.current().with(CONTEXT_SERVER_SPAN_KEY, span).with(span);\n return newContext.makeCurrent();\n }",
"protected Span getSpan(String spanName) {\n\t\tif (!this.feignRequestContext.hasSpanInProcess()) {\n\t\t\tSpan span = this.tracer.createSpan(spanName);\n\t\t\tthis.feignRequestContext.putSpan(span, false);\n\t\t\treturn span;\n\t\t} else {\n\t\t\tif (this.feignRequestContext.wasSpanRetried()) {\n\t\t\t\treturn this.tracer.continueSpan(this.feignRequestContext.getCurrentSpan());\n\t\t\t}\n\t\t}\n\t\treturn this.tracer.createSpan(spanName);\n\t}",
"@Test public void usesParentFromInvocationTime() throws Exception {\n server.enqueueDelay(TimeUnit.SECONDS.toMillis(1));\n GreeterGrpc.GreeterFutureStub futureStub = GreeterGrpc.newFutureStub(client);\n\n ScopedSpan parent = tracer.startScopedSpan(\"test\");\n try {\n futureStub.sayHello(HELLO_REQUEST);\n futureStub.sayHello(HELLO_REQUEST);\n } finally {\n parent.finish();\n }\n\n ScopedSpan otherSpan = tracer.startScopedSpan(\"test2\");\n try {\n for (int i = 0; i < 2; i++) {\n TraceContext context = server.takeRequest().context();\n assertThat(context.traceId())\n .isEqualTo(parent.context().traceId());\n assertThat(context.parentId())\n .isEqualTo(parent.context().spanId());\n }\n } finally {\n otherSpan.finish();\n }\n\n // Check we reported 2 local spans and 2 client spans\n assertThat(Arrays.asList(takeSpan(), takeSpan(), takeSpan(), takeSpan()))\n .extracting(Span::kind)\n .containsOnly(null, Span.Kind.CLIENT);\n }",
"@BeforeEach\n public void setUp() {\n tracer = OpenTelemetrySdk.builder().build().getTracer(\"TracerSdkTest\");\n // Start user parent span.\n parentSpan = tracer.spanBuilder(PARENT_SPAN_KEY).startSpan();\n scope = parentSpan.makeCurrent();\n }",
"synchronized V1Span toSpan() {\n for (V1Annotation a : annotations) {\n Endpoint ep = Endpoints.boundEndpoint(a.endpoint());\n span.addAnnotation(a.timestamp(), a.value(), ep.toBuilder().serviceName(service).build());\n }\n for (V1BinaryAnnotation ann : binaryAnnotations) {\n Endpoint ep = Endpoints.boundEndpoint(ann.endpoint());\n if (ann.stringValue() == null) { // service annotation\n span.addBinaryAnnotation(ann.key(), ep);\n } else {\n span.addBinaryAnnotation(\n ann.key(), ann.stringValue(), ep.toBuilder().serviceName(service).build());\n }\n }\n return span.build();\n }",
"abstract void addChild(SpanBranch span, int position);",
"@Override\n public SpanBuilder buildSpan(String operationName) {\n throw new DummyCalled(triggeringEnabled);\n }",
"public Builder withTraceAnnotations() {\n this.traceAll = false;\n return this;\n }",
"protected Span() {/* intentionally empty block */}",
"@Bean\n Tracing tracing(@Value(\"${dubbo.application.name}\") String applicationName, @Value(\"${zipkin.enable:false}\") Boolean enable, @Autowired(required = false) AsyncReporter spanReporter) {\n Tracing.Builder builder = Tracing.newBuilder()\n .localServiceName(applicationName)\n .propagationFactory(ExtraFieldPropagation.newFactory(B3Propagation.FACTORY, \"user-name\"))\n .currentTraceContext(ThreadLocalCurrentTraceContext.newBuilder()\n // puts trace IDs into logs\n .addScopeDecorator(MDCScopeDecorator.create())\n .build()\n );\n if (enable) {\n builder.spanReporter(spanReporter);\n builder.sampler(Sampler.ALWAYS_SAMPLE);\n } else {\n builder.sampler(Sampler.NEVER_SAMPLE);\n }\n return builder.build();\n }",
"private Tracing(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Span createSpan();",
"private SpanBuilder addDDTags(SpanBuilder spanBuilder, Context cxt) {\n String requestId = \"\";\n String functionName = \"\";\n String functionArn = \"\";\n String functionVersion = \"\";\n if (cxt != null) {\n requestId = cxt.getAwsRequestId();\n functionName = cxt.getFunctionName();\n functionArn = santitizeFunctionArn(cxt.getInvokedFunctionArn());\n functionVersion = cxt.getFunctionVersion();\n } else {\n return spanBuilder;\n }\n if (spanBuilder != null) {\n spanBuilder.withTag(\"request_id\", requestId);\n spanBuilder.withTag(\"service\", \"aws.lambda\");\n spanBuilder.withTag(\"function_arn\", functionArn.toLowerCase());\n spanBuilder.withTag(\"cold_start\", ColdStart.getColdStart(cxt));\n spanBuilder.withTag(\"datadog_lambda\", BuildConfig.datadog_lambda_version);\n spanBuilder.withTag(\"resource_names\", functionName);\n spanBuilder.withTag(\"functionname\", functionName.toLowerCase());\n spanBuilder.withTag(\"function_version\", functionVersion);\n spanBuilder.withTag(\"resource.name\", functionName);\n }\n return spanBuilder;\n }",
"IServiceContext getParent();",
"@Override\n\tpublic boolean isRoot(Span span) {\n\t\tif (span instanceof SpanWrapper) {\n\t\t\tspan = ((SpanWrapper) span).getDelegate();\n\t\t}\n\t\tif (span instanceof io.jaegertracing.internal.JaegerSpan) {\n\t\t\tfinal io.jaegertracing.internal.JaegerSpan jaegerSpan = (io.jaegertracing.internal.JaegerSpan) span;\n\t\t\treturn jaegerSpan.context().getParentId() == 0;\n\t\t}\n\t\treturn false;\n\t}",
"public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }",
"public Span fill(Span span) {\n\t\tObjects.requireNonNull(span);\n\t\tList<Namespace> namespaces = namespaces();\n\t\tspan.setTag(\"owner\", namespaces.stream().map(ns -> ns.name).collect(joining(\".\")));\n\t\tfor (Namespace ns : namespaces) {\n\t\t\tfor (OwnerTag tag = ns.data.tags; tag != null; tag = tag.next) {\n\t\t\t\tString key = ns.name + \".\" + tag.key;\n\t\t\t\tObject value = tag.value;\n\t\t\t\t/*\n\t\t\t\t * Opentracing API only takes certain types of variables, so cast appropriately.\n\t\t\t\t * We will convert arbitrary objects via toString(). This is a bit dangerous,\n\t\t\t\t * but callers are expected to be careful what are they setting as the tag value.\n\t\t\t\t */\n\t\t\t\tif (value instanceof String)\n\t\t\t\t\tspan.setTag(key, (String)value);\n\t\t\t\telse if (value instanceof Number)\n\t\t\t\t\tspan.setTag(key, (Number)value);\n\t\t\t\telse if (value instanceof Boolean)\n\t\t\t\t\tspan.setTag(key, (boolean)value);\n\t\t\t\telse\n\t\t\t\t\tspan.setTag(key, value.toString());\n\t\t\t}\n\t\t}\n\t\treturn span;\n\t}",
"@Override\n public Optional<Map<String, String>> encode(PropagationContext context) {\n // Check context is valid\n if (context == null) {\n return Optional.empty();\n }\n\n if (!W3CTraceIdProvider.isValidTraceId(context.getTraceId())) {\n LOG.warn(\"Unable to encode TraceId to W3C format: {}\", context.getTraceId());\n return Optional.empty();\n }\n\n if (!W3CTraceIdProvider.isValidSpanId(context.getSpanId())) {\n LOG.warn(\"Unable to encode SpanId to W3C format: {}\", context.getSpanId());\n return Optional.empty();\n }\n\n final StringBuilder builder = new StringBuilder(HEADER_LENGTH)\n .append(DEFAULT_VERSION).append(SEGMENT_SEPARATOR)\n .append(context.getTraceId()).append(SEGMENT_SEPARATOR)\n .append(context.getSpanId()).append(SEGMENT_SEPARATOR)\n .append(NOT_SAMPLED_TRACEFLAGS);\n\n return Optional.of(Collections.singletonMap(W3C_TRACEPARENT_HEADER, builder.toString()));\n }",
"private IExtendsContext createExtendsContext() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IExtendsContext.ELEMENT_TYPE, null, null);\n\t}",
"Scope(XmlPullParser parser, ScopeData parentScopeData) throws IOException,\n\t\tXmlPullParserException, MalformedDocumentException\n\t{\n\t\tsuper(parser, parentScopeData.createNestedScope(), \"scope\");\n\t\tparseStartTag();\n\t\tscopeData.setName(name);\n\t\t\n\t\tparser.nextTag();\n\t\tparseStandardElements();\n\t\t\n\t\tvariables = new Variables(parser);\n\t\tscopeData.setVariables(variables);\n\t\t// Parse and update the local variables\n\t\tcorrelationSets = new CorrelationSets(parser);\n\t\tscopeData.setCorrelationSets(correlationSets);\n\t\t// Parse and update the local correlation sets\n\t\tfaultHandlers = new FaultHandlers(parser, scopeData);\n//\t\tthis.scopeData.setCatches(faultHandlers.getCatches());\n//\t\tthis.scopeData.setCatchAll(faultHandlers.getCatchAll());\n\t\t// Parse and update the local fault handlers\n\n\t\t// TODO: parse compensation handler\n\t\teventHandlers = new EventHandlers(parser, scopeData);\n\t\t// Parse and update the local event handlers\n\t\t\n\t\tchild = Activity.parse(parser, scopeData);\n\t\t// Parse the child activity\n\t\t\n\t\tparseEndTag();\n\t\tparser.nextTag();\n\t}",
"@Test public void currentSpanVisibleToUserInterceptors() throws Exception {\n closeClient(client);\n\n client = newClient(\n new ClientInterceptor() {\n @Override public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(\n MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) {\n testLogger.info(\"in span!\");\n tracer.currentSpanCustomizer().annotate(\"before\");\n return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>(\n next.newCall(method, callOptions)) {\n @Override\n public void start(Listener<RespT> responseListener, Metadata headers) {\n tracer.currentSpanCustomizer().annotate(\"start\");\n super.start(responseListener, headers);\n }\n };\n }\n },\n tracing.newClientInterceptor()\n );\n\n GreeterGrpc.newBlockingStub(client).sayHello(HELLO_REQUEST);\n\n assertThat(takeSpan().annotations())\n .extracting(Annotation::value)\n .containsOnly(\"before\", \"start\");\n }",
"private void startSpan(Map<String, String> headers, Context cxt) {\n //If the user has not set DD_TRACE_ENABLED=true, don't start a span\n if (!checkTraceEnabled()) {\n return;\n }\n\n String functionName = \"\";\n if (cxt != null) {\n functionName = cxt.getFunctionName();\n }\n\n if (headers == null) {\n DDLogger.getLoggerImpl()\n .error(\"The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?\");\n headers = new HashMap<String, String>();\n }\n\n //Get the Datadog tracer, if it exists\n Tracer tracer = GlobalTracer.get();\n //Datadog tracer will be able to extract datadog trace headers from an incoming request\n SpanContext parentContext = tracer.extract(Builtin.HTTP_HEADERS, new TextMapAdapter(headers));\n\n SpanBuilder spanBuilder = tracer.buildSpan(\"aws.lambda\").asChildOf(parentContext);\n spanBuilder = addDDTags(spanBuilder, cxt);\n Span thisSpan = spanBuilder.start();\n\n //Hang on to the scope, we'll need it later to close.\n this.tracingScope = tracer.activateSpan(thisSpan);\n }",
"public AsyncReporter<Span> build() {\n switch (sender.encoding()) {\n case JSON:\n return build(SpanBytesEncoder.JSON_V2);\n case PROTO3:\n return build(SpanBytesEncoder.PROTO3);\n case THRIFT:\n return build(SpanBytesEncoder.THRIFT);\n default:\n throw new UnsupportedOperationException(sender.encoding().name());\n }\n }",
"protected static Scope startServerSpan(Tracer tracer, HttpHeaders httpHeaders, String operationName) {\n MultivaluedMap<String, String> rawHeaders = httpHeaders.getRequestHeaders();\r\n final HashMap<String, String> headers = new HashMap<>();\r\n for (String key : rawHeaders.keySet()) {\r\n headers.put(key, rawHeaders.get(key).get(0));\r\n }\r\n\r\n Tracer.SpanBuilder spanBuilder;\r\n try {\r\n SpanContext parentSpan = tracer.extract(Format.Builtin.HTTP_HEADERS, new TextMapExtractAdapter(headers));\r\n if (parentSpan == null) {\r\n spanBuilder = tracer.buildSpan(operationName);\r\n } else {\r\n spanBuilder = tracer.buildSpan(operationName).asChildOf(parentSpan);\r\n }\r\n } catch (IllegalArgumentException e) {\r\n spanBuilder = tracer.buildSpan(operationName);\r\n }\r\n return spanBuilder.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER).startActive(true);\r\n }",
"@ConfigBean\npublic interface FakeSpanLogTracingConfig extends FakeTraceableConfig {\n// /**\n// * Disabled traced span log.\n// */\n// public static final FakeSpanLogTracingConfigBean DISABLED = FakeSpanLogTracingConfigBean.builder(\"disabled\").enabled(false).build();\n// /**\n// * Enabled traced span log.\n// */\n// public static final FakeSpanLogTracingConfigBean ENABLED = FakeSpanLogTracingConfigBean.builder(\"enabled\").build();\n//\n// /**\n// * A new span log.\n// * @param name name of the span log\n// */\n// protected FakeSpanLogTracingConfigBean(String name) {\n// super(name);\n// }\n//\n\n// /**\n// * Merge two traced span log configurations.\n// *\n// * @param older original configuration with default values\n// * @param newer new configuration to override the older\n// * @return a new traced span log mergint the older and newer\n// */\n// static FakeSpanLogTracingConfigBean merge(FakeSpanLogTracingConfigBean older, FakeSpanLogTracingConfigBean newer) {\n// return new FakeSpanLogTracingConfigBean(newer.name()) {\n// @Override\n// public Optional<Boolean> isEnabled() {\n// return newer.isEnabled()\n// .or(older::isEnabled);\n// }\n// };\n// }\n//\n// /**\n// * Fluent API builder to create a new traced span log configuration.\n// *\n// * @param name name of the span log\n// * @return a new builder instance\n// */\n// public static Builder builder(String name) {\n// return new Builder(name);\n// }\n//\n// /**\n// * Create a new traced span log configuration from {@link io.helidon.config.Config}.\n// *\n// * @param name name of the span log\n// * @param config config for a traced span log\n// * @return a new traced span log configuration\n// */\n// public static FakeSpanLogTracingConfigBean create(String name, Config config) {\n// return builder(name).config(config).build();\n// }\n//\n// /**\n// * A fluent API builder for {@link FakeSpanLogTracingConfigBean}.\n// */\n// public static final class Builder implements io.helidon.common.Builder<Builder, FakeSpanLogTracingConfigBean> {\n// private final String name;\n// private Optional<Boolean> enabled = Optional.empty();\n//\n// private Builder(String name) {\n// this.name = name;\n// }\n//\n// @Override\n// public FakeSpanLogTracingConfigBean build() {\n// final Optional<Boolean> finalEnabled = enabled;\n// return new FakeSpanLogTracingConfigBean(name) {\n// @Override\n// public Optional<Boolean> isEnabled() {\n// return finalEnabled;\n// }\n// };\n// }\n//\n// /**\n// * Configure whether this traced span log is enabled or disabled.\n// *\n// * @param enabled if disabled, this span and all logs will be disabled\n// * @return updated builder instance\n// */\n// public Builder enabled(boolean enabled) {\n// this.enabled = Optional.of(enabled);\n// return this;\n// }\n//\n// /**\n// * Update this builder from {@link io.helidon.config.Config}.\n// *\n// * @param config config of a traced span log\n// * @return updated builder instance\n// */\n// public Builder config(Config config) {\n// config.get(\"enabled\").asBoolean().ifPresent(this::enabled);\n//\n// return this;\n// }\n// }\n//\n}",
"public com.vodafone.global.er.decoupling.binding.request.ParentTransactionType createParentTransactionType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ParentTransactionTypeImpl();\n }",
"private InliningState createChildState(CachedBzlLoadDataManager cachedBzlLoadDataManager) {\n CachedBzlLoadData.Builder newBuilder = cachedBzlLoadDataManager.cachedDataBuilder();\n RecordingSkyFunctionEnvironment newRecordingEnv =\n new RecordingSkyFunctionEnvironment(\n recordingEnv.getDelegate(),\n newBuilder::addDep,\n newBuilder::addDeps,\n newBuilder::noteException);\n return new InliningState(\n newRecordingEnv,\n newBuilder,\n loadStack,\n successfulLoads,\n unsuccessfulLoads,\n newBuilder::addTransitiveDeps);\n }",
"public AvroReadContext(AvroReadContext parent, String typeId)\n {\n super();\n _parent = parent;\n _typeId = typeId;\n _nestingDepth = parent == null ? 0 : parent._nestingDepth + 1;\n }",
"private LocalizationContext(Builder builder){\n super(builder);\n this.id = builder.id;\n this.targetType = builder.targetType;\n }",
"protected AbstractSplinePathBuilder(ScriptingContext parent) {\n\tsuper(parent);\n\tthis.parent = parent;\n }",
"public RequestDataBuilder trace() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.TRACE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"@Override\n public ProducerRecord<Object, Object> onSend(ProducerRecord<Object, Object> record) {\n Boolean enableSpan = Boolean.parseBoolean(System.getProperty(\"kafka.producer.span\", \"true\"));\n \n if (logger.isTraceEnabled()) {\n logger.trace(\"Value of kafka.producer.span is: \" + enableSpan);\n }\n if (enableSpan) {\n // The currently active span would automatically become the parent \n // span of this newly created span.\n Span span = tracer.buildSpan(\"kafka-send\").start();\n\n try (Scope scope = tracer.activateSpan(span)) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"Created new kafka producer span: {}\", span.context());\n }\n\n // Kafka producer interceptor is a little different than any standard\n // synchronoous interceptor, where both request and response is handled\n // by the same interceptor API.\n // Whatever span is created by the interceptor, will be immediately \n // closed by the interceptor itself. The span will just indicate that\n // a message has been sent to remote kafka broker.\n\n tracer.inject(span.context()\n , Format.Builtin.TEXT_MAP_INJECT\n , new KafkaMsgContextCarrier(record.headers()));\n\n for (KafkaSpanDecorator decorator : decorators) {\n decorator.onSend(record, span);\n }\n }\n finally {\n span.finish();\n }\n // After the call, the old span becomes active again.\n }\n else {\n // Span creation is disabled. Therefore just extract the span context\n // from the currently active span and propagate.\n // If no active span, then nothing will be propagated.\n // Note that, this behavior can be confusing, because the consumer, at\n // the other side will receive the contextual info, and it may treat\n // that as a followup span created by producer. Therefore it is\n // essential to inject a special header \"no.span=true\" in order for\n // the consumer to distinguish it easily.\n \n // The flag, -Dkafka.producer.span should be disabled only if user \n // experiences a sudden influx of span.\n Span span = tracer.activeSpan();\n \n if (span != null) {\n tracer.inject(span.context()\n , Format.Builtin.TEXT_MAP_INJECT\n , new KafkaMsgContextCarrier(record.headers()));\n \n if (logger.isTraceEnabled()) {\n logger.trace(\"Span creation is disabled in kafka producer. Therefore propagating the\"\n + \" current contextual info from the span: {}\", span.context().toSpanId());\n }\n }\n else {\n if (logger.isTraceEnabled()) {\n logger.trace(\"No Active span exist. Context won't be propagated\");\n }\n }\n }\n return record;\n }",
"private SerializedExampleListWithContext(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public EvaluationContext buildContext(Runner runner, Input input) {\n // our concept of now may be overridden by the runner\n Instant now = runner.getNow() != null ? runner.getNow() : Instant.now();\n\n EvaluationContext context = new EvaluationContext(new HashMap<String, Object>(), m_org.getTimezone(), m_org.getDateStyle(), now);\n\n Map<String, String> contactContext = m_contact.buildContext(this, context);\n\n if (input != null) {\n context.putVariable(\"step\", input.buildContext(context, contactContext));\n }\n\n context.putVariable(\"date\", buildDateContext(context));\n context.putVariable(\"contact\", contactContext);\n context.putVariable(\"extra\", m_extra);\n context.putVariable(\"flow\", buildFlowContext(getValues(), context));\n\n // add the flow that was one level above us\n if (m_level > 0) {\n context.putVariable(\"parent\", buildFlowContext(m_values.get(m_level - 1), context));\n }\n\n // if we have a child below us, add that context in too\n if (m_values.size() > m_level + 1) {\n context.putVariable(\"child\", buildFlowContext(m_values.get(m_level + 1), context));\n }\n\n return context;\n }",
"public Span(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"public static void stopSpan() {\n final AbstractTracerContext context = get();\n stopSpan(context.activeSpan(), context);\n }",
"public String getSpan()\n {\n return span;\n }",
"private void buildHierarchy(MocaTraceType aTraceType) {\n\t\tlogger.debug(aTraceType.toString());\n\n\t\tfor (List<EventProducer> groupOfProducers : consecutiveProducers\n\t\t\t\t.get(aTraceType)) {\n\t\t\t// If only one EP in the group\n\t\t\tif (groupOfProducers.size() == 1) {\n\t\t\t\tif (trimLoneEventProducers) {\n\t\t\t\t\t// Ignore it\n\t\t\t\t\tignoredEventProd.get(aTraceType).add(Long.valueOf(groupOfProducers.get(0).getName()));\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tif(IsVirtualAddressing(aTraceType) && trimOutOfStructs &&\n\t\t\t\t\t\t\t!groupOfProducers.get(0).getName().matches(\"^\\\\d+$\") )\n\t\t\t\t\t\t\tcontinue; //Trim Out of Structs\n\t\t\t\t\t// Just add it to the list\n\t\t\t\t\tallProducers.get(aTraceType).addAll(groupOfProducers);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Expand hierarchy\n\t\t\t\tint dividingFactor = findDividingFactor(groupOfProducers);\n\t\t\t\tif (dividingFactor > 0) {\n\t\t\t\t\tallProducers.get(aTraceType).addAll(\n\t\t\t\t\t\t\tcreateHierarchy(groupOfProducers, 0.0,\n\t\t\t\t\t\t\t\t\troot.get(aTraceType).getId(),\n\t\t\t\t\t\t\t\t\tdividingFactor));\n\t\t\t\t} else {\n\t\t\t\t\tallProducers.get(aTraceType).addAll(groupOfProducers);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Build Index\n\t\tfor (EventProducer aProd : allProducers.get(aTraceType)) {\n\t\t\tproducersIndex.get(aTraceType).put(aProd.getName(), aProd);\n\t\t}\n\n\t}",
"private static @Nullable ContextMenuItem createMenuItemForClickableSpan(\n Context context,\n int itemId,\n Spannable spannable,\n ClickableSpan clickableSpan,\n TalkBackAnalytics analytics) {\n final int start = spannable.getSpanStart(clickableSpan);\n final int end = spannable.getSpanEnd(clickableSpan);\n if (start < 0 || end < 0) {\n return null;\n }\n final CharSequence label = spannable.subSequence(start, end);\n if (TextUtils.isEmpty(label)) {\n return null;\n }\n\n SpannableUtils.stripTargetSpanFromText(label, TARGET_SPAN_CLASS);\n final ContextMenuItem item =\n ContextMenu.createMenuItem(context, R.id.group_links, itemId, Menu.NONE, label);\n item.setOnMenuItemClickListener(\n new ClickableSpanMenuItemClickListener(clickableSpan, analytics));\n return item;\n }",
"public tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext.Builder getExampleListWithContextBuilder() {\n return getExampleListWithContextFieldBuilder().getBuilder();\n }",
"public static JaegerTracer initTracer(String service) {\n SamplerConfiguration mySamplerConfig = SamplerConfiguration.fromEnv().withType(\"const\").withParam(1);\r\n\r\n //Whether the reporter should also log the spans\r\n ReporterConfiguration myReporterConfig = ReporterConfiguration.fromEnv().withLogSpans(true);\r\n \r\n //Creates configuration with the above created sampler and reporter configuration\r\n Configuration config = new Configuration(service).withSampler(mySamplerConfig).withReporter(myReporterConfig);\r\n \r\n //return the tracker\r\n return config.getTracer();\r\n\r\n }",
"public Builder setContext(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value;\n onChanged();\n return this;\n }",
"private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {\n //associate position here\n adjustPosition(parent, positionSpan);\n// parent.setAttribute(\"llx\", String.valueOf(positionSpan.getLlx()));\n// parent.setAttribute(\"lly\", String.valueOf(positionSpan.getLly()));\n// parent.setAttribute(\"urx\", String.valueOf(positionSpan.getUrx()));\n// parent.setAttribute(\"ury\", String.valueOf(positionSpan.getUry()));\n //end associate position\n if (labelParts.length > 0) {\n String labelPart = labelParts[0];\n Element child;\n\n if ((child = lastChild( parent )) == null || labelPart.startsWith( \"^\" ) || !labelPart.equals( child.getName() )) {\n labelPart = labelPart.replaceFirst( \"^\\\\^\", \"\" );\n child = new Element( labelPart );\n parent.addContent( child );\n }\n List tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );\n String[] labelTail = (String[])tails.toArray( new String[tails.size()] );\n //associate position here\n\n //end associate position\n insertTokenPosition(child, span, labelTail, positionSpan);\n }\n else {\n parent.addContent( span );\n }\n }",
"@Override\n public Call<List<Span>> getTrace(String traceId) {\n traceId = Span.normalizeTraceId(traceId);\n\n // Unless we are strict, truncate the trace ID to 64bit (encoded as 16 characters)\n if (!strictTraceId && traceId.length() == 32) traceId = traceId.substring(16);\n\n SearchRequest request = SearchRequest.create(asList(allSpanIndices)).term(\"traceId\", traceId);\n return search.newCall(request, BodyConverters.SPANS);\n }",
"public static AbstractSpan activeSpan() {\n return get().activeSpan();\n }",
"public Tracing create(String serviceName) {\n return Tracing.newBuilder()\n .localServiceName(serviceName)\n .currentTraceContext(RequestContextCurrentTraceContext.ofDefault())\n .spanReporter(spanReporter())\n .build();\n }",
"private VariantContext createVariantContext(final String chrom, final int pos, final int end, final String chr2,\n final Integer end2, final String ref, final String alt,\n final Integer svLen, final String strands, final String cpxType,\n final List<String> cpxIntervals) {\n final Map<String, Object> attributes = new HashMap<>();\n if (chr2 != null) {\n attributes.put(GATKSVVCFConstants.CONTIG2_ATTRIBUTE, chr2);\n }\n if (end2 != null) {\n attributes.put(GATKSVVCFConstants.END2_ATTRIBUTE, end2);\n }\n if (svLen != null) {\n attributes.put(GATKSVVCFConstants.SVLEN, svLen);\n }\n if (strands != null) {\n attributes.put(GATKSVVCFConstants.STRANDS_ATTRIBUTE, strands);\n }\n if (cpxType != null) {\n attributes.put(GATKSVVCFConstants.CPX_TYPE, cpxType);\n }\n if (cpxIntervals != null) {\n attributes.put(GATKSVVCFConstants.CPX_INTERVALS, cpxIntervals);\n }\n return new VariantContextBuilder()\n .source(\"source\")\n .id(\"id\")\n .chr(chrom)\n .start(pos)\n .stop(end)\n .alleles(Arrays.asList(ref != null ? Allele.create(ref, true) : Allele.REF_N,\n alt != null ? Allele.create(alt, false) : Allele.ALT_N))\n .attributes(attributes)\n .make();\n }",
"SPAN createSPAN();",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"private ContextDependentVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Span nextSpan(TraceContextOrSamplingFlags extracted, Req request) {\n Boolean sampled = null;\n if (extracted.sampled() == null) { // Otherwise, try to make a new decision\n if (request instanceof HttpServletRequest) {\n if (webDebugMatcher.matches((HttpServletRequest) request)) {\n sampled = true;\n }\n }\n extracted = extracted.sampled(sampled);\n }\n Span span = extracted.context() != null\n ? tracer.joinSpan(extracted.context())\n : tracer.nextSpan(extracted);\n if (sampled != null && sampled) {\n span.tag(\"DebugMark\", webDebugMatcher.debugMark());\n }\n return span;\n }",
"@Override\n public ILoggingObject getParent() {\n return parentLoggingObject;\n }",
"@Override\n public void onStart(Trace parent) throws Throwable\n {\n \n }",
"final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }",
"@Override\r\n\tprotected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) {\n\t\tswitch (this.leafContext) {\r\n\t\t\tcase ATTRIBUTE_NAME:\r\n\t\t\t\treturn new AttributeNameLeafElement(parent, a, p0, p1);\r\n\t\t\tcase ATTRIBUTE_VALUE:\r\n\t\t\t\treturn new AttributeValueLeafElement(parent, a, p0, p1);\r\n\t\t\tdefault:\r\n\t\t\t\t// fall-back case\r\n\t\t\t\treturn super.createLeafElement(parent, a, p0, p1);\r\n\t\t}\r\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext, tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext.Builder, tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContextOrBuilder> \n getExampleListWithContextFieldBuilder() {\n if (exampleListWithContextBuilder_ == null) {\n if (!(kindCase_ == 2)) {\n kind_ = tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext.getDefaultInstance();\n }\n exampleListWithContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext, tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext.Builder, tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContextOrBuilder>(\n (tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleListWithContext) kind_,\n getParentForChildren(),\n isClean());\n kind_ = null;\n }\n kindCase_ = 2;\n onChanged();;\n return exampleListWithContextBuilder_;\n }",
"public void makeContexts() {\n \n // make map of ContextTreeNode objects for all taxonomic contexts, indexed by root node name\n HashMap<String, ContextTreeNode> contextNodesByRootName = new HashMap<String, ContextTreeNode>();\n for (ContextDescription cd : ContextDescription.values()) {\n contextNodesByRootName.put(cd.licaNodeName, new ContextTreeNode(new TaxonomyContext(cd, this)));\n }\n \n TraversalDescription prefTaxParentOfTraversal = Traversal.description().depthFirst().\n relationships(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // for each ContextTreeNode (i.e. each context)\n for (Entry<String, ContextTreeNode> entry: contextNodesByRootName.entrySet()) {\n \n String childName = entry.getKey();\n ContextTreeNode contextNode = entry.getValue();\n \n // traverse back up the taxonomy tree from the root of this context toward life\n for (Node parentNode : prefTaxParentOfTraversal.traverse(contextNode.context.getRootNode()).nodes()) {\n \n // if/when we find a more inclusive (i.e. parent) context\n String parentName = String.valueOf(parentNode.getProperty(\"name\"));\n if (contextNodesByRootName.containsKey(parentName) && (parentName.equals(childName) == false)) {\n \n System.out.println(\"Adding \" + childName + \" as child of \" + parentName);\n \n // add this link in the contextNode hierarchy and move to the next contextNode\n ContextTreeNode parentContextNode = contextNodesByRootName.get(parentName);\n parentContextNode.addChild(contextNode);\n break;\n \n }\n }\n }\n \n // get the root of the ContextTreeNode tree (i.e. most inclusive context)\n ContextTreeNode contextHierarchyRoot = contextNodesByRootName.get(LIFE_NODE_NAME);\n \n System.out.println(\"\\nHierarchy for contexts (note: paraphyletic groups do not have their own contexts):\");\n printContextTree(contextHierarchyRoot, \"\");\n System.out.println(\"\");\n \n // make the contexts!\n makeContextsRecursive(contextHierarchyRoot);\n \n }",
"@Bean\n @ConditionalOnBean(Sender.class)\n AsyncReporter<Span> spanReporter(Sender sender) {\n AsyncReporter.Builder builder = AsyncReporter.builder(sender);\n builder.queuedMaxSpans(50000);\n builder.queuedMaxBytes(104857600);\n return builder.build();\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setContainingParentLevel(java.lang.String value) {\n validate(fields()[3], value);\n this.containingParentLevel = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"protected void initScopeInfo()\n {\n String className = null;\n Object target = getTarget();\n if (target != null)\n className = target.getClass().getName();\n setScopeInfo(new AbstractScopeInfo(getName(), className));\n }",
"public void updateMakespan() {\r\n updateMakeSpan2();\r\n }",
"public static SimpleNamingContextBuilder getCurrentContextBuilder() {\n\t\treturn activated;\n\t}",
"@NonNull\n public SpanModifiers build() {\n return new SpanModifiers(mImpl.build(), mFingerprint);\n }",
"public com.vodafone.global.er.decoupling.binding.request.ModifyChildSpIdType createModifyChildSpIdType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifyChildSpIdTypeImpl();\n }",
"private SCTeamLeave(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"Builder addEducationalAlignment(AlignmentObject.Builder value);",
"@VisibleForTesting\n public static TagContext createTagContext(TagContextBuilder tagsBuilder, int numTags) {\n for (int i = 0; i < numTags; i++) {\n tagsBuilder.put(TAG_KEYS.get(i), TAG_VALUES.get(i), UNLIMITED_PROPAGATION);\n }\n return tagsBuilder.build();\n }",
"static Reporter<zipkin2.Span> toReporter(Map<String, List<zipkin2.Span>> spans) {\n return s -> spans.computeIfAbsent(s.traceId(), k -> new ArrayList<>()).add(s);\n }",
"com.google.protobuf.ByteString getContext();",
"private static Tracer initTracer(final String service) {\n\n // The sampler always makes the same decision for all traces. It samples all traces. If the parameter were\n // zero, it would sample no traces.\n final SamplerConfiguration samplerConfiguration = SamplerConfiguration.fromEnv().withType(\"const\")\n .withParam(new Integer(1));\n // The reporter configuration species what is reported. In this case,\n final ReporterConfiguration reporterConfiguration = ReporterConfiguration.fromEnv().withLogSpans(Boolean.TRUE);\n\n // The configuration encapsulates the configuration for sampling and reporting.\n final Configuration configuration = new Configuration(service).withSampler(samplerConfiguration)\n .withReporter(reporterConfiguration);\n\n // Create the tracer from the configuration.\n return configuration.getTracer();\n }",
"public static TraceContextProto parseTraceContextHeader(String traceContextHeader) {\n\n TraceContextProto.Builder protoBuilder = TraceContextProto.newBuilder();\n\n // Trace ID is up to the first slash, semicolon, or end of string, whatever comes first\n int slashStart = traceContextHeader.indexOf('/');\n int semiStart = traceContextHeader.indexOf(';');\n int traceEnd =\n slashStart >= 0\n ? slashStart\n : semiStart >= 0\n ? semiStart\n : traceContextHeader.length();\n String traceId = traceContextHeader.substring(0, traceEnd);\n\n protoBuilder.setTraceId(parseTraceId(traceId).toByteString());\n\n // Options is the last ';o=[0|1]' entry in the string; could be empty (\";o=\") as well\n int optionsStart = traceContextHeader.lastIndexOf(OPTIONS_SEPARATOR_AND_VARIABLE);\n if (optionsStart > 0) {\n optionsStart = optionsStart + OPTIONS_SEPARATOR_AND_VARIABLE.length();\n if (optionsStart < traceContextHeader.length()) {\n String options = traceContextHeader.substring(optionsStart);\n protoBuilder.setTraceMask(Integer.parseUnsignedInt(options));\n }\n }\n\n // Span ID starts after the first '/' up to ';' or the end; can be empty as well\n if (slashStart > 0) {\n int spanIdEnd = semiStart > slashStart ? semiStart : traceContextHeader.length();\n if (slashStart + 1 < spanIdEnd) {\n String spanId =\n traceContextHeader.substring(slashStart + 1, spanIdEnd);\n protoBuilder.setSpanId(Long.parseUnsignedLong(spanId));\n }\n }\n\n return protoBuilder.build();\n }",
"public com.vodafone.global.er.decoupling.binding.request.GetParentTransactionRequestType createGetParentTransactionRequestType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetParentTransactionRequestTypeImpl();\n }",
"private void addContext(StringBuilder xml) {\n\t\t\n\t\tif(context != null) {\n\t\t\tstartElementWithAttributes(xml, \"Context\");\n\t\t\taddStringAttribute(xml, \"id\", context.getId());\n\t\t\taddStringAttribute(xml, \"Type\", context.getType());\n\t\t\taddStringAttribute(xml, \"contextObject\", context.getContext());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t\t\n\t}",
"BuilderContext clone(final FeatureProvider featureProvider) {\n final BuilderContext ctx = new BuilderContext(featureProvider, this.variables, this.properties);\n ctx.featureExtensionHandlers.addAll(featureExtensionHandlers);\n return ctx;\n }",
"private static Tracer initTracer(final String service) {\n\n // The sampler always makes the same decision for all traces. It samples all traces. If the parameter were\n // zero, it would sample no traces.\n final SamplerConfiguration samplerConfiguration = SamplerConfiguration.fromEnv().withType(ConstSampler.TYPE)\n .withParam(new Integer(1));\n // The reporter configuration species what is reported. In this case,\n final ReporterConfiguration reporterConfiguration = ReporterConfiguration.fromEnv().withLogSpans(Boolean.TRUE);\n\n // The configuration encapsulates the configuration for sampling and reporting.\n final Configuration configuration = new Configuration(service).withSampler(samplerConfiguration)\n .withReporter(reporterConfiguration);\n\n // Create the tracer from the configuration.\n return configuration.getTracer();\n }",
"@Override\n public <C> SpanContext extract(Format<C> format, C carrier) {\n if (format != Format.Builtin.HTTP_HEADERS && format != Format.Builtin.TEXT_MAP) {\n throw new UnsupportedOperationException(format.toString()\n + \" != Format.Builtin.HTTP_HEADERS or Format.Builtin.TEXT_MAP\");\n }\n TraceContextOrSamplingFlags result =\n EXTRACTOR.extract(new TextMapView(FIELDS_LOWER_CASE, (TextMap) carrier));\n TraceContext context = result.context() != null\n ? result.context().toBuilder().shared(true).build()\n : brave4.newTrace(result.samplingFlags()).context();\n return BraveSpanContext.wrap(context);\n }",
"IClassBuilder getParent();",
"java.lang.String getContext();",
"public Builder clearTraceTag() {\n bitField0_ = (bitField0_ & ~0x00004000);\n traceTag_ = 0L;\n onChanged();\n return this;\n }",
"private InsightReference(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public com.vodafone.global.er.decoupling.binding.request.ParentTransactionType.TransactionsType createParentTransactionTypeTransactionsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ParentTransactionTypeImpl.TransactionsTypeImpl();\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setContainingParentType(java.lang.String value) {\n validate(fields()[2], value);\n this.containingParentType = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"@Bean\n\tCallable<Span> takeSpan() {\n\t\treturn () -> {\n\t\t\tSpan result = this.spans.poll(3, TimeUnit.SECONDS);\n\t\t\tassertThat(result).withFailMessage(\"Span was not reported\").isNotNull();\n\t\t\tassertThat(result.annotations()).extracting(Annotation::value)\n\t\t\t\t\t.doesNotContain(CONTEXT_LEAK);\n\t\t\treturn result;\n\t\t};\n\t}",
"public interface TraceInfo {\n TraceMode traceMode();\n\n String userName();\n\n String dbInstance();\n\n default <R> R trace(String operationName, String sql, TraceableSQL<R> code) throws SQLException {\n if (traceMode() == TraceMode.OFF) {\n return code.execute();\n }\n Tracer tracer = GlobalTracer.get();\n // skip if there is no active parent\n if (traceMode() == TraceMode.ACTIVE && tracer.activeSpan() == null) {\n return code.execute();\n }\n\n Tracer.SpanBuilder builder = tracer.buildSpan(operationName)\n .withTag(Tags.DB_TYPE.getKey(), \"sql\")\n .withTag(Tags.DB_USER.getKey(), userName());\n\n if (sql != null) {\n builder.withTag(Tags.DB_STATEMENT.getKey(), sql);\n }\n if (dbInstance() != null ) {\n builder.withTag(Tags.DB_INSTANCE.getKey(), dbInstance());\n }\n\n try (Scope scope = builder.startActive(true)) {\n return code.execute();\n }\n }\n\n}",
"@Trace(excludeFromTransactionTrace = true, leaf = true)\n private void tracedActivityFromFlyweight() {\n TracedActivity tracedActivity = AgentBridge.getAgent().getTransaction().createAndStartTracedActivity();\n Assert.assertTrue(tracedActivity instanceof NoOpSegment);\n }",
"@Override\n protected void readAttributes(XMLStreamReader in)\n throws XMLStreamException {\n super.readAttributes(in);\n\n String extendString = in.getAttributeValue(null, \"extends\");\n BuildingType parent = (extendString == null) ? this :\n getSpecification().getBuildingType(extendString);\n String upgradeString = in.getAttributeValue(null, \"upgradesFrom\");\n if (upgradeString == null) {\n level = 1;\n } else {\n upgradesFrom = getSpecification().getBuildingType(upgradeString);\n upgradesFrom.upgradesTo = this;\n level = upgradesFrom.level + 1;\n }\n setPopulationRequired(getAttribute(in, \"required-population\", parent.getPopulationRequired()));\n\n workPlaces = getAttribute(in, \"workplaces\", parent.workPlaces);\n basicProduction = getAttribute(in, \"basicProduction\", parent.basicProduction);\n\n consumes = getSpecification().getType(in, \"consumes\", GoodsType.class, parent.consumes);\n produces = getSpecification().getType(in, \"produces\", GoodsType.class, parent.produces);\n\n if (produces != null && basicProduction > 0) {\n productionModifier = new Modifier(produces.getId(), this, basicProduction,\n Modifier.Type.ADDITIVE);\n }\n\n minSkill = getAttribute(in, \"minSkill\", parent.minSkill);\n maxSkill = getAttribute(in, \"maxSkill\", parent.maxSkill);\n\n priority = getAttribute(in, \"priority\", parent.priority);\n upkeep = getAttribute(in, \"upkeep\", parent.upkeep);\n\n if (parent != this) {\n getFeatureContainer().add(parent.getFeatureContainer());\n if (parent.isAbstractType()) {\n getFeatureContainer().replaceSource(parent, this);\n }\n }\n }",
"Scope(String name, Scope parent) {\n this.name = name;\n this.parent = parent;\n this.variables = new HashMap<>();\n }",
"private ActivationContext makeActivationContext(final Node node, final Class<?> javaType,\n final int contextLevel) {\n return new ActivationContext(\n constructTrace(node, contextLevel).toArray(),\n javaType.getName());\n }",
"public static TextSpan getUnderlineSpan(CompilationInfo info, Tree tree) {\n SourcePositions srcPos = info.getTrees().getSourcePositions();\n\n int startOffset = (int) srcPos.getStartPosition(info.getCompilationUnit(), tree);\n int endOffset = (int) srcPos.getEndPosition(info.getCompilationUnit(), tree);\n\n Tree startSearchingForNameIndentifierBehindThisTree = null;\n\n if (TreeUtilities.CLASS_TREE_KINDS.contains(tree.getKind())) {\n startSearchingForNameIndentifierBehindThisTree = ((ClassTree) tree).getModifiers();\n\n } else if (tree.getKind() == Tree.Kind.METHOD) {\n startSearchingForNameIndentifierBehindThisTree = ((MethodTree) tree).getReturnType();\n } else if (tree.getKind() == Tree.Kind.VARIABLE) {\n startSearchingForNameIndentifierBehindThisTree = ((VariableTree) tree).getType();\n }\n\n if (startSearchingForNameIndentifierBehindThisTree != null) {\n int searchStart = (int) srcPos.getEndPosition(info.getCompilationUnit(),\n startSearchingForNameIndentifierBehindThisTree);\n\n TokenSequence tokenSequence = info.getTreeUtilities().tokensFor(tree);\n\n if (tokenSequence != null) {\n boolean eob = false;\n tokenSequence.move(searchStart);\n\n do {\n eob = !tokenSequence.moveNext();\n } while (!eob && tokenSequence.token().id() != JavaTokenId.IDENTIFIER);\n\n if (!eob) {\n Token identifier = tokenSequence.token();\n startOffset = identifier.offset(info.getTokenHierarchy());\n endOffset = startOffset + identifier.length();\n }\n }\n }\n\n return new TextSpan(startOffset, endOffset);\n }",
"private ParsedAnnotationTag addChild(final ParsedAnnotationTag parent,\n\t\t\tNode childNode) {\n\t\tlogger.log(Level.FINER, \"Entering addChild in EbayAnnotationParser\",new Object[]{parent,childNode});\n\t\tParsedAnnotationTag retData = createAnnotationData(childNode);\n\t\tparent.addChild(retData);\n\t\tlogger.log(Level.FINER, \"Exiting addChild in EbayAnnotationParser\",retData);\n\t\treturn retData;\n\t}",
"Astro leafData(Object data, SourceSpan optSpan);",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public alluxio.proto.journal.Lineage.LineageEntry.Builder getLineageBuilder() {\n bitField0_ |= 0x00040000;\n onChanged();\n return getLineageFieldBuilder().getBuilder();\n }",
"private void fixInnerParent(BaleElement be)\n{\n BaleAstNode sn = getAstChild(be);\n while (cur_parent != cur_line && sn == null) {\n cur_parent = cur_parent.getBaleParent();\n cur_ast = cur_parent.getAstNode();\n sn = getAstChild(be);\n }\n\n // now see if there are any internal elements that should be used\n while (sn != null && sn != cur_ast && sn.getLineLength() == 0) {\n BaleElement.Branch nbe = createInnerBranch(sn);\n if (nbe == null) break;\n addElementNode(nbe,0);\n nbe.setAstNode(sn);\n cur_parent = nbe;\n cur_ast = sn;\n sn = getAstChild(be);\n }\n}",
"public Builder(LocalizationContext baseContext){\n importContext(baseContext);\n this.id = baseContext.getId();\n this.targetType = baseContext.getTargetType();\n }",
"@Test public void skipsRedundantIndexingInATrace() throws IOException {\n Span[] trace = new Span[101];\n trace[0] = TestObjects.CLIENT_SPAN;\n long rootTimestamp = trace[0].timestampAsLong();\n\n for (int i = 0; i < 100; i++) {\n trace[i + 1] =\n Span.newBuilder()\n .traceId(trace[0].traceId())\n .parentId(trace[0].id())\n .id(i + 1)\n .name(String.valueOf(i + 1))\n .timestamp(rootTimestamp + i * 1000L) // child span timestamps happen 1 ms later\n .addAnnotation(trace[0].annotations().get(0).timestamp() + i * 1000, \"bar\")\n .build();\n }\n\n accept(storage.spanConsumer(), trace);\n assertThat(rowCount(Tables.ANNOTATIONS_INDEX)).isEqualTo(5L);\n assertThat(rowCount(Tables.SERVICE_REMOTE_SERVICE_NAME_INDEX)).isEqualTo(1L);\n assertThat(rowCount(Tables.SERVICE_NAME_INDEX)).isEqualTo(1L);\n assertThat(rowCount(Tables.SERVICE_SPAN_NAME_INDEX)).isEqualTo(1L);\n\n // redundant store doesn't change the indexes\n accept(storage.spanConsumer(), trace);\n assertThat(rowCount(Tables.ANNOTATIONS_INDEX)).isEqualTo(5L);\n assertThat(rowCount(Tables.SERVICE_REMOTE_SERVICE_NAME_INDEX)).isEqualTo(1L);\n assertThat(rowCount(Tables.SERVICE_NAME_INDEX)).isEqualTo(1L);\n assertThat(rowCount(Tables.SERVICE_SPAN_NAME_INDEX)).isEqualTo(1L);\n }",
"public com.vodafone.global.er.decoupling.binding.request.ModifyChildSpId createModifyChildSpId()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifyChildSpIdImpl();\n }",
"public BaseScope(Scope enclosingScope) {\n\t\tsetEnclosingScope(enclosingScope);\n\t}",
"public static TracingHelper create(Function<ContainerRequestContext, String> nameFunction) {\n return new TracingHelper(nameFunction);\n }"
]
| [
"0.65751785",
"0.5667029",
"0.5300542",
"0.5283516",
"0.51287174",
"0.5029638",
"0.4999004",
"0.49585292",
"0.49000823",
"0.48379537",
"0.48147282",
"0.47915888",
"0.47908673",
"0.4707571",
"0.457881",
"0.4551106",
"0.45383543",
"0.4522262",
"0.45149758",
"0.45110032",
"0.4500662",
"0.4451604",
"0.4445667",
"0.4423219",
"0.44168666",
"0.43764356",
"0.43741792",
"0.43717694",
"0.43671548",
"0.43647298",
"0.43632334",
"0.43561783",
"0.4294252",
"0.42764267",
"0.42650813",
"0.42479587",
"0.42477095",
"0.4216837",
"0.42155695",
"0.4195617",
"0.4181453",
"0.4173636",
"0.41617393",
"0.41608402",
"0.41549775",
"0.41483164",
"0.41398993",
"0.41336298",
"0.41141853",
"0.4106148",
"0.4096085",
"0.40909424",
"0.40808475",
"0.4076804",
"0.4076164",
"0.4064274",
"0.40569302",
"0.4052148",
"0.40516913",
"0.40488157",
"0.4031146",
"0.40157267",
"0.40151075",
"0.40135446",
"0.4005284",
"0.40000683",
"0.39986676",
"0.39886302",
"0.39841312",
"0.39805877",
"0.3975197",
"0.3974628",
"0.39676666",
"0.3965288",
"0.39625642",
"0.39624473",
"0.3958472",
"0.3956408",
"0.39534852",
"0.39527",
"0.3937506",
"0.39349008",
"0.39299288",
"0.3912212",
"0.391145",
"0.39089194",
"0.39074868",
"0.39074507",
"0.39041272",
"0.39032608",
"0.39008322",
"0.3898656",
"0.38984138",
"0.38964787",
"0.38963073",
"0.38890627",
"0.3887133",
"0.388046",
"0.38803953",
"0.38797376"
]
| 0.78081775 | 0 |
Returns the LabelingPlus for the requested frame. | public LabelingPlus getLabelingPlusForFrame( final int frameId ) {
if ( frameId < frameLabelingBuilders.size() )
return frameLabelingBuilders.get( frameId );
else
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"String getLabel();",
"String getLabel();",
"public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}",
"java.lang.String getLabel();",
"public java.lang.String getLabel();",
"public String getLabel()\n { \n return label;\n }",
"public String getLabel(){\n return label;\n }",
"public String getLabel()\n {\n return label;\n }",
"String getLabel() {\n return label;\n }",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel() {\n return label;\n }",
"public Object getLabel() \n {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel(){\n\t\treturn label;\n\t}",
"public String getLabel() {\r\n return lbl;\r\n }",
"public String getLabel() {\n\t\treturn myLabel;\n\t}",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public Label getLabel() {\n return this.label;\n }",
"public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}",
"public String getLabel()\n {\n return m_label;\n }",
"public String getNextLabel () {\n return nextLabel;\n }",
"public String getLabel()\n\t{\n\t\treturn label;\n\t}",
"private String getLabel() {\n return this.label;\n }",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String toString() {\n return label;\n }",
"public Label getLabel() {\n\t\treturn this.label;\n\t}",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n\t\treturn label;\n\t}",
"public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}",
"com.google.ads.googleads.v6.resources.Label getLabel();",
"public final Label getLabel() {\n return label;\n }",
"DatasetLabel getLabel();",
"public org.drip.state.identifier.FundingLabel fundingLabel()\n\t{\n\t\treturn _lslFunding;\n\t}",
"public String toString()\n {\n return label;\n }",
"public org.drip.state.identifier.FundingLabel fundingLabel()\n\t{\n\t\treturn _lsPeriod.get (0).fundingLabel();\n\t}",
"public JLabel getLabel() {\n return label;\n }",
"public String getLabel() {\n\t\treturn this._label;\n\t}",
"public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}",
"public double getLabel() {\n\t\treturn label;\n\t}",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"public JLabel getLabel() {\n return this.label;\n }",
"public final String getLabel() {\n\t\treturn _label;\n\t}",
"public String label() {\n return this.label;\n }",
"double getLabel();",
"default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }",
"@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}",
"public T2 getLabel() {\r\n\t\treturn label;\r\n\t}",
"public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}",
"private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }",
"public String getLabel() {\n return _label == null ? name() : _label;\n }",
"@Override\n public String getLabel() {\n return label;\n }",
"public int getLabel() {\n\t\treturn label;\n\t}",
"com.microsoft.schemas.xrm._2011.contracts.Label getLabel();",
"public String getLabelText();",
"public String getCurrentSampleLabelKey();",
"public org.drip.state.identifier.ForwardLabel forwardLabel()\n\t{\n\t\treturn _lslForward;\n\t}",
"public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }",
"public String getLabel() {\r\n return layout.label;\r\n }",
"public org.drip.state.identifier.ForwardLabel forwardLabel()\n\t{\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\treturn null != floaterLabel && floaterLabel instanceof org.drip.state.identifier.ForwardLabel ?\n\t\t\t(org.drip.state.identifier.ForwardLabel) floaterLabel : null;\n\t}",
"private String getLabelNodeAvl(){\n return concatLabel(this.root);\n }",
"public abstract String getLabel();",
"private JLabel getLabelIntro() {\r\n\t\tif (labelIntro == null) {\r\n\t\t\tlabelIntro = new JLabel();\r\n\t\t\tlabelIntro.setFont(new Font(\"Verdana\",Font.BOLD,40));\r\n\t\t\tlabelIntro.setForeground(Color.WHITE);\r\n\t\t\tlabelIntro.setText(\"Musical Memory\");\r\n\t\t\tlabelIntro.setBounds(new Rectangle(140, 50, 497, 219));\r\n\t\t}\r\n\t\treturn labelIntro;\r\n\t}",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }",
"public Label\ngetStartLabel();",
"private javax.swing.JLabel getLblUsage() {\n\tif (ivjLblUsage == null) {\n\t\ttry {\n\t\t\tivjLblUsage = new javax.swing.JLabel();\n\t\t\tivjLblUsage.setName(\"LblUsage\");\n\t\t\tivjLblUsage.setText(\"Abhaengig von:\");\n\t\t\t// user code begin {1}\n\t\t\tivjLblUsage.setText(getResourceString(\"LblUsage_text\"));\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblUsage;\n}",
"public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }",
"String addLabel(String label);",
"static String newLabel() {\n return \"_\" + (nextLabel++);\n }",
"public Label newLabel(Label oldLabel) {\r\n NegraLabel result;\r\n if(oldLabel instanceof NegraLabel) {\r\n NegraLabel l = (NegraLabel) oldLabel;\r\n result = new NegraLabel(l.value(), l.getEdge(), new HashMap<String,String>());\r\n for (Map.Entry<String,String> e : l.features.entrySet()) {\r\n result.features.put(e.getKey(), e.getValue());\r\n }\r\n } else {\r\n result = new NegraLabel(oldLabel.value());\r\n }\r\n return result;\r\n }",
"com.google.ads.googleads.v6.resources.AdGroupLabel getAdGroupLabel();",
"public LabelModel getLabel(String aName);",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \": \\\"\" + getLabel() + \"\\\"\";\n\t}",
"public String getLabelName() {\n return m_labelName;\n }",
"public final String aoy() {\n return this.label;\n }",
"public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }"
]
| [
"0.6045367",
"0.6045367",
"0.6045367",
"0.596158",
"0.596158",
"0.5959304",
"0.592539",
"0.5914561",
"0.59035176",
"0.5890378",
"0.58695555",
"0.5867572",
"0.5859126",
"0.5825947",
"0.5821905",
"0.5821905",
"0.5819187",
"0.5819187",
"0.5819187",
"0.5819187",
"0.5810269",
"0.58095276",
"0.5807764",
"0.58027625",
"0.58027625",
"0.58027625",
"0.5789148",
"0.5789148",
"0.5780911",
"0.5780911",
"0.5780911",
"0.5779533",
"0.5778902",
"0.57507074",
"0.57485765",
"0.5735416",
"0.5735416",
"0.5735416",
"0.5735416",
"0.5727615",
"0.57211894",
"0.5719622",
"0.57158667",
"0.5714643",
"0.5706193",
"0.5685432",
"0.5685432",
"0.5685432",
"0.5685432",
"0.5681335",
"0.56812024",
"0.5679318",
"0.56721026",
"0.5666309",
"0.56502295",
"0.56453824",
"0.5642021",
"0.56204724",
"0.56083274",
"0.55954415",
"0.55904335",
"0.5588941",
"0.55876094",
"0.5580833",
"0.5555414",
"0.5531036",
"0.55300176",
"0.5518831",
"0.5510616",
"0.5509622",
"0.54989296",
"0.5496474",
"0.5460126",
"0.5442592",
"0.5431223",
"0.5428561",
"0.54233783",
"0.5422749",
"0.541868",
"0.541656",
"0.5415909",
"0.5398477",
"0.53962046",
"0.5381537",
"0.53760594",
"0.53655875",
"0.53559136",
"0.5348734",
"0.53227633",
"0.53170073",
"0.53163207",
"0.53147674",
"0.53121006",
"0.5312071",
"0.5307121",
"0.5301677",
"0.52957094",
"0.5294578",
"0.52883613",
"0.52838045"
]
| 0.7759935 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
tblDocumento = new javax.swing.JTable();
btnModificar = new javax.swing.JButton();
setClosable(true);
setIconifiable(true);
setMaximizable(true);
setResizable(true);
setTitle("Lista de Documentos");
tblDocumento.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{},
{},
{},
{}
},
new String [] {
}
));
jScrollPane1.setViewportView(tblDocumento);
btnModificar.setText("Modificar");
btnModificar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnModificarActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(45, 45, 45)
.addComponent(btnModificar)))
.addContainerGap(35, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(92, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btnModificar)
.addGap(24, 24, 24))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
]
| 0.0 | -1 |
Creates a new zip entry with the specified name. Assumes the entry represents a directory if and only if the name ends with a forward slash "/". | public ZipArchiveEntry(final String name) {
super(name);
setName(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TarEntry CreateEntry(String name);",
"public final TarEntry CreateEntry(String name)\n\t\t{\n\t\t\treturn TarEntry.CreateTarEntry(name);\n\t\t}",
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}",
"public ZipArchiveEntry(final File inputFile, final String entryName) {\n this(inputFile.isDirectory() && !entryName.endsWith(\"/\") ? entryName + \"/\" : entryName);\n if (inputFile.isFile()) {\n setSize(inputFile.length());\n }\n setTime(inputFile.lastModified());\n }",
"public TarArchiveEntry(String name) {\n this(name, false);\n }",
"private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }",
"public TarArchiveEntry setName(String name) {\n this.name = ArchiveUtils.normalizeFileName(name, false);\n this.isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n return this;\n }",
"private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }",
"TarEntry CreateEntryFromFile(String fileName);",
"public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }",
"private void createJarFile(File target, Map<String, String> jarEntries) throws IOException\n {\n if (!target.exists())\n {\n target.createNewFile();\n }\n\n // Create the ZIP file\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target)))\n {\n for (String entryName : jarEntries.keySet())\n {\n // Add ZIP entry to output stream at the given location.\n out.putNextEntry(new ZipEntry(entryName));\n // Write the file contents to this entry and close\n out.write(jarEntries.get(entryName).getBytes(Charset.defaultCharset()));\n out.closeEntry();\n }\n }\n }",
"private static String createZipFile(String directory, String zipFilename, List<File> filesToAdd)\n throws IOException {\n String zipFilePath = String.format(\"%s/%s\", directory, zipFilename);\n File zipFile = new File(zipFilePath);\n if (zipFile.exists()) {\n if (zipFile.delete()) {\n log.info(\"Zipfile existed and was deleted: \" + zipFilePath);\n } else {\n log.warn(\"Zipfile exists but was not deleted: \" + zipFilePath);\n }\n }\n\n // Create and add files to zip file\n addFilesToZip(zipFile, filesToAdd);\n\n return zipFilePath;\n }",
"public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\ttargetName = prepareLocation (targetName);\n\t\t\n\t\tif (targetName.equals (MANIFEST_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + MANIFEST_LOCATION);\n\t\t\n\t\tif (targetName.equals (METADATA_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + METADATA_LOCATION);\n\t\t\n\t\t// we also do not allow files with names like metadata-[0-9]*.rdf\n\t\tif (targetName.matches (\"^/metadata-[0-9]*\\\\.rdf$\"))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file like metadata-[0-9]*.rdf\");\n\t\t\n\t\t// insert to zip\n\t\tPath insertPath = zipfs.getPath (targetName).normalize ();\n\t\tFiles.createDirectories (insertPath.getParent ());\n\t\tFiles.copy (toInsert.toPath (), insertPath, Utils.COPY_OPTION);\n\t\t\n\t\tArchiveEntry entry = new ArchiveEntry (this, insertPath, format);\n\t\tentries.put (entry.getFilePath (), entry);\n\t\t\n\t\tif (mainEntry)\n\t\t{\n\t\t\tLOGGER.debug (\"setting main entry:\");\n\t\t\taddMainEntry (entry);\n\t\t}\n\t\t\n\t\treturn entry;\n\t}",
"protected void createFile (ZipFile file, ZipEntry entry, File target)\n {\n if (_buffer == null) {\n _buffer = new byte[COPY_BUFFER_SIZE];\n }\n\n // make sure the file's parent directory exists\n File pdir = target.getParentFile();\n if (!pdir.exists() && !pdir.mkdirs()) {\n log.warning(\"Failed to create parent for '\" + target + \"'.\");\n }\n\n try (InputStream in = file.getInputStream(entry);\n FileOutputStream fout = new FileOutputStream(target)) {\n\n int total = 0, read;\n while ((read = in.read(_buffer)) != -1) {\n total += read;\n fout.write(_buffer, 0, read);\n updateProgress(total);\n }\n\n } catch (IOException ioe) {\n log.warning(\"Error creating '\" + target + \"': \" + ioe);\n }\n }",
"public NestedZipFile(String name) throws IOException {\n this(new File(name));\n }",
"private String generateZipEntry(String file) {\n return file.substring(srcFolder.length() + 1, file.length());\n }",
"private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\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}\r\n\t}",
"private static JarFile createTempJar(File temp, JarFile parentJar, ZipEntry entry) throws IOException\n {\n InputStream inputStream = parentJar.getInputStream(entry);\n try\n {\n FileOutputStream outputStream = new FileOutputStream(temp);\n try\n {\n byte[] buffer = new byte[8096];\n int read = inputStream.read(buffer);\n while (read != -1)\n {\n outputStream.write(buffer, 0, read);\n read = inputStream.read(buffer);\n }\n }\n finally\n {\n outputStream.close();\n }\n }\n finally\n {\n try\n {\n inputStream.close();\n }\n catch (IOException ignored)\n {\n }\n }\n \n return new JarFile(temp);\n }",
"private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }",
"protected void attachFile(final File source, final String name) {\n try {\n final ZipEntry ze = new ZipEntry(name);\n _zip.putNextEntry(ze);\n final byte[] buffer = new byte[4096];\n try (FileInputStream in = new FileInputStream(source)) {\n int bytes;\n while ((bytes = in.read(buffer)) > 0) {\n _zip.write(buffer, 0, bytes);\n }\n }\n _zip.closeEntry();\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't write \" + name + \" to ZIP file\", e);\n }\n }",
"public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}",
"public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}",
"protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n warnedMkDir = true;\n zipName = zipName.substring(1);\n }\n // if a directory, just return. We mkdir for every file,\n // since some widely-used Zip creators don't put out\n // any directory entries, or put them in the wrong place.\n if (zipName.endsWith(\"/\")) {\n return;\n }\n // Else must be a file; open the file for output\n // Get the directory part.\n int ix = zipName.lastIndexOf('/');\n if (ix > 0) {\n //String dirName = zipName.substring(0, ix);\n String fileName = zipName.substring(ix + 1, zipName.length());\n zipName = fileName;\n\n }\n String targetFile = this.unzipFileTargetLocation;\n File file = new File(targetFile);\n if (!file.exists())\n file.createNewFile();\n FileOutputStream os = null;\n InputStream is = null;\n try {\n os = new FileOutputStream(targetFile);\n is = zippy.getInputStream(e);\n int n = 0;\n while ((n = is.read(b)) > 0)\n os.write(b, 0, n);\n\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }\n break;\n case LIST:\n // Not extracting, just list\n if (e.isDirectory()) {\n System.out.println(\"Directory \" + zipName);\n } else {\n System.out.println(\"File \" + zipName);\n }\n break;\n default:\n throw new IllegalStateException(\"mode value (\" + mode + \") bad\");\n }\n }",
"public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {\n super(entry);\n setName(entry.getName());\n final byte[] extra = entry.getExtra();\n if (extra != null) {\n setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));\n } else {\n setExtra();\n }\n setMethod(entry.getMethod());\n this.size = entry.getSize();\n }",
"protected File createZipArchive(File directoryToZip, String modpackName, String workspace) throws Exception {\n zipName = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\")) + \"--\" + modpackName + \".zip\";\n uploadStatus = \"Creating Zipfile from Directory\";\n File zipFile = new File(workspace + \"\\\\\" + zipName);\n try {\n ProgressBarLogic progressBarLogic = new ProgressBarLogic(directoryToZip);\n ZipUtil.pack(directoryToZip, zipFile, name -> {\n uploadStatus = \"Adding file: \" + name + \" to the zip\";\n progressBarLogic.progressPercentage = 0;\n progressBarLogic.progress.add(name);\n progressBarLogic.calculateProgress(progressBarLogic.progress);\n notifyObserver();\n return name;\n });\n } catch (ZipException e) {\n throw e;\n } catch (Exception e) {\n System.out.println(e);\n }\n return zipFile;\n }",
"FileInfo create(FileInfo fileInfo);",
"protected void setName(String name) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b\");\n if (name != null && getPlatform() == PLATFORM_FAT && !name.contains(\"/\")) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6d8baf11-928b-4d13-a982-c28e6d5c3bb7\");\n name = name.replace('\\\\', '/');\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e80bbe2d-caf4-4e25-b64c-8fef2f2969dd\");\n this.name = name;\n }",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }",
"public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}",
"public ZipURLConnection(URL url, File file, String zipEntryName) {\r\n super(url);\r\n\r\n this.file = file;\r\n this.zipEntryName = zipEntryName;\r\n }",
"public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }",
"public Entry(String n)\n {\n name = n;\n }",
"private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format)\n\t\tthrows IOException\n\t{\n\t\treturn addEntry (toInsert, targetName, format, false);\n\t}",
"public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }",
"public void mkdir(String name) throws FileExistsException\n\t{\n\t\tcheckMakeFile(name);\n\t\tFileElement add = new FileElement(name, true);\n\t\tfileSystem.addChild(currentFileElement, add);\n\t}",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public void setupZipFile(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\tif (!args[0].endsWith(\".zip\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"zip file expected, but: \" + args[0]);\n\t\t\t}\n\t\t\tbuildDirectory = new File(\n\t\t\t\t\tgetBuildDirectory(),\n\t\t\t\t\tString.valueOf(System.currentTimeMillis()));\n\t\t\ttool_builddir = buildDirectory.toString();\n\t\t\tif (!buildDirectory.mkdirs()) {\n\t\t\t\tLoggedUtils.ignore(\"Unable to create directory \" + tool_builddir, null);\n\t\t\t}\n\t\t\tzipFile = args[0];\n\t\t} else if (requireZipArgument){\n\t\t\tthrow new IllegalArgumentException(\"zip file is expected as a first argument\");\n\t\t}\n\t}",
"public NestedZipFile(String name, Charset charset) throws IOException {\n this(new File(name), charset);\n }",
"public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}",
"public static boolean generateZipFile(ArrayList<String> sourcesFilenames, String destinationDir, String zipFilename){\n byte[] buf = new byte[1024]; \r\n\r\n try \r\n {\r\n // VER SI HAY QUE CREAR EL ROOT PATH\r\n boolean result = (new File(destinationDir)).mkdirs();\r\n\r\n String zipFullFilename = destinationDir + \"/\" + zipFilename;\r\n\r\n System.out.println(result);\r\n\r\n // Create the ZIP file \r\n ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFullFilename)); \r\n \r\n // Compress the files \r\n for (String filename: sourcesFilenames) { \r\n FileInputStream in = new FileInputStream(filename); \r\n // Add ZIP entry to output stream. \r\n File file = new File(filename); //\"Users/you/image.jpg\"\r\n out.putNextEntry(new ZipEntry(file.getName())); //\"image.jpg\" \r\n // Transfer bytes from the file to the ZIP file \r\n int len; \r\n while ((len = in.read(buf)) > 0) { \r\n out.write(buf, 0, len); \r\n } \r\n // Complete the entry \r\n out.closeEntry(); \r\n in.close(); \r\n } // Complete the ZIP file \r\n out.close();\r\n\r\n return true;\r\n } \r\n catch (Exception e) \r\n { \r\n System.out.println(e);\r\n return false;\r\n } \r\n }",
"public boolean accept(ZipEntry entry)\n {\n // the entry name must start with the directory name, and it must\n // not be a directory\n String sName = entry.getName();\n if (sName.length() > m_sDir.length() && sName.startsWith(m_sDir)\n && sName.charAt(sName.length() - 1) != '/')\n {\n // if searching recursively, the entry can be several levels\n // under the directory, otherwise it must be in that directory\n return m_fRecurse || sName.indexOf('/', m_sDir.length()) < 0;\n }\n\n return false;\n }",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"public ArchiveEntry addEntry (File baseDir, File file, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, mainEntry);\n\t}",
"private String writeZipFile(File directoryToZip, List<File> fileList, String zipName) throws IOException{\r\n // If the zip name is null then provide the name of the directory\r\n if(zipName == null){\r\n zipName = directoryToZip.getName();\r\n }\r\n // Store the file name\r\n String fileName = zipName;\r\n // Create the zip file\r\n FileOutputStream fos = new FileOutputStream(fileName);\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n for (File file : fileList) {\r\n if (!file.isDirectory()) { // we only zip files, not directories\r\n // Add files that are not in the skip list\r\n if(!isFileToSkip(file.getName())) {\r\n addToZip(directoryToZip, file, zos);\r\n }\r\n }\r\n }\r\n zos.close();\r\n fos.close();\r\n // Return the full name of the file\r\n return fileName;\r\n }",
"TarEntry CreateEntry(byte[] headerBuffer);",
"void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addDirectoryToZip(file, _out);\n } else {\n assert false;\n }\n }",
"public static void addToZip(String path, ZipOutputStream myZip, File f) throws FileNotFoundException, IOException{\n\t\tif(f.isDirectory()){\n\t\t\tfor(File subF : f.listFiles()){\n\t\t\t\taddToZip(path + File.separator + f.getName() , myZip, subF);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tZipEntry e = new ZipEntry(path + File.separator + f.getName());\n\t\t\tmyZip.putNextEntry(e);\n\t\t\ttry (InputStream is = new FileInputStream(f.getAbsolutePath())) {\n\t\t\t\tIOUtils.copyLarge(is, myZip);\n\t\t\t}\n\t\t}\n\t}",
"private File createNewFileName(File branch, String fileName)\r\n \t{\r\n \t\ttry {\r\n \r\n \t\t\tString newFileName = branch.getCanonicalFile() + \"/\"+ fileName;\r\n \t\t\tFile newFile= new File(newFileName);\r\n \t\t\t//if this filename already exists\r\n \t\t\tif (newFile.exists())\r\n \t\t\t{\r\n \t\t\t\tString prefix= fileName;\r\n \t\t\t\tString suffix= \"\";\r\n \t\t\t\tString[] parts= fileName.split(\"[.]\");\r\n \t\t\t\tif (parts.length >1)\r\n \t\t\t\t{\r\n \t\t\t\t\tprefix= \"\";\r\n \t\t\t\t\tfor (int i= 0; i < parts.length-1; i++)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif (i==0) prefix= prefix + parts[i];\r\n \t\t\t\t\t\telse prefix= prefix + \".\" + parts[i];\r\n \t\t\t\t\t}\r\n \t\t\t\t\tsuffix= \".\"+parts[parts.length-1];\r\n \t\t\t\t}\t\r\n \t\t\t\tint i= 0;\r\n \t\t\t\t//searching for new name\r\n \t\t\t\twhile(newFile.exists())\r\n \t\t\t\t{\r\n \t\t\t\t\tnewFileName= branch.getCanonicalFile() + \"/\"+ prefix+ \"_\"+i+suffix;\r\n \t\t\t\t\tnewFile= new File(newFileName);\r\n \t\t\t\t\ti++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\treturn(newFile);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new ExternalFileMgrException(e);\r\n \t\t}\r\n \t}",
"public static ZipEntries from(byte[] zip, Predicate<String> entryNameMatcher, int maxEntrySizeInBytes, boolean throwIfEntryExceedsMaxSize) {\n\n Options options = Options.standard()\n .pathPredicate(entryNameMatcher)\n .maxSize(2 * (long) Math.pow(1024, 3)) // 2 GB\n .maxEntrySize(maxEntrySizeInBytes)\n .maxEntries(1024)\n .truncateEntry(!throwIfEntryExceedsMaxSize);\n List<ZipEntryWithContent> entries = new ArrayList<>();\n try (ArchiveStreamReader reader = ArchiveStreamReader.ofZip(new ByteArrayInputStream(zip), options)) {\n ArchiveFile file;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n while ((file = reader.readNextTo(baos)) != null) {\n entries.add(new ZipEntryWithContent(file.path().toString(),\n Optional.of(baos.toByteArray()).filter(b -> b.length > 0),\n file.size()));\n baos.reset();\n }\n }\n return new ZipEntries(entries);\n }",
"public static void writeZipOneFile(File directoryToZip, String fileName) {\r\n\t\ttry {\r\n\t\t\t//FileOutputStream fos = new FileOutputStream(directoryToZip.getName() + \".zip\");\r\n\t\t\tFileOutputStream fos = new FileOutputStream(directoryToZip +\"\\\\\"+ fileName.replace(\".xls\", \"\")+\".zip\");\r\n\t\t\tZipOutputStream zos = new ZipOutputStream(fos);\r\n\r\n\t\t\tFile file = new File(directoryToZip + \"\\\\\"+ fileName);\r\n\t\t\taddToZip(directoryToZip, file, zos);\r\n\r\n\t\t\tzos.close();\r\n\t\t\tfos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tlogger.error(e.getMessage());\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e.getMessage());\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }",
"public static void generateZip(File file) {\r\n\t\t\r\n\t\tFile zipfile=new File(file.toString().replaceAll(\".xlsx\",\".zip\" ));\r\n\t\tFileOutputStream fos=null;\r\n\t\tZipOutputStream zos=null;\r\n\t\tFileInputStream fin=null;\r\n\t\tZipEntry ze=null; \r\n\t\t\t\r\n\t\tif(!zipfile.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tzipfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//create ZipOutputStream to write to the zipfile\r\n fos=new FileOutputStream(zipfile);\r\n\t\t\t zos=new ZipOutputStream(fos);\r\n\t\t\t \r\n\t\t//add a new Zip Entry to the ZipOutPutStream \r\n\t\t\t ze=new ZipEntry(file.getName());\r\n\t\t\t zos.putNextEntry(ze);\r\n\t\t\t \r\n\t\t//read the file and write to the ZipOutPutStream\t \r\n\t\t\t fin=new FileInputStream(file);\r\n\t\t\t int i;\r\n\t\t\t \r\n\t\t\t while((i=fin.read())!=-1){\r\n\t\t\t\t zos.write(i);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\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}finally{\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(zos!=null && fos!=null && fin!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t //close the zip entry to write to to zip file\r\n\t\t\t\t\t\tzos.closeEntry();\r\n\t\t\t\t\t//close Resources.\t\r\n\t\t\t\t\t\tzos.close();\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tfin.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}",
"private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"public void createDirectoryEntry(\n TableServiceClient tableServiceClient,\n UUID collectionId,\n String tableName,\n FireStoreDirectoryEntry createEntry) {\n\n tableServiceClient.createTableIfNotExists(tableName);\n TableClient tableClient = tableServiceClient.getTableClient(tableName);\n\n // Walk up the lookup directory path, finding missing directories we get to an\n // existing one\n // We will create the ROOT_DIR_NAME directory here if it does not exist.\n String lookupDirPath = FileMetadataUtils.makeLookupPath(createEntry.getPath());\n for (String testPath = lookupDirPath;\n !testPath.isEmpty();\n testPath = FileMetadataUtils.getDirectoryPath(testPath)) {\n\n // !!! In this case we are using a lookup path\n if (lookupByFilePath(tableServiceClient, collectionId, tableName, testPath) != null) {\n break;\n }\n\n FireStoreDirectoryEntry dirToCreate = FileMetadataUtils.makeDirectoryEntry(testPath);\n String partitionKey = getCollectionPartitionKey(collectionId, testPath);\n String rowKey = encodePathAsAzureRowKey(testPath);\n TableEntity entity = FireStoreDirectoryEntry.toTableEntity(partitionKey, rowKey, dirToCreate);\n logger.info(\"Upserting directory entry for {} in table {}\", testPath, tableName);\n // For file ingest worker flights,\n // It's possible that another thread is trying to write the same directory entity at the same\n // time upsert rather than create so that it does not fail if it already exists\n tableClient.upsertEntity(entity);\n }\n createEntityForPath(tableClient, collectionId, tableName, createEntry);\n }",
"@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }",
"public static void PackageArchive(File directoryName, File fileName) throws IOException\r\n {\r\n final String ARCHIVE_XML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?>\\n<archive major_version=\\\"0\\\" minor_version=\\\"1\\\" />\";\r\n\r\n TarArchiveWriter archive = new TarArchiveWriter(new GZIPOutputStream(new FileOutputStream(fileName)));\r\n\r\n // Create the archive.xml file\r\n archive.writeFile(\"archive.xml\", ARCHIVE_XML);\r\n\r\n // Add the assets\r\n File dir = new File(directoryName, ArchiveConstants.ASSETS_PATH);\r\n String[] files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.ASSETS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the objects\r\n dir = new File(directoryName, ArchiveConstants.OBJECTS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.OBJECTS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the terrain(s)\r\n dir = new File(directoryName, ArchiveConstants.TERRAINS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.TERRAINS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the parcels(s)\r\n dir = new File(directoryName, ArchiveConstants.LANDDATA_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.LANDDATA_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the setting(s)\r\n dir = new File(directoryName, ArchiveConstants.SETTINGS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.SETTINGS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n archive.close();\r\n }",
"public final TarEntry CreateEntryFromFile(String fileName)\n\t\t{\n\t\t\treturn TarEntry.CreateEntryFromFile(fileName);\n\t\t}",
"public static boolean createRootFile(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"touch \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }",
"private void renameFileInZip(final File zipFilePath, final String fileNameToRename,\n final String newFileName) throws IOException {\n Map<String, String> zip_properties = new HashMap<>();\n /* We want to read an existing ZIP File, so we set this to False */\n zip_properties.put(\"create\", \"false\");\n\n /* Specify the path to the ZIP File that you want to read as a File System */\n URI zip_disk = URI.create(\"jar:file:///\" + zipFilePath);\n\n /* Create ZIP file System */\n try (FileSystem zipfs = FileSystems.newFileSystem(zip_disk, zip_properties)) {\n /* Access file that needs to be renamed */\n Path pathInZipfile = zipfs.getPath(fileNameToRename);\n /* Specify new file name */\n Path renamedZipEntry = zipfs.getPath(newFileName);\n /* Execute rename */\n Files.move(pathInZipfile, renamedZipEntry, ATOMIC_MOVE);\n //System.out.println(pathInZipfile + \"File successfully renamed to \" + renamedZipEntry);\n }\n\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"public static ZipFile zip(File zip, File fileToAdd, String password)\r\n\t\t\tthrows ZipException {\n\t\tZipFile zipFile = new ZipFile(zip);\r\n\r\n\t\tZipParameters parameters = new ZipParameters();\r\n\t\tparameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\r\n\t\tparameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);\r\n\t\tif (!StringUtil.isEmpty(password)) {\r\n\t\t\tparameters.setEncryptFiles(true);\r\n\t\t\tparameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_STANDARD);\r\n\t\t\tparameters.setPassword(password);\r\n\t\t}\r\n\t\tzipFile.addFile(fileToAdd, parameters);\r\n\t\treturn zipFile;\r\n\t}",
"public String createFile(String name) {\t\t\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\ttry {\n\t\t\tif (file.createNewFile()) {\n\t\t System.out.println(\"Created file '\" + filename + \"'.\");\n\t\t \n\t\t // Add file to files list\n\t\t\t\tthis.files.add(name);\t\n\t\t\t\t\n\t\t } else {\n\t\t \t// Null filename to report it was NOT created\n\t\t\t\tfilename = null;\n\t\t System.out.println(\"ERROR - File name already exists!\");\n\t\t }\n\t\t} catch(IOException e) {\n\t\t\t// Null filename to report it was NOT created\n\t\t\tfilename = null;\n\t\t e.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\treturn filename;\n\t}",
"public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}",
"private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}",
"public boolean createDirectoryInJarFolder(String folderName){\r\n \r\n path = getPathToJarFolder();\r\n \r\n // add folder to path and make directory\r\n path += folderName;\r\n File file = new File(path);\r\n return file.mkdir();\r\n }",
"public TarArchiveEntry(String name, byte linkFlag) {\n this(name);\n this.linkFlag = linkFlag;\n if (linkFlag == LF_GNUTYPE_LONGNAME) {\n version = VERSION_GNU_SPACE;\n }\n }",
"private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException{\n try {\n output.putNextEntry(ze); \n } catch (ZipException zipEx) {\n //This entry already exists. So, go with the first one.\n input.close();\n return;\n }\n int numBytes = -1;\n while((numBytes = input.read(buffer)) > 0){\n output.write(buffer, 0, numBytes);\n }\n output.closeEntry();\n input.close();\n }",
"public void addFile(String name, IDirectory parent) {\r\n // Create a new file\r\n File newFile = new File(name, (Directory) parent);\r\n ((Directory) parent).addItem(newFile);\r\n }",
"public static void createDirectory(String srcDir, String nameDir) {\n try {\n Path path = Paths.get(srcDir + \"/\" + nameDir);\n\n Files.createDirectories(path);\n System.out.println(\"Directory is created\");\n } catch (IOException e) {\n System.err.println(\"ERROR CREATION! \" + e.getMessage());\n }\n\n }",
"private void unzipDownloadedFile(String zipFile) throws ZipException, IOException{\n\t int BUFFER = 2048;\n\t \n\t // get zip file\n\t File file = new File(zipFile);\n\t ZipFile zip = new ZipFile(file);\n\t \n\t // unzip to directory of the same name\n\t // When sip is a directory, this gets two folders\n\t //String newPath = zipFile.substring(0, zipFile.length() - 4);\n\t //new File(newPath).mkdir();\n\t \n\t // unzip to parent directory of the zip file\n\t // This is assuming zip if of a directory\n\t String newPath = file.getParent();\n\t \n\t // Process each entry\n\t Enumeration<? extends ZipEntry> zipFileEntries = zip.entries();\n\t while (zipFileEntries.hasMoreElements())\n\t {\n\t // grab a zip file entry\n\t ZipEntry entry = (ZipEntry) zipFileEntries.nextElement();\n\t String currentEntry = entry.getName();\n\t File destFile = new File(newPath, currentEntry);\n\t File destinationParent = destFile.getParentFile();\n\n\t // create the parent directory structure if needed\n\t destinationParent.mkdirs();\n\n\t if (!entry.isDirectory())\n\t {\n\t BufferedInputStream is = new BufferedInputStream(zip.getInputStream(entry));\n\t int currentByte;\n\t // establish buffer for writing file\n\t byte data[] = new byte[BUFFER];\n\n\t // write the current file to disk\n\t FileOutputStream fos = new FileOutputStream(destFile);\n\t BufferedOutputStream dest = new BufferedOutputStream(fos,\n\t BUFFER);\n\n\t // read and write until last byte is encountered\n\t while ((currentByte = is.read(data, 0, BUFFER)) != -1) {\n\t dest.write(data, 0, currentByte);\n\t }\n\t dest.flush();\n\t dest.close();\n\t is.close();\n\t }\n\n\t if (currentEntry.endsWith(\".zip\"))\n\t {\n\t // found a zip file, try to open\n\t \tunzipDownloadedFile(destFile.getAbsolutePath());\n\t }\n\t }\n\t zip.close();\n\t}",
"public void add(FileSystemEntry entry);",
"public void touch(String name) throws FileExistsException\n\t{\n\t\tcheckMakeFile(name);\n\t\tFileElement add = new FileElement(name, false);\n\t\tfileSystem.addChild(currentFileElement, add);\n\t}",
"public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException {\n this((java.util.zip.ZipEntry) entry);\n setInternalAttributes(entry.getInternalAttributes());\n setExternalAttributes(entry.getExternalAttributes());\n setExtraFields(getAllExtraFieldsNoCopy());\n setPlatform(entry.getPlatform());\n final GeneralPurposeBit other = entry.getGeneralPurposeBit();\n setGeneralPurposeBit(other == null ? null : (GeneralPurposeBit) other.clone());\n }",
"protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }",
"public void moveEntry (String oldPath, String newPath) throws IOException\n\t{\n\t\tString alt = prepareLocation (oldPath);\n\t\tString neu = prepareLocation (newPath);\n\t\t\n\t\tArchiveEntry entry = getEntryByLocation (alt);\n\t\tif (entry == null)\n\t\t\tthrow new IOException (\"no such entry in archive\");\n\t\t\n\t\tboolean wasMain = mainEntries.contains (entry);\n\t\tentries.remove (alt);\n\t\t\n\t\tPath neuPath = zipfs.getPath (neu).normalize ();\n\t\tFiles.createDirectories (neuPath.getParent ());\n\t\tFiles.move (zipfs.getPath (alt).normalize (), neuPath,\n\t\t\tStandardCopyOption.ATOMIC_MOVE);\n\t\tArchiveEntry newEntry = new ArchiveEntry (this, neuPath,\n\t\t\tentry.getFormat ());\n\t\t\n\t\tentries.put (neu, newEntry);\n\t\tif (wasMain)\n\t\t{\n\t\t\taddMainEntry (newEntry);\n\t\t}\n\t\t\n\t\t// move meta data\n\t\tList<MetaDataObject> meta = entry.getDescriptions ();\n\t\tfor (MetaDataObject m : meta)\n\t\t{\n\t\t\tnewEntry.addDescription (m);\n\t\t}\n\t\t\n\t}",
"public static void zipFiles(String target, String... entries) {\n\t byte[] buf = new byte[1024];\n\t ZipOutputStream out = null;\n\t try {\n\t out = new ZipOutputStream(new FileOutputStream(target));\n\t for (String entry : entries) {\n\t FileInputStream in = new FileInputStream(entry);\n\t entry = entry.substring(entry.lastIndexOf(\"/\") + 1);\n\t out.putNextEntry(new ZipEntry(entry));\n\t int len;\n\t while ((len = in.read(buf)) > 0) {\n\t out.write(buf, 0, len);\n\t }\n\t out.closeEntry();\n\t in.close();\n\t }\n\t out.close();\n\t } catch (IOException e) {\n\t \tLogger.e(\"FileUtil\", \"zip file io error\", e);\n\t } finally {\n\t \tif (null != out) {\n\t \t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLogger.e(\"FileUtil\", \"close zip out stream error\", e);\n\t\t\t\t}\n\t \t}\n\t }\n\t}",
"@Override\n public void createDirectory(File storageName) throws IOException {\n }",
"public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}",
"void makeZip(String zipFilePath, String srcFilePaths[],\n\t\t\tMessageDisplay msgDisplay) {\n\t\t...\n\t\tfor (int i = 0; i < srcFilePaths.length; i++) {\n\t\t\tmsgDisplay.showMessage(\"Zipping \"+srcFilePaths[i]);\n\t\t\t//add the file srcFilePaths[i] into the zip file.\n\t\t\t...\n\t\t}\n\t}",
"public void zipFiles() {\r\n byte[] buffer = new byte[1024];\r\n try {\r\n\r\n // On rare occasions, there will be a semi colon in the title name,\r\n // ruining everything while zipping the file.\r\n if (title.contains(\":\") || title.contains(\".\")) {\r\n String temp = \"\";\r\n for (int i = 0; i < title.length(); i++) {\r\n \r\n if (title.charAt(i) == ':' || title.charAt(i) == '.') {\r\n \r\n } else {\r\n temp += title.charAt(i);\r\n }\r\n }\r\n title = temp;\r\n }\r\n System.out.println(\"File name: \" + title);\r\n \r\n FileOutputStream fos = new FileOutputStream(savePath + \"\\\\\" + title + \".zip\");\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n \r\n for (String fileName : fileNames) {\r\n \r\n System.out.println(\"zipping file: \" + fileName);\r\n \r\n fileName = savePath + \"\\\\\" + fileName;\r\n File srcFile = new File(fileName);\r\n FileInputStream fis;\r\n if (srcFile.exists()) {\r\n fis = new FileInputStream(srcFile);\r\n \r\n zos.putNextEntry(new ZipEntry(srcFile.getName()));\r\n int length;\r\n while ((length = fis.read(buffer)) > 0) {\r\n zos.write(buffer, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n \r\n boolean success = (new File(fileName)).delete();\r\n }\r\n }\r\n zos.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"File not found!\");\r\n } catch (IOException ex) {\r\n }\r\n }",
"public static final void unzip(String zipfileName, String baseOutputDir) {\r\n Enumeration entries;\r\n ZipFile zipFile;\r\n try {\r\n zipFile = new ZipFile(zipfileName);\r\n entries = zipFile.entries();\r\n while (entries.hasMoreElements()) {\r\n ZipEntry entry = (ZipEntry) entries.nextElement();\r\n String entryName = entry.getName();\r\n String theName = baseOutputDir + '/' + entryName;\r\n if (entry.isDirectory()) {\r\n // Assume directories are stored parents first then children.\r\n System.out.println(\"Extracting directory: \" + entry.getName());\r\n // This is not robust, just for demonstration purposes.\r\n (new File(theName)).mkdirs();\r\n continue;\r\n }\r\n //(new File(theName)).mkdirs();\r\n forceParentDirectories(theName);\r\n System.out.println(\"Extracting file: \" + theName);\r\n copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(theName)));\r\n }\r\n zipFile.close();\r\n } catch (Exception ioe) {\r\n System.err.println(\"Unhandled exception:\");\r\n ioe.printStackTrace();\r\n return;\r\n }\r\n }",
"public static void m97139a(File file, ZipOutputStream zipOutputStream, String str) throws IOException {\n if (file.exists()) {\n if (file.isDirectory()) {\n String name = file.getName();\n if (!name.endsWith(File.separator)) {\n name = name + File.separator;\n }\n if (!TextUtils.isEmpty(str)) {\n name = str + name;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n zipOutputStream.putNextEntry(new ZipEntry(name));\n zipOutputStream.closeEntry();\n return;\n }\n for (File file2 : listFiles) {\n m97139a(file2, zipOutputStream, name);\n }\n return;\n }\n zipOutputStream.putNextEntry(new ZipEntry(TextUtils.isEmpty(str) ? file.getName() : str + file.getName()));\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[4096];\n while (true) {\n int read = fileInputStream.read(bArr);\n if (read != -1) {\n zipOutputStream.write(bArr, 0, read);\n } else {\n zipOutputStream.flush();\n fileInputStream.close();\n zipOutputStream.closeEntry();\n return;\n }\n }\n } else {\n return;\n }\n throw th;\n }",
"private static String createDir(String s) {\r\n \tint len = s.length() - 1;\r\n \tString tempBuff;\r\n \tString result;\r\n \tif (s.charAt(len) != '/') {\r\n \t\ttempBuff = String.format(\"%s/\", s);\r\n \t}\r\n \telse {\r\n \t\ttempBuff = s;\r\n \t}\r\n \tresult = tempBuff;\r\n \treturn result;\r\n }",
"private Entry createEntry(String pattern) {\n\t\tEntry entry = null;\n\n\t\tif (pattern != null) {\n\t\t\tString item = pattern.trim();\n\t\t\tif (item.length() > 0) {\n\t\t\t\tentry = new Entry();\n\t\t\t\tentry.result = !item.startsWith(\"-\");\n\t\t\t\tentry.partial = item.endsWith(\".\");\n\t\t\t\tentry.classpath = entry.result ? item : item.substring(1).trim();\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}",
"public static boolean createRootdir(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"mkdir \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }",
"private String dumpZipEntry(ZipEntry ze) {\r\n StringBuffer sb = new StringBuffer();\r\n if (ze.isDirectory()) {\r\n sb.append(\"d \");\r\n } else {\r\n sb.append(\"f \");\r\n }\r\n if (ze.getMethod() == ZipEntry.STORED) {\r\n sb.append(\"stored \");\r\n } else {\r\n sb.append(\"defalted \");\r\n }\r\n sb.append(ze.getName());\r\n sb.append(\"\\t\");\r\n sb.append(\"\");\r\n sb.append(ze.getSize());\r\n if (ze.getMethod() == ZipEntry.DEFLATED) {\r\n sb.append(\"/\");\r\n sb.append(ze.getCompressedSize());\r\n }\r\n String str = sb.toString();\r\n sb = null;\r\n\r\n return (str);\r\n }",
"@Override\n public String toString() {\n return \"ZipFile '\" + getName() + \"'\";\n }",
"public static File m136422a(String str, boolean z) {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n File file = new File(str);\n if (!file.exists()) {\n if (!z) {\n file.mkdirs();\n } else {\n try {\n File parentFile = file.getParentFile();\n if (!parentFile.exists()) {\n parentFile.mkdirs();\n }\n file.createNewFile();\n } catch (IOException unused) {\n }\n }\n }\n return file;\n }",
"public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}",
"public void setArchiveName(String name) {\n customName = name;\n }"
]
| [
"0.71327615",
"0.67300344",
"0.66590935",
"0.6511042",
"0.63479257",
"0.6134936",
"0.60145336",
"0.6009436",
"0.5980146",
"0.5950305",
"0.59319466",
"0.5916907",
"0.59026",
"0.58635014",
"0.5843496",
"0.58066505",
"0.5697598",
"0.5646796",
"0.5644571",
"0.56139094",
"0.5613372",
"0.55792147",
"0.5539438",
"0.5509854",
"0.5463325",
"0.542765",
"0.5412958",
"0.5341312",
"0.5279925",
"0.52399087",
"0.5208824",
"0.51781654",
"0.517263",
"0.5148321",
"0.51338965",
"0.5125087",
"0.51194096",
"0.5117093",
"0.5103306",
"0.50949186",
"0.5093734",
"0.5091389",
"0.5085991",
"0.50690556",
"0.50590175",
"0.5048943",
"0.50430155",
"0.50249726",
"0.5005884",
"0.4999155",
"0.49799266",
"0.4974452",
"0.49597764",
"0.4954589",
"0.4954068",
"0.49497074",
"0.49491858",
"0.4944771",
"0.49340066",
"0.49319974",
"0.49290898",
"0.49249744",
"0.49099737",
"0.49081618",
"0.49066043",
"0.49041706",
"0.48970318",
"0.48859438",
"0.48743755",
"0.48671335",
"0.48509857",
"0.4847694",
"0.48342824",
"0.48047298",
"0.48040214",
"0.47913533",
"0.47912905",
"0.47872186",
"0.47813818",
"0.47802055",
"0.4778425",
"0.47780627",
"0.47678357",
"0.47671247",
"0.47650012",
"0.47605264",
"0.47423515",
"0.47415507",
"0.47198603",
"0.4705732",
"0.4698229",
"0.4696701",
"0.46913752",
"0.4691304",
"0.46841604",
"0.46789196",
"0.46768433",
"0.46682152",
"0.4654097",
"0.46540174"
]
| 0.67378795 | 1 |
Creates a new zip entry with fields taken from the specified zip entry. Assumes the entry represents a directory if and only if the name ends with a forward slash "/". | public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {
super(entry);
setName(entry.getName());
final byte[] extra = entry.getExtra();
if (extra != null) {
setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));
} else {
setExtra();
}
setMethod(entry.getMethod());
this.size = entry.getSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"TarEntry CreateEntry(String name);",
"private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }",
"public ZipArchiveEntry(final String name) {\n super(name);\n setName(name);\n }",
"private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}",
"public ZipArchiveEntry(final File inputFile, final String entryName) {\n this(inputFile.isDirectory() && !entryName.endsWith(\"/\") ? entryName + \"/\" : entryName);\n if (inputFile.isFile()) {\n setSize(inputFile.length());\n }\n setTime(inputFile.lastModified());\n }",
"TarEntry CreateEntryFromFile(String fileName);",
"public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException {\n this((java.util.zip.ZipEntry) entry);\n setInternalAttributes(entry.getInternalAttributes());\n setExternalAttributes(entry.getExternalAttributes());\n setExtraFields(getAllExtraFieldsNoCopy());\n setPlatform(entry.getPlatform());\n final GeneralPurposeBit other = entry.getGeneralPurposeBit();\n setGeneralPurposeBit(other == null ? null : (GeneralPurposeBit) other.clone());\n }",
"private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }",
"protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n warnedMkDir = true;\n zipName = zipName.substring(1);\n }\n // if a directory, just return. We mkdir for every file,\n // since some widely-used Zip creators don't put out\n // any directory entries, or put them in the wrong place.\n if (zipName.endsWith(\"/\")) {\n return;\n }\n // Else must be a file; open the file for output\n // Get the directory part.\n int ix = zipName.lastIndexOf('/');\n if (ix > 0) {\n //String dirName = zipName.substring(0, ix);\n String fileName = zipName.substring(ix + 1, zipName.length());\n zipName = fileName;\n\n }\n String targetFile = this.unzipFileTargetLocation;\n File file = new File(targetFile);\n if (!file.exists())\n file.createNewFile();\n FileOutputStream os = null;\n InputStream is = null;\n try {\n os = new FileOutputStream(targetFile);\n is = zippy.getInputStream(e);\n int n = 0;\n while ((n = is.read(b)) > 0)\n os.write(b, 0, n);\n\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }\n break;\n case LIST:\n // Not extracting, just list\n if (e.isDirectory()) {\n System.out.println(\"Directory \" + zipName);\n } else {\n System.out.println(\"File \" + zipName);\n }\n break;\n default:\n throw new IllegalStateException(\"mode value (\" + mode + \") bad\");\n }\n }",
"protected void createFile (ZipFile file, ZipEntry entry, File target)\n {\n if (_buffer == null) {\n _buffer = new byte[COPY_BUFFER_SIZE];\n }\n\n // make sure the file's parent directory exists\n File pdir = target.getParentFile();\n if (!pdir.exists() && !pdir.mkdirs()) {\n log.warning(\"Failed to create parent for '\" + target + \"'.\");\n }\n\n try (InputStream in = file.getInputStream(entry);\n FileOutputStream fout = new FileOutputStream(target)) {\n\n int total = 0, read;\n while ((read = in.read(_buffer)) != -1) {\n total += read;\n fout.write(_buffer, 0, read);\n updateProgress(total);\n }\n\n } catch (IOException ioe) {\n log.warning(\"Error creating '\" + target + \"': \" + ioe);\n }\n }",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}",
"private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }",
"private static JarFile createTempJar(File temp, JarFile parentJar, ZipEntry entry) throws IOException\n {\n InputStream inputStream = parentJar.getInputStream(entry);\n try\n {\n FileOutputStream outputStream = new FileOutputStream(temp);\n try\n {\n byte[] buffer = new byte[8096];\n int read = inputStream.read(buffer);\n while (read != -1)\n {\n outputStream.write(buffer, 0, read);\n read = inputStream.read(buffer);\n }\n }\n finally\n {\n outputStream.close();\n }\n }\n finally\n {\n try\n {\n inputStream.close();\n }\n catch (IOException ignored)\n {\n }\n }\n \n return new JarFile(temp);\n }",
"private ZipEntry parseCentralDirectoryEntry() throws IOException {\n // Positions the archive at the \"compressed size\" and read the value.\n skipBytes(ZipConstants.CENSIZ - ZipConstants.CENVEM);\n long compressSize = getInt();\n\n // Positions the archive at the \"filename length\" and read the value.\n skipBytes(ZipConstants.CENNAM - ZipConstants.CENLEN);\n int fileNameLen = getShort();\n\n // Reads the extra field length and the comment length.\n int extraLen = getShort();\n int commentLen = getShort();\n\n // Positions the archive at the \"local file header offset\" and read the value.\n skipBytes(ZipConstants.CENOFF - ZipConstants.CENDSK);\n long localHeaderOffset = getInt();\n\n // Reads the file name.\n byte[] fileNameBuf = new byte[fileNameLen];\n archive.read(ByteBuffer.wrap(fileNameBuf));\n String fileName = new String(fileNameBuf, Charset.forName(\"UTF-8\"));\n\n // Skips the extra field and the comment.\n skipBytes(extraLen + commentLen);\n\n ZipEntry entry = new ZipEntry();\n entry.setSize(compressSize);\n entry.setLocalHeaderOffset(localHeaderOffset);\n entry.setName(fileName);\n\n return entry;\n }",
"TarEntry CreateEntry(byte[] headerBuffer);",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\ttargetName = prepareLocation (targetName);\n\t\t\n\t\tif (targetName.equals (MANIFEST_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + MANIFEST_LOCATION);\n\t\t\n\t\tif (targetName.equals (METADATA_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + METADATA_LOCATION);\n\t\t\n\t\t// we also do not allow files with names like metadata-[0-9]*.rdf\n\t\tif (targetName.matches (\"^/metadata-[0-9]*\\\\.rdf$\"))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file like metadata-[0-9]*.rdf\");\n\t\t\n\t\t// insert to zip\n\t\tPath insertPath = zipfs.getPath (targetName).normalize ();\n\t\tFiles.createDirectories (insertPath.getParent ());\n\t\tFiles.copy (toInsert.toPath (), insertPath, Utils.COPY_OPTION);\n\t\t\n\t\tArchiveEntry entry = new ArchiveEntry (this, insertPath, format);\n\t\tentries.put (entry.getFilePath (), entry);\n\t\t\n\t\tif (mainEntry)\n\t\t{\n\t\t\tLOGGER.debug (\"setting main entry:\");\n\t\t\taddMainEntry (entry);\n\t\t}\n\t\t\n\t\treturn entry;\n\t}",
"private String generateZipEntry(String file) {\n return file.substring(srcFolder.length() + 1, file.length());\n }",
"public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }",
"public final TarEntry CreateEntry(String name)\n\t\t{\n\t\t\treturn TarEntry.CreateTarEntry(name);\n\t\t}",
"public static ZipEntries from(byte[] zip, Predicate<String> entryNameMatcher, int maxEntrySizeInBytes, boolean throwIfEntryExceedsMaxSize) {\n\n Options options = Options.standard()\n .pathPredicate(entryNameMatcher)\n .maxSize(2 * (long) Math.pow(1024, 3)) // 2 GB\n .maxEntrySize(maxEntrySizeInBytes)\n .maxEntries(1024)\n .truncateEntry(!throwIfEntryExceedsMaxSize);\n List<ZipEntryWithContent> entries = new ArrayList<>();\n try (ArchiveStreamReader reader = ArchiveStreamReader.ofZip(new ByteArrayInputStream(zip), options)) {\n ArchiveFile file;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n while ((file = reader.readNextTo(baos)) != null) {\n entries.add(new ZipEntryWithContent(file.path().toString(),\n Optional.of(baos.toByteArray()).filter(b -> b.length > 0),\n file.size()));\n baos.reset();\n }\n }\n return new ZipEntries(entries);\n }",
"public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }",
"public TarArchiveEntry(String name) {\n this(name, false);\n }",
"private static String createZipFile(String directory, String zipFilename, List<File> filesToAdd)\n throws IOException {\n String zipFilePath = String.format(\"%s/%s\", directory, zipFilename);\n File zipFile = new File(zipFilePath);\n if (zipFile.exists()) {\n if (zipFile.delete()) {\n log.info(\"Zipfile existed and was deleted: \" + zipFilePath);\n } else {\n log.warn(\"Zipfile exists but was not deleted: \" + zipFilePath);\n }\n }\n\n // Create and add files to zip file\n addFilesToZip(zipFile, filesToAdd);\n\n return zipFilePath;\n }",
"private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }",
"public ZipURLConnection(URL url, File file, String zipEntryName) {\r\n super(url);\r\n\r\n this.file = file;\r\n this.zipEntryName = zipEntryName;\r\n }",
"public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}",
"FileInfo create(FileInfo fileInfo);",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"private void createJarFile(File target, Map<String, String> jarEntries) throws IOException\n {\n if (!target.exists())\n {\n target.createNewFile();\n }\n\n // Create the ZIP file\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target)))\n {\n for (String entryName : jarEntries.keySet())\n {\n // Add ZIP entry to output stream at the given location.\n out.putNextEntry(new ZipEntry(entryName));\n // Write the file contents to this entry and close\n out.write(jarEntries.get(entryName).getBytes(Charset.defaultCharset()));\n out.closeEntry();\n }\n }\n }",
"public static ZipFile zip(File zip, File fileToAdd, String password)\r\n\t\t\tthrows ZipException {\n\t\tZipFile zipFile = new ZipFile(zip);\r\n\r\n\t\tZipParameters parameters = new ZipParameters();\r\n\t\tparameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\r\n\t\tparameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);\r\n\t\tif (!StringUtil.isEmpty(password)) {\r\n\t\t\tparameters.setEncryptFiles(true);\r\n\t\t\tparameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_STANDARD);\r\n\t\t\tparameters.setPassword(password);\r\n\t\t}\r\n\t\tzipFile.addFile(fileToAdd, parameters);\r\n\t\treturn zipFile;\r\n\t}",
"public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}",
"public ArchiveEntry addEntry (File baseDir, File file, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, mainEntry);\n\t}",
"public static DBMaker openZip(String zip) {\n DBMaker m = new DBMaker();\n m.location = \"$$ZIP$$://\"+zip;\n return m;\n }",
"public static ToscaServiceTemplate decodeFile(String zipEntryName, InputStream entryData) throws CoderException {\n ToscaServiceTemplate toscaServiceTemplate = null;\n if (zipEntryName.endsWith(\".json\")) {\n toscaServiceTemplate = coder.decode(entryData, ToscaServiceTemplate.class);\n } else if (zipEntryName.endsWith(\".yml\")) {\n toscaServiceTemplate = yamlCoder.decode(entryData, ToscaServiceTemplate.class);\n }\n return toscaServiceTemplate;\n }",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"public void newEntryZipcodes(String zipcode){\n open();\n ContentValues registro = new ContentValues();\n registro.put(Key_zipcode, zipcode);\n myDataBase.insert(nTZipcodes, null, registro);\n close();\n }",
"private void unzipDownloadedFile(String zipFile) throws ZipException, IOException{\n\t int BUFFER = 2048;\n\t \n\t // get zip file\n\t File file = new File(zipFile);\n\t ZipFile zip = new ZipFile(file);\n\t \n\t // unzip to directory of the same name\n\t // When sip is a directory, this gets two folders\n\t //String newPath = zipFile.substring(0, zipFile.length() - 4);\n\t //new File(newPath).mkdir();\n\t \n\t // unzip to parent directory of the zip file\n\t // This is assuming zip if of a directory\n\t String newPath = file.getParent();\n\t \n\t // Process each entry\n\t Enumeration<? extends ZipEntry> zipFileEntries = zip.entries();\n\t while (zipFileEntries.hasMoreElements())\n\t {\n\t // grab a zip file entry\n\t ZipEntry entry = (ZipEntry) zipFileEntries.nextElement();\n\t String currentEntry = entry.getName();\n\t File destFile = new File(newPath, currentEntry);\n\t File destinationParent = destFile.getParentFile();\n\n\t // create the parent directory structure if needed\n\t destinationParent.mkdirs();\n\n\t if (!entry.isDirectory())\n\t {\n\t BufferedInputStream is = new BufferedInputStream(zip.getInputStream(entry));\n\t int currentByte;\n\t // establish buffer for writing file\n\t byte data[] = new byte[BUFFER];\n\n\t // write the current file to disk\n\t FileOutputStream fos = new FileOutputStream(destFile);\n\t BufferedOutputStream dest = new BufferedOutputStream(fos,\n\t BUFFER);\n\n\t // read and write until last byte is encountered\n\t while ((currentByte = is.read(data, 0, BUFFER)) != -1) {\n\t dest.write(data, 0, currentByte);\n\t }\n\t dest.flush();\n\t dest.close();\n\t is.close();\n\t }\n\n\t if (currentEntry.endsWith(\".zip\"))\n\t {\n\t // found a zip file, try to open\n\t \tunzipDownloadedFile(destFile.getAbsolutePath());\n\t }\n\t }\n\t zip.close();\n\t}",
"private ZipEntry getEntry(JarFile jarFile, String dir) {\n if (!dir.endsWith(\"/\")) {\n dir = dir + '/';\n }\n return jarFile.getEntry(dir + getConfigFilename(key));\n }",
"public void setupZipFile(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\tif (!args[0].endsWith(\".zip\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"zip file expected, but: \" + args[0]);\n\t\t\t}\n\t\t\tbuildDirectory = new File(\n\t\t\t\t\tgetBuildDirectory(),\n\t\t\t\t\tString.valueOf(System.currentTimeMillis()));\n\t\t\ttool_builddir = buildDirectory.toString();\n\t\t\tif (!buildDirectory.mkdirs()) {\n\t\t\t\tLoggedUtils.ignore(\"Unable to create directory \" + tool_builddir, null);\n\t\t\t}\n\t\t\tzipFile = args[0];\n\t\t} else if (requireZipArgument){\n\t\t\tthrow new IllegalArgumentException(\"zip file is expected as a first argument\");\n\t\t}\n\t}",
"private String dumpZipEntry(ZipEntry ze) {\r\n StringBuffer sb = new StringBuffer();\r\n if (ze.isDirectory()) {\r\n sb.append(\"d \");\r\n } else {\r\n sb.append(\"f \");\r\n }\r\n if (ze.getMethod() == ZipEntry.STORED) {\r\n sb.append(\"stored \");\r\n } else {\r\n sb.append(\"defalted \");\r\n }\r\n sb.append(ze.getName());\r\n sb.append(\"\\t\");\r\n sb.append(\"\");\r\n sb.append(ze.getSize());\r\n if (ze.getMethod() == ZipEntry.DEFLATED) {\r\n sb.append(\"/\");\r\n sb.append(ze.getCompressedSize());\r\n }\r\n String str = sb.toString();\r\n sb = null;\r\n\r\n return (str);\r\n }",
"public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}",
"public boolean accept(ZipEntry entry)\n {\n // the entry name must start with the directory name, and it must\n // not be a directory\n String sName = entry.getName();\n if (sName.length() > m_sDir.length() && sName.startsWith(m_sDir)\n && sName.charAt(sName.length() - 1) != '/')\n {\n // if searching recursively, the entry can be several levels\n // under the directory, otherwise it must be in that directory\n return m_fRecurse || sName.indexOf('/', m_sDir.length()) < 0;\n }\n\n return false;\n }",
"private Entry createEntry(String pattern) {\n\t\tEntry entry = null;\n\n\t\tif (pattern != null) {\n\t\t\tString item = pattern.trim();\n\t\t\tif (item.length() > 0) {\n\t\t\t\tentry = new Entry();\n\t\t\t\tentry.result = !item.startsWith(\"-\");\n\t\t\t\tentry.partial = item.endsWith(\".\");\n\t\t\t\tentry.classpath = entry.result ? item : item.substring(1).trim();\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}",
"public static final void unzip(String zipfileName, String baseOutputDir) {\r\n Enumeration entries;\r\n ZipFile zipFile;\r\n try {\r\n zipFile = new ZipFile(zipfileName);\r\n entries = zipFile.entries();\r\n while (entries.hasMoreElements()) {\r\n ZipEntry entry = (ZipEntry) entries.nextElement();\r\n String entryName = entry.getName();\r\n String theName = baseOutputDir + '/' + entryName;\r\n if (entry.isDirectory()) {\r\n // Assume directories are stored parents first then children.\r\n System.out.println(\"Extracting directory: \" + entry.getName());\r\n // This is not robust, just for demonstration purposes.\r\n (new File(theName)).mkdirs();\r\n continue;\r\n }\r\n //(new File(theName)).mkdirs();\r\n forceParentDirectories(theName);\r\n System.out.println(\"Extracting file: \" + theName);\r\n copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(theName)));\r\n }\r\n zipFile.close();\r\n } catch (Exception ioe) {\r\n System.err.println(\"Unhandled exception:\");\r\n ioe.printStackTrace();\r\n return;\r\n }\r\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}",
"public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }",
"public void setZip(String zip);",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}",
"public ZipDatabase() throws IOException {\r\n int line = 0;\r\n InputStream is = this.getClass().getResourceAsStream(\"zip.txt\");\r\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n String input;\r\n // parses entries of the form:\r\n // 03064,NH,NASHUA\r\n try {\r\n while ((input = br.readLine()) != null) {\r\n line++;\r\n StringTokenizer st = new StringTokenizer(input, \",\");\r\n if (st.countTokens() == 3) {\r\n String zip = st.nextToken();\r\n String state = st.nextToken();\r\n String city = st.nextToken();\r\n city = fixupCase(city);\r\n zipDB.put(zip, new ZipInfo(zip, city, state));\r\n } else {\r\n throw new IOException(\"Bad zip format, line \" + line);\r\n }\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n }",
"private Dendrogram createDendrogramFromZip(byte[] zipBytes)\r\n\t\tthrows IOException\r\n\t{\r\n\t\tDendrogram d = new Dendrogram();\r\n\r\n\t\tZipInputStream zis = new ZipInputStream(new BufferedInputStream((new ByteArrayInputStream(zipBytes))));\r\n\t\tZipEntry entry;\r\n\r\n\t\twhile ((entry = zis.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tswitch (entry.getName())\r\n\t\t\t{\r\n\t\t\t\tcase \"order.txt\" : \t\tbyte[] orderBytes = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tlineOrder = readLineOrderFromByteArray(orderBytes);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.png\" :\td.getPng().image = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.pdf\" : d.getPdf().data = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}",
"protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }",
"void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addDirectoryToZip(file, _out);\n } else {\n assert false;\n }\n }",
"public static void validateZipEntry(String entryName, String csarPath)\n throws PolicyDecodingException {\n //\n // Now ensure that there is no path injection\n //\n var path = Path.of(csarPath, entryName).normalize();\n //\n // Throw an exception if path is outside the csar\n //\n if (!path.startsWith(csarPath)) {\n throw new PolicyDecodingException(\"Potential path injection for zip entry \" + entryName);\n }\n }",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }",
"private static void extract (Path zipPath, Path destination)\n\t\tthrows IOException\n\t{\n\t\tif (Files.isDirectory (zipPath))\n\t\t{\n\t\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t\t.newDirectoryStream (zipPath);)\n\t\t\t{\n\t\t\t\tfor (Path file : directoryStream)\n\t\t\t\t{\n\t\t\t\t\textract (file, destination);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPath fileOutZip = destination\n\t\t\t\t.resolve (\"./\" + zipPath.normalize ().toString ()).normalize ();\n\t\t\tFiles.createDirectories (fileOutZip.getParent ());\n\t\t\tFiles.copy (zipPath, fileOutZip, Utils.COPY_OPTION);\n\t\t}\n\t}",
"public void toUnzip(String zipFile, String targetDir) {\n\n\t\tMessage message = new Message();\n\t\tmessage.what = SUCCESS;\n\n\t\tint SIZE = 4096; // buffer size: 4KB\n\t\tString strEntry; // each zip entry name\n\t\ttry {\n\t\t\tBufferedOutputStream dest = null; // buffer output stream\n\t\t\tFileInputStream fis = new FileInputStream(zipFile);\n\t\t\tZipInputStream zis = new ZipInputStream(\n\t\t\t\t\tnew BufferedInputStream(fis));\n\t\t\tZipEntry entry; // each zip entry\n\t\t\twhile ((entry = zis.getNextEntry()) != null) {\n\t\t\t\ttry {\n\t\t\t\t\tint count;\n\t\t\t\t\tbyte data[] = new byte[SIZE];\n\t\t\t\t\tstrEntry = entry.getName();\n\n\t\t\t\t\tFile entryFile = new File(targetDir + strEntry);\n\t\t\t\t\tFile entryDir = new File(entryFile.getParent());\n\t\t\t\t\tif (!entryDir.exists()) {\n\t\t\t\t\t\tentryDir.mkdirs();\n\t\t\t\t\t}\n\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(entryFile);\n\t\t\t\t\tdest = new BufferedOutputStream(fos, SIZE);\n\t\t\t\t\twhile ((count = zis.read(data, 0, SIZE)) != -1) {\n\t\t\t\t\t\tdest.write(data, 0, count);\n\n\t\t\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t\t\tmsg.what = PROGRESS;\n\t\t\t\t\t\tmsg.obj = count;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t}\n\t\t\t\t\tdest.flush();\n\t\t\t\t\tdest.close();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tmessage.what = ERROR;\n\t\t\t\t\tmessage.obj = ex.getMessage();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tzis.close();\n\t\t\tFile fileszipe = new File(zipFile);\n\t\t\tfileszipe.delete();\n\t\t} catch (Exception cwj) {\n\t\t\tmessage.what = ERROR;\n\t\t\tmessage.obj = cwj.getMessage();\n\t\t\tcwj.printStackTrace();\n\t\t}\n\t\thandler.sendMessage(message);\n\t}",
"public Entry(DirCacheEntry aDCE, String aPath) { _entry = aDCE; _path = aPath; }",
"public TarArchiveEntry(String name, byte linkFlag) {\n this(name);\n this.linkFlag = linkFlag;\n if (linkFlag == LF_GNUTYPE_LONGNAME) {\n version = VERSION_GNU_SPACE;\n }\n }",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public void createDirectoryEntry(\n TableServiceClient tableServiceClient,\n UUID collectionId,\n String tableName,\n FireStoreDirectoryEntry createEntry) {\n\n tableServiceClient.createTableIfNotExists(tableName);\n TableClient tableClient = tableServiceClient.getTableClient(tableName);\n\n // Walk up the lookup directory path, finding missing directories we get to an\n // existing one\n // We will create the ROOT_DIR_NAME directory here if it does not exist.\n String lookupDirPath = FileMetadataUtils.makeLookupPath(createEntry.getPath());\n for (String testPath = lookupDirPath;\n !testPath.isEmpty();\n testPath = FileMetadataUtils.getDirectoryPath(testPath)) {\n\n // !!! In this case we are using a lookup path\n if (lookupByFilePath(tableServiceClient, collectionId, tableName, testPath) != null) {\n break;\n }\n\n FireStoreDirectoryEntry dirToCreate = FileMetadataUtils.makeDirectoryEntry(testPath);\n String partitionKey = getCollectionPartitionKey(collectionId, testPath);\n String rowKey = encodePathAsAzureRowKey(testPath);\n TableEntity entity = FireStoreDirectoryEntry.toTableEntity(partitionKey, rowKey, dirToCreate);\n logger.info(\"Upserting directory entry for {} in table {}\", testPath, tableName);\n // For file ingest worker flights,\n // It's possible that another thread is trying to write the same directory entity at the same\n // time upsert rather than create so that it does not fail if it already exists\n tableClient.upsertEntity(entity);\n }\n createEntityForPath(tableClient, collectionId, tableName, createEntry);\n }",
"public NestedZipFile(String name) throws IOException {\n this(new File(name));\n }",
"@Override\n\t\tprotected SLEntry leafNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\treturn new SLEntry(this, entryStream);\n\t\t}",
"public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}",
"private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException{\n try {\n output.putNextEntry(ze); \n } catch (ZipException zipEx) {\n //This entry already exists. So, go with the first one.\n input.close();\n return;\n }\n int numBytes = -1;\n while((numBytes = input.read(buffer)) > 0){\n output.write(buffer, 0, numBytes);\n }\n output.closeEntry();\n input.close();\n }",
"public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }",
"public void add(Entry entry) {\n File temp = null;\n String tag = entry.getTag();\n try {\n int flags = entry.getFlags();\n if ((flags & 1) == 0) {\n init();\n if (isTagEnabled(tag)) {\n long max = trimToFit();\n long lastTrim = System.currentTimeMillis();\n byte[] buffer = new byte[this.mBlockSize];\n InputStream input = entry.getInputStream();\n int read = 0;\n while (read < buffer.length) {\n int n = input.read(buffer, read, buffer.length - read);\n if (n <= 0) {\n break;\n }\n read += n;\n }\n File file = this.mDropBoxDir;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"drop\");\n long max2 = max;\n stringBuilder.append(Thread.currentThread().getId());\n stringBuilder.append(\".tmp\");\n temp = new File(file, stringBuilder.toString());\n int bufferSize = this.mBlockSize;\n if (bufferSize > 4096) {\n bufferSize = 4096;\n }\n if (bufferSize < 512) {\n bufferSize = 512;\n }\n FileOutputStream foutput = new FileOutputStream(temp);\n OutputStream output = new BufferedOutputStream(foutput, bufferSize);\n if (read == buffer.length && (flags & 4) == 0) {\n output = new GZIPOutputStream(output);\n flags |= 4;\n }\n while (true) {\n long lastTrim2;\n output.write(buffer, 0, read);\n long now = System.currentTimeMillis();\n if (now - lastTrim > 30000) {\n long j = now;\n lastTrim = trimToFit();\n lastTrim2 = j;\n } else {\n lastTrim2 = lastTrim;\n lastTrim = max2;\n }\n read = input.read(buffer);\n if (read <= 0) {\n FileUtils.sync(foutput);\n output.close();\n output = null;\n } else {\n output.flush();\n }\n if (temp.length() > lastTrim) {\n String str = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"Dropping: \");\n stringBuilder2.append(tag);\n stringBuilder2.append(\" (\");\n stringBuilder2.append(temp.length());\n stringBuilder2.append(\" > \");\n stringBuilder2.append(lastTrim);\n stringBuilder2.append(\" bytes)\");\n Slog.w(str, stringBuilder2.toString());\n temp.delete();\n temp = null;\n break;\n }\n int bufferSize2 = bufferSize;\n FileOutputStream foutput2 = foutput;\n if (read <= 0) {\n break;\n }\n int i = flags;\n max2 = lastTrim;\n lastTrim = lastTrim2;\n bufferSize = bufferSize2;\n foutput = foutput2;\n }\n if (temp != null) {\n FileUtils.setPermissions(temp, 432, -1, -1);\n }\n max = createEntry(temp, tag, flags);\n temp = null;\n Intent dropboxIntent = new Intent(\"android.intent.action.DROPBOX_ENTRY_ADDED\");\n dropboxIntent.putExtra(\"tag\", tag);\n dropboxIntent.putExtra(\"time\", max);\n if (!this.mBooted) {\n dropboxIntent.addFlags(1073741824);\n }\n this.mHandler.sendMessage(this.mHandler.obtainMessage(1, dropboxIntent));\n IoUtils.closeQuietly(output);\n IoUtils.closeQuietly(input);\n entry.close();\n } else {\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n if (temp != null) {\n temp.delete();\n }\n return;\n }\n }\n throw new IllegalArgumentException();\n } catch (IOException e) {\n String str2 = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Can't write: \");\n stringBuilder3.append(tag);\n Slog.e(str2, stringBuilder3.toString(), e);\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n } catch (Throwable th) {\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n if (temp != null) {\n temp.delete();\n }\n }\n }",
"public final ZipEntry getEntry()\n\t{\n\t\treturn entry_;\n\t}",
"public FTPFile parseFTPEntry(String entry) {\n\t\t// one block in VMS equals 512 bytes\n\t\tlong longBlock = 512;\n\n\t\tif (matches(entry)) {\n\t\t\tFTPFile f = new FTPFile();\n\t\t\tf.setRawListing(entry);\n\t\t\tString name = group(1);\n\t\t\tString size = group(2);\n\t\t\tString datestr = group(3) + \" \" + group(4);\n\t\t\tString owner = group(5);\n\t\t\tString permissions[] = new String[3];\n\t\t\tpermissions[0] = group(9);\n\t\t\tpermissions[1] = group(10);\n\t\t\tpermissions[2] = group(11);\n\t\t\ttry {\n\t\t\t\tf.setTimestamp(super.parseTimestamp(datestr));\n\t\t\t}\n\t\t\tcatch (ParseException e) {\n\t\t\t\t// intentionally do nothing\n\t\t\t}\n\n\t\t\tString grp;\n\t\t\tString user;\n\t\t\tStringTokenizer t = new StringTokenizer(owner, \",\");\n\t\t\tswitch (t.countTokens()) {\n\t\t\tcase 1:\n\t\t\t\tgrp = null;\n\t\t\t\tuser = t.nextToken();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgrp = t.nextToken();\n\t\t\t\tuser = t.nextToken();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tgrp = null;\n\t\t\t\tuser = null;\n\t\t\t}\n\n\t\t\tif (name.lastIndexOf(\".DIR\") != -1) {\n\t\t\t\tf.setType(FTPFile.DIRECTORY_TYPE);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tf.setType(FTPFile.FILE_TYPE);\n\t\t\t}\n\t\t\t// set FTPFile name\n\t\t\t// Check also for versions to be returned or not\n\t\t\tif (isVersioning()) {\n\t\t\t\tf.setName(name);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tname = name.substring(0, name.lastIndexOf(\";\"));\n\t\t\t\tf.setName(name);\n\t\t\t}\n\t\t\t// size is retreived in blocks and needs to be put in bytes\n\t\t\t// for us humans and added to the FTPFile array\n\t\t\tlong sizeInBytes = Long.parseLong(size) * longBlock;\n\t\t\tf.setSize(sizeInBytes);\n\n\t\t\tf.setGroup(grp);\n\t\t\tf.setUser(user);\n\t\t\t// set group and owner\n\n\t\t\t// Set file permission.\n\t\t\t// VMS has (SYSTEM,OWNER,GROUP,WORLD) users that can contain\n\t\t\t// R (read) W (write) E (execute) D (delete)\n\n\t\t\t// iterate for OWNER GROUP WORLD permissions\n\t\t\tfor (int access = 0; access < 3; access++) {\n\t\t\t\tString permission = permissions[access];\n\n\t\t\t\tf.setPermission(access, FTPFile.READ_PERMISSION, permission.indexOf('R') >= 0);\n\t\t\t\tf.setPermission(access, FTPFile.WRITE_PERMISSION, permission.indexOf('W') >= 0);\n\t\t\t\tf.setPermission(access, FTPFile.EXECUTE_PERMISSION, permission.indexOf('E') >= 0);\n\t\t\t}\n\n\t\t\treturn f;\n\t\t}\n\t\treturn null;\n\t}",
"public void moveEntry (String oldPath, String newPath) throws IOException\n\t{\n\t\tString alt = prepareLocation (oldPath);\n\t\tString neu = prepareLocation (newPath);\n\t\t\n\t\tArchiveEntry entry = getEntryByLocation (alt);\n\t\tif (entry == null)\n\t\t\tthrow new IOException (\"no such entry in archive\");\n\t\t\n\t\tboolean wasMain = mainEntries.contains (entry);\n\t\tentries.remove (alt);\n\t\t\n\t\tPath neuPath = zipfs.getPath (neu).normalize ();\n\t\tFiles.createDirectories (neuPath.getParent ());\n\t\tFiles.move (zipfs.getPath (alt).normalize (), neuPath,\n\t\t\tStandardCopyOption.ATOMIC_MOVE);\n\t\tArchiveEntry newEntry = new ArchiveEntry (this, neuPath,\n\t\t\tentry.getFormat ());\n\t\t\n\t\tentries.put (neu, newEntry);\n\t\tif (wasMain)\n\t\t{\n\t\t\taddMainEntry (newEntry);\n\t\t}\n\t\t\n\t\t// move meta data\n\t\tList<MetaDataObject> meta = entry.getDescriptions ();\n\t\tfor (MetaDataObject m : meta)\n\t\t{\n\t\t\tnewEntry.addDescription (m);\n\t\t}\n\t\t\n\t}",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format)\n\t\tthrows IOException\n\t{\n\t\treturn addEntry (toInsert, targetName, format, false);\n\t}",
"private void createD64DirectoryEntry( DirectoryEntry directoryEntry, List<Sector> usedSectors) {\n\n\t// Get the position of the new directory entry to create.\n\t// Just count the existing known directory entries for now.\n\tint newEntryPos = getDirectory().getDirectoryEntries().size();\n\n\t// A d64 directory sector has 8 entries per sector, so calculate the sector and offset.\n\tint entrySector = 1 + newEntryPos / 8;\n\tint entryOffset = 32 * ( newEntryPos % 8);\n\n\t// Fetch the sector with the directory entries.\n\tSector directorySector = getSector( 18, entrySector); // Sector 0 contains the BAM.\n\n\t// Check, if the filename is C= compliant.\n\tif( ! directoryEntry.getFileName().endsWith( \".PRG\")) {\n\n\t System.err.println( \"Can only store .PRG files for now\");\n\n\t return;\n\t}\n\n\t// Remove the suffix of the filename.\n\tString filename = directoryEntry.getFileName();\n\tfilename = filename.substring( 0, filename.indexOf( \".PRG\"));\n\tif( filename.length() > 16) { // Cut the filename to 16 characters.\n\t filename = filename.substring( 0, 16);\n\t}\n\n\t// Now set the data of the entry.\n\tdirectorySector.setDataByte( entryOffset + 2, (byte)0x82); // Set type to .prg\n\t\n\t// Copy the name into the directory.\n\tint currentCharIndex = 5;\n\tfor( char currentChar : filename.toCharArray()) {\n\n\t directorySector.setDataByte( currentCharIndex++, CharsetUtils.getInstance().ascii2petscii( currentChar));\n\t}\n\n\t// Pad the file with 0xa0, if it is too short.\n\twhile( currentCharIndex < 20) {\n\t directorySector.setDataByte( currentCharIndex++, (byte)0xa0);\n\t}\n\t \n\t// Set the position of the first sector.\n\tdirectorySector.setDataByte( 3, (byte)( usedSectors.get( 0).getTrackIndex()));\n\tdirectorySector.setDataByte( 4, (byte)( usedSectors.get( 0).getSectorIndex()));\n\n\t// Set the length of the file.\n\tdirectorySector.setDataByte( 0x1e, (byte)( usedSectors.size() % 256));\n\tdirectorySector.setDataByte( 0x1f, (byte)( usedSectors.size() / 256));\n }",
"private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }",
"protected File createZipArchive(File directoryToZip, String modpackName, String workspace) throws Exception {\n zipName = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\")) + \"--\" + modpackName + \".zip\";\n uploadStatus = \"Creating Zipfile from Directory\";\n File zipFile = new File(workspace + \"\\\\\" + zipName);\n try {\n ProgressBarLogic progressBarLogic = new ProgressBarLogic(directoryToZip);\n ZipUtil.pack(directoryToZip, zipFile, name -> {\n uploadStatus = \"Adding file: \" + name + \" to the zip\";\n progressBarLogic.progressPercentage = 0;\n progressBarLogic.progress.add(name);\n progressBarLogic.calculateProgress(progressBarLogic.progress);\n notifyObserver();\n return name;\n });\n } catch (ZipException e) {\n throw e;\n } catch (Exception e) {\n System.out.println(e);\n }\n return zipFile;\n }",
"interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This name is used as the value of the <code>innerEntryName</code>\n * property if a <code>File</code> instance denotes an archive file.\n * <p>\n * This constant may be safely used for identity comparison.\n */\n String ROOT_NAME = \"\";\n}",
"private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"static void unzip(String zipFilePath, String destDirectory, boolean recursive, boolean teacherZip) throws IOException {\n\n if (students == null) {\n students = new ArrayList<Student>();\n }\n\n ZipInputStream zipIn = null;\n\n try {\n zipIn = new ZipInputStream(new FileInputStream(zipFilePath));\n ZipEntry entry = zipIn.getNextEntry();\n\n // iterates over entries in the zip file\n while (entry != null) {\n createFiles(destDirectory, zipIn, entry, recursive);\n\n zipIn.closeEntry();\n entry = zipIn.getNextEntry();\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (zipIn != null) {\n zipIn.close();\n }\n }\n }",
"public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }",
"void importDivision(Connection con, ZipFile zip) throws Exception;",
"public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}",
"protected NestedJarHandler(VFSContext context, VirtualFileHandler parent, JarFile parentJar, ZipEntry entry, URL original, File temp, String entryName)\n throws IOException\n {\n super(context, parent, temp.toURL(), createTempJar(temp, parentJar, entry), entry, entryName);\n\n try\n {\n setPathName(getChildPathName(entryName, false));\n setVfsUrl(getChildVfsUrl(entryName, false));\n }\n catch (URISyntaxException e)\n {\n throw new RuntimeException(e);\n }\n\n this.temp = temp;\n\n try\n {\n initJarFile();\n }\n catch (IOException old)\n {\n // Fix the context of the error message\n IOException e = new IOException(\"Error opening jar file: \" + original + \" reason=\" + old.getMessage());\n e.setStackTrace(old.getStackTrace());\n throw e;\n }\n }",
"private void processZipEntries(List<ZipEntry> contents, String prefix, int depth) throws SAXException {\r\n if (depth > 0) {\r\n // Get the zip-entries at this level.\r\n ArrayList<Map.Entry<String, ZipEntry>> level = new ArrayList<Map.Entry<String, ZipEntry>>();\r\n for (ZipEntry entry : contents) {\r\n String name = entry.getName();\r\n if (name.length() > prefix.length() && name.startsWith(prefix)) { // Entry is below this level.\r\n name = name.substring(prefix.length());\r\n // Names of files and directories at this level contain no '/' or '/' at the end.\r\n if ((name.indexOf('/') + 1) % name.length() == 0) {\r\n level.add(new AbstractMap.SimpleImmutableEntry<String, ZipEntry>(name, entry));\r\n }\r\n }\r\n }\r\n // Do sorting of the level, if required.\r\n if (sort.equals(\"name\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? o2.getKey().compareTo(o1.getKey())\r\n : o1.getKey().compareTo(o2.getKey());\r\n }\r\n });\r\n } else if (sort.equals(\"size\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getSize(), o1.getValue().getSize())\r\n : Long.compare(o1.getValue().getSize(), o2.getValue().getSize());\r\n }\r\n });\r\n } else if (sort.equals(\"lastmodified\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getTime(), o1.getValue().getTime())\r\n : Long.compare(o1.getValue().getTime(), o2.getValue().getTime()) ;\r\n }\r\n });\r\n }\r\n // Output nodes in this level.\r\n for (Map.Entry<String, ZipEntry> entry : level) {\r\n if (isIncluded(entry.getKey()) && !isExcluded(entry.getKey())) {\r\n if (entry.getValue().isDirectory()) {\r\n startNode(DIR_NODE_NAME, entry);\r\n processZipEntries(contents, entry.getValue().getName(), depth - 1);\r\n endNode(DIR_NODE_NAME);\r\n } else {\r\n startNode(FILE_NODE_NAME, entry);\r\n endNode(FILE_NODE_NAME);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"public CombineArchive (File zipFile)\n\t\tthrows IOException,\n\t\t\tJDOMException,\n\t\t\tParseException,\n\t\t\tCombineArchiveException\n\t{\n\t\tinit (zipFile, false);\n\t}",
"public TarArchiveEntry setName(String name) {\n this.name = ArchiveUtils.normalizeFileName(name, false);\n this.isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n return this;\n }",
"public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}",
"public Entry(String n)\n {\n name = n;\n }",
"private Map<String, List<ZipEntry>> parseLocalFileHeaderData(List<ZipEntry> entries) {\n /** Maps String to list of ZipEntrys, name -> actual entries. */\n Map<String, List<ZipEntry>> nameMap = new LinkedHashMap<>();\n\n for (ZipEntry entry : entries) {\n long offset = entry.getLocalHeaderOffset();\n archive.position(offset + ZipConstants.LOCNAM);\n\n // Gets the data offset of this entry.\n int fileNameLen = getShort();\n int extraFieldLen = getShort();\n long dataOffset = offset + ZipConstants.LOCEXT + ZipConstants.SHORT_BYTE_SIZE\n + fileNameLen + extraFieldLen;\n entry.setDataOffset(dataOffset);\n\n // Puts the entry into the nameMap.\n String name = entry.getName();\n List<ZipEntry> entriesWithTheSameName;\n if (nameMap.containsKey(name)) {\n entriesWithTheSameName = nameMap.get(name);\n } else {\n entriesWithTheSameName = new ArrayList<>();\n nameMap.put(name, entriesWithTheSameName);\n }\n entriesWithTheSameName.add(entry);\n }\n\n return nameMap;\n }",
"public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}",
"private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }",
"public AddFileToZip add(final File source) {\n\t\treturn new AddFileToZip(source);\n\t}",
"public static void extractAndSaveFile(ZipInputStream zip,\n \t\t\tFileOutputStream destinationFile) throws IOException {\n \t\tByteArrayOutputStream out = readZipEntry(zip);\n \t\tdestinationFile.write(out.toByteArray());\n \t\tout.close();\n \t\tdestinationFile.close();\n \t}",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public void add(FileSystemEntry entry);",
"public AccountInfo(GenericEntry entry) { \n completedDate = checkDateAndParse(entry.getProperty(\"completedDate\"));\n requestDate = checkDateAndParse(entry.getProperty(\"requestDate\"));\n expiredDate = checkDateAndParse(entry.getProperty(\"expiredDate\"));\n requestId = entry.getProperty(\"requestId\");\n userEmailAddress = entry.getProperty(\"userEmailAddress\");\n adminEmailAddress = entry.getProperty(\"adminEmailAddress\");\n status = entry.getProperty(\"status\");\n \n numberOfFiles =\n entry.getProperty(\"numberOfFiles\") != null ? Integer.parseInt(entry\n .getProperty(\"numberOfFiles\")) : numberOfFiles;\n\n if (numberOfFiles > 0) {\n fileUrls = new String[numberOfFiles];\n for (int fileIndex = 0; fileIndex < numberOfFiles; fileIndex++) {\n fileUrls[fileIndex] = entry.getProperty(\"fileUrl\" + fileIndex);\n }\n }\n }"
]
| [
"0.75643355",
"0.6951723",
"0.6753822",
"0.6474906",
"0.6390181",
"0.6386502",
"0.6385209",
"0.6333881",
"0.63062435",
"0.6195867",
"0.61388135",
"0.60266995",
"0.6020548",
"0.5961521",
"0.5939338",
"0.59155345",
"0.58395404",
"0.5807344",
"0.5804755",
"0.5800355",
"0.5784447",
"0.5737765",
"0.56824183",
"0.5663616",
"0.56468046",
"0.5624935",
"0.56230694",
"0.5571776",
"0.55462027",
"0.5529222",
"0.5521991",
"0.5521706",
"0.55019844",
"0.5499132",
"0.5484449",
"0.5483606",
"0.54691184",
"0.5449815",
"0.54494095",
"0.54251707",
"0.5423008",
"0.5422054",
"0.539432",
"0.5383964",
"0.53513217",
"0.5330809",
"0.53109914",
"0.530608",
"0.5302272",
"0.52610767",
"0.5257924",
"0.52480084",
"0.5230309",
"0.5219922",
"0.5218318",
"0.5189685",
"0.51749706",
"0.5112613",
"0.510756",
"0.5085858",
"0.508565",
"0.50853133",
"0.5084401",
"0.50838834",
"0.5080129",
"0.50649637",
"0.50641376",
"0.50559384",
"0.5046464",
"0.50448656",
"0.504176",
"0.50329113",
"0.5020143",
"0.5013446",
"0.5005643",
"0.5000351",
"0.4995794",
"0.49900568",
"0.49865723",
"0.49614215",
"0.4958429",
"0.49579364",
"0.49451894",
"0.4934707",
"0.49322554",
"0.49290225",
"0.49068165",
"0.49043474",
"0.49004975",
"0.48945478",
"0.4890515",
"0.48888898",
"0.48770037",
"0.48740444",
"0.4862249",
"0.4852017",
"0.4848249",
"0.48415235",
"0.4836332",
"0.4834129"
]
| 0.7017046 | 1 |
Creates a new zip entry with fields taken from the specified zip entry. Assumes the entry represents a directory if and only if the name ends with a forward slash "/". | public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException {
this((java.util.zip.ZipEntry) entry);
setInternalAttributes(entry.getInternalAttributes());
setExternalAttributes(entry.getExternalAttributes());
setExtraFields(getAllExtraFieldsNoCopy());
setPlatform(entry.getPlatform());
final GeneralPurposeBit other = entry.getGeneralPurposeBit();
setGeneralPurposeBit(other == null ? null : (GeneralPurposeBit) other.clone());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {\n super(entry);\n setName(entry.getName());\n final byte[] extra = entry.getExtra();\n if (extra != null) {\n setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));\n } else {\n setExtra();\n }\n setMethod(entry.getMethod());\n this.size = entry.getSize();\n }",
"TarEntry CreateEntry(String name);",
"private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }",
"public ZipArchiveEntry(final String name) {\n super(name);\n setName(name);\n }",
"private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}",
"public ZipArchiveEntry(final File inputFile, final String entryName) {\n this(inputFile.isDirectory() && !entryName.endsWith(\"/\") ? entryName + \"/\" : entryName);\n if (inputFile.isFile()) {\n setSize(inputFile.length());\n }\n setTime(inputFile.lastModified());\n }",
"TarEntry CreateEntryFromFile(String fileName);",
"private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }",
"protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n warnedMkDir = true;\n zipName = zipName.substring(1);\n }\n // if a directory, just return. We mkdir for every file,\n // since some widely-used Zip creators don't put out\n // any directory entries, or put them in the wrong place.\n if (zipName.endsWith(\"/\")) {\n return;\n }\n // Else must be a file; open the file for output\n // Get the directory part.\n int ix = zipName.lastIndexOf('/');\n if (ix > 0) {\n //String dirName = zipName.substring(0, ix);\n String fileName = zipName.substring(ix + 1, zipName.length());\n zipName = fileName;\n\n }\n String targetFile = this.unzipFileTargetLocation;\n File file = new File(targetFile);\n if (!file.exists())\n file.createNewFile();\n FileOutputStream os = null;\n InputStream is = null;\n try {\n os = new FileOutputStream(targetFile);\n is = zippy.getInputStream(e);\n int n = 0;\n while ((n = is.read(b)) > 0)\n os.write(b, 0, n);\n\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }\n break;\n case LIST:\n // Not extracting, just list\n if (e.isDirectory()) {\n System.out.println(\"Directory \" + zipName);\n } else {\n System.out.println(\"File \" + zipName);\n }\n break;\n default:\n throw new IllegalStateException(\"mode value (\" + mode + \") bad\");\n }\n }",
"protected void createFile (ZipFile file, ZipEntry entry, File target)\n {\n if (_buffer == null) {\n _buffer = new byte[COPY_BUFFER_SIZE];\n }\n\n // make sure the file's parent directory exists\n File pdir = target.getParentFile();\n if (!pdir.exists() && !pdir.mkdirs()) {\n log.warning(\"Failed to create parent for '\" + target + \"'.\");\n }\n\n try (InputStream in = file.getInputStream(entry);\n FileOutputStream fout = new FileOutputStream(target)) {\n\n int total = 0, read;\n while ((read = in.read(_buffer)) != -1) {\n total += read;\n fout.write(_buffer, 0, read);\n updateProgress(total);\n }\n\n } catch (IOException ioe) {\n log.warning(\"Error creating '\" + target + \"': \" + ioe);\n }\n }",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}",
"private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }",
"private static JarFile createTempJar(File temp, JarFile parentJar, ZipEntry entry) throws IOException\n {\n InputStream inputStream = parentJar.getInputStream(entry);\n try\n {\n FileOutputStream outputStream = new FileOutputStream(temp);\n try\n {\n byte[] buffer = new byte[8096];\n int read = inputStream.read(buffer);\n while (read != -1)\n {\n outputStream.write(buffer, 0, read);\n read = inputStream.read(buffer);\n }\n }\n finally\n {\n outputStream.close();\n }\n }\n finally\n {\n try\n {\n inputStream.close();\n }\n catch (IOException ignored)\n {\n }\n }\n \n return new JarFile(temp);\n }",
"private ZipEntry parseCentralDirectoryEntry() throws IOException {\n // Positions the archive at the \"compressed size\" and read the value.\n skipBytes(ZipConstants.CENSIZ - ZipConstants.CENVEM);\n long compressSize = getInt();\n\n // Positions the archive at the \"filename length\" and read the value.\n skipBytes(ZipConstants.CENNAM - ZipConstants.CENLEN);\n int fileNameLen = getShort();\n\n // Reads the extra field length and the comment length.\n int extraLen = getShort();\n int commentLen = getShort();\n\n // Positions the archive at the \"local file header offset\" and read the value.\n skipBytes(ZipConstants.CENOFF - ZipConstants.CENDSK);\n long localHeaderOffset = getInt();\n\n // Reads the file name.\n byte[] fileNameBuf = new byte[fileNameLen];\n archive.read(ByteBuffer.wrap(fileNameBuf));\n String fileName = new String(fileNameBuf, Charset.forName(\"UTF-8\"));\n\n // Skips the extra field and the comment.\n skipBytes(extraLen + commentLen);\n\n ZipEntry entry = new ZipEntry();\n entry.setSize(compressSize);\n entry.setLocalHeaderOffset(localHeaderOffset);\n entry.setName(fileName);\n\n return entry;\n }",
"TarEntry CreateEntry(byte[] headerBuffer);",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\ttargetName = prepareLocation (targetName);\n\t\t\n\t\tif (targetName.equals (MANIFEST_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + MANIFEST_LOCATION);\n\t\t\n\t\tif (targetName.equals (METADATA_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + METADATA_LOCATION);\n\t\t\n\t\t// we also do not allow files with names like metadata-[0-9]*.rdf\n\t\tif (targetName.matches (\"^/metadata-[0-9]*\\\\.rdf$\"))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file like metadata-[0-9]*.rdf\");\n\t\t\n\t\t// insert to zip\n\t\tPath insertPath = zipfs.getPath (targetName).normalize ();\n\t\tFiles.createDirectories (insertPath.getParent ());\n\t\tFiles.copy (toInsert.toPath (), insertPath, Utils.COPY_OPTION);\n\t\t\n\t\tArchiveEntry entry = new ArchiveEntry (this, insertPath, format);\n\t\tentries.put (entry.getFilePath (), entry);\n\t\t\n\t\tif (mainEntry)\n\t\t{\n\t\t\tLOGGER.debug (\"setting main entry:\");\n\t\t\taddMainEntry (entry);\n\t\t}\n\t\t\n\t\treturn entry;\n\t}",
"private String generateZipEntry(String file) {\n return file.substring(srcFolder.length() + 1, file.length());\n }",
"public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }",
"public final TarEntry CreateEntry(String name)\n\t\t{\n\t\t\treturn TarEntry.CreateTarEntry(name);\n\t\t}",
"public static ZipEntries from(byte[] zip, Predicate<String> entryNameMatcher, int maxEntrySizeInBytes, boolean throwIfEntryExceedsMaxSize) {\n\n Options options = Options.standard()\n .pathPredicate(entryNameMatcher)\n .maxSize(2 * (long) Math.pow(1024, 3)) // 2 GB\n .maxEntrySize(maxEntrySizeInBytes)\n .maxEntries(1024)\n .truncateEntry(!throwIfEntryExceedsMaxSize);\n List<ZipEntryWithContent> entries = new ArrayList<>();\n try (ArchiveStreamReader reader = ArchiveStreamReader.ofZip(new ByteArrayInputStream(zip), options)) {\n ArchiveFile file;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n while ((file = reader.readNextTo(baos)) != null) {\n entries.add(new ZipEntryWithContent(file.path().toString(),\n Optional.of(baos.toByteArray()).filter(b -> b.length > 0),\n file.size()));\n baos.reset();\n }\n }\n return new ZipEntries(entries);\n }",
"public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }",
"public TarArchiveEntry(String name) {\n this(name, false);\n }",
"private static String createZipFile(String directory, String zipFilename, List<File> filesToAdd)\n throws IOException {\n String zipFilePath = String.format(\"%s/%s\", directory, zipFilename);\n File zipFile = new File(zipFilePath);\n if (zipFile.exists()) {\n if (zipFile.delete()) {\n log.info(\"Zipfile existed and was deleted: \" + zipFilePath);\n } else {\n log.warn(\"Zipfile exists but was not deleted: \" + zipFilePath);\n }\n }\n\n // Create and add files to zip file\n addFilesToZip(zipFile, filesToAdd);\n\n return zipFilePath;\n }",
"private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }",
"public ZipURLConnection(URL url, File file, String zipEntryName) {\r\n super(url);\r\n\r\n this.file = file;\r\n this.zipEntryName = zipEntryName;\r\n }",
"public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}",
"FileInfo create(FileInfo fileInfo);",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"private void createJarFile(File target, Map<String, String> jarEntries) throws IOException\n {\n if (!target.exists())\n {\n target.createNewFile();\n }\n\n // Create the ZIP file\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target)))\n {\n for (String entryName : jarEntries.keySet())\n {\n // Add ZIP entry to output stream at the given location.\n out.putNextEntry(new ZipEntry(entryName));\n // Write the file contents to this entry and close\n out.write(jarEntries.get(entryName).getBytes(Charset.defaultCharset()));\n out.closeEntry();\n }\n }\n }",
"public static ZipFile zip(File zip, File fileToAdd, String password)\r\n\t\t\tthrows ZipException {\n\t\tZipFile zipFile = new ZipFile(zip);\r\n\r\n\t\tZipParameters parameters = new ZipParameters();\r\n\t\tparameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\r\n\t\tparameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);\r\n\t\tif (!StringUtil.isEmpty(password)) {\r\n\t\t\tparameters.setEncryptFiles(true);\r\n\t\t\tparameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_STANDARD);\r\n\t\t\tparameters.setPassword(password);\r\n\t\t}\r\n\t\tzipFile.addFile(fileToAdd, parameters);\r\n\t\treturn zipFile;\r\n\t}",
"public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}",
"public ArchiveEntry addEntry (File baseDir, File file, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, mainEntry);\n\t}",
"public static DBMaker openZip(String zip) {\n DBMaker m = new DBMaker();\n m.location = \"$$ZIP$$://\"+zip;\n return m;\n }",
"public static ToscaServiceTemplate decodeFile(String zipEntryName, InputStream entryData) throws CoderException {\n ToscaServiceTemplate toscaServiceTemplate = null;\n if (zipEntryName.endsWith(\".json\")) {\n toscaServiceTemplate = coder.decode(entryData, ToscaServiceTemplate.class);\n } else if (zipEntryName.endsWith(\".yml\")) {\n toscaServiceTemplate = yamlCoder.decode(entryData, ToscaServiceTemplate.class);\n }\n return toscaServiceTemplate;\n }",
"public void newEntryZipcodes(String zipcode){\n open();\n ContentValues registro = new ContentValues();\n registro.put(Key_zipcode, zipcode);\n myDataBase.insert(nTZipcodes, null, registro);\n close();\n }",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"private void unzipDownloadedFile(String zipFile) throws ZipException, IOException{\n\t int BUFFER = 2048;\n\t \n\t // get zip file\n\t File file = new File(zipFile);\n\t ZipFile zip = new ZipFile(file);\n\t \n\t // unzip to directory of the same name\n\t // When sip is a directory, this gets two folders\n\t //String newPath = zipFile.substring(0, zipFile.length() - 4);\n\t //new File(newPath).mkdir();\n\t \n\t // unzip to parent directory of the zip file\n\t // This is assuming zip if of a directory\n\t String newPath = file.getParent();\n\t \n\t // Process each entry\n\t Enumeration<? extends ZipEntry> zipFileEntries = zip.entries();\n\t while (zipFileEntries.hasMoreElements())\n\t {\n\t // grab a zip file entry\n\t ZipEntry entry = (ZipEntry) zipFileEntries.nextElement();\n\t String currentEntry = entry.getName();\n\t File destFile = new File(newPath, currentEntry);\n\t File destinationParent = destFile.getParentFile();\n\n\t // create the parent directory structure if needed\n\t destinationParent.mkdirs();\n\n\t if (!entry.isDirectory())\n\t {\n\t BufferedInputStream is = new BufferedInputStream(zip.getInputStream(entry));\n\t int currentByte;\n\t // establish buffer for writing file\n\t byte data[] = new byte[BUFFER];\n\n\t // write the current file to disk\n\t FileOutputStream fos = new FileOutputStream(destFile);\n\t BufferedOutputStream dest = new BufferedOutputStream(fos,\n\t BUFFER);\n\n\t // read and write until last byte is encountered\n\t while ((currentByte = is.read(data, 0, BUFFER)) != -1) {\n\t dest.write(data, 0, currentByte);\n\t }\n\t dest.flush();\n\t dest.close();\n\t is.close();\n\t }\n\n\t if (currentEntry.endsWith(\".zip\"))\n\t {\n\t // found a zip file, try to open\n\t \tunzipDownloadedFile(destFile.getAbsolutePath());\n\t }\n\t }\n\t zip.close();\n\t}",
"private ZipEntry getEntry(JarFile jarFile, String dir) {\n if (!dir.endsWith(\"/\")) {\n dir = dir + '/';\n }\n return jarFile.getEntry(dir + getConfigFilename(key));\n }",
"public void setupZipFile(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\tif (!args[0].endsWith(\".zip\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"zip file expected, but: \" + args[0]);\n\t\t\t}\n\t\t\tbuildDirectory = new File(\n\t\t\t\t\tgetBuildDirectory(),\n\t\t\t\t\tString.valueOf(System.currentTimeMillis()));\n\t\t\ttool_builddir = buildDirectory.toString();\n\t\t\tif (!buildDirectory.mkdirs()) {\n\t\t\t\tLoggedUtils.ignore(\"Unable to create directory \" + tool_builddir, null);\n\t\t\t}\n\t\t\tzipFile = args[0];\n\t\t} else if (requireZipArgument){\n\t\t\tthrow new IllegalArgumentException(\"zip file is expected as a first argument\");\n\t\t}\n\t}",
"private String dumpZipEntry(ZipEntry ze) {\r\n StringBuffer sb = new StringBuffer();\r\n if (ze.isDirectory()) {\r\n sb.append(\"d \");\r\n } else {\r\n sb.append(\"f \");\r\n }\r\n if (ze.getMethod() == ZipEntry.STORED) {\r\n sb.append(\"stored \");\r\n } else {\r\n sb.append(\"defalted \");\r\n }\r\n sb.append(ze.getName());\r\n sb.append(\"\\t\");\r\n sb.append(\"\");\r\n sb.append(ze.getSize());\r\n if (ze.getMethod() == ZipEntry.DEFLATED) {\r\n sb.append(\"/\");\r\n sb.append(ze.getCompressedSize());\r\n }\r\n String str = sb.toString();\r\n sb = null;\r\n\r\n return (str);\r\n }",
"public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}",
"public boolean accept(ZipEntry entry)\n {\n // the entry name must start with the directory name, and it must\n // not be a directory\n String sName = entry.getName();\n if (sName.length() > m_sDir.length() && sName.startsWith(m_sDir)\n && sName.charAt(sName.length() - 1) != '/')\n {\n // if searching recursively, the entry can be several levels\n // under the directory, otherwise it must be in that directory\n return m_fRecurse || sName.indexOf('/', m_sDir.length()) < 0;\n }\n\n return false;\n }",
"private Entry createEntry(String pattern) {\n\t\tEntry entry = null;\n\n\t\tif (pattern != null) {\n\t\t\tString item = pattern.trim();\n\t\t\tif (item.length() > 0) {\n\t\t\t\tentry = new Entry();\n\t\t\t\tentry.result = !item.startsWith(\"-\");\n\t\t\t\tentry.partial = item.endsWith(\".\");\n\t\t\t\tentry.classpath = entry.result ? item : item.substring(1).trim();\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}",
"public static final void unzip(String zipfileName, String baseOutputDir) {\r\n Enumeration entries;\r\n ZipFile zipFile;\r\n try {\r\n zipFile = new ZipFile(zipfileName);\r\n entries = zipFile.entries();\r\n while (entries.hasMoreElements()) {\r\n ZipEntry entry = (ZipEntry) entries.nextElement();\r\n String entryName = entry.getName();\r\n String theName = baseOutputDir + '/' + entryName;\r\n if (entry.isDirectory()) {\r\n // Assume directories are stored parents first then children.\r\n System.out.println(\"Extracting directory: \" + entry.getName());\r\n // This is not robust, just for demonstration purposes.\r\n (new File(theName)).mkdirs();\r\n continue;\r\n }\r\n //(new File(theName)).mkdirs();\r\n forceParentDirectories(theName);\r\n System.out.println(\"Extracting file: \" + theName);\r\n copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(theName)));\r\n }\r\n zipFile.close();\r\n } catch (Exception ioe) {\r\n System.err.println(\"Unhandled exception:\");\r\n ioe.printStackTrace();\r\n return;\r\n }\r\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}",
"public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }",
"public void setZip(String zip);",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}",
"public ZipDatabase() throws IOException {\r\n int line = 0;\r\n InputStream is = this.getClass().getResourceAsStream(\"zip.txt\");\r\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n String input;\r\n // parses entries of the form:\r\n // 03064,NH,NASHUA\r\n try {\r\n while ((input = br.readLine()) != null) {\r\n line++;\r\n StringTokenizer st = new StringTokenizer(input, \",\");\r\n if (st.countTokens() == 3) {\r\n String zip = st.nextToken();\r\n String state = st.nextToken();\r\n String city = st.nextToken();\r\n city = fixupCase(city);\r\n zipDB.put(zip, new ZipInfo(zip, city, state));\r\n } else {\r\n throw new IOException(\"Bad zip format, line \" + line);\r\n }\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n }",
"private Dendrogram createDendrogramFromZip(byte[] zipBytes)\r\n\t\tthrows IOException\r\n\t{\r\n\t\tDendrogram d = new Dendrogram();\r\n\r\n\t\tZipInputStream zis = new ZipInputStream(new BufferedInputStream((new ByteArrayInputStream(zipBytes))));\r\n\t\tZipEntry entry;\r\n\r\n\t\twhile ((entry = zis.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tswitch (entry.getName())\r\n\t\t\t{\r\n\t\t\t\tcase \"order.txt\" : \t\tbyte[] orderBytes = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tlineOrder = readLineOrderFromByteArray(orderBytes);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.png\" :\td.getPng().image = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"dendrogram.pdf\" : d.getPdf().data = readBinaryZipEntry(zis);\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}",
"protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }",
"void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addDirectoryToZip(file, _out);\n } else {\n assert false;\n }\n }",
"public static void validateZipEntry(String entryName, String csarPath)\n throws PolicyDecodingException {\n //\n // Now ensure that there is no path injection\n //\n var path = Path.of(csarPath, entryName).normalize();\n //\n // Throw an exception if path is outside the csar\n //\n if (!path.startsWith(csarPath)) {\n throw new PolicyDecodingException(\"Potential path injection for zip entry \" + entryName);\n }\n }",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"private static void extract (Path zipPath, Path destination)\n\t\tthrows IOException\n\t{\n\t\tif (Files.isDirectory (zipPath))\n\t\t{\n\t\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t\t.newDirectoryStream (zipPath);)\n\t\t\t{\n\t\t\t\tfor (Path file : directoryStream)\n\t\t\t\t{\n\t\t\t\t\textract (file, destination);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPath fileOutZip = destination\n\t\t\t\t.resolve (\"./\" + zipPath.normalize ().toString ()).normalize ();\n\t\t\tFiles.createDirectories (fileOutZip.getParent ());\n\t\t\tFiles.copy (zipPath, fileOutZip, Utils.COPY_OPTION);\n\t\t}\n\t}",
"private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }",
"public void toUnzip(String zipFile, String targetDir) {\n\n\t\tMessage message = new Message();\n\t\tmessage.what = SUCCESS;\n\n\t\tint SIZE = 4096; // buffer size: 4KB\n\t\tString strEntry; // each zip entry name\n\t\ttry {\n\t\t\tBufferedOutputStream dest = null; // buffer output stream\n\t\t\tFileInputStream fis = new FileInputStream(zipFile);\n\t\t\tZipInputStream zis = new ZipInputStream(\n\t\t\t\t\tnew BufferedInputStream(fis));\n\t\t\tZipEntry entry; // each zip entry\n\t\t\twhile ((entry = zis.getNextEntry()) != null) {\n\t\t\t\ttry {\n\t\t\t\t\tint count;\n\t\t\t\t\tbyte data[] = new byte[SIZE];\n\t\t\t\t\tstrEntry = entry.getName();\n\n\t\t\t\t\tFile entryFile = new File(targetDir + strEntry);\n\t\t\t\t\tFile entryDir = new File(entryFile.getParent());\n\t\t\t\t\tif (!entryDir.exists()) {\n\t\t\t\t\t\tentryDir.mkdirs();\n\t\t\t\t\t}\n\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(entryFile);\n\t\t\t\t\tdest = new BufferedOutputStream(fos, SIZE);\n\t\t\t\t\twhile ((count = zis.read(data, 0, SIZE)) != -1) {\n\t\t\t\t\t\tdest.write(data, 0, count);\n\n\t\t\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t\t\tmsg.what = PROGRESS;\n\t\t\t\t\t\tmsg.obj = count;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t}\n\t\t\t\t\tdest.flush();\n\t\t\t\t\tdest.close();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tmessage.what = ERROR;\n\t\t\t\t\tmessage.obj = ex.getMessage();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tzis.close();\n\t\t\tFile fileszipe = new File(zipFile);\n\t\t\tfileszipe.delete();\n\t\t} catch (Exception cwj) {\n\t\t\tmessage.what = ERROR;\n\t\t\tmessage.obj = cwj.getMessage();\n\t\t\tcwj.printStackTrace();\n\t\t}\n\t\thandler.sendMessage(message);\n\t}",
"public Entry(DirCacheEntry aDCE, String aPath) { _entry = aDCE; _path = aPath; }",
"public TarArchiveEntry(String name, byte linkFlag) {\n this(name);\n this.linkFlag = linkFlag;\n if (linkFlag == LF_GNUTYPE_LONGNAME) {\n version = VERSION_GNU_SPACE;\n }\n }",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public void createDirectoryEntry(\n TableServiceClient tableServiceClient,\n UUID collectionId,\n String tableName,\n FireStoreDirectoryEntry createEntry) {\n\n tableServiceClient.createTableIfNotExists(tableName);\n TableClient tableClient = tableServiceClient.getTableClient(tableName);\n\n // Walk up the lookup directory path, finding missing directories we get to an\n // existing one\n // We will create the ROOT_DIR_NAME directory here if it does not exist.\n String lookupDirPath = FileMetadataUtils.makeLookupPath(createEntry.getPath());\n for (String testPath = lookupDirPath;\n !testPath.isEmpty();\n testPath = FileMetadataUtils.getDirectoryPath(testPath)) {\n\n // !!! In this case we are using a lookup path\n if (lookupByFilePath(tableServiceClient, collectionId, tableName, testPath) != null) {\n break;\n }\n\n FireStoreDirectoryEntry dirToCreate = FileMetadataUtils.makeDirectoryEntry(testPath);\n String partitionKey = getCollectionPartitionKey(collectionId, testPath);\n String rowKey = encodePathAsAzureRowKey(testPath);\n TableEntity entity = FireStoreDirectoryEntry.toTableEntity(partitionKey, rowKey, dirToCreate);\n logger.info(\"Upserting directory entry for {} in table {}\", testPath, tableName);\n // For file ingest worker flights,\n // It's possible that another thread is trying to write the same directory entity at the same\n // time upsert rather than create so that it does not fail if it already exists\n tableClient.upsertEntity(entity);\n }\n createEntityForPath(tableClient, collectionId, tableName, createEntry);\n }",
"public NestedZipFile(String name) throws IOException {\n this(new File(name));\n }",
"@Override\n\t\tprotected SLEntry leafNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\treturn new SLEntry(this, entryStream);\n\t\t}",
"public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}",
"private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException{\n try {\n output.putNextEntry(ze); \n } catch (ZipException zipEx) {\n //This entry already exists. So, go with the first one.\n input.close();\n return;\n }\n int numBytes = -1;\n while((numBytes = input.read(buffer)) > 0){\n output.write(buffer, 0, numBytes);\n }\n output.closeEntry();\n input.close();\n }",
"public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }",
"public void add(Entry entry) {\n File temp = null;\n String tag = entry.getTag();\n try {\n int flags = entry.getFlags();\n if ((flags & 1) == 0) {\n init();\n if (isTagEnabled(tag)) {\n long max = trimToFit();\n long lastTrim = System.currentTimeMillis();\n byte[] buffer = new byte[this.mBlockSize];\n InputStream input = entry.getInputStream();\n int read = 0;\n while (read < buffer.length) {\n int n = input.read(buffer, read, buffer.length - read);\n if (n <= 0) {\n break;\n }\n read += n;\n }\n File file = this.mDropBoxDir;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"drop\");\n long max2 = max;\n stringBuilder.append(Thread.currentThread().getId());\n stringBuilder.append(\".tmp\");\n temp = new File(file, stringBuilder.toString());\n int bufferSize = this.mBlockSize;\n if (bufferSize > 4096) {\n bufferSize = 4096;\n }\n if (bufferSize < 512) {\n bufferSize = 512;\n }\n FileOutputStream foutput = new FileOutputStream(temp);\n OutputStream output = new BufferedOutputStream(foutput, bufferSize);\n if (read == buffer.length && (flags & 4) == 0) {\n output = new GZIPOutputStream(output);\n flags |= 4;\n }\n while (true) {\n long lastTrim2;\n output.write(buffer, 0, read);\n long now = System.currentTimeMillis();\n if (now - lastTrim > 30000) {\n long j = now;\n lastTrim = trimToFit();\n lastTrim2 = j;\n } else {\n lastTrim2 = lastTrim;\n lastTrim = max2;\n }\n read = input.read(buffer);\n if (read <= 0) {\n FileUtils.sync(foutput);\n output.close();\n output = null;\n } else {\n output.flush();\n }\n if (temp.length() > lastTrim) {\n String str = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"Dropping: \");\n stringBuilder2.append(tag);\n stringBuilder2.append(\" (\");\n stringBuilder2.append(temp.length());\n stringBuilder2.append(\" > \");\n stringBuilder2.append(lastTrim);\n stringBuilder2.append(\" bytes)\");\n Slog.w(str, stringBuilder2.toString());\n temp.delete();\n temp = null;\n break;\n }\n int bufferSize2 = bufferSize;\n FileOutputStream foutput2 = foutput;\n if (read <= 0) {\n break;\n }\n int i = flags;\n max2 = lastTrim;\n lastTrim = lastTrim2;\n bufferSize = bufferSize2;\n foutput = foutput2;\n }\n if (temp != null) {\n FileUtils.setPermissions(temp, 432, -1, -1);\n }\n max = createEntry(temp, tag, flags);\n temp = null;\n Intent dropboxIntent = new Intent(\"android.intent.action.DROPBOX_ENTRY_ADDED\");\n dropboxIntent.putExtra(\"tag\", tag);\n dropboxIntent.putExtra(\"time\", max);\n if (!this.mBooted) {\n dropboxIntent.addFlags(1073741824);\n }\n this.mHandler.sendMessage(this.mHandler.obtainMessage(1, dropboxIntent));\n IoUtils.closeQuietly(output);\n IoUtils.closeQuietly(input);\n entry.close();\n } else {\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n if (temp != null) {\n temp.delete();\n }\n return;\n }\n }\n throw new IllegalArgumentException();\n } catch (IOException e) {\n String str2 = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Can't write: \");\n stringBuilder3.append(tag);\n Slog.e(str2, stringBuilder3.toString(), e);\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n } catch (Throwable th) {\n IoUtils.closeQuietly(null);\n IoUtils.closeQuietly(null);\n entry.close();\n if (temp != null) {\n temp.delete();\n }\n }\n }",
"public final ZipEntry getEntry()\n\t{\n\t\treturn entry_;\n\t}",
"public FTPFile parseFTPEntry(String entry) {\n\t\t// one block in VMS equals 512 bytes\n\t\tlong longBlock = 512;\n\n\t\tif (matches(entry)) {\n\t\t\tFTPFile f = new FTPFile();\n\t\t\tf.setRawListing(entry);\n\t\t\tString name = group(1);\n\t\t\tString size = group(2);\n\t\t\tString datestr = group(3) + \" \" + group(4);\n\t\t\tString owner = group(5);\n\t\t\tString permissions[] = new String[3];\n\t\t\tpermissions[0] = group(9);\n\t\t\tpermissions[1] = group(10);\n\t\t\tpermissions[2] = group(11);\n\t\t\ttry {\n\t\t\t\tf.setTimestamp(super.parseTimestamp(datestr));\n\t\t\t}\n\t\t\tcatch (ParseException e) {\n\t\t\t\t// intentionally do nothing\n\t\t\t}\n\n\t\t\tString grp;\n\t\t\tString user;\n\t\t\tStringTokenizer t = new StringTokenizer(owner, \",\");\n\t\t\tswitch (t.countTokens()) {\n\t\t\tcase 1:\n\t\t\t\tgrp = null;\n\t\t\t\tuser = t.nextToken();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgrp = t.nextToken();\n\t\t\t\tuser = t.nextToken();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tgrp = null;\n\t\t\t\tuser = null;\n\t\t\t}\n\n\t\t\tif (name.lastIndexOf(\".DIR\") != -1) {\n\t\t\t\tf.setType(FTPFile.DIRECTORY_TYPE);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tf.setType(FTPFile.FILE_TYPE);\n\t\t\t}\n\t\t\t// set FTPFile name\n\t\t\t// Check also for versions to be returned or not\n\t\t\tif (isVersioning()) {\n\t\t\t\tf.setName(name);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tname = name.substring(0, name.lastIndexOf(\";\"));\n\t\t\t\tf.setName(name);\n\t\t\t}\n\t\t\t// size is retreived in blocks and needs to be put in bytes\n\t\t\t// for us humans and added to the FTPFile array\n\t\t\tlong sizeInBytes = Long.parseLong(size) * longBlock;\n\t\t\tf.setSize(sizeInBytes);\n\n\t\t\tf.setGroup(grp);\n\t\t\tf.setUser(user);\n\t\t\t// set group and owner\n\n\t\t\t// Set file permission.\n\t\t\t// VMS has (SYSTEM,OWNER,GROUP,WORLD) users that can contain\n\t\t\t// R (read) W (write) E (execute) D (delete)\n\n\t\t\t// iterate for OWNER GROUP WORLD permissions\n\t\t\tfor (int access = 0; access < 3; access++) {\n\t\t\t\tString permission = permissions[access];\n\n\t\t\t\tf.setPermission(access, FTPFile.READ_PERMISSION, permission.indexOf('R') >= 0);\n\t\t\t\tf.setPermission(access, FTPFile.WRITE_PERMISSION, permission.indexOf('W') >= 0);\n\t\t\t\tf.setPermission(access, FTPFile.EXECUTE_PERMISSION, permission.indexOf('E') >= 0);\n\t\t\t}\n\n\t\t\treturn f;\n\t\t}\n\t\treturn null;\n\t}",
"public void moveEntry (String oldPath, String newPath) throws IOException\n\t{\n\t\tString alt = prepareLocation (oldPath);\n\t\tString neu = prepareLocation (newPath);\n\t\t\n\t\tArchiveEntry entry = getEntryByLocation (alt);\n\t\tif (entry == null)\n\t\t\tthrow new IOException (\"no such entry in archive\");\n\t\t\n\t\tboolean wasMain = mainEntries.contains (entry);\n\t\tentries.remove (alt);\n\t\t\n\t\tPath neuPath = zipfs.getPath (neu).normalize ();\n\t\tFiles.createDirectories (neuPath.getParent ());\n\t\tFiles.move (zipfs.getPath (alt).normalize (), neuPath,\n\t\t\tStandardCopyOption.ATOMIC_MOVE);\n\t\tArchiveEntry newEntry = new ArchiveEntry (this, neuPath,\n\t\t\tentry.getFormat ());\n\t\t\n\t\tentries.put (neu, newEntry);\n\t\tif (wasMain)\n\t\t{\n\t\t\taddMainEntry (newEntry);\n\t\t}\n\t\t\n\t\t// move meta data\n\t\tList<MetaDataObject> meta = entry.getDescriptions ();\n\t\tfor (MetaDataObject m : meta)\n\t\t{\n\t\t\tnewEntry.addDescription (m);\n\t\t}\n\t\t\n\t}",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format)\n\t\tthrows IOException\n\t{\n\t\treturn addEntry (toInsert, targetName, format, false);\n\t}",
"private void createD64DirectoryEntry( DirectoryEntry directoryEntry, List<Sector> usedSectors) {\n\n\t// Get the position of the new directory entry to create.\n\t// Just count the existing known directory entries for now.\n\tint newEntryPos = getDirectory().getDirectoryEntries().size();\n\n\t// A d64 directory sector has 8 entries per sector, so calculate the sector and offset.\n\tint entrySector = 1 + newEntryPos / 8;\n\tint entryOffset = 32 * ( newEntryPos % 8);\n\n\t// Fetch the sector with the directory entries.\n\tSector directorySector = getSector( 18, entrySector); // Sector 0 contains the BAM.\n\n\t// Check, if the filename is C= compliant.\n\tif( ! directoryEntry.getFileName().endsWith( \".PRG\")) {\n\n\t System.err.println( \"Can only store .PRG files for now\");\n\n\t return;\n\t}\n\n\t// Remove the suffix of the filename.\n\tString filename = directoryEntry.getFileName();\n\tfilename = filename.substring( 0, filename.indexOf( \".PRG\"));\n\tif( filename.length() > 16) { // Cut the filename to 16 characters.\n\t filename = filename.substring( 0, 16);\n\t}\n\n\t// Now set the data of the entry.\n\tdirectorySector.setDataByte( entryOffset + 2, (byte)0x82); // Set type to .prg\n\t\n\t// Copy the name into the directory.\n\tint currentCharIndex = 5;\n\tfor( char currentChar : filename.toCharArray()) {\n\n\t directorySector.setDataByte( currentCharIndex++, CharsetUtils.getInstance().ascii2petscii( currentChar));\n\t}\n\n\t// Pad the file with 0xa0, if it is too short.\n\twhile( currentCharIndex < 20) {\n\t directorySector.setDataByte( currentCharIndex++, (byte)0xa0);\n\t}\n\t \n\t// Set the position of the first sector.\n\tdirectorySector.setDataByte( 3, (byte)( usedSectors.get( 0).getTrackIndex()));\n\tdirectorySector.setDataByte( 4, (byte)( usedSectors.get( 0).getSectorIndex()));\n\n\t// Set the length of the file.\n\tdirectorySector.setDataByte( 0x1e, (byte)( usedSectors.size() % 256));\n\tdirectorySector.setDataByte( 0x1f, (byte)( usedSectors.size() / 256));\n }",
"private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }",
"protected File createZipArchive(File directoryToZip, String modpackName, String workspace) throws Exception {\n zipName = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\")) + \"--\" + modpackName + \".zip\";\n uploadStatus = \"Creating Zipfile from Directory\";\n File zipFile = new File(workspace + \"\\\\\" + zipName);\n try {\n ProgressBarLogic progressBarLogic = new ProgressBarLogic(directoryToZip);\n ZipUtil.pack(directoryToZip, zipFile, name -> {\n uploadStatus = \"Adding file: \" + name + \" to the zip\";\n progressBarLogic.progressPercentage = 0;\n progressBarLogic.progress.add(name);\n progressBarLogic.calculateProgress(progressBarLogic.progress);\n notifyObserver();\n return name;\n });\n } catch (ZipException e) {\n throw e;\n } catch (Exception e) {\n System.out.println(e);\n }\n return zipFile;\n }",
"interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This name is used as the value of the <code>innerEntryName</code>\n * property if a <code>File</code> instance denotes an archive file.\n * <p>\n * This constant may be safely used for identity comparison.\n */\n String ROOT_NAME = \"\";\n}",
"static void unzip(String zipFilePath, String destDirectory, boolean recursive, boolean teacherZip) throws IOException {\n\n if (students == null) {\n students = new ArrayList<Student>();\n }\n\n ZipInputStream zipIn = null;\n\n try {\n zipIn = new ZipInputStream(new FileInputStream(zipFilePath));\n ZipEntry entry = zipIn.getNextEntry();\n\n // iterates over entries in the zip file\n while (entry != null) {\n createFiles(destDirectory, zipIn, entry, recursive);\n\n zipIn.closeEntry();\n entry = zipIn.getNextEntry();\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (zipIn != null) {\n zipIn.close();\n }\n }\n }",
"private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }",
"void importDivision(Connection con, ZipFile zip) throws Exception;",
"public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}",
"protected NestedJarHandler(VFSContext context, VirtualFileHandler parent, JarFile parentJar, ZipEntry entry, URL original, File temp, String entryName)\n throws IOException\n {\n super(context, parent, temp.toURL(), createTempJar(temp, parentJar, entry), entry, entryName);\n\n try\n {\n setPathName(getChildPathName(entryName, false));\n setVfsUrl(getChildVfsUrl(entryName, false));\n }\n catch (URISyntaxException e)\n {\n throw new RuntimeException(e);\n }\n\n this.temp = temp;\n\n try\n {\n initJarFile();\n }\n catch (IOException old)\n {\n // Fix the context of the error message\n IOException e = new IOException(\"Error opening jar file: \" + original + \" reason=\" + old.getMessage());\n e.setStackTrace(old.getStackTrace());\n throw e;\n }\n }",
"private void processZipEntries(List<ZipEntry> contents, String prefix, int depth) throws SAXException {\r\n if (depth > 0) {\r\n // Get the zip-entries at this level.\r\n ArrayList<Map.Entry<String, ZipEntry>> level = new ArrayList<Map.Entry<String, ZipEntry>>();\r\n for (ZipEntry entry : contents) {\r\n String name = entry.getName();\r\n if (name.length() > prefix.length() && name.startsWith(prefix)) { // Entry is below this level.\r\n name = name.substring(prefix.length());\r\n // Names of files and directories at this level contain no '/' or '/' at the end.\r\n if ((name.indexOf('/') + 1) % name.length() == 0) {\r\n level.add(new AbstractMap.SimpleImmutableEntry<String, ZipEntry>(name, entry));\r\n }\r\n }\r\n }\r\n // Do sorting of the level, if required.\r\n if (sort.equals(\"name\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? o2.getKey().compareTo(o1.getKey())\r\n : o1.getKey().compareTo(o2.getKey());\r\n }\r\n });\r\n } else if (sort.equals(\"size\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getSize(), o1.getValue().getSize())\r\n : Long.compare(o1.getValue().getSize(), o2.getValue().getSize());\r\n }\r\n });\r\n } else if (sort.equals(\"lastmodified\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getTime(), o1.getValue().getTime())\r\n : Long.compare(o1.getValue().getTime(), o2.getValue().getTime()) ;\r\n }\r\n });\r\n }\r\n // Output nodes in this level.\r\n for (Map.Entry<String, ZipEntry> entry : level) {\r\n if (isIncluded(entry.getKey()) && !isExcluded(entry.getKey())) {\r\n if (entry.getValue().isDirectory()) {\r\n startNode(DIR_NODE_NAME, entry);\r\n processZipEntries(contents, entry.getValue().getName(), depth - 1);\r\n endNode(DIR_NODE_NAME);\r\n } else {\r\n startNode(FILE_NODE_NAME, entry);\r\n endNode(FILE_NODE_NAME);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"public CombineArchive (File zipFile)\n\t\tthrows IOException,\n\t\t\tJDOMException,\n\t\t\tParseException,\n\t\t\tCombineArchiveException\n\t{\n\t\tinit (zipFile, false);\n\t}",
"public TarArchiveEntry setName(String name) {\n this.name = ArchiveUtils.normalizeFileName(name, false);\n this.isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n return this;\n }",
"public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}",
"public Entry(String n)\n {\n name = n;\n }",
"private Map<String, List<ZipEntry>> parseLocalFileHeaderData(List<ZipEntry> entries) {\n /** Maps String to list of ZipEntrys, name -> actual entries. */\n Map<String, List<ZipEntry>> nameMap = new LinkedHashMap<>();\n\n for (ZipEntry entry : entries) {\n long offset = entry.getLocalHeaderOffset();\n archive.position(offset + ZipConstants.LOCNAM);\n\n // Gets the data offset of this entry.\n int fileNameLen = getShort();\n int extraFieldLen = getShort();\n long dataOffset = offset + ZipConstants.LOCEXT + ZipConstants.SHORT_BYTE_SIZE\n + fileNameLen + extraFieldLen;\n entry.setDataOffset(dataOffset);\n\n // Puts the entry into the nameMap.\n String name = entry.getName();\n List<ZipEntry> entriesWithTheSameName;\n if (nameMap.containsKey(name)) {\n entriesWithTheSameName = nameMap.get(name);\n } else {\n entriesWithTheSameName = new ArrayList<>();\n nameMap.put(name, entriesWithTheSameName);\n }\n entriesWithTheSameName.add(entry);\n }\n\n return nameMap;\n }",
"public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}",
"private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }",
"public AddFileToZip add(final File source) {\n\t\treturn new AddFileToZip(source);\n\t}",
"public static void extractAndSaveFile(ZipInputStream zip,\n \t\t\tFileOutputStream destinationFile) throws IOException {\n \t\tByteArrayOutputStream out = readZipEntry(zip);\n \t\tdestinationFile.write(out.toByteArray());\n \t\tout.close();\n \t\tdestinationFile.close();\n \t}",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public void add(FileSystemEntry entry);",
"public AccountInfo(GenericEntry entry) { \n completedDate = checkDateAndParse(entry.getProperty(\"completedDate\"));\n requestDate = checkDateAndParse(entry.getProperty(\"requestDate\"));\n expiredDate = checkDateAndParse(entry.getProperty(\"expiredDate\"));\n requestId = entry.getProperty(\"requestId\");\n userEmailAddress = entry.getProperty(\"userEmailAddress\");\n adminEmailAddress = entry.getProperty(\"adminEmailAddress\");\n status = entry.getProperty(\"status\");\n \n numberOfFiles =\n entry.getProperty(\"numberOfFiles\") != null ? Integer.parseInt(entry\n .getProperty(\"numberOfFiles\")) : numberOfFiles;\n\n if (numberOfFiles > 0) {\n fileUrls = new String[numberOfFiles];\n for (int fileIndex = 0; fileIndex < numberOfFiles; fileIndex++) {\n fileUrls[fileIndex] = entry.getProperty(\"fileUrl\" + fileIndex);\n }\n }\n }"
]
| [
"0.75653917",
"0.7016932",
"0.6951686",
"0.6754343",
"0.647441",
"0.6390411",
"0.638607",
"0.6385221",
"0.6305168",
"0.61948824",
"0.6138858",
"0.60262877",
"0.602088",
"0.5962157",
"0.5939604",
"0.59145206",
"0.5839792",
"0.5806773",
"0.58039635",
"0.57996976",
"0.57845575",
"0.5737868",
"0.5681511",
"0.56630147",
"0.5645471",
"0.56243277",
"0.56232625",
"0.557149",
"0.554561",
"0.5528528",
"0.55211234",
"0.5521086",
"0.55006415",
"0.54976994",
"0.5482957",
"0.54823065",
"0.54705715",
"0.5450583",
"0.5449026",
"0.54244924",
"0.5421214",
"0.54200673",
"0.53938425",
"0.53840286",
"0.5350562",
"0.53296834",
"0.5310314",
"0.53062946",
"0.5301465",
"0.5259617",
"0.5257236",
"0.52494127",
"0.5229973",
"0.52195346",
"0.52167636",
"0.51883334",
"0.5173939",
"0.51128715",
"0.5106652",
"0.50856125",
"0.50853574",
"0.5085327",
"0.5083527",
"0.5083036",
"0.5080368",
"0.50647414",
"0.50631714",
"0.505576",
"0.5047029",
"0.5045707",
"0.50409186",
"0.5033378",
"0.5019278",
"0.5013322",
"0.50062376",
"0.50002176",
"0.4994827",
"0.49890482",
"0.49855006",
"0.49595466",
"0.49571306",
"0.49564612",
"0.4943605",
"0.49346164",
"0.49322835",
"0.49290037",
"0.49062535",
"0.49040776",
"0.49001804",
"0.4892751",
"0.48894048",
"0.48881987",
"0.4876813",
"0.4873166",
"0.48611438",
"0.4851173",
"0.4848354",
"0.4841588",
"0.4836352",
"0.48338804"
]
| 0.63340276 | 8 |
Creates a new zip entry taking some information from the given file and using the provided name. The name will be adjusted to end with a forward slash "/" if the file is a directory. If the file is not a directory a potential trailing forward slash will be stripped from the entry name. | public ZipArchiveEntry(final File inputFile, final String entryName) {
this(inputFile.isDirectory() && !entryName.endsWith("/") ? entryName + "/" : entryName);
if (inputFile.isFile()) {
setSize(inputFile.length());
}
setTime(inputFile.lastModified());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TarEntry CreateEntry(String name);",
"private String generateZipEntry(String file) {\n return file.substring(srcFolder.length() + 1, file.length());\n }",
"public ZipArchiveEntry(final String name) {\n super(name);\n setName(name);\n }",
"TarEntry CreateEntryFromFile(String fileName);",
"private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}",
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }",
"protected void createFile (ZipFile file, ZipEntry entry, File target)\n {\n if (_buffer == null) {\n _buffer = new byte[COPY_BUFFER_SIZE];\n }\n\n // make sure the file's parent directory exists\n File pdir = target.getParentFile();\n if (!pdir.exists() && !pdir.mkdirs()) {\n log.warning(\"Failed to create parent for '\" + target + \"'.\");\n }\n\n try (InputStream in = file.getInputStream(entry);\n FileOutputStream fout = new FileOutputStream(target)) {\n\n int total = 0, read;\n while ((read = in.read(_buffer)) != -1) {\n total += read;\n fout.write(_buffer, 0, read);\n updateProgress(total);\n }\n\n } catch (IOException ioe) {\n log.warning(\"Error creating '\" + target + \"': \" + ioe);\n }\n }",
"public final TarEntry CreateEntry(String name)\n\t\t{\n\t\t\treturn TarEntry.CreateTarEntry(name);\n\t\t}",
"public TarArchiveEntry(String name) {\n this(name, false);\n }",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\ttargetName = prepareLocation (targetName);\n\t\t\n\t\tif (targetName.equals (MANIFEST_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + MANIFEST_LOCATION);\n\t\t\n\t\tif (targetName.equals (METADATA_LOCATION))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file \" + METADATA_LOCATION);\n\t\t\n\t\t// we also do not allow files with names like metadata-[0-9]*.rdf\n\t\tif (targetName.matches (\"^/metadata-[0-9]*\\\\.rdf$\"))\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\"it's not allowed to name a file like metadata-[0-9]*.rdf\");\n\t\t\n\t\t// insert to zip\n\t\tPath insertPath = zipfs.getPath (targetName).normalize ();\n\t\tFiles.createDirectories (insertPath.getParent ());\n\t\tFiles.copy (toInsert.toPath (), insertPath, Utils.COPY_OPTION);\n\t\t\n\t\tArchiveEntry entry = new ArchiveEntry (this, insertPath, format);\n\t\tentries.put (entry.getFilePath (), entry);\n\t\t\n\t\tif (mainEntry)\n\t\t{\n\t\t\tLOGGER.debug (\"setting main entry:\");\n\t\t\taddMainEntry (entry);\n\t\t}\n\t\t\n\t\treturn entry;\n\t}",
"public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}",
"private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }",
"public final TarEntry CreateEntryFromFile(String fileName)\n\t\t{\n\t\t\treturn TarEntry.CreateEntryFromFile(fileName);\n\t\t}",
"public ArchiveEntry addEntry (File toInsert, String targetName, URI format)\n\t\tthrows IOException\n\t{\n\t\treturn addEntry (toInsert, targetName, format, false);\n\t}",
"public ZipArchiveEntry(final java.util.zip.ZipEntry entry) throws ZipException {\n super(entry);\n setName(entry.getName());\n final byte[] extra = entry.getExtra();\n if (extra != null) {\n setExtraFields(ExtraFieldUtils.parse(extra, true, ExtraFieldUtils.UnparseableExtraField.READ));\n } else {\n setExtra();\n }\n setMethod(entry.getMethod());\n this.size = entry.getSize();\n }",
"public ZipURLConnection(URL url, File file, String zipEntryName) {\r\n super(url);\r\n\r\n this.file = file;\r\n this.zipEntryName = zipEntryName;\r\n }",
"public TarArchiveEntry setName(String name) {\n this.name = ArchiveUtils.normalizeFileName(name, false);\n this.isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n return this;\n }",
"public ArchiveEntry addEntry (File baseDir, File file, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, mainEntry);\n\t}",
"private void createJarFile(File target, Map<String, String> jarEntries) throws IOException\n {\n if (!target.exists())\n {\n target.createNewFile();\n }\n\n // Create the ZIP file\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target)))\n {\n for (String entryName : jarEntries.keySet())\n {\n // Add ZIP entry to output stream at the given location.\n out.putNextEntry(new ZipEntry(entryName));\n // Write the file contents to this entry and close\n out.write(jarEntries.get(entryName).getBytes(Charset.defaultCharset()));\n out.closeEntry();\n }\n }\n }",
"private static Entry<String, Item> entry(String fileName) {\n Entry<String, Item> entry = new Entry<String, Item>();\n entry.setKey(fileName);\n entry.setData(item(fileName));\n return entry;\n }",
"protected void attachFile(final File source, final String name) {\n try {\n final ZipEntry ze = new ZipEntry(name);\n _zip.putNextEntry(ze);\n final byte[] buffer = new byte[4096];\n try (FileInputStream in = new FileInputStream(source)) {\n int bytes;\n while ((bytes = in.read(buffer)) > 0) {\n _zip.write(buffer, 0, bytes);\n }\n }\n _zip.closeEntry();\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't write \" + name + \" to ZIP file\", e);\n }\n }",
"public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}",
"public NestedZipFile(String name) throws IOException {\n this(new File(name));\n }",
"private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }",
"FileInfo create(FileInfo fileInfo);",
"public Entry(String n)\n {\n name = n;\n }",
"private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }",
"void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addDirectoryToZip(file, _out);\n } else {\n assert false;\n }\n }",
"private static JarFile createTempJar(File temp, JarFile parentJar, ZipEntry entry) throws IOException\n {\n InputStream inputStream = parentJar.getInputStream(entry);\n try\n {\n FileOutputStream outputStream = new FileOutputStream(temp);\n try\n {\n byte[] buffer = new byte[8096];\n int read = inputStream.read(buffer);\n while (read != -1)\n {\n outputStream.write(buffer, 0, read);\n read = inputStream.read(buffer);\n }\n }\n finally\n {\n outputStream.close();\n }\n }\n finally\n {\n try\n {\n inputStream.close();\n }\n catch (IOException ignored)\n {\n }\n }\n \n return new JarFile(temp);\n }",
"protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n warnedMkDir = true;\n zipName = zipName.substring(1);\n }\n // if a directory, just return. We mkdir for every file,\n // since some widely-used Zip creators don't put out\n // any directory entries, or put them in the wrong place.\n if (zipName.endsWith(\"/\")) {\n return;\n }\n // Else must be a file; open the file for output\n // Get the directory part.\n int ix = zipName.lastIndexOf('/');\n if (ix > 0) {\n //String dirName = zipName.substring(0, ix);\n String fileName = zipName.substring(ix + 1, zipName.length());\n zipName = fileName;\n\n }\n String targetFile = this.unzipFileTargetLocation;\n File file = new File(targetFile);\n if (!file.exists())\n file.createNewFile();\n FileOutputStream os = null;\n InputStream is = null;\n try {\n os = new FileOutputStream(targetFile);\n is = zippy.getInputStream(e);\n int n = 0;\n while ((n = is.read(b)) > 0)\n os.write(b, 0, n);\n\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }\n break;\n case LIST:\n // Not extracting, just list\n if (e.isDirectory()) {\n System.out.println(\"Directory \" + zipName);\n } else {\n System.out.println(\"File \" + zipName);\n }\n break;\n default:\n throw new IllegalStateException(\"mode value (\" + mode + \") bad\");\n }\n }",
"public static void generateZip(File file) {\r\n\t\t\r\n\t\tFile zipfile=new File(file.toString().replaceAll(\".xlsx\",\".zip\" ));\r\n\t\tFileOutputStream fos=null;\r\n\t\tZipOutputStream zos=null;\r\n\t\tFileInputStream fin=null;\r\n\t\tZipEntry ze=null; \r\n\t\t\t\r\n\t\tif(!zipfile.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tzipfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//create ZipOutputStream to write to the zipfile\r\n fos=new FileOutputStream(zipfile);\r\n\t\t\t zos=new ZipOutputStream(fos);\r\n\t\t\t \r\n\t\t//add a new Zip Entry to the ZipOutPutStream \r\n\t\t\t ze=new ZipEntry(file.getName());\r\n\t\t\t zos.putNextEntry(ze);\r\n\t\t\t \r\n\t\t//read the file and write to the ZipOutPutStream\t \r\n\t\t\t fin=new FileInputStream(file);\r\n\t\t\t int i;\r\n\t\t\t \r\n\t\t\t while((i=fin.read())!=-1){\r\n\t\t\t\t zos.write(i);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\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}finally{\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(zos!=null && fos!=null && fin!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t //close the zip entry to write to to zip file\r\n\t\t\t\t\t\tzos.closeEntry();\r\n\t\t\t\t\t//close Resources.\t\r\n\t\t\t\t\t\tzos.close();\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tfin.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }",
"private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }",
"public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}",
"private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{\n /*\n First, some notes.\n On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the\n ZipInputStream does not work for compressed (deflated) files. Those calls return -1.\n For uncompressed (stored) files, those calls do work.\n However, using ZipFile.getEntries() works for both compressed and \n uncompressed files.\n \n Now, from some simple testing I did, it seems that the value of CRC-32 is\n independent of the compression setting. So, it should be easy to pass this \n information on to the output entry.\n */\n String name = inputEntry .getName();\n if ( ! (inputEntry .isDirectory() || name .endsWith( \".class\" )) ) {\n try {\n InputStream input = zip.getInputStream( zip .getEntry( name ) );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n name = className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n ZipEntry outputEntry = new ZipEntry( name );\n outputEntry.setTime(inputEntry .getTime() );\n outputEntry.setExtra(inputEntry.getExtra());\n outputEntry.setComment(inputEntry.getComment());\n outputEntry.setTime(inputEntry.getTime());\n if (compression){\n outputEntry.setMethod(ZipEntry.DEFLATED);\n //Note, don't need to specify size or crc for compressed files.\n } else {\n outputEntry.setMethod(ZipEntry.STORED);\n outputEntry.setCrc(inputEntry.getCrc());\n outputEntry.setSize(inputEntry.getSize());\n }\n return outputEntry;\n }",
"public NestedZipFile(File file) throws IOException {\n this(file, Charset.defaultCharset());\n }",
"public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}",
"private File createNewFileName(File branch, String fileName)\r\n \t{\r\n \t\ttry {\r\n \r\n \t\t\tString newFileName = branch.getCanonicalFile() + \"/\"+ fileName;\r\n \t\t\tFile newFile= new File(newFileName);\r\n \t\t\t//if this filename already exists\r\n \t\t\tif (newFile.exists())\r\n \t\t\t{\r\n \t\t\t\tString prefix= fileName;\r\n \t\t\t\tString suffix= \"\";\r\n \t\t\t\tString[] parts= fileName.split(\"[.]\");\r\n \t\t\t\tif (parts.length >1)\r\n \t\t\t\t{\r\n \t\t\t\t\tprefix= \"\";\r\n \t\t\t\t\tfor (int i= 0; i < parts.length-1; i++)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif (i==0) prefix= prefix + parts[i];\r\n \t\t\t\t\t\telse prefix= prefix + \".\" + parts[i];\r\n \t\t\t\t\t}\r\n \t\t\t\t\tsuffix= \".\"+parts[parts.length-1];\r\n \t\t\t\t}\t\r\n \t\t\t\tint i= 0;\r\n \t\t\t\t//searching for new name\r\n \t\t\t\twhile(newFile.exists())\r\n \t\t\t\t{\r\n \t\t\t\t\tnewFileName= branch.getCanonicalFile() + \"/\"+ prefix+ \"_\"+i+suffix;\r\n \t\t\t\t\tnewFile= new File(newFileName);\r\n \t\t\t\t\ti++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\treturn(newFile);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new ExternalFileMgrException(e);\r\n \t\t}\r\n \t}",
"TarEntry CreateEntry(byte[] headerBuffer);",
"private static String createZipFile(String directory, String zipFilename, List<File> filesToAdd)\n throws IOException {\n String zipFilePath = String.format(\"%s/%s\", directory, zipFilename);\n File zipFile = new File(zipFilePath);\n if (zipFile.exists()) {\n if (zipFile.delete()) {\n log.info(\"Zipfile existed and was deleted: \" + zipFilePath);\n } else {\n log.warn(\"Zipfile exists but was not deleted: \" + zipFilePath);\n }\n }\n\n // Create and add files to zip file\n addFilesToZip(zipFile, filesToAdd);\n\n return zipFilePath;\n }",
"public NestedZipFile(String name, Charset charset) throws IOException {\n this(new File(name), charset);\n }",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException {\n this((java.util.zip.ZipEntry) entry);\n setInternalAttributes(entry.getInternalAttributes());\n setExternalAttributes(entry.getExternalAttributes());\n setExtraFields(getAllExtraFieldsNoCopy());\n setPlatform(entry.getPlatform());\n final GeneralPurposeBit other = entry.getGeneralPurposeBit();\n setGeneralPurposeBit(other == null ? null : (GeneralPurposeBit) other.clone());\n }",
"protected void setName(String name) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b\");\n if (name != null && getPlatform() == PLATFORM_FAT && !name.contains(\"/\")) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6d8baf11-928b-4d13-a982-c28e6d5c3bb7\");\n name = name.replace('\\\\', '/');\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e80bbe2d-caf4-4e25-b64c-8fef2f2969dd\");\n this.name = name;\n }",
"public void add(FileSystemEntry entry);",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }",
"public static void m97139a(File file, ZipOutputStream zipOutputStream, String str) throws IOException {\n if (file.exists()) {\n if (file.isDirectory()) {\n String name = file.getName();\n if (!name.endsWith(File.separator)) {\n name = name + File.separator;\n }\n if (!TextUtils.isEmpty(str)) {\n name = str + name;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n zipOutputStream.putNextEntry(new ZipEntry(name));\n zipOutputStream.closeEntry();\n return;\n }\n for (File file2 : listFiles) {\n m97139a(file2, zipOutputStream, name);\n }\n return;\n }\n zipOutputStream.putNextEntry(new ZipEntry(TextUtils.isEmpty(str) ? file.getName() : str + file.getName()));\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[4096];\n while (true) {\n int read = fileInputStream.read(bArr);\n if (read != -1) {\n zipOutputStream.write(bArr, 0, read);\n } else {\n zipOutputStream.flush();\n fileInputStream.close();\n zipOutputStream.closeEntry();\n return;\n }\n }\n } else {\n return;\n }\n throw th;\n }",
"public ArchiveEntry replaceFile (File toInsert, ArchiveEntry oldEntry)\n\t\tthrows IOException\n\t{\n\t\taddEntry (toInsert, oldEntry.getFilePath (), oldEntry.getFormat (), false);\n\t\tentries.put (oldEntry.getFilePath (), oldEntry);\n\t\treturn oldEntry;\n\t}",
"private ZipEntry getEntry(JarFile jarFile, String dir) {\n if (!dir.endsWith(\"/\")) {\n dir = dir + '/';\n }\n return jarFile.getEntry(dir + getConfigFilename(key));\n }",
"public Entry(String name, String shortName, String wkn)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.shortName = shortName;\r\n\t\tthis.wkn = wkn;\r\n\t\tdeletedFlag = false;\r\n\t}",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"private String getEntryName( File file, String prefix ) {\n String name = file .getName();\n if ( ! name .endsWith( \".class\" ) ) {\n // see if the file is in fact a .class file, and determine its actual name.\n try {\n InputStream input = new FileInputStream( file );\n String className = ClassNameReader .getClassName( input );\n input .close();\n if ( className != null ) {\n return className .replace( '.', '/' ) + \".class\";\n }\n } catch( IOException ioe ) {}\n }\n System.out.println(\"From \" + file.getPath() + \" and prefix \" + prefix + \", creating entry \" + prefix+name);\n return (prefix + name);\n }",
"public static ZipFile zip(File zip, File fileToAdd, String password)\r\n\t\t\tthrows ZipException {\n\t\tZipFile zipFile = new ZipFile(zip);\r\n\r\n\t\tZipParameters parameters = new ZipParameters();\r\n\t\tparameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\r\n\t\tparameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);\r\n\t\tif (!StringUtil.isEmpty(password)) {\r\n\t\t\tparameters.setEncryptFiles(true);\r\n\t\t\tparameters.setEncryptionMethod(Zip4jConstants.ENC_METHOD_STANDARD);\r\n\t\t\tparameters.setPassword(password);\r\n\t\t}\r\n\t\tzipFile.addFile(fileToAdd, parameters);\r\n\t\treturn zipFile;\r\n\t}",
"public ZipFileWriter(String zipFile) throws FileNotFoundException {\r\n\t\tFileOutputStream fos = new FileOutputStream(zipFile);\r\n\t\t// ajout du checksum\r\n\t\tCheckedOutputStream checksum = new CheckedOutputStream(fos,\r\n\t\t\t\tnew Adler32());\r\n\t\tthis.zos = new ZipOutputStream(new BufferedOutputStream(checksum));\r\n\t}",
"private Entry createEntry(String pattern) {\n\t\tEntry entry = null;\n\n\t\tif (pattern != null) {\n\t\t\tString item = pattern.trim();\n\t\t\tif (item.length() > 0) {\n\t\t\t\tentry = new Entry();\n\t\t\t\tentry.result = !item.startsWith(\"-\");\n\t\t\t\tentry.partial = item.endsWith(\".\");\n\t\t\t\tentry.classpath = entry.result ? item : item.substring(1).trim();\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public void newEntry(String file, User user) {\r\n TableEntry entry = new TableEntry();\r\n entry.fileName = file;\r\n entry.userName = user.getName();\r\n entry.date = DateUtils.getISO8601Date(System.currentTimeMillis());\r\n \r\n int sz = m_entries.size();\r\n if ( (MAX_SIZE > 0) && (sz >= MAX_SIZE) ) {\r\n clear();\r\n sz = 0;\r\n }\r\n \r\n synchronized(m_entries) {\r\n m_entries.add(entry);\r\n ++sz;\r\n }\r\n fireTableRowsInserted(sz, sz);\r\n }",
"public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }",
"private static String getEntryName(File source, File file) throws IOException {\n\t\tint index = source.getAbsolutePath().length() + 1;\n\t\tString path = file.getCanonicalPath();\n\n\t\treturn path.substring(index);\n\t}",
"public static ToscaServiceTemplate decodeFile(String zipEntryName, InputStream entryData) throws CoderException {\n ToscaServiceTemplate toscaServiceTemplate = null;\n if (zipEntryName.endsWith(\".json\")) {\n toscaServiceTemplate = coder.decode(entryData, ToscaServiceTemplate.class);\n } else if (zipEntryName.endsWith(\".yml\")) {\n toscaServiceTemplate = yamlCoder.decode(entryData, ToscaServiceTemplate.class);\n }\n return toscaServiceTemplate;\n }",
"private void addFile( ZipOutputStream output, File file, String prefix, boolean compress) throws IOException {\n //Make sure file exists\n long checksum = 0;\n if ( ! file .exists() ) {\n return ;\n }\n ZipEntry entry = new ZipEntry( getEntryName( file, prefix ) );\n entry .setTime( file .lastModified() );\n entry .setSize( file .length() );\n if (! compress){\n entry.setCrc(calcChecksum(file));\n }\n FileInputStream input = new FileInputStream( file );\n addToOutputStream(output, input, entry);\n }",
"public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}",
"@Override\n public String toString() {\n return \"ZipFile '\" + getName() + \"'\";\n }",
"@Override\r\n\tpublic void zipFile(ZipFileDetails zipFileDetails) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\", null, Level.ERROR, null);\r\n\r\n\t}",
"public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}",
"public NestedZipFile(File file, int mode, Charset charset) throws IOException {\n super(getEmbeddedZipFile(file), mode, charset);\n }",
"public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }",
"public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}",
"interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This name is used as the value of the <code>innerEntryName</code>\n * property if a <code>File</code> instance denotes an archive file.\n * <p>\n * This constant may be safely used for identity comparison.\n */\n String ROOT_NAME = \"\";\n}",
"private String dumpZipEntry(ZipEntry ze) {\r\n StringBuffer sb = new StringBuffer();\r\n if (ze.isDirectory()) {\r\n sb.append(\"d \");\r\n } else {\r\n sb.append(\"f \");\r\n }\r\n if (ze.getMethod() == ZipEntry.STORED) {\r\n sb.append(\"stored \");\r\n } else {\r\n sb.append(\"defalted \");\r\n }\r\n sb.append(ze.getName());\r\n sb.append(\"\\t\");\r\n sb.append(\"\");\r\n sb.append(ze.getSize());\r\n if (ze.getMethod() == ZipEntry.DEFLATED) {\r\n sb.append(\"/\");\r\n sb.append(ze.getCompressedSize());\r\n }\r\n String str = sb.toString();\r\n sb = null;\r\n\r\n return (str);\r\n }",
"int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;",
"public void addEntry(String name, String postalAddress, String Phone, String email, String note) {\r\n AddressEntry contact = new AddressEntry.Builder(name).postalAddress(postalAddress)\r\n .phoneNumber(Phone).email(email).note(note).build();\r\n insertAlphabeticalOrder(contact);\r\n }",
"public void addFile(String name, IDirectory parent) {\r\n // Create a new file\r\n File newFile = new File(name, (Directory) parent);\r\n ((Directory) parent).addItem(newFile);\r\n }",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"private DirDetailsForWrite fileWithDirListingEntry(String fileName, Block root, int rootIndex) {\n\t\tint slashIndex = fileName != null ? fileName.indexOf(\"/\") : Constants.NEGATIVE;\n\t\tString first = null;\n\t\tString second = null;\n\t\tDirEntryDetails dirEntryDetails = null;\n\t\tDirDetailsForWrite dirDetailsForWrite = null;\n\t\t\n\t\tif(slashIndex > 0) {\n\t\t\tsecond = fileName.substring(slashIndex+1);\n\t\t\tfirst = fileName.substring(0, slashIndex);\n\t\t\t\n\t\t\tdirEntryDetails = ((Directory)root).containDirEntryByName(first);\n\t\t\t//dirDetailsForWrite = new DirDetailsForWrite();\n\t\t\t//dirDetailsForWrite.setDirEntryDetails(dirEntryDetails);\n\t\t\t//dirDetailsForWrite.setRootIndex(rootIndex);\n\t\t\t\n\t\t\treturn fileWithDirListingEntry(second, sector.get(dirEntryDetails.getLink()), dirEntryDetails.getLink());\n\t\t} else {\n\t\t\tdirEntryDetails = ((Directory)root).containDirEntryByName(fileName);\n\t\t\t\n\t\t\tdirDetailsForWrite = new DirDetailsForWrite();\n\t\t\tdirDetailsForWrite.setDirEntryDetails(dirEntryDetails);\n\t\t\tdirDetailsForWrite.setRootIndex(rootIndex);\n\t\t\t\n\t\t\tif(dirEntryDetails != null)\n\t\t\t\treturn dirDetailsForWrite;\n\t\t}\n\t\treturn null;\n\t}",
"private void renameFileInZip(final File zipFilePath, final String fileNameToRename,\n final String newFileName) throws IOException {\n Map<String, String> zip_properties = new HashMap<>();\n /* We want to read an existing ZIP File, so we set this to False */\n zip_properties.put(\"create\", \"false\");\n\n /* Specify the path to the ZIP File that you want to read as a File System */\n URI zip_disk = URI.create(\"jar:file:///\" + zipFilePath);\n\n /* Create ZIP file System */\n try (FileSystem zipfs = FileSystems.newFileSystem(zip_disk, zip_properties)) {\n /* Access file that needs to be renamed */\n Path pathInZipfile = zipfs.getPath(fileNameToRename);\n /* Specify new file name */\n Path renamedZipEntry = zipfs.getPath(newFileName);\n /* Execute rename */\n Files.move(pathInZipfile, renamedZipEntry, ATOMIC_MOVE);\n //System.out.println(pathInZipfile + \"File successfully renamed to \" + renamedZipEntry);\n }\n\n }",
"@Override\n public void addSingleFile(FileInfo file) {\n }",
"public void addEntry(NameSurferEntry entry) {\r\n\t\tentries.add(entry);\r\n\t}",
"private ZipEntry parseCentralDirectoryEntry() throws IOException {\n // Positions the archive at the \"compressed size\" and read the value.\n skipBytes(ZipConstants.CENSIZ - ZipConstants.CENVEM);\n long compressSize = getInt();\n\n // Positions the archive at the \"filename length\" and read the value.\n skipBytes(ZipConstants.CENNAM - ZipConstants.CENLEN);\n int fileNameLen = getShort();\n\n // Reads the extra field length and the comment length.\n int extraLen = getShort();\n int commentLen = getShort();\n\n // Positions the archive at the \"local file header offset\" and read the value.\n skipBytes(ZipConstants.CENOFF - ZipConstants.CENDSK);\n long localHeaderOffset = getInt();\n\n // Reads the file name.\n byte[] fileNameBuf = new byte[fileNameLen];\n archive.read(ByteBuffer.wrap(fileNameBuf));\n String fileName = new String(fileNameBuf, Charset.forName(\"UTF-8\"));\n\n // Skips the extra field and the comment.\n skipBytes(extraLen + commentLen);\n\n ZipEntry entry = new ZipEntry();\n entry.setSize(compressSize);\n entry.setLocalHeaderOffset(localHeaderOffset);\n entry.setName(fileName);\n\n return entry;\n }",
"public void addEntry(NameSurferEntry entry) {\n\t\tentries.add(entry);\n\t}",
"public void setupZipFile(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\tif (!args[0].endsWith(\".zip\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"zip file expected, but: \" + args[0]);\n\t\t\t}\n\t\t\tbuildDirectory = new File(\n\t\t\t\t\tgetBuildDirectory(),\n\t\t\t\t\tString.valueOf(System.currentTimeMillis()));\n\t\t\ttool_builddir = buildDirectory.toString();\n\t\t\tif (!buildDirectory.mkdirs()) {\n\t\t\t\tLoggedUtils.ignore(\"Unable to create directory \" + tool_builddir, null);\n\t\t\t}\n\t\t\tzipFile = args[0];\n\t\t} else if (requireZipArgument){\n\t\t\tthrow new IllegalArgumentException(\"zip file is expected as a first argument\");\n\t\t}\n\t}",
"public static void validateZipEntry(String entryName, String csarPath)\n throws PolicyDecodingException {\n //\n // Now ensure that there is no path injection\n //\n var path = Path.of(csarPath, entryName).normalize();\n //\n // Throw an exception if path is outside the csar\n //\n if (!path.startsWith(csarPath)) {\n throw new PolicyDecodingException(\"Potential path injection for zip entry \" + entryName);\n }\n }",
"public TarArchiveEntry(String name, byte linkFlag) {\n this(name);\n this.linkFlag = linkFlag;\n if (linkFlag == LF_GNUTYPE_LONGNAME) {\n version = VERSION_GNU_SPACE;\n }\n }",
"protected AppFile createChildAppFile(WebFile aFile)\n{\n // Get basic file info\n String name = aFile.getName(), path = aFile.getPath(); boolean dir = aFile.isDir();\n String type = aFile.getType(); int tlen = type.length();\n\n // Skip hidden files, build dir, child packages\n if(name.startsWith(\".\")) return null;\n //if(dir && _proj!=null && aFile==_proj.getBuildDir()) return null;\n if(_type==FileType.PACKAGE_DIR && dir && tlen==0) return null; // Skip child packages\n \n // Create AppFile\n AppFile fitem = new AppFile(this, aFile);\n //if(dir && _proj!=null && aFile==_proj.getSourceDir() && !aFile.isRoot()) {\n // fitem._type = FileType.SOURCE_DIR; fitem._priority = 1; }\n //else if(_type==FileType.SOURCE_DIR && dir && tlen==0) {\n // fitem._type = FileType.PACKAGE_DIR; fitem._priority = -1; }\n \n // Set priorities for special files\n if(type.equals(\"java\")) fitem._priority = 1;\n if(type.equals(\"snp\")) fitem._priority = 1;\n\n // Otherwise just add FileItem\n return fitem;\n}",
"public void addFile(String fileName) throws FileNotFoundException,\r\n\t\t\tIOException {\r\n\t\tFileInputStream fis = new FileInputStream(fileName);\r\n\t\tint size = 0;\r\n\t\tbyte[] buffer = new byte[2048];\r\n\r\n\t\t// Ajouter une entree à l'archive zip\r\n\t\tFile file = new File(fileName);\r\n\t\tZipEntry zipEntry = new ZipEntry(file.getName());\r\n\t\tthis.zos.putNextEntry(zipEntry);\r\n\r\n\t\t// copier et compresser les données\r\n\t\twhile ((size = fis.read(buffer, 0, buffer.length)) > 0) {\r\n\t\t\tthis.zos.write(buffer, 0, size);\r\n\t\t}\r\n\r\n\t\tthis.zos.closeEntry();\r\n\t\tfis.close();\r\n\t}",
"public NestedZipFile(File file, int mode) throws IOException {\n this(file, mode, Charset.defaultCharset());\n }",
"private void addLibrary(ZipOutputStream out, File file) throws IOException\n\t{\n\t\tString groupId = DEFAULT_LIBRARY_GROUPID; // FIXME\n\t\tString version = DEFAULT_LIBRARY_VERSION; // FIXME\n\t\tString artifactId = file.getName().substring(0, file.getName().lastIndexOf(\".\")); // remove file extension\n\t\t\n\t\tString fileName = \"/localrepo/\" + groupId + \"/\" + artifactId + \"/\" + version + \"/\" + artifactId + \"-\" + version + \".jar\";\n\n\t\tcreateZipEntry(out, fileName, Files.readAllBytes(Paths.get(file.getAbsolutePath())));\n\t}",
"public static ZipEntries from(byte[] zip, Predicate<String> entryNameMatcher, int maxEntrySizeInBytes, boolean throwIfEntryExceedsMaxSize) {\n\n Options options = Options.standard()\n .pathPredicate(entryNameMatcher)\n .maxSize(2 * (long) Math.pow(1024, 3)) // 2 GB\n .maxEntrySize(maxEntrySizeInBytes)\n .maxEntries(1024)\n .truncateEntry(!throwIfEntryExceedsMaxSize);\n List<ZipEntryWithContent> entries = new ArrayList<>();\n try (ArchiveStreamReader reader = ArchiveStreamReader.ofZip(new ByteArrayInputStream(zip), options)) {\n ArchiveFile file;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n while ((file = reader.readNextTo(baos)) != null) {\n entries.add(new ZipEntryWithContent(file.path().toString(),\n Optional.of(baos.toByteArray()).filter(b -> b.length > 0),\n file.size()));\n baos.reset();\n }\n }\n return new ZipEntries(entries);\n }",
"public void createDirectoryEntry(\n TableServiceClient tableServiceClient,\n UUID collectionId,\n String tableName,\n FireStoreDirectoryEntry createEntry) {\n\n tableServiceClient.createTableIfNotExists(tableName);\n TableClient tableClient = tableServiceClient.getTableClient(tableName);\n\n // Walk up the lookup directory path, finding missing directories we get to an\n // existing one\n // We will create the ROOT_DIR_NAME directory here if it does not exist.\n String lookupDirPath = FileMetadataUtils.makeLookupPath(createEntry.getPath());\n for (String testPath = lookupDirPath;\n !testPath.isEmpty();\n testPath = FileMetadataUtils.getDirectoryPath(testPath)) {\n\n // !!! In this case we are using a lookup path\n if (lookupByFilePath(tableServiceClient, collectionId, tableName, testPath) != null) {\n break;\n }\n\n FireStoreDirectoryEntry dirToCreate = FileMetadataUtils.makeDirectoryEntry(testPath);\n String partitionKey = getCollectionPartitionKey(collectionId, testPath);\n String rowKey = encodePathAsAzureRowKey(testPath);\n TableEntity entity = FireStoreDirectoryEntry.toTableEntity(partitionKey, rowKey, dirToCreate);\n logger.info(\"Upserting directory entry for {} in table {}\", testPath, tableName);\n // For file ingest worker flights,\n // It's possible that another thread is trying to write the same directory entity at the same\n // time upsert rather than create so that it does not fail if it already exists\n tableClient.upsertEntity(entity);\n }\n createEntityForPath(tableClient, collectionId, tableName, createEntry);\n }",
"public void touch(String name) throws FileExistsException\n\t{\n\t\tcheckMakeFile(name);\n\t\tFileElement add = new FileElement(name, false);\n\t\tfileSystem.addChild(currentFileElement, add);\n\t}",
"public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}",
"@Override\n\tpublic synchronized void put(String key, Entry entry) {\n\t\tpruneIfNeeded(entry.data.length);\n\t\tFile file = getFileForKey(key);\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tCacheHeader e = new CacheHeader(key, entry);\n\t\t\te.writeHeader(fos);\n\t\t\tfos.write(entry.data);\n\t\t\tfos.close();\n\t\t\tputEntry(key, e);\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t}\n\t\tboolean deleted = file.delete();\n\t\tif (!deleted) {\n\t\t\tVolleyLog.d(\"Could not clean up file %s\",\n\t\t\t\t\tfile.getAbsolutePath());\n\t\t}\n\t}",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"public DataEntry create(long dataEntryId);",
"File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }"
]
| [
"0.6745191",
"0.673225",
"0.6605423",
"0.65116924",
"0.63163453",
"0.6296572",
"0.62744945",
"0.6226748",
"0.6202647",
"0.6043743",
"0.5997963",
"0.599118",
"0.5851728",
"0.5809039",
"0.566509",
"0.5645442",
"0.5636107",
"0.5618253",
"0.55699253",
"0.55165845",
"0.54655224",
"0.5457766",
"0.5451974",
"0.54463625",
"0.5423574",
"0.53854287",
"0.5366881",
"0.5327022",
"0.52932155",
"0.5290779",
"0.5280903",
"0.5239337",
"0.52276766",
"0.52003276",
"0.5184318",
"0.5125452",
"0.51110816",
"0.5084707",
"0.50718874",
"0.5061937",
"0.50398",
"0.50392246",
"0.5000137",
"0.4976492",
"0.49628493",
"0.4951442",
"0.4948347",
"0.4938188",
"0.4910685",
"0.4906113",
"0.49038562",
"0.48811626",
"0.48786277",
"0.48766708",
"0.48677617",
"0.48664767",
"0.48655996",
"0.48298377",
"0.48241478",
"0.48055598",
"0.48002514",
"0.4789189",
"0.4770895",
"0.47486985",
"0.47468972",
"0.47424272",
"0.47419426",
"0.47130275",
"0.47128594",
"0.47114754",
"0.47045827",
"0.470231",
"0.46992856",
"0.46914127",
"0.46824744",
"0.4680671",
"0.46571118",
"0.46456155",
"0.462626",
"0.46201363",
"0.4614737",
"0.4614585",
"0.4604806",
"0.4603861",
"0.45854497",
"0.45825434",
"0.45783177",
"0.45717514",
"0.45666924",
"0.4564411",
"0.4562521",
"0.45615125",
"0.45610195",
"0.456089",
"0.45552647",
"0.45421842",
"0.45417395",
"0.45280555",
"0.45031035",
"0.45021722"
]
| 0.69599277 | 0 |
Returns the compression method of this entry, or 1 if the compression method has not been specified. | @Override
public int getMethod() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "b89def63-26ff-4cb0-98cc-9b6cee3e0e29");
return method;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native int getCompression() throws MagickException;",
"public static PageCompression detectCompressionMethod( HttpResponse response ) {\n\t\tif ( response != null && response.containsHeader( \"Content-Encoding\" ) ) {\n\t\t\tHeader[] headers = response.getHeaders( \"Content-Encoding\" );\n\t\t\tfor ( int i = 0 ; i < headers.length ; i++ ) {\n\t\t\t\tString val = headers[i].getValue().trim();\n\t\t\t\tSystem.out.println( val );\n\t\t\t\tif ( val.equalsIgnoreCase( \"gzip\" ) ) {\n\t\t\t\t\treturn PageCompression.GZIP;\n\t\t\t\t} else if ( val.equalsIgnoreCase( \"deflate\" ) ) {\n\t\t\t\t\treturn PageCompression.DEFLATE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn PageCompression.NOT_COMPRESSED;\n\t}",
"public int getCompressionThreshold() {\r\n return compressionThreshold;\r\n }",
"public DatasetCompression compression() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression();\n }",
"public String getAudioCompressionType() {\n return audioCompressionType;\n }",
"public String getInputCompressionType() {\n return this.inputCompressionType;\n }",
"public boolean isCompressionEnabled() {\r\n return compressionEnabled;\r\n }",
"public boolean getCompress() {\n\t\treturn this.compress;\n\t}",
"public void setContentCompression(String method) {\n this.contentCompression = method;\n }",
"public String getVideoCompressionType() {\n return videoCompressionType;\n }",
"public native void setCompression(int value) throws MagickException;",
"public static String getCompression(HttpServletRequest req) {\n String encoding = req.getHeader(HttpHeaders.ACCEPT_ENCODING);\n if (null != encoding) {\n if (BaseFileServlet.GZIP_PATTERN.matcher(encoding).find()) {\n return \"gzip\";\n //} else if (BR_PATTERN.matcher(encoding).find()) {\n // return \"br\";\n }\n }\n return \"none\";\n }",
"public boolean isCompressed() {\r\n return gzipOp != null;\r\n }",
"public String getCompressorName()\n {\n return useCompression() ? compressor.getClass().getSimpleName() : \"none\";\n }",
"public boolean useCompression()\n {\n return compressor != null;\n }",
"default boolean isCompressed() {\n return COMPRESSED.isSet(getFlags());\n }",
"public CompressionInfo getCompressionInfo() {\n\t\treturn new CompressionInfo(bytesRead, blocksRead, superblocksRead, compressedBytes,\n\t\t\t\t compressedBlocks, actualBytes, null);\n\t}",
"public static boolean doCompress() {\n return Boolean.parseBoolean(properties.getProperty(\"compress\"));\n }",
"public boolean getCompressed() {\n return compressed_;\n }",
"public boolean getCompressed() {\n return compressed_;\n }",
"public Bitmap.CompressFormat getFormat() {\n return fullPhoto.getFormat();\n }",
"public ParameterizedClass getCompressorClass()\n {\n return compressorClass;\n }",
"public static String[] getSupportedCompressionAlgorithms() {\n return Compression.getSupportedAlgorithms();\n }",
"static public int defaultCompressThreshold () { throw new RuntimeException(); }",
"public AUID getSoundCompression()\r\n\t\tthrows PropertyNotPresentException;",
"public boolean isCompressed() {\n byte[] data = packet.getData();\n int magic = ((int)(data[1] & 0xff) << 8) | (int)(data[0] & 0xff);\n return magic == GZIPInputStream.GZIP_MAGIC;\n }",
"public Builder setCompressionMode(CompressionType compressionType) {\n this.compressionType = compressionType;\n return this;\n }",
"public int getJarType() {\n \t\treturn jarType;\n \t}",
"public boolean IsCompressed() {\n return false;\n }",
"public boolean isCompressed() {\n return pub.isCompressed();\n }",
"public ICompressor getCompressor()\n {\n return compressor;\n }",
"public interface CompressionStrategy {\n\n /**\n * The type of compression performed.\n */\n String getType();\n\n /**\n * Uncompresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data compressed data.\n * @return uncompressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] inflate(byte[] data) throws IOException;\n\n /**\n * Compresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data uncompressed data.\n * @return compressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] deflate(byte[] data) throws IOException;\n}",
"public void setImageCompression(byte comp) {\n this.compression = comp;\n }",
"public void setCompression( boolean compress ) {\n this .compression = compress;\n }",
"public boolean CompressorFlag(){\n\t\treturn (this.GetAverageTotalCurrent() < this.compressorCurrentLimit);\n\t}",
"public boolean intZip() {\n return intZip;\n }",
"int getArchivePriority();",
"@Override\n @XmlElement(name = \"fileDecompressionTechnique\")\n public synchronized InternationalString getFileDecompressionTechnique() {\n return fileDecompressionTechnique;\n }",
"public WriterOptions compress(CompressionKind value) {\n compressValue = value;\n return this;\n }",
"@Override\n public void setMethod(final int method) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"54a8c40a-c402-4e95-b55e-128eadd7ce43\");\n if (method < 0) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"15e017f2-249f-4d43-98d8-0c8d443b41e1\");\n throw new IllegalArgumentException(\"ZIP compression method can not be negative: \" + method);\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"56bd380b-c6b3-42c7-a9bd-9aa9fe8d98a3\");\n this.method = method;\n }",
"public boolean enabled() {\n return CompressorJNI.getCompressor(m_pcm);\n }",
"public double getAbandonCompressionRatio() {\r\n return abandonRatioNr / (double) abandonRatioDr;\r\n }",
"private CompressionCodec getCompressionCodec() throws Exception {\n try {\n Constructor<?> constructor = Class.forName(compressionCodec).getConstructor();\n return (CompressionCodec)constructor.newInstance();\n } catch (Exception e) {\n throw new Exception(e);\n }\n }",
"public boolean isAbandonCompressionEnabled() {\r\n return abandonCompressionEnabled;\r\n }",
"public int sizeCompressed (){\r\n\t\t\treturn _sizeCompressed;\r\n\t\t}",
"public String getCompressionInfo() {\r\n String msg = null;\r\n if (!compressionInfoCleared) {\r\n int bytesInSession = bop.getCount() - countAtSessionStart;\r\n if(bytesInSession != bytesWrittenSinceSessionStart) {\r\n msg = \"Compressed data from \" + bytesWrittenSinceSessionStart + \" to \" + bytesInSession + \" bytes\";\r\n }\r\n else if(abandonedGzipLen > 0) {\r\n msg = \"Abandoned GZIP because \" + bytesWrittenAtLastAbandonCheck + \" bytes compressed only to \" + abandonedGzipLen + \" (\" + ((int) Math.round(100 * (double) abandonedGzipLen / bytesWrittenAtLastAbandonCheck)) + \"%). Final Data Length = \" + bytesWrittenSinceSessionStart + \"(=\" + bytesInSession + ')';\r\n }\r\n }\r\n return msg;\r\n }",
"@Override\n\tpublic long compressedSize() {\n\t\treturn this.compressedLength.get();\n\t}",
"public boolean isCompressPut() {\r\n return compressPut;\r\n }",
"public Integer getJtype() {\n return jtype;\n }",
"public TailoredImage compress() {\n\t\t\tsetPrimaryImg(snappyCompress(getPrimaryImg()));\n\t\t\tsetBlockImg(snappyCompress(getBlockImg()));\n\t\t\treturn this;\n\t\t}",
"public void setInputCompressionType(String inputCompressionType) {\n this.inputCompressionType = inputCompressionType;\n }",
"public int getImageFormat() {\n if (this.cleanedUp) {\n throw new IllegalStateException(\"Tried fetch image format from cleaned up swapchain!\");\n }\n return this.imageFormat;\n }",
"@Test\n public void testCompressionOrdinance() {\n Assert.assertTrue(((LZO.ordinal()) == 0));\n Assert.assertTrue(((GZ.ordinal()) == 1));\n Assert.assertTrue(((NONE.ordinal()) == 2));\n Assert.assertTrue(((SNAPPY.ordinal()) == 3));\n Assert.assertTrue(((LZ4.ordinal()) == 4));\n }",
"public java.lang.Byte getNumVersionFormato() {\n\t\treturn numVersionFormato;\n\t}",
"String getArchiveMechanism();",
"public static LockingProviderTypeEnum getLockMethod() {\n try {\n if (!ArtifactoryHome.get().isHaConfigured()) {\n return jvm;\n }\n } catch (Exception e) {\n return jvm;\n }\n // This is HA environment, in this case select method according to the provided value in the properties\n String nativeName = ConstantValues.lockingProviderType.getString();\n for (LockingProviderTypeEnum lockingProviderTypeEnum : values()) {\n if (lockingProviderTypeEnum.nativeName.toLowerCase().equals(nativeName.trim().toLowerCase())) {\n return lockingProviderTypeEnum;\n }\n }\n throw new RuntimeException(\"Unsupported distributed lock method: \" + nativeName);\n }",
"public String getAuthMethod() {\n\t\tString method = options.getProperty(\"auth-method\");\n\t\tif(method == null) {\n\t\t\tmethod = options.getProperty(\"Authentication-Method\");\n\t\t}\n\t\treturn trimedValue(method);\n\t}",
"public String getDynamicRangeCompressionRf() {\n return this.dynamicRangeCompressionRf;\n }",
"public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }",
"@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD);\n }",
"public int getZip() {\n return this.zip;\n }",
"public java.lang.Short getOrigCarrierInfoPoiLevel() {\r\n return origCarrierInfoPoiLevel;\r\n }",
"public int getZip() {\r\n\t\treturn zip;\r\n\t}",
"public Integer getFileType() {\n return fileType;\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public int getZip() {\n\t\treturn zip;\n\t}",
"String getOutputFormat();",
"public final boolean isAutoUncompress() {\n\t\treturn isAutoUncompress.get();\n\t}",
"public GeneralPurposeBit getGeneralPurposeBit() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"892f16be-9f3a-431a-a6d9-28dcc530435b\");\n return gpb;\n }",
"@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD, INDEXING_TYPE_NONE);\n }",
"private int evaluateType(byte[] header) {\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_UNIX, header, MAGIC_OFFSET, MAGICLEN)) {\n return UNIX_FORMAT;\n }\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_POSIX, header, MAGIC_OFFSET, MAGICLEN)) {\n return POSIX_FORMAT;\n }\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_GNU, header, MAGIC_OFFSET, MAGICLEN)) {\n return GNU_FORMAT;\n }\n return 0;\n }",
"public Builder setCompressFormat(Bitmap.CompressFormat format) {\n this.compressFormat = format;\n return this;\n }",
"public int getColumnType() {\n return (this.option >> 6) & 3;\n }",
"int getMagic();",
"public RestClientBuilder setCompressionEnabled(boolean compressionEnabled) {\n this.compressionEnabled = compressionEnabled;\n return this;\n }",
"public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }",
"ImageFormat getFormat();",
"@RestrictTo(Scope.LIBRARY_GROUP)\n public int getImageFormat() {\n return mImageFormat;\n }",
"public void setAudioCompressionType(String audioCompressionType) {\n this.audioCompressionType = audioCompressionType;\n }",
"private CompressionInterface getCompressionInterface(String formatString) throws Exception {\t\n\t\tString compressName = String.join(\".\", getClass().getPackage().getName(), CompScan.COMPRESSION_SUBPACKAGE, formatString);\n\t\t\n\t\tClass<?> compression = Class.forName(compressName);\n\t\tSet<Class<?>> interfaces = new HashSet<>(\n\t\t\t\tArrays.asList(\n\t\t\t\t\t\tcompression.getInterfaces()));\n\t\tif (!interfaces.contains(CompressionInterface.class)) {\n\t\t\tthrow new Exception(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\t\"Class \\\"%1$s\\\" found for format string \\\"%2$s\\\" but is not a valid Compressor.\",\n\t\t\t\t\t\t\tcompression.getClass().getName(), formatString));\n\t\t}\n\t\treturn (CompressionInterface) compression.newInstance();\n\t}",
"boolean isCompressiblePrimary(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.isCompressiblePrimary(long):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isCompressiblePrimary(long):boolean\");\n }",
"@CheckForNull\n String getPreferredExtension();",
"public int\ngetAlgorithm() {\n\treturn alg;\n}",
"public String getCodingMode() {\n return this.codingMode;\n }",
"public void setVideoCompressionType(String videoCompressionType) {\n this.videoCompressionType = videoCompressionType;\n }",
"boolean isCompressibleLeadByte(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isCompressibleLeadByte(int):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isCompressibleLeadByte(int):boolean\");\n }",
"public Short getLayoutType() {\n return layoutType;\n }",
"public CalculationEnum getCalcMethod() {\n\t\treturn _calcMethodEnum;\n\t}",
"public int getZip() {\n return zip;\n }",
"public Builder compressionEnabled(boolean compressionEnabled) {\n this.compressionEnabled = compressionEnabled;\n return this;\n }",
"public float getCompressorCurrent() {\n return CompressorJNI.getCompressorCurrent(m_pcm);\n }",
"public void setCompress(boolean compress) {\n\t\tthis.compress = compress;\n\t}",
"String getCodec() {\n return codec;\n }",
"protected ByteOrder getByteOrder() {\n return mTiffStream.getByteOrder();\n }",
"@Deprecated\n/* */ public void addCompression() {\n/* 162 */ List<COSName> filters = getFilters();\n/* 163 */ if (filters == null)\n/* */ {\n/* 165 */ if (this.stream.getLength() > 0L) {\n/* */ \n/* 167 */ OutputStream out = null;\n/* */ \n/* */ try {\n/* 170 */ byte[] bytes = IOUtils.toByteArray((InputStream)this.stream.createInputStream());\n/* 171 */ out = this.stream.createOutputStream((COSBase)COSName.FLATE_DECODE);\n/* 172 */ out.write(bytes);\n/* */ }\n/* 174 */ catch (IOException e) {\n/* */ \n/* */ \n/* 177 */ throw new RuntimeException(e);\n/* */ }\n/* */ finally {\n/* */ \n/* 181 */ IOUtils.closeQuietly(out);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 186 */ filters = new ArrayList<COSName>();\n/* 187 */ filters.add(COSName.FLATE_DECODE);\n/* 188 */ setFilters(filters);\n/* */ } \n/* */ }\n/* */ }",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"public int getFlags() {\n return ByteUtils.toUnsignedShort(flags);\n }",
"public int getWriteFormatCount();",
"public Compressor() {\n initCompressor(getDefaultSolenoidModule());\n }",
"@Override\n\tpublic String getZip() {\n\t\treturn this.zip;\n\t}"
]
| [
"0.6822213",
"0.6719087",
"0.64166844",
"0.63084644",
"0.6248088",
"0.6174676",
"0.61088717",
"0.60546285",
"0.60463095",
"0.59621173",
"0.5823042",
"0.58084553",
"0.57953763",
"0.5789235",
"0.5739542",
"0.5727241",
"0.56529707",
"0.5562405",
"0.5500052",
"0.5466548",
"0.53949374",
"0.53393376",
"0.53288054",
"0.53081834",
"0.5276054",
"0.5183193",
"0.51729673",
"0.51686454",
"0.51504105",
"0.50718564",
"0.5046224",
"0.5030536",
"0.5027013",
"0.50238085",
"0.4954272",
"0.4893585",
"0.48179492",
"0.48135224",
"0.4805852",
"0.4798314",
"0.47836176",
"0.47627175",
"0.47553477",
"0.47183365",
"0.46904626",
"0.4652707",
"0.4649477",
"0.46414703",
"0.46324462",
"0.46028677",
"0.45936096",
"0.4565759",
"0.4550767",
"0.45434192",
"0.45391077",
"0.45200324",
"0.45187458",
"0.44962287",
"0.44949818",
"0.44842368",
"0.44788256",
"0.4455259",
"0.44455782",
"0.4441806",
"0.44334838",
"0.44298252",
"0.44278744",
"0.44270653",
"0.44071755",
"0.44041288",
"0.4398241",
"0.439587",
"0.43948546",
"0.43853372",
"0.43814775",
"0.43779042",
"0.43758646",
"0.43758273",
"0.4371973",
"0.436084",
"0.43441045",
"0.432791",
"0.43263113",
"0.43256196",
"0.4317385",
"0.43106136",
"0.4308935",
"0.42987517",
"0.42974943",
"0.428488",
"0.42725924",
"0.42714304",
"0.42690107",
"0.42508528",
"0.42496976",
"0.42390054",
"0.42375296",
"0.42373526",
"0.42351666",
"0.4234335"
]
| 0.4649705 | 46 |
Sets the compression method of this entry. | @Override
public void setMethod(final int method) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "54a8c40a-c402-4e95-b55e-128eadd7ce43");
if (method < 0) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "15e017f2-249f-4d43-98d8-0c8d443b41e1");
throw new IllegalArgumentException("ZIP compression method can not be negative: " + method);
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "56bd380b-c6b3-42c7-a9bd-9aa9fe8d98a3");
this.method = method;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContentCompression(String method) {\n this.contentCompression = method;\n }",
"public native void setCompression(int value) throws MagickException;",
"public void setCompression( boolean compress ) {\n this .compression = compress;\n }",
"public WriterOptions compress(CompressionKind value) {\n compressValue = value;\n return this;\n }",
"public Builder setCompressionMode(CompressionType compressionType) {\n this.compressionType = compressionType;\n return this;\n }",
"public void setImageCompression(byte comp) {\n this.compression = comp;\n }",
"public DatasetCompression compression() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression();\n }",
"public Builder setCompressed(boolean value) {\n \n compressed_ = value;\n onChanged();\n return this;\n }",
"public void setCompress(boolean compress) {\n\t\tthis.compress = compress;\n\t}",
"public void setSoundCompression(\r\n\t\t\tAUID compression);",
"public String getAudioCompressionType() {\n return audioCompressionType;\n }",
"public Builder setCompressFormat(Bitmap.CompressFormat format) {\n this.compressFormat = format;\n return this;\n }",
"public boolean isCompressionEnabled() {\r\n return compressionEnabled;\r\n }",
"public RestClientBuilder setCompressionEnabled(boolean compressionEnabled) {\n this.compressionEnabled = compressionEnabled;\n return this;\n }",
"public void setCompressPut(boolean value) {\r\n this.compressPut = value;\r\n }",
"public Builder compressionEnabled(boolean compressionEnabled) {\n this.compressionEnabled = compressionEnabled;\n return this;\n }",
"public void setMethod( ContrastMethod method );",
"@Deprecated\n/* */ public void addCompression() {\n/* 162 */ List<COSName> filters = getFilters();\n/* 163 */ if (filters == null)\n/* */ {\n/* 165 */ if (this.stream.getLength() > 0L) {\n/* */ \n/* 167 */ OutputStream out = null;\n/* */ \n/* */ try {\n/* 170 */ byte[] bytes = IOUtils.toByteArray((InputStream)this.stream.createInputStream());\n/* 171 */ out = this.stream.createOutputStream((COSBase)COSName.FLATE_DECODE);\n/* 172 */ out.write(bytes);\n/* */ }\n/* 174 */ catch (IOException e) {\n/* */ \n/* */ \n/* 177 */ throw new RuntimeException(e);\n/* */ }\n/* */ finally {\n/* */ \n/* 181 */ IOUtils.closeQuietly(out);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 186 */ filters = new ArrayList<COSName>();\n/* 187 */ filters.add(COSName.FLATE_DECODE);\n/* 188 */ setFilters(filters);\n/* */ } \n/* */ }\n/* */ }",
"public Builder setCompressionCodec(String compressionCodec) {\n this.compressionCodec = compressionCodec;\n return this;\n }",
"public void setCompressParams(CompressFormat compressFormat, int quality)\n {\n this.mCompressFormat = compressFormat;\n this.mCompressQuality = quality;\n }",
"public void setCompressionThreshold(int pcompressionThreshold) {\r\n compressionThreshold = pcompressionThreshold;\r\n try {\r\n setCompressionIfRequired(0);\r\n } catch (IOException e) {\r\n throw new RuntimeException(\"Internal error\", e);\r\n }\r\n }",
"public int getCompressionThreshold() {\r\n return compressionThreshold;\r\n }",
"@Override\n\tpublic void Compress() {\n\t\t\n\t}",
"public String getVideoCompressionType() {\n return videoCompressionType;\n }",
"public String getInputCompressionType() {\n return this.inputCompressionType;\n }",
"public void setInputCompressionType(String inputCompressionType) {\n this.inputCompressionType = inputCompressionType;\n }",
"public synchronized void setFileDecompressionTechnique(final InternationalString newValue) {\n checkWritePermission();\n fileDecompressionTechnique = newValue;\n }",
"public TailoredImage compress() {\n\t\t\tsetPrimaryImg(snappyCompress(getPrimaryImg()));\n\t\t\tsetBlockImg(snappyCompress(getBlockImg()));\n\t\t\treturn this;\n\t\t}",
"public static PageCompression detectCompressionMethod( HttpResponse response ) {\n\t\tif ( response != null && response.containsHeader( \"Content-Encoding\" ) ) {\n\t\t\tHeader[] headers = response.getHeaders( \"Content-Encoding\" );\n\t\t\tfor ( int i = 0 ; i < headers.length ; i++ ) {\n\t\t\t\tString val = headers[i].getValue().trim();\n\t\t\t\tSystem.out.println( val );\n\t\t\t\tif ( val.equalsIgnoreCase( \"gzip\" ) ) {\n\t\t\t\t\treturn PageCompression.GZIP;\n\t\t\t\t} else if ( val.equalsIgnoreCase( \"deflate\" ) ) {\n\t\t\t\t\treturn PageCompression.DEFLATE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn PageCompression.NOT_COMPRESSED;\n\t}",
"public boolean useCompression()\n {\n return compressor != null;\n }",
"public boolean getCompress() {\n\t\treturn this.compress;\n\t}",
"public native int getCompression() throws MagickException;",
"public AzureDataLakeStoreDataset withCompression(DatasetCompression compression) {\n if (this.innerTypeProperties() == null) {\n this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties();\n }\n this.innerTypeProperties().withCompression(compression);\n return this;\n }",
"@Override\r\n public void setArchive(String archive) {\n }",
"public void setCompressionQuality(float quality) {\n if (quality < 0.0F || quality > 1.0F) {\n throw new IllegalArgumentException(\"Quality out-of-bounds!\");\n }\n this.compressionQuality = 256 - (quality * 256);\n }",
"public ParameterizedClass getCompressorClass()\n {\n return compressorClass;\n }",
"protected void setWriteMethod(Enum callingMethod)\n\t{\n//\t\tCrashlytics.setString(\"WriteMethod\", callingMethod.toString());\n\t\tmCallingMethod = callingMethod;\n\t}",
"private ZipCompressor(){}",
"public void setCompressionEnabled(boolean pcompressionEnabled) {\r\n if(!compressionEnabled && pcompressionEnabled) {\r\n // Re-enable abandonCompression if it has been disabled explicitly via setAbandonCompressionEnabled\r\n abandonCompressionEnabled = true;\r\n countAtSessionStart = bop.getCount();\r\n abandonedGzipLen = 0;\r\n bytesWrittenSinceSessionStart = 0;\r\n bytesWrittenAtLastAbandonCheck = 0;\r\n compressionInfoCleared = false;\r\n }\r\n compressionEnabled = pcompressionEnabled;\r\n }",
"public void setAudioCompressionType(String audioCompressionType) {\n this.audioCompressionType = audioCompressionType;\n }",
"public static boolean doCompress() {\n return Boolean.parseBoolean(properties.getProperty(\"compress\"));\n }",
"protected void setEncoding() {\n\t\tthis.defaultContentType = getProperty(CONTENT_TYPE_KEY, DEFAULT_CONTENT_TYPE);\n\n\t\tString encoding = getProperty(RuntimeConstants.OUTPUT_ENCODING, DEFAULT_OUTPUT_ENCODING);\n\n\t\t// For non Latin-1 encodings, ensure that the charset is\n\t\t// included in the Content-Type header.\n\t\tif (!DEFAULT_OUTPUT_ENCODING.equalsIgnoreCase(encoding)) {\n\t\t\tint index = defaultContentType.lastIndexOf(\"charset\");\n\t\t\tif (index < 0) {\n\t\t\t\t// the charset specifier is not yet present in header.\n\t\t\t\t// append character encoding to default content-type\n\t\t\t\tthis.defaultContentType += \"; charset=\" + encoding;\n\t\t\t} else {\n\t\t\t\t// The user may have configuration issues.\n\t\t\t\tlog.info(\"Charset was already specified in the Content-Type property.Output encoding property will be ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tlog.debug(\"Default Content-Type is: {}\", defaultContentType);\n\t}",
"public void setVideoCompressionType(String videoCompressionType) {\n this.videoCompressionType = videoCompressionType;\n }",
"public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }",
"public boolean getCompressed() {\n return compressed_;\n }",
"public ClientBuilder compress(boolean compress) {\n this.compress = compress;\n return this;\n }",
"public boolean getCompressed() {\n return compressed_;\n }",
"private void setScriptFormatCorrectly()\n\t{\n\t\tint scriptFormatNeeded = 0;\n\t\tif(isMime(m_databaseFile, GZIP_MAGIC_NUMBERS))\n\t\t{\n\t\t\tm_logger.debug(\"Database is gzipped\");\n\t\t\tscriptFormatNeeded = 3;\n\t\t}\n\t\t\n\t\tboolean propsExists = Files.exists(m_databasePropertiesFile);\n\t\t\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t properties.load(new FileInputStream(m_databasePropertiesFile.toFile()));\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t\tproperties.setProperty(\"hsqldb.script_format\", \"\" + scriptFormatNeeded);\n\t\tif(! propsExists) // write other info\n\t\t{\n\t\t\tproperties.setProperty(\"version\",\"2.2.8\");\n\t\t\tproperties.setProperty(\"modified\", \"yes\");\n\t\t}\n\t\t\n\t\t// Write properties file.\n\t\ttry {\n\t\t properties.store(new FileOutputStream(m_databasePropertiesFile.toFile()), null);\n\t\t} catch (IOException e) {\n\t\t}\n\t\t\n\t}",
"public void setZip(String zip);",
"private StandardDeCompressors() {}",
"@Override\n @XmlElement(name = \"fileDecompressionTechnique\")\n public synchronized InternationalString getFileDecompressionTechnique() {\n return fileDecompressionTechnique;\n }",
"public void setBinmode() {\n }",
"default boolean isCompressed() {\n return COMPRESSED.isSet(getFlags());\n }",
"public RestUtils setMethodOptions()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.OPTIONS);\n\t\treturn this;\n\t}",
"public void setScriptCompressed(boolean scriptCompressed)\n {\n this.scriptCompressed = scriptCompressed;\n }",
"public boolean isCompressed() {\r\n return gzipOp != null;\r\n }",
"public BitmapEncoder() {\n this((Bitmap.CompressFormat) null, 90);\n }",
"public interface CompressionStrategy {\n\n /**\n * The type of compression performed.\n */\n String getType();\n\n /**\n * Uncompresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data compressed data.\n * @return uncompressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] inflate(byte[] data) throws IOException;\n\n /**\n * Compresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data uncompressed data.\n * @return compressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] deflate(byte[] data) throws IOException;\n}",
"public String getCompressorName()\n {\n return useCompression() ? compressor.getClass().getSimpleName() : \"none\";\n }",
"static public int defaultCompressThreshold () { throw new RuntimeException(); }",
"public ICompressor getCompressor()\n {\n return compressor;\n }",
"public Compressor() {\n initCompressor(getDefaultSolenoidModule());\n }",
"public boolean IsCompressed() {\n return false;\n }",
"private void updateCompressionValue() {\n ((TextView) findViewById(R.id.zoomLeftRightText)).setText(String.valueOf(curves[0].getCurrentCompression()));\n }",
"public synchronized void setMethod(int whatMethod) {\n method = whatMethod;\n }",
"public void setJarType(int newJarType) {\n \t\tjarType = newJarType;\n \t}",
"CompressingMessageWriter(MessageWriter wr) {\n this.writer = wr;\n }",
"public static String getCompression(HttpServletRequest req) {\n String encoding = req.getHeader(HttpHeaders.ACCEPT_ENCODING);\n if (null != encoding) {\n if (BaseFileServlet.GZIP_PATTERN.matcher(encoding).find()) {\n return \"gzip\";\n //} else if (BR_PATTERN.matcher(encoding).find()) {\n // return \"br\";\n }\n }\n return \"none\";\n }",
"public void setAbandonCompressionRatio(double ratio) {\r\n if(ratio < 0.2 || ratio > 2) {\r\n throw new IllegalArgumentException(\"abandon compression ratio should be between 0.3 and 2\");\r\n }\r\n abandonRatioNr = (int) (ratio * 100 + 0.5f);\r\n abandonRatioDr = 100;\r\n // Take out common factors in Numerator and denominaotor by dividing by 2 and 5\r\n while((abandonRatioNr & 1) == 0 && (abandonRatioDr & 1) == 0) {\r\n abandonRatioNr >>= 1;\r\n abandonRatioDr >>= 1;\r\n }\r\n while(abandonRatioNr % 5 == 0 && abandonRatioDr % 5 == 0) {\r\n abandonRatioNr /= 5;\r\n abandonRatioDr /= 5;\r\n }\r\n // Compute Integer overflow limit\r\n abandonCheckGzipLenLimit = Integer.MAX_VALUE / abandonRatioDr;\r\n\r\n abandonCheckLenLimit = Integer.MAX_VALUE / abandonRatioNr;\r\n }",
"public interface JSCompressor\r\n{\r\n\r\n /**\r\n * Constants for optimization level\r\n */\r\n int NONE = 0;\r\n\r\n int MAX = 9;\r\n\r\n /**\r\n * Javascript language versions\r\n */\r\n int JAVASCRIPT_1_1 = 110;\r\n\r\n int JAVASCRIPT_1_2 = 120;\r\n\r\n int JAVASCRIPT_1_3 = 130;\r\n\r\n /**\r\n * Compress the input script file into the output file (may be same).\r\n * \r\n * @param input source to get compressed\r\n * @param output compressed script\r\n * @param level optimization level from 0 to 9. May have various\r\n * signification dependending on the compressor, from beeing ignored to some\r\n * fine tweaking the output.\r\n * @param language version of javascript to be used (\"130\" for JS 1.3), as\r\n * defined by Mozilla Rhino engine\r\n * @throws CompressionException any error during compression\r\n */\r\n void compress( File input, File output, int level, int language )\r\n throws CompressionException;\r\n}",
"public void setAbandonCompressionEnabled(boolean pabandonCompressionEnabled) {\r\n abandonCompressionEnabled = pabandonCompressionEnabled;\r\n }",
"public native void setMagick(String imageFormat) throws MagickException;",
"public void setCodec(Codec codec);",
"public CompressionInfo getCompressionInfo() {\n\t\treturn new CompressionInfo(bytesRead, blocksRead, superblocksRead, compressedBytes,\n\t\t\t\t compressedBlocks, actualBytes, null);\n\t}",
"private static void addGzipHeader(Request request, Response response) {\n response.header(\"Content-Encoding\", \"gzip\");\n }",
"void compress( File input, File output, int level, int language )\r\n throws CompressionException;",
"public void setGeneralPurposeBit(final GeneralPurposeBit b) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ba5ac644-8158-4d0a-afb5-466e2a767476\");\n gpb = b;\n }",
"@SuppressWarnings(\"hiding\")\n @Override\n public void setMethod(String method) {\n this.method = method;\n }",
"@Override\r\n\tpublic void comprar() {\n\t\tsuper.comprar();\r\n\t}",
"public void setOutputFormat(OutputFormat format);",
"public ImportTableDescription withInputCompressionType(InputCompressionType inputCompressionType) {\n this.inputCompressionType = inputCompressionType.toString();\n return this;\n }",
"void setArchiveInfo(ArchiveInfoInterface archInfo);",
"public void setZ(int z) {\r\n this.z = (short) z;\r\n }",
"@Override\n\tpublic boolean setFileType(int binaryFileType) {\n\t\treturn true;\n\n\t}",
"public String setFileFormat(HashMap fileFormat) {\n\t\t this.fileFormat=fileFormat;\n return \"\";\n\t}",
"public void setMethod(HTTPMethod method);",
"void setCryptAlgorithmClass(org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum cryptAlgorithmClass);",
"private void setCorrectCodec() {\n try {\n getDataNetworkHandler().setCorrectCodec();\n } catch (FtpNoConnectionException e) {\n }\n }",
"public void setFlags(short flag) {\n\tflags = flag;\n }",
"public void setInitMethod(Method initMethod) {\n this.initMethod = initMethod;\n }",
"void setPackager(String packager);",
"private boolean updateCompressionState(final InstanceIdentifier<FlowCapableNode> flowcapableNodePath,\n final SyncupEntry syncupEntry) {\n final SyncupEntry previousEntry = compressionQueue.get(flowcapableNodePath);\n\n if (previousEntry != null && syncupEntry.isOptimizedConfigDelta() && previousEntry.isOptimizedConfigDelta()) {\n updateOptimizedConfigDelta(flowcapableNodePath, syncupEntry, previousEntry);\n } else {\n compressionQueue.put(flowcapableNodePath, syncupEntry);\n }\n return previousEntry == null;\n }",
"public void setZip(String s) {\r\n\t\tzip = s;\t\r\n\t}",
"public ZipArchiveEntry(final ZipArchiveEntry entry) throws ZipException {\n this((java.util.zip.ZipEntry) entry);\n setInternalAttributes(entry.getInternalAttributes());\n setExternalAttributes(entry.getExternalAttributes());\n setExtraFields(getAllExtraFieldsNoCopy());\n setPlatform(entry.getPlatform());\n final GeneralPurposeBit other = entry.getGeneralPurposeBit();\n setGeneralPurposeBit(other == null ? null : (GeneralPurposeBit) other.clone());\n }",
"public boolean isCompressPut() {\r\n return compressPut;\r\n }",
"public boolean isAbandonCompressionEnabled() {\r\n return abandonCompressionEnabled;\r\n }",
"@Override\n public Format setOutputFormat(Format format)\n {\n Format outputFormat = super.setOutputFormat(format);\n \n if (logger.isDebugEnabled() && (outputFormat != null))\n logger.debug(\"SwScaler set to output in \" + outputFormat);\n return outputFormat;\n }",
"@Override\n public void write(byte[] byteMaze){\n int rowSize = ((byteMaze[0] & 0xFF) <<8) | (byteMaze[1] & 0xFF);\n int colSize = ((byteMaze[2] & 0xFF) <<8) | (byteMaze[3] & 0xFF);\n if (rowSize*colSize>= 170*170) { // Threshold between big and small mazes\n write(1); //first byte - tells the decompressor which method was used\n writeBig(byteMaze);\n }\n else {\n write(0);\n writeSmall(byteMaze);\n }\n }",
"@Override\n public String getCharset() {\n return \"GBK\";\n }",
"public void setMethod(Method method) {\n this.method = method;\n }"
]
| [
"0.7419045",
"0.6929097",
"0.6073908",
"0.5892318",
"0.5851527",
"0.5797138",
"0.5628199",
"0.5430959",
"0.5401421",
"0.53277504",
"0.5272916",
"0.5260753",
"0.5224955",
"0.5222151",
"0.5200377",
"0.5195593",
"0.51821786",
"0.5122533",
"0.50997275",
"0.505796",
"0.50556207",
"0.5053427",
"0.5051807",
"0.50407946",
"0.5036845",
"0.5035808",
"0.5033921",
"0.49695733",
"0.4962362",
"0.49477106",
"0.4945393",
"0.49230218",
"0.49208856",
"0.48281658",
"0.48270315",
"0.4797094",
"0.4782133",
"0.4774416",
"0.47683126",
"0.47677425",
"0.46804586",
"0.46428612",
"0.46376985",
"0.46313843",
"0.46269742",
"0.45779017",
"0.45615706",
"0.44917142",
"0.44862658",
"0.44855076",
"0.44833088",
"0.44809824",
"0.44729394",
"0.4470131",
"0.44680494",
"0.4463867",
"0.44424078",
"0.4422911",
"0.4415751",
"0.4412842",
"0.43938494",
"0.43753088",
"0.43721408",
"0.4357177",
"0.42742416",
"0.4264598",
"0.42632195",
"0.42612675",
"0.4232958",
"0.42272118",
"0.4223614",
"0.41942027",
"0.4188848",
"0.41690361",
"0.41629076",
"0.4160181",
"0.41379368",
"0.41376162",
"0.4136618",
"0.4134408",
"0.41261363",
"0.41205257",
"0.41156045",
"0.4110305",
"0.41099435",
"0.41083965",
"0.40964803",
"0.4082268",
"0.40700158",
"0.4062153",
"0.40504035",
"0.40440717",
"0.40420046",
"0.40353134",
"0.40347508",
"0.40330827",
"0.4028336",
"0.4027436",
"0.40253258",
"0.40200633"
]
| 0.6519962 | 2 |
Sets the internal file attributes. | public void setInternalAttributes(final int value) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c66dec57-e94d-47cc-bad0-17c4cbe2e595");
internalAttributes = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }",
"void setBinaryFileAttribute(boolean flag);",
"private void setFile() {\n\t}",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"void setAttributes(String path, Map<String, Object> newValue) throws IOException;",
"public SetFileAttributesOptions(String... options) {\n\t\tsuper(options);\n\t}",
"public void setFile(File f) { file = f; }",
"alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder();",
"public void setFile(File file);",
"@Override\n public void setFile(File f) {\n \n }",
"alluxio.proto.journal.File.SetAttributeEntry getSetAttribute();",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n return setAttribute_;\n }",
"public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open ElementaryFile(fid, _, _, _, _, ?info2); // auto\r\n\t\tsuper.setActive(b);\r\n\t\t////@ close ElementaryFile(fid, _, _, _, _, info2); // auto\r\n\t\t////@ close File(fid, _, info); // auto\r\n\t}",
"protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"void setFile(String i) {\n file = i;\n }",
"void setNewFile(File file);",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"public void setFile(String fileName)\n {\n }",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open DedicatedFile(fid, ?d1, _, ?siblist, ?info2); // auto\r\n\t\tFile thiz = this;\r\n\t\t////@ open thiz.File(fid, _, ?info3); // auto\r\n\t\tactive = b;\r\n\t\t////@ close thiz.File(fid, b, info3); // auto\r\n\t\t////@ close DedicatedFile(fid, d1, b, siblist, info2); // auto\r\n\t\t////@ close File(fid, b, info); // auto\r\n\t}",
"public alluxio.proto.journal.File.SetAttributeEntry getSetAttribute() {\n return setAttribute_;\n }",
"void setPropertiesFile(File file);",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open MasterFile(fid, ?d0, _, ?d1, ?info2); // auto\r\n\t\t////@ open this.DedicatedFile(DedicatedFile.class)(fid, null, _, d1, ?info3); // auto\r\n\t\t////@ open this.File(File.class)(fid, _, ?info4); // auto\r\n\t\tactive = b;\r\n\t\t////@ close this.File(File.class)(fid, b, info4); // auto\r\n\t\t////@ close this.DedicatedFile(DedicatedFile.class)(fid, null, b, d1, info3); // auto\r\n\t\t////@ close MasterFile(fid, null, b, d1, info2); // auto\r\n\t\t////@ close File(fid, b, info); // auto\r\n\t}",
"public void setFile(IFile file) {\n _file = file;\n }",
"public void setDirty() {\r\n\t\tif (LOG.isLoggable(Level.FINE)) { LOG.fine(\"setDirty\"); }\r\n\r\n \tif(clean) { fireFileCleanStatusChangedEvent(new FileChangeEvent(eventSource, false)); }\r\n \tfireFileChangedEvent(new FileChangeEvent(this, false));\r\n \tclean = false;\r\n }",
"public void set(File file, String view, String attribute, Object value, boolean create) {\n/* 131 */ throw unsettable(view, attribute);\n/* */ }",
"void setFilePath(Path filePath);",
"public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }",
"public void setFile(PDFileSpecification f) {\n/* 409 */ this.stream.setItem(COSName.F, (COSObjectable)f);\n/* */ }",
"private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }",
"public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }",
"public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setFile(String file) {\r\n\t\tthis.file = file;\r\n\t}",
"public void setState(File state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setFile(File file) {\n this.file = file;\n }",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"void setFilePath(String filePath);",
"public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }",
"public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}",
"private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }",
"public void setFile(File file) {\r\n\t\tif (file!=null) this.input = null;\r\n\t\tthis.file = file;\r\n\t}",
"protected SMBFile(Session sess, FileInfo finfo, int fid) {\n\t\tm_sess = sess;\n\t\tm_info = finfo;\n\t\tm_FID = fid;\n\n\t\t// Initialize the file write position using the current file size\n\n\t\tm_txpos = getFileSize();\n\t}",
"public Builder clearSetAttribute() {\n if (setAttributeBuilder_ == null) {\n setAttribute_ = alluxio.proto.journal.File.SetAttributeEntry.getDefaultInstance();\n onChanged();\n } else {\n setAttributeBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x08000000);\n return this;\n }",
"int attrib(int i, File v) {\n if (i < max) {\n AllFiles[i] = v;\n } else {\n File[] temp = new File[max];\n int j;\n for (j = 0; j < max; j++) temp[j] = AllFiles[j];\n AllFiles = new File[max + increase];\n for (j = 0; j < max; j++) AllFiles[j] = temp[j];\n max = max + increase;\n AllFiles[i] = v;\n }\n return (0);\n }",
"void setFileName( String fileName );",
"public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }",
"private void modifyCreationDateForSingleFile() throws IOException {\n int n = (int) (Math.random() * NUMBER_OF_TEST_FILES);\n File f = new File(path, \"file_\" + n + \".txt\");\n Path path = Paths.get(f.toURI());\n BasicFileAttributes attr;\n attr = Files.readAttributes(path, BasicFileAttributes.class);\n FileTime creationTime = attr.creationTime();\n Calendar c = new GregorianCalendar();\n c.setTime(new Date(creationTime.toMillis()));\n c.add(Calendar.DAY_OF_YEAR, -10);\n BasicFileAttributeView attributes = Files.getFileAttributeView(path, BasicFileAttributeView.class);\n FileTime time = FileTime.fromMillis(c.getTimeInMillis());\n attributes.setTimes(time, time, time);\n }",
"public void setFile(PDFileSpecification f)\n {\n stream.setItem(COSName.F, f);\n }",
"public void setFileRef() { this.fileRef = fileRef; }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"public void setFile(byte[] file) {\n this.file = file;\n }",
"protected void setField(HtmlElement element) throws IOException {\n\t\tString attributeValue = element.getAttribute(HtmlConstants.TYPE);\n\t\tif (!HtmlConstants.FILE.equals(attributeValue)) {\n\t\t\tthrow new StepFailedException(\"HTML input with id='\" + getHtmlId() + \"' is of type '\"\n\t\t\t\t+ attributeValue + \"' but should be '\" + HtmlConstants.FILE + \"'\", this);\n\t\t}\n\t\tfinal HtmlFileInput fileInput = (HtmlFileInput) element;\n\t\tfileInput.setValueAttribute(getFileName().getAbsolutePath());\n\t}",
"@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"public updateFile_args(updateFile_args other) {\n if (other.isSetFile()) {\n this.File = new UpdateData(other.File);\n }\n }",
"public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }",
"private void saveAttributes() {\n o_width = width;\n o_height = height;\n o_fps = fps;\n o_bps = bps;\n o_totalFrames = totalFrames;\n }",
"@Override\npublic void setAttributes() {\n\t\n}",
"void setAttributes(String attributeName, String attributeValue);",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n if (setAttributeBuilder_ != null) {\n return setAttributeBuilder_.getMessageOrBuilder();\n } else {\n return setAttribute_;\n }\n }",
"public boolean writeAttributeFile();",
"@Override\r\n\tpublic void setFileAddress(File fileAddress) throws CryptoException {\r\n\t\tsuper.setFileAddress(fileAddress);\r\n\t\tsetHascert();\r\n\t}",
"protected void openFiles() {\n\t\tthis.container = fso.openFile(prefix+EXTENSIONS[CTR_FILE],\"rw\");\n\t\tthis.metaData = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\tthis.reservedBitMap = fso.openFile(prefix+EXTENSIONS[RBM_FILE], \"rw\");\n\t\tthis.updatedBitMap = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\tthis.freeList = fso.openFile(prefix+EXTENSIONS[FLT_FILE], \"rw\");\n\t}",
"final void setAttributes(int param1, int param2) {\n }",
"public final void setFileStatus(int status) {\n\t m_fileStatus = status;\n\t}",
"void setModBookFilePath(Path modBookFilePath);",
"public void setFile(org.ow2.bonita.facade.runtime.AttachmentInstance file) {\r\n\t\tthis.file = file;\r\n\t}",
"private void updateFiles() {\n\t}",
"public EditFile() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tpublic void setFileStatus(int FileStatus) {\n\t\t\n\t}",
"public FileAttributes getFileAttributes() {\n\t\tFileAttributes attributes = new FileAttributes();\n\t\tFormatter formatter = new Formatter();\n\t\tfor (short deviceID : deviceList) {\n\t\t\tformatter.format(\"0x%02X \", deviceID);\n\t\t}\n\n\t\tattributes.add(\"Supported Device IDs\", formatter.toString());\n\t\treturn attributes;\n\t}",
"private static native JavaScriptObject nativeUpdateFileProperties(JavaScriptObject file,\n int fileStatus) /*-{\n file.modificationdate = file.lastModifiedDate;\n file.filestatus = fileStatus;\n return file;\n }-*/;",
"public void setFile(String file) {\n fileName = file;\n if (isHTTP(fileName)) {\n fileType = HTTP;\n } else {\n fileType = LOCAL;\n }\n }",
"public void setAttributes(org.xml.sax.Attributes r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void\");\n }",
"protected void setProperties(final UIComponent component) {\n\t\tsuper.setProperties(component); //set the default properties\n\t\tsetFileValue(component, UIInputFile.DIRECTORY_VAR, getDirectory()); //set the directory\n\t\tsetStringValue(component, UIInputFile.FILENAME_VAR, getFilename()); //set the filename\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }",
"private void setHTTPFileArgs(HTTPFileArgs value) {\n if (value.getHTTPFileArgCount() > 0) {\n setProperty(new TestElementProperty(FILE_ARGS, value));\n } else {\n removeProperty(FILE_ARGS); // no point saving an empty list\n }\n }",
"public void setFile(File file) {\n this.path = file != null ? file.toPath() : null;\n }",
"BucsUserFile(File f,String unm,UserFileType ft)\n{\n this();\n set(f,unm,ft);\n}",
"@Override\r\n\tpublic void updateFileData(FileMetaDataEntity userInfo) {\n\t\t\r\n\t}",
"@Override\n public void setSaveFile(File file)\n {\n \n }",
"public void setFile(File file) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.file = file;\n }",
"protected void setNodeAttributes(Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n ZipEntry zipEntry = entry.getValue();\r\n String name = entry.getKey();\r\n if (zipEntry.isDirectory() && name.charAt(name.length()-1) == '/') name = name.substring(0, name.length()-1);\r\n long lastModified = zipEntry.getTime();\r\n attributes.clear();\r\n attributes.addAttribute(\"\", FILENAME_ATTR_NAME, FILENAME_ATTR_NAME, \"CDATA\", name);\r\n attributes.addAttribute(\"\", LASTMOD_ATTR_NAME, LASTMOD_ATTR_NAME, \"CDATA\", Long.toString(lastModified));\r\n attributes.addAttribute(\"\", DATE_ATTR_NAME, DATE_ATTR_NAME, \"CDATA\", dateFormatter.format(new Date(lastModified)));\r\n if (!zipEntry.isDirectory()) {\r\n attributes.addAttribute(\"\", SIZE_ATTR_NAME, SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getSize()));\r\n attributes.addAttribute(\"\", COMP_SIZE_ATTR_NAME, COMP_SIZE_ATTR_NAME, \"CDATA\", Long.toString(zipEntry.getCompressedSize()));\r\n }\r\n if (this.isRequestedDirectory) {\r\n attributes.addAttribute(\"\", \"sort\", \"sort\", \"CDATA\", this.sort);\r\n attributes.addAttribute(\"\", \"reverse\", \"reverse\", \"CDATA\",\r\n String.valueOf(this.reverse));\r\n attributes.addAttribute(\"\", \"requested\", \"requested\", \"CDATA\", \"true\");\r\n this.isRequestedDirectory = false;\r\n }\r\n }",
"public void setFileSpec(FileSpec fileSpec) {\n // Nothing to do\n }",
"public void setFileSize(long fileSize) {\n \t\n \t// Check if the file size has changed\n \t\n \tif ( getFileSize() != fileSize) {\n \t\t\n \t\t// Update the file size\n \t\t\n \t\tsuper.setFileSize( fileSize);\n \t\t\n \t\t// Queue a low priority state update\n \t\t\n \t\tqueueLowPriorityUpdate( UpdateFileSize);\n \t}\n }",
"public void setAttrib(String name, String value);",
"public void setFileID(Long fileID)\n/* */ {\n/* 100 */ this.fileID = fileID;\n/* */ }",
"public void setFile(String value){\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"public void setBinary() throws IOException {\n boolean r = super.setFileType(BINARY_FILE_TYPE);\n if (!r) {\n throw new FTPException(getReplyCode());\n }\n }",
"private static void SetAttributes( DataSet ds,\n String filename,\n SNS_Tof_to_Q_map mapper )\n {\n int[] RunNums = new int[1];\n RunNums[0] = getRunNumber( filename );\n\n float L1 = mapper.getL1();\n float T0 = mapper.getT0();\n Attribute L1Attr = new FloatAttribute( Attribute.INITIAL_PATH, L1);\n Attribute T0Attr = new FloatAttribute( Attribute.T0_SHIFT, T0);\n Attribute RunsAttr = new IntListAttribute( Attribute.RUN_NUM, RunNums );\n\n float TotTotCount = 0;\n\n for( int i = 0; i < ds.getNum_entries(); i++)\n {\n Data D = ds.getData_entry(i);\n D.setAttribute( RunsAttr );\n D.setAttribute( L1Attr );\n D.setAttribute( T0Attr);\n\n float[] yvals = D.getY_values();\n float TotCount =0;\n for( int j = 0; j < yvals.length; j++ )\n TotCount +=yvals[j];\n \n TotTotCount +=TotCount;\n D.setAttribute( new FloatAttribute( Attribute.TOTAL_COUNT, TotCount));\n // TO DO: Add effective position and pixel info list\n // TO DO: Add delta 2 theta\n // TO DO: Add Total Solid Angle\n // TO DO: Add list of Bank IDs\n // TO DO: Add list of Pixel IDs\n }\n\n ds.setAttribute( new StringAttribute( Attribute.FILE_NAME, filename));\n\n String instr = FileIO.getSNSInstrumentName( filename );\n if( instr != null && instr.length()>2)\n ds.setAttribute( new StringAttribute(Attribute.INST_NAME, instr));\n\n ds.setAttribute( new StringAttribute( Attribute.FACILITY_NAME, \"SNS\"));\n\n // TO DO: add Instrument Type\n\n ds.setAttribute( \n new StringAttribute( Attribute.DS_TYPE, Attribute.SAMPLE_DATA));\n\n // TO DO: add run title\n\n ds.setAttribute( RunsAttr );\n\n AddDateTimeAttribute( ds, (new File( filename )).lastModified());\n\n ds.setAttribute( new FloatAttribute(Attribute.TOTAL_COUNT, TotTotCount ));\n // TO DO: add number of pulses\n // TO DO: add proton count \n // TO DO: add user name\n\n }",
"public void testSetReadable_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setReadable(value);\n\n\t\t\n\t}",
"void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }",
"public File getAttributeFile();",
"@Override\r\n\tpublic void setContext(FileUtilContext context) throws FileSystemUtilException {\r\n\t\tthis.hostname = context.getHostname();\r\n\t\tthis.username = context.getUsername();\r\n\t\tthis.port = context.getPort();\r\n\t\tthis.readTimeOut = context.getReadTimeOut();\r\n\t\tthis.password = context.getPassword();\r\n\t\tthis.remoteFilePath = context.getRemoteFilePath();\r\n\t\tthis.localFilePath = context.getLocalFilePath();\r\n\t}",
"public void setFileDate(Date fileDate)\r\n {\r\n dFileDate = fileDate;\r\n }"
]
| [
"0.78454715",
"0.6858866",
"0.6717012",
"0.67026746",
"0.66553295",
"0.6550039",
"0.651382",
"0.6469593",
"0.6377998",
"0.63279057",
"0.6272235",
"0.6239132",
"0.61352617",
"0.60640246",
"0.6002275",
"0.59622276",
"0.5961368",
"0.5950397",
"0.5927381",
"0.59196496",
"0.5917478",
"0.5895171",
"0.58321226",
"0.582212",
"0.58068866",
"0.58047485",
"0.57728225",
"0.57702553",
"0.5765764",
"0.5757513",
"0.5754988",
"0.5737225",
"0.5730237",
"0.57180333",
"0.57052433",
"0.56624985",
"0.56450015",
"0.5624743",
"0.56158096",
"0.55964893",
"0.5595334",
"0.5594387",
"0.5593053",
"0.55588067",
"0.5551394",
"0.5526786",
"0.5521367",
"0.5519254",
"0.5517991",
"0.5513723",
"0.55126625",
"0.550452",
"0.5501602",
"0.5490816",
"0.54798484",
"0.5458303",
"0.5451531",
"0.54459715",
"0.5435188",
"0.5431539",
"0.542848",
"0.54269445",
"0.54214334",
"0.54138154",
"0.5405117",
"0.53876406",
"0.5385978",
"0.53833663",
"0.5380362",
"0.5375808",
"0.5364634",
"0.53639287",
"0.5330403",
"0.53258634",
"0.5324698",
"0.5318828",
"0.53151983",
"0.5306994",
"0.53016883",
"0.5297875",
"0.5291746",
"0.5290641",
"0.52825975",
"0.5277902",
"0.5273383",
"0.52714604",
"0.52585745",
"0.52477366",
"0.52441126",
"0.5243824",
"0.5236465",
"0.523485",
"0.5228678",
"0.52276427",
"0.5224467",
"0.522284",
"0.5217374",
"0.5204941",
"0.5199687",
"0.5189662"
]
| 0.6213358 | 12 |
Sets the external file attributes. | public void setExternalAttributes(final long value) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "8f4b22cd-9e75-4a38-9e27-30ba1da16ade");
externalAttributes = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }",
"private void setFile() {\n\t}",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"void setBinaryFileAttribute(boolean flag);",
"public void setFile(File f) { file = f; }",
"void setAttributes(String path, Map<String, Object> newValue) throws IOException;",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"public void setFile(File file);",
"@Override\n public void setFile(File f) {\n \n }",
"public void setFile(String fileName)\n {\n }",
"alluxio.proto.journal.File.SetAttributeEntry getSetAttribute();",
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"void setPropertiesFile(File file);",
"void setFileName( String fileName );",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setFile(String file) {\r\n\t\tthis.file = file;\r\n\t}",
"alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder();",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void setFile(PDFileSpecification f) {\n/* 409 */ this.stream.setItem(COSName.F, (COSObjectable)f);\n/* */ }",
"public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }",
"void setFile(String i) {\n file = i;\n }",
"void setFilePath(String filePath);",
"public SetFileAttributesOptions(String... options) {\n\t\tsuper(options);\n\t}",
"public void setInternalAttributes(final int value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c66dec57-e94d-47cc-bad0-17c4cbe2e595\");\n internalAttributes = value;\n }",
"public void setFile(String file) {\n fileName = file;\n if (isHTTP(fileName)) {\n fileType = HTTP;\n } else {\n fileType = LOCAL;\n }\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"void setNewFile(File file);",
"public void setExternalSpectrumFile(String filename);",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public void setFile(PDFileSpecification f)\n {\n stream.setItem(COSName.F, f);\n }",
"public void setFile(String value){\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"@Override\r\n\tpublic void setFileAddress(File fileAddress) throws CryptoException {\r\n\t\tsuper.setFileAddress(fileAddress);\r\n\t\tsetHascert();\r\n\t}",
"private void setHTTPFileArgs(HTTPFileArgs value) {\n if (value.getHTTPFileArgCount() > 0) {\n setProperty(new TestElementProperty(FILE_ARGS, value));\n } else {\n removeProperty(FILE_ARGS); // no point saving an empty list\n }\n }",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }",
"public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }",
"void setFilePath(Path filePath);",
"void setEnvironmentFile(File environmentFile);",
"public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }",
"public void setFilename(String f){\n\t\tfilename = f;\n\t}",
"public void setFileRef() { this.fileRef = fileRef; }",
"void setModBookFilePath(Path modBookFilePath);",
"public void setFile(org.ow2.bonita.facade.runtime.AttachmentInstance file) {\r\n\t\tthis.file = file;\r\n\t}",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open ElementaryFile(fid, _, _, _, _, ?info2); // auto\r\n\t\tsuper.setActive(b);\r\n\t\t////@ close ElementaryFile(fid, _, _, _, _, info2); // auto\r\n\t\t////@ close File(fid, _, info); // auto\r\n\t}",
"public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}",
"public void setResourcefile (File file)\n {\n _resourcefile = file;\n }",
"public void setFile(IFile file) {\n _file = file;\n }",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n return setAttribute_;\n }",
"protected void setProperties(final UIComponent component) {\n\t\tsuper.setProperties(component); //set the default properties\n\t\tsetFileValue(component, UIInputFile.DIRECTORY_VAR, getDirectory()); //set the directory\n\t\tsetStringValue(component, UIInputFile.FILENAME_VAR, getFilename()); //set the filename\n\t}",
"private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }",
"public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }",
"public void setFile(byte[] file) {\n this.file = file;\n }",
"public void setAttrib(String name, String value);",
"public void set(File file, String view, String attribute, Object value, boolean create) {\n/* 131 */ throw unsettable(view, attribute);\n/* */ }",
"public void filesLocation (String externalFolder) {\n externalStaticFileFolder = externalFolder;\n }",
"public void setFile(File file) {\n this.file = file;\n }",
"public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }",
"public void setConfigLocation(String filename, int line)\n {\n _filename = filename;\n _line = line;\n }",
"public void setFilename(String fn) {\n\t\tfilename = fn;\n\t}",
"public void setParameter(String name, File file) throws IOException {\r\n Logging.logTime(\"pre set file\");\r\n setParameter(name, file.getPath(), new FileInputStream(file));\r\n Logging.logTime(\"post set file\");\r\n }",
"protected void importAttributes(XmlPullParser xpp, Epml epml) {\n\t}",
"public static void setOriginalFilename( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}",
"public IBusinessObject setFileAttached(boolean fileAttached)\n throws OculusException;",
"protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}",
"protected void setInfoFile(String[] info){\n\n }",
"public static void setFile(File file) {\r\n CONFIG_FILE = file;\r\n }",
"protected void setHMetisInFile(final String str) {\n\t\tthis.hMetisInFile = str;\n\t}",
"private static void SetAttributes( DataSet ds,\n String filename,\n SNS_Tof_to_Q_map mapper )\n {\n int[] RunNums = new int[1];\n RunNums[0] = getRunNumber( filename );\n\n float L1 = mapper.getL1();\n float T0 = mapper.getT0();\n Attribute L1Attr = new FloatAttribute( Attribute.INITIAL_PATH, L1);\n Attribute T0Attr = new FloatAttribute( Attribute.T0_SHIFT, T0);\n Attribute RunsAttr = new IntListAttribute( Attribute.RUN_NUM, RunNums );\n\n float TotTotCount = 0;\n\n for( int i = 0; i < ds.getNum_entries(); i++)\n {\n Data D = ds.getData_entry(i);\n D.setAttribute( RunsAttr );\n D.setAttribute( L1Attr );\n D.setAttribute( T0Attr);\n\n float[] yvals = D.getY_values();\n float TotCount =0;\n for( int j = 0; j < yvals.length; j++ )\n TotCount +=yvals[j];\n \n TotTotCount +=TotCount;\n D.setAttribute( new FloatAttribute( Attribute.TOTAL_COUNT, TotCount));\n // TO DO: Add effective position and pixel info list\n // TO DO: Add delta 2 theta\n // TO DO: Add Total Solid Angle\n // TO DO: Add list of Bank IDs\n // TO DO: Add list of Pixel IDs\n }\n\n ds.setAttribute( new StringAttribute( Attribute.FILE_NAME, filename));\n\n String instr = FileIO.getSNSInstrumentName( filename );\n if( instr != null && instr.length()>2)\n ds.setAttribute( new StringAttribute(Attribute.INST_NAME, instr));\n\n ds.setAttribute( new StringAttribute( Attribute.FACILITY_NAME, \"SNS\"));\n\n // TO DO: add Instrument Type\n\n ds.setAttribute( \n new StringAttribute( Attribute.DS_TYPE, Attribute.SAMPLE_DATA));\n\n // TO DO: add run title\n\n ds.setAttribute( RunsAttr );\n\n AddDateTimeAttribute( ds, (new File( filename )).lastModified());\n\n ds.setAttribute( new FloatAttribute(Attribute.TOTAL_COUNT, TotTotCount ));\n // TO DO: add number of pulses\n // TO DO: add proton count \n // TO DO: add user name\n\n }",
"private void setNomeArquivo(String nomeArquivo){\n \n this.nomeArquivo = modificarExtensao(nomeArquivo);\n }",
"public ExtensionAttributes_() {\n }",
"protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }",
"public static void setOriginalFilename(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}",
"public void setFile(File file) {\r\n\t\tif (file!=null) this.input = null;\r\n\t\tthis.file = file;\r\n\t}",
"public void setResourceAttrFinder(final ResourceAttributeFinderModule resourceAttrFinder) {\r\n this.resourceAttrFinder = resourceAttrFinder;\r\n }",
"public void setFilename( String name) {\n\tfilename = name;\n }",
"protected void setField(HtmlElement element) throws IOException {\n\t\tString attributeValue = element.getAttribute(HtmlConstants.TYPE);\n\t\tif (!HtmlConstants.FILE.equals(attributeValue)) {\n\t\t\tthrow new StepFailedException(\"HTML input with id='\" + getHtmlId() + \"' is of type '\"\n\t\t\t\t+ attributeValue + \"' but should be '\" + HtmlConstants.FILE + \"'\", this);\n\t\t}\n\t\tfinal HtmlFileInput fileInput = (HtmlFileInput) element;\n\t\tfileInput.setValueAttribute(getFileName().getAbsolutePath());\n\t}",
"private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}",
"public File getAttributeFile();",
"private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }",
"public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }",
"@Required\n\tpublic void setResource(final String filename) {\n\t\ttry {\n\t\t\tthis.validDocStr = ResourceUtil.getTextResource(\n\t\t\t\t\tthis.applicationContext, filename);\n\t\t} catch (final IOException e) {\n\t\t\tthrow new RuntimeException(\"Loading of text resource failed: \" + e);\n\t\t}\n\t}",
"final void setAttributes(int param1, int param2) {\n }",
"private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }",
"void setStockFile(stockFilePT102.StockFileDocument.StockFile stockFile);",
"public void setFile(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }",
"private void setFile(String file){\n put(SlackParamsConstants.FILE, file);\n }",
"public native void setFileName(String fileName) throws MagickException;",
"void initGlobalAttributes() {\n\n\t}",
"public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }",
"public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"private static native JavaScriptObject nativeUpdateFileProperties(JavaScriptObject file,\n int fileStatus) /*-{\n file.modificationdate = file.lastModifiedDate;\n file.filestatus = fileStatus;\n return file;\n }-*/;",
"public void setFl(String fileName){\n fl = fileName;\n }",
"private void setFile(Serializable object, String path) throws Exception {\t\t\n\t\t\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(object);\n objectOut.close(); \n\t\t\n\t}",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open MasterFile(fid, ?d0, _, ?d1, ?info2); // auto\r\n\t\t////@ open this.DedicatedFile(DedicatedFile.class)(fid, null, _, d1, ?info3); // auto\r\n\t\t////@ open this.File(File.class)(fid, _, ?info4); // auto\r\n\t\tactive = b;\r\n\t\t////@ close this.File(File.class)(fid, b, info4); // auto\r\n\t\t////@ close this.DedicatedFile(DedicatedFile.class)(fid, null, b, d1, info3); // auto\r\n\t\t////@ close MasterFile(fid, null, b, d1, info2); // auto\r\n\t\t////@ close File(fid, b, info); // auto\r\n\t}",
"public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }",
"public void createAttributes() throws FileNotFoundException, JSONException {\n\t\tScanner input = new Scanner(new File(file));\n\t\tJSONObject js = new JSONObject(input.nextLine());\n\t\tfor (String s : JSONObject.getNames(js)) {\n\t\t\tJSONObject rest = js.getJSONObject(s);\n\t\t\tIterator itr = rest.keys();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tString a = (String) itr.next();\n\t\t\t\tattributes.add(a);\n\t\t\t}\n\t\t}\n\t\t\n\t}"
]
| [
"0.69728124",
"0.6395127",
"0.63848096",
"0.62229234",
"0.60940695",
"0.59811765",
"0.59027743",
"0.5880399",
"0.58145773",
"0.5789473",
"0.57864785",
"0.5749181",
"0.57300764",
"0.5659902",
"0.5654041",
"0.5635228",
"0.56342214",
"0.5634089",
"0.5601368",
"0.5598991",
"0.5587528",
"0.5566283",
"0.5557324",
"0.55388606",
"0.5533376",
"0.5514185",
"0.548668",
"0.54790586",
"0.5476764",
"0.5462929",
"0.54558843",
"0.5446126",
"0.5424697",
"0.5413618",
"0.5407775",
"0.54032475",
"0.53867376",
"0.5382648",
"0.53711283",
"0.53688854",
"0.53685886",
"0.53637445",
"0.53543437",
"0.53472525",
"0.53424644",
"0.5324173",
"0.530614",
"0.53028125",
"0.5278979",
"0.52736783",
"0.52721155",
"0.5266445",
"0.52648133",
"0.526207",
"0.5259358",
"0.5258188",
"0.5257436",
"0.52544236",
"0.5251359",
"0.5250628",
"0.5240669",
"0.5222689",
"0.5195686",
"0.51750964",
"0.51717925",
"0.5170436",
"0.5169514",
"0.5144406",
"0.51440907",
"0.5144038",
"0.5127712",
"0.51218176",
"0.51205194",
"0.5120178",
"0.51194245",
"0.51181394",
"0.5111375",
"0.510713",
"0.5105832",
"0.5103158",
"0.5097664",
"0.5088657",
"0.5085885",
"0.50808114",
"0.50803196",
"0.5068174",
"0.5067553",
"0.5067508",
"0.50666004",
"0.5060669",
"0.5060148",
"0.50537056",
"0.5047125",
"0.5045305",
"0.5044157",
"0.50396776",
"0.5038309",
"0.50346416",
"0.50342774",
"0.503149"
]
| 0.62218463 | 4 |
Sets Unix permissions in a way that is understood by InfoZip's unzip command. | public void setUnixMode(final int mode) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "a13d2215-1fc7-4e0b-b063-a68e25c9c4e3");
setExternalAttributes((mode << SHORT_SHIFT) | ((mode & 0200) == 0 ? 1 : 0) | (isDirectory() ? 0x10 : 0));
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c0f46ba4-3aa9-49bd-8d58-a3ffdd50c894");
platform = PLATFORM_UNIX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }",
"public static ProcessResult setPermissions(String target, String permissions) {\n String command = \"sudo chmod -R \" + permissions + \" \" + target;\n LOG.debug(\"ics.core.io.FileUtils.setPermissions(): \");\n return ShellUtil.executeShellCommand(command);\n }",
"private void setExecutablePermission(File file) throws IOException {\n Runtime.getRuntime().exec(new String[] { \"chmod\", \"777\", file.getAbsolutePath() });\n }",
"private static void setPermission(Path path) throws JulongChainException {\n if(System.getProperty(SYSTEM_PROP_OS).contains(SYSTEM_PROP_VALUE_WINDOWS)) {\n return;\n }\n\n Set<PosixFilePermission> filePermissions = new HashSet<>();\n filePermissions.add(PosixFilePermission.OWNER_READ);\n filePermissions.add(PosixFilePermission.OWNER_WRITE);\n filePermissions.add(PosixFilePermission.OWNER_EXECUTE);\n filePermissions.add(PosixFilePermission.GROUP_READ);\n filePermissions.add(PosixFilePermission.GROUP_EXECUTE);\n filePermissions.add(PosixFilePermission.OTHERS_READ);\n filePermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n try {\n Files.setPosixFilePermissions(path, filePermissions);\n } catch (IOException e) {\n throw new JulongChainException(\"set directory\" + path + \" permission failed \" + e.getMessage());\n }\n }",
"private static native int native_chmod( String path, int mode );",
"private void changeExecPermission(String permission, String filePath) {\n\t\t// TODO Auto-generated method stub\n\t\t// change permission to the uploaded science app for execute\n\t\t//String command = \"sudo chmod +\" + permission + \" \" + filePath;\n\t\tString command = \"chmod +\" + permission + \" \" + filePath;\n\t\ttry {\n\t\t\t// Create a Runtime instance.\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t// Execute the command.\n\t\t\tProcess p1 = rt.exec(command);\n\t\t\tSystem.out.println(command);\n\t\t\t// Read the input stream.\n\t\t\tInputStream instd = p1.getInputStream();\n\t\t\t// Create a buffered reader\n\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\t// Declare a temporary variable to contain a line.\n\t\t\tString line = \"\";\n\t\t\t// Declare a temporary variable to store a line count.\n\t\t\t// Begin to read each line from given output (or given file).\n\t\t\twhile ((line = buf_reader.readLine()) != null) {\n\t\t\t\t// Increment line count.\n\t\t\t\t// System.out.println(line);\n\t\t\t}\n\t\t\t// Close the buffered reader instance.\n\t\t\tbuf_reader.close();\n\t\t\t// Let's wait for the Runtime instance to be done.\n\t\t\tp1.waitFor();\n\n\t\t\tInputStream errstd = p1.getErrorStream();\n\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\twhile ((line = buf_err_reader.readLine()) != null) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t\tbuf_err_reader.close();\n\t\t} catch (Exception ex) {\n\t\t\t// ex.printStackTrace();\n\t\t\t// Print out any message when an error(s) occurs.\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t}\n\t}",
"private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}",
"public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;",
"public static native void chmod(String path, int mode) throws IOException;",
"private void uhqa_4_fix() {\n try {\n CommandResult uhqa_4_fix = Shell.SU.run(\"chmod 0644 /data/user/0/com.hana.mao/files/uhqa_4.txt\");\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Before\n public void adoptShellPermissions() {\n InstallUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES\n );\n }",
"void setPermission(String perm, boolean add);",
"public abstract void setPermissions(PermissionIFace permissions);",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"public void setPermissions(int permissions)\n {\n encryptionDictionary.setInt( \"P\", permissions );\n }",
"public void setPinning(LocalFileSystem localFS, Path path) throws\n IOException {\n FsPermission oldPermission = localFS.getFileStatus(path).getPermission();\n FsPermission permission = new FsPermission(oldPermission.getUserAction(),\n oldPermission.getGroupAction(), oldPermission.getOtherAction(), true);\n localFS.setPermission(path, permission);\n }",
"public void setUserModificationPermission(int permission) {\n this.permission = permission;\n }",
"private void changeDownloadPermission(boolean canDownload){\n if (getMainItem() instanceof BoxFile) {\n executeRequest(mFileApi.getCreateSharedLinkRequest(getMainItem().getId()).setCanDownload(canDownload));\n }\n else if (getMainItem() instanceof BoxFolder) {\n executeRequest(mFolderApi.getCreateSharedLinkRequest(getMainItem().getId()).setCanDownload(canDownload));\n }\n else if (getMainItem() instanceof BoxBookmark) {\n Toast.makeText(this, \"Bookmarks do not have a permission that can be changed.\", Toast.LENGTH_LONG).show();\n }\n }",
"public void setPermissions(boolean [] permissions)\n\t{\n\t\tthis.permissions = permissions;\n\t}",
"public abstract void setPermissionMap(Map<String, String> permissionMap, boolean setsToBase)\n\t\t\tthrows ConnectorException;",
"public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(gid);\n _data.writeString(filename);\n mRemote.transact(Stub.TRANSACTION_fixPermissionsSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }",
"public static boolean setWriteable(File f) {\n if(!f.exists())\n return true;\n\n // non Windows-based systems return the wrong value\n // for canWrite when the argument is a directory --\n // writing is based on the 'x' attribute, not the 'w'\n // attribute for directories.\n if(f.canWrite()) {\n if(!f.isDirectory())\n return true;\n }\n \n String fName;\n try {\n fName = f.getCanonicalPath();\n } catch(IOException ioe) {\n fName = f.getPath();\n }\n \n String cmds[] = null;\n if(f.isDirectory())\n cmds = new String[] { \"chmod\", \"u+w+x\", fName };\n else\n cmds = new String[] { \"chmod\", \"u+w\", fName};\n \n if( cmds != null ) {\n try { \n Process p = Runtime.getRuntime().exec(cmds);\n p.waitFor();\n }\n catch(SecurityException ignored) { }\n catch(IOException ignored) { }\n catch(InterruptedException ignored) { }\n }\n \n\t\treturn f.canWrite();\n }",
"private void setPermissions( String userId, ProposalDevelopmentDocument doc, Set<String> editModes ) {\n\t\tif ( editModes.contains( AuthorizationConstants.EditMode.FULL_ENTRY ) ) {\n\t\t\teditModes.add( \"modifyProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_BUDGET ) ) {\n\t\t\teditModes.add( \"addBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.OPEN_BUDGETS ) ) {\n\t\t\teditModes.add( \"openBudgets\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_BUDGET ) ) {\n\t\t\teditModes.add( \"modifyProposalBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_PROPOSAL_ROLES ) ) {\n\t\t\teditModes.add( \"modifyPermissions\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_NARRATIVE ) ) {\n\t\t\teditModes.add( \"addNarratives\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.CERTIFY ) ) {\n\t\t\teditModes.add( \"certify\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_NARRATIVE_STATUS ) ) {\n\t\t\teditModes.add( \"modifyNarrativeStatus\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.PRINT_PROPOSAL ) ) {\n\t\t\teditModes.add( \"printProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"alterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SHOW_ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"showAlterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SUBMIT_TO_SPONSOR ) ) {\n\t\t\teditModes.add( \"submitToSponsor\" );\n\t\t}\n\t\tif ( canExecuteTask( userId, doc, TaskName.MAINTAIN_PROPOSAL_HIERARCHY ) ) {\n\t\t\teditModes.add( \"maintainProposalHierarchy\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.REJECT_PROPOSAL ) ) {\n\t\t\teditModes.add( TaskName.REJECT_PROPOSAL );\n\t\t}\n\n\t\tsetNarrativePermissions( userId, doc, editModes );\n\t}",
"protected void setPermissionLocal(int permission) {\r\n\t\tif (permission == nPermission)\r\n\t\t\treturn ;\r\n\t\tnPermission = permission;\r\n\t}",
"public UnixFakeFileSystem() {\n this.setDirectoryListingFormatter(new UnixDirectoryListingFormatter());\n }",
"public static void setExecutable(final String pathname) throws GrassExecutionException {\r\n\r\n final String version = System.getProperty(\"java.version\").substring(0, 3);\r\n final Float f = Float.valueOf(version);\r\n if (f.floatValue() < (float) 1.6) {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n try {\r\n Runtime.getRuntime().exec(\"chmod +x \" + pathname);\r\n }\r\n catch (final IOException e) {\r\n throw new GrassExecutionException();\r\n }\r\n }\r\n }\r\n else {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n new File(pathname).setExecutable(true);\r\n }\r\n }\r\n }",
"public boolean isUnixSymlink() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"84f6051d-bdd8-4173-bc7a-b13069f78695\");\n return (getUnixMode() & UnixStat.FILE_TYPE_FLAG) == UnixStat.LINK_FLAG;\n }",
"private void allowWalletFileAccess() {\n if (Constants.TEST) {\n Io.chmod(walletFile, 0777);\n }\n\n }",
"public static void setPermission(String permission) {\n\t\tsetPermission(last[0],last[1], permission);\n\t}",
"@Override\r\n\tpublic boolean convertDOSFileToUnix(String filePath) throws FileSystemUtilException {\r\n\t\ttry {\r\n\t\t\treturn new ConvertFiles().dosToUnix(filePath);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception::\",e);\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",null,Level.ERROR,e);\t\r\n\t\t}\r\n\t}",
"public static int chmod( final String path, final int mode )\n {\n if ( loaded )\n {\n return native_chmod( path, mode );\n }\n Debug.print( \"skip chmod\", path, \"0\" + Integer.toOctalString( mode ) );\n return ENOEXEC;\n }",
"private static boolean updateFilePermissions(File source, File target, boolean targetAlreadyExisted)\n\t\t\tthrows DeploymentException {\n\t\tSet<PosixFilePermission> permissionsFrom = FilesUtils.getPermissions(source);\n\t\tSet<PosixFilePermission> permissionsTo = FilesUtils.getPermissions(target);\n\n\t\t// update permission if necessary\n\t\tif (!CollectionUtils.isEqualCollection(permissionsFrom, permissionsTo)) {\n\t\t\tif (targetAlreadyExisted)\n\t\t\t\tlog.info(\"updating file permissions {}\", target);\n\t\t\tFilesUtils.updatePermissions(target, permissionsFrom);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"private void setChecks() {\n try {\n // Get status of theFile\n FTPReply statReply = client.sendCustomCommand(\"STAT \" + theFile);\n String[] messages = statReply.getMessages();\n\n // Get permissions from messages\n char[] perms = new char[9];\n messages[1].getChars(2,11,perms,0);\n\n // Set owner permission check boxes\n if (perms[0] == 'r') ownerRead.setSelected(true);\n if (perms[1] == 'w') ownerWrite.setSelected(true);\n if (perms[2] == 'x') ownerExe.setSelected(true);\n\n // Set group permission check boxes\n if (perms[3] == 'r') groupRead.setSelected(true);\n if (perms[4] == 'w') groupWrite.setSelected(true);\n if (perms[5] == 'x') groupExe.setSelected(true);\n\n // Set all permission check boxes\n if (perms[6] == 'r') allRead.setSelected(true);\n if (perms[7] == 'w') allWrite.setSelected(true);\n if (perms[8] == 'x') allExe.setSelected(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (FTPIllegalReplyException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testSetPermissions() {\n System.out.println(\"setPermissions\");\n ArrayList<File> files = new ArrayList<File>();\n Docker instance = new Docker(\"ubuntu\", \"git\", files, \"sh6791\", \"matrix\", \"v1\", \"saqhuss\", \"dockersh6791\", \"[email protected]\");\n instance.setPermissions();\n Process p;\n String line = null;\n StringBuilder sb = new StringBuilder();\n try {\n p = Runtime.getRuntime().exec(new String[]{\"docker\", \"ps\"});\n BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n line = reader.readLine();\n } catch (Exception e) {\n\n }\n assertEquals(line.split(\" \")[0].trim(), \"CONTAINER\");\n }",
"@Override\r\n\tpublic boolean convertUnixFileToDOS(String filePath) throws FileSystemUtilException {\r\n\t\ttry {\r\n\t\t\treturn new ConvertFiles().unixToDos(filePath);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception::\",e);\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",null,Level.ERROR,e);\t\r\n\t\t}\r\n\t}",
"private void setTempPermissions(Permissible permissible, Map<String, Boolean> permissions) {\n PermissionAttachment pa = permissible.addAttachment(this, 1);\n \n // Set permissions by cheating, avoiding unnecessary recalculatePermissions() calls (borrowed from zPerms)\n boolean success = false;\n try {\n Field perms = pa.getClass().getDeclaredField(\"permissions\");\n perms.setAccessible(true);\n @SuppressWarnings(\"unchecked\")\n Map<String, Boolean> privatePerms = (Map<String, Boolean>)perms.get(pa);\n privatePerms.clear();\n privatePerms.putAll(permissions);\n pa.getPermissible().recalculatePermissions();\n success = true;\n }\n catch (SecurityException e) {\n // Do nothing\n }\n catch (NoSuchFieldException e) {\n // Do nothing\n }\n catch (IllegalArgumentException e) {\n // Do nothing\n }\n catch (IllegalAccessException e) {\n // Do nothing\n }\n \n // Fall back to the slow, but legal way\n if (!success) {\n for (Map.Entry<String, Boolean> me : permissions.entrySet()) {\n pa.setPermission(me.getKey(), me.getValue());\n }\n }\n }",
"public void setPermission(int permission) {\r\n\r\n\t\tif (permission == nPermission)\r\n\t\t\treturn;\r\n\r\n\t\tsetPermissionLocal(permission);\r\n\t}",
"private void changePermissionsInUI(int position) {\n if (permissions.get(position).equals(\"Viewer\")) {\n permissions.set(position, \"Editor\");\n items.set(position, users.get(position) + \": Editor\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to an Editor\", Toast.LENGTH_SHORT).show();\n } else if (permissions.get(position).equals(\"Editor\")) {\n permissions.set(position, \"Viewer\");\n items.set(position, users.get(position) + \": Viewer\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to a Viewer\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }",
"public int getUserModificationPermission() {\n return permission;\n }",
"@Override\r\n\tpublic int updPermission(Permission perms) {\n\t\treturn 0;\r\n\t}",
"@RequiresPermission(anyOf = {\n android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS,\n android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS\n })\n //@SystemApi\n public void updatePermissionFlags(@NonNull String packageName, @NonNull String permissionName,\n @PackageManager.PermissionFlags int flagMask,\n @PackageManager.PermissionFlags int flagValues, @NonNull UserHandle user) {\n if (DEBUG_TRACE_PERMISSION_UPDATES && shouldTraceGrant(packageName, permissionName,\n user.getIdentifier())) {\n Log.i(LOG_TAG, \"App \" + mContext.getPackageName() + \" is updating flags for \"\n + packageName + \" \" + permissionName + \" for user \"\n + user.getIdentifier() + \": \" + DebugUtils.flagsToString(\n PackageManager.class, \"FLAG_PERMISSION_\", flagMask) + \" := \"\n + DebugUtils.flagsToString(PackageManager.class, \"FLAG_PERMISSION_\",\n flagValues), new RuntimeException());\n }\n try {\n final boolean checkAdjustPolicyFlagPermission =\n mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.Q;\n mPermissionManager.updatePermissionFlags(packageName, permissionName, flagMask,\n flagValues, checkAdjustPolicyFlagPermission, user.getIdentifier());\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }",
"public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }",
"@After\n public void dropShellPermissions() {\n InstallUtils.dropShellPermissionIdentity();\n }",
"public static native void mkdirs(String path, int mode) throws IOException;",
"protected void setPrivileges(PrivilegeSet ps) { this.privileges = ps; }",
"private static void setAllowedPathAccess(HttpServletRequest request){\n\t\tString idStr = request.getParameter(PROJECTID);\n\t\tString accessPath = portalProperties.getProperty(\"curriculum_base_dir\");\n\t\t\n\t\t/* catch minify command and set access path to the vle/all */\n\t\tif(\"minify\".equals(request.getParameter(\"command\"))){\n\t\t\taccessPath = accessPath.replace(\"curriculum\", \"vle/all\");\n\t\t}\n\t\t\n\t\tif(\"studentAssetUpload\".equals(request.getParameter(\"cmd\")) || \"studentAssetCopyForReference\".equals(request.getParameter(\"command\"))) {\n\t\t\taccessPath = portalProperties.getProperty(\"studentuploads_base_dir\");\n\t\t}\n\t\t\n\t\t/* if there is a project id parameter, set access level to the project dir */\n\t\tif(idStr != null && !idStr.equals(\"\") && !idStr.equals(\"none\")){\n\t\t\ttry{\n\t\t\t\tProject project = projectService.getById(Long.parseLong(idStr));\n\t\t\t\tString projectPath = (String) project.getCurnit().accept(new CurnitGetCurnitUrlVisitor());\n\t\t\t\tif(projectPath != null){\n\t\t\t\t\tFile accessFile = new File(accessPath + projectPath);\n\t\t\t\t\taccessPath = accessFile.getParentFile().getCanonicalPath();\n\t\t\t\t}\n\t\t\t} catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ObjectNotFoundException 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\n\t\trequest.setAttribute(\"accessPath\", accessPath);\n\t}",
"public void setRights(String lang, String value) {\n/* 279 */ setLangAlt(\"rights\", lang, value);\n/* */ }",
"public Set<PosixFilePermission> permissions() {\n List<PosixFilePermission> listPermissions = new ArrayList<PosixFilePermission>();\n listPermissions.add(PosixFilePermission.OWNER_READ);\n listPermissions.add(PosixFilePermission.OWNER_WRITE);\n listPermissions.add(PosixFilePermission.OWNER_EXECUTE);\n listPermissions.add(PosixFilePermission.GROUP_READ);\n listPermissions.add(PosixFilePermission.GROUP_WRITE);\n listPermissions.add(PosixFilePermission.GROUP_EXECUTE);\n listPermissions.add(PosixFilePermission.OTHERS_READ);\n listPermissions.add(PosixFilePermission.OTHERS_WRITE);\n listPermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n\n // We get the permission string and we create it by looking up\n String permissionString = this.attrs.getPermissionsString();\n Set<PosixFilePermission> permissions = new HashSet<PosixFilePermission>();\n char nothing = \"-\".charAt(0);\n // We skip the first character as it's the file type\n for (int i=1; i< permissionString.length();i++) {\n if (permissionString.charAt(i) != nothing) {\n permissions.add(listPermissions.get(i-1));\n }\n }\n\n return permissions;\n\n }",
"public void doFolder_permissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\t\tParameterParser params = data.getParameters();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// get the current collection id and the related site\n\t\tString collectionId = params.getString(\"collectionId\"); //(String) state.getAttribute (STATE_COLLECTION_ID);\n\t\tString title = \"\";\n\t\ttry\n\t\t{\n\t\t\ttitle = ContentHostingService.getProperties(collectionId).getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t}\n\t\tcatch (PermissionException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notread\"));\n\t\t}\n\t\tcatch (IdUnusedException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notfindfol\"));\n\t\t}\n\n\t\t// the folder to edit\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, ref.getReference());\n\n\t\t// use the folder's context (as a site) for roles\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\t\tstate.setAttribute(PermissionsHelper.ROLES_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis\") + \" \" + title);\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"void setRepositoryPermissionsToReadOnly(URL repositoryUrl, String projectKey, String username) throws Exception;",
"public static void setPermission(String root, String sub, String permission) {\n\t\tif(!permissions.containsKey(root)) return;\n\t\tif(permissions.get(root) == null)\n\t\t{\n\t\t\t//create new hashmap\n\t\t\tpermissions.put(root, new HashMap<String, String>());\n\t\t}\n\t\t\n\t\tpermissions.get(root).put(sub, permission);\n\t\tlast[0] = root;\n\t\tlast[1] = sub;\n\t}",
"private void setShipModifiers(ShipType ship, int... mods) {\n\t\tfor (int i = 0; i < mods.length; i++) {\n\t\t\tshipModifiers[ship.ordinal()][i] = mods[i];\n\t\t}\n\t}",
"public static final boolean isUnix() {\n return (getOperatingSystem() & OS_UNIX_MASK) != 0;\n }",
"public void permissionLocation(boolean setting){\n\t\t\n\t\tif (setting)\n\t\t\tif (sel.isPresence(By.id(LOCELEMENT_ANDROID.allow_id))){\n\t\t\t\tsel.clickElement(By.id(LOCELEMENT_ANDROID.allow_id));\n\t\t\t\tLoggerTrack.setInfo(\"permissionLocation true \");\n\t\t\t}\n\t\telse\n\t\t\tif (sel.isPresence(By.id(LOCELEMENT_ANDROID.deny_id))){\n\t\t\t\tsel.clickElement(By.id(LOCELEMENT_ANDROID.deny_id));\n\t\t\t\tLoggerTrack.setInfo(\"permissionLocation false \");\n\t\t\t}\t\n\t\t \n\t}",
"public void copyToUnix(String mon_file) throws FileNotFoundException {\n\n\t\ttry {\n\t\t\tUnixConnection.connectToUnix();\n\t\t\tChannel channel = sesConnection.openChannel(\"sftp\");\n\t\t\tchannel.connect();\n\t\t\tChannelSftp sftpChannel = (ChannelSftp) channel;\n\t\t\t// ChannelExec channelExe =\n\t\t\t// (ChannelExec)sesConnection.openChannel(\"exec\");\n\n\t\t\tsftpChannel.put(mon_file, mon_file);\n\n\t\t\t// works!!\n\t\t\tthis.execute(\"tr -d '\\015' <\" + mon_file + \">temp.sh\");\n\t\t\tthis.execute(\"rm \" + mon_file);\n\t\t\tthis.execute(\"mv temp.sh \" + mon_file);\n\t\t\tthis.execute(\"chmod 0775 \" + mon_file);\n\n\t\t\tsftpChannel.exit();\n\t\t\tsftpChannel.disconnect();\n\t\t\tchannel.disconnect();\n\t\t\tUnixConnection.disconnectFromUnix();\n\t\t} catch (JSchException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SftpException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public interface IGetFilePermission extends FileOperation\n{\n /**\n * A Map of keys (user@domain) and a string of the permission\n * type (i.e. read, write, etc) is retruned. If the permission\n * is sticky, a (I) is appended to the permssion string.\n * @return\n */\n public Map<String, Object> getPermissionTable();\n\n public boolean isInherited();\n}",
"private void updatePermissions(String userId, String siteId, List<SignupMeeting> meetings) {\n\t\tfor (SignupMeeting meeting : meetings) {\n\t\t\tboolean attend = isAllowToAttend(userId, siteId, meeting);\n\t\t\tboolean update = isAllowToUpdate(userId, siteId, meeting);\n\t\t\tboolean delete = isAllowToDelete(userId, siteId, meeting);\n\t\t\tPermission permission = new Permission(attend, update, delete);\n\t\t\tmeeting.setPermission(permission);\n\t\t}\n\n\t}",
"@POST\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n @Path(\"facl/{systemId}/{path:.*+}\")\n public Response runLinuxSetfacl(@PathParam(\"systemId\") String systemId,\n @PathParam(\"path\") String path,\n @Valid NativeLinuxFaclRequest request,\n @Context SecurityContext securityContext)\n {\n ResourceRequestUser rUser = new ResourceRequestUser((AuthenticatedUser) securityContext.getUserPrincipal());\n String oboUser = rUser.getOboUserId();\n\n // Make sure the Tapis System exists and is enabled\n TapisSystem system = LibUtils.getSystemIfEnabled(rUser, systemsCache, systemId);\n\n NativeLinuxOpResult nativeLinuxOpResult;\n try\n {\n IRemoteDataClient client = getClientForUserAndSystem(rUser, system);\n\n // Make the service call\n nativeLinuxOpResult = fileUtilsService.setfacl(client, path, request.getOperation(),\n request.getRecursionMethod(), request.getAclString());\n }\n catch (TapisException | ServiceException | IOException e)\n {\n String msg = LibUtils.getMsgAuthR(\"FILES_OPS_ERR\", rUser, \"setfacl\", systemId, path, e.getMessage());\n log.error(msg, e);\n throw new WebApplicationException(msg, e);\n }\n\n String msg = ApiUtils.getMsgAuth(\"FAPI_LINUX_OP_DONE\", rUser, \"setfacl\", systemId, path);\n TapisResponse<NativeLinuxOpResult> resp = TapisResponse.createSuccessResponse(msg, nativeLinuxOpResult);\n return Response.ok(resp).build();\n }",
"void setPerm(String name,\n Object value);",
"public void directoryChange( int type, Set fileSet );",
"@Path(\"{uid}/\")\n @PUT\n @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public void setPermissions(@PathParam(\"uid\") Long uid, JAXBElement<Permissions> jbPermissions) {\n try (Connection cn = catalogue.getConnection()) {\n try {\n LogicalData res = catalogue.getLogicalDataByUid(uid, cn);\n if (res == null) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n MyPrincipal mp = (MyPrincipal) request.getAttribute(\"myprincipal\");\n Permissions p = catalogue.getPermissions(uid, res.getOwner(), cn);\n if (!mp.canWrite(p)) {\n throw new WebApplicationException(Response.Status.UNAUTHORIZED);\n }\n Permissions permissions = jbPermissions.getValue();\n catalogue.updateOwner(uid, permissions.getOwner(), cn);\n catalogue.setPermissions(uid, permissions, cn);\n cn.commit();\n } catch (SQLException ex) {\n Logger.getLogger(PermissionsResource.class.getName()).log(Level.SEVERE, null, ex);\n cn.rollback();\n throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR);\n }\n } catch (SQLException ex) {\n Logger.getLogger(PermissionsResource.class.getName()).log(Level.SEVERE, null, ex);\n throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR);\n }\n }",
"int getPermissionWrite();",
"public void setNegativePermissions();",
"public String createUnixShellCommand(SeqAnalysisLocal seqAnalysis);",
"private void addAclIf(boolean isAuth, String permission, Set<String> acl ) {\n\t\tif (isAuth) {\n\t\t\tacl.add(permission);\n\t\t}\n\t}",
"@ApiModelProperty(required = true, value = \"The remote system permission of the invoking user on the file/folder.\")\n public String getPermissions() {\n return permissions;\n }",
"public void setPermissions(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions permissions) {\r\n this.permissions = permissions;\r\n }",
"public void setMode(String[] args) {\n\t\t\tfor (String arg : args) {\n\t\t\t\tif (arg.equals(\"-i\")) {\n\t\t\t\t\tthis.mode = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"public void setUnzipRange(int newUnzip) {\n\t\tunzipRange = newUnzip;\n\t\thelicase.setUnzipLength(newUnzip);\n\t}",
"public void doPermissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// should we save here?\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\t// get the current home collection id and the related site\n\t\tString collectionId = (String) state.getAttribute (STATE_HOME_COLLECTION_ID);\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\n\t\t// setup for editing the permissions of the site for this tool, using the roles of this site, too\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis1\")\n\t\t\t\t+ SiteService.getSiteDisplay(ref.getContext()));\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}",
"@Test\n public void testListStatusACL() throws IOException {\n String testfilename = \"testFileACL\";\n String childDirectoryName = \"testDirectoryACL\";\n TEST_DIR.mkdirs();\n File infile = new File(TEST_DIR, testfilename);\n final byte[] content = \"dingos\".getBytes();\n\n try (FileOutputStream fos = new FileOutputStream(infile)) {\n fos.write(content);\n }\n assertEquals(content.length, infile.length());\n File childDir = new File(TEST_DIR, childDirectoryName);\n childDir.mkdirs();\n\n Configuration conf = new Configuration();\n ConfigUtil.addLink(conf, \"/file\", infile.toURI());\n ConfigUtil.addLink(conf, \"/dir\", childDir.toURI());\n conf.setBoolean(Constants.CONFIG_VIEWFS_MOUNT_LINKS_AS_SYMLINKS, false);\n try (FileSystem vfs = FileSystem.get(FsConstants.VIEWFS_URI, conf)) {\n assertEquals(ViewFileSystem.class, vfs.getClass());\n FileStatus[] statuses = vfs.listStatus(new Path(\"/\"));\n\n FileSystem localFs = FileSystem.getLocal(conf);\n FileStatus fileStat = localFs.getFileStatus(new Path(infile.getPath()));\n FileStatus dirStat = localFs.getFileStatus(new Path(childDir.getPath()));\n\n for (FileStatus status : statuses) {\n if (status.getPath().getName().equals(\"file\")) {\n assertEquals(fileStat.getPermission(), status.getPermission());\n } else {\n assertEquals(dirStat.getPermission(), status.getPermission());\n }\n }\n\n localFs.setPermission(new Path(infile.getPath()),\n FsPermission.valueOf(\"-rwxr--r--\"));\n localFs.setPermission(new Path(childDir.getPath()),\n FsPermission.valueOf(\"-r--rwxr--\"));\n\n statuses = vfs.listStatus(new Path(\"/\"));\n for (FileStatus status : statuses) {\n if (status.getPath().getName().equals(\"file\")) {\n assertEquals(FsPermission.valueOf(\"-rwxr--r--\"),\n status.getPermission());\n assertFalse(status.isDirectory());\n } else {\n assertEquals(FsPermission.valueOf(\"-r--rwxr--\"),\n status.getPermission());\n assertTrue(status.isDirectory());\n }\n }\n }\n }",
"@Test\n public void testSetPolicy2() throws Exception {\n setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);\n\n setupPermission(getTestRoot(), null, EveryonePrincipal.getInstance(), false, JCR_NAMESPACE_MANAGEMENT);\n }",
"private void setFolderFlags(IPSPubServer pubServer, IPSSite site, PSPublishServerInfo serverInfo)\n {\n Boolean isOwnServer = Boolean.parseBoolean(pubServer.getProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY)\n .getValue()) ? true : false;\n String folderValue = pubServer.getProperty(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY).getValue();\n String publishType = pubServer.getPublishType();\n\n PSPublishServerProperty defaultServerFlagProperty = new PSPublishServerProperty();\n defaultServerFlagProperty.setKey(DEFAULT_SERVER_FLAG);\n\n PSPublishServerProperty ownServeFlagProperty = new PSPublishServerProperty();\n ownServeFlagProperty.setKey(OWN_SERVER_FLAG);\n\n if (publishType.equalsIgnoreCase(PublishType.filesystem.toString()) || publishType.equalsIgnoreCase(PublishType.filesystem_only.toString()))\n {\n String defaultServerValue = EMPTY;\n String ownServerValue = EMPTY;\n\n if (isOwnServer)\n {\n defaultServerFlagProperty.setValue(\"false\");\n ownServeFlagProperty.setValue(\"true\");\n ownServerValue = folderValue;\n }\n else\n {\n // This is a default CM1 server\n defaultServerFlagProperty.setValue(\"true\");\n ownServeFlagProperty.setValue(\"false\");\n defaultServerValue = normalizePath(siteDataService.getBasePublishingRoot(folderValue, site.getName()));\n folderValue = defaultServerValue;\n }\n // Add the default flag property\n serverInfo.getProperties().add(defaultServerFlagProperty);\n\n // Add the own flag property\n serverInfo.getProperties().add(ownServeFlagProperty);\n\n // Add the default server property\n PSPublishServerProperty defaultServerProperty = new PSPublishServerProperty();\n defaultServerProperty.setKey(IPSPubServerDao.PUBLISH_DEFAULT_SERVER_PROPERTY);\n defaultServerProperty.setValue(defaultServerValue);\n serverInfo.getProperties().add(defaultServerProperty);\n\n // Add the own server property\n PSPublishServerProperty ownServerProperty = new PSPublishServerProperty();\n ownServerProperty.setKey(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY);\n ownServerProperty.setValue(normalizePath(ownServerValue));\n serverInfo.getProperties().add(ownServerProperty);\n\n // Add the folder property\n PSPublishServerProperty folderProperty = new PSPublishServerProperty();\n folderProperty.setKey(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n folderProperty.setValue(normalizePath(folderValue));\n serverInfo.getProperties().add(folderProperty);\n }\n\n if (publishType.equalsIgnoreCase(PublishType.ftp.toString()) || publishType.equalsIgnoreCase(PublishType.ftp_only.toString())\n || publishType.equalsIgnoreCase(PublishType.ftps.toString()) || publishType.equalsIgnoreCase(PublishType.ftps_only.toString())\n || publishType.equalsIgnoreCase(PublishType.sftp.toString()) || publishType.equalsIgnoreCase(PublishType.sftp_only.toString()))\n {\n String folderPropertyValue = EMPTY;\n\n if (isOwnServer)\n {\n defaultServerFlagProperty.setValue(\"false\");\n ownServeFlagProperty.setValue(\"true\");\n folderPropertyValue = folderValue;\n }\n else\n {\n // This is a default CM1 server\n defaultServerFlagProperty.setValue(\"true\");\n ownServeFlagProperty.setValue(\"false\");\n folderPropertyValue = normalizePath(siteDataService.getBasePublishingRoot(folderValue, site.getName()));\n }\n // Add the default flag property\n serverInfo.getProperties().add(defaultServerFlagProperty);\n\n // Add the own flag property\n serverInfo.getProperties().add(ownServeFlagProperty);\n\n // Add the folder property\n PSPublishServerProperty folderProperty = new PSPublishServerProperty();\n folderProperty.setKey(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n folderProperty.setValue(folderPropertyValue);\n serverInfo.getProperties().add(folderProperty);\n }\n }",
"public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }",
"public void setFlags(int flags) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 156, flags);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 124, flags);\n\t\t}\n\t}",
"@Test\n public void testAuditLoggerWithSetPermission() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n final Path p = new Path(\"/\");\n fs.setTimes(p, time, time);\n fs.setPermission(p, new FsPermission(TestAuditLogger.TEST_PERMISSION));\n Assert.assertEquals(TestAuditLogger.TEST_PERMISSION, TestAuditLogger.DummyAuditLogger.foundPermission);\n Assert.assertEquals(2, TestAuditLogger.DummyAuditLogger.logCount);\n } finally {\n cluster.shutdown();\n }\n }",
"@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }",
"public String getInodePermissions(short fileMode)\n {\n\n\n StringBuilder inodeType = new StringBuilder();\n StringBuilder permissions = new StringBuilder();\n\n\n for(int i = 0; i < fileModes.length; i++)\n {\n if(fileMode(fileMode, fileModes[i]))\n {\n inodeType.append(getFileModeString(fileModes[i]));\n }\n }\n\n for(int i = 0; i < filePermissions.length; i++)\n {\n if(fileMode(fileMode, filePermissions[i]))\n {\n permissions.append(getFilePermission(filePermissions[i]));\n }\n else\n {\n permissions.append(\"-\");\n }\n }\n return inodeType.toString() + permissions.toString();\n }",
"public void setFlags(long uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(Long.toString(uid));\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"void resetRuntimePermissions(@NonNull AndroidPackage pkg,\n @UserIdInt int userId);",
"private String maskPassword( String commandLine )\n {\n String cmd = commandLine;\n\n if ( cmd != null && cmd.startsWith( \"svn\" ) )\n {\n String pwdString = \"--password\";\n\n if ( cmd.indexOf( pwdString ) > 0 )\n {\n int index = cmd.indexOf( pwdString ) + pwdString.length() + 1;\n\n int nextSpace = cmd.indexOf( \" \", index );\n\n cmd = cmd.substring( 0, index ) + \"********\" + cmd.substring( nextSpace );\n }\n }\n\n return cmd;\n }",
"public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tUtils.upgradeRootPermission(getPackageCodePath());\n\t\t\t}",
"public void updatePermissions(IPermission[] permissions) throws AuthorizationException;",
"@Override\r\n\tpublic void setContext(FileUtilContext context) throws FileSystemUtilException {\r\n\t\tthis.hostname = context.getHostname();\r\n\t\tthis.username = context.getUsername();\r\n\t\tthis.port = context.getPort();\r\n\t\tthis.readTimeOut = context.getReadTimeOut();\r\n\t\tthis.password = context.getPassword();\r\n\t\tthis.remoteFilePath = context.getRemoteFilePath();\r\n\t\tthis.localFilePath = context.getLocalFilePath();\r\n\t}",
"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}",
"private List<Integer> preparePermissionArrayListWithIntegerAsMask(String[] permissionArr) {\n\t\tList<Integer> preparePermissionArrayList = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i < permissionArr.length; i++) {\n\t\t\tpreparePermissionArrayList.add(Integer.valueOf(permissionArr[i]));\n\t\t}\n\t\treturn preparePermissionArrayList;\n\n\t}",
"public void setPermissions(Set<Permission> permissions) {\n this.permissions = permissions;\n }",
"public void setSecuPwdFlag(String value) {\n this.secuPwdFlag = value;\n }",
"public void setZip(String zip);",
"public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }",
"public void setInternalAttributes(final int value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c66dec57-e94d-47cc-bad0-17c4cbe2e595\");\n internalAttributes = value;\n }",
"public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }",
"void writeLegacyPermissionStateTEMP();",
"private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }",
"void setOsU( String osU );",
"public void setFlags(String uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(uid);\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public void ignoredTestParserUbuntu10_04_en()\n throws Exception\n {\n final Map map = checkStream( \"Linux\" );\n\n final FileAttributes o = (FileAttributes) map.get(\n \"src/main/java/org/codehaus/plexus/components/io/attributes/AttributeConstants.java\" );\n\n // -rw-r--r-- 1 1020 1030 11108 Mar 16 22:42 build.xml\n assertEquals( \"-rw-rw-r--\", new String( o.getLsModeParts() ) );\n assertEquals( 1020, o.getUserId().intValue() );\n assertEquals( 1030, o.getGroupId().intValue() );\n // Should probably test pass 2 too...\n }"
]
| [
"0.6052387",
"0.5887226",
"0.5816919",
"0.58145654",
"0.58024925",
"0.54391086",
"0.54320914",
"0.5372653",
"0.531602",
"0.5207357",
"0.51062995",
"0.48484597",
"0.48472276",
"0.47764587",
"0.4749787",
"0.4685975",
"0.4685765",
"0.46806562",
"0.46708062",
"0.46185082",
"0.46104053",
"0.46092054",
"0.4522116",
"0.44801643",
"0.44124734",
"0.4412255",
"0.4397771",
"0.43849677",
"0.43817735",
"0.43783486",
"0.43754056",
"0.43738362",
"0.43615863",
"0.43605292",
"0.4356153",
"0.43214315",
"0.43068004",
"0.43006206",
"0.42165342",
"0.42131492",
"0.42060238",
"0.42058703",
"0.42020395",
"0.4197831",
"0.41950688",
"0.41933143",
"0.41930893",
"0.41891846",
"0.41861582",
"0.41784889",
"0.41769496",
"0.41712064",
"0.41565442",
"0.41059944",
"0.41058052",
"0.41011953",
"0.4100402",
"0.4096697",
"0.40959004",
"0.40937343",
"0.40798363",
"0.407637",
"0.4074186",
"0.40736517",
"0.40725842",
"0.40696716",
"0.40618083",
"0.4061447",
"0.4053754",
"0.40516078",
"0.40502638",
"0.40435246",
"0.40274268",
"0.40166372",
"0.4005395",
"0.40043807",
"0.39949873",
"0.39913395",
"0.39904556",
"0.39889148",
"0.39723602",
"0.39723405",
"0.39667547",
"0.39633182",
"0.39611346",
"0.3954948",
"0.39537865",
"0.39536828",
"0.39478055",
"0.39435866",
"0.39402065",
"0.39383146",
"0.39335483",
"0.39328945",
"0.3929231",
"0.39230338",
"0.39120728",
"0.39054602",
"0.39049834",
"0.38897642"
]
| 0.6553711 | 0 |
Returns true if this entry represents a unix symlink, in which case the entry's content contains the target path for the symlink. | public boolean isUnixSymlink() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "84f6051d-bdd8-4173-bc7a-b13069f78695");
return (getUnixMode() & UnixStat.FILE_TYPE_FLAG) == UnixStat.LINK_FLAG;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSymbolicLink() {\n return linkFlag == LF_SYMLINK;\n }",
"private boolean hasSymbolicLink(Path path)\n {\n if (Files.isSymbolicLink(path))\n {\n return true;\n }\n\n // Lets try each path segment\n Path base = path.getRoot();\n for (Path segment : path)\n {\n base = base.resolve(segment);\n if (Files.isSymbolicLink(base))\n {\n return true;\n }\n }\n\n return false;\n }",
"public boolean isLink() {\n return linkFlag == LF_LINK;\n }",
"public static boolean isSymbolicLink(Path path) {\n\t\treturn Files.isSymbolicLink(path);\n\t}",
"protected void assertSymlink(String binRelativePath, PathFragment absoluteTargetPath)\n throws Exception {\n if (OS.getCurrent() != OS.WINDOWS) {\n Path output = getOutputPath(binRelativePath);\n assertThat(output.isSymbolicLink()).isTrue();\n assertThat(output.readSymbolicLink()).isEqualTo(absoluteTargetPath);\n }\n }",
"public boolean verifySymlinkSource() {\n return this.mVerifySymlinkSource;\n }",
"private void assertLink(String filename) throws IOException {\n\t\t// if the OS is known to support symlink, check that the file is a symlink,\n\t\t// otherwise just check the file exist.\n\n\t\tFile file = new File(filename);\n\t\tassertTrue(\"The file \" + filename + \" doesn't exist\", file.exists());\n\n\t\tString os = System.getProperty(\"os.name\");\n\t\tif (os.equals(\"Linux\") || os.equals(\"Solaris\") || os.equals(\"FreeBSD\")) {\n\t\t\t// these OS should support symnlink, so check that the file is actually a\n\t\t\t// symlink.\n\t\t\t// this is done be checking that the canonical path is different from the\n\t\t\t// absolute\n\t\t\t// path.\n\t\t\tFile absFile = file.getAbsoluteFile();\n\t\t\tFile canFile = file.getCanonicalFile();\n\t\t\tassertFalse(\"The file \" + filename + \" isn't a symlink\", absFile.equals(canFile));\n\t\t}\n\t}",
"public boolean isLink(String str) { return link_to_line.keySet().contains(str); }",
"public boolean isLink(String label)\n {\n return true;\n }",
"public static final boolean isUnix() {\n return (getOperatingSystem() & OS_UNIX_MASK) != 0;\n }",
"public final boolean isHyperlink() {\n return hyperlink != null;\n }",
"public static boolean rootIsLinked(String rootCMD) {\n\t\treturn commands.containsKey(rootCMD);\n\t}",
"public boolean isGNULongNameEntry() {\n return linkFlag == LF_GNUTYPE_LONGNAME && GNU_LONGLINK.equals(name);\n }",
"public boolean isURL() {\n\t\treturn filename.charAt(0) == '?';\n\t}",
"public boolean hasSymbolicLinksEnabled(SrvSession sess, TreeConnection tree) {\n\n // Access the associated database interface to check if it supports symbolic links\n \n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n if ( dbCtx.getDBInterface().supportsFeature( DBInterface.FeatureSymLinks)) {\n \n // Database interface supports symbolic links\n\n return true;\n }\n \n // Symbolic links not supported\n \n return false;\n }",
"boolean hasInodeDirectory();",
"public boolean isDir() { return _entry==null; }",
"boolean hasFileLocation();",
"boolean hasInodeFile();",
"public static boolean isThisACollection(File linkAsFile) {\n\n if (linkAsFile == null) {\n return false;\n }\n if (! linkAsFile.exists()) {\n return false;\n }\n if (! linkAsFile.isDirectory()) {\n return false;\n }\n if (linkAsFile.isHidden()) {\n return false;\n }\n String linkToLower = linkAsFile.getName().toLowerCase();\n if (linkToLower.contains(\"archive\")\n || linkToLower.contains(\"backup\")\n || linkToLower.equals(\"deploy\")\n || linkToLower.equals(\"dist\")\n || linkToLower.equals(\"icons\")\n || linkToLower.equals(\"jars\")) {\n return false;\n }\n String fileName = linkAsFile.getName();\n if (fileName.equalsIgnoreCase(\"Library\")\n || fileName.equalsIgnoreCase(\"Music\")\n || fileName.equalsIgnoreCase(\"Pictures\")\n || fileName.equalsIgnoreCase(\"PSPub Omni Pack\")\n || fileName.endsWith(\".app\")) {\n return false;\n }\n\n File readMeFile = new File(linkAsFile, NoteIO.README_FILE_NAME);\n if ((! readMeFile.exists()) || (! readMeFile.canRead())) {\n return false;\n }\n\n String line = \"\";\n boolean notenikLineFound = false;\n try {\n FileReader fileReader = new FileReader(readMeFile);\n BufferedReader reader = new BufferedReader(fileReader);\n line = reader.readLine();\n while (line != null && (! notenikLineFound)) {\n int j = line.indexOf(NoteIO.README_LINE_1);\n notenikLineFound = (j >= 0);\n line = reader.readLine();\n }\n } catch(IOException e) {\n // Ignore\n }\n if (! notenikLineFound) {\n return false;\n }\n\n return true;\n }",
"public abstract boolean isPath();",
"public boolean isRelative() {\n return isRel;\n }",
"public static String readSymlinkTarget(File file) {\n try {\n return Files.readSymbolicLink(Paths.get(file.getAbsolutePath())).toString();\n } catch (IOException e) {\n return null;\n }\n }",
"public boolean isPathable() {\n // <<-- Creer-Merge: is_pathable_builtin -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs.\n return false; // DEVELOPER ADD LOGIC HERE\n // <<-- /Creer-Merge: is_pathable_builtin -->>\n }",
"public boolean hasURL() {\n return fieldSetFlags()[2];\n }",
"boolean hasSrcPath();",
"public static boolean isAbsolute(String path) {\n return path != null && path.startsWith(SHARE_ROOT);\n }",
"boolean hasFileLoc();",
"public boolean hasLink(L link) {\n return links.contains(link);\n }",
"boolean hasUpdateInodeDirectory();",
"public boolean hasPathTo(Site s) {\n\t\treturn marked[s.getX()][s.getY()];\n\t}",
"@Override\n\tpublic boolean canLink(Login object,\n\t String link,\n\t LinksAction action) {\n\t\treturn false;\n\t}",
"boolean accept(String diffEntryPath);",
"public static boolean isAbsolute(String key) {\n return isAbsolute(key, false);\n }",
"public boolean isSetLinkman() {\n return this.linkman != null;\n }",
"boolean hasDirName();",
"@Test\n public void downloadToplevel_symlinkToSourceFile() throws Exception {\n assumeFalse(OS.getCurrent() == OS.WINDOWS);\n\n setDownloadToplevel();\n writeSymlinkRule();\n write(\n \"BUILD\",\n \"load(':symlink.bzl', 'symlink')\",\n \"symlink(\",\n \" name = 'foo-link',\",\n \" target_artifact = ':foo.txt',\",\n \")\");\n write(\"foo.txt\", \"foo\");\n\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", getSourcePath(\"foo.txt\").asFragment());\n assertOnlyOutputContent(\"//:foo-link\", \"foo-link\", \"foo\" + lineSeparator());\n\n // Delete link, re-plant symlink\n getOutputPath(\"foo-link\").delete();\n buildTarget(\"//:foo-link\");\n\n assertOnlyOutputContent(\"//:foo-link\", \"foo-link\", \"foo\" + lineSeparator());\n }",
"boolean hasFilePath();",
"@Test\n public void downloadToplevel_unresolvedSymlink() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n\n setDownloadToplevel();\n writeSymlinkRule();\n write(\n \"BUILD\",\n \"load(':symlink.bzl', 'symlink')\",\n \"symlink(\",\n \" name = 'foo-link',\",\n \" target_path = '/some/path',\",\n \")\");\n\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", PathFragment.create(\"/some/path\"));\n\n // Delete link, re-plant symlink\n getOutputPath(\"foo-link\").delete();\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", PathFragment.create(\"/some/path\"));\n }",
"public static boolean isFileSystem(File f) {\r\n if (f instanceof ShellFolder) {\r\n ShellFolder sf = (ShellFolder) f;\r\n // Shortcuts to directories are treated as not being file system objects,\r\n // so that they are never returned by JFileChooser.\r\n return sf.isFileSystem() && !(sf.isLink() && sf.isDirectory());\r\n }\r\n else {\r\n return true;\r\n }\r\n }",
"public boolean hasLink() {\n return !links.isEmpty();\n }",
"protected boolean isLinkedWithEditor() {\n return modes.get(BCOConstants.F_LINK_VIEW_TO_EDITOR);\n }",
"boolean hasFileInfo();",
"boolean hasFileInfo();",
"public boolean openSource(String link) {\n final String str = \" PC=\";\n final int pcPos = link.indexOf(str);\n String classAndMethods = link.substring(0, pcPos);\n int dotIndex = classAndMethods.lastIndexOf('.');\n final String className = classAndMethods.substring(0, dotIndex);\n final String methodName = classAndMethods.substring(dotIndex + 1);\n int pc;\n try {\n pc = Integer.parseInt(link.substring(pcPos + str.length()));\n } catch (NumberFormatException e) {\n return false;\n }\n String[] ps = _classPath.split(java.io.File.pathSeparator);\n ArrayList<String> list = new ArrayList<String>();\n for (String s : ps) {\n list.add(s);\n }\n ps = System.getProperty(\"sun.boot.class.path\").split(java.io.File.pathSeparator);\n for (String s : ps) {\n list.add(s);\n }\n ClassFileTools.ClassLocation cl = null;\n try {\n cl = ClassFileTools.findClassFile(className, list);\n if (cl == null) {\n return false;\n }\n SourceFileAttributeInfo sf = (SourceFileAttributeInfo) cl.getClassFile().getAttribute(SourceFileAttributeInfo.getAttributeName());\n String fileName = sf.getSourceFileName().toString();\n String packageName = cl.getClassFile().getThisClassName();\n dotIndex = packageName.lastIndexOf('.');\n if (dotIndex >= 0) {\n packageName = packageName.substring(0, dotIndex).replace('.', File.separatorChar);\n fileName = packageName + File.separatorChar + fileName;\n } else {\n packageName = \"\";\n }\n String[] paths = _sourcePath.split(File.pathSeparator);\n File sourceFile = null;\n for (String s : paths) {\n File f = new File(s, fileName);\n if (f.exists()) {\n sourceFile = f;\n break;\n }\n }\n if (sourceFile == null) {\n return false;\n }\n int lineNo = -1;\n for (MethodInfo mi : cl.getClassFile().getMethods()) {\n if ((mi.getName().toString() + mi.getDescriptor().toString()).equals(methodName)) {\n for (AAttributeInfo ai : mi.getCodeAttributeInfo().getAttributes()) {\n if (ai.getName().toString().equals(LineNumberTableAttributeInfo.getAttributeName())) {\n LineNumberTableAttributeInfo lntai = (LineNumberTableAttributeInfo) ai;\n LineNumberTableAttributeInfo.LineNumberRecord[] lns = lntai.getLineNumbers();\n for (LineNumberTableAttributeInfo.LineNumberRecord l : lns) {\n if (l.startPC >= pc) {\n lineNo = l.lineNo;\n break;\n }\n }\n }\n if (lineNo >= 0) {\n break;\n }\n }\n }\n if (lineNo >= 0) {\n break;\n }\n }\n if (lineNo == -1) {\n return false;\n }\n try {\n Process p = ExecJVM.runJVM(\"edu.rice.cs.drjava.DrJava\", new String[] { sourceFile.toString() + File.pathSeparator + lineNo }, _drJavaJarFile.getAbsolutePath() + File.pathSeparator + System.getProperty(\"java.class.path\"), new String[] {}, new File(\".\"));\n return (p != null);\n } catch (IOException ioe) {\n return false;\n }\n } finally {\n try {\n if (cl != null) {\n cl.close();\n }\n } catch (IOException e) {\n return false;\n }\n }\n }",
"@Override\n\t\t\t\t\t\tpublic boolean accept(File arg0, String arg1) {\n\t\t\t\t\t\t\tif(arg1.contains(\"jlink\") || arg1.contains(\"RECYCLE.BIN\")){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tLogUtil.i(\"folder\",\"===\"+arg1+\".path==\"+arg0.getCanonicalPath());\n\t\t\t\t\t\t\t\t\tlocalStorePath = arg0.getCanonicalPath();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}",
"public static boolean subIsLinked(String root, String sub) {\n\t\treturn commands.containsKey(root) ? commands.get(root).contains(sub) : false;\n\t}",
"public boolean isFileURL( URL url ) {\n\t\tString protocol = url.getProtocol();\n\t\treturn URL_PROTOCOL_FILE.equals(protocol)\n\t\t\t|| URL_PROTOCOL_VFSFILE.equals(protocol)\n\t\t\t|| URL_PROTOCOL_VFS.equals(protocol);\n\t}",
"private static boolean checkURL(String file) {\n\t\tFile myFile = new File(file);\n\t\treturn myFile.exists() && !myFile.isDirectory();\n\t}",
"public boolean useTrailingSlashMatch()\n/* */ {\n/* 574 */ return this.trailingSlashMatch;\n/* */ }",
"public static boolean isAbsolute(String key, boolean literal) {\n return !literal && key != null && key.startsWith(SEPARATOR);\n }",
"public boolean isClasspathEntry()\n {\n return m_classpath;\n }",
"@Override\n\tpublic boolean isUsedInLinks() {\n\t\treturn false;\n\t}",
"private boolean getLinks() {\n return false;\n }",
"private static boolean isSymbolic(String permissionValue) {\n return permissionValue.matches(\".*[rwx].*\");\n }",
"public boolean isSameDocument(ChameleonDocument cd){\r\n \t\treturn _path.toOSString().equals(cd._path.toOSString());\r\n \t}",
"public static native void symlink(String oldpath, String newpath)\n throws IOException;",
"boolean hasUpdateInodeFile();",
"public static boolean processDirectory(String name,\n\t\t\tLinkedBlockingQueue<String> work) {\n\t\tLinkedBlockingQueue<String> q = work;\n\t\ttry {\n\t\t\tFile file = new File(name); // create a File object\n\t\t\tif (file.isDirectory()) { // a directory - could be symlink\n\t\t\t\t// System.out.println(name);\n\t\t\t\tString entries[] = file.list();\n\t\t\t\tif (entries != null) { // not a symlink\n\t\t\t\t\tq.add((String) name);\n\t\t\t\t\tfor (String entry : entries) {\n\t\t\t\t\t\tif (entry.compareTo(\".\") == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif (entry.compareTo(\"..\") == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tprocessDirectory(new String(name + \"/\" + entry), q);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error processing \" + name + \": \" + e);\n\t\t}\n\t\treturn true;\n\n\t}",
"public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}",
"private boolean isRecDirWindows() {\n File testfile = new File(RecDir + LINUX_SEPARATOR + \"PodcastRecorder.tst\");\n\n // If it failed assume it's a Windows filesystem. Linux filesystems will happily accept the Windows separator.\n if (testfile==null || !(testfile instanceof File)) {\n return true;\n }\n\n // If the testfile exists it must be a Linux filesystem.\n if (testfile.exists()) {\n testfile.delete();\n return false;\n }\n\n // Try to create a new file.\n try {\n\n // If it worked it must be a Linux filesystem.\n if (testfile.createNewFile()) {\n testfile.delete();\n return false;\n }\n } catch (Exception e) {\n return true;\n }\n\n return false;\n }",
"Path getHasPath();",
"public Boolean shouldUseAlternateTargetLocation() {\n return this.shouldUseAlternateTargetLocation;\n }",
"private boolean hasLink(String linkName, TOSCAPlan buildPlan) {\n\t\treturn Utils.hasChildElementWithAttribute(buildPlan.getBpelMainFlowLinksElement(), \"name\", linkName);\n\t}",
"@Test\n public void downloadToplevel_symlinkToDirectory() throws Exception {\n assumeFalse(OS.getCurrent() == OS.WINDOWS);\n\n setDownloadToplevel();\n writeSymlinkRule();\n writeOutputDirRule();\n write(\n \"BUILD\",\n \"load(':output_dir.bzl', 'output_dir')\",\n \"load(':symlink.bzl', 'symlink')\",\n \"output_dir(\",\n \" name = 'foo',\",\n \" content_map = {'file-1': '1', 'file-2': '2', 'file-3': '3'},\",\n \")\",\n \"symlink(\",\n \" name = 'foo-link',\",\n \" target_artifact = ':foo',\",\n \")\");\n\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", getOutputPath(\"foo\").asFragment());\n assertValidOutputFile(\"foo-link/file-1\", \"1\");\n assertValidOutputFile(\"foo-link/file-2\", \"2\");\n assertValidOutputFile(\"foo-link/file-3\", \"3\");\n\n // Delete link, re-plant symlink\n getOutputPath(\"foo-link\").deleteTree();\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", getOutputPath(\"foo\").asFragment());\n assertValidOutputFile(\"foo-link/file-1\", \"1\");\n assertValidOutputFile(\"foo-link/file-2\", \"2\");\n assertValidOutputFile(\"foo-link/file-3\", \"3\");\n\n // Delete target, re-download them\n getOutputPath(\"foo\").deleteTree();\n\n buildTarget(\"//:foo-link\");\n\n assertSymlink(\"foo-link\", getOutputPath(\"foo\").asFragment());\n assertValidOutputFile(\"foo-link/file-1\", \"1\");\n assertValidOutputFile(\"foo-link/file-2\", \"2\");\n assertValidOutputFile(\"foo-link/file-3\", \"3\");\n }",
"final void checkLink(String link)\r\n {\r\n URL doc; // URL link\r\n\tDataInputStream dis=null;\r\n\tint i;\r\n\tboolean qualifiedLink=false;\r\n\tif(link.startsWith(\"#\")) // Skip the link if it's just an offset in this document\r\n\t return;\r\n if((i=link.indexOf(\"#\"))!=-1)\r\n\t{\r\n\t String substr=link.substring(0,i);\r\n\t link=substr;\r\n\t}\r\n\tif(app.checkAlreadyFound(link))\r\n\t return;\r\n // Ignore not - HTML links and start page\r\n\tif( (link.startsWith(\"mailto:\")) || (link.startsWith(\"wais:\")) ||\r\n\t (link.startsWith(\"gopher:\")) || (link.startsWith(\"newsrc:\")) ||\r\n\t\t(link.startsWith(\"ftp:\")) || (link.startsWith(\"nntp:\")) ||\r\n\t\t(link.startsWith(\"telnet:\")) || (link.startsWith(\"news:\")) ||\r\n\t\t(link.equalsIgnoreCase(app.indexName)) || link.equalsIgnoreCase(\"index.html\") ||\r\n\t\t(link.equalsIgnoreCase(\"index.htm\")))\r\n return;\r\n // Check that it is not out side link. (Eg, www.RGP-Javaline.com)\r\n\tif(link.indexOf(\"http:\")!=-1)\r\n\t{\r\n\t String pageName;\r\n\t if(app.server==null)\r\n\t pageName=\"http://www.\"+hostName;\r\n else pageName=app.server;\r\n\t // Allow for local host being displayed as an IP Address rather than host name.\r\n if(proxyDetected && app.IPAddress!=null)\r\n\t pageName=\"http://\"+app.IPAddress;\r\n // This is a fully qualified link. Eg, \" http://www.allsoft-india.com/index.htm\"\r\n\t qualifiedLink=true;\r\n\t // If the link doesn't contain the local host name or IPAddress then\r\n\t // it's an external link. So, ignore it.\r\n\t if(link.indexOf(pageName)==-1)\r\n\t return;\r\n\t}\r\n\t// Check that it's a HTML Page.\r\n\tif( link.indexOf(\".htm\")==-1 && link.indexOf(\".HTM\")==-1 &&\r\n\t link.indexOf(\".txt\")==-1 && link.indexOf(\".TXT\")==-1 &&\r\n\t\tlink.indexOf(\".phtml\")==-1 && link.indexOf(\".PHTML\")==-1 )\r\n return ;\r\n app.incrementPages(link); // valid link - add it to the array of visited links. \r\n\t// Follow link and read it's contents.\r\n\ttry\r\n\t{\r\n\t if(app.server==null)\r\n\t doc=new URL(\"http://www.\"+hostName+\"/\"+link);\r\n else\r\n\t {\r\n\t if(link.startsWith(\"/\"))\r\n\t\t{\r\n \t\t // Remove the \"/\" from the link as the server name has a terminating \"/\" \r\n String temp=link.substring(1,link.length());\r\n\t\t link=temp;\r\n\t\t}\r\n\t\tdoc=new URL(app.server+link);\r\n\t }\r\n \t // Link may be absolute, Eg, www.allsoft-india.com/contus.html\r\n\t if(qualifiedLink)\r\n\t doc=new URL(link);\r\n // If a proxy server/firewall has been detected then use the IPAddress (if supplied)\r\n\t // of the originating server rather than the host name.\r\n\t if(proxyDetected && app.IPAddress!=null)\r\n\t doc=new URL(\"http://\"+app.IPAddress+\"/\"+link);\r\n dis=new DataInputStream(doc.openStream());\r\n\t searchPage(dis,link);\r\n\t}\r\n catch(IOException e){}\r\n }",
"public boolean isRewrittenByVulas() {\n // Somehow the containsKey does not work, use getValue instead\n //\t\tfinal boolean modif =\n // this.originalManifest.getMainAttributes().containsKey(JarWriter.MANIFEST_ENTRY_VULAS_MODIF);\n //\t\tfinal boolean sha1 =\n // this.originalManifest.getMainAttributes().containsKey(JarWriter.MANIFEST_ENTRY_ORIG_SHA1);\n final boolean modif =\n this.originalManifest.getMainAttributes().getValue(JarWriter.MANIFEST_ENTRY_VULAS_MODIF)\n != null;\n final boolean sha1 =\n this.originalManifest.getMainAttributes().getValue(JarWriter.MANIFEST_ENTRY_ORIG_SHA1)\n != null;\n return modif && sha1;\n }",
"private boolean m14041a() {\n return this.f12187c.startsWith(\"https://\");\n }",
"public boolean isAbsolute() {\n\t\treturn isAbsolute;\n\t}",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"public boolean isLinked(int axis) {\n if (axis == HORIZONTAL) {\n return horizontalMaster != null;\n }\n assert (axis == VERTICAL);\n return (verticalMaster != null);\n }",
"static boolean isValidLinkTarget(LWLink link, LWComponent linkSource, LWComponent linkTarget)\n {\n if (linkTarget == linkSource && linkSource != null) {\n if (DEBUG.LINK) reject(linkTarget, \"source == target\");\n return false;\n }\n // TODO: allow loop-back link if it's a CURVED link...\n\n // don't allow links between parents & children\n if (linkSource != null) {\n if (linkTarget.getParent() == linkSource ||\n linkSource.getParent() == linkTarget) {\n if (DEBUG.LINK) reject(linkTarget, \"parent-child link\");\n return false;\n }\n if (linkTarget != null) {\n if (!linkSource.canLinkTo(linkTarget)) {\n if (DEBUG.LINK) reject(linkTarget, \"source denies target; src=\" + linkSource);\n return false;\n }\n }\n }\n\n if (link != null && linkTarget == link.getParent()) {\n // if a link is inside something, don't link to it (?)\n if (DEBUG.LINK) reject(linkTarget, \"target is parent of the new link\");\n return false;\n }\n\n if (link != null && linkTarget instanceof LWLink && linkTarget.isConnectedTo(link)) {\n // Don't permit a link to link back to a link that's connected to it.\n if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n return false;\n }\n\n\n// New code, tho we don't actually need these constraints:\n// if (linkTarget instanceof LWLink) {\n// if (DEBUG.LINK) outln(\"target is link: \" + linkTarget);\n// if (linkTarget.isConnectedTo(linkSource)) {\n// if (DEBUG.LINK) reject(linkTarget, \"target link-to-link loop\");\n// return false;\n// } else if (link != null && linkTarget.isConnectedTo(link)) {\n// if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n// return false;\n// }\n// }\n \n// if (linkSource instanceof LWLink) {\n// if (linkSource.isConnectedTo(linkTarget)) {\n// if (DEBUG.LINK) reject(linkTarget, \"source link-to-link loop; src=\" + linkSource);\n// return false;\n// }// else if (link != null\n// }\n\n\n return true;\n\n\n// The old code: \n// boolean ok = true;\n// if (linkTarget instanceof LWLink) {\n// LWLink target = (LWLink) linkTarget;\n// ok &= (target.getHead() != linkSource &&\n// target.getTail() != linkSource);\n// }\n// if (linkSource instanceof LWLink) {\n// LWLink source = (LWLink) linkSource;\n// ok &= (source.getHead() != linkTarget &&\n// source.getTail() != linkTarget);\n// }\n// return ok;\n }",
"public void setVerifySymlinkSource(boolean verify) {\n this.mVerifySymlinkSource = verify;\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"private boolean isVkLink(@NotNull String link) {\n logger.debug(\"Is link {} a vk link?\", link);\n if (link.startsWith(VK_PREFIX)) {\n logger.debug(\"Link started with {} and it's correct\", VK_PREFIX);\n userID = link.replaceFirst(\"^\" + VK_PREFIX, \"\");\n return true;\n }\n\n if (link.startsWith(VK_PREFIX_NO_PROTOCOL)) {\n logger.debug(\"Link started with {} and it's correct\", VK_PREFIX_NO_PROTOCOL);\n userID = link.replaceFirst(\"^\" + VK_PREFIX_NO_PROTOCOL, \"\");\n return true;\n }\n\n logger.debug(\"Link isn't a vk link\");\n return false;\n }",
"public static boolean isAbsolute(final String fileName) {\n\n return FileSystem.getInstance(fileName).isAbsolute(fileName);\n }",
"private boolean targetExists(File fileToCheck) {\n\t\tif (!fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Target file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean isTransferringExecutableFile() {\n return this.isExecutable();\n }",
"public boolean isLocalFile(String path) {\n System.out.println(path);\n if (path.contains(\"http://\") || path.contains(\"https://\")) {\n System.out.println(\"no es local\");\n return false;\n }\n System.out.println(\"es local\");\n return true;\n }",
"private boolean hasLinkToRol(Entidadrol entidadrol) {\n\t\tif(entidadrol.getRolid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}",
"public static native String readlink(String path) throws IOException;",
"public boolean isOSLinux() {\n\t\tboolean result = false;\n\t\tString linuxEnvKey = \"HOME\";\n\t\tString linuxValue = \"/\";\n\t\tif(System.getenv(linuxEnvKey) != null) {\n\t\t\tif(System.getenv(linuxEnvKey).startsWith(linuxValue)) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"private void assertOutputFiles(Path outputDir) throws Exception {\n\n assertThat(outputDir.exists()).isTrue();\n assertThat(outputDir.getRelative(REGULAR_FILE_NAME).exists()).isTrue();\n assertThat(outputDir.getRelative(REGULAR_FILE_NAME).getFileSize()).isNotEqualTo(0);\n assertThat(outputDir.getRelative(REGULAR_FILE_NAME).isSymbolicLink()).isFalse();\n assertThat(outputDir.getRelative(HARD_LINK_FILE_NAME).exists()).isTrue();\n assertThat(outputDir.getRelative(HARD_LINK_FILE_NAME).getFileSize()).isNotEqualTo(0);\n assertThat(outputDir.getRelative(HARD_LINK_FILE_NAME).isSymbolicLink()).isFalse();\n assertThat(outputDir.getRelative(RELATIVE_SYMBOLIC_LINK_FILE_NAME).exists()).isTrue();\n assertThat(outputDir.getRelative(RELATIVE_SYMBOLIC_LINK_FILE_NAME).getFileSize())\n .isNotEqualTo(0);\n assertThat(outputDir.getRelative(RELATIVE_SYMBOLIC_LINK_FILE_NAME).isSymbolicLink()).isTrue();\n assertThat(outputDir.getRelative(ABSOLUTE_SYMBOLIC_LINK_FILE_NAME).exists()).isTrue();\n assertThat(outputDir.getRelative(ABSOLUTE_SYMBOLIC_LINK_FILE_NAME).getFileSize())\n .isNotEqualTo(0);\n assertThat(outputDir.getRelative(ABSOLUTE_SYMBOLIC_LINK_FILE_NAME).isSymbolicLink()).isTrue();\n assertThat(\n Files.isSameFile(\n java.nio.file.Paths.get(outputDir.getRelative(REGULAR_FILE_NAME).toString()),\n java.nio.file.Paths.get(outputDir.getRelative(HARD_LINK_FILE_NAME).toString())))\n .isTrue();\n assertThat(\n Files.isSameFile(\n java.nio.file.Paths.get(outputDir.getRelative(REGULAR_FILE_NAME).toString()),\n java.nio.file.Paths.get(\n outputDir.getRelative(RELATIVE_SYMBOLIC_LINK_FILE_NAME).toString())))\n .isTrue();\n assertThat(\n Files.isSameFile(\n java.nio.file.Paths.get(outputDir.getRelative(REGULAR_FILE_NAME).toString()),\n java.nio.file.Paths.get(\n outputDir.getRelative(ABSOLUTE_SYMBOLIC_LINK_FILE_NAME).toString())))\n .isTrue();\n }",
"abstract boolean canHandle(\n final PathReal name);",
"boolean existsMountPoint(String relatedContentId, String handlerKey);",
"public final boolean isDeepAttributeReference ()\r\n {\r\n return _value.hasXmlTreePath();\r\n }",
"public boolean hasDirName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public final boolean isLinux() {\n\t\treturn isLinux;\n\t}",
"public final boolean hasPath ()\r\n {\r\n return _value.hasPath();\r\n }",
"public boolean hasDirName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"SaldoLink(@NonNull Context context, @Nullable String rawValue) {\n\n if (rawValue == null) {\n Timber.d(\"rawValue was null, cannot parse saldo links.\");\n return;\n }\n\n String[] rawLinks = rawValue.split(Utils.PIPE_SEPARATOR);\n\n boolean allLinksArePresent = rawLinks.length == 3 &&\n Utils.hasLength(rawLinks[0]) &&\n Utils.hasLength(rawLinks[1]) &&\n Utils.hasLength(rawLinks[2]);\n\n if (allLinksArePresent) {\n\n wordLink = context.getString(R.string.link_word_format,\n rawLinks[0], context.getString(R.string.link_word));\n\n associationsLink = context.getString(R.string.link_associations_format,\n rawLinks[1], context.getString(R.string.link_associations));\n\n inflectionsLink = context.getString(R.string.link_inflections_format,\n rawLinks[2], context.getString(R.string.link_inflections)\n );\n }\n }",
"public boolean hasPath() {\n return carrier.findPath(getCarrierTarget()) != null;\n }",
"private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n\tpublic void testGetLinksRelativeLink() {\n\t\tList<String> results = helper\n\t\t\t\t.getLinks(\"drop tables; <A HREF=\\\"/test\\\"> junk junk\", \"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"http://www.bobbylough.com/test\", results.get(0));\n\t}",
"public boolean isShowLinksToUi() {\r\n return this.getDefaultGroup() != null;\r\n }",
"public boolean accept(ZipEntry entry)\n {\n // the entry name must start with the directory name, and it must\n // not be a directory\n String sName = entry.getName();\n if (sName.length() > m_sDir.length() && sName.startsWith(m_sDir)\n && sName.charAt(sName.length() - 1) != '/')\n {\n // if searching recursively, the entry can be several levels\n // under the directory, otherwise it must be in that directory\n return m_fRecurse || sName.indexOf('/', m_sDir.length()) < 0;\n }\n\n return false;\n }",
"private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean onTarget(long timestamp)\n {\n return compareToTimestamp(timestamp) == 0;\n }"
]
| [
"0.67169785",
"0.6357348",
"0.59573567",
"0.584821",
"0.57429194",
"0.5740338",
"0.570711",
"0.5694621",
"0.5685182",
"0.52636385",
"0.52348685",
"0.520854",
"0.5195845",
"0.50647503",
"0.50558424",
"0.5014125",
"0.4956449",
"0.4924937",
"0.49206063",
"0.49180812",
"0.48897424",
"0.4849322",
"0.47957614",
"0.4757351",
"0.47539395",
"0.47430682",
"0.47416237",
"0.47307044",
"0.47296417",
"0.4726471",
"0.47059524",
"0.46795654",
"0.46730033",
"0.46634802",
"0.46394888",
"0.46345332",
"0.46277797",
"0.46106434",
"0.4606449",
"0.45774174",
"0.45706034",
"0.45699322",
"0.45608932",
"0.45608932",
"0.45596954",
"0.45536917",
"0.45536476",
"0.45410794",
"0.45406702",
"0.45385686",
"0.452102",
"0.45022345",
"0.44997585",
"0.44962773",
"0.4493079",
"0.4487378",
"0.4486668",
"0.44806388",
"0.44804642",
"0.44778603",
"0.44665438",
"0.4463301",
"0.44532257",
"0.44488066",
"0.4444048",
"0.44382364",
"0.44381914",
"0.44245473",
"0.44133708",
"0.440904",
"0.44024983",
"0.43921596",
"0.4384325",
"0.43760404",
"0.43755123",
"0.43747756",
"0.43633044",
"0.4355246",
"0.4350357",
"0.43424407",
"0.43349737",
"0.43323582",
"0.43213624",
"0.43189868",
"0.43084553",
"0.43077278",
"0.43038142",
"0.43027103",
"0.4292034",
"0.4286866",
"0.4280614",
"0.4276149",
"0.42714834",
"0.4269698",
"0.42692676",
"0.4265404",
"0.42622963",
"0.42600232",
"0.42591414",
"0.42507944"
]
| 0.811229 | 0 |
Set the platform (UNIX or FAT). | protected void setPlatform(final int platform) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "40349ab7-0b3b-403c-96e1-7b2987154812");
this.platform = platform;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void determinePlatform() {\n \t\tString os = System.getProperty(\"os.name\");\n \t\t\n \t\tif (os == null)\n \t\t\tthrow new RuntimeException();\n \t\t\n \t\tif (os.startsWith(WINDOWS_ID))\n \t\t\tisWindows = true;\n \t\telse\n \t\t\tisUnixLike = true;\n \t}",
"private void setOs() {\n\t\tthis.os = System.getProperty(\"os.name\");\n\t}",
"public void setPlatform(Long platform) {\n\t\tthis.platform = platform;\n\t}",
"public void setPlatformType(PlatformType name);",
"@Override\r\n\tpublic void setmOs() {\n\t\tthis.mOs = \"Mac OS\";\r\n\t}",
"public void setPlatforms(String platforms);",
"void setOsP( String osP );",
"private void setOsType() {\n addToMobileContext(Parameters.OS_TYPE, \"android\");\n }",
"void setOsU( String osU );",
"public Long getPlatform() {\n\t\treturn platform;\n\t}",
"Object getPlatform();",
"public static OS getOS()\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n if(os.indexOf(\"win\") != -1)\n return OS.Windows;\n else if(os.indexOf(\"linux\") != -1)\n return OS.Linux;\n else\n return OS.Unknown;\n }",
"public Vector<String> getPlatform() {\n return platform;\n }",
"@JsonProperty(\"platform\")\n public void setPlatform(String platform) {\n this.platform = platform;\n }",
"public void setOS(java.lang.Integer OS) {\n\t\t this.OS = OS;\n\t }",
"public Optional<Version> platform() { return platform; }",
"public void setPlatformType(final String platformType)\n {\n this.platformType = platformType.toUpperCase();\n }",
"void setSystem(java.lang.String system);",
"public void setPlatformHome(final File platformHome)\n {\n this.platformHome = platformHome;\n }",
"String platform();",
"public void setPlatformType(Integer platformType) {\n this.platformType = platformType;\n }",
"public static void operatingSystemDetect(){\n String operatingSystem = System.getProperty(\"os.name\");\n if ((operatingSystem.contains(\"Linux\")) || (operatingSystem.contains(\"Mac OS X\"))) {\n shutdownCommand = \"shutdown -h now\";\n } else if (operatingSystem.contains(\"Windows\")) {\n shutdownCommand = \"shutdown.exe -s -t 0\";\n } else {\n throw new RuntimeException(\"Unsupported operating system.\");\n }\n\n }",
"public static void setPlatform(ParsePush push, String platform) {\n\t\tParseQuery<ParseInstallation> query = ParseInstallation.getQuery();\n\t\tquery.whereEqualTo(\"deviceType\", platform);\n\t\tpush.setQuery(query);\n\t}",
"public Integer getPlatformType() {\n return platformType;\n }",
"public static boolean isSolaris() {\n\t\treturn (SWT.getPlatform().equalsIgnoreCase(\"motif\"));\n\t}",
"public static void main(String[] args) {\n System.out.println(Arrays.toString(Platform.values())); // [WINDOWS, XP, VISTA, WIN8, MAC, UNIX, LINUX, ANDROID, ANY]\n System.out.println(getCurrent()); // MAC\n System.out.println(Arrays.toString(getCurrent().getPartOfOsName())); // [mac, darwin]\n System.out.println(getCurrent().getMajorVersion()); // 10\n System.out.println(getCurrent().getMinorVersion()); // 9\n\n\n System.out.println(Platform.LINUX.is(Platform.UNIX)); // Return true\n System.out.println(Platform.MAC.is(Platform.WINDOWS)); // Return false\n\n\n // I am on Mac, so It return me Mac\n if (Platform.getCurrent().equals(Platform.MAC)){\n System.out.println(\"Mac\");\n // Do something....\n\n }else if (Platform.getCurrent().equals(Platform.WINDOWS)){\n System.out.println(\"Windows\");\n // Do something...\n }else{\n System.out.println(\"Unknown\");\n }\n\n }",
"private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}",
"java.lang.String getOs();",
"public void setSystem(String value) {\r\n this.system = value;\r\n }",
"public final String getOS() {\n String out = System.getProperty(\"os.name\");\n String os = out.split(\" \")[0];\n\n return os.toLowerCase();\n }",
"public String getOS(){\n\t\treturn OS;\n\t}",
"public Platform getPlatform();",
"public void setOperatingSystem(OperatingSystem operatingSystem) {\n this.operatingSystem = operatingSystem;\n }",
"private static String getSetCommand()\n {\n String setCmd;\n String osName = System.getProperty(\"os.name\");\n\n if (osName.indexOf(\"indows\") != -1)\n {\n if (osName.indexOf(\"indows 9\") != -1)\n {\n setCmd = \"command.com /c set\";\n }\n else\n {\n setCmd = \"cmd.exe /c set\";\n }\n }\n else\n {\n setCmd = \"/usr/bin/env\";\n //should double check for all unix platforms\n }\n return setCmd;\n }",
"String getOs();",
"public void setDevicePlatform(com.sforce.soap._2006._04.metadata.DevicePlatformType devicePlatform) {\r\n this.devicePlatform = devicePlatform;\r\n }",
"private boolean osIstLinux() {\n\t\treturn System.getProperty(\"os.name\").equals(\"Linux\");\n\t}",
"public PlatformType getPlatformType();",
"public OperatingSystem() {\n final OperatingSystemResolver resolver = new OperatingSystemResolver();\n resolver.resolve(this);\n }",
"public String getOperatingSystem() {\n\t\tString os = System.getProperty(\"os.name\");\n\t\t// Returning the os eg - windows 10\n\t\treturn os;\n\t}",
"@JsonProperty(\"platform\")\n public String getPlatform() {\n return platform;\n }",
"public String getPlatformName() {\n\t\treturn myPlatformName;\n\t}",
"public void setInPlatform(boolean inPlatform) {\n isInPlatform = inPlatform;\n }",
"public void setCreatePlatform(String createPlatform) {\n this.createPlatform = createPlatform == null ? null : createPlatform.trim();\n }",
"public static String getOSName() {\n\t\treturn System.getProperties().getProperty(\"os.name\");\n\t}",
"public static String getOs() {\r\n\t\treturn os;\r\n\t}",
"public void setFedericaTopology(Platform platform)\n\t{\n\t\tif (platform != null)\n\t\t{\n\t\t\ttopology = new TopologyImpl(platform.toString());\n\t\t\ttopology.setContains(platform.getContains());\n\t\t}\n\t}",
"public String getOs() {\n\t\treturn os;\n\t}",
"public Os( String family )\n {\n setFamily( family );\n }",
"public static OS get() {\n if (OS.Mac.isCurrent()) {\n return Mac;\n } else if (OS.Windows.isCurrent()) {\n return Windows;\n } else if (OS.Linux.isCurrent()) {\n return Linux;\n }\n return Unsupported;\n }",
"public String getCreatePlatform() {\n return createPlatform;\n }",
"public void setIsInPlatform(boolean val){\n setInPlatform(val);\n }",
"public static String OSDetector() {\r\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\r\n\t\tif (os.contains(\"win\")) {\r\n\t\t\treturn \"Windows\";\r\n\t\t} else if (os.contains(\"nux\") || os.contains(\"nix\")) {\r\n\t\t\treturn \"Linux\";\r\n\t\t} else if (os.contains(\"mac\")) {\r\n\t\t\treturn \"Mac\";\r\n\t\t} else if (os.contains(\"sunos\")) {\r\n\t\t\treturn \"Solaris\";\r\n\t\t} else {\r\n\t\t\treturn \"Other\";\r\n\t\t}\r\n\t}",
"public static String getArchitecture()\n {\n String ret=System.getProperty(\"os.arch\");\n return ret;\n }",
"@Nested\n public Property<NativePlatform> getTargetPlatform() {\n return targetPlatform;\n }",
"String getPlatformName();",
"private void setOsVersion() {\n addToMobileContext(Parameters.OS_VERSION, android.os.Build.VERSION.RELEASE);\n }",
"public void setSystem(byte system) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t}\n\t}",
"public static void storePlatform (EditableProperties props, UpdateHelper helper, Object platformKey, Object sourceLevelKey) {\n assert platformKey instanceof PlatformKey; \n PlatformKey pk = (PlatformKey) platformKey;\n JavaPlatform platform = getPlatform(pk); \n //null means active broken (unresolved) platform, no need to do anything\n if (platform != null) {\n SpecificationVersion jdk13 = new SpecificationVersion (\"1.3\"); //NOI18N\n String platformAntName = (String) platform.getProperties().get(\"platform.ant.name\"); //NOI18N \n assert platformAntName != null;\n props.put(JbiCompProjectProperties.JAVA_PLATFORM, platformAntName);\n Element root = helper.getPrimaryConfigurationData(true);\n boolean defaultPlatform = pk.isDefaultPlatform();\n boolean changed = false;\n NodeList explicitPlatformNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"explicit-platform\"); //NOI18N\n if (defaultPlatform) { \n if (explicitPlatformNodes.getLength()==1) {\n root.removeChild(explicitPlatformNodes.item(0));\n changed = true;\n } \n }\n else {\n Element explicitPlatform;\n switch (explicitPlatformNodes.getLength()) {\n case 0:\n explicitPlatform = root.getOwnerDocument().createElementNS(JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE, \"explicit-platform\"); //NOI18N \n NodeList sourceRootNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"source-roots\"); //NOI18N\n assert sourceRootNodes.getLength() == 1 : \"Broken project.xml file\"; //NOI18N\n root.insertBefore(explicitPlatform, sourceRootNodes.item(0));\n changed = true;\n break;\n case 1:\n explicitPlatform = (Element)explicitPlatformNodes.item(0);\n break;\n default:\n throw new AssertionError(\"Broken project.xml file\"); //NOI18N\n } \n String explicitSourceAttrValue = explicitPlatform.getAttribute(\"explicit-source-supported\"); //NOI18N\n if (jdk13.compareTo(platform.getSpecification().getVersion())>=0 &&\n !\"false\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"false\"); //NOI18N\n changed = true;\n }\n else if (jdk13.compareTo(platform.getSpecification().getVersion())<0 &&\n !\"true\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"true\"); //NOI18N\n changed = true;\n } \n }\n \n SpecificationVersion sourceLevel;\n if (sourceLevelKey == null) {\n sourceLevel = platform.getSpecification().getVersion();\n }\n else {\n assert sourceLevelKey instanceof SourceLevelKey;\n sourceLevel = ((SourceLevelKey)sourceLevelKey).getSourceLevel();\n }\n String javacSource = sourceLevel.toString();\n String javacTarget = jdk13.compareTo(sourceLevel)>=0 ? \"1.1\" : javacSource; //NOI18N\n if (!javacSource.equals(props.getProperty(JbiCompProjectProperties.JAVAC_SOURCE))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_SOURCE, javacSource);\n }\n if (!javacTarget.equals(props.getProperty(JbiCompProjectProperties.JAVAC_TARGET))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_TARGET, javacTarget);\n }\n \n if (changed) {\n helper.putPrimaryConfigurationData(root, true);\n }\n }\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkPlatform() {\n\t\tboolean flag = oTest.checkPlatform();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public boolean isSetPlatform() {\n return this.platform != null;\n }",
"public String getPlatformcode() {\n return platformcode;\n }",
"public Builder setOs(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n os_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void setPlatformVersion(String platformVersion) {\n this.platformVersion = platformVersion;\n }",
"public void setPlatformVersion(String platformVersion) {\n this.platformVersion = platformVersion;\n }",
"public void setOperatingSystem(final String operatingSystemValue) {\n this.operatingSystem = operatingSystemValue;\n }",
"public static boolean isWindowsPlatform() {\n\t\tString os = System.getProperty(\"os.name\");\n\t\tif (os != null && os.startsWith(WIN_ID))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\n\t}",
"public void setPlatformCode(String platformCode) {\n this.platformCode = platformCode == null ? null : platformCode.trim();\n }",
"private Platform() {\n\t\t\n\t}",
"private static boolean supportedPlatform() {\n return System.getProperty(\"os.name\").startsWith(\"iPhone\");\n }",
"public void setOperatingSystem(final String operatingSystemValue) {\n this.operatingSystem = operatingSystemValue;\n }",
"public String getPlatformCode() {\n return platformCode;\n }",
"String operatingSystem();",
"public Platform() { }",
"public java.lang.Integer getOS() {\n\t\t return OS;\n\t }",
"public String getOperatingSystem() {\n return this.operatingSystem;\n }",
"public void setUnixMode(final int mode) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a13d2215-1fc7-4e0b-b063-a68e25c9c4e3\");\n setExternalAttributes((mode << SHORT_SHIFT) | ((mode & 0200) == 0 ? 1 : 0) | (isDirectory() ? 0x10 : 0));\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c0f46ba4-3aa9-49bd-8d58-a3ffdd50c894\");\n platform = PLATFORM_UNIX;\n }",
"int getOperatingMode();",
"public String getOperatingSystem() {\n return this.operatingSystem;\n }",
"public void setPlatformcode(String platformcode) {\n this.platformcode = platformcode == null ? null : platformcode.trim();\n }",
"public interface PlatformOS {\n\t\n\tpublic class TaskDescription {\n\t\tpublic final String processName;\n\t\tpublic final String windowTitle;\n\t\tpublic TaskDescription(String processName, String windowTitle) {\n\t\t\tthis.processName = processName;\n\t\t\tthis.windowTitle = windowTitle;\n\t\t}\n\t\t@Override\n\t\tpublic String toString() {\n\t\t\treturn processName+(windowTitle!=null ? \" (\"+windowTitle+\")\" : \"\");\n\t\t}\n\t};\n\t\n\t/**\n\t * Should return a list of \"applications\" currently running.\n\t * This is intended to be a list of tasks running for the current user.\n\t * @return\n\t */\n\tpublic List<TaskDescription> getActiveTasks();\n\t\n\t/**\n\t * Will return the path to the java virtual machine executable on this platform.\n\t * @return\n\t */\n\tpublic String getJVMExecutablePath();\n}",
"public static boolean isOs( String family, String name, String arch,\n String version )\n {\n boolean retValue = false;\n\n if ( family != null || name != null || arch != null\n || version != null )\n {\n\n boolean isFamily = true;\n boolean isName = true;\n boolean isArch = true;\n boolean isVersion = true;\n\n if ( family != null )\n {\n\n //windows probing logic relies on the word 'windows' in\n //the OS\n boolean isWindows = OS_NAME.indexOf( FAMILY_WINDOWS ) > -1;\n boolean is9x = false;\n boolean isNT = false;\n if ( isWindows )\n {\n //there are only four 9x platforms that we look for\n is9x = (OS_NAME.indexOf( \"95\" ) >= 0\n || OS_NAME.indexOf( \"98\" ) >= 0\n || OS_NAME.indexOf( \"me\" ) >= 0\n //wince isn't really 9x, but crippled enough to\n //be a muchness. Ant doesnt run on CE, anyway.\n || OS_NAME.indexOf( \"ce\" ) >= 0);\n isNT = !is9x;\n }\n if ( family.equals( FAMILY_WINDOWS ) )\n {\n isFamily = isWindows;\n }\n else if ( family.equals( FAMILY_WIN9X ) )\n {\n isFamily = isWindows && is9x;\n }\n else if ( family.equals( FAMILY_NT ) )\n {\n isFamily = isWindows && isNT;\n }\n else if ( family.equals( FAMILY_OS2 ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_OS2 ) > -1;\n }\n else if ( family.equals( FAMILY_NETWARE ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_NETWARE ) > -1;\n }\n else if ( family.equals( FAMILY_DOS ) )\n {\n isFamily = PATH_SEP.equals( \";\" ) && !isFamily( FAMILY_NETWARE );\n }\n else if ( family.equals( FAMILY_MAC ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_MAC ) > -1\n || OS_NAME.indexOf( DARWIN ) > -1;\n }\n else if ( family.equals( FAMILY_TANDEM ) )\n {\n isFamily = OS_NAME.indexOf( \"nonstop_kernel\" ) > -1;\n }\n else if ( family.equals( FAMILY_UNIX ) )\n {\n isFamily = PATH_SEP.equals( \":\" )\n && !isFamily( FAMILY_OPENVMS )\n && (!isFamily( FAMILY_MAC ) || OS_NAME.endsWith( \"x\" )\n || OS_NAME.indexOf( DARWIN ) > -1);\n }\n else if ( family.equals( FAMILY_ZOS ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_ZOS ) > -1\n || OS_NAME.indexOf( \"os/390\" ) > -1;\n }\n else if ( family.equals( FAMILY_OS400 ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_OS400 ) > -1;\n }\n else if ( family.equals( FAMILY_OPENVMS ) )\n {\n isFamily = OS_NAME.indexOf( FAMILY_OPENVMS ) > -1;\n }\n else\n {\n throw new RuntimeException(\n \"Don\\'t know how to detect os family \\\"\"\n + family + \"\\\"\" );\n }\n }\n if ( name != null )\n {\n isName = name.equals( OS_NAME );\n }\n if ( arch != null )\n {\n isArch = arch.equals( OS_ARCH );\n }\n if ( version != null )\n {\n isVersion = version.equals( OS_VERSION );\n }\n retValue = isFamily && isName && isArch && isVersion;\n }\n return retValue;\n }",
"private boolean isWindowsOs() {\n String osName = System.getProperty(\"os.name\");\n if (osName == null) {\n return false;\n }\n osName = osName.toLowerCase(Locale.ENGLISH);\n return osName.contains(\"windows\");\n }",
"public static final boolean isUnix() {\n return (getOperatingSystem() & OS_UNIX_MASK) != 0;\n }",
"public OperatingSystemTypes getOsType() {\n return this.osType;\n }",
"public com.sforce.soap._2006._04.metadata.DevicePlatformType getDevicePlatform() {\r\n return devicePlatform;\r\n }",
"public void setMac(String Mac) {\n this.Mac = Mac;\n }",
"private void setIdentifiedPlatform(ControllerType identfiedPlatformType) {\r\n\t\tthis.identifiedControllerType = identfiedPlatformType;\r\n\r\n\t}",
"OperatingSystemTypes osType();",
"public UnixFakeFileSystem() {\n this.setDirectoryListingFormatter(new UnixDirectoryListingFormatter());\n }",
"public static String getDefaultPlatformName() {\n\t\tPLATFORM_NAME = \"defaultGC\";\n\t\treturn PLATFORM_NAME;\n\t}",
"@Test\n public void testSetOs() {\n System.out.println(\"setOs\");\n String os = \"\";\n VM instance = null;\n instance.setOs(os);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"void visitElement_platform(org.w3c.dom.Element element) { // <platform>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <platform name=\"???\">\n list.platforms.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public static boolean isPlatformMac() {\r\n\t\tPlatform current = Platform.getCurrent();\r\n\t\treturn Platform.MAC.is(current);\r\n\t}",
"public String detectOsPath(String os) {\n\t\tif (os==null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (os.contains(\"win\") || os.contains(\"Win\") || os.contains(\"WIN\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\convertedProducts\";\n\t\t\t\n\t\t\treturn WIN;\n\t\t}\n\t\tif (os.contains(\"mac\") || os.contains(\"Mac\") || os.contains(\"MAC\") || os.contains(\"IOS\") || os.contains(\"iOS\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"/Desktop/convertedProducts\";\n\t\t\t\n\t\t\treturn MAC;\n\t\t}\n\t\tif (os.contains(\"nix\") || os.contains(\"aix\") || os.contains(\"nux\") || os.contains(\"unt\") || os.contains(\"UNT\") || os.contains(\"sunos\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"/Desktop/convertedProducts\";\n\t\t\t\n\t\t\treturn UNIX;\n\t\t}\n\t\treturn null;\n\t}",
"private static String mode() {\n return System.getProperty(SYSTEM_PROPERTY_NAME, System.getenv(ENV_VARIABLE_NAME));\n }",
"public RoboPlatform platform() {\n return platform;\n }",
"java.lang.String getMinCpuPlatform();",
"@Override\r\n\tprotected OsgiPlatform createPlatform() {\n\t\tOsgiPlatform osgiPlatform = super.createPlatform();\r\n\t\tosgiPlatform.getConfigurationProperties().setProperty(\"javax.xml.transform.TransformerFactory\", \"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl\");\r\n\t\treturn osgiPlatform;\r\n\t}",
"protected EV3DevPlatform getPlatform() {\n\n //TODO Duplicated code\n final String BATTERY = \"/power_supply\";\n final String BATTERY_PATH = ROOT_PATH + BATTERY;\n final String BATTERY_EV3 = \"legoev3-battery\";\n final String BATTERY_PISTORMS = \"pistorms-battery\";\n final String BATTERY_BRICKPI = \"brickpi-battery\";\n final String BATTERY_BRICKPI3 = \"brickpi3-battery\";\n final String EV3BRICK_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_EV3;\n final String PISTORMS_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_PISTORMS;\n final String BRICKPI_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI;\n final String BRICKPI3_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI3;\n\n if(Sysfs.existPath(EV3BRICK_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(EV3BRICK_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.EV3BRICK);\n return EV3DevPlatform.EV3BRICK;\n } else if(Sysfs.existPath(PISTORMS_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(PISTORMS_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.PISTORMS);\n return EV3DevPlatform.PISTORMS;\n } else if(Sysfs.existPath(BRICKPI_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI);\n return EV3DevPlatform.BRICKPI;\n } else if(Sysfs.existPath(BRICKPI3_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI3_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI3);\n return EV3DevPlatform.BRICKPI3;\n } else {\n final String OS_NAME = System.getProperty(\"os.name\");\n final String OS_VERSION = System.getProperty(\"os.version\");\n final String message = \"Platform not supported: \" + OS_NAME + \" \" + OS_VERSION;\n log.error(message);\n throw new RuntimeException(message);\n }\n }"
]
| [
"0.769611",
"0.7678374",
"0.70705485",
"0.7038879",
"0.68491876",
"0.6717853",
"0.63720083",
"0.6319445",
"0.62986195",
"0.6295092",
"0.6237497",
"0.6228831",
"0.61995244",
"0.61746997",
"0.6166835",
"0.61189264",
"0.6111448",
"0.609479",
"0.6050578",
"0.6042513",
"0.6037391",
"0.5997216",
"0.5970942",
"0.5924853",
"0.59015876",
"0.5897606",
"0.58788425",
"0.58503264",
"0.58342266",
"0.5822944",
"0.5821304",
"0.5807305",
"0.57948864",
"0.57879287",
"0.5716477",
"0.5691231",
"0.5687609",
"0.568145",
"0.5678861",
"0.5648778",
"0.563244",
"0.56307054",
"0.55901885",
"0.5582167",
"0.5581155",
"0.5573786",
"0.555775",
"0.5546076",
"0.5543294",
"0.5525696",
"0.5517371",
"0.5511495",
"0.55040133",
"0.5494279",
"0.5475413",
"0.54370314",
"0.5418492",
"0.54136467",
"0.54136294",
"0.5412684",
"0.53979325",
"0.53946996",
"0.53718466",
"0.53594196",
"0.53594196",
"0.5347687",
"0.5344405",
"0.5341935",
"0.53128874",
"0.53032726",
"0.5298881",
"0.52969587",
"0.52908033",
"0.5284981",
"0.5283088",
"0.52797127",
"0.5271431",
"0.5269467",
"0.5242857",
"0.52343464",
"0.5211615",
"0.5187333",
"0.5180779",
"0.5166261",
"0.51656497",
"0.5154897",
"0.51468295",
"0.51214015",
"0.51162505",
"0.5109443",
"0.5106555",
"0.5086697",
"0.5052723",
"0.50462586",
"0.5043109",
"0.5039513",
"0.5034336",
"0.5034102",
"0.50261927",
"0.50256944"
]
| 0.56924367 | 35 |
Gets currently configured alignment. | protected int getAlignment() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "12abfd3b-e43a-46a7-92b9-993595740399");
return this.alignment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Alignment getAlignment() {\n return alignment;\n }",
"Alignment getAlignment() {\n return alignment;\n }",
"public String getAlign() {\n return align;\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment()\n {\n return align;\n }",
"public int getAlignment()\n {\n return bouquet.getAlignment();\n }",
"public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public Position getAlignment()\n {\n int halign = getComponent().getHorizontalAlignment();\n int valign = getComponent().getVerticalAlignment();\n return Position.get(halign, valign);\n }",
"int getAlignValue();",
"public Alignment getCellAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"cellAlign\"));\r\n }",
"com.ctrip.ferriswheel.proto.v1.Placement getAlign();",
"public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }",
"public final ObjectProperty<Pos> alignmentProperty() {\n if (alignment == null) {\n alignment = new StyleableObjectProperty<Pos>(Pos.TOP_LEFT) {\n\n @Override\n public void invalidated() {\n requestLayout();\n }\n\n @Override\n public CssMetaData<HangingFlowPane, Pos> getCssMetaData() {\n return StyleableProperties.ALIGNMENT;\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"alignment\";\n }\n };\n }\n return alignment;\n }",
"public String[] getStrAlign() {\n if (state) return new String[]{alignB, alignA};\n return new String[]{alignA, alignB};\n }",
"public int getHorizontalAlignment() {\n return horizontalAlignment;\n }",
"@Override\r\n\tpublic int getAlignmentSize() {\r\n\t\treturn getSize();\r\n\t}",
"public int getBitAlign() {\n return _bitAlign;\n }",
"public float getAlignment(int axis) {\n if (view != null) {\n return view.getAlignment(axis);\n }\n return 0;\n }",
"@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }",
"public int getHorizontalAlignment()\n {\n return field.getHorizontalAlignment();\n }",
"public long getPreferredAlignSize()\n {\n return TypeSizes.getADDRESS();\n }",
"boolean getAligning();",
"public int getHorizontalAlignment() {\r\n\t\treturn getJTextField().getHorizontalAlignment();\r\n\t}",
"public int getSectionAlignment()\n throws IOException, EndOfStreamException\n {\n return peFile_.readInt32(relpos(Offsets.SECTION_ALIGNMENT.position));\n }",
"private static Byte getAlignment(Character align) {\n\n if (align == null)\n return null;\n\n switch (align) {\n case 'c':\n return 1;\n case 's':\n return 2;\n case 'i':\n return 4;\n case 'd':\n return 8;\n }\n\n throw new IllegalStateException(\"invalid alignment character: \" + align);\n }",
"public int getHorizontalTextAlignment() {\r\n\t\treturn getJTextField().getHorizontalAlignment();\r\n\t}",
"TickAlign getAlign();",
"public int getItemAlignmentViewId() {\n return mLayoutManager.getItemAlignmentViewId();\n }",
"public int getSwtAlignment() {\r\n return f_swtAlignment;\r\n }",
"int getVerticalAlignValue();",
"CrossAlign getCrossAlign();",
"int getAlign(XmlNode node) {\n return getAlign(node.getAttribute(ATTR_ALIGN, \"CENTER\"));\n }",
"String validateAlignment() {\n\t\treturn null;\n\t}",
"com.ctrip.ferriswheel.proto.v1.Placement getVerticalAlign();",
"public XmuCoreAlignElements getXmuCoreAlignAccess() {\r\n\t\treturn pXmuCoreAlign;\r\n\t}",
"public Alignment getFacetValueAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetValueAlign\"));\r\n }",
"public int getItemAlignmentOffset() {\n return mLayoutManager.getItemAlignmentOffset();\n }",
"public final HORIZONTALALIGNMENT getHorizontalAlignment(){\n\t\treturn wDisplayHorizontalAlignment;\n\t}",
"public AlignY getAlignmentY() { return AlignY.Top; }",
"java.util.List getAlignmentRefs();",
"public AlignX getAlignmentX() { return AlignX.Left; }",
"public int getWindowAlignmentOffset() {\n return mLayoutManager.getWindowAlignmentOffset();\n }",
"public float getAlignment(int axis) {\n if (axis == View.X_AXIS) {\n return 0;\n }\n return super.getAlignment(axis);\n }",
"public short getHorizontalAlignment()\n {\n return halign;\n }",
"public int maxAlignmentCount() {\n return mMaxAlignmentCount;\n }",
"public short getVerticalAlignment()\n {\n return valign;\n }",
"public Alignment getFacetLabelHoverAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetLabelHoverAlign\"));\r\n }",
"public float getAlignmentY() { return 0.5f; }",
"public Alignment getFacetTitleAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetTitleAlign\"));\r\n }",
"org.landxml.schema.landXML11.AlignmentNameRefs xgetAlignmentRefs();",
"public int getCurrentAlloment() {\n return currentAlloment;\n }",
"public int getFileAlignment()\n throws IOException, EndOfStreamException\n {\n return peFile_.readInt32(relpos(Offsets.FILE_ALIGNMENT.position));\n }",
"int align();",
"public Integer getPadding()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.padding, null);\n }",
"public java.lang.Boolean getOptimizedPartitionAlignment() {\r\n return optimizedPartitionAlignment;\r\n }",
"public TextJustification getJustification();",
"public Alignment getFacetValueHoverAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetValueHoverAlign\"));\r\n }",
"void setAlignment(Alignment alignment) {\n this.alignment = alignment;\n }",
"public java.lang.String getCellpadding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public int getPadding() {\n return padding;\n }",
"public String getIndentationString() {\n String result = (String) getTextBuffer().getProperty(PTextBuffer.INDENTATION_PROPERTY);\n if (result == null) {\n result = \"\\t\";\n }\n return result;\n }",
"public String getCurrentSpace() {\n return spaces.getValue();\n }",
"public jkt.hms.masters.business.StoreIndentM getIndent () {\n\t\treturn indent;\n\t}",
"public void setAlign(String align) {\n this.align = align;\n }",
"public void setAlignment(int align)\n {\n this.align = align;\n }",
"public Builder setAligning(boolean value) {\n bitField0_ |= 0x00000008;\n aligning_ = value;\n onChanged();\n return this;\n }",
"int getAlignmentStart(String[] fields) throws NumberFormatException {\n int alignmentStart = Integer.parseInt(fields[3].trim()) - 1;\n return alignmentStart;\n }",
"public java.lang.String getCellspacing()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@Nullable\n public Padding getPadding() {\n if (mImpl.hasPadding()) {\n return Padding.fromProto(mImpl.getPadding());\n } else {\n return null;\n }\n }",
"public Integer getPlacement() {\n return placement;\n }",
"public String getIndent() {\n return indent;\n }",
"protected String getIndentString() {\n return indent.toString();\n }",
"public void setTextAlign(TEXT_ALIGN align);",
"public IntegerOrPercentage maxMatedAlignmentScore() {\n return mMaxASMatedValue;\n }",
"public final int align() throws RecognitionException {\r\n int align = 0;\r\n\r\n\r\n Token INTEGER38=null;\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:5: ( ALIGN INTEGER )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:7: ALIGN INTEGER\r\n {\r\n match(input,ALIGN,FOLLOW_ALIGN_in_align874); \r\n\r\n INTEGER38=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_align876); \r\n\r\n align = Integer.parseInt((INTEGER38!=null?INTEGER38.getText():null));\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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return align;\r\n }",
"@JSProperty(\"textAlign\")\n @Nullable\n String getTextAlign();",
"ImmutableList<SchemaOrgType> getEducationalAlignmentList();",
"public float getLayoutAlignmentX(Container target) {\n\t\treturn 0;\r\n\t}",
"boolean hasAligning();",
"@NotNull\n @Contract(pure = true)\n public Arena getArena() {\n return arena;\n }",
"public float getLayoutAlignmentX(Container target) {\n return 0.5f;\n }",
"public float getLayoutAlignmentX(Container target) \n {\n\treturn (float)0.0;\n }",
"public String getSequenceId() {\n return this.placement.getSeqId();\n }",
"private int getCurrentOffset(){\n\t\treturn this.OFFSET;\n\t}",
"public final VERTICALALIGNMENT getDisplayVerticalAlignment(){\n\t\treturn wDisplayVerticalAlignment;\n\t}",
"public String getPlacementTransaction() {\n return placementTransaction;\n }",
"@SuppressWarnings(\"unchecked\")\n public TCS alignment(final Alignment alignment) {\n if (Alignment.AlignmentType.V == alignment.getAlignmentType())\n cellStyle_p.setVerticalAlignment(alignment.idx);\n else\n cellStyle_p.setAlignment(alignment.idx);\n\n return (TCS) this;\n }",
"public String toString()\n {\n String str = \"\";\n switch (align)\n {\n case LEFT :\n str = \",align=left\";\n break;\n case CENTER :\n str = \",align=center\";\n break;\n case RIGHT :\n str = \",align=right\";\n break;\n }\n return getClass().getName() + \"[hgap=\" + hgap + \",vgap=\" + vgap + str + \"]\";\n }",
"public DDVConfig getCurrentConfig()\n {\n return this.config;\n }",
"public SubSequenceResultI findSequenceGlobalAlignment (final String query) {\n\t\tDNASequence q = AlignmentUtils.getDNASequenceFromString(query);\n\t\tSequencePair<DNASequence,NucleotideCompound> p = Alignments.getPairwiseAlignment(q, target,PairwiseSequenceAlignerType.GLOBAL, gapP, matrix);\n\t\treturn new SubSequenceResultGlobalAlignment(p);\n\t}",
"@Override\n public String getArena() {\n return this.arena;\n }",
"public void setAlignmentX(AlignX anAlignX) { }",
"public double getTargetHorizontalOffset() {\n return getDouble(\"tx\");\n }",
"public Alignment()\n\t{\n\t}",
"private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }",
"public P getEstimatedPosition() {\n return mRssiPositionEnabled ?\n mRssiInnerEstimator.getEstimatedPosition() :\n mRangingInnerEstimator.getEstimatedPosition();\n }",
"public String[] getGlobalAlignment(String s1, String s2) {\r\n\t\tint match = 1;\r\n\t\tint mismatch = -1;\r\n\t\tint gap = -2;\r\n\t\tNeedlemanWunsch algorithm = new NeedlemanWunsch();\r\n\t\tBasicScoringScheme scoring = new BasicScoringScheme(match, mismatch, gap);\r\n\t\talgorithm.setScoringScheme(scoring);\r\n\t\talgorithm.loadSequences(s1, s2);\r\n\t\tString[] strs = new String[3];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstrs[0] = algorithm.getPairwiseAlignment().getGappedSequence1();\r\n\t\t\tstrs[1] = algorithm.getPairwiseAlignment().getGappedSequence2();\r\n\t\t\tstrs[2] = algorithm.getPairwiseAlignment().toString();\r\n\t\t\tSystem.out.println(algorithm.getPairwiseAlignment());\r\n\t\t} catch (IncompatibleScoringSchemeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn strs;\r\n\t}"
]
| [
"0.78414625",
"0.7684978",
"0.7670857",
"0.7479839",
"0.7479839",
"0.73781174",
"0.7225039",
"0.7216902",
"0.71140194",
"0.70825446",
"0.7049702",
"0.6970748",
"0.6949332",
"0.6847264",
"0.66746706",
"0.6666455",
"0.6605196",
"0.65156794",
"0.6451228",
"0.63402855",
"0.63217735",
"0.6224073",
"0.61850584",
"0.61769104",
"0.61501837",
"0.61281574",
"0.61078054",
"0.6100233",
"0.6070544",
"0.5964194",
"0.5955229",
"0.5940895",
"0.5925158",
"0.58870155",
"0.5873004",
"0.5847901",
"0.5819805",
"0.5815418",
"0.5791473",
"0.5790596",
"0.57800806",
"0.577717",
"0.57547903",
"0.5733353",
"0.5723576",
"0.5698026",
"0.5669184",
"0.5663407",
"0.5632286",
"0.55843276",
"0.55819887",
"0.55051523",
"0.55039424",
"0.54773015",
"0.5442399",
"0.5424481",
"0.53919697",
"0.5381537",
"0.5331032",
"0.5324545",
"0.5308087",
"0.5306582",
"0.5303516",
"0.52874464",
"0.5257659",
"0.5188203",
"0.5185494",
"0.515367",
"0.5146438",
"0.51436454",
"0.51385385",
"0.5137507",
"0.51368093",
"0.5124702",
"0.510495",
"0.5103885",
"0.5100445",
"0.5098983",
"0.5097074",
"0.5072758",
"0.5051192",
"0.5038895",
"0.50216407",
"0.4993225",
"0.498262",
"0.49810046",
"0.4976117",
"0.4967178",
"0.4955213",
"0.4933102",
"0.49325597",
"0.49307528",
"0.4926838",
"0.49256048",
"0.4923116",
"0.49132994",
"0.4905582",
"0.4897024",
"0.48778963",
"0.48729107"
]
| 0.6647933 | 16 |
Sets alignment for this entry. | public void setAlignment(int alignment) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "0d789012-3f1e-4d4b-b335-4dd81825c6f2");
if ((alignment & (alignment - 1)) != 0 || alignment > 0xffff) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "252dca05-27a1-4fd3-bd09-346445020cc4");
throw new IllegalArgumentException("Invalid value for alignment, must be power of two and no bigger than " + 0xffff + " but is " + alignment);
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "a3b0ab7b-7be3-4be3-89fd-5fe6bd660d8c");
this.alignment = alignment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAlignment(Alignment alignment) {\n this.alignment = alignment;\n }",
"public void setAlignment(int align)\n {\n this.align = align;\n }",
"public HBuilder setAlign(String align) \r\n\t\t{\r\n\t\t\th.align = align;\r\n\t\t\treturn this;\r\n\t\t}",
"public void setAlignment(@Nullable Layout.Alignment alignment) {\n if (mAlignment == alignment) {\n return;\n }\n mAlignment = alignment;\n mNeedUpdateLayout = true;\n }",
"public void setAlignmentX(AlignX anAlignX) { }",
"public void setAlign(String align) {\n this.align = align;\n }",
"public void setHorizontalAlignment( short align )\n {\n this.halign = align;\n }",
"public void setAlignment(Position alignment)\n {\n int align = alignment.value;\n JLabel jl = getComponent();\n if ((align&NORTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.TOP);\n else if ((align&SOUTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.BOTTOM);\n else\n jl.setVerticalAlignment(SwingConstants.CENTER);\n if ((align&EAST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.RIGHT);\n else if ((align&WEST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.LEFT);\n else\n jl.setHorizontalAlignment(SwingConstants.CENTER);\n invalidateSize();\n }",
"public void setHorizontalAlignment(int alignment) {\n if (alignment == horizontalAlignment) return;\n int oldValue = horizontalAlignment;\n if ((alignment == LEFT) || (alignment == CENTER) || \n\t (alignment == RIGHT)|| (alignment == LEADING) || \n\t (alignment == TRAILING)) {\n horizontalAlignment = alignment;\n } else {\n throw new IllegalArgumentException(\"horizontalAlignment\");\n }\n firePropertyChange(\"horizontalAlignment\", oldValue, horizontalAlignment); \n invalidate();\n repaint();\n }",
"public void setCellAlign(Alignment cellAlign) {\r\n setAttribute(\"cellAlign\", cellAlign == null ? null : cellAlign.getValue(), true);\r\n }",
"public void setAlignment(int paramInt) {\n/* */ this.newAlign = paramInt;\n/* */ switch (paramInt) {\n/* */ case 3:\n/* */ this.align = 0;\n/* */ return;\n/* */ case 4:\n/* */ this.align = 2;\n/* */ return;\n/* */ } \n/* */ this.align = paramInt;\n/* */ }",
"public Builder setAligning(boolean value) {\n bitField0_ |= 0x00000008;\n aligning_ = value;\n onChanged();\n return this;\n }",
"public void setTextAlign(TEXT_ALIGN align);",
"public void setHAlign(int hAlign) {\n this.hAlign = hAlign;\n }",
"public void setVerticalAlignment( short align )\n {\n this.valign = align;\n }",
"public void setAlignmentY(AlignY anAlignX) { }",
"public void setHorizontalAlignment(int horizontalAlignment)\n {\n field.setHorizontalAlignment(horizontalAlignment);\n }",
"public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }",
"TableSectionBuilder align(String align);",
"public void setLineNumberAlign(Paint.Align align){\n if(align == null){\n align = Paint.Align.LEFT;\n }\n mLineNumberAlign = align;\n invalidate();\n }",
"public static void setAlignment(Node child, FlowAlignment value) {\n setConstraint(child, ALIGNMENT, value);\n }",
"@SuppressWarnings(\"unchecked\")\n public TCS alignment(final Alignment alignment) {\n if (Alignment.AlignmentType.V == alignment.getAlignmentType())\n cellStyle_p.setVerticalAlignment(alignment.idx);\n else\n cellStyle_p.setAlignment(alignment.idx);\n\n return (TCS) this;\n }",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"public void setHorizontalAlign(int align) {\r\n this.halign = align;\r\n updateToolbar();\r\n\r\n }",
"public String getAlign() {\n return align;\n }",
"public void setVAlign(int vAlign) {\n this.vAlign = vAlign;\n }",
"public void setStatusAlign(String statusAlign) {\n\t\tthis.statusAlign = statusAlign;\n\t\thandleConfig(\"statusAlign\", statusAlign);\n\t}",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment()\n {\n return align;\n }",
"Alignment getAlignment() {\n return alignment;\n }",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"@ReactMethod\n public void setAlignment(int alignment, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setAlignment(alignment, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }",
"public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }",
"protected void setValuesFromAlignment(final SAMRecord rec, final SAMRecord alignment) {\n for (final SAMRecord.SAMTagAndValue attr : alignment.getAttributes()) {\n // Copy over any non-reserved attributes.\n if (RESERVED_ATTRIBUTE_STARTS.indexOf(attr.tag.charAt(0)) == -1) {\n rec.setAttribute(attr.tag, attr.value);\n }\n }\n rec.setReadUnmappedFlag(alignment.getReadUnmappedFlag());\n rec.setReferenceIndex(alignment.getReferenceIndex());\n rec.setAlignmentStart(alignment.getAlignmentStart());\n rec.setReadNegativeStrandFlag(alignment.getReadNegativeStrandFlag());\n if (!alignment.getReadUnmappedFlag()) {\n // only aligned reads should have cigar and mapping quality set\n rec.setCigar(alignment.getCigar()); // cigar may change when a\n // clipCigar called below\n rec.setMappingQuality(alignment.getMappingQuality());\n }\n if (rec.getReadPairedFlag()) {\n rec.setProperPairFlag(alignment.getProperPairFlag());\n rec.setInferredInsertSize(alignment.getInferredInsertSize());\n rec.setMateUnmappedFlag(alignment.getMateUnmappedFlag());\n rec.setMateReferenceIndex(alignment.getMateReferenceIndex());\n rec.setMateAlignmentStart(alignment.getMateAlignmentStart());\n rec.setMateNegativeStrandFlag(alignment.getMateNegativeStrandFlag());\n }\n \n // If it's on the negative strand, reverse complement the bases\n // and reverse the order of the qualities\n if (rec.getReadNegativeStrandFlag()) {\n SAMRecordUtil.reverseComplement(rec);\n }\n \n if (clipAdapters && rec.getAttribute(ReservedTagConstants.XT) != null){\n CigarUtil.softClip3PrimeEndOfRead(rec, rec.getIntegerAttribute(ReservedTagConstants.XT));\n }\n }",
"public void setHorizontalTextAlignment(short value)\n {\n field_1_options = HorizontalTextAlignment.setShortValue(field_1_options, value);\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"Builder addEducationalAlignment(AlignmentObject value);",
"public Alignment()\n\t{\n\t}",
"public void setItemAlignmentViewId(int viewId) {\n mLayoutManager.setItemAlignmentViewId(viewId);\n }",
"public Alignment getAlignment() {\n return alignment;\n }",
"Builder addEducationalAlignment(String value);",
"private void setAlignParam(ConstTiltalignParam tiltalignParam) {\n if (dialog == null) {\n return;\n }\n dialog.setAngleOffset(tiltalignParam.getAngleOffset());\n dialog.setTiltAxisZShift(tiltalignParam.getAxisZShift());\n }",
"void setAlignmentRefs(java.util.List alignmentRefs);",
"public Alignment(Properties props) {\r\n\t\talignmentThreshold = Integer.parseInt(props.getProperty(\"alignmentThreshold\"));\r\n\t}",
"@JSProperty(\"textAlign\")\n void setTextAlign(String value);",
"public void format(List<Alignment> alignmentList);",
"public void setItemAlignmentOffset(int offset) {\n mLayoutManager.setItemAlignmentOffset(offset);\n requestLayout();\n }",
"public Builder clearAligning() {\n bitField0_ = (bitField0_ & ~0x00000008);\n aligning_ = false;\n onChanged();\n return this;\n }",
"public void setVerticalTextAlignment(short value)\n {\n field_1_options = VerticalTextAlignment.setShortValue(field_1_options, value);\n }",
"public BasicAlignment (Glyph glyph)\r\n {\r\n super(glyph);\r\n }",
"int getAlignValue();",
"public abstract void doAlignment(String sq1, String sq2);",
"public void setDetailTextureAlignment(int alignment) {\n mController.setDetailTextureAlignment(alignment);\n }",
"public void alignLocation();",
"@Override\r\n\tpublic int getAlignmentSize() {\r\n\t\treturn getSize();\r\n\t}",
"void editAlignment(Alignment alignment, BeautiDoc doc) {\n\t\ttry {\n\t\t\tAlignmentViewer viewer = new AlignmentViewer(alignment);\n\t\t\tviewer.showInDialog();\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong viewing the alignment: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void handleCellAlign( ICellContent cell )\n \t{\n \t\t/*\n \t\t * in fireforx, the text-align is used by text item, it defines the\n \t\t * alignment of the content in the text item instead of the text item in\n \t\t * its container. we can put a text item with a width into the cell to\n \t\t * see the difference. We must use computeStyle as the text-align is not\n \t\t * inherited across the table.\n \t\t */\n \t\tIStyle cellStyle = cell.getComputedStyle( );\n \t\tCSSValue vAlign = cellStyle.getProperty( IStyle.STYLE_VERTICAL_ALIGN );\n \t\tif ( null == vAlign || IStyle.BASELINE_VALUE == vAlign )\n \t\t{\n \t\t\t// The default vertical-align value of cell is top.\n \t\t\tvAlign = IStyle.TOP_VALUE;\n \t\t}\n \t\twriter.attribute( HTMLTags.ATTR_VALIGN, vAlign.getCssText( ) );\n \t\thandleHorizontalAlign( cellStyle );\n \t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public int getHorizontalAlignment() {\n return horizontalAlignment;\n }",
"@Override\r\n public void setAlignmentY(float f) {\r\n super.setAlignmentY(JLabel.CENTER_ALIGNMENT);\r\n }",
"public final int align() throws RecognitionException {\r\n int align = 0;\r\n\r\n\r\n Token INTEGER38=null;\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:5: ( ALIGN INTEGER )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:7: ALIGN INTEGER\r\n {\r\n match(input,ALIGN,FOLLOW_ALIGN_in_align874); \r\n\r\n INTEGER38=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_align876); \r\n\r\n align = Integer.parseInt((INTEGER38!=null?INTEGER38.getText():null));\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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return align;\r\n }",
"public final ObjectProperty<Pos> alignmentProperty() {\n if (alignment == null) {\n alignment = new StyleableObjectProperty<Pos>(Pos.TOP_LEFT) {\n\n @Override\n public void invalidated() {\n requestLayout();\n }\n\n @Override\n public CssMetaData<HangingFlowPane, Pos> getCssMetaData() {\n return StyleableProperties.ALIGNMENT;\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"alignment\";\n }\n };\n }\n return alignment;\n }",
"public void alignColumns() {\n\t\tif ( isReferenceToPrimaryKey() ) alignColumns(referencedTable);\n\t}",
"public void alignCenter() {\n\t\ttop.middle();\n\t}",
"Builder addEducationalAlignment(AlignmentObject.Builder value);",
"TableSectionBuilder vAlign(String vAlign);",
"public void printAlignment(SWGAlignment alignment){\n\t\t\tString \torigSeq1 = alignment.getOriginalSequence1().toString(),\n\t\t\t\t\torigSeq2 = alignment.getOriginalSequence2().toString(),\n\t\t\t\t\talnSeq1 = new String(alignment.getSequence1()),\n\t\t\t\t\talnSeq2 = new String(alignment.getSequence2());\n\t\t\tint \tstart1 = alignment.getStart1(),\n\t\t\t\t\tstart2 = alignment.getStart2(),\n\t\t\t\t\tgap1 = alignment.getGaps1(),\n\t\t\t\t\tgap2 = alignment.getGaps2();\n\t\t\t\n\t\t\tString seq1, seq2, mark;\n\t\t\tif(start1>=start2){\n\t\t\t\tseq1=origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tString \tseq2Filler = start1==start2?\"\":String.format(\"%\"+(start1-start2)+\"s\", \"\"),\n\t\t\t\t\t\tmarkFiller = start1==0?\"\":String.format(\"%\"+start1+\"s\", \"\");\n\t\t\t\tseq2= seq2Filler + origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tmark= markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}else{\n\t\t\t\tseq2=origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tString \tmarkFiller = start2==0?\"\":String.format(\"%\"+start2+\"s\", \"\");\n\t\t\t\tseq1=String.format(\"%\"+(start2-start1)+\"s\", \"\") + origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tmark=markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}\n\t\t\tSystem.out.println(alignment.getSummary());\n\t\t\tSystem.out.println(seq1);\n\t\t\tSystem.out.println(mark);\n\t\t\tSystem.out.println(seq2);\n\t\t}",
"protected int getAlignment() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"12abfd3b-e43a-46a7-92b9-993595740399\");\n return this.alignment;\n }",
"public float getAlignmentY() { return 0.5f; }",
"public void setFacetValueAlign(Alignment facetValueAlign) {\r\n setAttribute(\"facetValueAlign\", facetValueAlign == null ? null : facetValueAlign.getValue(), true);\r\n }",
"public VFlowLayout(int align) {\n this(align, 5, 5, true, false);\n }",
"public Alignment getCellAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"cellAlign\"));\r\n }",
"void xsetAlignmentRefs(org.landxml.schema.landXML11.AlignmentNameRefs alignmentRefs);",
"public void setCellpadding(java.lang.String cellpadding)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.setStringValue(cellpadding);\n }\n }",
"public void setJustification(int val) throws IOException {\n writer.write(0x1B);\n writer.write(\"a\");\n writer.write(val);\n writer.flush();\n }",
"boolean getAligning();",
"public void handleHorizontalAlign( IStyle style )\n \t{\n \t\tCSSValue hAlign = style.getProperty( IStyle.STYLE_TEXT_ALIGN );\n \t\tif ( null != hAlign )\n \t\t{\n \t\t\twriter.attribute( HTMLTags.ATTR_ALIGN, hAlign.getCssText( ) );\n \t\t}\n \t}",
"public AlignX getAlignmentX() { return AlignX.Left; }",
"@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }",
"public int getHorizontalAlignment()\n {\n return field.getHorizontalAlignment();\n }",
"private void alignSelectedFurniture(final AlignmentAction alignmentAction) {\n final List<HomePieceOfFurniture> selectedFurniture = getMovableSelectedFurniture();\n if (selectedFurniture.size() >= 2) {\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n final HomePieceOfFurniture leadPiece = this.leadSelectedPieceOfFurniture;\n final AlignedPieceOfFurniture [] alignedFurniture = \n AlignedPieceOfFurniture.getAlignedFurniture(selectedFurniture, leadPiece);\n this.home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n undoAlignFurniture(alignedFurniture); \n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoAlignName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }",
"public boolean setCaptionVerticalAlign(String align) {\n //Allowed allgments\n boolean top = align.equals(\"top\");\n boolean mid = align.equals(\"middle\");\n boolean bottom = align.equals(\"bottom\");\n \n if(top || mid || bottom) { //Checks if allowed and sets it\n this.captionVerticalAlign = align;\n return true;\n }\n \n return false;\n }",
"public void mergeAlignment() {\n \n SAMFileReader unmappedSam = null;\n if (this.unmappedBamFile != null) {\n unmappedSam = new SAMFileReader(IoUtil.openFileForReading(this.unmappedBamFile));\n }\n \n // Write the read groups to the header\n if (unmappedSam != null) header.setReadGroups(unmappedSam.getFileHeader().getReadGroups());\n \n int aligned = 0;\n int unmapped = 0;\n \n final PeekableIterator<SAMRecord> alignedIterator = \n new PeekableIterator(getQuerynameSortedAlignedRecords());\n final SortingCollection<SAMRecord> alignmentSorted = SortingCollection.newInstance(\n SAMRecord.class, new BAMRecordCodec(header), new SAMRecordCoordinateComparator(),\n MAX_RECORDS_IN_RAM);\n final ClippedPairFixer pairFixer = new ClippedPairFixer(alignmentSorted, header);\n \n final CloseableIterator<SAMRecord> unmappedIterator = unmappedSam.iterator();\n SAMRecord nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n SAMRecord lastAligned = null;\n \n final UnmappedReadSorter unmappedSorter = new UnmappedReadSorter(unmappedIterator);\n while (unmappedSorter.hasNext()) {\n final SAMRecord rec = unmappedSorter.next();\n rec.setReadName(cleanReadName(rec.getReadName()));\n if (nextAligned != null && rec.getReadName().compareTo(nextAligned.getReadName()) > 0) {\n throw new PicardException(\"Aligned Record iterator (\" + nextAligned.getReadName() +\n \") is behind the umapped reads (\" + rec.getReadName() + \")\");\n }\n rec.setHeader(header);\n \n if (isMatch(rec, nextAligned)) {\n if (!ignoreAlignment(nextAligned)) {\n setValuesFromAlignment(rec, nextAligned);\n if (programRecord != null) {\n rec.setAttribute(ReservedTagConstants.PROGRAM_GROUP_ID,\n programRecord.getProgramGroupId());\n }\n aligned++;\n }\n nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n }\n else {\n unmapped++;\n }\n \n // Add it if either the read or its mate are mapped, unless we are adding aligned reads only\n final boolean eitherReadMapped = !rec.getReadUnmappedFlag() || (rec.getReadPairedFlag() && !rec.getMateUnmappedFlag());\n \n if (eitherReadMapped || !alignedReadsOnly) {\n pairFixer.add(rec);\n }\n }\n unmappedIterator.close();\n alignedIterator.close();\n \n final SAMFileWriter writer =\n new SAMFileWriterFactory().makeBAMWriter(header, true, this.targetBamFile);\n int count = 0;\n CloseableIterator<SAMRecord> it = alignmentSorted.iterator();\n while (it.hasNext()) {\n SAMRecord rec = it.next();\n if (!rec.getReadUnmappedFlag()) {\n if (refSeq != null) {\n byte referenceBases[] = refSeq.get(rec.getReferenceIndex()).getBases();\n rec.setAttribute(SAMTag.NM.name(),\n SequenceUtil.calculateSamNmTag(rec, referenceBases, 0, bisulfiteSequence));\n rec.setAttribute(SAMTag.UQ.name(),\n SequenceUtil.sumQualitiesOfMismatches(rec, referenceBases, 0, bisulfiteSequence));\n }\n }\n writer.addAlignment(rec);\n if (++count % 1000000 == 0) {\n log.info(count + \" SAMRecords written to \" + targetBamFile.getName());\n }\n }\n writer.close();\n \n \n log.info(\"Wrote \" + aligned + \" alignment records and \" + unmapped + \" unmapped reads.\");\n }",
"public void setIndent(boolean doIndent) {\r\n if (doIndent) {\r\n defaultFormat.indent = STANDARD_INDENT;\r\n }\r\n else {\r\n defaultFormat.indent = null;\r\n }\r\n }",
"public int getAlignment()\n {\n return bouquet.getAlignment();\n }",
"abstract void setHeaderPadding(boolean headerPadding);",
"com.ctrip.ferriswheel.proto.v1.Placement getAlign();",
"public short getHorizontalAlignment()\n {\n return halign;\n }",
"public void setItemAlignmentOffsetWithPadding(boolean withPadding) {\n mLayoutManager.setItemAlignmentOffsetWithPadding(withPadding);\n requestLayout();\n }",
"public void setIndentFiller(String filler) {\n spaceFill = filler;\n }",
"String validateAlignment() {\n\t\treturn null;\n\t}",
"private void numberDisplayAlignment() {\n numberDisplay.setAlignment(Pos.CENTER_RIGHT);\n numberDisplay.setPrefSize(20, 10);\n }",
"public void setSpacing ( int spacing ) {\n\t\tthis.treeNodeLayout.setSpacing ( spacing );\n\t}",
"public ColumnOutput setPad() throws IOException {\r\n\t\t\r\n\t\tStringBuilder p = new StringBuilder((getWidth() == UnlimitedWidth)?b.length():getWidth());\r\n\t\tsendToOutput(p);\r\n\t\tpad = p.toString().subSequence(0, p.length());\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"@Override\n\tpublic void print(String text) {\n\t super.print(text);\n\t\tSimpleAttributeSet sas = new SimpleAttributeSet();\n\t StyleConstants.setAlignment(sas, StyleConstants.ALIGN_CENTER);\n\t document.setParagraphAttributes(0, document.getLength(), sas, false);\n\t}",
"public void setPadding( Integer p ){\r\n\t\tpadding = p;\r\n\t}",
"public void setPadding(Integer padding)\n {\n getStateHelper().put(PropertyKeys.padding, padding);\n }",
"public void setFacetTitleAlign(Alignment facetTitleAlign) {\r\n setAttribute(\"facetTitleAlign\", facetTitleAlign == null ? null : facetTitleAlign.getValue(), true);\r\n }"
]
| [
"0.7650681",
"0.76386756",
"0.7316262",
"0.71990615",
"0.71498215",
"0.7093276",
"0.70813245",
"0.70650136",
"0.70027405",
"0.6819661",
"0.6805354",
"0.67351687",
"0.6687724",
"0.6516777",
"0.6476723",
"0.64232105",
"0.6408122",
"0.6342233",
"0.630259",
"0.62610304",
"0.6246794",
"0.6242808",
"0.6229552",
"0.61870795",
"0.61319363",
"0.6031216",
"0.59927654",
"0.597795",
"0.597795",
"0.59713686",
"0.5949137",
"0.5940915",
"0.5926094",
"0.5869646",
"0.5847584",
"0.58470744",
"0.58248353",
"0.57914734",
"0.57603526",
"0.5724263",
"0.56896",
"0.56827503",
"0.5677358",
"0.5674958",
"0.56665426",
"0.5662431",
"0.565892",
"0.5648265",
"0.5577957",
"0.5572314",
"0.5525144",
"0.55128056",
"0.5426785",
"0.5342012",
"0.53364277",
"0.53322315",
"0.53316665",
"0.5329133",
"0.53188586",
"0.5310702",
"0.53022534",
"0.5276985",
"0.5234152",
"0.52293724",
"0.52290905",
"0.5222793",
"0.52181804",
"0.5198273",
"0.51886535",
"0.51539165",
"0.51529855",
"0.5127379",
"0.51024497",
"0.50831085",
"0.50706005",
"0.5062597",
"0.5053123",
"0.50514793",
"0.5049654",
"0.5048092",
"0.5000053",
"0.49594116",
"0.49390957",
"0.49287277",
"0.48941606",
"0.48925477",
"0.48908365",
"0.48906845",
"0.48876944",
"0.4886121",
"0.48504856",
"0.4838343",
"0.48293138",
"0.48081025",
"0.47923586",
"0.478571",
"0.47806212",
"0.47724724",
"0.4761987",
"0.4759379"
]
| 0.74309886 | 2 |
Replaces all currently attached extra fields with the new array. | public void setExtraFields(final ZipExtraField[] fields) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "e57536ae-1bcc-4181-a421-ac13bbd5a9a0");
final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "b6219fa6-a243-4666-ac05-1dfe5f55e146");
for (final ZipExtraField field : fields) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "ff160a4e-3868-4d55-ae65-f3ec497e79e8");
if (field instanceof UnparseableExtraFieldData) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b");
unparseableExtra = (UnparseableExtraFieldData) field;
} else {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "78045b40-4eb7-43f0-b243-cee81dfeef37");
newFields.add(field);
}
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "519ff1f6-cf34-43b1-81ca-518811f79459");
extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "fae5b51d-497d-46f3-b460-cece6c3bfcd3");
setExtra();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void extendArray() {\n int index = size();\n Object[] temp = new Object[index + 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n AL = temp;\n }",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"public void attachData(double[] newData) {\n\t\tdouble[] newDataArray = new double[data.length + newData.length];\n\t\tSystem.arraycopy(data, 0, newDataArray, 0, data.length);\n\t\tSystem.arraycopy(newData, 0, newDataArray, data.length, newData.length);\n\t\tdata = newDataArray;\n\t}",
"private void resetActiveFields() {\n for ( int i=0 ; i < _dictionaryActiveEntryArray.length ; i++ ) {\n _dictionaryActiveEntryArray[ i ].reset();\n }\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"void visitArrayField(FieldAttributes f, Type typeOfF, Object obj);",
"public void updateExtraTransformMatrix(float[] fArr) {\n }",
"private T[] modifyArray(T[] array) {\n array[index] = null;\n return array;\n }",
"public Builder clearExtra() {\n bitField0_ = (bitField0_ & ~0x00000004);\n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"public Builder clearExtra() {\n \n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"private void extendContainer() {\n int newLength = container.length * 2;\n newLength = (newLength % 2 != 0) ? newLength - 1 : newLength;\n Entry<K, V>[] t = new Entry[newLength];\n for (Entry<K, V> e : container) {\n if (e != null) {\n int index = indexFor(e.key);\n t[index] = e;\n }\n }\n container = t;\n }",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"private void extend() {\n for (Object o : table) {\n if (o == null)\n return;\n }\n\n TABLE_SIZE *= 2;\n Object[] entries = entrySet();\n this.table = new Object[TABLE_SIZE];\n\n rebuild(entries);\n }",
"public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}",
"public void newArray() {\n\t\t\n\t\tE[] newArray= (E[]) new Object[list.length * 2]; //Holds the old elements from the list array while new list array is being made\n\t\t\n\t\tfor(int i = 0; i < list.length; i++) {\n\t\t\t\n\t\t\tnewArray[i] = list[i]; //Copy the old list array into the newArray\n\t\t}\n\t\t\n\t\tlist = newArray; //Point the old array at the newArray starting memory location\n\t\t\n\t}",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public void compact()\n\t{\n\t\tif (addIndex == size())\n\t\t\treturn;\n\t\t\n\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), addIndex );\n\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\tarray = narray;\n\t}",
"private void appendExtraAttributes( final Attributes attributes )\n {\n final Iterator iterator = m_extraAttributes.iterator();\n while( iterator.hasNext() )\n {\n final ExtraAttribute attribute =\n (ExtraAttribute)iterator.next();\n attributes.putValue( attribute.getName(),\n attribute.getValue() );\n }\n }",
"public void m1254a(eb[] ebVarArr) {\n Object obj = this.f777b;\n if (obj == null) {\n this.f777b = ebVarArr;\n } else if (ebVarArr != null && ebVarArr.length > 0) {\n Object obj2 = new eb[(obj.length + ebVarArr.length)];\n System.arraycopy(obj, 0, obj2, 0, obj.length);\n System.arraycopy(ebVarArr, 0, obj2, obj.length, ebVarArr.length);\n this.f777b = obj2;\n }\n }",
"private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}",
"public void setFields(entity.APDExposureField[] value);",
"private void m24354e() {\n String[] strArr = this.f19529f;\n this.f19529f = (String[]) Arrays.copyOf(strArr, strArr.length);\n C4216a[] aVarArr = this.f19530g;\n this.f19530g = (C4216a[]) Arrays.copyOf(aVarArr, aVarArr.length);\n }",
"public void saveExtraData() {}",
"public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }",
"private void cloneFields(Project originalProj, Project cloneProj) {\n\tSet<FieldAssignment> origianlFAssignments = originalProj.getAssignedFields();\n\tif (origianlFAssignments != null) {\n\t for (FieldAssignment originalAssign : origianlFAssignments) {\n\t\tFieldAssignment cloneField = originalAssign.clone();\n\t\tcloneField.setProject(cloneProj);\n\t\tthis.fieldDAO.assignFieldToProject(cloneField);\n\t }\n\t}\n }",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"public org.datacontract.schemas._2004._07.ServiceSoap_UBL2__0_Models_Object.Extensible[] getExtras() {\n return extras;\n }",
"private void expand() {\n\n intElements = copyIntArray(intElements, intElements.length * 2);\n doubleElements = copyDoubleArray(doubleElements, doubleElements.length * 2);\n stringElements = copyStringArray(stringElements, stringElements.length * 2);\n typeOfElements = copyIntArray(typeOfElements, typeOfElements.length * 2);\n }",
"public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }",
"public void setFieldNoteArray(org.landxml.schema.landXML11.FieldNoteDocument.FieldNote[] fieldNoteArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(fieldNoteArray, FIELDNOTE$4);\r\n }\r\n }",
"public void overwriteAst(Asteroid[] ast){\n this.field = ast;\n }",
"private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }",
"public Map<String, String> getOriginalFields() {\r\n return Collections.unmodifiableMap(originalFields);\r\n }",
"public void updateOriginal() {\n for (Node node : originalGraph.nodes()) {\n mirrorAttributesToOriginal(node);\n }\n for (Edge edge : originalGraph.edges()) {\n mirrorAttributesToOriginal(directEdgeMap.get(edge));\n }\n }",
"private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }",
"void updateTermsArray() {\n terms.clear();\n terms = getTerms();\n }",
"public void setExtras(org.datacontract.schemas._2004._07.ServiceSoap_UBL2__0_Models_Object.Extensible[] extras) {\n this.extras = extras;\n }",
"private Attributes adjustForeignAttributes(Attributes attributes) {\n return attributes;\n }",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"public T[] getClonedTrimmed(T[] ar) {\r\n for (int i = offset; i < offset + count; i++) {\r\n @SuppressWarnings(\"unchecked\")\r\n T v = (T)objects[i];\r\n ar[i] = v;\r\n }\r\n return ar;\r\n }",
"private static void fixDexElementsForProtectedApp(Application application, Object[] newDexElements) throws Exception {\n Field zipField = null;\n Field dexFileField = null;\n final Field mFileNameField = ShareReflectUtil.findField(DexFile.class, \"mFileName\");\n final Field mCookieField = ShareReflectUtil.findField(DexFile.class, \"mCookie\");\n final Field mInternalCookieField = ShareReflectUtil.findField(DexFile.class, \"mInternalCookie\");\n\n // Always ignore the last element since it should always be the base.apk.\n for (int i = 0; i < newDexElements.length - 1; ++i) {\n final Object newElement = newDexElements[i];\n\n if (zipField == null && dexFileField == null) {\n zipField = ShareReflectUtil.findField(newElement, \"zip\");\n dexFileField = ShareReflectUtil.findField(newElement, \"dexFile\");\n }\n\n final DexFile origDexFile = oldDexFiles.get(i);\n final String origFileName = (String) mFileNameField.get(origDexFile);\n final Object origCookie = mCookieField.get(origDexFile);\n final Object origInternalCookie = mInternalCookieField.get(origDexFile);\n\n final DexFile dupOrigDexFile = DexFile.loadDex(application.getApplicationInfo().sourceDir, null, 0);\n mFileNameField.set(dupOrigDexFile, origFileName);\n mCookieField.set(dupOrigDexFile, origCookie);\n mInternalCookieField.set(dupOrigDexFile, origInternalCookie);\n\n dexFileField.set(newElement, dupOrigDexFile);\n\n // Just for better looking when dump new classloader.\n // Avoid such output like this: DexPathList{zip file: /xx/yy/zz/uu.odex}\n final File newZip = (File) zipField.get(newElement);\n final String newZipPath = (newZip != null ? newZip.getAbsolutePath() : null);\n if (newZipPath != null && !newZipPath.endsWith(\".zip\") && !newZipPath.endsWith(\".jar\") && !newZipPath.endsWith(\".apk\")) {\n zipField.set(newElement, null);\n }\n }\n }",
"private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}",
"public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}",
"protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }",
"public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }",
"public void corrupt_all() {\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i]!=null) {\n\t\t\t\tcorrupt(i);\n\t\t\t}\n\t\t}\n\t}",
"public void set(Object[] newContents) {\r\n\t\tAssert.isNotNull(newContents);\r\n\t\tdata.clear();\r\n\t\tdata.addAll(Arrays.asList(newContents));\r\n\r\n\t\tIConcurrentModelListener[] listeners = getListeners();\r\n\t\tfor (IConcurrentModelListener listener : listeners) {\r\n\t\t\tlistener.setContents(newContents);\r\n\t\t}\r\n\t}",
"public final void setAttributes(final String[] newAttributes) {\n this.attributes = newAttributes;\n }",
"private void mergeExtraFields(final ZipExtraField[] f, final boolean local) throws ZipException {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4660ef72-97af-4c77-a8c0-451c0176ea1f\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fc349413-df04-4074-b3da-fdacb54199ad\");\n setExtraFields(f);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4b996740-6cfc-4dbf-b3af-764a31cbfe77\");\n for (final ZipExtraField element : f) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bacdc8b5-2a38-484f-aa61-b042212a08c4\");\n ZipExtraField existing;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"d08c42a0-26d8-46ea-bb0e-aa534ce634f2\");\n if (element instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e96717ff-128b-4b11-aa83-243e5cdd44ba\");\n existing = unparseableExtra;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"611a8005-5c56-445f-b013-ae0feef0b77f\");\n existing = getExtraField(element.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cc9ae2dd-d591-403f-bfc0-3565f7413957\");\n if (existing == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b3059034-a6ec-4f5c-92ab-02329c1e2936\");\n addExtraField(element);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"9cf4a3a6-31a3-468f-b1d1-797ef9894394\");\n if (local) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"32f3d1f3-8ae4-4c18-8839-1c1fb6a4aaa5\");\n final byte[] b = element.getLocalFileDataData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"532ad3fc-c060-4f5d-9f0e-6b3aca602760\");\n existing.parseFromLocalFileData(b, 0, b.length);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"31ca8fd7-a4ff-49df-88a1-30617762fb79\");\n final byte[] b = element.getCentralDirectoryData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f2794a07-51ae-4509-8ae5-c37f1cff97cd\");\n existing.parseFromCentralDirectoryData(b, 0, b.length);\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0f523d07-2102-4c81-b83c-cf863a880764\");\n setExtra();\n }\n }",
"protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }",
"private static Invariant[] getFieldInvs(Invariant[] invArr, Field[] fields) {\n List<Invariant> list = new ArrayList<>(Arrays.asList(invArr)); //Creates a list.\n for (Field field : fields) { //Loops through all the fields\n Invariant[] fieldInvs = field.getAnnotationsByType(Invariant.class);\n if (fieldInvs.length != 0) { //Makes sure it has invariants\n list.addAll(Arrays.asList(fieldInvs)); //Addss all invariants\n }\n }\n Invariant[] tmp = Arrays.copyOf(list.toArray(), list.size(), Invariant[].class); //Converts the list to an array of invariant type.\n return tmp;\n }",
"private Number[] arrayExtension(Number[] array) {\n int extendedLength = (int) (array.length * 1.3 + 2);\n Number[] extendedArray = new Number[extendedLength];\n for (int index = 0; index < array.length; index++) {\n extendedArray[index] = array[index];\n }\n return extendedArray;\n }",
"@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }",
"public void extend() {\n if (ON < OLast / 2) {\n compress();\n return;\n }\n klasse o[] = (klasse[]) (new Object[2 * OSize]);\n System.arraycopy(O, 0, o, 0, OLast);\n OSize *= 2;\n O = o;\n }",
"private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }",
"private QuotationDetailsDTO[] updateArticleTable(TableItem[] items, QuotationDetailsDTO[] details) {\n\t\tQuotationDetailsDTO[] newDetails = null;\n\t\tint size = items.length;\n\t\tnewDetails = new QuotationDetailsDTO[size];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewDetails[i] = new QuotationDetailsDTO();\n\t\t\tfor(int j = 0; j < details.length; j++) {\n\t\t\t\tif(items[i].getText(0).equals(details[j].getArticleName())){\n\t\t\t\t\t// Assign old values\n\t\t\t\tnewDetails[i] = details[j];\n\t\t\t\tcheckChargedWeight(items, newDetails[i]);\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Set article value changes\n\t\t\tnewDetails[i] = createQuotationDetailsForMixedArticle(newDetails[i], items[i]);\t\t\t\n\t\t}\n\t\treturn newDetails;\n\t}",
"private void resize() {\n Couple[] tmp = new Couple[2 * associations.length];\n System.arraycopy(associations, 0, tmp, 0, associations.length);\n associations = tmp;\n }",
"public void setColumns(Column[] newColumns) { columns = newColumns; }",
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}",
"public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}",
"JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);",
"public void setAvailableExtraData(List<String> extraDataKeys) {\n/* 502 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void updateField() {\n\n boolean[][] tempField = new boolean[getLength()][getHeight()];\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n tempField[x][y] = checkSurrounding(x, y);\n }\n }\n setFields(tempField);\n }",
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"public void recreateContact(JsonArray jsonArray);",
"protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}",
"public void compact()\n {\n array = toArray();\n }",
"private void ensureCap(){\n T[] temp = (T[])new Object[arr.length * 2];\n for(int i = 0; i < numItems; i++){\n temp[i] = this.arr[i];\n }\n this.arr = temp;\n }",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"AlgOptTable extend( List<AlgDataTypeField> extendedFields );",
"default void flatten() {\n\t\tFieldGraph<F> flatGraph = FieldGraph.of(getFields());\n\t\tC flatClone = cloneFlat();\t// have to clone, because pull doesn't change value if pulling from self\n\t\tfor (F field : getFields())\n\t\t\tpull(field, flatClone, flatGraph);\n\t}",
"public VersionedMap getExtra ()\n {\n return extra;\n }",
"protected void setArray (JField jf, Vector nodes, Object obj, XmlDescriptor desc,\n\t\t\t\t\t\t\t UnmarshalContext context) throws Exception {\n\t\tif (nodes.size () == 0) return;\n\t\tClass thisClass = obj.getClass();\n\n\t\tObject theArray = Array.newInstance (getAClass (jf.getObjectType ()), nodes.size ());\n\t\tObject value = null;\n Method m = null;\n\n\t\tm = getASetMethod (thisClass, \"set\" + jf.getGetSet(), theArray.getClass ());\n\n\t\tfor (int i=0; i< nodes.size (); i++) {\n\t\t\t// W3CXmlNode ..\n\t\t\tXmlNode thisNode = ((XmlNode)nodes.elementAt (i));\n\t\t\tif (jf instanceof JCompositeField) {\n\t\t\t\tXmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n\t\t\t\tvalue = unmarshal (thisNode, context, fieldDesc);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalue = getPrimitive (thisNode, jf, context);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tArray.set (theArray, i, value);\n\t\t}\n\t\tm.invoke(obj, new Object[]{theArray});\n\t}",
"private void originalAttributesToMirror(Edge edge) {\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n for (NodeAttributeToPreserve attribute : nodeAttributesToPreserve) {\n if (attribute.applySourceToBends) {\n NodeAttribute<Object> originalAttribute = originalGraph.nodeAttribute(attribute.id);\n NodeAttribute<Object> mirrorAttribute = mirrorGraph.nodeAttribute(attribute.id);\n for (Node bend : mirrorEdge.bends) {\n copyAttributeValue(originalAttribute, edge.source(), mirrorAttribute, bend);\n }\n }\n }\n for (String attrId : edgeAttributesToPreserve) {\n EdgeAttribute<Object> originalAttribute = originalGraph.edgeAttribute(attrId);\n EdgeAttribute<Object> mirrorAttribute = mirrorGraph.edgeAttribute(attrId);\n for (Edge segment : mirrorEdge.segments) {\n copyAttributeValue(originalAttribute, edge, mirrorAttribute, segment);\n }\n }\n copyPosition(edge, mirrorEdge);\n }",
"public void setMappingFieldsArray(java.lang.String[] mappingFieldsArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(mappingFieldsArray, MAPPINGFIELDS$28);\n }\n }",
"@Override\n public void modifyFeatures(String[] nameArray, Object[] attributeValues, Filter filter)\n throws IOException {\n SimpleFeatureBuilder fb = new SimpleFeatureBuilder(getSchema());\n for (int i = 0; i < nameArray.length; i++) {\n fb.set(nameArray[i], attributeValues[i]);\n }\n SimpleFeature sample = fb.buildFeature(null);\n\n // invert the values\n List<String> names = Arrays.asList(nameArray);\n Map<String, Object> invertedValueMap = new HashMap<String, Object>();\n for (Definition definition : transformer.getDefinitions()) {\n if(names.contains(definition.getName())) { \n List<Definition> ids = definition.inverse();\n if(ids != null) {\n for (Definition id : ids) {\n Object value = id.getExpression().evaluate(sample);\n invertedValueMap.put(id.getName(), value);\n }\n }\n }\n }\n \n // if we have any inverted value, call through\n if(!invertedValueMap.isEmpty()) {\n String[] invertedNames = new String[invertedValueMap.size()];\n Object[] invertedValues = new Object[invertedValueMap.size()];\n int i = 0;\n for (String name : invertedValueMap.keySet()) {\n invertedNames[i] = name;\n invertedValues[i] = invertedValueMap.get(name);\n i++;\n }\n Filter txFilter = transformer.transformFilter(filter);\n store.modifyFeatures(invertedNames, invertedValues, txFilter);\n }\n }",
"protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}",
"public void setExtraMap(Map<Object, Object> extraMap) {\n this.extraMap = extraMap;\n }",
"private IntPlus[] cloneArr(final IntPlus[] origArr) {\n return Arrays.copyOf(origArr, origArr.length);\n }",
"public void modified(String[][] content);",
"public Builder clearField1048() {\n \n field1048_ = getDefaultInstance().getField1048();\n onChanged();\n return this;\n }",
"public void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(featureArray, FEATURE$14);\r\n }\r\n }",
"public void setUserField(final String[] userField)\n {\n checkImmutable();\n this.userField = userField;\n }",
"public void putValueBeforeArrayAddrIndex() {\n\t\tObj index = Tab.currentScope().findSymbol(\"@@TEMPOBJ\");\n\t\tObj address = Tab.currentScope().findSymbol(\"@@TEMPOBJ2\");\n\t\tObj value = Tab.currentScope().findSymbol(\"@@TEMPOBJ3\");\n\t\t\n\t\tCode.store(index);\n\t\tCode.store(address);\n\t\tCode.store(value);\n\t\t\n\t\tCode.load(address);\n\t\tCode.load(index);\n\t\tCode.load(value);\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}",
"private String[] reqArray(String[] originalArray, String[] resultArray) {\n\n int ind = 0;\n\n for (int i = 0; i < originalArray.length; i++) {\n if (originalArray[i] != null) {\n resultArray[ind] = originalArray[i];\n ind++;\n }\n }\n return resultArray;\n }",
"private void restartArray() {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n Start.shemaArray[i][j].baseModel.state = 0;\n }\n }\n }",
"private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }",
"public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"private void grow() {\n Account[] replaceAccounts = new Account[this.accounts.length + 5];\n System.arraycopy(this.accounts, 0, replaceAccounts, 0, this.accounts.length);\n this.accounts = replaceAccounts;\n }",
"private static Object resizeArray(Object oldArray, int newSize) {\n\t\tint oldSize = java.lang.reflect.Array.getLength(oldArray);\n\t\tClass elementType = oldArray.getClass().getComponentType();\n\t\tObject newArray = java.lang.reflect.Array.newInstance(elementType,\n\t\t\t\tnewSize);\n\t\tint preserveLength = Math.min(oldSize, newSize);\n\t\tif (preserveLength > 0) {\n\t\t\tSystem.arraycopy(oldArray, 0, newArray, 0, preserveLength);\n\t\t}\n\t\treturn newArray;\n\t}",
"public void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(featureArray, FEATURE$6);\r\n }\r\n }",
"public void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(featureArray, FEATURE$6);\r\n }\r\n }",
"protected void setArray(Object[] array){\r\n\t \tthis.array = array;\r\n\t }",
"public void setFieldsByName(String[] fields)\n\t{\n\t\tList<String> localFields = Arrays.asList(fields);\n\t\tsetFieldsByName(localFields);\n\t}"
]
| [
"0.6071532",
"0.5805038",
"0.5557442",
"0.5554266",
"0.5446134",
"0.53902686",
"0.5354632",
"0.5317197",
"0.5239688",
"0.52213067",
"0.5215323",
"0.5204274",
"0.51217914",
"0.51077145",
"0.51026136",
"0.507771",
"0.50605536",
"0.50091517",
"0.49933892",
"0.49777552",
"0.49741688",
"0.49491608",
"0.49430418",
"0.4886395",
"0.4883083",
"0.48820016",
"0.48626107",
"0.4846833",
"0.48405305",
"0.48372895",
"0.48305038",
"0.47959936",
"0.47585475",
"0.4751432",
"0.47472483",
"0.47440818",
"0.47316894",
"0.47270134",
"0.47267583",
"0.47210237",
"0.47191525",
"0.47100952",
"0.47089246",
"0.47074243",
"0.4700579",
"0.46948138",
"0.46946013",
"0.46906102",
"0.46901542",
"0.46858528",
"0.4673572",
"0.46702793",
"0.4670226",
"0.46646938",
"0.465881",
"0.46433723",
"0.46159992",
"0.4615399",
"0.46113056",
"0.46060926",
"0.46056873",
"0.46029586",
"0.4597897",
"0.4597476",
"0.4595048",
"0.45825803",
"0.45781976",
"0.45779172",
"0.4577041",
"0.45683062",
"0.45657587",
"0.45513746",
"0.4539303",
"0.45371786",
"0.4531978",
"0.45210877",
"0.45189297",
"0.45017552",
"0.44990456",
"0.44980225",
"0.4494794",
"0.44904694",
"0.4489835",
"0.4489498",
"0.4488719",
"0.44840518",
"0.44794717",
"0.4476287",
"0.44736183",
"0.44671744",
"0.44669977",
"0.44660595",
"0.44633162",
"0.44612607",
"0.44554475",
"0.44532654",
"0.4452724",
"0.4452724",
"0.44516352",
"0.44491354"
]
| 0.5760731 | 2 |
Get all extra fields, including unparseable ones. | private ZipExtraField[] getAllExtraFieldsNoCopy() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2");
if (extraFields == null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "e10aa90d-39cc-4c84-8523-509199acd725");
return getUnparseableOnly();
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "6f46f8f8-2f8d-4363-895b-687a45be39ed");
return unparseableExtra != null ? getMergedFields() : extraFields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnparseableExtraFieldData getUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a945f49c-9e0e-4d61-96d9-614c3b2abe51\");\n return unparseableExtra;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDExposureField[] getFields();",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"java.lang.String getFields();",
"@JsonAnyGetter\n public Map<String, String> otherFields() {\n return unknownFields;\n }",
"public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }",
"public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}",
"public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"@NonNull\n public Map<String, byte[]> getAdditionalProperties() {\n Map<String, byte[]> additionalProps = new HashMap<>();\n\n for (KeyValuePair pair : mProto.additionalProps) {\n byte[] value = pair.value != null ? pair.value.toByteArray() : null;\n additionalProps.put(pair.name, value);\n }\n\n return additionalProps;\n }",
"public Map<String, String> getExtraHeaders() {\n return Collections.unmodifiableMap(extraHeaders);\n }",
"public String[] getAllFilledAnnotationFields();",
"public Map<Object, Object> getExtraMap() {\n return extraMap;\n }",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public VersionedMap getExtra ()\n {\n return extra;\n }",
"public static void getFields (Class<?> clazz, List<Field> addTo)\n {\n // first get the fields of the superclass\n Class<?> pclazz = clazz.getSuperclass();\n if (pclazz != null && !pclazz.equals(Object.class)) {\n getFields(pclazz, addTo);\n }\n \n // then reflect on this class's declared fields\n Field[] fields;\n try {\n fields = clazz.getDeclaredFields();\n } catch (SecurityException se) {\n System.err.println(\"Unable to get declared fields of \" + clazz.getName() + \": \" + se);\n fields = new Field[0];\n }\n \n // override the default accessibility check for the fields\n try {\n AccessibleObject.setAccessible(fields, true);\n } catch (SecurityException se) {\n // ah well, only publics for us\n }\n \n for (Field field : fields) {\n int mods = field.getModifiers();\n if (Modifier.isStatic(mods) || Modifier.isTransient(mods)) {\n continue; // skip static and transient fields\n }\n addTo.add(field);\n }\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"public Map<String, String> getFields() {\n return null;\n }",
"public String getFields() {\n return fields;\n }",
"@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }",
"private List<String> getExcludedFields() {\n List<String> temp = new ArrayList<>();\n temp.add(\"_rallyAPIMajor\");\n temp.add(\"_rallyAPIMinor\");\n temp.add(\"_ref\");\n temp.add(\"_refObjectUUID\");\n temp.add(\"_objectVersion\");\n temp.add(\"_refObjectName\");\n temp.add(\"ObjectUUID\");\n temp.add(\"VersionId\");\n temp.add(\"_type\");\n return temp;\n }",
"public List<String> readFields() throws IOException\n {\n List<String> fields = new ArrayList<String>();\n StringBuffer sb = new StringBuffer();\n String line = in.readLine();\n\n if (line == null)\n return null;\n\n if (line.length() == 0)\n {\n fields.add(line);\n return fields;\n }\n\n int i = 0;\n do\n {\n sb.setLength(0);\n if (i < line.length() && line.charAt(i) == textQualifier)\n {\n i = handleQuotedField(line, sb, ++i); // skip quote\n }\n else\n {\n i = handlePlainField(line, sb, i);\n }\n\n // Make sure the field name is trimmed before adding it\n fields.add(sb.toString().trim());\n i++;\n }\n while (i < line.length());\n\n return fields;\n }",
"private static HashSet<Field> getAllFields(Class<?> cls) {\n // First, let's get all the super classes.\n HashSet<Class<?>> ancestors = getInstrumentedAncestors(cls);\n\n // Then, let's get all the fields of these classes.\n HashSet<Field> allFields = new HashSet<>();\n for (Class<?> ancestor : ancestors) {\n Collections.addAll(allFields, ancestor.getDeclaredFields());\n }\n return allFields;\n }",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"public String getExtra() {\n Object ref = extra_;\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 extra_ = s;\n return s;\n }\n }",
"public Map<String,String> getAllCustomFields(final SessionContext ctx)\n\t{\n\t\tMap<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS);\n\t\treturn map != null ? map : Collections.EMPTY_MAP;\n\t}",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"public boolean hasExtra() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public Vector getAttributeFields() {\n\treturn attributeFields;\n }",
"public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@External(readonly = true)\n\tpublic List<String> get_metadata_fields(){\n\t\t\n\t\treturn this.METADATA_FIELDS;\n\t}",
"public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}",
"protected Map<String, Object> getAdditionalProperties()\n {\n return additionalProperties;\n }",
"public boolean hasExtra() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public Map<String, Object> getFields() {\n\t\treturn fields;\n\t}",
"public List<String> retornaFields() {\n\t\treturn data.retornaFields();\n\t}",
"List<Field> getFields();",
"@JsonAnyGetter\n public Map<String, Object> getAdditionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> getAdditionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> getAdditionalProperties() {\n return this.additionalProperties;\n }",
"@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGetField(i));\n }\n return cachedList;\n }",
"public Map<String, String> getFields() {\n return fields;\n }",
"public List<String> getNotExportedSearchableFields() {\n return Collections.unmodifiableList(notExportedSearchableFields);\n }",
"public static String[] getBasicFields() {\n\t\t\tList<String> basicFields = new ArrayList<>();\n\t\t\t\n\t\t\tfor(SearchField field : SearchField.values()) {\n\t\t\t\tbasicFields.add(field.field + \".basic\");\n\t\t\t}\n\t\t\t\n\t\t\treturn basicFields.toArray(new String[basicFields.size()]);\n\t\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"public ListaAttributi getExtra() {\r\n return this.extra;\r\n }",
"public org.datacontract.schemas._2004._07.ServiceSoap_UBL2__0_Models_Object.Extensible[] getExtras() {\n return extras;\n }",
"public static void getSuperFields(Class<?> clazz, ArrayList<Field> all_fields) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\t\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetSuperFields(clazz.getSuperclass(), all_fields);\n\t\t\n\t\treturn;\n\t}",
"@JsonAnyGetter\n public Map<String, Object> additionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> additionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> additionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> additionalProperties() {\n return this.additionalProperties;\n }",
"@JsonAnyGetter\n public Map<String, Object> additionalProperties() {\n return this.additionalProperties;\n }",
"public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }",
"protected Vector getUnmappedFields() {\r\n Vector fields = new Vector(1);\r\n if (isStoredInCache()) {\r\n fields.addElement(getWriteLockField());\r\n }\r\n return fields;\r\n }",
"@Override\r\n\tpublic Field[] getExcludedFields() {\n\t\treturn null;\r\n\t}",
"@Override public final DeclContext$Fields $DeclContext$Fields() { return DeclContext$Flds; }",
"public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();",
"@JsonAnyGetter\n\tpublic Map<String, Object> getAdditionalProperties() {\n\t\treturn this.additionalProperties;\n\t}",
"private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\n }",
"@JsonAnyGetter\n public Map<String, Object[]> otherFields() {\n return disciplineFields;\n }",
"public Set<String> getAdditionals() {\n\t\tif (additionals == null || additionals.isEmpty())\n\t\t\tadditionals = getAdditionalsFromMiapes();\n\t\tif (additionals != null && !additionals.isEmpty()) {\n\t\t\tfinal Set<String> ret = new THashSet<String>();\n\t\t\tfor (final String additional : additionals) {\n\t\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"additional\" + TAB + additional);\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}",
"public List<String> getExtraOpts() {\r\n \t\treturn extraOpts;\r\n \t}",
"com.google.protobuf.ByteString\n getExtraBytes();",
"Fields fields();",
"public Map<String,String> getAllCustomFields()\n\t{\n\t\treturn getAllCustomFields( getSession().getSessionContext() );\n\t}",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"AdditionalValuesType getAdditionalValues();",
"com.google.protobuf.ByteString getExtra();",
"public void removeUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c3763808-2050-4e13-a0c1-1c775bd5e0ee\");\n if (unparseableExtra == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4003f30c-e5f3-4c15-b6da-adb3b7a4a1a1\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c7621793-4ba2-47c3-8bce-7c8b5c05ed8e\");\n unparseableExtra = null;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"daca2b5a-ddf7-4a9f-b64f-153927dc0b18\");\n setExtra();\n }",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"public synchronized final Vector getFeatureExtractionParams() {\n return getParams(FEATURE_EXTRACTION);\n }",
"Map<String, Object> extras();",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"public DocumentationSchema getAdditionalProperties()\n\t{\n\t\treturn additionalProperties;\n\t}",
"ISourceField[] getFields();",
"public Map<String, String> getOriginalFields() {\r\n return Collections.unmodifiableMap(originalFields);\r\n }",
"com.google.protobuf.ByteString\n getField1213Bytes();",
"com.google.protobuf.ByteString\n getFieldsBytes();",
"private String[] findTagDataFields () {\n List<String> fieldVals = Util.newList();\n for (Field f : getClass().getFields()) {\n if (f.getName().startsWith(\"TAG_\")) { // grab TAG field\n try {\n fieldVals.add((String)f.get(this));\n } catch (IllegalArgumentException e) { // ignore\n } catch (IllegalAccessException e) { // ignore\n }\n }\n }\n return fieldVals.toArray(new String[0]);\n }",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"List<Pair<String, Value>> fields();",
"public String getExtraOptions() {\n return this.extraOptions;\n }",
"com.google.protobuf.Struct getMetadataFields();",
"com.google.protobuf.ByteString\n getField1513Bytes();",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"com.google.protobuf.ByteString\n getField1216Bytes();",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"com.google.protobuf.ByteString\n getField1313Bytes();",
"@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}"
]
| [
"0.65227276",
"0.6228055",
"0.6132816",
"0.5983937",
"0.59094024",
"0.5818527",
"0.5730387",
"0.56713706",
"0.56684643",
"0.5653907",
"0.5648428",
"0.5645528",
"0.5604232",
"0.55972946",
"0.55700064",
"0.5560927",
"0.5532477",
"0.55256927",
"0.55246764",
"0.5516744",
"0.55109155",
"0.5500207",
"0.5489559",
"0.54857206",
"0.54811525",
"0.54792887",
"0.5477416",
"0.5474906",
"0.5467219",
"0.5464522",
"0.54531366",
"0.54497886",
"0.5435341",
"0.54315776",
"0.5431035",
"0.5424331",
"0.5422817",
"0.53963447",
"0.53961444",
"0.539543",
"0.53909236",
"0.5389157",
"0.5385795",
"0.53768706",
"0.53768706",
"0.53768706",
"0.5361138",
"0.5354878",
"0.53469265",
"0.534461",
"0.534096",
"0.53376406",
"0.5334514",
"0.53311116",
"0.53290904",
"0.53260577",
"0.5313408",
"0.5306685",
"0.5306685",
"0.5306685",
"0.5306685",
"0.5306685",
"0.530593",
"0.5305795",
"0.52946323",
"0.52911",
"0.5288064",
"0.5286455",
"0.528308",
"0.52762675",
"0.52625835",
"0.5258749",
"0.5257024",
"0.524594",
"0.52454704",
"0.52430665",
"0.52306676",
"0.5222191",
"0.5217949",
"0.52029365",
"0.5201935",
"0.51971686",
"0.51869345",
"0.5186249",
"0.5171793",
"0.51697874",
"0.51666605",
"0.51551044",
"0.51523924",
"0.51393825",
"0.5121191",
"0.51045847",
"0.50998145",
"0.50990176",
"0.5090289",
"0.5089152",
"0.5089049",
"0.5081378",
"0.50780433",
"0.5077012"
]
| 0.7200809 | 0 |
Adds an extra field replacing an already present extra field of the same type. If no extra field of the same type exists, the field will be added as last field. | public void addExtraField(final ZipExtraField ze) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "04a0a86a-8034-4044-aeed-cebe7016e2d1");
if (ze instanceof UnparseableExtraFieldData) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "6b9a9172-8ea2-4aed-8433-17b19d1a9891");
unparseableExtra = (UnparseableExtraFieldData) ze;
} else {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c4c62a77-912a-4047-b4bc-d8a05e95bc86");
if (extraFields == null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "450fc98b-d668-4300-b141-2c5907baab75");
extraFields = new ZipExtraField[] { ze };
} else {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "5d8f1c11-1f27-4f98-923b-c42685d35e95");
if (getExtraField(ze.getHeaderId()) != null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "7cc8a651-6175-4ec7-ab56-688a497910a8");
removeExtraField(ze.getHeaderId());
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "aa062502-071a-4ff6-8692-1c1202b14fec");
final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "e30c5825-289a-4c05-a5ec-8c2d6bec09e8");
zipExtraFields[zipExtraFields.length - 1] = ze;
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "3f326300-d61d-4afa-ae59-fe45855b45a6");
extraFields = zipExtraFields;
}
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "944dff45-ab9b-4e44-b913-045a4e38da7a");
setExtra();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);",
"public void addField(EAdField<?> var) {\r\n\t\tfields.add(var);\r\n\t}",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"Builder addAdditionalType(String value);",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }",
"@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}",
"public AnnotatedTypeBuilder<X> addToField(AnnotatedField<? super X> field, Annotation annotation) {\n\t\treturn addToField(field.getJavaMember(), annotation);\n\t}",
"public void addAttributeFor(Field field) {\r\n fieldToUseAsAttribute.add(field);\r\n }",
"@Override\r\n public boolean add(Object e) {\r\n if (!(e instanceof Extra))\r\n return false;\r\n if (extras.contains(e))\r\n return false;\r\n if (extras.size() == MAX_EXTRAS)\r\n return false;\r\n extras.add((Extra) e);\r\n return true;\r\n }",
"public void addAttribute( final ExtraAttribute attribute )\n {\n m_extraAttributes.add( attribute );\n }",
"public AnnotatedTypeBuilder<X> addToField(Field field, Annotation annotation) {\n\t\tif (fields.get(field) == null) {\n\t\t\tfields.put(field, new AnnotationBuilder());\n\t\t}\n\t\tfields.get(field).add(annotation);\n\t\treturn this;\n\t}",
"public void addField(FieldRequest field) {\n\t\tfields.add(field);\n\t}",
"public void removeExtraField(final ZipShort type) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"70852260-a6a7-4a20-80e7-2845726cb793\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1cdd41c5-cc00-4c20-a3c8-6a48c9b2e38f\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"2fbc1b80-8711-4927-9154-0594662dc65e\");\n final List<ZipExtraField> newResult = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8b80c44d-009c-4470-aff3-4763097b9f9a\");\n for (final ZipExtraField extraField : extraFields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6be62b96-f85a-4404-b95f-7cac16120acf\");\n if (!type.equals(extraField.getHeaderId())) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6215ed97-256f-4341-8f39-b74bd2fe2749\");\n newResult.add(extraField);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"189c7f29-fa24-4106-be1a-8b02c592ebaa\");\n if (extraFields.length == newResult.size()) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c986e14c-19c0-4d38-9f2d-d08e6c1c6f1b\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f10934cb-d037-4768-bb8a-7ad1da158142\");\n extraFields = newResult.toArray(new ZipExtraField[newResult.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7235b8ea-0326-4ddb-afac-2da6c4483bd7\");\n setExtra();\n }",
"public ZipExtraField getExtraField(final ZipShort type) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35bc23b-cd1d-468b-b68e-692eafa99687\");\n if (extraFields != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1b755abf-52e3-4078-bdc6-5e4f6d2c1b92\");\n for (final ZipExtraField extraField : extraFields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a06856ff-f7ac-4fa2-a2ea-3a766b8fd17b\");\n if (type.equals(extraField.getHeaderId())) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cf217f83-0921-4e72-8141-ee4971b0fc6f\");\n return extraField;\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b03a283c-6bc4-4892-b1c9-06986a4697b2\");\n return null;\n }",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"public void addField(IdentifierProperties field) {\n fields.add(field);\n }",
"public void addToFields(entity.APDExposureField element);",
"public void addField(FieldDeclaration field) {\n m_classBuilder.addField(field);\n }",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"private String addExtra() {\n\t\t// One Parameter: ExtraName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|extra:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}",
"public <T>void addFieldValue(Field<T> field, T value)\n\t{\n\t\t this.addKeyValue(field.getAPIName(), value);\n\n\t}",
"public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}",
"InstrumentedType withField(FieldDescription.Token token);",
"private void mergeExtraFields(final ZipExtraField[] f, final boolean local) throws ZipException {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4660ef72-97af-4c77-a8c0-451c0176ea1f\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fc349413-df04-4074-b3da-fdacb54199ad\");\n setExtraFields(f);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4b996740-6cfc-4dbf-b3af-764a31cbfe77\");\n for (final ZipExtraField element : f) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bacdc8b5-2a38-484f-aa61-b042212a08c4\");\n ZipExtraField existing;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"d08c42a0-26d8-46ea-bb0e-aa534ce634f2\");\n if (element instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e96717ff-128b-4b11-aa83-243e5cdd44ba\");\n existing = unparseableExtra;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"611a8005-5c56-445f-b013-ae0feef0b77f\");\n existing = getExtraField(element.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cc9ae2dd-d591-403f-bfc0-3565f7413957\");\n if (existing == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b3059034-a6ec-4f5c-92ab-02329c1e2936\");\n addExtraField(element);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"9cf4a3a6-31a3-468f-b1d1-797ef9894394\");\n if (local) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"32f3d1f3-8ae4-4c18-8839-1c1fb6a4aaa5\");\n final byte[] b = element.getLocalFileDataData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"532ad3fc-c060-4f5d-9f0e-6b3aca602760\");\n existing.parseFromLocalFileData(b, 0, b.length);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"31ca8fd7-a4ff-49df-88a1-30617762fb79\");\n final byte[] b = element.getCentralDirectoryData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f2794a07-51ae-4509-8ae5-c37f1cff97cd\");\n existing.parseFromCentralDirectoryData(b, 0, b.length);\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0f523d07-2102-4c81-b83c-cf863a880764\");\n setExtra();\n }\n }",
"public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"@attribute(value = \"\", required = false)\t\r\n\tpublic void addImageField(ImageField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public void addSubField(final SubField sub){\n\t\tthis.subfields.put(sub.getSubTag(), sub);\n\t}",
"static boolean includeFieldAnnotations( AnnotationToXML atx, TypeDeclaration typeDecl, String additionalAnnotation )\n {\n boolean hasFieldAnnotations = false;\n\n if (! (typeDecl instanceof ClassDeclaration)) {\n return hasFieldAnnotations;\n }\n\n ClassDeclaration jclass = (ClassDeclaration) typeDecl;\n FieldDeclaration[] fields = jclass.getFields();\n\n for (int i = 0; i < fields.length; i++) {\n AnnotationInstance fieldAnnotation =\n CompilerUtils.getAnnotation(fields[i], JpfLanguageConstants.SHARED_FLOW_FIELD_TAG_NAME);\n\n if (fieldAnnotation == null) {\n fieldAnnotation = CompilerUtils.getAnnotationFullyQualified(fields[i], CONTROL_ANNOTATION);\n }\n\n if (fieldAnnotation == null && additionalAnnotation != null) {\n fieldAnnotation = CompilerUtils.getAnnotation(fields[i], additionalAnnotation);\n }\n\n if (fieldAnnotation != null) {\n atx.include(fields[i], fieldAnnotation);\n hasFieldAnnotations = true;\n }\n }\n\n ClassType superclass = jclass.getSuperclass();\n boolean superclassHasFieldAnns = false;\n if (superclass != null) {\n superclassHasFieldAnns = includeFieldAnnotations(atx, CompilerUtils.getDeclaration(superclass), additionalAnnotation);\n }\n\n return hasFieldAnnotations || superclassHasFieldAnns;\n }",
"public void addField (String label, String field) {\n addField (label, field, \"\");\n }",
"public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}",
"public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }",
"public void addField(BaseField newf)\n\t{\n\t\tif(m_baseList == null)\n\t\t\tm_baseList = new ArrayList<BaseField>();\n\t\tm_baseList.add(newf);\n\t}",
"public void addField(Field f) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage();\n\t\t}\n\t\tgetSwiftMessage().getBlock4().add(f);\n\t}",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addNumberField(NumberField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public void addOtherInfo(String key, Object value) {\n this.otherInfo.put(key, value);\n }",
"void shiftAndAddToRight(BitField fieldToAddToTheRight);",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"@Override\n public FloatType addToFloat(FloatType FloatType) {\n double float1 = this.asFloat().getValue();\n double float2 = FloatType.getValue();\n return TypeFactory.getFloatType(float1 + float2);\n }",
"public void addIfield(String i){\n\t\tifield.add(i);\n\t}",
"void addFieldBinding( FieldBinding binding );",
"protected void addAttribute(AttributeField af) { \n\tthis.attributeFields.addElement(af);\n }",
"public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public void addExtraHeader(final String name, final String value) {\n extraHeaders.put(name, value);\n }",
"@Override\n\tpublic <E> void add(Attr<E> newAttr) {\n\t\t\n\t}",
"private static int addField(ClassLoader loader, FieldInfo m, Set<FieldProxyInfo> builder, Class<?> oldClass) {\n int fieldNo = FieldReferenceDataStore.instance().getFieldNo(m.getName(), m.getDescriptor());\n String proxyName = ProxyDefinitionStore.getProxyName();\n ClassFile proxy = new ClassFile(false, proxyName, \"java.lang.Object\");\n ClassDataStore.instance().registerProxyName(oldClass, proxyName);\n FieldAccessor accessor = new FieldAccessor(oldClass, fieldNo, (m.getAccessFlags() & AccessFlag.STATIC) != 0);\n ClassDataStore.instance().registerFieldAccessor(proxyName, accessor);\n proxy.setAccessFlags(AccessFlag.PUBLIC);\n FieldInfo newField = new FieldInfo(proxy.getConstPool(), m.getName(), m.getDescriptor());\n newField.setAccessFlags(m.getAccessFlags());\n\n copyFieldAttributes(m, newField);\n\n try {\n proxy.addField(newField);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n DataOutputStream dos = new DataOutputStream(bytes);\n try {\n proxy.write(dos);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n ProxyDefinitionStore.saveProxyDefinition(loader, proxyName, bytes.toByteArray());\n builder.add(new FieldProxyInfo(newField, proxyName, m.getAccessFlags()));\n } catch (DuplicateMemberException e) {\n // can't happen\n }\n return fieldNo;\n }",
"private void appendExtraAttributes( final Attributes attributes )\n {\n final Iterator iterator = m_extraAttributes.iterator();\n while( iterator.hasNext() )\n {\n final ExtraAttribute attribute =\n (ExtraAttribute)iterator.next();\n attributes.putValue( attribute.getName(),\n attribute.getValue() );\n }\n }",
"private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}",
"public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }",
"public void addLast(TypeHere x) {\n if (size == items.length) {\n resize(size + 1);\n }\n items[size] = x;\n size += 1;\n }",
"public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }",
"Builder addAdditionalType(URL value);",
"public void addField (String label, String field, String nada) {\n labels.add (label);\n if (! field.equals (nada)) {\n addLine (label + LABEL_SUFFIX + field);\n // System.out.println (\"TextBlock.addField field follows:\");\n // StringUtils.println (System.out, field);\n }\n }",
"private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }",
"public Builder setExtra(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n extra_ = value;\n onChanged();\n return this;\n }",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public void outAFirstField(AFirstField tmpNode) {\n LinkedList newList = new LinkedList();\n\n Object[] ids = tmpNode.getIdentifiers().toArray();\n \n // pair field name and type\n for (int i=0, n=ids.length; i<n; i++) {\n newList.add(new AOnefield((PType)tmpNode.getType().clone(),\n (TIdentifier)ids[i]));\n }\n tmpNode.replaceBy(new AField(newList));\n }",
"private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}",
"void addSameAs(Object newSameAs);",
"public void setExtra1(String extra1) {\n this.extra1 = extra1;\n }",
"void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mappedBy);",
"AlgOptTable extend( List<AlgDataTypeField> extendedFields );",
"public org.landxml.schema.landXML11.FieldNoteDocument.FieldNote addNewFieldNote()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FieldNoteDocument.FieldNote target = null;\r\n target = (org.landxml.schema.landXML11.FieldNoteDocument.FieldNote)get_store().add_element_user(FIELDNOTE$4);\r\n return target;\r\n }\r\n }",
"BigInteger getReplacedByField();",
"private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}",
"void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className\n );",
"public void overrideFieldType(Field field, Type type) {\n\t\tif (field == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"field\"));\n\t\t}\n\t\tif (type == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"type\"));\n\t\t}\n\t\tfieldTypes.put(field, type);\n\t}",
"public Result addAttrs(TypedEntry<?> e1) {\n return withAttrs(attrs.putAll(e1));\n }",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"public Extra(String name) {\n this.name = name;\n }",
"public void addOtherInfo(Map<String, Object> otherInfo) {\n this.otherInfo.putAll(otherInfo);\n }",
"@Test\r\n\tpublic void addNativeField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"nativeFields size should be 1\", 1, testObj.getNativeFieldsArray().length);\r\n\t}",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public final TField addField(final int x, final int y,\n final int width, final boolean fixed) {\n\n return new TField(this, x, y, width, fixed);\n }",
"public void addFieldLine(float extraBottomMargin) {\n LayoutInflater inflater = LayoutInflater.from(this);\n LinearLayout fieldLine = new LinearLayout(this);\n\n LinearLayout.LayoutParams fLParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,\n LinearLayout.LayoutParams.WRAP_CONTENT);\n fLParams.setMargins(0, (int) (fieldLineTopMargin - overlapMarginVertical),\n 0, (int) (fieldLineBottomMargin + extraBottomMargin - overlapMarginVertical));\n fLParams.gravity = Gravity.CENTER_HORIZONTAL;\n fieldLine.setLayoutParams(fLParams);\n fieldLine.setOrientation(LinearLayout.HORIZONTAL);\n fieldLine.setGravity(Gravity.CENTER);\n mainField.addView(fieldLine, 0);\n\n for (int i = 0; i < game.fieldSize; i++) {\n LinearLayout fieldCell = (LinearLayout) inflater.inflate(R.layout.field_cell, null);\n\n LinearLayout.LayoutParams fCParams = new LinearLayout.LayoutParams((int) fieldCellWidth, (int) fieldCellHeight);\n\n int left = i != 0 ? (int) fieldCellLeftMargin : (int) firstCellLeftMargin;\n int right = i != game.fieldSize - 1 ? (int) fieldCellRightMargin : (int) lastCellRightMargin;\n fCParams.setMargins(left, (int) overlapMarginVertical,\n right,\n (int) (overlapMarginVertical));\n\n fieldCell.setLayoutParams(fCParams);\n fieldCell.setBackgroundResource(R.drawable.field_cell);\n fieldCell.setId(i);\n\n fieldLine.addView(fieldCell);\n }\n\n activeFieldLine = fieldLine;\n }",
"private void processAdditionalAnnotation(AnnotationMirror annotation) {\n\t\tstack.push(elementUtils.getElementValuesWithDefaults(annotation));\n\t\tElement element = annotation.getAnnotationType().asElement();\n\t\tprocessElement(element);\n\t\tstack.pop();\n\t}",
"public void setExtra2(String extra2) {\n this.extra2 = extra2;\n }",
"public boolean addField(Object pID, TypeField pTypeField) {\n\t\t\treturn this.addElement(pID, pTypeField);\n\t\t}",
"public void addColumn(final Column<?> column) {\n Preconditions.checkState(!readOnly, \"Cannot add more data to a read only concat column\");\n Preconditions.checkArgument(column.getType() == getType(), \"cannot append a type %s to a column of type %s\", column\n .getType(), getType());\n if (column instanceof ConcatColumn) {\n for (Column<?> c : ((ConcatColumn<?>) column).columnIds.values()) {\n addColumn(c);\n }\n } else {\n columnIds.put(numTuples, column);\n numTuples += column.size();\n }\n }",
"public void addAttribute(String nodeType, Attribute a)\r\n {\r\n\tfinal NodeTypeHolder nt = ntMap.get(nodeType);\r\n\tnt.getAttributes().add(a);\r\n\t\r\n\t// Synchronize all Nodes of this type to have the new field.\r\n\tfor (final Node node : nt.getNodes())\r\n\t node.addValues();\r\n }",
"Pair<String, String> getAdditionalAttribute();",
"protected void addField(FieldEditor editor) {\n\t\tif (fields == null) {\n\t\t\tfields = new ArrayList<FieldEditor>();\n\t\t}\n\t\t// Set the actual preference name based on the current selection\n\t\t// in the Kie Navigator tree view. The preference name is constructed\n\t\t// from the path to the selected tree node by getPreferenceName().\n\t\tString name = editor.getPreferenceName();\n\t\teditor.setPreferenceName(getPreferenceName(name));\n\t\tfields.add(editor);\n\t}",
"void putField(String fieldName, Type type, NQJVarDecl field);",
"protected Item addExtensions(Item item) {\n // this can happen if the fields extension was used but properties were not included\n if (item.getProperties() == null) {\n return item;\n }\n\n Class propertiesClass = item.getProperties().getClass();\n if (cache.containsKey(propertiesClass)) {\n return item.stacExtensions(cache.get(propertiesClass));\n }\n\n Set<String> extensions = new HashSet<>();\n Class[] interfaces = propertiesClass.getInterfaces();\n for (Class clazz : interfaces) {\n try {\n Field prefixField = clazz.getDeclaredField(\"EXTENSION_PREFIX\");\n if (prefixField != null) {\n String prefix = (String) prefixField.get(item.getProperties());\n extensions.add(prefix);\n }\n } catch (Exception e) {\n // field doesn't exist, do nothing\n }\n }\n cache.put(propertiesClass, extensions);\n item.setStacExtensions(extensions);\n return item;\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"void addFullHadith(Object newFullHadith);",
"void addIsPersonType(Integer newIsPersonType);",
"void addHadithNo(Object newHadithNo);",
"@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }",
"void addAttribute(String attrName, Attribute<?> newAttr);",
"private void addAtom(String newAtomType, IAtom otherConnectingAtom, Order bondOrder, int hydrogenCount)\n {\n //Create the new atom and bond.\n Atom newAtom = new Atom(newAtomType);\n newAtom.setHydrogenCount(hydrogenCount);\n Bond newBond = new Bond(newAtom, otherConnectingAtom, bondOrder);\n \n //Add the new atom and bond to the molecule.\n currentMolecule.addAtom(newAtom);\n currentMolecule.addBond(newBond);\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();",
"public void addExtraPieces(String[] temp) {\n\t\ttemp[0] += \"Extra\";\n\t\ttemp[temp.length - 2] = \"0\"; // price = 0\n\n\t\tString[][] tempArr = new String[this.foundRequest.length][this.foundRequest[0].length];\n\t\tSystem.arraycopy(foundRequest, 0, tempArr, 0, this.foundRequest.length); // stores the original value of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// foundRequest into a new array\n\n\t\tthis.foundRequest = new String[this.foundRequest.length + 1][this.foundRequest[0].length]; // clears the array\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and add an\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// element space\n\n\t\tint i = 0;\n\t\tfor (String[] row : tempArr) {\n\t\t\tSystem.arraycopy(row, 0, this.foundRequest[i++], 0, row.length); // copies each element in temp to new found\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// request\n\t\t}\n\t\tSystem.arraycopy(temp, 0, this.foundRequest[i], 0, temp.length); // adds the extra piece to the array\n\t}",
"public void attach(T e) {\n\t\tif (!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(null, first));\n\t\t\tthis.get(first).setFirst(e);\n\t\t\tfirst = e;\n\t\t}\n\t\telse this.add(e);\n\t}",
"public Result addAttrs(TypedEntry<?> e1, TypedEntry<?> e2) {\n return withAttrs(attrs.putAll(e1, e2));\n }"
]
| [
"0.5933967",
"0.57739997",
"0.5717085",
"0.5674961",
"0.5670073",
"0.5585326",
"0.556507",
"0.54828215",
"0.5451322",
"0.5384308",
"0.5345417",
"0.524952",
"0.52480847",
"0.5231458",
"0.5204361",
"0.51552165",
"0.513273",
"0.5092516",
"0.50762373",
"0.5058072",
"0.50295174",
"0.5002191",
"0.49974215",
"0.49870786",
"0.49860436",
"0.4985765",
"0.49732795",
"0.49248168",
"0.49138543",
"0.49000487",
"0.48872942",
"0.48807",
"0.4878485",
"0.4876747",
"0.4873902",
"0.48223484",
"0.47974402",
"0.478702",
"0.4759176",
"0.47501516",
"0.47452113",
"0.47219926",
"0.4721172",
"0.4720178",
"0.47000954",
"0.4653815",
"0.4650127",
"0.4627496",
"0.46227896",
"0.4622086",
"0.4612032",
"0.46111637",
"0.45970094",
"0.4553884",
"0.455333",
"0.45463037",
"0.45414928",
"0.45278406",
"0.45213735",
"0.4513154",
"0.4507404",
"0.45024458",
"0.4493428",
"0.44807205",
"0.44758642",
"0.4473884",
"0.44735146",
"0.44475263",
"0.44457635",
"0.44434083",
"0.44411874",
"0.44351748",
"0.44200653",
"0.44063336",
"0.43934327",
"0.43925673",
"0.4392491",
"0.43924174",
"0.43910336",
"0.438244",
"0.4381613",
"0.43806297",
"0.43806204",
"0.43806112",
"0.43795642",
"0.43658125",
"0.4362867",
"0.43584943",
"0.43477446",
"0.43322656",
"0.43260705",
"0.43202543",
"0.4315984",
"0.43154913",
"0.43005198",
"0.42944223",
"0.42899185",
"0.4285584",
"0.428001",
"0.4279485"
]
| 0.58375126 | 1 |
Adds an extra field replacing an already present extra field of the same type. The new extra field will be the first one. | public void addAsFirstExtraField(final ZipExtraField ze) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "4c28d4a6-8986-40c6-b210-d044aab8251a");
if (ze instanceof UnparseableExtraFieldData) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "3d9f9c08-e83a-436a-a8e6-86f86bd970af");
unparseableExtra = (UnparseableExtraFieldData) ze;
} else {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c35acbb6-3608-4438-9a3b-2e13d04a75a3");
if (getExtraField(ze.getHeaderId()) != null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "11874c15-028a-440f-8a51-54f6de7d8834");
removeExtraField(ze.getHeaderId());
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "1eda37ab-9698-47a7-98da-b090770a9fd5");
final ZipExtraField[] copy = extraFields;
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "52861454-df58-45a4-a4ea-fadccf33506e");
final int newLen = extraFields != null ? extraFields.length + 1 : 1;
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "bd7052b3-7eb3-4bec-8203-290549716189");
extraFields = new ZipExtraField[newLen];
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "f4f61f84-b9ec-4ec0-b697-37d032a7a8fb");
extraFields[0] = ze;
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "86004d7e-add5-4495-b688-e71892b6f3ee");
if (copy != null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "4e30f42c-8c61-4810-b892-2d8b24ce71f8");
System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);
}
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "74b18f9f-5af2-497f-a1b9-1aaa00af7a4f");
setExtra();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public void addField(EAdField<?> var) {\r\n\t\tfields.add(var);\r\n\t}",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"public void removeExtraField(final ZipShort type) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"70852260-a6a7-4a20-80e7-2845726cb793\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1cdd41c5-cc00-4c20-a3c8-6a48c9b2e38f\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"2fbc1b80-8711-4927-9154-0594662dc65e\");\n final List<ZipExtraField> newResult = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8b80c44d-009c-4470-aff3-4763097b9f9a\");\n for (final ZipExtraField extraField : extraFields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6be62b96-f85a-4404-b95f-7cac16120acf\");\n if (!type.equals(extraField.getHeaderId())) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6215ed97-256f-4341-8f39-b74bd2fe2749\");\n newResult.add(extraField);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"189c7f29-fa24-4106-be1a-8b02c592ebaa\");\n if (extraFields.length == newResult.size()) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c986e14c-19c0-4d38-9f2d-d08e6c1c6f1b\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f10934cb-d037-4768-bb8a-7ad1da158142\");\n extraFields = newResult.toArray(new ZipExtraField[newResult.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7235b8ea-0326-4ddb-afac-2da6c4483bd7\");\n setExtra();\n }",
"@Override\r\n public boolean add(Object e) {\r\n if (!(e instanceof Extra))\r\n return false;\r\n if (extras.contains(e))\r\n return false;\r\n if (extras.size() == MAX_EXTRAS)\r\n return false;\r\n extras.add((Extra) e);\r\n return true;\r\n }",
"private String addExtra() {\n\t\t// One Parameter: ExtraName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|extra:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}",
"public void addAttributeFor(Field field) {\r\n fieldToUseAsAttribute.add(field);\r\n }",
"public void addAttribute( final ExtraAttribute attribute )\n {\n m_extraAttributes.add( attribute );\n }",
"Builder addAdditionalType(String value);",
"private void mergeExtraFields(final ZipExtraField[] f, final boolean local) throws ZipException {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4660ef72-97af-4c77-a8c0-451c0176ea1f\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fc349413-df04-4074-b3da-fdacb54199ad\");\n setExtraFields(f);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4b996740-6cfc-4dbf-b3af-764a31cbfe77\");\n for (final ZipExtraField element : f) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bacdc8b5-2a38-484f-aa61-b042212a08c4\");\n ZipExtraField existing;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"d08c42a0-26d8-46ea-bb0e-aa534ce634f2\");\n if (element instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e96717ff-128b-4b11-aa83-243e5cdd44ba\");\n existing = unparseableExtra;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"611a8005-5c56-445f-b013-ae0feef0b77f\");\n existing = getExtraField(element.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cc9ae2dd-d591-403f-bfc0-3565f7413957\");\n if (existing == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b3059034-a6ec-4f5c-92ab-02329c1e2936\");\n addExtraField(element);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"9cf4a3a6-31a3-468f-b1d1-797ef9894394\");\n if (local) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"32f3d1f3-8ae4-4c18-8839-1c1fb6a4aaa5\");\n final byte[] b = element.getLocalFileDataData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"532ad3fc-c060-4f5d-9f0e-6b3aca602760\");\n existing.parseFromLocalFileData(b, 0, b.length);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"31ca8fd7-a4ff-49df-88a1-30617762fb79\");\n final byte[] b = element.getCentralDirectoryData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f2794a07-51ae-4509-8ae5-c37f1cff97cd\");\n existing.parseFromCentralDirectoryData(b, 0, b.length);\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0f523d07-2102-4c81-b83c-cf863a880764\");\n setExtra();\n }\n }",
"public AnnotatedTypeBuilder<X> addToField(AnnotatedField<? super X> field, Annotation annotation) {\n\t\treturn addToField(field.getJavaMember(), annotation);\n\t}",
"public ZipExtraField getExtraField(final ZipShort type) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35bc23b-cd1d-468b-b68e-692eafa99687\");\n if (extraFields != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1b755abf-52e3-4078-bdc6-5e4f6d2c1b92\");\n for (final ZipExtraField extraField : extraFields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a06856ff-f7ac-4fa2-a2ea-3a766b8fd17b\");\n if (type.equals(extraField.getHeaderId())) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cf217f83-0921-4e72-8141-ee4971b0fc6f\");\n return extraField;\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b03a283c-6bc4-4892-b1c9-06986a4697b2\");\n return null;\n }",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}",
"public void addField(FieldRequest field) {\n\t\tfields.add(field);\n\t}",
"public void addToFields(entity.APDExposureField element);",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"public void setExtra1(String extra1) {\n this.extra1 = extra1;\n }",
"InstrumentedType withField(FieldDescription.Token token);",
"public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }",
"public void addField(IdentifierProperties field) {\n fields.add(field);\n }",
"public AnnotatedTypeBuilder<X> addToField(Field field, Annotation annotation) {\n\t\tif (fields.get(field) == null) {\n\t\t\tfields.put(field, new AnnotationBuilder());\n\t\t}\n\t\tfields.get(field).add(annotation);\n\t\treturn this;\n\t}",
"public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }",
"public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}",
"public void addExtraHeader(final String name, final String value) {\n extraHeaders.put(name, value);\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public Builder setExtra(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n extra_ = value;\n onChanged();\n return this;\n }",
"public void addField(FieldDeclaration field) {\n m_classBuilder.addField(field);\n }",
"public void addOtherInfo(String key, Object value) {\n this.otherInfo.put(key, value);\n }",
"void shiftAndAddToRight(BitField fieldToAddToTheRight);",
"public <T>void addFieldValue(Field<T> field, T value)\n\t{\n\t\t this.addKeyValue(field.getAPIName(), value);\n\n\t}",
"public void addField (String label, String field) {\n addField (label, field, \"\");\n }",
"public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}",
"Pair<String, String> getAdditionalAttribute();",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public void addSubField(final SubField sub){\n\t\tthis.subfields.put(sub.getSubTag(), sub);\n\t}",
"public void setExtra2(String extra2) {\n this.extra2 = extra2;\n }",
"public void outAFirstField(AFirstField tmpNode) {\n LinkedList newList = new LinkedList();\n\n Object[] ids = tmpNode.getIdentifiers().toArray();\n \n // pair field name and type\n for (int i=0, n=ids.length; i<n; i++) {\n newList.add(new AOnefield((PType)tmpNode.getType().clone(),\n (TIdentifier)ids[i]));\n }\n tmpNode.replaceBy(new AField(newList));\n }",
"BigInteger getReplacedByField();",
"private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}",
"private void appendExtraAttributes( final Attributes attributes )\n {\n final Iterator iterator = m_extraAttributes.iterator();\n while( iterator.hasNext() )\n {\n final ExtraAttribute attribute =\n (ExtraAttribute)iterator.next();\n attributes.putValue( attribute.getName(),\n attribute.getValue() );\n }\n }",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"static boolean includeFieldAnnotations( AnnotationToXML atx, TypeDeclaration typeDecl, String additionalAnnotation )\n {\n boolean hasFieldAnnotations = false;\n\n if (! (typeDecl instanceof ClassDeclaration)) {\n return hasFieldAnnotations;\n }\n\n ClassDeclaration jclass = (ClassDeclaration) typeDecl;\n FieldDeclaration[] fields = jclass.getFields();\n\n for (int i = 0; i < fields.length; i++) {\n AnnotationInstance fieldAnnotation =\n CompilerUtils.getAnnotation(fields[i], JpfLanguageConstants.SHARED_FLOW_FIELD_TAG_NAME);\n\n if (fieldAnnotation == null) {\n fieldAnnotation = CompilerUtils.getAnnotationFullyQualified(fields[i], CONTROL_ANNOTATION);\n }\n\n if (fieldAnnotation == null && additionalAnnotation != null) {\n fieldAnnotation = CompilerUtils.getAnnotation(fields[i], additionalAnnotation);\n }\n\n if (fieldAnnotation != null) {\n atx.include(fields[i], fieldAnnotation);\n hasFieldAnnotations = true;\n }\n }\n\n ClassType superclass = jclass.getSuperclass();\n boolean superclassHasFieldAnns = false;\n if (superclass != null) {\n superclassHasFieldAnns = includeFieldAnnotations(atx, CompilerUtils.getDeclaration(superclass), additionalAnnotation);\n }\n\n return hasFieldAnnotations || superclassHasFieldAnns;\n }",
"public void addField(BaseField newf)\n\t{\n\t\tif(m_baseList == null)\n\t\t\tm_baseList = new ArrayList<BaseField>();\n\t\tm_baseList.add(newf);\n\t}",
"public Extra(String name) {\n this.name = name;\n }",
"@Override\n\tpublic <E> void add(Attr<E> newAttr) {\n\t\t\n\t}",
"public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}",
"public void addIfield(String i){\n\t\tifield.add(i);\n\t}",
"void addFieldBinding( FieldBinding binding );",
"public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }",
"@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }",
"@attribute(value = \"\", required = false)\t\r\n\tpublic void addImageField(ImageField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"protected void addAttribute(AttributeField af) { \n\tthis.attributeFields.addElement(af);\n }",
"public ListaAttributi getExtra() {\r\n return this.extra;\r\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public void addExtraPieces(String[] temp) {\n\t\ttemp[0] += \"Extra\";\n\t\ttemp[temp.length - 2] = \"0\"; // price = 0\n\n\t\tString[][] tempArr = new String[this.foundRequest.length][this.foundRequest[0].length];\n\t\tSystem.arraycopy(foundRequest, 0, tempArr, 0, this.foundRequest.length); // stores the original value of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// foundRequest into a new array\n\n\t\tthis.foundRequest = new String[this.foundRequest.length + 1][this.foundRequest[0].length]; // clears the array\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and add an\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// element space\n\n\t\tint i = 0;\n\t\tfor (String[] row : tempArr) {\n\t\t\tSystem.arraycopy(row, 0, this.foundRequest[i++], 0, row.length); // copies each element in temp to new found\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// request\n\t\t}\n\t\tSystem.arraycopy(temp, 0, this.foundRequest[i], 0, temp.length); // adds the extra piece to the array\n\t}",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addNumberField(NumberField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"void addSameAs(Object newSameAs);",
"public void addField(Field f) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage();\n\t\t}\n\t\tgetSwiftMessage().getBlock4().add(f);\n\t}",
"public Builder setExtra(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n extra_ = value;\n onChanged();\n return this;\n }",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"void addFullHadith(Object newFullHadith);",
"private void processAdditionalAnnotation(AnnotationMirror annotation) {\n\t\tstack.push(elementUtils.getElementValuesWithDefaults(annotation));\n\t\tElement element = annotation.getAnnotationType().asElement();\n\t\tprocessElement(element);\n\t\tstack.pop();\n\t}",
"public String getExtra1() {\n return extra1;\n }",
"private static int addField(ClassLoader loader, FieldInfo m, Set<FieldProxyInfo> builder, Class<?> oldClass) {\n int fieldNo = FieldReferenceDataStore.instance().getFieldNo(m.getName(), m.getDescriptor());\n String proxyName = ProxyDefinitionStore.getProxyName();\n ClassFile proxy = new ClassFile(false, proxyName, \"java.lang.Object\");\n ClassDataStore.instance().registerProxyName(oldClass, proxyName);\n FieldAccessor accessor = new FieldAccessor(oldClass, fieldNo, (m.getAccessFlags() & AccessFlag.STATIC) != 0);\n ClassDataStore.instance().registerFieldAccessor(proxyName, accessor);\n proxy.setAccessFlags(AccessFlag.PUBLIC);\n FieldInfo newField = new FieldInfo(proxy.getConstPool(), m.getName(), m.getDescriptor());\n newField.setAccessFlags(m.getAccessFlags());\n\n copyFieldAttributes(m, newField);\n\n try {\n proxy.addField(newField);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n DataOutputStream dos = new DataOutputStream(bytes);\n try {\n proxy.write(dos);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n ProxyDefinitionStore.saveProxyDefinition(loader, proxyName, bytes.toByteArray());\n builder.add(new FieldProxyInfo(newField, proxyName, m.getAccessFlags()));\n } catch (DuplicateMemberException e) {\n // can't happen\n }\n return fieldNo;\n }",
"public String getExtra() {\n Object ref = extra_;\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 extra_ = s;\n return s;\n }\n }",
"private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}",
"void addHadithNo(Object newHadithNo);",
"public Result addAttrs(TypedEntry<?> e1) {\n return withAttrs(attrs.putAll(e1));\n }",
"public void addField (String label, String field, String nada) {\n labels.add (label);\n if (! field.equals (nada)) {\n addLine (label + LABEL_SUFFIX + field);\n // System.out.println (\"TextBlock.addField field follows:\");\n // StringUtils.println (System.out, field);\n }\n }",
"AlgOptTable extend( List<AlgDataTypeField> extendedFields );",
"@Override\n public FloatType addToFloat(FloatType FloatType) {\n double float1 = this.asFloat().getValue();\n double float2 = FloatType.getValue();\n return TypeFactory.getFloatType(float1 + float2);\n }",
"public PaymentRequest setExtraAmount(BigDecimal extraAmount) {\r\n this.extraAmount = extraAmount;\r\n return this;\r\n }",
"public final void combine ( ExtAttributes eas )\n{\n for ( ExtAttr ea = eas.m_head; ea != null; ea = ea.next )\n add( ea.clone() );\n m_flags |= eas.m_flags;\n}",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"@Test\r\n\tpublic void addNativeField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"nativeFields size should be 1\", 1, testObj.getNativeFieldsArray().length);\r\n\t}",
"private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }",
"protected Item addExtensions(Item item) {\n // this can happen if the fields extension was used but properties were not included\n if (item.getProperties() == null) {\n return item;\n }\n\n Class propertiesClass = item.getProperties().getClass();\n if (cache.containsKey(propertiesClass)) {\n return item.stacExtensions(cache.get(propertiesClass));\n }\n\n Set<String> extensions = new HashSet<>();\n Class[] interfaces = propertiesClass.getInterfaces();\n for (Class clazz : interfaces) {\n try {\n Field prefixField = clazz.getDeclaredField(\"EXTENSION_PREFIX\");\n if (prefixField != null) {\n String prefix = (String) prefixField.get(item.getProperties());\n extensions.add(prefix);\n }\n } catch (Exception e) {\n // field doesn't exist, do nothing\n }\n }\n cache.put(propertiesClass, extensions);\n item.setStacExtensions(extensions);\n return item;\n }",
"public void addFirst(Item x);",
"public String getExtra2() {\n return extra2;\n }",
"public PoiDetailRecExtraMsg(PoiDetailRecExtraMsg other) {\n if (other.isSetExtraDataMap()) {\n Map<String,String> __this__extraDataMap = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.extraDataMap.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__extraDataMap_copy_key = other_element_key;\n\n String __this__extraDataMap_copy_value = other_element_value;\n\n __this__extraDataMap.put(__this__extraDataMap_copy_key, __this__extraDataMap_copy_value);\n }\n this.extraDataMap = __this__extraDataMap;\n }\n }",
"public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }",
"int insertSelective(AttributeExtend record);",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void attach(T e) {\n\t\tif (!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(null, first));\n\t\t\tthis.get(first).setFirst(e);\n\t\t\tfirst = e;\n\t\t}\n\t\telse this.add(e);\n\t}",
"public Builder clearExtra() {\n bitField0_ = (bitField0_ & ~0x00000004);\n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"public DmcAttribute<?> addHsExtendedRef(SomeRelation value){\n DmcAttribute<?> attr = ((ExtendedRefHSDMO) core).addHsExtendedRef(value);\n return(attr);\n }",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"protected final void setExtraInfo(final String info) {\n\t\tif (info == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid extra info\");\n\t\t}\n\t\textras = info;\n\t}",
"public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public BigDecimal getExtraAmount() {\r\n return extraAmount;\r\n }",
"public void extendArray() {\n int index = size();\n Object[] temp = new Object[index + 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n AL = temp;\n }",
"abstract protected void addExtras();",
"@JsonAnySetter\n\tpublic void setAdditionalProperty(String name, Object value) {\n\t\tthis.additionalProperties.put(name, value);\n\t}",
"public void updateNonDynamicFields() {\n\n\t}",
"private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}"
]
| [
"0.6086974",
"0.58769584",
"0.5835101",
"0.54836136",
"0.53987426",
"0.53868514",
"0.5375003",
"0.53536904",
"0.5351829",
"0.53466934",
"0.5338265",
"0.5337411",
"0.5333761",
"0.5316872",
"0.52830887",
"0.52397704",
"0.5225954",
"0.5210063",
"0.5089417",
"0.505876",
"0.50290734",
"0.5009397",
"0.49677587",
"0.49590996",
"0.49563965",
"0.49534446",
"0.49265",
"0.4925066",
"0.4913889",
"0.48659986",
"0.47980994",
"0.4791405",
"0.47830302",
"0.47810084",
"0.47805414",
"0.47794038",
"0.47774374",
"0.47611254",
"0.47444135",
"0.4731961",
"0.47301552",
"0.47208533",
"0.47159377",
"0.47102317",
"0.4706508",
"0.46972153",
"0.4687521",
"0.46753594",
"0.4668274",
"0.46634626",
"0.4662102",
"0.4659862",
"0.4658187",
"0.46350774",
"0.46295273",
"0.46251795",
"0.46097258",
"0.45898795",
"0.45785537",
"0.4561292",
"0.45506668",
"0.45422626",
"0.45230195",
"0.4507699",
"0.44872713",
"0.44843298",
"0.44768104",
"0.44730303",
"0.44708237",
"0.4465278",
"0.44513106",
"0.44457826",
"0.4443477",
"0.44432962",
"0.44431528",
"0.44420505",
"0.44409928",
"0.44220024",
"0.44199997",
"0.44196385",
"0.44117868",
"0.44083825",
"0.4405328",
"0.43954802",
"0.43881688",
"0.43800393",
"0.43756106",
"0.4364888",
"0.4359008",
"0.43574458",
"0.43560988",
"0.43455982",
"0.43401375",
"0.43283123",
"0.43210033",
"0.43160814",
"0.43088812",
"0.43075305",
"0.43048018",
"0.4302424"
]
| 0.61379284 | 0 |
Remove an extra field. | public void removeExtraField(final ZipShort type) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "70852260-a6a7-4a20-80e7-2845726cb793");
if (extraFields == null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "1cdd41c5-cc00-4c20-a3c8-6a48c9b2e38f");
throw new java.util.NoSuchElementException();
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "2fbc1b80-8711-4927-9154-0594662dc65e");
final List<ZipExtraField> newResult = new ArrayList<ZipExtraField>();
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "8b80c44d-009c-4470-aff3-4763097b9f9a");
for (final ZipExtraField extraField : extraFields) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "6be62b96-f85a-4404-b95f-7cac16120acf");
if (!type.equals(extraField.getHeaderId())) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "6215ed97-256f-4341-8f39-b74bd2fe2749");
newResult.add(extraField);
}
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "189c7f29-fa24-4106-be1a-8b02c592ebaa");
if (extraFields.length == newResult.size()) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c986e14c-19c0-4d38-9f2d-d08e6c1c6f1b");
throw new java.util.NoSuchElementException();
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "f10934cb-d037-4768-bb8a-7ad1da158142");
extraFields = newResult.toArray(new ZipExtraField[newResult.size()]);
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "7235b8ea-0326-4ddb-afac-2da6c4483bd7");
setExtra();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeField(\n JavaSymbolName propertyName,\n JavaType className\n );",
"public void removeFromFields(entity.APDExposureField element);",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"void removeFieldBinding( FieldBinding binding );",
"public void deleteField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.DeleteField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n clientExecute(\"DELETE\", path, null, null, \"Error while deleting field\");\n } finally {\n span.finish();\n }\n }",
"@Override\r\n public boolean remove(Object e) {\r\n if (!(e instanceof Extra))\r\n return false;\r\n int index = extras.indexOf(e);\r\n if (index >= 0) {\r\n extras.remove(index);\r\n return true;\r\n } else\r\n return false;\r\n }",
"public void delete(Field field)\n\t{\n\t\tif (schema.get(field.getName())==null)\n\t\t\tthrow new IllegalArgumentException(\"No field exists: \"+field);\n\t\t\n\t\tSet<String> keys=new HashSet<String>(schema.keySet());\n\t\tfor (String s: keys)\n\t\t{\n\t\t\tField f=schema.get(s);\n\t\t\tif (f==field)\n\t\t\t{\n\t\t\t\tschema.remove(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfieldList.remove(field);\n\t}",
"public void removeMappingField(MappingField field) throws ModelException {\n try {\n fireVetoableChange(PROP_FIELDS, null, null);\n\n if (!getMappingFieldsInternal().remove(field)) {\n throw new ModelException(\n getMessageHelper().msg(\n \"mapping.element.element_not_removed\", field));\t// NOI18N\n }\n\n firePropertyChange(PROP_FIELDS, null, null);\n } catch (PropertyVetoException e) {\n throw new ModelVetoException(e);\n }\n }",
"public void removeFormField(FormField formField) {\n\t\tif (formFields != null) {\n\t\t\tthis.formFields.remove(formField);\n\t\t}\n\t}",
"AdditionalAttributes removeAttribute(String name);",
"public Builder clearExtra() {\n bitField0_ = (bitField0_ & ~0x00000004);\n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"public void removeExtraHeader(final String name) {\n extraHeaders.remove(name);\n }",
"public void removeFieldNote(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FIELDNOTE$4, i);\r\n }\r\n }",
"public AnnotatedTypeBuilder<X> removeFromField(AnnotatedField<? super X> field,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\treturn removeFromField(field.getJavaMember(), annotationType);\n\t}",
"public void removeField(String className, String name) \n\t{\n\t\tstoreViewState();\n\t\tproject.removeField(className, name);\n\t\tcheckStatus();\n\t}",
"@java.lang.Deprecated\n public void removeFromFields(gw.pl.persistence.core.Key elementID);",
"public Builder clearExtra() {\n \n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"public Builder removeField(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n internalGetMutableField().getMutableMap()\n .remove(key);\n return this;\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void removeExtraPanel() {\n\t\tif (extraPanel != null) {\n\t\t\tremove(extraPanel);\n\t\t\textraPanel = null;\n\t\t\tupdate();\n\t\t}\n\t}",
"void removeHadithNo(Object oldHadithNo);",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PlantillaFacturaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"@Override\r\n\tpublic void removeField() {\n\t\tusernameField.setText(\"\");\r\n\t\tpassField.setText(\"\");\r\n\t}",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,EvaluacionProveedorConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,UtilidadTipoPrecioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDireccionConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"void removeHasPart(WrappedIndividual oldHasPart);",
"@Override\n\tpublic void removeUpdate(DocumentEvent e) {\n\t\tvalidateNameField();\n\t}",
"public void removeFieldObject(final FieldObject object) {\n _fieldObjects.remove(object);\n\n if (object instanceof RedBird) {\n _mainPlayer.remove(object.getFieldObjectView());\n _birdsGroup.remove(object.getFieldObjectView());\n } else if (object instanceof Bird) {\n _birdsGroup.remove(object.getFieldObjectView());\n } else if (object instanceof Pig) {\n _pigsGroup.remove(object.getFieldObjectView());\n } else if (object instanceof WoodenObstacle) {\n _woodenObstacles.remove(object.getFieldObjectView());\n }\n\n fireObjectDeleted(object);\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LibroContableConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"void removeHadithBookNo(Object oldHadithBookNo);",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,FacturaPuntoVentaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PagosAutorizadosConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CierreCajaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"@Test\n public void unlinkSingleField() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n doc.getRange().getFields().get(1).unlink();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"\\u0013 FILENAME \\\\* Caps \\\\* MERGEFORMAT \\u0014Fields.Docx\\u0015 Элементы указателя не найдены. \\u0013 LISTNUM LegalDefault \\u0015\\r\");\n }",
"public ArrayList<ArrayList<String>> removeField(ArrayList<ArrayList<String>> outer) {\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Which field would you like to delete?\");\r\n\t\tint choice = s.nextInt();\r\n\t\tArrayList<ArrayList<String>> list2 = new ArrayList<ArrayList<String>>(outer);\r\n\t\tlist2.get(choice-1).clear();\r\n\t\treturn list2;\r\n\t}",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CostoGastoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public AnnotatedTypeBuilder<X> removeFromField(Field field, Class<? extends Annotation> annotationType) {\n\t\tif (fields.get(field) == null) {\n\t\t\tthrow new IllegalArgumentException(\"field \" + field + \" not present on class \" + getJavaClass());\n\t\t} else {\n\t\t\tfields.get(field).remove(annotationType);\n\t\t}\n\t\treturn this;\n\t}",
"@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"@Override\n\tpublic String delete(Set<String> filterField) {\n\t\treturn null;\n\t}",
"public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,AnalisisTransaClienteConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"Form removeProperty(String key);",
"void removeHadithChapterNo(Object oldHadithChapterNo);",
"public Builder clearField1574() {\n \n field1574_ = getDefaultInstance().getField1574();\n onChanged();\n return this;\n }",
"public void removeFields(Bundles bundles, Set<String> to_remove) {\r\n // First, get rid of the the field from tablets\r\n Iterator<Tablet> it_tab = bundles.tabletIterator();\r\n while (it_tab.hasNext()) { it_tab.next().removeFields(to_remove); }\r\n // Fix up the global state\r\n /* // The problem with the following code is that it leaves a gap in the field names because of the array that is used to hold the field names (flds)...\r\n // Removing this code fixes that problem... but will continue to show the user those field names in the gui...\r\n Iterator<String> it_fld = to_remove.iterator(); while (it_fld.hasNext()) {\r\n String fld = it_fld.next(); int fld_i = flds_lu.get(fld);\r\n flds_lu.remove(fld);\r\n fld_dts.remove(fld_i);\r\n }\r\n */\r\n\r\n // - Run a cleanse to get rid of more info\r\n Set<Bundles> as_set = new HashSet<Bundles>(); as_set.add(bundles); cleanse(as_set);\r\n }",
"public void tagAsRemoved() {\n\t levelOfRemoval ++;\n\t}",
"public Builder clearField1543() {\n \n field1543_ = getDefaultInstance().getField1543();\n onChanged();\n return this;\n }",
"void removeHadithVolumeNo(Object oldHadithVolumeNo);",
"void removeHadithReferenceNo(Object oldHadithReferenceNo);",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"void removePickDetail(Question question);",
"void removeFullHadith(Object oldFullHadith);",
"@Override\n protected void removeMember() {\n }",
"public void removeMappingFields(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MAPPINGFIELDS$28, i);\n }\n }",
"BigInteger getReplacedByField();",
"@Test\n public void removeFields() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.insertField(\" DATE \\\\@ \\\"dddd, d MMMM yyyy\\\" \");\n builder.insertField(\" TIME \");\n builder.insertField(\" REVNUM \");\n builder.insertField(\" AUTHOR \\\"John Doe\\\" \");\n builder.insertField(\" SUBJECT \\\"My Subject\\\" \");\n builder.insertField(\" QUOTE \\\"Hello world!\\\" \");\n doc.updateFields();\n\n FieldCollection fields = doc.getRange().getFields();\n\n Assert.assertEquals(6, fields.getCount());\n\n // Below are four ways of removing fields from a field collection.\n // 1 - Get a field to remove itself:\n fields.get(0).remove();\n Assert.assertEquals(5, fields.getCount());\n\n // 2 - Get the collection to remove a field that we pass to its removal method:\n Field lastField = fields.get(3);\n fields.remove(lastField);\n Assert.assertEquals(4, fields.getCount());\n\n // 3 - Remove a field from a collection at an index:\n fields.removeAt(2);\n Assert.assertEquals(3, fields.getCount());\n\n // 4 - Remove all the fields from the collection at once:\n fields.clear();\n Assert.assertEquals(0, fields.getCount());\n //ExEnd\n }",
"void removeHadithChapterIntro(Object oldHadithChapterIntro);",
"public void removeMember(Annotation member);",
"public Builder clearField1542() {\n \n field1542_ = getDefaultInstance().getField1542();\n onChanged();\n return this;\n }",
"public void remove(String fieldName) {\n Object key = null;\n for (Object[] param : paramList) {\n if (param[0].toString().equals(fieldName)) {\n key = param;\n break;\n }\n }\n paramList.remove(key);\n }",
"public void removeByTodoDouble(double todoDouble);",
"public void removeUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c3763808-2050-4e13-a0c1-1c775bd5e0ee\");\n if (unparseableExtra == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4003f30c-e5f3-4c15-b6da-adb3b7a4a1a1\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c7621793-4ba2-47c3-8bce-7c8b5c05ed8e\");\n unparseableExtra = null;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"daca2b5a-ddf7-4a9f-b64f-153927dc0b18\");\n setExtra();\n }",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"public Builder clearField1556() {\n \n field1556_ = getDefaultInstance().getField1556();\n onChanged();\n return this;\n }",
"public void removeAttribute(String name) {\n\tif (name == null)\n\t throw new NullPointerException(\"null arg!\");\n\tif (name != null) {\n\t int i = 0;\n\t for (i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField) \n\t\t this.attributeFields.elementAt(i);\n\t\tif (af.getAttribute().getName().equals(name)) break;\n\t }\n\t if (i < attributeFields.size())\n\t\tattributeFields.removeElementAt(i);\n\t}\n }",
"public Builder clearField1415() {\n \n field1415_ = getDefaultInstance().getField1415();\n onChanged();\n return this;\n }",
"Form removeElement(Element element);",
"void removeDeprecatedHadithNo(Object oldDeprecatedHadithNo);",
"public Builder clearField1277() {\n \n field1277_ = getDefaultInstance().getField1277();\n onChanged();\n return this;\n }",
"public Builder clearField1534() {\n \n field1534_ = getDefaultInstance().getField1534();\n onChanged();\n return this;\n }",
"public static base_response unset(nitro_service client, appfwconfidfield resource, String[] args) throws Exception{\n\t\tappfwconfidfield unsetresource = new appfwconfidfield();\n\t\tunsetresource.fieldname = resource.fieldname;\n\t\tunsetresource.url = resource.url;\n\t\treturn unsetresource.unset_resource(client,args);\n\t}",
"public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }",
"public Builder clearField1377() {\n \n field1377_ = getDefaultInstance().getField1377();\n onChanged();\n return this;\n }",
"public Builder clearField1356() {\n \n field1356_ = getDefaultInstance().getField1356();\n onChanged();\n return this;\n }",
"public void removeChild( ChildType child );",
"void removeHadithText(Object oldHadithText);",
"public static void dropColumn(Database adapter, DbTable table, DbField field) {\r\n if (table == null ||\r\n table.getT() == null || table.getT().length() == 0\r\n )\r\n return;\r\n\r\n if (field == null ||\r\n field.getName() == null || field.getName().length() == 0\r\n )\r\n return;\r\n\r\n String sql_ = \"ALTER TABLE \" + table.getT() + \" DROP COLUMN \" + field.getName();\r\n PreparedStatement ps = null;\r\n try {\r\n ps = adapter.getConnection().prepareStatement(sql_);\r\n ps.executeUpdate();\r\n }\r\n catch (SQLException e) {\r\n throw new DbRevisionException(e);\r\n }\r\n finally {\r\n DbUtils.close(ps);\r\n ps = null;\r\n }\r\n }",
"void removeFlight(Flight flight);",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"private void clearMetaInfo(String fieldName)\r\n\t{\r\n\t amiMap.remove(fieldName);\r\n\t}",
"public Builder clearField1577() {\n \n field1577_ = getDefaultInstance().getField1577();\n onChanged();\n return this;\n }",
"void removeHasAge(Integer oldHasAge);",
"public void addField (String label, String field) {\n addField (label, field, \"\");\n }",
"public Builder clearField1443() {\n \n field1443_ = getDefaultInstance().getField1443();\n onChanged();\n return this;\n }",
"public Builder clearField1546() {\n \n field1546_ = getDefaultInstance().getField1546();\n onChanged();\n return this;\n }",
"void removeStartingHadithNo(Object oldStartingHadithNo);",
"public Builder clearField1378() {\n \n field1378_ = getDefaultInstance().getField1378();\n onChanged();\n return this;\n }",
"public Builder clearField1573() {\n \n field1573_ = getDefaultInstance().getField1573();\n onChanged();\n return this;\n }",
"public Builder clearField1346() {\n \n field1346_ = getDefaultInstance().getField1346();\n onChanged();\n return this;\n }",
"void removeInBookNo(Object oldInBookNo);",
"public Builder clearField1576() {\n \n field1576_ = getDefaultInstance().getField1576();\n onChanged();\n return this;\n }",
"public Builder clearField1456() {\n \n field1456_ = getDefaultInstance().getField1456();\n onChanged();\n return this;\n }",
"public void delHsExtendedRef(SomeRelation value){\n ((ExtendedRefHSDMO) core).delHsExtendedRef(value);\n }",
"public Builder clearField1477() {\n \n field1477_ = getDefaultInstance().getField1477();\n onChanged();\n return this;\n }"
]
| [
"0.63629127",
"0.6273289",
"0.61335915",
"0.59897935",
"0.5912414",
"0.5911545",
"0.5788537",
"0.57590413",
"0.57063556",
"0.570446",
"0.5656393",
"0.5586723",
"0.5530377",
"0.5509774",
"0.5505351",
"0.55042386",
"0.54920214",
"0.5460891",
"0.5451678",
"0.5425081",
"0.5390038",
"0.53582454",
"0.5356582",
"0.53565353",
"0.5354008",
"0.53486663",
"0.53418225",
"0.53401655",
"0.53370416",
"0.5336466",
"0.5331735",
"0.5328997",
"0.53266346",
"0.53257143",
"0.5324747",
"0.5324482",
"0.53236955",
"0.5318716",
"0.5311026",
"0.5274655",
"0.52512133",
"0.5249659",
"0.524535",
"0.52092034",
"0.5182796",
"0.51797915",
"0.5174743",
"0.51362133",
"0.5130644",
"0.51281863",
"0.5124092",
"0.5123506",
"0.5120149",
"0.5113445",
"0.51038635",
"0.51008147",
"0.50897944",
"0.50804627",
"0.5070478",
"0.50697905",
"0.5054012",
"0.50521225",
"0.5049575",
"0.50495625",
"0.50324917",
"0.50308996",
"0.50289243",
"0.50207293",
"0.5017536",
"0.5012695",
"0.50040174",
"0.5003287",
"0.50030726",
"0.4993941",
"0.4991179",
"0.49861616",
"0.49803945",
"0.49744958",
"0.49739945",
"0.49695823",
"0.49680537",
"0.4963139",
"0.49591094",
"0.4958943",
"0.49584925",
"0.4957869",
"0.4953959",
"0.49538106",
"0.4950157",
"0.49447015",
"0.49444813",
"0.4943055",
"0.4942461",
"0.49400657",
"0.49395642",
"0.4937719",
"0.49375883",
"0.49301964",
"0.49282622",
"0.4925447"
]
| 0.53347254 | 30 |
Removes unparseable extra field data. | public void removeUnparseableExtraFieldData() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c3763808-2050-4e13-a0c1-1c775bd5e0ee");
if (unparseableExtra == null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "4003f30c-e5f3-4c15-b6da-adb3b7a4a1a1");
throw new java.util.NoSuchElementException();
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c7621793-4ba2-47c3-8bce-7c8b5c05ed8e");
unparseableExtra = null;
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "daca2b5a-ddf7-4a9f-b64f-153927dc0b18");
setExtra();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnparseableExtraFieldData getUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a945f49c-9e0e-4d61-96d9-614c3b2abe51\");\n return unparseableExtra;\n }",
"private String clean_fields(String data) {\n\t\treturn data.replace(\"<\", \"\").replace(\">\", \"\");\n\t}",
"public Builder clearExtra() {\n bitField0_ = (bitField0_ & ~0x00000004);\n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"public Builder clearExtra() {\n \n extra_ = getDefaultInstance().getExtra();\n onChanged();\n return this;\n }",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}",
"@Override\r\n public boolean remove(Object e) {\r\n if (!(e instanceof Extra))\r\n return false;\r\n int index = extras.indexOf(e);\r\n if (index >= 0) {\r\n extras.remove(index);\r\n return true;\r\n } else\r\n return false;\r\n }",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void removeExtraField(final ZipShort type) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"70852260-a6a7-4a20-80e7-2845726cb793\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1cdd41c5-cc00-4c20-a3c8-6a48c9b2e38f\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"2fbc1b80-8711-4927-9154-0594662dc65e\");\n final List<ZipExtraField> newResult = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8b80c44d-009c-4470-aff3-4763097b9f9a\");\n for (final ZipExtraField extraField : extraFields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6be62b96-f85a-4404-b95f-7cac16120acf\");\n if (!type.equals(extraField.getHeaderId())) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6215ed97-256f-4341-8f39-b74bd2fe2749\");\n newResult.add(extraField);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"189c7f29-fa24-4106-be1a-8b02c592ebaa\");\n if (extraFields.length == newResult.size()) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c986e14c-19c0-4d38-9f2d-d08e6c1c6f1b\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f10934cb-d037-4768-bb8a-7ad1da158142\");\n extraFields = newResult.toArray(new ZipExtraField[newResult.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7235b8ea-0326-4ddb-afac-2da6c4483bd7\");\n setExtra();\n }",
"@Override\n\tpublic String unparse() {\n\t\treturn null;\n\t}",
"private void cleanFieldPathLength() {\n\t\tfor (int i = 0; i < fieldPathLength.length; i++) {\n\t\t\tfieldPathLength[i] = -1;\n\t\t}\n\t}",
"@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}",
"public void parsingAdditionalData() {\n\t\tString AdditionalData = billPayBean.getAdditionalData();\n\t\tswitch (Integer.parseInt(billPayBean.getBillerId())) {\n\t\tcase 91901:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(95,120));\n\t\t\tbillPayBean.setMeterNumber(AdditionalData.substring(7,18));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(18,30));\n\t\t\tbreak;\n\t\tcase 91951:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(47,72));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(0,12));\n\t\t\tbreak;\n\t\tcase 91999:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(66,91));\n\t\t\tbillPayBean.setRegNumber(AdditionalData.substring(0,13));\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t\treturn ;\n\t}",
"private void clearMetaInfo(String fieldName)\r\n\t{\r\n\t amiMap.remove(fieldName);\r\n\t}",
"InstrumentedType withAuxiliaryField(FieldDescription.Token token, Object value);",
"public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }",
"protected static Message cleanDoNotStoreFields(Message message) {\n Message.Builder messageBuilder = message.toBuilder();\n for (FieldDescriptor field : message.getAllFields().keySet()) {\n StorageMethod storageMethod = field.getOptions().getExtension(ExtensionsProto.storageMethod);\n if (storageMethod == StorageMethod.DO_NOT_STORE) {\n messageBuilder.clearField(field);\n } else if (field.getJavaType() == JavaType.MESSAGE) {\n if (field.isRepeated()) {\n for (int i = 0; i < message.getRepeatedFieldCount(field); i++) {\n messageBuilder.setRepeatedField(field, i, \n cleanDoNotStoreFields((Message) message.getRepeatedField(field, i)));\n }\n } else {\n messageBuilder.setField(field,\n cleanDoNotStoreFields((Message) message.getField(field)));\n }\n }\n }\n return messageBuilder.build();\n }",
"public Builder clearUnknown13() {\n bitField0_ = (bitField0_ & ~0x00000002);\n unknown13_ = 0;\n onChanged();\n return this;\n }",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"private void clearSerializedPaymentDetails() {\n bitField0_ = (bitField0_ & ~0x00000008);\n serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails();\n }",
"public Builder clearField1342() {\n \n field1342_ = getDefaultInstance().getField1342();\n onChanged();\n return this;\n }",
"public void removeExtraHeader(final String name) {\n extraHeaders.remove(name);\n }",
"public void removeFromFields(entity.APDExposureField element);",
"public Builder clearField1942() {\n \n field1942_ = getDefaultInstance().getField1942();\n onChanged();\n return this;\n }",
"public\n void remove(int offset, int len) throws BadLocationException {\n String str = getText(offset, len);\n if (str.indexOf(\".\") != -1) {\n firstDecimal = true;\n }\n super.remove(offset, len);\n }",
"protected final void setExtraInfo(final String info) {\n\t\tif (info == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid extra info\");\n\t\t}\n\t\textras = info;\n\t}",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public Builder clearField1048() {\n \n field1048_ = getDefaultInstance().getField1048();\n onChanged();\n return this;\n }",
"public Builder clearField1913() {\n \n field1913_ = getDefaultInstance().getField1913();\n onChanged();\n return this;\n }",
"public void eraseData() {\n\t\tname = \"\";\n\t\tprice = 0.0;\n\t\tquantity = 0;\n\t}",
"public void clean()\r\n {\r\n this.extension = null;\r\n this.extensionValueList = null;\r\n this.extensionLabelList = null;\r\n this.archivoVO = null;\r\n this.archivoVOValueList = null;\r\n this.archivoVOLabelList = null;\r\n this.nuevoNombre = null;\r\n this.nuevoNombreValueList = null;\r\n this.nuevoNombreLabelList = null;\r\n this.action = null;\r\n this.actionValueList = null;\r\n this.actionLabelList = null;\r\n }",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"public void setAdditionalInfo(String additionalInfo) {\n this.additionalInfo = additionalInfo == null ? null : additionalInfo.trim();\n }",
"public Value removeAttributes() {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= ATTR_NOTDONTDELETE | ATTR_NOTDONTENUM | ATTR_NOTREADONLY;\n return canonicalize(r);\n }",
"public void unsetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(EXTENDABLE$22);\r\n }\r\n }",
"private void clearFormatedText() {\n \n formatedText_ = getDefaultInstance().getFormatedText();\n }",
"AdditionalAttributes removeAttribute(String name);",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"private void validateExtra() {\n\t\tif (getArguments()!=null)\n\t\t{\n\t\t\tentity = (NoteEntity)getArguments().getSerializable(\"NOTE\");\n\t\t}\n\t}",
"public Builder clearField1319() {\n \n field1319_ = getDefaultInstance().getField1319();\n onChanged();\n return this;\n }",
"public Builder clearField1219() {\n \n field1219_ = getDefaultInstance().getField1219();\n onChanged();\n return this;\n }",
"private void populateEmptyFields(DublinCoreMetadataCollection dublinCoreMetadata, Set<String> emptyFields) {\n for (String field : emptyFields) {\n try {\n dublinCoreMetadata.addField(dublinCoreProperties.get(field), \"\", getListProvidersService());\n } catch (Exception e) {\n logger.error(\"Skipping metadata field '{}' because of error: {}\", field, ExceptionUtils.getStackTrace(e));\n }\n }\n }",
"public Builder clearField1442() {\n \n field1442_ = getDefaultInstance().getField1442();\n onChanged();\n return this;\n }",
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar13() {\n var13 = null;\n fieldSetFlags()[14] = false;\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar19() {\n var19 = null;\n fieldSetFlags()[20] = false;\n return this;\n }",
"public Builder clearField1973() {\n \n field1973_ = getDefaultInstance().getField1973();\n onChanged();\n return this;\n }",
"public String getExtra() {\n Object ref = extra_;\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 extra_ = s;\n return s;\n }\n }",
"public Builder clearField1542() {\n \n field1542_ = getDefaultInstance().getField1542();\n onChanged();\n return this;\n }",
"public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Builder clearField1972() {\n \n field1972_ = getDefaultInstance().getField1972();\n onChanged();\n return this;\n }",
"public static String truncateExtra(String content) {\n if (content == null)\n return \"\";\n return content.replaceAll(\"(\\\\[\\\\+\\\\d+ chars])\", \"\");\n }",
"private void removeInsuranceInformation() {\n //remove insurance information\n InsuranceCompany[] emptyInsurance = new InsuranceCompany[0];\n user.setInsuranceInfo(emptyInsurance);\n }",
"public void saveExtraData() {}",
"public Builder clearField1374() {\n \n field1374_ = getDefaultInstance().getField1374();\n onChanged();\n return this;\n }",
"public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}",
"public Builder clearField1372() {\n \n field1372_ = getDefaultInstance().getField1372();\n onChanged();\n return this;\n }",
"public Builder clearField1943() {\n \n field1943_ = getDefaultInstance().getField1943();\n onChanged();\n return this;\n }",
"public Builder clearField1912() {\n \n field1912_ = getDefaultInstance().getField1912();\n onChanged();\n return this;\n }",
"public void endDataField(String tag) {\n \t record.add(datafield);\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar207() {\n var207 = null;\n fieldSetFlags()[208] = false;\n return this;\n }",
"@Override\r\n\tpublic void removeField() {\n\t\tusernameField.setText(\"\");\r\n\t\tpassField.setText(\"\");\r\n\t}",
"public Builder clearField1273() {\n \n field1273_ = getDefaultInstance().getField1273();\n onChanged();\n return this;\n }",
"@Override\n public void remove(int offs, int len) throws BadLocationException {\n super.remove(offs, len);\n String text = super.getText(0, super.getLength());\n if(text != null && !text.equals(\"\")){\n this.edge.setWeight(Integer.parseInt(text));\n } else {\n this.edge.setWeight(0);\n }\n }",
"public Builder clearField1974() {\n \n field1974_ = getDefaultInstance().getField1974();\n onChanged();\n return this;\n }",
"public Builder clearField1356() {\n \n field1356_ = getDefaultInstance().getField1356();\n onChanged();\n return this;\n }",
"void unsetLeading();",
"public Builder clearField1340() {\n \n field1340_ = getDefaultInstance().getField1340();\n onChanged();\n return this;\n }",
"public Builder clearField1378() {\n \n field1378_ = getDefaultInstance().getField1378();\n onChanged();\n return this;\n }",
"public Builder clearField1977() {\n \n field1977_ = getDefaultInstance().getField1977();\n onChanged();\n return this;\n }",
"private void preserveNecessaryTag() {\n Whitelist whitelist = Whitelist.none();\n whitelist.addTags(\"br\", \"h2\", \"a\", \"img\", \"p\", \"b\", \"i\", \"pre\", \"li\");\n\n // preserve img and its src value\n whitelist.addAttributes(\"img\", \"src\");\n // allow this protocol inside img src attribute value\n whitelist.addProtocols(\"img\", \"src\", \"http\", \"https\", \"data\", \"cid\");\n\n // preserve anchor and its href value\n whitelist.addAttributes(\"a\", \"href\");\n // allow this protocols value inside href attribute value\n whitelist.addProtocols(\"a\", \"href\", \"http\", \"https\", \"data\", \"cid\");\n\n postBodyHTMLContent = Jsoup.clean(postBodyHTMLContent, whitelist);\n }",
"public Builder clearField1928() {\n \n field1928_ = getDefaultInstance().getField1928();\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar248() {\n var248 = null;\n fieldSetFlags()[249] = false;\n return this;\n }",
"private void clearMetadata() { metadata_ = null;\n bitField0_ = (bitField0_ & ~0x00000002);\n }",
"public void undoJsonShenanigans() {\n if (name == null) {\n name = \"\";\n }\n if (tournamentID == null) {\n tournamentID = \"\";\n }\n if (finalRank == null) {\n finalRank = \"\";\n }\n if (challongeUserName == null) {\n challongeUserName = \"\";\n }\n }",
"public Builder clearField1956() {\n \n field1956_ = getDefaultInstance().getField1956();\n onChanged();\n return this;\n }",
"public Builder clearField1934() {\n \n field1934_ = getDefaultInstance().getField1934();\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic Field[] getExcludedFields() {\n\t\treturn null;\r\n\t}",
"public Builder clearField1142() {\n \n field1142_ = getDefaultInstance().getField1142();\n onChanged();\n return this;\n }",
"public void clearFields() {\n tags.clear();\n tagText.setText(\"\");\n ((ImageView)findViewById(R.id.picture)).setImageResource(android.R.color.transparent);\n }",
"public Builder clearField1419() {\n \n field1419_ = getDefaultInstance().getField1419();\n onChanged();\n return this;\n }",
"public Builder clearField1274() {\n \n field1274_ = getDefaultInstance().getField1274();\n onChanged();\n return this;\n }",
"public Builder clearField1574() {\n \n field1574_ = getDefaultInstance().getField1574();\n onChanged();\n return this;\n }",
"public Builder clearField1228() {\n \n field1228_ = getDefaultInstance().getField1228();\n onChanged();\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar206() {\n var206 = null;\n fieldSetFlags()[207] = false;\n return this;\n }",
"public Builder clearField1927() {\n \n field1927_ = getDefaultInstance().getField1927();\n onChanged();\n return this;\n }",
"public Builder clearField1373() {\n \n field1373_ = getDefaultInstance().getField1373();\n onChanged();\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar279() {\n var279 = null;\n fieldSetFlags()[280] = false;\n return this;\n }",
"void unsetCustomsDetails();",
"public Builder clearField1376() {\n \n field1376_ = getDefaultInstance().getField1376();\n onChanged();\n return this;\n }",
"public Builder clearField1473() {\n \n field1473_ = getDefaultInstance().getField1473();\n onChanged();\n return this;\n }",
"public Builder clearField1346() {\n \n field1346_ = getDefaultInstance().getField1346();\n onChanged();\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar224() {\n var224 = null;\n fieldSetFlags()[225] = false;\n return this;\n }",
"public Builder clearField1366() {\n \n field1366_ = getDefaultInstance().getField1366();\n onChanged();\n return this;\n }",
"@Override\n public void removeAttributes()\n {\n attributes.clear();\n }"
]
| [
"0.6161565",
"0.6025615",
"0.58773464",
"0.57027096",
"0.5546905",
"0.5508019",
"0.5477762",
"0.53449124",
"0.53431743",
"0.5323431",
"0.5264611",
"0.5264611",
"0.51851845",
"0.5159542",
"0.5136863",
"0.5121342",
"0.5064664",
"0.50457263",
"0.50317395",
"0.49971294",
"0.49800146",
"0.49541584",
"0.4944625",
"0.49429876",
"0.49262282",
"0.49137822",
"0.49009624",
"0.48878214",
"0.48837373",
"0.488156",
"0.48627082",
"0.48545334",
"0.48400354",
"0.48397598",
"0.48387706",
"0.48311839",
"0.48257992",
"0.48175135",
"0.4817454",
"0.48134628",
"0.4810073",
"0.48032382",
"0.480067",
"0.47974852",
"0.4787673",
"0.47726417",
"0.477084",
"0.47669637",
"0.47649214",
"0.47512656",
"0.4748737",
"0.47379422",
"0.4731104",
"0.47268382",
"0.47248322",
"0.47200575",
"0.47181857",
"0.47163752",
"0.4715292",
"0.47148082",
"0.4712667",
"0.47104433",
"0.4705474",
"0.46973118",
"0.46948838",
"0.4689133",
"0.4688231",
"0.46852747",
"0.46787927",
"0.46729296",
"0.46714988",
"0.46687666",
"0.46636507",
"0.46633115",
"0.4663012",
"0.46611455",
"0.46589577",
"0.46580532",
"0.4652095",
"0.46501192",
"0.46490106",
"0.46487114",
"0.46481612",
"0.46472606",
"0.46447247",
"0.46445388",
"0.4643303",
"0.4642792",
"0.4641276",
"0.4640062",
"0.4633031",
"0.4631129",
"0.4627554",
"0.46250954",
"0.4624599",
"0.4624532",
"0.46242356",
"0.46234864",
"0.4622154",
"0.46201563"
]
| 0.7247113 | 0 |
Looks up an extra field by its header id. | public ZipExtraField getExtraField(final ZipShort type) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "c35bc23b-cd1d-468b-b68e-692eafa99687");
if (extraFields != null) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "1b755abf-52e3-4078-bdc6-5e4f6d2c1b92");
for (final ZipExtraField extraField : extraFields) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "a06856ff-f7ac-4fa2-a2ea-3a766b8fd17b");
if (type.equals(extraField.getHeaderId())) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "cf217f83-0921-4e72-8141-ee4971b0fc6f");
return extraField;
}
}
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "b03a283c-6bc4-4892-b1c9-06986a4697b2");
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getHeaderField(int paramInt) {\n/* 278 */ return this.delegate.getHeaderField(paramInt);\n/* */ }",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"public String fieldHeader(int fld_i) { return flds[fld_i]; }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"Optional<ExtendedTextHeader> findOne(Long id);",
"public void setExtraFieldsId( Integer extraFieldsId ) {\n this.extraFieldsId = extraFieldsId;\n }",
"java.lang.String getField1534();",
"java.lang.String getField1371();",
"java.lang.String getField1567();",
"java.lang.String getField1212();",
"java.lang.String getField1571();",
"public String getField(String field) throws RemoteException;",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n default:\n return null;\n }\n }",
"java.lang.String getField1574();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXTRA_DATA_MAP\n return EXTRA_DATA_MAP;\n default:\n return null;\n }\n }",
"java.lang.String getField1337();",
"java.lang.String getField1366();",
"java.lang.String getField1568();",
"java.lang.String getField1134();",
"java.lang.String getField1334();",
"java.lang.String getField1569();",
"java.lang.String getField1578();",
"java.lang.String getField1335();",
"java.lang.String getField1523();",
"java.lang.String getField1342();",
"java.lang.String getField1346();",
"java.lang.String getField1378();",
"java.lang.String getField1576();",
"java.lang.String getField1336();",
"java.lang.String getField1546();",
"java.lang.String getField1376();",
"java.lang.String getField1367();",
"java.lang.String getField1573();",
"java.lang.String getField1369();",
"java.lang.String getField1533();",
"java.lang.String getField1174();",
"java.lang.String getField1374();",
"java.lang.String getField1566();",
"java.lang.String getField1577();",
"java.lang.String getFieldOrThrow(\n java.lang.String key);",
"java.lang.String getField1513();",
"private FieldIdItem parseAndResolveField(ClassPath.ClassDef classDef, String field) {\n String[] parts = field.split(\":\");\n if (parts.length != 2) {\n throw new RuntimeException(\"Invalid field descriptor \" + field);\n }\n \n String fieldName = parts[0];\n String fieldType = parts[1];\n \n StringIdItem fieldNameItem = StringIdItem.lookupStringIdItem(dexFile, fieldName);\n if (fieldNameItem == null) {\n return null;\n }\n \n TypeIdItem fieldTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldType);\n if (fieldTypeItem == null) {\n return null;\n }\n \n ClassPath.ClassDef fieldClass = classDef;\n \n do {\n TypeIdItem classTypeItem = TypeIdItem.lookupTypeIdItem(dexFile, fieldClass.getClassType());\n if (classTypeItem == null) {\n continue;\n }\n \n FieldIdItem fieldIdItem = FieldIdItem.lookupFieldIdItem(dexFile, classTypeItem, fieldTypeItem, fieldNameItem);\n if (fieldIdItem != null) {\n return fieldIdItem;\n }\n \n fieldClass = fieldClass.getSuperclass();\n } while (fieldClass != null);\n \n return null;\n }",
"java.lang.String getField1201();",
"java.lang.String getField1178();",
"java.lang.String getField1579();",
"java.lang.String getField1368();",
"java.lang.String getField1274();",
"java.lang.String getField1269();",
"java.lang.String getField1544();",
"java.lang.String getField1372();",
"com.google.privacy.dlp.v2.FieldId getFieldId();",
"java.lang.String getField1345();",
"java.lang.String getField1339();",
"java.lang.String getField1543();",
"java.lang.String getField1067();",
"java.lang.String getField1434();",
"java.lang.String getField1528();",
"java.lang.String getField1377();",
"java.lang.String getField1361();",
"java.lang.String getField1015();",
"java.lang.String getField1554();",
"java.lang.String getField1034();",
"java.lang.String getField1551();",
"java.lang.String getField1373();",
"java.lang.String getField1171();",
"java.lang.String getField1173();",
"java.lang.String getField1532();",
"java.lang.String getField1379();",
"java.lang.String getField1587();",
"java.lang.String getField1267();",
"java.lang.String getField1069();",
"java.lang.String getField1351();",
"java.lang.String getField1549();",
"java.lang.String getField1354();",
"java.lang.String getField1522();",
"java.lang.String getField1177();",
"java.lang.String getField1279();",
"java.lang.String getField1301();",
"java.lang.String getField1359();",
"java.lang.String getField1315();",
"java.lang.String getField1176();",
"java.lang.String getField1391();",
"java.lang.String getField1561();",
"java.lang.String getField1001();",
"java.lang.String getField1537();",
"java.lang.String getField1349();",
"java.lang.String getField1146();",
"java.lang.String getField1330();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }",
"java.lang.String getField1332();",
"java.lang.String getField1278();",
"java.lang.String getField1347();",
"java.lang.String getField1343();",
"java.lang.String getField1223();",
"java.lang.String getField1542();",
"java.lang.String getField1074();",
"java.lang.String getField1331();",
"java.lang.String getField1535();"
]
| [
"0.58427054",
"0.5834761",
"0.5834761",
"0.5834761",
"0.5777575",
"0.57642925",
"0.57626987",
"0.5750589",
"0.57385755",
"0.5737248",
"0.57302606",
"0.57265073",
"0.5722136",
"0.57118195",
"0.5707779",
"0.5706958",
"0.5699396",
"0.5677979",
"0.5673597",
"0.56672734",
"0.5663204",
"0.5662783",
"0.5659458",
"0.56576496",
"0.56507164",
"0.5647334",
"0.56417483",
"0.56415045",
"0.5640493",
"0.5639143",
"0.56359255",
"0.5635618",
"0.5632532",
"0.5631956",
"0.5627946",
"0.56178",
"0.56145066",
"0.5612438",
"0.5610897",
"0.5610372",
"0.56090105",
"0.56083935",
"0.5599781",
"0.55977994",
"0.5592301",
"0.5590868",
"0.5589628",
"0.5586601",
"0.5582687",
"0.5582209",
"0.55812114",
"0.55795765",
"0.55753946",
"0.5575034",
"0.55744195",
"0.55740553",
"0.5573547",
"0.557141",
"0.55696976",
"0.5565861",
"0.5565123",
"0.5565019",
"0.5561468",
"0.5561214",
"0.55601925",
"0.5559824",
"0.55574614",
"0.55574304",
"0.55558324",
"0.55549634",
"0.55535316",
"0.55525047",
"0.5552202",
"0.55497015",
"0.5547061",
"0.5543061",
"0.55426884",
"0.5542501",
"0.5540204",
"0.5539098",
"0.5537386",
"0.5537384",
"0.55364543",
"0.55360144",
"0.5533391",
"0.5532828",
"0.55325603",
"0.55306095",
"0.55298936",
"0.5527641",
"0.5526257",
"0.5526014",
"0.55255336",
"0.55245465",
"0.5522801",
"0.5522736",
"0.5522487",
"0.55214477",
"0.55211127",
"0.55199647"
]
| 0.5787551 | 4 |
Looks up extra field data that couldn't be parsed correctly. | public UnparseableExtraFieldData getUnparseableExtraFieldData() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "a945f49c-9e0e-4d61-96d9-614c3b2abe51");
return unparseableExtra;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c3763808-2050-4e13-a0c1-1c775bd5e0ee\");\n if (unparseableExtra == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4003f30c-e5f3-4c15-b6da-adb3b7a4a1a1\");\n throw new java.util.NoSuchElementException();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c7621793-4ba2-47c3-8bce-7c8b5c05ed8e\");\n unparseableExtra = null;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"daca2b5a-ddf7-4a9f-b64f-153927dc0b18\");\n setExtra();\n }",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"public void parsingAdditionalData() {\n\t\tString AdditionalData = billPayBean.getAdditionalData();\n\t\tswitch (Integer.parseInt(billPayBean.getBillerId())) {\n\t\tcase 91901:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(95,120));\n\t\t\tbillPayBean.setMeterNumber(AdditionalData.substring(7,18));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(18,30));\n\t\t\tbreak;\n\t\tcase 91951:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(47,72));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(0,12));\n\t\t\tbreak;\n\t\tcase 91999:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(66,91));\n\t\t\tbillPayBean.setRegNumber(AdditionalData.substring(0,13));\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t\treturn ;\n\t}",
"private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }",
"@Test //(expected = IllegalArgumentException.class)\n public void testParseInvalidFieldCount() throws Exception {\n String sample1 = \"OBX|1|ED|18842-5^Discharge Summarization Note^LN||^application^zip^base64^SSBhbSBiYXNlNjQgQ29udGVudA==||||||F|SomethingElse\";\n OBX.parse(sample1);\n }",
"java.lang.String getField1048();",
"public FieldNotFoundException(String msg) {\n super(msg);\n }",
"void handleBadRecordFormat(String line);",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"private void validateExtra() {\n\t\tif (getArguments()!=null)\n\t\t{\n\t\t\tentity = (NoteEntity)getArguments().getSerializable(\"NOTE\");\n\t\t}\n\t}",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"java.lang.String getField1056();",
"java.lang.String getField1026();",
"java.lang.String getField1402();",
"java.lang.String getField1025();",
"java.lang.String getField1702();",
"java.lang.String getField1003();",
"java.lang.String getField1373();",
"public static List<EntryFieldLabel> validates(PartData partData) {\n List<EntryFieldLabel> invalidFields = new ArrayList<>();\n\n if (StringUtils.isEmpty(partData.getName()))\n invalidFields.add(EntryFieldLabel.NAME);\n\n if (partData.getBioSafetyLevel() == null)\n invalidFields.add(EntryFieldLabel.BIO_SAFETY_LEVEL);\n\n if (StringUtils.isEmpty(partData.getStatus()))\n invalidFields.add(EntryFieldLabel.STATUS);\n\n if (StringUtils.isEmpty(partData.getCreator()))\n invalidFields.add(EntryFieldLabel.CREATOR);\n\n if (StringUtils.isEmpty(partData.getCreatorEmail()))\n invalidFields.add(EntryFieldLabel.CREATOR_EMAIL);\n\n if (StringUtils.isEmpty(partData.getShortDescription()))\n invalidFields.add(EntryFieldLabel.SUMMARY);\n\n return invalidFields;\n }",
"java.lang.String getField1573();",
"private void checkValue(int fiFieldType, String fsValue, int fiIndex)\n {\n switch ( fiFieldType )\n {\n // text fields\n case DataConst.CHAR :\n case DataConst.VARCHAR :\n case DataConst.LONGVARCHAR :\n {\n try\n {\n // check if first and last characters on are quotes.\n String lsRHS = fsValue.trim();\n char [] lcChar = lsRHS.toCharArray();\n\n if ((lcChar[0] == '\"') && (lcChar[lsRHS.length() - 1] == '\"'))\n {\n return ;\n } /* end if ((lcChar[0] == '\"') && ... */\n else\n {\n raiseException( \"%c:Q0079%\" ) ;\n } /* end else */\n } /* end try */\n catch (RuntimeException loException)\n {\n raiseException( \"%c:Q0079%\" ) ;\n } /* end catch */\n break ;\n } /* case DataConst.CHAR */\n case DataConst.INTEGER :\n {\n try\n {\n Integer loInt = new Integer(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0080,v: \" + Integer.MIN_VALUE +\n \",v:\" + Integer.MAX_VALUE + \"%\" ) ;\n }\n break ;\n } /* case DataConst.INTEGER */\n case DataConst.BIGINT :\n {\n try\n {\n Long loLong = new Long(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0081,v: \" + Long.MIN_VALUE +\n \",v:\" + Long.MAX_VALUE + \"%\" ) ;\n }\n break ;\n } /* case DataConst.BIGINT */\n case DataConst.SMALLINT :\n case DataConst.TINYINT :\n {\n try\n {\n Byte loByte = new Byte(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0082,v: \"+ Byte.MIN_VALUE +\n \",v:\" + Byte.MAX_VALUE + \"%\" ) ;\n }\n break ;\n } /* case DataConst.SMALLINT */\n case DataConst.REAL :\n {\n try\n {\n Float loFloat = new Float(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0083,v: \" + Float.MIN_VALUE +\n \",v:\" + Float.MAX_VALUE + \"%\" ) ;\n }\n break ;\n } /* case DataConst.REAL */\n case DataConst.DOUBLE :\n case DataConst.FLOAT :\n case DataConst.DECIMAL :\n {\n try\n {\n Double loDouble = new Double(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0084,v: \" + Double.MIN_VALUE +\n \",v:\" + Double.MAX_VALUE + \"%\" ) ;\n }\n break ;\n } /* case DataConst.DOUBLE */\n case DataConst.NUMERIC :\n {\n try\n {\n BigDecimal loBigDec = new BigDecimal(fsValue);\n return ;\n }\n catch (NumberFormatException loException)\n {\n raiseException( \"%c:Q0085%\" ) ;\n }\n break ;\n } /* case DataConst.NUMERIC */\n case DataConst.BIT :\n {\n String lsRHS = fsValue.trim();\n if (lsRHS.equalsIgnoreCase(\"\\\"true\\\"\") ||\n lsRHS.equalsIgnoreCase(\"\\\"false\\\"\"))\n {\n if ( !( lsRHS.equals(\"\\\"true\\\"\") ) || !( lsRHS.equals(\"\\\"false\\\"\") ) )\n {\n\n Data loNewData = getData(\"AND_COND_RHS_\" + fiIndex ) ;\n\n if ( lsRHS.equalsIgnoreCase(\"\\\"true\\\"\") )\n {\n loNewData.setString(\"\\\"true\\\"\") ;\n raiseException( \"Value \" + lsRHS + \" has been modified to \\\"true\\\"\",\n AMSMsgUtil.SEVERITY_LEVEL_WARNING ) ;\n } /* end if ( lsRHS.equalsIgnoreCase(\"\\\"true\\\"\") ) */\n else\n {\n loNewData.setString(\"\\\"false\\\"\") ;\n raiseException( \"Value \" + lsRHS + \" has been modified to \\\"false\\\"\",\n AMSMsgUtil.SEVERITY_LEVEL_WARNING ) ;\n } /* end else */\n\n } /* end if ( !( lsRHS.equals(\"\\\"true\\\"\") ) || !( lsRHS.equals(\"\\\"false\\\"\") ) ) */\n return ;\n }\n else\n {\n raiseException( \"%c:Q0086%\" ) ;\n }\n break ;\n } /* case DataConst.BIT */\n case DataConst.TIMESTAMP :\n case DataConst.DATE :\n {\n // date must be in format \"MM/dd/yyyy\" - within quotes\n try\n {\n // check if first and last characters on are quotes.\n String lsRHS = fsValue.trim();\n char [] lcChar = lsRHS.toCharArray();\n\n if ( ( lcChar[0] == '\"' ) &&\n ( lcChar[lsRHS.length() - 1] == '\"' ) )\n {\n SimpleDateFormat loDateFormat = new SimpleDateFormat( \"\\\"MM/dd/yyyy\\\"\" ) ;\n\n // create the Date object\n Date loJavaDate = loDateFormat.parse( lsRHS, new ParsePosition( 0 ) ) ;\n\n if ( loJavaDate == null )\n {\n raiseException( \"%c:Q0087%\" ) ;\n }\n\n VSDate loDate = new VSDate( loJavaDate ) ;\n return ;\n }\n else\n {\n raiseException( \"%c:Q0087%\" ) ;\n }\n }\n catch (RuntimeException loException)\n {\n raiseException( \"%c:Q0087%\" ) ;\n }\n break ;\n\n } /* case DataConst.TIMESTAMP */\n default :\n {\n raiseException( \"%c:Q0088%\" ) ;\n return ;\n } /* end default */\n\n } /* end switch ( fiFieldType ) */\n }",
"java.lang.String getField1376();",
"java.lang.String getField1371();",
"@Test\n public final void testParseWhereExtraValue() throws Exception {\n\n try (InputStream is = this.getClass()\n .getResourceAsStream( \"/data/loader/expression/experimentalDesignTestExtra.txt\" )) {\n\n experimentalDesignImporter.importDesign( ee, is );\n }\n\n ee = this.eeService.thawLite( ee );\n\n Collection<BioMaterial> bms = new HashSet<>();\n for ( BioAssay ba : ee.getBioAssays() ) {\n BioMaterial bm = ba.getSampleUsed();\n bms.add( bm );\n }\n this.aclTestUtils.checkEEAcls( ee );\n\n this.checkResults( bms );\n }",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"java.lang.String getField1372();",
"java.lang.String getFieldOrThrow(\n java.lang.String key);",
"private String clean_fields(String data) {\n\t\treturn data.replace(\"<\", \"\").replace(\">\", \"\");\n\t}",
"java.lang.String getField1528();",
"java.lang.String getField1273();",
"java.lang.String getField1406();",
"java.lang.String getField1728();",
"protected void processFieldItem(FileItemStream item, FileDAO fileDao) {\n logger.warn(\"ignoring processing field item name \" + item.getFieldName());\n }",
"public String badOrMissingResponseData();",
"java.lang.String getField1315();",
"private void parseField(String line){\n List<Integer> commaPos = ParserUtils.getCommaPos(line);\n int size = commaPos.size();\n // parse field\n String zip = line.substring(commaPos.get(size-ZIP_CODE_POS-1)+1, commaPos.get(size-ZIP_CODE_POS));\n // if zip is not valid return\n zip = zip.trim();\n if(zip==null || zip.length()<5){\n return;\n }\n // only keep the first 5 digits\n zip = zip.substring(0,5);\n String marketVal = line.substring(commaPos.get(MARKET_VALUE_POS-1)+1, commaPos.get(MARKET_VALUE_POS));\n String liveableArea = line.substring(commaPos.get(size-TOTAL_LIVEABLE_AREA_POS-1)+1, commaPos.get(size-TOTAL_LIVEABLE_AREA_POS));\n // cast those value to Long Double\n Long lZip = ParserUtils.tryCastStrToLong(zip);\n Double DMarketVal = ParserUtils.tryCastStrToDouble(marketVal);\n Double DLiveableArea = ParserUtils.tryCastStrToDouble(liveableArea);\n // update those field into the map\n updatePropertyInfo(lZip,DMarketVal, DLiveableArea);\n }",
"public MissingInformationOutput checkMissingInformation(MissingInformationInput in) throws RuleEngineDataException;",
"java.lang.String getField1527();",
"java.lang.String getField1361();",
"java.lang.String getField1352();",
"java.lang.String getField1369();",
"java.lang.String getField1773();",
"java.lang.String getField1374();",
"java.lang.String getField1574();",
"java.lang.String getField1007();",
"java.lang.String getField1582();",
"java.lang.String getField1379();",
"java.lang.String getField1392();",
"java.lang.String getField1843();",
"java.lang.String getField1312();",
"java.lang.String getField1330();",
"java.lang.String getField1734();",
"java.lang.String getField1332();",
"java.lang.String getField1173();",
"java.lang.String getField1576();",
"java.lang.String getField1378();",
"java.lang.String getField1028();",
"java.lang.String getField1973();",
"java.lang.String getField1228();",
"java.lang.String getField1934();",
"java.lang.String getField1216();",
"java.lang.String getField1384();",
"java.lang.String getField1534();",
"public Object[] getAdditionalErrorDataWithLineInfo() {\n\t\tObject[] extendedErrorData;\n\t\tif (lineNumber >= 0 && positionWithinLine >= 0) {\n\t\t\tif (additionalErrorData != null) {\n\t\t\t\textendedErrorData = new Object[additionalErrorData.length + 2];\n\t\t\t\tfor (int i = 0; i < additionalErrorData.length; i++) {\n\t\t\t\t\textendedErrorData[i] = additionalErrorData[i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\textendedErrorData = new Object[2];\n\t\t\t}\n\t\t\textendedErrorData[extendedErrorData.length - 2] = lineNumber;\n\t\t\textendedErrorData[extendedErrorData.length - 1] = positionWithinLine;\n\t\t} else if (lineNumber >= 0) {\n\t\t\tif (additionalErrorData != null) {\n\t\t\t\textendedErrorData = new Object[additionalErrorData.length + 1];\n\t\t\t\tfor (int i = 0; i < additionalErrorData.length; i++) {\n\t\t\t\t\textendedErrorData[i] = additionalErrorData[i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\textendedErrorData = new Object[1];\n\t\t\t}\n\t\t\textendedErrorData[extendedErrorData.length - 1] = lineNumber;\n\t\t} else {\n\t\t\tif (additionalErrorData != null) {\n\t\t\t\textendedErrorData = new Object[additionalErrorData.length];\n\t\t\t\tfor (int i = 0; i < additionalErrorData.length; i++) {\n\t\t\t\t\textendedErrorData[i] = additionalErrorData[i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\textendedErrorData = new Object[0];\n\t\t\t}\n\t\t}\n\n\t\treturn extendedErrorData;\n\t}",
"java.lang.String getField1366();",
"java.lang.String getField1382();",
"java.lang.String getField1713();",
"java.lang.String getField1873();",
"public boolean hasFieldErrors();",
"java.lang.String getField1381();",
"private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }",
"java.lang.String getField1568();",
"java.lang.String getField1202();",
"java.lang.String getField1368();",
"java.lang.String getField1513();",
"java.lang.String getField1385();",
"java.lang.String getField1269();",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"java.lang.String getField1351();",
"public void testMultipleUnknown() throws Exception\n {\n final ProtobufMapper mapper = newObjectMapper();\n\n ThreeField threeField = new ThreeField();\n threeField.setF1(1);\n threeField.setF2(2);\n threeField.setF3(3);\n\n ProtobufSchema schemaWith3 = mapper.generateSchemaFor(ThreeField.class);\n byte[] in = mapper.writer(schemaWith3)\n .writeValueAsBytes(threeField);\n\n ProtobufSchema schemaWith1 = mapper.generateSchemaFor(OneField.class);\n OneField oneField = mapper.readerFor(OneField.class).with(schemaWith1)\n // important: skip through unknown\n .with(JsonParser.Feature.IGNORE_UNDEFINED)\n .readValue(in);\n\n assertEquals(threeField.getF3(), oneField.getF3());\n }",
"java.lang.String getField1316();",
"java.lang.String getField1375();",
"java.lang.String getField1313();",
"java.lang.String getField1342();",
"java.lang.String getField1974();",
"java.lang.String getField1319();",
"java.lang.String getField1473();",
"public String[] getAdditionalErrorData() {\n\t\treturn additionalErrorData;\n\t}",
"java.lang.String getField1318();",
"java.lang.String getField1928();",
"java.lang.String getField1579();",
"java.lang.String getField1571();",
"java.lang.String getField1346();",
"java.lang.String getField1769();",
"java.lang.String getField1673();",
"java.lang.String getField1274();",
"java.lang.String getField1367();",
"java.lang.String getField1279();",
"java.lang.String getField1227();",
"java.lang.String getField1771();"
]
| [
"0.6358443",
"0.55918765",
"0.55375546",
"0.5338851",
"0.5267",
"0.52595866",
"0.5245363",
"0.5222371",
"0.5217928",
"0.5213504",
"0.52132016",
"0.5172697",
"0.5171033",
"0.51655006",
"0.5164401",
"0.51493746",
"0.5121122",
"0.5117053",
"0.50874853",
"0.50838834",
"0.5079175",
"0.5077977",
"0.50766563",
"0.50760645",
"0.50718474",
"0.50665796",
"0.50608766",
"0.50545305",
"0.50437516",
"0.5036797",
"0.50358546",
"0.50344425",
"0.5032422",
"0.5027062",
"0.50248986",
"0.5024427",
"0.5022713",
"0.5019302",
"0.5018889",
"0.5015111",
"0.50118184",
"0.50064313",
"0.50044006",
"0.50029105",
"0.50013864",
"0.500047",
"0.49998885",
"0.4997333",
"0.49959603",
"0.49947098",
"0.49934652",
"0.49928403",
"0.49921492",
"0.49911907",
"0.49864292",
"0.49857765",
"0.49839967",
"0.4982748",
"0.4982734",
"0.49820983",
"0.49800313",
"0.4978837",
"0.49782646",
"0.49778464",
"0.49772444",
"0.49768856",
"0.49765828",
"0.49749765",
"0.49739623",
"0.49738485",
"0.4973278",
"0.49730724",
"0.49728903",
"0.49724552",
"0.497123",
"0.49698997",
"0.49667278",
"0.4962501",
"0.49623555",
"0.49593258",
"0.49550352",
"0.4954747",
"0.4953354",
"0.49498037",
"0.49490875",
"0.49489254",
"0.49460024",
"0.4942783",
"0.49422708",
"0.494096",
"0.494069",
"0.49394143",
"0.49372995",
"0.49367455",
"0.4936632",
"0.49341494",
"0.4933564",
"0.49329537",
"0.49324602",
"0.4931928"
]
| 0.6011195 | 1 |
Sets the central directory part of extra fields. | public void setCentralDirectoryExtra(final byte[] b) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "89a3a99b-365b-4317-bfee-582aaa630e25");
try {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "85be46de-f133-46e2-97fa-c2bb581c965f");
final ZipExtraField[] central = ExtraFieldUtils.parse(b, false, ExtraFieldUtils.UnparseableExtraField.READ);
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "72731a66-fafa-4ef7-8d6c-3232a244d4bc");
mergeExtraFields(central, false);
} catch (final ZipException e) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "cba51103-9583-4f7a-9f89-5ab18d4dd046");
throw new RuntimeException(e.getMessage(), e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }",
"public byte[] getCentralDirectoryExtra() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4fa8d327-bc11-4fde-af7f-4ffefd98f1e4\");\n return ExtraFieldUtils.mergeCentralDirectoryData(getAllExtraFieldsNoCopy());\n }",
"@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"protected final void setExtraInfo(final String info) {\n\t\tif (info == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid extra info\");\n\t\t}\n\t\textras = info;\n\t}",
"void setDirectory(File dir);",
"public void setAdditionalInfo(String aAdditionalInfo) {\n additionalInfo = aAdditionalInfo;\n }",
"@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void addExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"04a0a86a-8034-4044-aeed-cebe7016e2d1\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6b9a9172-8ea2-4aed-8433-17b19d1a9891\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c4c62a77-912a-4047-b4bc-d8a05e95bc86\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"450fc98b-d668-4300-b141-2c5907baab75\");\n extraFields = new ZipExtraField[] { ze };\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5d8f1c11-1f27-4f98-923b-c42685d35e95\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7cc8a651-6175-4ec7-ab56-688a497910a8\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"aa062502-071a-4ff6-8692-1c1202b14fec\");\n final ZipExtraField[] zipExtraFields = copyOf(extraFields, extraFields.length + 1);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e30c5825-289a-4c05-a5ec-8c2d6bec09e8\");\n zipExtraFields[zipExtraFields.length - 1] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3f326300-d61d-4afa-ae59-fe45855b45a6\");\n extraFields = zipExtraFields;\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"944dff45-ab9b-4e44-b913-045a4e38da7a\");\n setExtra();\n }",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public void setRootDir(String rootDir);",
"public void setAsinstalldir(File asinstalldir) {\n\t\tthis.asinstalldir = asinstalldir;\n\t}",
"void setKarafInstallDir(String installDir);",
"public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }",
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }",
"public void setAdditionalInfo(String additionalInfo) {\r\n this.additionalInfo = additionalInfo;\r\n }",
"public void setRootDirectory(IDirectory rootDir) {\r\n this.rootDir = (Directory) rootDir;\r\n }",
"public void setUserPrincipalRoot(String val) {\n userPrincipalRoot = val;\n }",
"private void setupInitialValues(){\n\t\tString testDir = getTestDir();\n\t\tsetDirectoryInfoLabel(testDir);\n\t\tlastChoosedDirectory = new File(testDir);\n\t\tregexFrom.setText(sampleRegexFrom);\n\t\tregexTo.setText(sampleRegexTo);\n\t}",
"@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"@Override\n public void fillFields(CSB csb){\n projectDirTF.setText(csb.projectDir);\n zipNameTF.setText(csb.zipName);\n keepEmptyCB.setSelected(csb.keepEmpty);\n }",
"public void setAvailableExtraData(List<String> extraDataKeys) {\n/* 502 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setDerived(){\r\n \t\tif (project!=null){\r\n \t\t\tIFolder fldr=project.getFolder(DIST_FOLDER);\r\n \t\t\tif (fldr.exists()){\r\n \t\t\t\tif (!fldr.isDerived()){\r\n \t\t\t\t\tif (!project.getWorkspace().isTreeLocked()){\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\tfldr.setDerived(true,new NullProgressMonitor());\r\n \t\t\t\t\t\t\tneedSetDerivedOnDistDir=false; // ok\r\n \t\t\t\t\t\t} catch (CoreException ce){\r\n \t\t\t\t\t\t\t// log error and leave flag to false, let's hope it'll be better at next run\r\n \t\t\t\t\t\t\tBuildWrapperPlugin.logError(BWText.error_derived, ce);\r\n \t\t\t\t\t\t\tneedSetDerivedOnDistDir=false; // let's not cause errors again\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tneedSetDerivedOnDistDir=true; // tree is locked, le's try again when it's not\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tneedSetDerivedOnDistDir=false; // folder is already marked\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tneedSetDerivedOnDistDir=true; // folder doesn't exist, let's try again when it does\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }",
"public void addAsFirstExtraField(final ZipExtraField ze) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4c28d4a6-8986-40c6-b210-d044aab8251a\");\n if (ze instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3d9f9c08-e83a-436a-a8e6-86f86bd970af\");\n unparseableExtra = (UnparseableExtraFieldData) ze;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c35acbb6-3608-4438-9a3b-2e13d04a75a3\");\n if (getExtraField(ze.getHeaderId()) != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"11874c15-028a-440f-8a51-54f6de7d8834\");\n removeExtraField(ze.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1eda37ab-9698-47a7-98da-b090770a9fd5\");\n final ZipExtraField[] copy = extraFields;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"52861454-df58-45a4-a4ea-fadccf33506e\");\n final int newLen = extraFields != null ? extraFields.length + 1 : 1;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bd7052b3-7eb3-4bec-8203-290549716189\");\n extraFields = new ZipExtraField[newLen];\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f4f61f84-b9ec-4ec0-b697-37d032a7a8fb\");\n extraFields[0] = ze;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"86004d7e-add5-4495-b688-e71892b6f3ee\");\n if (copy != null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4e30f42c-8c61-4810-b892-2d8b24ce71f8\");\n System.arraycopy(copy, 0, extraFields, 1, extraFields.length - 1);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"74b18f9f-5af2-497f-a1b9-1aaa00af7a4f\");\n setExtra();\n }",
"public DynamicModelPart setExtra(float[] extra) {\n this.extra = extra;\n return this;\n }",
"void setIDPExtAttributeValues(\n String realm, \n String fedId, \n Map idpExtValues,\n String location\n ) throws AMConsoleException;",
"public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}",
"public void setAdditionalInfo(String additionalInfo) {\n this.additionalInfo = additionalInfo == null ? null : additionalInfo.trim();\n }",
"public void setDirectoryEntries( byte[][] entries )\n {\n if ( entries != null && entries.length > 0 )\n {\n // Remember the entries set.\n _currentEntries = entries;\n\n String[] values = new String[ entries.length ];\n\n for ( int i = 0 ; i < values.length ; i++ )\n values[i] = new String( entries[i] ).trim();\n\n // Create a new model for the passed entries...\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel( values );\n // ...and add that to the combo box.\n _comboBox.setModel( comboBoxModel );\n }\n else\n {\n _currentEntries = null;\n _comboBox.setModel( new DefaultComboBoxModel() );\n }\n\n setEnabled( _currentEntries != null );\n }",
"protected void setInfoFile(String[] info){\n\n }",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}",
"private void setExtractData(ObjectExtract extract) {\n this.extract = extract;\n processExtractData();\n }",
"protected void setRootPath(String root) {\n this.root = new File(root);\n this.appsDir = new File(this.root, APPS_ROOT);\n this.m2Dir = new File(M2_ROOT);\n }",
"@Override\r\n\tprotected void setSavedDirectoriesIntoControls() {\n\r\n\t}",
"@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n\t}",
"private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }",
"public void saveExtraData() {}",
"public void setDireccion(String direccion);",
"private void setLabtainersDir() throws IOException{\n String newLabtainersPath = LabtainersDirTextfield.getText();\n \n // check if labtainers path exist\n if(new File(newLabtainersPath).isDirectory()){\n pathValidLabel.setVisible(false);\n \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainersPath\", newLabtainersPath);\n\n labtainerPath = newLabtainersPath;\n updateLabtainersPath();\n \n LabtainersDirDialog.setVisible(false);\n }\n else{\n pathValidLabel.setVisible(true);\n } \n }",
"private void editLabtainersDirButton(){\n LabtainersDirTextfield.setText(labtainerPath);\n pathValidLabel.setVisible(false);\n LabtainersDirDialog.setVisible(true);\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}",
"private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}",
"public void setPrincipalRoot(String val) {\n principalRoot = val;\n }",
"void setUserData(KingdomUser user, String path, Object value);",
"public void setDir(File d) {\r\n this.dir = d;\r\n }",
"public void setAdditionalLocation(String additionalLocation) {\n\t\tthis.additionalLocation = additionalLocation;\n\t}",
"private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }",
"public void setCommonDirs(String[] dirs) {\n\n\t\t/*\n\t\t * \n\t\t * for (int i = 0; (i < dirs.length) && (i < commonDirs.length); i++) {\n\t\t * \n\t\t * commonDirs[i] = dirs[i];\n\t\t * \n\t\t * }\n\t\t * \n\t\t */\n\n\t\tint n = getMAX_DIRS();\n\n\t\tcommonDirs = new String[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tcommonDirs[i] = dirs[i];\n\n\t\t}\n\n\t}",
"private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }",
"public void setDirectoryKey(String key) {\n mDirectoryKey = key;\n }",
"public void filesLocation (String externalFolder) {\n externalStaticFileFolder = externalFolder;\n }",
"public void setLeadArtist(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), LEADARTIST, value);\r\n\t}",
"public void setExtInfo(String ExtInfo) {\n this.ExtInfo = ExtInfo;\n }",
"@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }",
"public void setRootDir(File rootDir) {\r\n\t\tthis.rootDir = rootDir;\r\n\t}",
"@ZAttr(id=590)\n public void setGalSyncLdapSearchBase(String zimbraGalSyncLdapSearchBase) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalSyncLdapSearchBase, zimbraGalSyncLdapSearchBase);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setDir(File dir) {\n this.dir = dir;\n }",
"private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }",
"public void setDireccionActual( double dir ) {\n\t\tif (dir > 360) dir = dir - 360;\r\n\t\t\tmiDireccionActual = dir;\r\n\t}",
"private void setInformation(DatabaseMetaData metaData) {\r\n try {\r\n databaseProductName = metaData.getDatabaseProductName();\r\n version = metaData.getDatabaseProductVersion();\r\n catalogSeparator = metaData.getCatalogSeparator();\r\n } catch (SQLException e) {\r\n log.warning(e.toString());\r\n }\r\n }",
"protected void setUpRoot(VitroRequest vreq, Map<String, Object> root) {\n \n root.put(\"tabMenu\", getTabMenu(vreq));\n \n Portal portal = vreq.getPortal();\n \n ApplicationBean appBean = vreq.getAppBean();\n PortalWebUtil.populateSearchOptions(portal, appBean, vreq.getWebappDaoFactory().getPortalDao());\n PortalWebUtil.populateNavigationChoices(portal, vreq, appBean, vreq.getWebappDaoFactory().getPortalDao()); \n \n addLoginInfo(vreq, root); \n \n root.put(\"copyright\", getCopyrightInfo(portal));\n \n root.put(\"siteTagline\", portal.getShortHand());\n root.put(\"breadcrumbs\", BreadCrumbsUtil.getBreadCrumbsDiv(vreq));\n \n String themeDir = getThemeDir(portal);\n \n // This value is used only in stylesheets.ftl and already contains the context path.\n root.put(\"stylesheetPath\", UrlBuilder.getUrl(themeDir + \"/css\")); \n \n String bannerImage = portal.getBannerImage(); \n if ( ! StringUtils.isEmpty(bannerImage)) {\n root.put(\"bannerImage\", UrlBuilder.getUrl(themeDir + \"site_icons/\" + bannerImage));\n }\n \n }",
"@ZAttr(id=48)\n public void setGalLdapSearchBase(String zimbraGalLdapSearchBase) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapSearchBase, zimbraGalLdapSearchBase);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"protected void populatePrincipalConnector(BasePrincipalConnector connector) {\n connector.setId(getPluginId());\n connector.setFormat(getNameIdFormat());\n \n if(getDependencyIds() != null){\n connector.getDependencyIds().addAll(getDependencyIds());\n }\n }",
"@ZAttr(id=252)\n public void setAuthLdapSearchBase(String zimbraAuthLdapSearchBase) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthLdapSearchBase, zimbraAuthLdapSearchBase);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@Override\n\tpublic void setParrentFolder(String parrentFolder) {\n\t\t\n\t}",
"public void setCommonDir(String path) throws IllegalArgumentException\n {\n ServerSettings.getInstance().setProperty(\n ServerSettings.COMMON_DIR,\n \"\"+validatePath(path)\n );\n }",
"public void setShHarvestedDataDir(String val) {\n\n\t\tthis.shHarvestedDataDir = val;\n\n\t}",
"public void setExternalAttributes(final long value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8f4b22cd-9e75-4a38-9e27-30ba1da16ade\");\n externalAttributes = value;\n }",
"private void setInfo(String newinfo){\n SFNode textField = (SFNode)getField(\"text\");\n Node textNode = (Node)textField.getValue();\n \n\n // Get the \"string\" exposed field of the Text node\n MFString stringField = (MFString)textNode.getExposedField(\"string\");\n\n // Get the name of the user. This is a privileged method call that\n // will throw an AccessControlException when we do not give this\n // script the right to read that property.\n //String username = System.getProperty(\"user.name\");\n\n // Write the user name into the \"string\" field of the Text node\n //stringField.set1Value(1, username);\n stringField.set1Value(0, newinfo);\n }",
"public void setFullDomainNameValue(YangString fullDomainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"full-domain-name\",\n fullDomainNameValue,\n childrenNames());\n }",
"public void setupDrive(){\n // Place Dove/ into base of drive\n new File(drv.toString() + File.separator + folderName).mkdir();\n //upload preset content if required\n isSetup = true;\n }",
"protected void setProperties(final UIComponent component) {\n\t\tsuper.setProperties(component); //set the default properties\n\t\tsetFileValue(component, UIInputFile.DIRECTORY_VAR, getDirectory()); //set the directory\n\t\tsetStringValue(component, UIInputFile.FILENAME_VAR, getFilename()); //set the filename\n\t}",
"public static void setLastDir(String lastDir) {\n setProperty(\"lastdir\", lastDir);\n }",
"private void setLastDir( String name, File last ) {\r\n\t\tif ( last.isDirectory() ) {\r\n\t\t\tprefs.put( PREFS_KEY+name, last.getAbsolutePath() );\r\n\t\t} else {\r\n\t\t\tprefs.put( PREFS_KEY+name, last.getParentFile().getAbsolutePath());\r\n\t\t}\r\n\t}",
"public void setDir(File dir)\n {\n this.dir = dir;\n }",
"void setAppRootDirectory(String rootDir);",
"public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }",
"private static void addDirectoryToLibraryPath(String dir) throws IOException {\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path: paths) {\n if (dir.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = dir;\n field.set(null, tmp);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path.\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path.\");\n }\n }",
"public GitDir(WebFile aGitDir) { _gdir = aGitDir; }",
"public void setVenuePrincipalRoot(String val) {\n venuePrincipalRoot = val;\n }",
"void setSPExtAttributeValues(\n String realm, \n String fedId, \n Map spExtvalues,\n String location\n ) throws AMConsoleException;",
"public void setExtra1(String extra1) {\n this.extra1 = extra1;\n }",
"protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}",
"private void setFolderProperty(PSPubServer server, PSPublishServerInfo pubServerInfo, IPSSite site)\n {\n String ownServerFlagVal = pubServerInfo.findProperty(OWN_SERVER_FLAG);\n String defaultServerVal = pubServerInfo.findProperty(DEFAULT_SERVER_FLAG);\n String publishFolderVal = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n String ownServerVal = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY);\n\n Boolean isOwnServerSet = Boolean.parseBoolean(ownServerFlagVal);\n Boolean isDefaultServerSet = Boolean.parseBoolean(defaultServerVal);\n\n setFolderProperty(server, site, publishFolderVal, isOwnServerSet, ownServerVal, isDefaultServerSet);\n }",
"public void setAllFiles(HashMap<String, String> allFiles) {\n _allFiles = allFiles;\n }",
"@Override\n public void setValue(ImportPath o, String value) {\n o.prefix = LEADING_TRAILING_SLASHES.matcher(value.trim()).replaceAll(\"\");\n }",
"private void resetFields(){\n\t\tsetDirectoryInfoLabel(\"\");\n\t\tregexFrom.setText(\"\");\n\t\tregexTo.setText(\"\");\n\t\ttextArea.setText(\"\");\n\t\tlastChoosedDirectory = null;\n\t\tcheckboxSaveStateOn.setEnabled(false);\n\t\tsetMessage(translations.getFieldsHasBeenReset());\n\t}",
"public void setInfo(String nombre, String apellidos, String telefono,\n String direccion) {\n _nombre = nombre;\n _apellidos = apellidos;\n _telefono = telefono;\n _direccion = direccion;\n }",
"private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}",
"void populateGeneralData(ArtifactoryRestRequest artifactoryRestRequest, AuthorizationService authService);",
"protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }",
"public void setExtraMap(Map<Object, Object> extraMap) {\n this.extraMap = extraMap;\n }",
"public void setFields(CacheHolder ch) {\r\n\t\tif (!ch.getWayPoint().equalsIgnoreCase(lastWaypoint)) {\r\n\t\t\tlastWaypoint = ch.getWayPoint();\r\n\t\t\tif (ch.getPos().isValid()) {\r\n\t\t\t\tinpBearing.setText(\"0\");\r\n\t\t\t\tinpDistance.setText(\"0\");\r\n\t\t\t\tcoordInp.set(ch.getPos());\r\n\t\t\t\tsetFields();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }",
"@Override\n\tpublic void setAuth(final String authType, final String extUID, final String extData, final long extDataExpire) {\n\t\t\n\t}"
]
| [
"0.5417416",
"0.53546274",
"0.53078866",
"0.5207588",
"0.5088297",
"0.49897018",
"0.49830192",
"0.4927909",
"0.49118617",
"0.4909161",
"0.48924723",
"0.48480323",
"0.48298067",
"0.482756",
"0.4824216",
"0.4824096",
"0.48094317",
"0.47992796",
"0.47762185",
"0.47731265",
"0.47712424",
"0.4763559",
"0.47592583",
"0.47569287",
"0.47432566",
"0.47381896",
"0.47342378",
"0.47231367",
"0.47135198",
"0.47016835",
"0.47002867",
"0.46977273",
"0.46876594",
"0.46793833",
"0.4673847",
"0.46600157",
"0.46506515",
"0.46506196",
"0.46456516",
"0.46449643",
"0.46432677",
"0.46421975",
"0.46314812",
"0.46272743",
"0.46212628",
"0.4615502",
"0.46114218",
"0.45898548",
"0.45726454",
"0.45698977",
"0.45657203",
"0.45640832",
"0.45383835",
"0.45362982",
"0.45238927",
"0.4519062",
"0.45092922",
"0.45078233",
"0.4503961",
"0.45001835",
"0.44984683",
"0.44979066",
"0.44900137",
"0.4488478",
"0.44845018",
"0.44800046",
"0.4477774",
"0.44711906",
"0.4467839",
"0.44495514",
"0.44452706",
"0.44424736",
"0.4441003",
"0.44284165",
"0.44187889",
"0.44186747",
"0.4415912",
"0.44121173",
"0.44112334",
"0.44110534",
"0.4410379",
"0.44065985",
"0.44061944",
"0.4402529",
"0.4391781",
"0.43915883",
"0.4389147",
"0.43872756",
"0.43835166",
"0.4383207",
"0.43771335",
"0.43746734",
"0.4374663",
"0.4374411",
"0.43742433",
"0.43734583",
"0.43694335",
"0.43611374",
"0.43585196",
"0.43583822"
]
| 0.65665096 | 0 |
Retrieves the extra data for the local file data. | public byte[] getLocalFileDataExtra() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "0a848c50-13a5-41b9-817e-28d7235fee87");
final byte[] extra = getExtra();
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "1f7ca2fd-527c-4d39-9a26-89a6c51e4dca");
return extra != null ? extra : EMPTY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public File getDataFile();",
"public String getAdditionalData() {\n return additionalData;\n }",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"public UnparseableExtraFieldData getUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a945f49c-9e0e-4d61-96d9-614c3b2abe51\");\n return unparseableExtra;\n }",
"public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}",
"public Map<String, String> getAdditionalData() {\n return additionalData;\n }",
"public void getData() {\n\t\tContext context = getApplicationContext();\n\t\tint ch;\n\t\tStringBuffer fileContent = new StringBuffer(\"\");\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = context.openFileInput(filename);\n\t\t\ttry {\n\t\t\t\twhile ((ch = fis.read()) != -1)\n\n\t\t\t\t\tfileContent.append((char) ch);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdata = new String(fileContent);\n\n\t}",
"public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }",
"public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}",
"public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"com.google.protobuf.ByteString getExtra();",
"@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }",
"private void getExtractWithFiles(){\n\t\ttry{\n\t\t\t\n\t\t\tFileInputStream fStream = new FileInputStream(tfile);\n\t\t\tfileBytes = new byte[(int)tfile.length()];\n\t\t\t\n\t\t\tfStream.read(fileBytes, 0, fileBytes.length);\n\t\t\tfileSize = fileBytes.length;\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(\"File Packet \"+ex.getMessage());\n\t\t}\n\t}",
"public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public byte[] getAdditionalInternalData() {\n\t\treturn this.additionalIntData;\n\t}",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }",
"public InputStream getOptionalData() throws StandardException;",
"com.google.protobuf.ByteString\n getExtraBytes();",
"public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }",
"public File getDataFile(String filename) {\n throw new UnsupportedOperationException();\n }",
"String getAdditionalInfo();",
"private HTTPFileArgs getHTTPFileArgs() {\n return (HTTPFileArgs) getProperty(FILE_ARGS).getObjectValue();\n }",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"public String getAdditionalInfo() {\r\n return additionalInfo;\r\n }",
"public File getAttributeFile();",
"protected Map<String, Object> getExtraData(HttpServletRequest request) {\n\n HashMap<String, Object> extraData = new HashMap<String, Object>();\n extraData.put(ProcessListener.EXTRA_DATA_RESOURCE_BUNDLE, getResourceBundle(request));\n extraData.put(ProcessListener.EXTRA_DATA_SETTINGS, getSettings(request));\n extraData.put(ProcessListener.EXTRA_DATA_USER, getUser(request));\n extraData.put(ProcessListener.EXTRA_DATA_IDPROJECT, getIdProject(request));\n\n return extraData;\n }",
"public void fileInfo(String info);",
"public String getExtra() {\n Object ref = extra_;\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 extra_ = s;\n return s;\n }\n }",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"public String[] getInfoFile(){\n String [] values = new String[4];\n values[0]= _file.getName(); //nombre\n values[1]= cities.size()+\"\";//ciudades\n values[2]= paths.length+\"\";\n return values;\n }",
"public PDExternalDataDictionary getExternalData() {\n/* 350 */ COSBase exData = getCOSObject().getDictionaryObject(\"ExData\");\n/* 351 */ if (exData instanceof COSDictionary)\n/* */ {\n/* 353 */ return new PDExternalDataDictionary((COSDictionary)exData);\n/* */ }\n/* 355 */ return null;\n/* */ }",
"public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Map<String, String> getOrCreateAdditionalData() {\n if (this.getAdditionalData() == null) {\n this.setAdditionalData(new HashMap<String, String>());\n }\n\n return this.getAdditionalData();\n }",
"File getFile() { return user_file; }",
"public byte[] getCentralDirectoryExtra() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4fa8d327-bc11-4fde-af7f-4ffefd98f1e4\");\n return ExtraFieldUtils.mergeCentralDirectoryData(getAllExtraFieldsNoCopy());\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"String getExtra();",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"protected final DBFileInfo getFileDetails(String path, DBDeviceContext dbCtx) {\n return getFileDetails(path, dbCtx, null);\n }",
"public java.lang.String[] getNewFiles(){\r\n return localNewFiles;\r\n }",
"@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"public File getProgressData() {\n return progressData;\n }",
"private void readPreferences() {\r\n \t\tSharedPreferences sp = getSharedPreferences(SPN, MODE_PRIVATE);\r\n \t\t// set listener to this\r\n \t\tsp.registerOnSharedPreferenceChangeListener(this);\r\n \t\t// read shared preferences to get data file\r\n \t\tdataFile = sp.getString(res.getString(R.string.pref_data_file_key),\r\n \t\t\t\tnull);\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Data file is \" + dataFile);\r\n \t\t}\r\n \t\tif (dataFile == null)\r\n \t\t\treturn;\r\n \t\t// read if data file is compressed\r\n \t\tgzipFile = sp.getBoolean(res.getString(R.string.pref_data_file_gzip),\r\n \t\t\t\tfalse);\r\n \t}",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"@Override\n\tprotected String getFileArress() {\n\t\treturn fileAddress;\n\t}",
"@Override\n\tpublic String fileInfo(int product_id) {\n\t\treturn null;\n\t}",
"@Override\r\n protected String getDiskLocation()\r\n {\r\n return dataFile.getFilePath();\r\n }",
"public IConfigAdditionalData provideAdditionalData();",
"public List<String> getAvailableExtraData() {\n/* 483 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private JSONObject loadMetadata(Path extensionResourcePath) throws ExtensionManagementException {\n\n Path metadataPath = extensionResourcePath.resolve(METADATA_FILE_NAME);\n if (Files.exists(metadataPath) && Files.isRegularFile(metadataPath)) {\n return readJSONFile(metadataPath);\n }\n return null;\n }",
"public String getDataFileName() {\treturn dataFileName;\t}",
"public String getCustomData()\n\t{\n\t\tif (mLastBundle == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn mLastBundle.getString(\"u\");\n\t}",
"public String getDataFileName() {\n return dataFileName;\n }",
"public String getAdditionalInformation() {\n return additionalInformation;\n }",
"public VersionedMap getExtra ()\n {\n return extra;\n }",
"public String getExtInfo() {\n return this.ExtInfo;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"public String getDataPath() {\n\t\treturn \"data\";\r\n\t}",
"public void getLocalDatas(File root) {\n \n //remove all\n clearList();\n \n //continues until the last elem is added\n for (File elem : root.listFiles()) {\n if (!elem.isDirectory()) {\n \n //gets the Name of the file\n String name = elem.getName();\n \n //calls the static Method calcFileSize() to calculate the size of the file\n double size = CalculateFileSize.calcFileSize(elem);\n add(new DataFile(name, size));\n }\n }\n super.fireTableDataChanged();\n }",
"public File getDataSaveFile() {\n return dataSaveFile;\n }",
"DatasetFile getDatasetFile();",
"public FileInfo getFileInfo() {\n return fileInfo;\n }",
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"protected List<Info> getInfo() {\n\n return (List<Info>) getExtraData().get(ProcessListener.EXTRA_DATA_INFO);\n }",
"@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }",
"@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }",
"@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }",
"@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }",
"public int getFileFlags() { return fileFlags; }",
"public void getFile(byte[] data, String name,String server) throws RemoteException;",
"private RandomAccessFile getDataFile(int eIndex, int tIndex) throws IOException {\n\n String dataFilePath = gradsDDF.getFileName(eIndex, tIndex);\n if (!gradsDDF.isTemplate()) { // we only have one file\n if (dataFile != null) {\n return dataFile;\n }\n }\n if (dataFile != null) {\n String path = dataFile.getLocation();\n if (path.equals(dataFilePath)) {\n return dataFile;\n } else {\n dataFile.close();\n }\n }\n dataFile = RandomAccessFile.acquire(dataFilePath);\n dataFile.order(getByteOrder());\n return dataFile;\n }",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"@Override\n public RavenJObject getAdditionalData() {\n return additionalData;\n }",
"public String getDataFileExtension() {\r\n return dataFileExtension;\r\n }",
"public void saveExtraData() {}",
"public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}",
"private void mergeExtraFields(final ZipExtraField[] f, final boolean local) throws ZipException {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4660ef72-97af-4c77-a8c0-451c0176ea1f\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fc349413-df04-4074-b3da-fdacb54199ad\");\n setExtraFields(f);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"4b996740-6cfc-4dbf-b3af-764a31cbfe77\");\n for (final ZipExtraField element : f) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"bacdc8b5-2a38-484f-aa61-b042212a08c4\");\n ZipExtraField existing;\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"d08c42a0-26d8-46ea-bb0e-aa534ce634f2\");\n if (element instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e96717ff-128b-4b11-aa83-243e5cdd44ba\");\n existing = unparseableExtra;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"611a8005-5c56-445f-b013-ae0feef0b77f\");\n existing = getExtraField(element.getHeaderId());\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cc9ae2dd-d591-403f-bfc0-3565f7413957\");\n if (existing == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b3059034-a6ec-4f5c-92ab-02329c1e2936\");\n addExtraField(element);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"9cf4a3a6-31a3-468f-b1d1-797ef9894394\");\n if (local) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"32f3d1f3-8ae4-4c18-8839-1c1fb6a4aaa5\");\n final byte[] b = element.getLocalFileDataData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"532ad3fc-c060-4f5d-9f0e-6b3aca602760\");\n existing.parseFromLocalFileData(b, 0, b.length);\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"31ca8fd7-a4ff-49df-88a1-30617762fb79\");\n final byte[] b = element.getCentralDirectoryData();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"f2794a07-51ae-4509-8ae5-c37f1cff97cd\");\n existing.parseFromCentralDirectoryData(b, 0, b.length);\n }\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0f523d07-2102-4c81-b83c-cf863a880764\");\n setExtra();\n }\n }",
"private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }",
"com.google.protobuf.ByteString\n getFileLocBytes();",
"public Set<String> getAdditionals() {\n\t\tif (additionals == null || additionals.isEmpty())\n\t\t\tadditionals = getAdditionalsFromMiapes();\n\t\tif (additionals != null && !additionals.isEmpty()) {\n\t\t\tfinal Set<String> ret = new THashSet<String>();\n\t\t\tfor (final String additional : additionals) {\n\t\t\t\tret.add(ProteomeXchangeFilev2_1.MTD + TAB + \"additional\" + TAB + additional);\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String readMetadataFile(String packageName) {\n\t\treturn null;\r\n\t}",
"public String[] getInfoData();",
"public ObservableList<MapItemData> getAdditionalData() {\n\n\t\treturn additionalData;\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic static Vector<MyData> getData(File actualFile){\n\t\tVector<MyData> data = new Vector<MyData>();\n\t\ttry {\n\t\t\tObjectInputStream in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(actualFile)));\n\t\t\tdata = (Vector<MyData>)in.readObject();\n\t\t\tin.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\treturn data;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn data;\n\t}",
"HFileContext getFileContext();",
"HFileContext getFileContext();",
"public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }",
"public String[] getAdditionalErrorData() {\n\t\treturn additionalErrorData;\n\t}",
"@Override\n\tprotected InputStream getData(GFile file, TaskMonitor monitor)\n\t\t\tthrows IOException, CancelledException, CryptoException {\n\n\t\tISO9660Directory dir = fileToDirectoryMap.get(file);\n\t\tInputStream inputStream = dir.getDataBytes(provider, logicalBlockSize);\n\n\t\treturn inputStream;\n\t}",
"@ApiModelProperty(example = \"\\\"\\\"\", required = true, value = \"Sets additional data to be embedded in PDF Meta.\")\n @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getAdditionalDataField() {\n return additionalDataField;\n }"
]
| [
"0.62542033",
"0.60825014",
"0.590288",
"0.58283925",
"0.5811762",
"0.5801205",
"0.5797256",
"0.57674795",
"0.57636935",
"0.5747445",
"0.5701977",
"0.5682468",
"0.5662467",
"0.5652325",
"0.56479555",
"0.5647585",
"0.5605675",
"0.55889386",
"0.5538983",
"0.55153763",
"0.55084723",
"0.54983944",
"0.5497802",
"0.54829353",
"0.54394704",
"0.5428268",
"0.54182416",
"0.53792274",
"0.5347497",
"0.5340835",
"0.5306967",
"0.5305251",
"0.53051746",
"0.52997553",
"0.5295927",
"0.52851605",
"0.52851605",
"0.52824724",
"0.5251072",
"0.52292603",
"0.52163523",
"0.5204404",
"0.51856005",
"0.5181899",
"0.5166352",
"0.51598203",
"0.5157624",
"0.5149953",
"0.514624",
"0.5124458",
"0.5124458",
"0.5122502",
"0.5122105",
"0.5121702",
"0.51208043",
"0.51124215",
"0.51052517",
"0.5104739",
"0.5101121",
"0.50791144",
"0.50773776",
"0.5056873",
"0.5056265",
"0.5055307",
"0.50541884",
"0.5046353",
"0.5037294",
"0.5012152",
"0.50009924",
"0.49991536",
"0.49931794",
"0.49920106",
"0.49915755",
"0.4989921",
"0.49820736",
"0.49820736",
"0.4979101",
"0.4979101",
"0.49785554",
"0.4965444",
"0.49652213",
"0.49633202",
"0.49543557",
"0.49524105",
"0.4949492",
"0.49471048",
"0.49433094",
"0.49227288",
"0.49207854",
"0.49069974",
"0.49011025",
"0.48838758",
"0.4880261",
"0.48734325",
"0.48697597",
"0.48697597",
"0.48602036",
"0.4856696",
"0.48530945",
"0.48504162"
]
| 0.75742704 | 0 |
Retrieves the extra data for the central directory. | public byte[] getCentralDirectoryExtra() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "4fa8d327-bc11-4fde-af7f-4ffefd98f1e4");
return ExtraFieldUtils.mergeCentralDirectoryData(getAllExtraFieldsNoCopy());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] getLocalFileDataExtra() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0a848c50-13a5-41b9-817e-28d7235fee87\");\n final byte[] extra = getExtra();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"1f7ca2fd-527c-4d39-9a26-89a6c51e4dca\");\n return extra != null ? extra : EMPTY;\n }",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"public Map<String, String> getAdditionalData() {\n return additionalData;\n }",
"String getAdditionalInfo();",
"public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}",
"public String getAdditionalData() {\n return additionalData;\n }",
"public String getAdditionalInfo() {\r\n return additionalInfo;\r\n }",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"public String getAdditionalInfo() {\n return additionalInfo;\n }",
"protected Map<String, Object> getExtraData(HttpServletRequest request) {\n\n HashMap<String, Object> extraData = new HashMap<String, Object>();\n extraData.put(ProcessListener.EXTRA_DATA_RESOURCE_BUNDLE, getResourceBundle(request));\n extraData.put(ProcessListener.EXTRA_DATA_SETTINGS, getSettings(request));\n extraData.put(ProcessListener.EXTRA_DATA_USER, getUser(request));\n extraData.put(ProcessListener.EXTRA_DATA_IDPROJECT, getIdProject(request));\n\n return extraData;\n }",
"public VersionedMap getExtra ()\n {\n return extra;\n }",
"public IConfigAdditionalData provideAdditionalData();",
"public String getAdditionalInformation() {\n return additionalInformation;\n }",
"@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}",
"public String getExtInfo() {\n return this.ExtInfo;\n }",
"public Map<Object, Object> getExtraMap() {\n return extraMap;\n }",
"protected List<Info> getInfo() {\n\n return (List<Info>) getExtraData().get(ProcessListener.EXTRA_DATA_INFO);\n }",
"private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }",
"public Map<String, String> getOrCreateAdditionalData() {\n if (this.getAdditionalData() == null) {\n this.setAdditionalData(new HashMap<String, String>());\n }\n\n return this.getAdditionalData();\n }",
"String getExtra();",
"ApplicationData getActualAppData();",
"public UnparseableExtraFieldData getUnparseableExtraFieldData() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a945f49c-9e0e-4d61-96d9-614c3b2abe51\");\n return unparseableExtra;\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"@Override\n public RavenJObject getAdditionalData() {\n return additionalData;\n }",
"@Override // com.android.settings.applications.AppStateBaseBridge\n public void loadAllExtraInfo() {\n ArrayList<ApplicationsState.AppEntry> allApps = this.mAppSession.getAllApps();\n for (int i = 0; i < allApps.size(); i++) {\n ApplicationsState.AppEntry appEntry = allApps.get(i);\n ApplicationInfo applicationInfo = appEntry.info;\n updateExtraInfo(appEntry, applicationInfo.packageName, applicationInfo.uid);\n }\n }",
"protected Map<String, Object> getAdditionalProperties()\n {\n return additionalProperties;\n }",
"Map<String, Object> extras();",
"public void setCentralDirectoryExtra(final byte[] b) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"89a3a99b-365b-4317-bfee-582aaa630e25\");\n try {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"85be46de-f133-46e2-97fa-c2bb581c965f\");\n final ZipExtraField[] central = ExtraFieldUtils.parse(b, false, ExtraFieldUtils.UnparseableExtraField.READ);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"72731a66-fafa-4ef7-8d6c-3232a244d4bc\");\n mergeExtraFields(central, false);\n } catch (final ZipException e) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"cba51103-9583-4f7a-9f89-5ab18d4dd046\");\n throw new RuntimeException(e.getMessage(), e);\n }\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"public ObservableList<MapItemData> getAdditionalData() {\n\n\t\treturn additionalData;\n\n\t}",
"public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }",
"public Map<String, String> getExtraHeaders() {\n return Collections.unmodifiableMap(extraHeaders);\n }",
"Map<String, Object> getAllMetadata();",
"private List<String> getExtendedDeviceInfo(IBuildInfo buildInfo) {\n List<String> extendedDeviceInfo = new ArrayList<>();\n File deviceInfoPath = buildInfo.getFile(DeviceInfoCollector.DEVICE_INFO_DIR);\n if (deviceInfoPath == null || !deviceInfoPath.exists()) {\n CLog.w(\"Device Info directory was not created (Make sure you are not running plan \" +\n \"\\\"*ts-dev\\\" or including option -d/--skip-device-info)\");\n return extendedDeviceInfo;\n }\n List<String> requiredDeviceInfo = null;\n try {\n requiredDeviceInfo = DynamicConfigFileReader.getValuesFromConfig(\n buildInfo, getSuiteName(), DYNAMIC_CONFIG_EXTENDED_DEVICE_INFO_KEY);\n } catch (XmlPullParserException | IOException e) {\n CLog.e(\"Failed to pull business logic Extended DeviceInfo from dynamic config. \"\n + \"Error: %s\", e);\n return extendedDeviceInfo;\n }\n File ediFile = null;\n String[] fileAndKey = null;\n try{\n for (String ediEntry: requiredDeviceInfo) {\n fileAndKey = ediEntry.split(\":\");\n if (fileAndKey.length <= 1) {\n CLog.e(\"Dynamic config Extended DeviceInfo key has problem.\");\n return new ArrayList<>();\n }\n ediFile = FileUtil\n .findFile(deviceInfoPath, fileAndKey[0] + \".deviceinfo.json\");\n if (ediFile == null) {\n CLog.e(\n \"Could not find Extended DeviceInfo JSON file: %s.\",\n deviceInfoPath + fileAndKey[0] + \".deviceinfo.json\");\n return new ArrayList<>();\n }\n String jsonString = FileUtil.readStringFromFile(ediFile);\n JSONObject jsonObj = new JSONObject(jsonString);\n String value = jsonObj.getString(fileAndKey[1]);\n extendedDeviceInfo\n .add(String.format(\"%s:%s:%s\", fileAndKey[0], fileAndKey[1], value));\n }\n }catch(JSONException | IOException | RuntimeException e){\n CLog.e(\n \"Failed to read or parse Extended DeviceInfo JSON file: %s. Error: %s\",\n deviceInfoPath + fileAndKey[0] + \".deviceinfo.json\", e);\n return new ArrayList<>();\n }\n return extendedDeviceInfo;\n }",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);",
"public Path getDataDirectory();",
"public com.google.protobuf.ByteString\n getExtraBytes() {\n Object ref = extra_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n extra_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDataDirectory() {\n return dataDirectory;\n }",
"DiscDirectoryInfo getDirectoryInfo(String path) throws IOException;",
"DataStoreInfo getUserDataStoreInfo();",
"Map<String, Long> getAdminFileExtensionStats();",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"private ZipEntry parseCentralDirectoryEntry() throws IOException {\n // Positions the archive at the \"compressed size\" and read the value.\n skipBytes(ZipConstants.CENSIZ - ZipConstants.CENVEM);\n long compressSize = getInt();\n\n // Positions the archive at the \"filename length\" and read the value.\n skipBytes(ZipConstants.CENNAM - ZipConstants.CENLEN);\n int fileNameLen = getShort();\n\n // Reads the extra field length and the comment length.\n int extraLen = getShort();\n int commentLen = getShort();\n\n // Positions the archive at the \"local file header offset\" and read the value.\n skipBytes(ZipConstants.CENOFF - ZipConstants.CENDSK);\n long localHeaderOffset = getInt();\n\n // Reads the file name.\n byte[] fileNameBuf = new byte[fileNameLen];\n archive.read(ByteBuffer.wrap(fileNameBuf));\n String fileName = new String(fileNameBuf, Charset.forName(\"UTF-8\"));\n\n // Skips the extra field and the comment.\n skipBytes(extraLen + commentLen);\n\n ZipEntry entry = new ZipEntry();\n entry.setSize(compressSize);\n entry.setLocalHeaderOffset(localHeaderOffset);\n entry.setName(fileName);\n\n return entry;\n }",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"private JSONObject loadMetadata(Path extensionResourcePath) throws ExtensionManagementException {\n\n Path metadataPath = extensionResourcePath.resolve(METADATA_FILE_NAME);\n if (Files.exists(metadataPath) && Files.isRegularFile(metadataPath)) {\n return readJSONFile(metadataPath);\n }\n return null;\n }",
"public abstract List<String> getAdditionalAccessions();",
"Map<String, Object> getPermStorage();",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"protected String[] getUserData(){\n if (Utilities.isWindows()) {\n ArrayList<String> result = new ArrayList<String>();\n String localAppData = System.getenv(\"LOCALAPPDATA\"); // NOI18N\n if (localAppData != null) {\n result.add(localAppData+\"\\\\Google\\\\Chrome\\\\User Data\");\n } else {\n localAppData = Utils.getLOCALAPPDATAonWinXP();\n if (localAppData != null) {\n result.add(localAppData+\"\\\\Google\\\\Chrome\\\\User Data\");\n }\n }\n String appData = System.getenv(\"APPDATA\"); // NOI18N\n if (appData != null) {\n // we are in C:\\Documents and Settings\\<username>\\Application Data\\ on XP\n File f = new File(appData);\n if (f.exists()) {\n String fName = f.getName();\n // #219824 - below code will not work on some localized WinXP where\n // \"Local Settings\" name might be \"Lokale Einstellungen\";\n // no harm if we try though:\n f = new File(f.getParentFile(),\"Local Settings\");\n f = new File(f, fName);\n if (f.exists()) {\n result.add(f.getPath()+\"\\\\Google\\\\Chrome\\\\User Data\");\n }\n }\n }\n return result.toArray(new String[result.size()]);\n }\n else if (Utilities.isMac()) {\n return Utils.getUserPaths(\"/Library/Application Support/Google/Chrome\");// NOI18N\n }\n else {\n return Utils.getUserPaths(\"/.config/google-chrome\", \"/.config/chrome\");// NOI18N\n }\n }",
"public Marble getExtraMarket(){\n return market.getExtra();\n }",
"public Bundle getExtras() {\n return mBundle.getBundle(KEY_EXTRAS);\n }",
"public IPath[] getAdditionalResources();",
"private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}",
"public String getExtraOptions() {\n return this.extraOptions;\n }",
"public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }",
"void populateGeneralData(ArtifactoryRestRequest artifactoryRestRequest, AuthorizationService authService);",
"Map<String, String> getCustomMetadata();",
"public byte[] getAdditionalInternalData() {\n\t\treturn this.additionalIntData;\n\t}",
"public File getDataFolder() {\n return dataFolder;\n }",
"public ListaAttributi getExtra() {\r\n return this.extra;\r\n }",
"private JSONObject joinAdditionalData() {\n JSONObject additionalData = new JSONObject();\n\n try {\n if (mMessageChannel != null) {\n additionalData.put(IPC_MESSAGE_DATA_CHANNELBASEURL,\n \"ws://\" + mFlintServerIp + \":9439/channels/\"\n + mMessageChannel.getName());\n }\n\n if (mCustAdditionalData != null) {\n additionalData.put(\"customData\", mCustAdditionalData);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (additionalData.length() > 0) {\n return additionalData;\n }\n\n return null;\n }",
"public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}",
"public String[] getInfoData();",
"com.google.protobuf.ByteString\n getExtraBytes();",
"public IConfigAdditionalData provideFormattedAdditionalData(WorldInfo worldInfo);",
"private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }",
"java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();",
"java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();",
"java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();",
"java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();",
"java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();",
"void doGetAdminInfo() {\n\t\tlog.config(\"doGetAdminInfo()...\");\n\t\tthis.rpcService.getAdminInfo(new AsyncCallback<DtoAdminInfo>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tString errorMessage = \"Error when getting admin info! : \" + caught.getMessage();\n\t\t\t\tlog.severe(errorMessage);\n\t\t\t\tgetAdminPanel().setActionResult(errorMessage, ResultType.error);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(DtoAdminInfo adminInfo) {\n\t\t\t\tlog.config(\"getAdminInfo() on success - \" + adminInfo.getListLogFilenames().size() + \" logs filenames.\");\n\t\t\t\tgetAdminPanel().setAdminInfo(adminInfo);\n\t\t\t}\n\t\t});\n\t}",
"Properties getExtensionProperties(Object metadataID) throws Exception;",
"public void setAvailableExtraData(List<String> extraDataKeys) {\n/* 502 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}",
"public Entry[] getLookupAttributes() throws RemoteException {\n\t\treturn mgr.getAttributes();\n\t}",
"public String getDataDir() {\n\t\treturn dataDir;\n\t}",
"protected CallbackResult handleCommandRequestConfigFilesResp(String extra) throws RobotCoreException {\n fileList = robotConfigFileManager.deserializeXMLConfigList(extra);\n warnIfNoFiles();\n populate();\n return CallbackResult.HANDLED;\n }",
"public void saveExtraData() {}",
"public Bundle extra() {\n if (mExtra == null)\n mExtra = new Bundle();\n return mExtra;\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"public HashMap<String, String> getAllFiles() {\n return _allFiles;\n }",
"public List<String> getAvailableExtraData() {\n/* 483 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@NonNull\n final public Map<String, Object> getExtras() {\n return new HashMap<String, Object>(mExtras);\n }",
"Information getInfo();",
"public PDExternalDataDictionary getExternalData() {\n/* 350 */ COSBase exData = getCOSObject().getDictionaryObject(\"ExData\");\n/* 351 */ if (exData instanceof COSDictionary)\n/* */ {\n/* 353 */ return new PDExternalDataDictionary((COSDictionary)exData);\n/* */ }\n/* 355 */ return null;\n/* */ }",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"public String[] getAdditionalErrorData() {\n\t\treturn additionalErrorData;\n\t}",
"public static String[] getInfo(){\n\t\n\t\treturn new String[]{\n\t\t\t\t\"plugin_name\",\n\t\t\t\t\"plugin_host\",\n\t\t\t\t\"plugin_version\",\n\t\t\t\t\"plugin_author\"\n\t\t};\n\t\t\t\t\n\t}",
"public List<String> getExtraOpts() {\r\n \t\treturn extraOpts;\r\n \t}",
"com.google.protobuf.ByteString getExtra();",
"public String getInfo() {\n\t\t\n\t\treturn this.appTda_.getInfo( 0 );\n\t}",
"public abstract String globalInfo();",
"private SensorData collectFSInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting File System Information\");\n }\n \n SensorData data = new SensorData();\n \n FileSystem[] fileSystems = sigar.getFileSystemList();\n \n List<FileSystemInfo> fsInfoList = new ArrayList<FileSystemInfo>();\n \n for (FileSystem fs : fileSystems) {\n \n FileSystemInfo info = new FileSystemInfo();\n \n info.setDiskName(fs.getDevName());\n info.setLocation(fs.getDirName());\n info.setType(fs.getSysTypeName());\n \n FileSystemUsage fsu = sigar.getFileSystemUsage(fs.getDirName());\n \n info.setTotalMB(fsu.getTotal() / 1024);\n info.setUsedMB(fsu.getUsed() / 1024);\n \n fsInfoList.add(info);\n }\n \n data.add(SensorAttributeConstants.FileSystemConstants.FS_DATA, fsInfoList);\n \n return data;\n }",
"private ExtensionInfo loadExtensionInfo(Path extensionResourcePath) throws ExtensionManagementException {\n\n Path infoPath = extensionResourcePath.resolve(INFO_FILE_NAME);\n if (Files.exists(infoPath) && Files.isRegularFile(infoPath)) {\n try {\n String infoJsonString = FileUtils.readFileToString(infoPath.toFile(), UTF8);\n JSONObject infoJson = new JSONObject(infoJsonString);\n return new JSONObjectToExtensionInfo().apply(infoJson);\n } catch (JSONException e) {\n throw new ExtensionManagementException(\"Error while parsing info.json file in: \" +\n extensionResourcePath, e);\n } catch (IOException e) {\n throw new ExtensionManagementException(\"Error while reading info.json file in: \" +\n extensionResourcePath, e);\n }\n } else {\n log.warn(\"Info file not found in: \" + extensionResourcePath);\n return null;\n }\n }",
"public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}",
"public String getExtensionAttributes()\n {\n return extensionAttributes;\n }",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"public String[] getInfoFile(){\n String [] values = new String[4];\n values[0]= _file.getName(); //nombre\n values[1]= cities.size()+\"\";//ciudades\n values[2]= paths.length+\"\";\n return values;\n }"
]
| [
"0.62361103",
"0.6204722",
"0.6086071",
"0.6085231",
"0.5984515",
"0.5913189",
"0.58886015",
"0.58653027",
"0.58653027",
"0.5706448",
"0.56977993",
"0.5649904",
"0.5551234",
"0.5539884",
"0.5507175",
"0.5471782",
"0.542617",
"0.53422475",
"0.5270362",
"0.5261338",
"0.524086",
"0.52222896",
"0.5219734",
"0.52193487",
"0.5210825",
"0.5210215",
"0.5208119",
"0.52068293",
"0.51927215",
"0.5139204",
"0.51289505",
"0.5089753",
"0.5039968",
"0.50372285",
"0.5011111",
"0.4997206",
"0.49902782",
"0.49882078",
"0.49820578",
"0.49803886",
"0.49791238",
"0.49763674",
"0.4971299",
"0.49503607",
"0.4931091",
"0.49175003",
"0.49135408",
"0.4912044",
"0.48881158",
"0.48691946",
"0.48676416",
"0.48646495",
"0.48623174",
"0.4855649",
"0.4848277",
"0.48456368",
"0.4831426",
"0.48276964",
"0.48127547",
"0.4812406",
"0.48105782",
"0.48083347",
"0.48062527",
"0.48046002",
"0.48042136",
"0.48008755",
"0.47965783",
"0.47810474",
"0.47810474",
"0.47810474",
"0.47810474",
"0.47810474",
"0.47780806",
"0.47589198",
"0.47585464",
"0.47578838",
"0.4744505",
"0.47438765",
"0.47354704",
"0.47333118",
"0.4732816",
"0.47282714",
"0.47217518",
"0.47197133",
"0.47169346",
"0.47098836",
"0.4709353",
"0.46997008",
"0.46988577",
"0.4694858",
"0.46875116",
"0.46853194",
"0.4680964",
"0.4680294",
"0.4678303",
"0.467777",
"0.46727675",
"0.4670712",
"0.4662493",
"0.4662016"
]
| 0.70508265 | 0 |
Get the name of the entry. | @Override
public String getName() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "9f48d6b7-640e-4370-9625-0cdc9bbeef0b");
return name == null ? super.getName() : name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEntryName();",
"protected String getEntryName( HttpServletRequest request )\n {\n return (String) request.getParameter( ENTRY_NAME_HTTP_PARAM );\n }",
"public String getDisplayName(){return entryName;}",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"public String getName() {\n return name.get();\n }",
"public java.lang.String getName();",
"public String getTheName() {\n\t\treturn name.getText();\n\t}",
"public final String getName() {\n\treturn name.getName();\n }",
"public String getName() {\r\n assert name != null;\r\n return name;\r\n }",
"public String getName() {\n return String.format(\"%s %s\", getFirst(), getLast());\n }",
"public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}",
"public static String getName() {\n return name;\n }",
"public String getFieldName() {\n int index = getFieldIndex();\n if (index == 0)\n return null;\n\n ComplexEntry entry = (ComplexEntry) getPool().getEntry(index);\n String name = entry.getNameAndTypeEntry().getNameEntry().getValue();\n if (name.length() == 0)\n return null;\n return name;\n }",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}",
"public String getName() {\r\n return this.name();\r\n }",
"public String getNameKey() {\n return getName();\n }",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public String getResourceEntryName(int resId) {\n String nativeGetResourceEntryName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceEntryName = nativeGetResourceEntryName(this.mObject, resId);\n }\n return nativeGetResourceEntryName;\n }",
"public String getName() {\n return item.getName();\n }",
"public String getName()\r\n\t{\r\n\t\treturn this._name;\r\n\t}",
"public K getName() {\n return key;\n }",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public String getName() {\n\t\treturn this.data.getName();\n\t}",
"public final String getName() {\n return this.name;\n }",
"public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }",
"public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"@Override\r\n\tpublic String getName() {\n\t\treturn this.name;\r\n\t}",
"String getName() ;",
"public\tString\tgetName() {\n\t\t\treturn\tthis.name;\n\t\t}",
"public final String getName() {\r\n return name;\r\n }",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getItemName() {\n\t\treturn ((name != null) ? name : (name = MiscUtils.getName(this)));\n\t}",
"public String getName()\n\t{\n\t\treturn theName;\n\t}",
"public String getName()\n\t{\n\t\treturn this._name;\n\t}",
"public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }",
"public java.lang.String getName() {\r\n return this._name;\r\n }",
"public String getName()\r\n\t{\r\n\t\treturn this.name;\r\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this.name;\r\n\t}",
"@Override\r\n\tpublic String getName() \r\n\t{\r\n\t\treturn this._name;\r\n\t}"
]
| [
"0.8537904",
"0.7325181",
"0.723638",
"0.70612913",
"0.7022927",
"0.7022927",
"0.7022927",
"0.70224684",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.70075566",
"0.69884783",
"0.6986215",
"0.69663304",
"0.6893899",
"0.6881918",
"0.67931604",
"0.67845637",
"0.67618006",
"0.67562914",
"0.6746679",
"0.67464066",
"0.6740771",
"0.67117846",
"0.6703462",
"0.6699201",
"0.66931397",
"0.6681552",
"0.66814464",
"0.6680876",
"0.6680045",
"0.6676678",
"0.66740805",
"0.6671928",
"0.6671187",
"0.6666316",
"0.6664477",
"0.665477",
"0.66536623",
"0.665329",
"0.6646373",
"0.6642271",
"0.6642271",
"0.6642271",
"0.66326034",
"0.6625692",
"0.66219103",
"0.66209364",
"0.66202486",
"0.66153",
"0.66153",
"0.661333"
]
| 0.0 | -1 |
Is this entry a directory? | @Override
public boolean isDirectory() {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "1f3b9904-58ed-482f-bbe0-a0dd875fcf23");
return getName().endsWith("/");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDir() { return _entry==null; }",
"public boolean isDirectory();",
"public final boolean isDirectory() {\n\t\treturn m_info.isDirectory();\n\t}",
"public boolean isDir() { return false; }",
"@Override\n public boolean isDir() { return true; }",
"public abstract boolean isDirectory() throws AccessException;",
"boolean hasDirName();",
"boolean isDirectory() throws IOException;",
"public boolean isDirectory()\n\t{\n\t\tFile temp = new File(this.path);\n\t\treturn temp.isDirectory();\n\t}",
"public boolean isDirectory() {\n return _file.isDirectory();\n }",
"boolean isFolder();",
"@Override\n public boolean isDirectory(File directory) {\n\treturn false;\n }",
"public boolean isDirectory(String path);",
"@Override\r\n\tpublic boolean isDir(String path) {\n\t\treturn false;\r\n\t}",
"public boolean\tisDirectory() {\r\n\t\treturn true ;\r\n\t}",
"private static boolean isDirectory(String filename) {\n File file = new File(filename);\n return file.isDirectory();\n }",
"boolean hasInodeDirectory();",
"public boolean hasDirName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public final boolean isDirectory() {\n\t return m_fileStatus == FileStatus.DirectoryExists ? true : false;\n\t}",
"public boolean hasDirName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean accept(ZipEntry entry)\n {\n // the entry name must start with the directory name, and it must\n // not be a directory\n String sName = entry.getName();\n if (sName.length() > m_sDir.length() && sName.startsWith(m_sDir)\n && sName.charAt(sName.length() - 1) != '/')\n {\n // if searching recursively, the entry can be several levels\n // under the directory, otherwise it must be in that directory\n return m_fRecurse || sName.indexOf('/', m_sDir.length()) < 0;\n }\n\n return false;\n }",
"public static void isDirectory1()\r\n {\r\n try{\r\n System.out.println(\">>>>>>>>>>>>\");\r\n File class0 = new File(\"C:\\\\Users\\\\castle\");\r\n boolean ret0 = true;\r\n ret0 = class0.isDirectory();\r\n assert (ret0 == true);\r\n System.out.println(ret0);\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public boolean isParent() { return _file.isDir(); }",
"private static boolean esDirectorio(String ruta) {\n\t\tboolean b = false;\n\t\tFile f = new File(ruta);\n\t\tif (f.isDirectory()) {\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}",
"@Override\n public boolean isItFolder(String path) {\n Path file = new File(path).toPath();\n boolean isDirectory = Files.isDirectory(file); // Check if it's a directory\n return isDirectory;\n }",
"private boolean directoryExists() {\n if (Meta.getInstance().containDirectory(dirName))\n return true;\n else\n return false;\n }",
"public boolean is_EpubDir() {\n\t\tEntry dir = null;\n\t\ttry {\n\t\t\tdir = _mApi.metadata(PATH, 0, null, true, null);\n\t\t} catch (DropboxException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (dir != null)\n\t\t\tif (dir.isDir)\n\t\t\t\treturn true;\n\t\treturn false;\n\n\t}",
"public static boolean isDir(SourceFile sourceFile) throws IOException {\n return isDir(sourceFile.getPath(), sourceFile.getSourceType());\n }",
"public boolean isDirFlag() { return this.dirFlag; }",
"public static void isDirectory0()\r\n {\r\n try {\r\n System.out.println(\">>>>>>>>>>>>\");\r\n File class0 = new File(\"D:\\\\java\");\r\n boolean ret0 = true;\r\n ret0 = class0.isDirectory();\r\n assert (ret0 == false);\r\n System.out.println(ret0);\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public static boolean isDirectory(FileTypes fT) {\n\t\tif (fT == FileTypes.DIRECTORY) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected abstract boolean isDirectory(@NonNull String path, T context);",
"public boolean hasDirectoryKey(String key) {\n return key.equals(mDirectoryKey);\n }",
"private boolean isDir(String fileName) {\n return !fileName.contains(\".\");\n }",
"public static boolean isDirectory(final String inputFile) {\n return new File(inputFile).isDirectory();\n }",
"public boolean isDirectory(String path) throws Exception {\n Path destionationPath = new Path(path);\n\n if (hdfs.isDirectory(destionationPath))\n return true;\n else if (hdfs.isFile(destionationPath))\n return false;\n else throw new Exception(\"What is it else?!\");\n }",
"public boolean fileIsDirectory(File file) {\n if (executionEnvironment.isLocal()) {\n return file.isDirectory();\n } else {\n return ProcessUtils.execute(executionEnvironment, \"test\", \"-d\", \"\\\"\" + file.getPath() + \"\\\"\").isOK(); //NOI18N\n }\n }",
"private static boolean checkDirectory() {\n File baseDir = new File(Environment.getExternalStorageDirectory(), \"Andevindo\");\n mImageDir = new File(baseDir.getPath() + File.separator + \"Images\");\n mVideoDir = new File(baseDir.getPath() + File.separator + \"Videos\");\n mMiscDir = new File(baseDir.getPath() + File.separator + \"Misc\");\n if (!baseDir.exists()) {\n if (!baseDir.mkdirs()) {\n\n return false;\n } else {\n\n\n if (!mImageDir.exists()) {\n if (!mImageDir.mkdirs()) {\n\n return false;\n }\n }\n\n\n if (!mVideoDir.exists()) {\n if (!mVideoDir.mkdirs()) {\n\n return false;\n }\n }\n\n\n if (!mMiscDir.exists()) {\n if (!mMiscDir.mkdirs()) {\n\n return false;\n }\n }\n\n }\n }\n return true;\n }",
"public Boolean isDirectory(IDirectory parentDirectory, String path) {\r\n // Get the item given by the path\r\n DirectoryTreeNode item = this.getItemGivenPath(parentDirectory, path);\r\n return item != null && item instanceof IDirectory;\r\n }",
"public boolean isSetDirName() {\n return this.dirName != null;\n }",
"public boolean isSetDirName() {\n return this.dirName != null;\n }",
"public boolean isSetDirName() {\n return this.dirName != null;\n }",
"public boolean hasInodeDirectory() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean hasInodeDirectory() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean isSetDir() {\n return this.dir != null;\n }",
"private static boolean isPackageDir(WebFile aFile)\n {\n if (!aFile.isDir())\n return false;\n if (aFile.getName().indexOf('.') > 0)\n return false;\n String path = aFile.getPath();\n if (isIgnorePath(path))\n return false;\n return true;\n }",
"public boolean makeDirectory( String directory, FileType type );",
"private boolean validateDirectory(final String dataDir)\n {\n final File dir = new File(dataDir);\n\n return dir.exists() && dir.isDirectory();\n }",
"public boolean accept(File pathname)\n {\n return pathname.isDirectory();\n }",
"public static boolean checkFileDirectory() {\n\t\ttry {\n\t\t\tfinal File dir = new File(FINAL_SAVE_MEDIA_PATH);\n\t\t\tif (!dir.exists()) {\n\t\t\t\tfinal boolean isMkdirs = dir.mkdirs();\n\t\t\t\treturn isMkdirs;\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isShowdir() {\r\n\t\treturn showdir;\r\n\t}",
"private static boolean checkifdirmatches(NodeBase node, DefaultMutableTreeNode tnode, String name){\n if(node instanceof Directory){\n \n if(node.getName().equalsIgnoreCase(name))\n return true;\n }\n Enumeration children = tnode.children();\n while(children.hasMoreElements()){\n \n DefaultMutableTreeNode nextElement = (DefaultMutableTreeNode)children.nextElement();\n NodeBase chuserObject = (NodeBase)nextElement.getUserObject();\n \n if(checkifdirmatches(chuserObject, nextElement, name))\n return true;\n \n }\n \n return false; \n }",
"public abstract boolean isPath();",
"public final File getISdirectory()\n {\n return is_directory;\n }",
"public boolean containsDirectory(IDirectory child) {\n return children.contains(child);\n }",
"public static boolean isa( String name, SerializationPosition state) {\n \n //STAC:Eleminates non-dirs with reflection\n if(state.currPos.getUserObject() instanceof HyperLink || state.currPos.getUserObject() instanceof DocumentI)\n return false;\n \n Object root = SiteMapGenerator.model.getRoot();\n\n //STAC:Find any duplicate entries in the tree\n boolean checkifdirmatches= checkifdirmatches(new Directory(root.toString()), (DefaultMutableTreeNode)root, name);\n return checkifdirmatches;\n \n }",
"private boolean isPublicDirectory(String directory) {\n return \"DOCUMENTS\".equals(directory) || \"EXTERNAL_STORAGE\".equals(directory);\n }",
"private static boolean isDirectoryPlaceholder(final S3ObjectSummary objectSummary)\n {\n // Recognize \"standard\" directory place-holder indications used by Amazon's AWS Console and Panic's Transmit.\n if (objectSummary.getKey().endsWith(\"/\") && objectSummary.getSize() == 0) {\n return true;\n }\n\n // Recognize s3sync.rb directory placeholders by MD5/ETag value.\n if (\"d66759af42f282e1ba19144df2d405d0\".equals(objectSummary.getETag())) {\n return true;\n }\n\n // Recognize place-holder objects created by the Google Storage console or S3 Organizer Firefox extension.\n if (objectSummary.getKey().endsWith(\"_$folder$\") && objectSummary.getSize() == 0) {\n return true;\n }\n\n return false;\n }",
"public static boolean isDirectory(final String fileName) {\n\n return FileSystem.getInstance(fileName).isDirectory(fileName);\n }",
"public static Boolean dir(String str){\n\t\t\n\t\t//File dir_root = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/kenzap\");\n\t\t//if (!dir_root.exists()){dir_root.mkdir();Log.e(\"DIRECROY\", \"MAKING_ROOT\");}\n\t\t\n\t File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + str);\n\t if (!dir.exists()){\n\t \tdir.mkdirs();\n\t \t//Log.e(\"DIRECTORY\", \"MAKING\");\n\t \t}\n\n\t\t//Log.e(\"DIRECROY\", \"YES\");\n//Log.e(\"DIRECROY\", \"NO\");\n\t\treturn dir.exists();\n\t}",
"@SuppressWarnings(\"deprecation\")\n public static boolean isDir(String path, SourceType sourceType) throws IOException {\n FileSystem fs = getFileSystemBySourceType(sourceType);\n FileStatus status = fs.getFileStatus(new Path(path));\n return status.isDir();\n }",
"@Test\n public void testHasDirectoryFalse() {\n FileTree myTree = new FileTree();\n assertTrue(!myTree.hasDirectory(\"file1\"));\n }",
"public boolean isLeaf(Object node) {\n\t\treturn !(node instanceof Directory);\n\t}",
"public boolean getIsValidPath()\r\n\t{\n\t\tDBTableEnum[] n = DBTableEnum.values();\r\n\t\tfor (DBTableEnum e : n)\r\n\t\t{\r\n\t\t\tif(e.getTableName().equals(this.folderType))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean directoryExists(String path) throws IOException;",
"public static boolean readableDir(File dir) {\r\n\t\treturn null != dir && dir.isDirectory() && dir.canRead();\r\n\t}",
"private static boolean insideValidDirectory(String pkgName, Path infoFile) {\n String[] packages = pkgName.split(\":\");\n Path current = infoFile.getParent();\n for (int i = packages.length - 1; i >= 0; --i) {\n if (current != null && !current.getFileName().toString().equals(packages[i])) return false;\n if (current == null) return false;\n current = current.getParent();\n }\n return true;\n }",
"public static boolean isFolder(Path path) {\n\t\treturn Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS);\n\t}",
"@Override\n public boolean accept(File pathname) {\n return pathname.isDirectory() && \n pathname.getName().startsWith(CacheDirectory.cacheDirNamePrefix(identity));\n }",
"private boolean isValidPath(String path) {\n File file = new File(path);\n return file.exists() && file.isDirectory();\n }",
"boolean hasUpdateInodeDirectory();",
"private boolean dirNameIsValid(String itemName) {\n return !(itemName.contains(\"resources\")\n || itemName.startsWith(\".\")\n || itemName.equalsIgnoreCase(\"tools\"));\n }",
"public boolean isDirectoryObserved(String directory_path) {\n\n\t\tCursor cursor = m_db.query(DIRECTORY_TABLE_NAME,\n\t\t\t\tnew String[] { DIRECTORY_FIELD_ID }, DIRECTORY_FIELD_PATH\n\t\t\t\t\t\t+ \"=?\", new String[] { directory_path }, null, null,\n\t\t\t\tnull);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\tif (result == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public static boolean isDirectoryPath(String path) {\n return !isNullOrEmpty(path) && path.endsWith(PATH_DELIMITER);\n }",
"public String getDir();",
"Object getDir();",
"@Test\n public void testGetDirectoryDoesNotExist() {\n FileTree myTree = new FileTree();\n String[] file = {\"file1\"};\n boolean result = false;\n try {\n String name = myTree.getDirectory(file[0]).getName();\n } catch (NotDirectoryException e) {\n result = true;\n }\n assertTrue(result);\n }",
"public boolean isFile() { return true; }",
"boolean hasDriveFolder();",
"public boolean checkDirectory(String destinationFileName) {\r\n\t\tFile theDir = new File(destinationFileName).getParentFile();\r\n\t\tif (!theDir.exists()) {\r\n\t\t\treturn theDir.mkdirs();\r\n\t\t}\r\n\t return true;\r\n\t}",
"boolean hasFileLocation();",
"protected boolean isValidDirectoryFormat(String[] listing) {\n String[] aLine;\n for (int i=1; i<listing.length; i++) {\n aLine = splitMVSLine(listing[i]);\n if ( (aLine.length == 2) && (aLine[0].equals(LINE_TYPE_MIGRATED))) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Detected.Migrated\"));} //$NON-NLS-1$\n } else if (aLine.length != 10 && ( !aLine[0].equals(LINE_TYPE_ARCIVE))) { // 10 = regular, ARCIVE=on tape\n log4j.error(BaseMessages.getString(PKG, \"MVSFileParser.ERROR.Invalid.Folder.Line\", listing[i])); //$NON-NLS-1$\n return false;\n }\n if (dateFormatString != null) {\n // validate date\n if (!checkDateFormat(aLine[2])) {\n return false;\n }\n } else {\n if (aLine.length == 10) {\n // Try to parse the date.\n guessDateFormat(aLine[2]);\n }\n }\n }\n return true;\n }",
"public synchronized boolean hasArchiveFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mArchiveFolderName);\n }",
"public static boolean checkAppFileDirectory(Context context) {\n\t\ttry {\n\t\t\tfinal String imageDir = getAppFilesDirByData(context);\n\t\t\tfinal File imageFileDir = new File(imageDir);\n\t\t\tif (!imageFileDir.exists()) {\n\t\t\t\tfinal boolean isMkdirs = imageFileDir.mkdirs();\n\t\t\t\treturn isMkdirs;\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\n\t}",
"public boolean isRoot() {\n return getName().getPath().equals(SEPARATOR);\n }",
"public static boolean processDirectory(String name,\n\t\t\tLinkedBlockingQueue<String> work) {\n\t\tLinkedBlockingQueue<String> q = work;\n\t\ttry {\n\t\t\tFile file = new File(name); // create a File object\n\t\t\tif (file.isDirectory()) { // a directory - could be symlink\n\t\t\t\t// System.out.println(name);\n\t\t\t\tString entries[] = file.list();\n\t\t\t\tif (entries != null) { // not a symlink\n\t\t\t\t\tq.add((String) name);\n\t\t\t\t\tfor (String entry : entries) {\n\t\t\t\t\t\tif (entry.compareTo(\".\") == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif (entry.compareTo(\"..\") == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tprocessDirectory(new String(name + \"/\" + entry), q);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error processing \" + name + \": \" + e);\n\t\t}\n\t\treturn true;\n\n\t}",
"public void testThemeDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"theme\");\n assertEquals(file, new File(rootBlog.getThemeDirectory()));\n assertFalse(file.exists());\n }",
"boolean hasInodeDirectoryIdGenerator();",
"String getDir();",
"public boolean loadBooksFromDirectory() {\n\t\ttry {\n\t\t\t_booksListEntry = (ArrayList<Entry>) _mApi.metadata(PATH, 0, null, true, null).contents;\n\t\t} catch (DropboxException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (is_EpubDir() && !_booksListEntry.isEmpty()) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}",
"@Override\n public boolean accept(File file) {\n if (file.isDirectory()) {\n return true;\n }\n return false;\n }",
"public static void fileIsDirectory(String file) {\n if (!dirLog) {\n return;\n }\n Integer i = Statistics.getDefault().isDirInvoc.get(file);\n if (i == null) {\n i = 1;\n } else {\n i++;\n }\n Statistics.getDefault().isDirInvoc.put(file, i);\n\n ////////////////////\n StringBuilder sb = new StringBuilder(300);\n StackTraceElement[] ste = Thread.currentThread().getStackTrace();\n for (i = 2; i < ste.length; i++) {\n sb.append(ste[i].toString()).append('\\n');\n }\n String s = sb.toString();\n i = Statistics.getDefault().stacks.get(s);\n if (i == null) {\n i = 1;\n } else {\n i++;\n }\n Statistics.getDefault().stacks.put(s, i);\n }",
"public boolean isNoDirs(String path) {\r\n\t\t// We setup the path to search.\r\n\t\tFile file = new File(path);\r\n\t\tFile[] files = file.listFiles(File::isDirectory);\r\n\r\n\t\t// We check how many directories we find.\r\n\t\tif (files.length == 0) {\r\n\t\t\t// We find 0, so we return true.\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// We find some, so we return false.\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean isDescendent(final FileName descendent, final NameScope scope) {\r\n if (!descendent.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(getPath(), descendent.getPath(), scope);\r\n }",
"@Test\n\tpublic void validFileDirectoryTest() {\n\t\t// Test valid file directory\n\t\tFile f = new File(workingDir);\n\t\tassertTrue(Helper.isValidDirectory(f));\n\n\t\t// Test valid file directory 2\n\t\tworkDir = new File(workingDir);\n\t\texpected = workDir.getAbsolutePath();\n\t\tactual = Helper.isValidDirectory(workDir, \"misc\");\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\n\t\t// Test valid file directory 3\n\t\tworkDir = new File(workingDir);\n\t\texpected = workDir.getAbsolutePath() + pathSep + dirName; // Bugs: OS\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// compatible \\\\\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// changed to /\n\t\tactual = Helper.isValidDirectory(workDir, dirName);\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\t}",
"public static void isDirectory(File parameter, String name)\n {\n if(parameter == null || !parameter.isDirectory()) {\n throw new IllegalArgumentException(String.format(\"%s |%s| is missing or is not a directory.\", name, parameter.getAbsolutePath()));\n }\n }",
"public boolean accept(ZipEntry entry)\n {\n if (super.accept(entry))\n {\n String sName = entry.getName();\n return m_sFile.equals(sName.substring(sName.lastIndexOf('/') + 1));\n }\n\n return false;\n }",
"public boolean accept(File pathname) {\n\t\t\t\tif(pathname.isDirectory()) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}",
"public boolean accept(File pathname) {\n\t\t\t\tif(pathname.isDirectory()) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}",
"private void checkFileOrDirectory(Path pathroot) {\n if (Files.notExists(pathroot)) { // Checking path is valid path or the path is exist\n System.out.println(\"Not a valid Path \" + pathroot);\n } else if (Files.isDirectory(pathroot)) {// checking path contains file if contain file display message\n System.out.println(\"It is Directory\");\n } else {\n System.out.println(\"This is File\"); // printing the path is directory\n }\n }"
]
| [
"0.8727671",
"0.81319094",
"0.7854141",
"0.78507197",
"0.76573646",
"0.75980604",
"0.7566826",
"0.74981946",
"0.74362683",
"0.74322784",
"0.73308283",
"0.732856",
"0.7302368",
"0.7298035",
"0.72717315",
"0.7213678",
"0.7207149",
"0.72033316",
"0.7196017",
"0.7192299",
"0.70688266",
"0.6923209",
"0.6894057",
"0.6872646",
"0.6846276",
"0.68379015",
"0.6820813",
"0.68197274",
"0.68019426",
"0.6784567",
"0.6772987",
"0.6760329",
"0.67240506",
"0.67236435",
"0.6595969",
"0.6547215",
"0.63918614",
"0.6390119",
"0.6351568",
"0.634178",
"0.634178",
"0.634178",
"0.6302218",
"0.6297714",
"0.62943035",
"0.6282453",
"0.62548494",
"0.6233271",
"0.62146235",
"0.6210117",
"0.61863357",
"0.6152371",
"0.61456895",
"0.6120617",
"0.6117538",
"0.61101985",
"0.6104228",
"0.60695654",
"0.6069414",
"0.6068706",
"0.60334647",
"0.59993476",
"0.59917057",
"0.59607273",
"0.59575427",
"0.59072405",
"0.5847793",
"0.583838",
"0.58328646",
"0.5824682",
"0.58174026",
"0.57762104",
"0.57580113",
"0.5743626",
"0.57377285",
"0.57229376",
"0.5722564",
"0.57195383",
"0.5685829",
"0.5684839",
"0.5677365",
"0.5649796",
"0.56253517",
"0.56239986",
"0.56133157",
"0.56101865",
"0.5598088",
"0.5590831",
"0.55877215",
"0.5580167",
"0.5567899",
"0.55626386",
"0.5553517",
"0.5541084",
"0.55366176",
"0.55323523",
"0.5529338",
"0.55213416",
"0.55213416",
"0.5516946"
]
| 0.7012779 | 21 |
Set the name of the entry. | protected void setName(String name) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b");
if (name != null && getPlatform() == PLATFORM_FAT && !name.contains("/")) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "6d8baf11-928b-4d13-a982-c28e6d5c3bb7");
name = name.replace('\\', '/');
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "e80bbe2d-caf4-4e25-b64c-8fef2f2969dd");
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEntryName(String ename);",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setName(String n) {\n this.name = n;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(java.lang.String value) {\n this.name = value;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public final void setName(String name) {_name = name;}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"public final void setName(final String inName) {\n mName = inName;\n }",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName( String name ) {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName(String name) {\n m_Name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}"
]
| [
"0.7914947",
"0.7576231",
"0.75609136",
"0.7553901",
"0.7549807",
"0.7525598",
"0.7498976",
"0.74927706",
"0.74894226",
"0.7472585",
"0.74352354",
"0.74178684",
"0.74178684",
"0.7409503",
"0.74025834",
"0.73757625",
"0.7373512",
"0.7373134",
"0.7373134",
"0.73716575",
"0.73716575",
"0.73716575",
"0.7371061",
"0.7371061",
"0.7370062",
"0.73698467",
"0.73698467",
"0.73698467",
"0.7366157",
"0.7353748",
"0.7350083",
"0.73451924",
"0.73451924",
"0.73451924",
"0.73451924",
"0.7339497",
"0.73394793",
"0.7338494",
"0.73372",
"0.73372",
"0.73372",
"0.7333424",
"0.7330777",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.73289126",
"0.7326429",
"0.7322506",
"0.73197055",
"0.73191637",
"0.7316006",
"0.731138",
"0.731138",
"0.7310712",
"0.7309992",
"0.7309992",
"0.7309992",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739",
"0.7306739"
]
| 0.0 | -1 |
Sets the uncompressed size of the entry data. | @Override
public void setSize(final long size) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "324a1517-24fc-4321-b6db-b6298682fdff");
if (size < 0) {
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "7216d875-4e8a-4414-96cb-4aced232dd32");
throw new IllegalArgumentException("invalid entry size");
}
writeline("/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage", "7b4aac03-5acf-4fa5-b192-8b1ca4b2eb07");
this.size = size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TarArchiveEntry setEntrySize(long size) {\n if (size < 0) {\n throw new IllegalArgumentException(\"size is out of range: \" + size);\n }\n this.size = size;\n return this;\n }",
"public void setLocalSize(int size);",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"public void setSize(long value) {\n this.size = value;\n }",
"public void set_infos_size_data(short value) {\n setUIntBEElement(offsetBits_infos_size_data(), 8, value);\n }",
"public com.autodesk.ws.avro.Call.Builder setObjectSize(java.lang.Long value) {\n validate(fields()[6], value);\n this.object_size = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public long getEntrySize() {\n return size;\n }",
"public void setPackageSize(int size){\r\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"private void setFinalSize()\n {\n if (m_isFinalSizeSet)\n return;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n m_isFinalSizeSet = true;\n }",
"public void setObjectSize(short size) { this.objectSize=size; }",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final Builder size(long size) {\n this.size = size;\n return this;\n }",
"public void set_size(int s);",
"public void setFileCompressedSize(long fileCompressedSize)\r\n {\r\n lFileCompressedSize = fileCompressedSize;\r\n }",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public void sizeHasBeenSet() {\n isSizeSet = true;\n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public abstract void adjustSize(long size);",
"private void setFinalSize()\n {\n if (! m_isEmpty)\n return;\n m_isEmpty = false;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n }",
"public void setSize(int size){\n this.size = size;\n }",
"public void setFileSize(long fileSize)\r\n {\r\n lFileSize = fileSize;\r\n }",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"public void setSizeE(long s){\n\t\tthis.sizeE = s;\n\t}",
"public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}",
"public void setTileSize(int tSize) {\r\n\t\tthis.tSize = tSize;\r\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(String size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(Integer size) {\n this.size = size;\n }",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"protected void setArraySize(int arraySize){\r\n\t \tthis.arraySize = arraySize;\r\n\t }",
"public void set_fieldsize(AST fieldsize);",
"@Override\n\tpublic void setSizeToCache(int sizeToCache) {\n\t\t\n\t}",
"public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}",
"public void setArchiveSize(int archiveSize) {\r\n\t\tthis.archiveSize = archiveSize;\r\n\t}",
"public void setObjectSize(java.lang.Long value) {\n this.object_size = value;\n }",
"public Builder setFileSize(long value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }",
"public void setZIP_PAGE_SIZE(Integer ZIP_PAGE_SIZE) {\n this.ZIP_PAGE_SIZE = ZIP_PAGE_SIZE;\n }",
"protected void setMaxSize(int size) {\n maxSize = size;\n }",
"public void setKeySize(int keySize) {\n this.keySize = keySize;\n }",
"private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }",
"@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }",
"private void subLengthFromCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / -1024 - 1);\r\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public void setSize(double size) \n {\n this.size = size;\n }",
"public void setSize(int size) {\n\t members = size;\n\t}",
"public void setArchiveSize(String archiveSize) {\n this.archiveSize = archiveSize;\n }",
"@Element \n public void setSize(String size) {\n this.size = size;\n }",
"private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }",
"public void setSize(String size) {\r\n this.size = size == null ? null : size.trim();\r\n }",
"public static void setAdSizeInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADSIZE_KEY)){\n \t\tmemcache.delete(MEDIA_PLAN_ADSIZE_KEY);\n \t}\n \tmemcache.put(MEDIA_PLAN_ADSIZE_KEY, dataMap);\n\t}",
"public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}",
"@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}",
"private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }",
"public void setFileSize(long fileSize) {\n this.fileSize = fileSize;\n }",
"public void setDataList(ArrayList<Integer> dataList, int maxSize){\n this.dataList = dataList;\n this.mMaxSize = maxSize;\n }",
"public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }",
"public synchronized void updateFileSize( long passedSize ){\n \n fileSize = passedSize;\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n }",
"@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}",
"public void setSize() {\n\t\t\tthis.size = 1;\n\t\t\tint leftSize = 0;\n\t\t\tint rightSize = 0;\n\t\t\tif (this.getLeft().getKey() != -1) {\n\t\t\t\tleftSize = this.getLeft().getSize();\n\t\t\t}\n\t\t\tif (this.getRight().getKey() != -1) {\n\t\t\t\trightSize = this.getRight().getSize();\n\t\t\t}\n\t\t\tthis.size += leftSize + rightSize;\n\n\t\t\t/**\n\t\t\t * this.size = 1; int leftSize = 0; int rightSize = 0; try { leftSize =\n\t\t\t * this.getLeft().getSize(); this.size += leftSize; } catch\n\t\t\t * (NullPointerException e) { this.size += leftSize; } try { rightSize =\n\t\t\t * this.getRight().getSize(); this.size += rightSize; } catch\n\t\t\t * (NullPointerException e) { this.size += rightSize; } if (this.getSize() >\n\t\t\t * 990) { System.out.println(\"actual size is:\" + this.getSize()); }\n\t\t\t */\n\t\t}",
"public void setSize(int size);",
"public final long getSize() { return size; }",
"public void setStructureSize(int size) {\n\t\tmStructureSize = size;\n\t\tvalidateSize();\n\t\trepaint();\n\t\t}",
"public void setSIZE(java.lang.String SIZE) {\n this.SIZE = SIZE;\n }",
"void setKeySize(int size);",
"public int getSize() \n { \n return numberOfEntries;\n }",
"public synchronized int getEntrySize() {\n return bytesPerSlot;\n }",
"public void setSize(int size) {\n\t\tif (size < 0) {\n\t\t throw new IllegalArgumentException(\"Log cache size can't be negative\");\n\t\t}\n\t\tint delta = this.size - size;\n\t\tthis.size = size;\n\t\tif (delta <= 0) {\n\t\t return;\n\t\t}\n\t\tif (messages.size() < size) {\n\t\t return;\n\t\t}\n\t\twhile (delta-- > 0) {\n\t\t messages.removeFirst();\n\t\t}\n\t}",
"@Override\n\tpublic int getSize() {\n\t\treturn numberOfEntries;\n\t}",
"public void setTagSize(int tagSize)\r\n\t{\r\n\t\tthis.tagSize = tagSize;\r\n\t}",
"public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}",
"public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public int sizeUncompressed (){\r\n\t\t\treturn _sizeUncompressed;\r\n\t\t}",
"public void setRecordSize(int recordSize)\r\n\t{\r\n\t\tthis.recordSize = recordSize;\r\n\t}",
"public FileObject size(Integer size) {\n this.size = size;\n return this;\n }",
"void setPaperSize(short size);",
"private void setMemorySize() { }",
"public void setSizeModifier(Dimension size) {\n\t\tthis.size = size;\n\t}",
"public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"public Builder setSize(double value) {\n bitField0_ |= 0x00000020;\n size_ = value;\n onChanged();\n return this;\n }",
"public void updateSize() {\n\t\t\tthis.setSize();\n\t\t\tif (this.checkRoot()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tparent.updateSize();\n\t\t}",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"public void setMaxSize(int c) {\n maxSize = c;\n }",
"public void initialize(int size) {\n setMaxSize(size);\n }",
"public void setSize(@Nullable String size) {\n this.size = size;\n }"
]
| [
"0.676733",
"0.6342981",
"0.6206746",
"0.61530477",
"0.60636413",
"0.59694004",
"0.59638625",
"0.59491587",
"0.59284353",
"0.58430475",
"0.5841385",
"0.58371234",
"0.5834284",
"0.5786919",
"0.57696354",
"0.5760298",
"0.5743026",
"0.5736415",
"0.5714636",
"0.57077485",
"0.5642205",
"0.5629218",
"0.5623005",
"0.5614122",
"0.5603534",
"0.5588963",
"0.5578919",
"0.55739003",
"0.5565559",
"0.5555709",
"0.5550067",
"0.5550067",
"0.5550067",
"0.5550067",
"0.55278414",
"0.55276835",
"0.55276835",
"0.5519177",
"0.5511277",
"0.5504305",
"0.54754597",
"0.54622906",
"0.5435464",
"0.5424036",
"0.5419321",
"0.54038674",
"0.5365265",
"0.536261",
"0.5357393",
"0.5355082",
"0.5348401",
"0.5337197",
"0.5332729",
"0.5329471",
"0.53094983",
"0.530836",
"0.530836",
"0.5296076",
"0.52893794",
"0.52876526",
"0.5273559",
"0.5266343",
"0.52505404",
"0.5235716",
"0.5232925",
"0.52319103",
"0.5231787",
"0.5231325",
"0.5211141",
"0.52035517",
"0.5202643",
"0.5201384",
"0.51991653",
"0.51945025",
"0.51825947",
"0.518065",
"0.5177771",
"0.51738477",
"0.517352",
"0.5155617",
"0.5155199",
"0.5145371",
"0.51425254",
"0.5140478",
"0.5138824",
"0.5135617",
"0.5129663",
"0.51272976",
"0.51257926",
"0.51245075",
"0.51234853",
"0.5112227",
"0.5091538",
"0.50840104",
"0.5079833",
"0.5076855",
"0.5051626",
"0.50465137",
"0.50462574",
"0.50272864"
]
| 0.66095614 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.